diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-12-19 19:34:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-04 09:38:12 +0100 |
commit | 801a8d40c1095588f315138988307ad5e33f1126 (patch) | |
tree | da7600933baff011170d06e01226534223ea3628 /arch/arm/mach-bcm283x/include | |
parent | 295d6763bf8e44fa453633791c77cd919bccdcab (diff) | |
download | barebox-801a8d40c1095588f315138988307ad5e33f1126.tar.gz barebox-801a8d40c1095588f315138988307ad5e33f1126.tar.xz |
bcm283x: mbox: align to cachesize
This patch change the align of mbox stack resource to 32. The reason is
that I had some experience with bcm2836 and the mbox implementation,
after setting the align to 64(on bcm2836) the issues was gone.
I found these values inside the u-boot implementation, they use 32
(bcm2835) and 64 (bcm2836).
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-bcm283x/include')
-rw-r--r-- | arch/arm/mach-bcm283x/include/mach/mbox.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h index 4c3fd775dd..09b31f2e62 100644 --- a/arch/arm/mach-bcm283x/include/mach/mbox.h +++ b/arch/arm/mach-bcm283x/include/mach/mbox.h @@ -73,8 +73,10 @@ struct bcm2835_mbox_hdr { #define BCM2835_MBOX_REQ_CODE 0 #define BCM2835_MBOX_RESP_CODE_SUCCESS 0x80000000 +#define BCM2835_CACHELINE_SIZE 32 + #define BCM2835_MBOX_STACK_ALIGN(type, name) \ - STACK_ALIGN_ARRAY(type, name, 1, BCM2835_CHAN_MASK + 1) + STACK_ALIGN_ARRAY(type, name, 1, BCM2835_CACHELINE_SIZE) #define BCM2835_MBOX_INIT_HDR(_m_) { \ memset((_m_), 0, sizeof(*(_m_))); \ |