mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
<macromorgan> diederik: CMA? Should only be a 256MB hole that we know of.
<macromorgan> Kwiboo: I was doing a grep to find 3588 boards that have holes defined so I can remove them and let the auto-detect find them instead. Sounds like since 356x can't do more than 8GB we don't have any existing hole carveouts to remove
HeyMeco has joined #linux-rockchip
<HeyMeco> Hey everybody I was connecting different PCIe devices to RK3588 and with an Nvidia GPU Linux ignores the 64-bit pref window and also wants 16 MB of 32-bit memory for BAR0 which is split into different subregions like for I/O space in the current mainline dts. Dmesg and other infos are here https://github.com/HeyMeco/Rockchip-pcie-devices/issues/2 .
<HeyMeco> Any ideas on how to get it working?
<macromorgan> also when I kill the holes, should I flat out delete the entire whatever-rk3588.c file for each board (since that's all they do)? I was just thinking to essentially delete all the reserved memory node stuff and make the main ft_board_setup() routine return 0.
<vagrantc> /18/20
HeyMeco has quit [Quit: Client closed]
<diederik> macromorgan: the default value for CMA on Debian is 64MB
<diederik> and then still, doesn't it reserve a piece of RAM and thus should not be subtracted from the 8GB?
<diederik> "Memory: 3861596K/8124416K available (14336K kernel code, 3022K rwdata, 10352K rodata, 7552K init, 628K bss, 290996K reserved, 65536K cma-reserved)"
Guest15 has joined #linux-rockchip
Guest15 has quit [Client Quit]
<macromorgan> well I'll push some new patches tomorrow, try them and see if it helps once I'm done
vagrantc has quit [Quit: leaving]
naoki has joined #linux-rockchip
naoki has quit [Quit: naoki]
erg has quit [Read error: Connection reset by peer]
erg has joined #linux-rockchip
erg has quit [Remote host closed the connection]
warpme has joined #linux-rockchip
kevery has quit [Quit: kevery]
kevery has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery1 is now known as kevery
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
<Kwiboo> diederik: what does U-Boot report on the "DRAM: 8 GiB (effective 7.7 GiB)" line?, possible linux reserve some more than just the 2+256 MiB that is reported reserved/not usable from U-Boot
<Kwiboo> macromorgan: I would remove the entire .c-file and probably also the Makefile, and I can test your patches as soon as you have something new to test
kevery has quit [Ping timeout: 268 seconds]
urja has quit [Read error: Connection reset by peer]
urja has joined #linux-rockchip
naoki has joined #linux-rockchip
naoki has quit [Client Quit]
dsimic has quit [Ping timeout: 260 seconds]
dsimic has joined #linux-rockchip
raster has joined #linux-rockchip
kevery has joined #linux-rockchip
<diederik> Kwiboo: Is there a way I can retrieve that from a running system? It's currently compiling a kernel ;)
Stat_headcrabed has joined #linux-rockchip
ungeskriptet7 has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 264 seconds]
ungeskriptet7 is now known as ungeskriptet
raster has quit [Quit: Gettin' stinky!]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevery has quit [Quit: kevery]
psydroid has joined #linux-rockchip
<diederik> Kwiboo: I'll check when the build is done which shouldn't be too long now (I hope). I'm running v2023.10 due to the network issue. Does that matter? I can make a newer one with the network commit reverted
leming_ has joined #linux-rockchip
leming has quit [Read error: Connection reset by peer]
leming_ is now known as leming
stikonas has joined #linux-rockchip
unkraut_ has quit [Remote host closed the connection]
stikonas has quit [Quit: Konversation terminated!]
unkraut has joined #linux-rockchip
vagrantc has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
raster has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<macromorgan> RAM bank code take 3 (or 2 or whatever): https://lore.kernel.org/u-boot/20240401181435.553351-1-macroalpha82@gmail.com/
<macromorgan> this is for both the RK356x and RK3588
ianh has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
Livio has joined #linux-rockchip
System_Error has quit [Ping timeout: 260 seconds]
System_Error has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<diederik> Kwiboo: It reports as you said: "DRAM: 8 GiB (effective 7.7 GiB)" (full log: https://paste.debian.net/1312713/)
Livio has quit [Ping timeout: 252 seconds]
<diederik> macromorgan: your 1st patch has 'V1' instead of 'V2' and I guess that's why b4 didn't find it?
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<macromorgan> damn
<macromorgan> always make a mistake :-(
Livio has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
dliviu has quit [Quit: Going away]
dliviu has joined #linux-rockchip
stikonas has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
Livio has quit [Ping timeout: 260 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
naoki has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
stikonas has quit [Quit: Konversation terminated!]