narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
montjoie has quit [Ping timeout: 246 seconds]
montjoie has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
hexdump0815 has quit [Ping timeout: 250 seconds]
hexdump0815 has joined #linux-amlogic
Lyude has joined #linux-amlogic
lyudess has quit [Read error: Connection reset by peer]
hays has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 264 seconds]
luka177 has joined #linux-amlogic
f_ has joined #linux-amlogic
<xdarklight> hexdump0815: why would one need to poke a SAR ADC register for the MPLL clocks? very strange...
<xdarklight> hexdump0815: can you dump the SAR ADC clock registers from /sys/kernel/debug/regmap/(something with adc in the name)/registers
luka177 has quit [Ping timeout: 244 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
tsegers has quit [Ping timeout: 260 seconds]
tsegers has joined #linux-amlogic
luka177 has quit [Ping timeout: 258 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 244 seconds]
luka177 has joined #linux-amlogic
hexdump0815 has quit [Quit: WeeChat 1.9.1]
hexdump0815 has joined #linux-amlogic
<hexdump0815> xdarklight: that looks ... interesting :) - here are the adc registers: https://pastebin.com/raw/yd1StjeL
<xdarklight> hexdump0815: can you add "regmap_write(priv->regmap, 0x30, 0x3);" to the end of meson_sar_adc_probe() in drivers/iio/adc/meson_saradc.c and see if that changes anything?
<hexdump0815> xdarklight: i'll give it a try - thanks a lot
<hexdump0815> xdarklight: btw. - this is what i get if i boot v6.4.7 on the other box with rtw88: https://pastebin.com/raw/a99vNp8f
<xdarklight> hexdump0815: -110 is -ETIMEDOUT. do you have the SD104 mode enabled on the SDIO controller?
<xdarklight> *SDR104
<hexdump0815> xdarklight: it uses the default s905w settings, so maybe - which modes shall i disable maybe?
<xdarklight> hexdump0815: try the settings from meson-sm1-ac2xx.dtsi - so adding sd-uhs-sdr104; and use max-frequency = <200000000>;
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
<hexdump0815> xdarklight: what shall i say - with your meson_sar_adc_probe() addition the measured clock now is fine and audio playback seems to be working well :)
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
<hexdump0815> xdarklight: sd-uhs-sdr104; and max-frequency = <200000000>; did not change anything wrt rtw88
Daanct12 has joined #linux-amlogic
Danct12 has quit [Ping timeout: 252 seconds]
<xdarklight> hexdump0815: let's skip the rtw88 topic for now and focus on the GXLX clock problem. next step is to undo all previous debug changes to drivers/clk/meson and just change line 131 (which originally is: meson_parm_write(clk->map, &mpll->sdm_en, sdm > 0 ? 1 : 0);) to: meson_parm_write(clk->map, &mpll->sdm_en, 0);
<xdarklight> hexdump0815: with that change I'm interested in clk_summary and meson-clk-msr debugfs outputs from both of your boards
<xdarklight> hexdump0815: (you can keep the saradc change while testing this)
<lvrp16> I get the same problem as hexdump0815 with rtl8821cu on lwfingers branch
<xdarklight> lvrp16: someone also reported to me that rtl8821cu was not working for them on Friday but I had to refer them to the mailing list since I don't have much time and no rtw88 USB hardware. but I can't find any thread on the mailing list yet :/
<lvrp16> xdarklight: ok I will send some an email out as I found this issue yesterday. I can also ship some hardware if you would like.
<lvrp16> I recall it working before so I will also do a bisect later.
<hexdump0815> xdarklight: in which file should this change be done? - i assume clk-mpll.c but cannot find that line in there - this is v6.4.7 right now
<xdarklight> hexdump0815: ah sorry, that change should be done in clk-mpll.c
<xdarklight> hexdump0815: ah, my bad
<hexdump0815> xdarklight: which line would it be in v6.4.7? - looks like it changed as there are only other lines with sdm_en in there
<hexdump0815> oh - you already wrote it - sorry
<xdarklight> lvrp16: thanks for the offer but I currently have too many online and offline projects already. if Sascha Hauer doesn't have an RTL8821CU yet then you could offer him one, he's the one who has driven the rtw88 USB code upstream
vagrantc has joined #linux-amlogic
<hexdump0815> xdarklight: here are the results - audio is not smooth on both boxes now this way as measured amclk is not less off in the other direction: s905l2 https://pastebin.com/raw/2sH5XKAG - s905w https://pastebin.com/raw/jMYhWbXJ
<hexdump0815> btw. we can debug rtw88 whenever you like as i do not really need it, but debugging is ok if you are interested in it - just ping me whenever you want
<xdarklight> hexdump0815: so that bit in the SAR ADC register space at least does not control SDM (which is good, as this is a major part of MPLL clock's concept). but it means that it's totally unclear why that bit is even there in the ADC register space or what exactly it does. we'll have to ask Amlogic about this
<xdarklight> hexdump0815: I'm heading to bed now. let's continue the discussion tomorrow
<f_> lvrp16: you keep wanting to send boards :)
<f_> Thanks again BTW
<hexdump0815> xdarklight: sure - good night - there is no hurry from my side and i now even have a hack to make audio work, so we can debug this completely at your preferred pace
f_[xmpp] has joined #linux-amlogic
<lvrp16> f_: this is a wifi dongle. Rtl8821cu recently done by oengutronix
<lvrp16> Pengutronix
<f_> Ah
naoki has joined #linux-amlogic
f_ has quit [Ping timeout: 260 seconds]