[lkml]   [2017]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [linux-sunxi] [PATCH 2/4] drivers: soc: sunxi: fix error processing on base address when claiming

于 2017年8月18日 GMT+08:00 下午2:21:07, Chen-Yu Tsai <> 写到:
>On Wed, Aug 9, 2017 at 4:56 PM, Icenowy Zheng <> wrote:
>> When claiming SRAM, if the base is set to an error, it means that the
>> SRAM controller has been probed, but failed to remap the controller
>> memory zone. If the base is zero, thus the SRAM controller should be
>> probed at all, and it should return -EPROBE_DEFER. However, currently
>> returned -EPROBE_DEFER in the former situation, and ignored the
>> situation (which will lead to the kernel to panic).
>> Fix the behavior on abnormal base address processing when claiming.
>Could you describe how you actually ran into this? The failure seems
>unlikely for a properly written device tree.

In fact it's possible, as the probe defering used to be broken.

On the A64 situation, the SRAM is referenced by the DE2 CCU driver, which will be probed very early -- before SRAM is probed, and the problem happens.


 \ /
  Last update: 2017-08-18 08:25    [W:0.055 / U:8.904 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site