RE: Re: [PATCH] mtd: fix oops when writing to phram device on arm64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Mon, Aug 19, 2019 at 3:39 PM Huaijie Yi <yihuaijie@xxxxxxxxxx> wrote:
>>
>> From: yihuaijie <yihuaijie@xxxxxxxxxx>
>>
>> memcpy() to memory remaped by ioremap() at an address not aligned to 
>> 8-bytes will cause oops on arm64 platform, fixing this by using 
>> ioremap_wc().
>
>This might be the right thing on arm64, but I fear not for all other archs and configurations.
>
>We had a similar chain of problems already with our sram driver.
>See:
>eb43e023130b ("misc: sram: add optional ioremap without write combining")
>0ab163ad1ea0 ("misc: sram: switch to ioremap_wc from ioremap")
>
>--
>Thanks,
>//richard

Hi, richard

I verified this on x86_64, and there isn't the problem.

I will resend a V2 to fix this only on ARM64.

--
Regards
//Huaijie Yi


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux