<loki666>
it works, with some hiccups... Not critical. But perfs of libMali are much better
<loki666>
For the use case of the Anbernic devices, 3D is not such a big deal, honestly. So we'll deal without fine for 16bit consoles emulation. But it would have been great to have libmali
<apritzel>
I don't think libmali has a real future with mainline anyway
<loki666>
Thanks anyway
megi has quit [Quit: WeeChat 4.4.3]
apritzel has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]
enthd has joined #linux-sunxi
parthiban has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<wens>
it seems resources have been reallocated to panthor, and so panfrost got sort of put on the back burner with regards to getting more improvements
vvveapon has left #linux-sunxi [#linux-sunxi]
gsz has joined #linux-sunxi
apritzel has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
aggi has quit [Quit: zzz]
aggi has joined #linux-sunxi
apritzel has joined #linux-sunxi
<szemzoa_>
is the sun50-iommu driver working? I can't register more than one device behind iommu. The first one is registering (I can't test currently if it's works or not), and all the other devices fail to register: https://pastebin.com/CmZxbkr1
Schimsalabim has quit [Read error: Connection reset by peer]
<apritzel_>
yes, that's a big problem with the vendor DT: no voltages
<apritzel_>
my box arrived yesterday, and I dumped /sys/kernel/debug/regulator/regulator_summary, but didn't find time yet to convert that
<warpme>
I was trying to set L143/L270 to i.e 990mV to be sure cpul/cpub supplys are not too low - but this not helps...
<apritzel_>
warpme: btw: did you figure out what the second set of UART pins is for?
<warpme>
oh no. now i'm trying to get minimal boot with usb-eth to incrementally play with dt (using network to upload dtb to device (instead of constant remove/inserd sd card with changed dtb)
<apritzel_>
warpme: you would need to change some parts, for instance there is no USB-OTG, so dr_mode should be host
<apritzel_>
and I saw 5V on the USB port even in FEL, so I guess there are always powered
<warpme>
oh - for sure dt is really crappy now! I stuck with boot softlookups so no any corrections yet in dt...
Raqbit339 has quit []
Raqbit339 has joined #linux-sunxi
<apritzel_>
do you get further if you remove USB, and maybe even the regulators? You wouldn't need them for SD card/eMMC, and probably not even for USB, if the ports are really always-on
<apritzel_>
warpme: also: do you know of any mainlining efforts for the AIC8800 WiFi chip? Quick googling just turned up the usual crappy vendor driver repos
<warpme>
re h728 dt - ah ok - let me try this... re: aic8800 - well - i back-ported it to 6.12.3 (sdio and usb variants). sdio works well. usb is a bit unstable.....
<apritzel_>
with "back-ported" you mean ported some vendor code to work on mainline?
<warpme>
re h728 very minimal dt: may you hint me what parts i can remove (for testing)?
<warpme>
re aic8800 - yes: making it compiling+working and also making a bit less spamming kernel logs...
<apritzel_>
remove reg_vcc12v and reg_usb_vbus, set dr_mode to "host", drop everything from usbphy except status
<apritzel_>
(and fill the gaps created by those removals)
<apritzel_>
in a second step you could remove the whole r_i2c node, drop the pio node
<apritzel_>
also the SD card vqmmc looks wrong, why does it point to a 1.8V regulator?
<apritzel_>
macromorgan: what's your estimate on fixing up the PLATFORM_DEVID_AUTO issue? Can you do this in a bullet-proof way this week?
<apritzel_>
I am asking because otherwise we should revert the patch, to buy us more time for a proper solution
<warpme>
for vqmmc: i deduce this from vendor dt: L5283/5284 are pointing to L4738. So on cldo1 on axp717 in my dt.
<apritzel_>
macromorgan: it's not strictly needed atm, since only the A523/T527 boards come with two regulators, and they are not supported yet
<apritzel_>
warpme: that's all smoke and mirrors. The SD card is supplied by an internal switch controlled by some PIO registers. We don't support it in mainline yet (I have some patches, but they don't work)
<apritzel_>
warpme: so you can just drop the vqmmc property, the kernel will then look at vmmc
<warpme>
apritzel: well - after removing reg_vcc12v, reg_usb_vbus, setting dr_mode to "host", dropping everything from usbphy except status - for 5 boots i got 100% successful boots + stable telnet on booted board :-) Many thx! So now time to get onboard Eth. For gmac i found: https://github.com/AvaotaSBC/linux/tree/main/bsp/drivers/gmac I see vendor dt L7014 points to sunxi-gmac and this bps driver https://github.com/AvaotaSBC/linux/blob/bbdd2
<warpme>
ee80232fa9ed031a85b50b71fb9e7e1445a/bsp/drivers/gmac/sunxi-gmac.c#L3468 acting like sunxi-gmac....
dsimic is now known as Guest2532
dsimic has joined #linux-sunxi
Guest2532 has quit [Ping timeout: 480 seconds]
colinsane has quit [Ping timeout: 480 seconds]
<apritzel_>
please don't waste any time on those vendor drivers
<apritzel_>
I compared the docs and they seemed very similar, if not identical to the previous one
<apritzel_>
but there must be some tiny detail, as it doesn't work easily when pretending to be an A64 compatible GMAC
<apritzel_>
hint hint: nice topic for anyone to dive into ...
<warpme>
ah a523 gmac is thing i not yet investigated... So should try with existing in-kernel gmac driver (in other words: is a523 gmac similiar enough to existing in-kernel gmac to go with)?
<macromorgan>
I don't know... thus far I've half-assed a few solutions but they don't work. I'm thinking maybe I just document that if you're using the ADC device then you map individual channels? I have to try that this week.
gsz has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<apritzel_>
warpme: yes, I think I already compared the registers, and they looked the same. But there must be something missing, as it didn't work for me, on the Avaota at least
<apritzel_>
an added complication is that the box has a Maxio MAE0621 PHY. I didn't find an upstream driver for it, but some nasty out-of-tree bits again. Not sure how much we need, but that's something to look out for
<apritzel_>
macromorgan: I was afraid you were saying that, which sounds like more we should revert that patch in mainline, then bring it back once we have a solution that people agree on
<macromorgan>
it feels to me like the way it was done in the past was wrong honestly, and this change you guys did just broke that wrong behavior
<macromorgan>
it was looking at the parent device for the ADC channel, but the parent device is the MFD which isn't an ADC device
<macromorgan>
just happenstance it worked I guess
<macromorgan>
so far the solution I was working on was to add an additional routine to the USB and battery drivers that looked for the ADC device. Then, instead of calling devm_iio_channel_get() we'd call devm_fwnode_iio_channel_get_by_name() (because that function doesn't assume the device for devm purposes is the ADC device)
<macromorgan>
I didn't get it working yet, but I think I was close last week
<apritzel_>
yes, that it was broken before and just happened to work is also my hunch
<apritzel_>
warpme: well, question is: has this been reviewed, tested, sent to the list? It's not much better what Allwinner typically proposes otherwise, tbh ....
<apritzel_>
Was it used in some Rockchip devices (I guess TV boxes) as well?
<warpme>
idk :-( But at least it is kind of starting point maybe....
warpme has quit []
ftg has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
rsdcampos has joined #linux-sunxi
rsdcampos has quit []
ftg has quit [Read error: Connection reset by peer]
ftg has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
<enthdegree>
presumably (I will find out soon) the only significant change between the era's source and the published ones is its kernel config, which can be extracted from a working device
<enthdegree>
There's a discussion on github about the eink driver I can't quite understand... will describe below
<enthdegree>
The discussion spans before/after the publishing of that kernel source I linked above. Before publication they were trying to reverse-engineer this driver they called proprietary, "epdc.ko" (I'm guessing "epaper display controller")
<enthdegree>
after publication of kernel-b288 they identify that epdc.ko significantly matches that source