mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
vagrantc has quit [Quit: leaving]
stikonas has quit [Quit: Konversation terminated!]
Daanct12 has joined #linux-rockchip
<macromorgan> early on I had logic that fell back to the "old" way of doing things when the first bank didn't end at 0xf0000000. I wonder if I should go back to that...
<macromorgan> dumb question, but what if I just took the banks as they were and explicitly hard coded holes for 0x0 to 0x20000 and 0xf0000000 to 0xffffffff. Would anything upstream or downstream care about memory holes "where the banks don't always go"?
Daanct12 has quit [Quit: WeeChat 4.2.1]
Daanct12 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
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
Stat_headcrabed has joined #linux-rockchip
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
raster has joined #linux-rockchip
warpme has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
<Kwiboo> macromorgan: yes, we always need to exclude 0-2 MiB and SDRAM_MAX_SIZE - 4 GiB
Stat_headcrabed has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsimic has quit [Ping timeout: 246 seconds]
dsimic has joined #linux-rockchip
jelly has quit [Read error: Connection reset by peer]
warpme has joined #linux-rockchip
Daanct12 has quit [Quit: WeeChat 4.2.1]
Daanct12 has joined #linux-rockchip
psydroid has joined #linux-rockchip
werdahias has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Read error: Connection reset by peer]
naoki has quit [Quit: naoki]
System_Error has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Daanct12 has quit [Quit: WeeChat 4.2.1]
Stat_headcrabed has joined #linux-rockchip
macromorgan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
macromorgan has joined #linux-rockchip
jelly has joined #linux-rockchip
werdahias has quit [Remote host closed the connection]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
<macromorgan> Kwiboo: Right, but what I'm getting at is would it be appropriate to set the RAM bank as it is (without reservations), and then simply hard code reserved/nomap blocks. So your bank would start at 0x0 (instead of 0x20000), but there would be a reserved node telling you not to mess with 0x0 - 0x20000 (or 0xf000000 0xfffffff)
<macromorgan> dumb down the logic, so to speak
<macromorgan> like for the 8GB board I dont' know what would happen if we simply had 0x0 - 0x20000000 open, and then put our reserved nodes in
Livio has joined #linux-rockchip
<qschulz> macromorgan: do you think we can have a reserved memory node in <SoC>-u-boot.dtsi?
System_Error has quit [Ping timeout: 260 seconds]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
raster has joined #linux-rockchip
Livio has quit [Ping timeout: 260 seconds]
raster has quit [Quit: Gettin' stinky!]
<macromorgan> setting it in the U-Boot tree doesn't appear to have worked (reserved memory). I'll see what other options I have...
<qschulz> macromorgan: we would probably need to read those reserved-memory nodes from U-Boot though
<macromorgan> yeah, that's what I'm trying to look at
<macromorgan> basically a way to define them as reserved in U-Boot and pass that along to Linux proper
<macromorgan> maybe just set the reserved memory in the u-boot.dtsi files for the rk3568 and rk3588, then do a SoC specific carveout using fdtdec_add_reserved_memory
<macromorgan> when I set the reserved memory in the u-boot.dtsi I can clearly see the bdinfo shows it as reserved
stikonas has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
Livio has joined #linux-rockchip
hanetzer has joined #linux-rockchip
<macromorgan> qschulz... what happens to your boot if you temporarily put reserved memory nodes in your Linux DT to prevent it from reading the spots it's not supposed to. Basically from 0 to 0x1fffff and another one from 0xf0000000 to 0xffffffff?
<qschulz> macromorgan: isn't this what U-Boot is supposed to do to the DT passed to Linux anyway?
<macromorgan> I'm testing putting the reserved-memory in U-Boot under the rk3588s-u-boot.dtsi and using the ft_system_setup() to set the stuff
<macromorgan> What I'm trying to do is avoid a bunch of unnecessary processing... if U-Boot can pass the memory banks as-is from the ATAGS and we can simply create reserved nodes that are always true it should work for all cases. Otherwise we'll have to make special logic for the 8GB boards
<macromorgan> every board I have on hand the ATAGs creates a correct hole though at 0xf0000000, I'm trying to see how it works on your board that doesn't
<qschulz> macromorgan: it's Kwiboo who has an issue with their board, not me (though I haven't gotten my hands on 8/16GB RK3588 devices yet....)
<macromorgan> sorry, got it mixed up
vagrantc has joined #linux-rockchip
Livio has quit [Ping timeout: 256 seconds]
Livio has joined #linux-rockchip
raster has joined #linux-rockchip
Livio has quit [Ping timeout: 268 seconds]
stikonas has quit [Remote host closed the connection]
<macromorgan> okay that didn't work (just setting the nomap stuff). I think I'll just skip the new logic unless the size of the first bank is equal to the max_ram stuff.
<Kwiboo> macromorgan: sounds like a good option, I have been too busy with my day job to test anything yet, but should have some time to test tomorrow
<macromorgan> okay... I'm trying to put together another revision with the input from the mailing list
<macromorgan> I'm going to skip the logic in the event that the first RAM bank is bigger than SDRAM_MAX_SIZE
<macromorgan> that way it will fall back to the old way of doing things
<macromorgan> I honestly believe (unless there's a reason I don't know about) that 8GB thing is a bug in the ram init code
<macromorgan> because the RAM init code also costs you 256MB of RAM on an 8GB board that it doesn't cost you on a 16GB board
stikonas has joined #linux-rockchip
<Kwiboo> I fully agree, the reported banks on 8gb rk356x seem like a bug, it is the only one that behaves differently
System_Error has joined #linux-rockchip
<diederik> One of the 'latest' commits in the rkbin repo fixed an issue with 6GB, maybe 8GB is next? ;)
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Read error: Connection reset by peer]
System_Error has joined #linux-rockchip
hanetzer has quit [Ping timeout: 256 seconds]
Perflosopher has quit [Ping timeout: 252 seconds]
Perflosopher has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
eballetbo has quit [Quit: Connection closed for inactivity]
paulk has quit [Ping timeout: 256 seconds]
paulk has joined #linux-rockchip
paulk has joined #linux-rockchip
paulk has quit [Ping timeout: 268 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
paulk 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
vagrantc has quit [Quit: leaving]
Spirit532 has quit [Killed (NickServ (GHOST command used by Spirit5321))]
Spirit532 has joined #linux-rockchip