[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v2 4/6] spapr: Add /chosen to FDT only at reset time to preser
Re: [PULL v2 4/6] spapr: Add /chosen to FDT only at reset time to preserve kernel and initramdisk
Thu, 5 Dec 2019 15:26:14 +1100
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2
On 04/12/2019 21:32, Laurent Vivier wrote:
> On 04/12/2019 05:40, Alexey Kardashevskiy wrote:
>> On 04/12/2019 15:23, Alexey Kardashevskiy wrote:
>>> On 04/12/2019 03:09, Laurent Vivier wrote:
>>>> Bad reply, the problem is with
>>>> "spapr: Render full FDT on ibm,client-architecture-support"
>>> A "bit ugly" became really ugly as before we were only patching
>>> interrupt-map for PHB (7 cells per line) only but now we have to patch
>>> (or, rather, skip) the PCI bridge interrupt-map (9 cells per line).
>>> Fixing now...
>> Basically, this:
>> diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs
>> index 3e4c1b34b8af..463a2a8c0c2d 100644
>> --- a/board-qemu/slof/fdt.fs
>> +++ b/board-qemu/slof/fdt.fs
>> @@ -300,8 +300,13 @@ fdt-claim-reserve
>> \ ." Replacing in " dup node>path type cr
>> s" interrupt-map" r@ get-property 0= IF
>> - ( old new prop-addr prop-len R: node )
>> - fdt-replace-interrupt-map
>> + dup e00 = IF
>> + ( old new prop-addr prop-len R: node )
>> + fdt-replace-interrupt-map
>> + ELSE
>> + 2drop
>> + ." no idea what this is" cr
>> + THEN
> This does not fix the problem for me.
That's strange, does it crash the same way?
Anyway I made 2 patches:
Please give them a try. Thanks,