> Cc: Yoshinori Sato
> Cc: Brian Cain
> Cc: Tony Luck
> Cc: Fenghua Yu
> Cc: Geert Uytterhoeven
> Cc: Michal Simek
> Cc: Thomas Bogendoerfer
> Cc: Nick Hu
> Cc: Greentime Hu
> Cc: Vincent Chen
> Cc: Ley Foon Tan
> Cc: Jonas Bonn
> Cc: Stefan Kristi
Cc: Russell King
> Cc: Catalin Marinas
> Cc: Will Deacon
> Cc: Mark Salter
> Cc: Aurelien Jacquiot
> Cc: Guo Ren
> Cc: Yoshinori Sato
> Cc: Brian Cain
> Cc: Tony Luck
> Cc: Fenghua Yu
> Cc: Geert Uytterhoeven
> Cc: Michal Simek
> Cc: Thomas Bogendoerfer
orce void __iomem *)(offset + (char *)addr);
> -
> -}
> -
> -void __iomem *ioremap(phys_addr_t phys_addr, size_t size)
> -{
> - return __ioremap_caller(phys_addr, size,
> - __builtin_return_address(0));
> -}
> -
> -EXPORT_SYMBOL(ioremap);
> -
> -void iounmap(volatile void __iomem * addr)
> -{
> - vunmap((void *)(PAGE_MASK & (unsigned long)addr));
> -}
> -
> -EXPORT_SYMBOL(iounmap);
Acked-by: Greentime Hu
Looks good to me.
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
2018-04-26 16:24 GMT+08:00 Christoph Hellwig :
> On Thu, Apr 26, 2018 at 04:06:34PM +0800, Greentime Hu wrote:
>> It works!!!
>
> Thanks!
>
> Can you retest the updated tree here with all the fixes and give me
> your Tested-by: for the generic and nds32 patches?
>
>
2018-04-26 14:42 GMT+08:00 Christoph Hellwig :
> Can you try this patch ontop of either the new or original one?
>
> ---
> diff --git a/lib/dma-noncoherent.c b/lib/dma-noncoherent.c
> index f4b8532c20ac..a2c192b3508d 100644
> --- a/lib/dma-noncoherent.c
> +++ b/lib/dma-noncoherent.c
> @@ -48,7 +48,
2018-04-25 14:40 GMT+08:00 Christoph Hellwig :
> On Wed, Apr 25, 2018 at 09:43:43AM +0800, Greentime Hu wrote:
>> Hi Crhistoph,
>>
>> The ftmac100 works if I revert this commit.
>
> Thanks. ftmac100 only use dma_map_page, which in the old nds32 code
> is just doing
_range(start, start + size);
> break;
> default:
> BUG();
Hi Crhistoph,
The ftmac100 works if I revert this commit.
commit de46b9ba5298aafc47284735a4f21baa8e4ed4b7
Author: Greentime Hu
Date: Wed Apr 25 09:33:51 2018 +0800
Revert "nds32: use
2018-04-20 16:03 GMT+08:00 Christoph Hellwig :
> Switch to the generic noncoherent direct mapping implementation.
>
> This makes sure kmap_atomic_pfn is consistently used for access to
> virtual addresses instead of either using the slower plain kmap
> or blindly expecting page_address() to work.
>