Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
colinsane has joined #linux-sunxi
colinsane1 has joined #linux-sunxi
colinsane1 has quit []
colinsane has quit [Ping timeout: 480 seconds]
<apritzel>
iscle: I think I fixed it: DMA is always built in for sunxi, but only enabled if the DT DMA properties are found and use_dma is not set to 0 on the command line
<apritzel>
need to test that tomorrow ...
colinsane has joined #linux-sunxi
colinsane has quit []
apritzel has quit [Ping timeout: 480 seconds]
colinsane has joined #linux-sunxi
colinsane1 has joined #linux-sunxi
colinsane has quit [Ping timeout: 480 seconds]
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
Schimsalabim has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
flyback has quit []
flyback has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
gsz has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
hentai has quit [Quit: SIGTERM]
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
<gamiee_>
apritzel : iscle was there last time 2 days ago, let's hope he will arrive soon
apritzel has joined #linux-sunxi
gsz has joined #linux-sunxi
colinsane1 has quit []
colinsane has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
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-]
Schimsalabim has quit [Ping timeout: 480 seconds]
colinsane1 has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
colinsane has quit [Ping timeout: 480 seconds]
aggi_ has joined #linux-sunxi
aggi has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
<gamiee>
also, he seems to use web irc. If he will not come here in few days, I will try to send him an email
apritzel has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
igraltist has quit [Remote host closed the connection]
ftg has joined #linux-sunxi
igraltist has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
aggi_ has quit []
aggi has joined #linux-sunxi
apritzel has joined #linux-sunxi
iscle has joined #linux-sunxi
<iscle>
gamiee_: i'm here! yes, I use the webchat, is there any linux-friendly client for this?
<iscle>
as for the USB DMA, I played a lot with it but could not really see if it was indeed working or not, the transfer speeds and CPU usage did not change... It was weird, and the user manual does not really give much information on it. Most of the work I did was by looking at tina code and trial/error
<iscle>
I did not clean it up or submit it because I could not really test it
<iscle>
apritzel: I can take another look at USB DMA code if you think it's of interest for people, and try to figure out what was wrong with it and eventually merge it
<apritzel>
iscle: yeah, I got kernel oopses when testing USB mass storage with that, swiotlb related
<apritzel>
iscle: but thanks for the info, I wasn't sure if it was supposed to work
<apritzel>
iscle: an IRC client for Linux you mean? There are more than you can probably count ;-) I use hexchat, for instance, some people also use pure text GUI clients in a terminal
<iscle>
apritzel: I mainly abandoned it because of the lack of info and me not knowing how to properly test/benchmark it. However, I do really want to get it working, as some of my projects would greatly benefit from it. Maybe I can give it another go when I have some more time
Schimsalabim has joined #linux-sunxi
iscle has quit [Quit: Page closed]
apritzel has quit [Ping timeout: 480 seconds]
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
iscle has joined #linux-sunxi
iscle has quit []
iscle has joined #linux-sunxi
iscle has quit []
iscle has joined #linux-sunxi
megi has quit [Quit: WeeChat 4.6.1]
megi has joined #linux-sunxi
apritzel has joined #linux-sunxi
<gamiee_>
iscle : I would definitely have usage for USB Gadget DMA, and I can test it on H618
bauen1 has joined #linux-sunxi
bauen1_ has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest16726
dsimic has joined #linux-sunxi
Guest16726 has quit [Ping timeout: 480 seconds]
ungeskriptet has quit [Remote host closed the connection]
Schimsalabim has quit [Ping timeout: 480 seconds]
ungeskriptet has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
<apritzel>
so it's the code in sun8i-emac that queries the efuse, and then hunts for a PHY node with respective boolean property?
<apritzel>
that doesn't look it would be accepted, tbh, your commented phys list with phy-names looks more promising
<Lightsword>
apritzel, yeah, that's more or less how it works, I could tweak it to use the phy-names list instead for the selection logic if that makes more sense
<Lightsword>
apritzel, the logic is conditional upon the ac300 nvmem value existing in the device tree so it shouldn't cause issues for existing devices
<Lightsword>
the hunt for the boolean property approach I figured was more similar to how some of the stmmac mdio address scanning modes work, except it scans based on a boolean instead of the mdio device being on the bus
<apritzel>
the nvmem reference in the MAC node and the respective code in the MAC driver to query this sound good, but the rest won't fly on the list
<apritzel>
it's a shame Ethernet DT nodes only allow a single PHY - using phy-handle, not phys (like HDMI or USB)
<apritzel>
so not sure using the nvmem content to select one of two PHYs (enumerated in the PHYs property) would be accepted, also since both apparently use the same MDIO address
<Lightsword>
apritzel, so luckily the ac200 can use MDIO address 1 or 0, the ac300 needs MDIO address 0 however, so we can deconflict them by simply using MDIO address 1 always for the ac200 and MDIO address 0 for the AC300
<apritzel>
isn't 0 the broadcast address, so any PHY answers on this? And the PHY address to use must actually be programmed into the I2C device (EPHY_CTL register at 0x6000[8:4])
<Lightsword>
apritzel, I think address 16 might be the broadcast address, well at least on the AC300 it seems
<apritzel>
ah, no, I now remember: MDIO address 16 is to reach the AC300 control registers, the PHY is apparently on a customisable address "~PKG[2:0]", defaulting to 0
<apritzel>
(customisable at packaging time, so out of reach for us)
ftg has quit [Read error: Connection reset by peer]
<apritzel>
I hate to break it to you, but this U-Boot code is completely unacceptable, that's probably based on jernej's early HACK back in the days, that he used to just confirm it's working?
<apritzel>
U-Boot should use the same DT approach as Linux, those hard coded clocks and I2C symbols are just for the SPL
<Lightsword>
apritzel, yeah, I'm aware, it's kinda a combination of a bunch of random hacks I found on github that I managed to get working
<Lightsword>
I figure best to figure out the device tree structure for Linux then port it to uboot.