[SLOF] [PATCH slof] pci: Fix assigned-addresses for 64bit nonprefetchable BAR
Alexey Kardashevskiy
aik at ozlabs.ru
Fri Apr 28 16:34:48 AEST 2017
On 28/04/17 16:33, Thomas Huth wrote:
> On 28.04.2017 08:04, Alexey Kardashevskiy wrote:
>> 975b31f80aff "pci: Put non-prefetchable 64bit BARs into 32bit MMIO window"
>> moved 64bit non-prefetchable BARs into 32bit non-prefetchable window
>> of a bridge. However the resource would still be advertised as 64bit
>> in the "assigned-addresses" property so fix the resource type.
>>
>> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
>> ---
>> slof/fs/pci-properties.fs | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/slof/fs/pci-properties.fs b/slof/fs/pci-properties.fs
>> index 8594e5d..d446473 100644
>> --- a/slof/fs/pci-properties.fs
>> +++ b/slof/fs/pci-properties.fs
>> @@ -257,7 +257,7 @@
>> >r dup rtas-config-l@ \ | save size and fetch lower 32 bits ( paddr plen baddr val.lo R: size)
>> over 4 + rtas-config-l@ \ | fetch upper 32 bits ( paddr plen baddr val.lo val.hi R: size)
>> 20 lshift + -10 and >r \ | calc 64 bit value and save it ( paddr plen baddr R: size val )
>> - 83000000 or encode-int+ \ | Encode config addr ( paddr plen R: size val )
>> + 82000000 or encode-int+ \ | Encode config addr ( paddr plen R: size val )
>> r> encode-64+ \ | Encode assigned addr ( paddr plen R: size )
>> r> encode-64+ \ | Encode size ( paddr plen )
>> ELSE \ ELSE
>>
>
> I'd still prefer to have a comment in the source code here, too, but anyway:
>
> Reviewed-by: Thomas Huth <thuth at redhat.com>
>
Propose the text and the place, I'll put it in.
--
Alexey
More information about the SLOF
mailing list