00:19
<
Dezgeg >
oh it's a bug after all I think, in decode_regions() the mmio region in the high memory that comes in overwrites the earlier one in low memory
00:25
<
Dezgeg >
linux just ignores the range when ((sizeof(resource_size_t) < 8) && upper_32_bits(range->cpu_addr)) so U-Boot should do the same I guess
00:29
<
flokli >
that's linux' drivers/of/address.c#of_pci_range_to_resource, right?
00:30
<
samueldr >
flokli: with regards to wiki edits, thanks!
00:31
<
samueldr >
flokli: I think, though, that you forgot to end a sentence
00:31
<
samueldr >
(under booting using qemu)
00:33
<
flokli >
samueldr: done, thanks
00:33
<
Dezgeg >
yes, as you can see region 2 has 'type=0, pos=1' so it overrides region 1 which also has pos=1
00:35
<
Dezgeg >
I guess the code in general assumes you only get only one type of region in...
00:35
<
Dezgeg >
which sounds wrong
00:43
<
flokli >
but couldn't we also skip over those regions in drivers/pci/pci-uclass.c#decode_regions, similar to like linux does it?
00:44
<
Dezgeg >
yeah, it'd still fix it
00:48
<
Dezgeg >
if (sizeof(void*) == 4 && type == PCI_REGION_MEM && upper_32_bits(addr)) continue; does work for me
00:50
<
Dezgeg >
-m 4096 makes it report the ram size as 0 bytes though :)
00:52
<
Dezgeg >
I presume there is some option to have a 64-bit phys_addr_t
00:55
<
Dezgeg >
aarch64 also crashes with 4G... presumably the high memory regions need to be described in the mmu setup
00:56
<
Dezgeg >
need to continue tomorrow
00:57
<
flokli >
yes, really time for bed
00:57
<
flokli >
thanks for taking a look at it!
00:58
<
flokli >
btw, above patch allowed me to boot armv7l with 3GB, and linux shows it
04:03
pxc has quit [Quit: WeeChat 2.0]
08:05
orivej has joined #nixos-aarch64
11:19
kuri0 has joined #nixos-aarch64
11:20
kuri0 has left #nixos-aarch64 ["Leaving"]
13:17
MoreTea2 is now known as MoreTea
18:25
Sonarpulse has joined #nixos-aarch64
20:21
angerman_ has joined #nixos-aarch64
20:28
cornu has quit [*.net *.split]
20:28
bkchr[m] has quit [*.net *.split]
20:28
angerman has quit [*.net *.split]
20:28
angerman_ is now known as angerman
20:32
bkchr[m] has joined #nixos-aarch64
20:32
cornu has joined #nixos-aarch64
23:14
orivej has quit [Ping timeout: 246 seconds]