ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Kirby64 has quit [Ping timeout: 480 seconds]
<apritzel> MasterR3C0RD: trying to merge and polish your A133 DRAM code (from the allwinner-a133 branch in your github), and scratching my head about some small details
<apritzel> don't know how to comment on just a file in github, so trying this here:
<apritzel> in mctl_auto_detect_dram_size(), the range of rows and cols seems to be off by 1 when compared to jernej's latest code (now in mainline's dram_dw_helpers.c): is this expected?
<apritzel> also in the same function, the alleged loop over the banks is not really a loop, isn't it? for (banks = 2; banks < 3; banks++)
<apritzel> and in auto_detect_ranks(), found_config doesn't seem to be used?
<MasterR3C0RD> apritzel: Don't remember all the details off the top of my head, but I probably based rows/cols ranges off whatever I saw in boot0, and the ranks loop was me trying to be "consistent" for my own understanding; likely would've been cleaned up later
<apritzel> ok, thanks, doing those clean ups now, but was wondering if I was missing something
<MasterR3C0RD> Not sure if bank groups are handled by the mainline helpers yet (I'll take a look later), so probably won't be able to shift it over completely
<MasterR3C0RD> And as for auto_detect_ranks, might've been a leftover from refactoring
<apritzel> also trying to adapt mctl_auto_detect_dram_size() to the latest mainline changes, to at least come close to the generic helper, as indeed that's missing some code
<apritzel> so using this larger pattern instead of the simple check, as I now suddenly see our infamous double detection again
warpme has joined #linux-sunxi
<MasterR3C0RD> I'm sure you noticed it already, but will need to pull out the simple test, as I had pulled that and modified it for debugging from somewhere else
<apritzel> MasterR3C0RD: and is this correct: it configures say config->cols to 12, but then loops only over 8 to 11?
<MasterR3C0RD> Apologies for not being able to work on upstreaming the last few months; life likes to keep happening :(
<MasterR3C0RD> Ah now that I'm looking at the code, I likely messed up on both of those and they should be <=
<apritzel> don't worry, I am always happy if people have a real life and don't need to spend their time on pathetic SoCs ;-)
<MasterR3C0RD> Oh, actually I think I was a little more clever than I should have been
<apritzel> though jernej's code does the same, wondering if this is a bug or a feature, as in: if the but-last doesn't match, it must be the last, no need for testing?
<MasterR3C0RD> Essentially if no other configuration is found, loop ends at 12
<apritzel> right
<MasterR3C0RD> Yeah and that would be the same for the banks for loop, if it doesn't succeed with banks = 2, it will exit with banks = 3
<apritzel> ah
<MasterR3C0RD> I wonder what the compiler turns that into
<apritzel> btw: I made some adjustments to mainline (struct sunxi_ccm_reg and sunxi_prcm_reg are gone now), will put my changes somewhere ASAP, so you don't have to redo this
warpme has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> apritzel: Oh, and if you want me to sign off anything from the later commits, just let me know. Won't be able to do it tonight or tomorrow, but should have a chance Sunday
<apritzel> MasterR3C0RD: yes, please, that's crucial for mainline. It would be as easy as to just reply to the patch of yours I posted, and add your signature
<apritzel> those are the changes for the DRAM code that are ready: https://github.com/apritzel/u-boot/commits/a133-dram-WIP/
<apritzel> without the last two patches it worked flawlessly for me on the Liontron board (LPDDR4) in the last weeks
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
ftg has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
colinsane has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
wingrime-ww has quit [Read error: Connection reset by peer]
cp-- has joined #linux-sunxi
cp- has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
nashpa has joined #linux-sunxi
dliviu has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
bauen1 has joined #linux-sunxi
ftg has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
<apritzel> Hey, can anyone with a D1 or T113 board please test this patch? https://lore.kernel.org/linux-sunxi/20250501120631.837186-1-andre.przywara@arm.com/
<apritzel> this should double the SD card performance, but it needs either a review or a least some Tested-by:
<spawacz> I can test it. What were the make options to cross compile, again? ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- , correct?
<apritzel> yes (and thanks)
warpme has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
nashpa has quit []
Kirby64 has joined #linux-sunxi
dsimic is now known as Guest15549
dsimic has joined #linux-sunxi
Guest15549 has quit [Ping timeout: 480 seconds]
dliviu has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
psydroid has quit []
apritzel has quit [Ping timeout: 480 seconds]
<wigyori> aperezdc: got a few t113 boards so i can test it too if need-be
<wigyori> doh, later
<spawacz> Any specific commands to check or a timed dd followed by a sync will suffice?
<spawacz> The thermal sensor works! Bluetooth however does not - I loaded hci_uart module, the configs CONFIG_BT_HCIUART=m and CONFIG_BT_HCIUART_BCM=y are set
chewitt has quit [Quit: Zzz..]
<electricworry> exit
<electricworry> I've been away from here for a while. Of the top of your heads, do you know the status of graphics on H616/H618? A few months back there were some HDMI patches pending in tokyovigilante's fork, IIRC.
<spawacz> Oh bluetooth works as well - I forgot to set the HCIUART_RTL config
Kirby64 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> electricworry: there has been a new post just a few days ago - though that's still without HDMI: https://lore.kernel.org/linux-sunxi/20250507201943.330111-1-macroalpha82@gmail.com/T/#u
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.6, revision: 5.2.6+git-7614-6f23368f1, build type: debug, sources date: 20160102, built on: 2025-03-30 13:34:35 UTC 5.2.6+git-7614-]
hentai has quit [Read error: Connection reset by peer]
warpme has quit [Quit: Textual IRC Client: www.textualapp.com]
psydroid has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
<wigyori> apritzel: got a few t113 boards so i can test it too if need-be (your mmc patch)
<apritzel> wigyori: thanks! "hdparm -t /dev/mmcblk0" should give a good indication
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi