* [U-Boot] [PATCH] x86: cache.h: Add default for CONFIG_SYS_CACHELINE_SIZE
@ 2016-07-18 10:53 Stefan Roese
2016-07-19 3:47 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2016-07-18 10:53 UTC (permalink / raw)
To: u-boot
Don't just define ARCH_DMA_MINALIGN but also CONFIG_SYS_CACHELINE_SIZE
if its undefined. This is needed for the xhci driver to compile.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
arch/x86/include/asm/cache.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h
index 508b63f..4ff63c3 100644
--- a/arch/x86/include/asm/cache.h
+++ b/arch/x86/include/asm/cache.h
@@ -11,12 +11,12 @@
* If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment. Otherwise
* use 64-bytes, a safe default for x86.
*/
-#ifdef CONFIG_SYS_CACHELINE_SIZE
-#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
-#else
-#define ARCH_DMA_MINALIGN 64
+#ifndef CONFIG_SYS_CACHELINE_SIZE
+#define CONFIG_SYS_CACHELINE_SIZE 64
#endif
+#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
+
static inline void wbinvd(void)
{
asm volatile ("wbinvd" : : : "memory");
--
2.9.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] x86: cache.h: Add default for CONFIG_SYS_CACHELINE_SIZE
2016-07-18 10:53 [U-Boot] [PATCH] x86: cache.h: Add default for CONFIG_SYS_CACHELINE_SIZE Stefan Roese
@ 2016-07-19 3:47 ` Bin Meng
2016-08-01 0:44 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2016-07-19 3:47 UTC (permalink / raw)
To: u-boot
On Mon, Jul 18, 2016 at 6:53 PM, Stefan Roese <sr@denx.de> wrote:
> Don't just define ARCH_DMA_MINALIGN but also CONFIG_SYS_CACHELINE_SIZE
> if its undefined. This is needed for the xhci driver to compile.
nits: it's
I can fix this when applying.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
> arch/x86/include/asm/cache.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] x86: cache.h: Add default for CONFIG_SYS_CACHELINE_SIZE
2016-07-19 3:47 ` Bin Meng
@ 2016-08-01 0:44 ` Bin Meng
0 siblings, 0 replies; 3+ messages in thread
From: Bin Meng @ 2016-08-01 0:44 UTC (permalink / raw)
To: u-boot
On Tue, Jul 19, 2016 at 11:47 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Mon, Jul 18, 2016 at 6:53 PM, Stefan Roese <sr@denx.de> wrote:
>> Don't just define ARCH_DMA_MINALIGN but also CONFIG_SYS_CACHELINE_SIZE
>> if its undefined. This is needed for the xhci driver to compile.
>
> nits: it's
>
> I can fix this when applying.
Fixed this, and
>
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> ---
>> arch/x86/include/asm/cache.h | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
applied to u-boot-x86, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-01 0:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 10:53 [U-Boot] [PATCH] x86: cache.h: Add default for CONFIG_SYS_CACHELINE_SIZE Stefan Roese
2016-07-19 3:47 ` Bin Meng
2016-08-01 0:44 ` Bin Meng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.