rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
<apritzel> yup, I see all 4 serial ports now
<apritzel> so it's status = "disabled" for ohci0 and ehci0
maciejjo has quit [Ping timeout: 246 seconds]
specing_ has joined #linux-sunxi
maciejjo has joined #linux-sunxi
specing has quit [Ping timeout: 260 seconds]
specing_ is now known as specing
Mangy_Dog has quit [Remote host closed the connection]
<apritzel> pnill: please not that this is a hack
<apritzel> pnill: if you have a micro-USB B port, you should not need that
<apritzel> just define dr_mode = "otg" *and* set the id_det gpio
<apritzel> compare to sun50i-h5-orangepi-pc2.dts
warpme_ has quit [Quit: Connection closed for inactivity]
apritzel has quit [Ping timeout: 240 seconds]
jstefanop has quit [Remote host closed the connection]
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 268 seconds]
<tuxd3v> megi: many thanks :)
<tuxd3v> is this work in linux-next?
chewitt has quit [Quit: Adios!]
<sunshavi> tuxd3v: But your olimex was kernel 4.14. Right?
<tuxd3v> no actually I am in kernel 5.7.0 I need to upgrade :)
<sunshavi> tuxd3v: ur Xorg.log show kernel 4.xx on debian stable
<tuxd3v> hmmmm
<tuxd3v> Linux OLime2 5.7.0 #5 SMP Thu Jun 4 04:16:23 WEST 2020 armv7l GNU/Linux
<sunshavi> ok
<tuxd3v> :)
<sunshavi> let me check ur Xorg.log again
<tuxd3v> but still need to upgrade it :)
<tuxd3v> I get around ~300fps give or take with vblank_mode=0 on glxgears
<tuxd3v> But glxinfo reports 0MB for the graphics memory... weird ..
<tuxd3v> since the memory is shared..
<sunshavi> tuxd3v: I was confused 'Build Operating System: Linux 4.19.0-16-armmp-lpae armv7l'
<tuxd3v> 4.19 :/
<tuxd3v> good eye :)
<tuxd3v> were do you saw that?
\\Mr_C\\ has quit [Quit: Ping timeout: 999,999,999 years]
<sunshavi> BTW: You still need xorg-server-git for avoiding. '(EE) AIGLX error: sun4i-drm does not export required DRI extension'
rzerres has quit [Ping timeout: 268 seconds]
<sunshavi> tuxd3v: I saw it on your Xorg.log. the one you posted on pastebin
<tuxd3v> ho...
rzerres has joined #linux-sunxi
<tuxd3v> you right.. I believe anarsoul saw from that that I was using mesa from 2018..
<tuxd3v> but bellow it has 'Current Operating System: Linux OLime2 5.7.0 #5 SMP Thu Jun 4 04:16:23 WEST 2020 armv7l'
<sunshavi> tuxd3v: probably Yes. then I prefered to be quite cos that is a very old kernel. But Now I realized we both were mistaken
<sunshavi> s/quite/quiet/
<tuxd3v> in the meantime I jumped to debian sid
<tuxd3v> :)
<sunshavi> congrats. my kernel is 5.11. next weekend I am going to move to 5.12
<tuxd3v> actually I am now reviewing my xorg log, and found this: Option "AccelerationScheme" "none"
<sunshavi> tuxd3v: I have the same on my Xorg.log
<tuxd3v> do you specify any acceleration method?
<sunshavi> none. I do not have xorg.conf
jstefanop has joined #linux-sunxi
<tuxd3v> (EE) AIGLX error: sun4i-drm does not export required DRI extension
<tuxd3v> but above I have :
<tuxd3v> (II) modeset(0): glamor X acceleration enabled on Mali400
<tuxd3v> :D
jstefanop has quit [Ping timeout: 246 seconds]
jstefanop has joined #linux-sunxi
<tuxd3v> I built the driver with -Dgallium-vdpau=disabled, I am just wondering if I should have enabled it..
<tuxd3v> nope, -Dgallium-vdpau=disabled is correct
<gnarface> you can disable AIGLX separately can't you?
<gnarface> in xorg you can anyway
<tuxd3v> I don't know how to do it..
<gnarface> tuxd3v: i think someone linked you an example in #linux-sunxi the other day
<gnarface> oh, that's here
<gnarface> hang on
<gnarface> oh, no, it doesn't have it
<tuxd3v> Option "AIGLX" "off"
<gnarface> but... yea
<gnarface> it's one line
<gnarface> you just add that to the ServerFlags section at the top
<tuxd3v> yeah, I will test without it :)
<gnarface> i learned that because elsewhere it was off by default for another hardware&driver combo. worth a try disabling it anyway
<tuxd3v> many thanks for the sugestion :)
<gnarface> no
<gnarface> np*
<gnarface> no problem
<gnarface> this was the link from a day or so ago
<gnarface> there looks like other stuff in here i think is non-default and probably important for making lima work
<gnarface> but i can't claim to have tested this, i just saved it because it looked promising
<gnarface> you may want to also consider checking and setting DRI1 or DRI2
<gnarface> or DRI3?
<gnarface> again, haven't tested this on pine64 hardware, but i've observed on some Intel integrated video devices you have to force either DRI2 or DRI3 because in certain cases it picks the wrong one
<tuxd3v> DRI3 :)
buzzmarshall has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
<anarsoul> gnarface: you can't disable AIGLX without loosing GLX :)
<anarsoul> but it wasn't backported into 1.20.x branch
matthias_bgg has joined #linux-sunxi
jstefanop has quit [Remote host closed the connection]
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<gnarface> ah, noted
apritzel has joined #linux-sunxi
jstefanop has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
jstefanop has quit [Ping timeout: 268 seconds]
gsz has joined #linux-sunxi
cmeerw has joined #linux-sunxi
cmeerw has quit [Ping timeout: 250 seconds]
ldevulder_ is now known as ldevulder
apritzel has joined #linux-sunxi
yann has quit [Ping timeout: 252 seconds]
apritzel has quit [Ping timeout: 246 seconds]
gsz has quit [Quit: Konversation terminated!]
tuxillo has quit [Remote host closed the connection]
tuxillo has joined #linux-sunxi
apritzel has joined #linux-sunxi
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 265 seconds]
warpme_ has joined #linux-sunxi
linkmauve has quit [Ping timeout: 260 seconds]
chewitt has joined #linux-sunxi
yann has joined #linux-sunxi
uis has quit [Quit: ZNC 1.7.5 - https://znc.in]
uis has joined #linux-sunxi
linkmauve has joined #linux-sunxi
elros1 has joined #linux-sunxi
eduardas has joined #linux-sunxi
tnovotny has joined #linux-sunxi
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 240 seconds]
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
gsz has joined #linux-sunxi
uis has quit [Quit: ZNC 1.7.5 - https://znc.in]
uis has joined #linux-sunxi
elros1 has quit [Read error: Connection reset by peer]
xes has quit [Ping timeout: 240 seconds]
Mangy_Dog has joined #linux-sunxi
elros1 has joined #linux-sunxi
specing_ has joined #linux-sunxi
specing has quit [Ping timeout: 240 seconds]
specing_ is now known as specing
mossroy has joined #linux-sunxi
jstefanop has joined #linux-sunxi
choozy has joined #linux-sunxi
jstefanop has quit [Ping timeout: 268 seconds]
mossroy has quit [Remote host closed the connection]
x5eb has joined #linux-sunxi
_0x5eb_ has quit [Ping timeout: 260 seconds]
_0x5eb_- has joined #linux-sunxi
x5eb is now known as _0x5eb_
_0x5eb_- has quit [Client Quit]
x5eb has joined #linux-sunxi
<tuxd3v> anarsoul, many thanks for that info seems that I need to wait and see if its backported :)
<tuxd3v> in the meantime glxgeras was able to achieve 330fps, last compilation during the night yelded a 5-10% increase in performance :)
<tuxd3v> ho.. without vblank
<tuxd3v> mali400
akaWolf has quit [Ping timeout: 268 seconds]
tnovotny has quit [Quit: Leaving]
sunshavi has quit [Ping timeout: 252 seconds]
lucascastro has joined #linux-sunxi
sunshavi has joined #linux-sunxi
jstefanop has joined #linux-sunxi
cmeerw has joined #linux-sunxi
yann has quit [Ping timeout: 260 seconds]
Mangy_Dog has quit [Remote host closed the connection]
matthias_bgg has quit [Quit: Leaving]
_0x5eb_ has quit [Quit: Goodbye!]
x5eb is now known as _0x5eb_
elros1 has quit [Remote host closed the connection]
Mangy_Dog has joined #linux-sunxi
lucas_ has joined #linux-sunxi
lucascastro has quit [Read error: Connection reset by peer]
dev1990_ has quit [Excess Flood]
dev1990_ has joined #linux-sunxi
aballier_ has quit [Ping timeout: 252 seconds]
aballier has joined #linux-sunxi
ldevulder has quit [Remote host closed the connection]
<apritzel> megi: I think I was somewhat dense, I now eventually get what you were saying about the H5 MMC clock: The x2 PLL source and the /2 postdiv cancel each other out
<apritzel> megi: which was probably Allwinner's idea in the first place: to keep the clock effectively the same
<apritzel> megi: but to allow a 400 MHz setting for HS400 (which I think would be 200 MHz clock, doubled by being DDR), a 600 MHz parent doesn't cut it
<jernej> apritzel: in summary, how much is there to fix in U-Boot and Linux regarding mmc clocks?
<apritzel> jernej: depends on how fast you want to go ;-)
<apritzel> I think a lot of stuff just fits "by chance"
<megi> :)
<jernej> DDR50 actually bothers me, because it doesn't work on some boards
<jernej> but it should
<apritzel> I have the DDR50 support isolated, that's very reasonable
<apritzel> it seems to work on the Pine64-LTS, but doesn't improve the transfer rate, because that's limited by MMIO
<megi> I tested DMA patches on quite a lot of SoCs
<apritzel> jernej: do you mean in Linux? I saw some issues lately as well: HS200 works on the Pine64-LTS, but DDR50 does not
<megi> H3, H5, H6, A83T, A64, mostly newer ones though
yann has joined #linux-sunxi
<apritzel> megi: I believe that, still I feel somewhat uncomfortable with that change
<jernej> apritzel: both, actually - it doesn't help if only one works but not the other
<megi> so it should work quite well, if you pick it up too
<apritzel> megi: mostly because it adds complexity
<megi> right
<apritzel> jernej: well, as I said: without DMA we don't need to bother with DDR50 in U-Boot, so we could keep it to SDR50
<apritzel> jernej: if any of the "advanced" modes causes trouble, I'd rather have 20 MB/s in U-Boot, but stable
<jernej> sure, me too
<apritzel> jernej: but I am still not finished with my MMC investigations, the MMC issue on the H616 is still unsolved
<apritzel> only in U-Boot, though, which makes me hopeful that I can find something by comparing registers
<jernej> that address shift is relevant only for DMA access?
<apritzel> jernej: yes
<apritzel> also the 13bit DMA limit for MMC2 on A64 & later
<apritzel> which was the reason that we didn'
<apritzel> didn't need to differentiate between the SoCs
<apritzel> it's not a big problem, but the fact that we need MMC in the SPL doesn't simplify things
<jernej> you could abuse bootrom for MMC in SPL :)
<jernej> maybe
<megi> hmm?
akaWolf has joined #linux-sunxi
<megi> call into bootrom functions? :)
<jernej> yes :)
hlauer has joined #linux-sunxi
<jernej> I can't remember where I heard that, maybe for some Rockchip SoC
<jernej> but that would mean running SPL in 32-bit mode
<megi> not sure about bootrom revisions
<megi> are there multiple revisions on the same SoC over time?
<jernej> I don't know
<jernej> it's safer to reimplement it
<apritzel> jernej: I am not sure we need less slower, more complicated, unsafer and unfixable ;-)
<apritzel> (referring to using the BROM)
<megi> :D
ldevulder has joined #linux-sunxi
eduardas has quit [Quit: Konversation terminated!]
cmeerw has quit [Ping timeout: 250 seconds]
cmeerw has joined #linux-sunxi
gaston1980 has quit [Ping timeout: 240 seconds]
tuxd3v has quit [Read error: Connection reset by peer]
tuxd3v has joined #linux-sunxi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xes has joined #linux-sunxi
uis has quit [Quit: ZNC 1.7.5 - https://znc.in]
<apritzel> megi: the Pinephone dtsi forces USB0 to peripheral mode (which broke with my "fix" for adding the "phys" property to ohci0/ehci0)
uis has joined #linux-sunxi
<apritzel> megi: is there any reason OTG doesn't work? no switchable bus power? ID det not working?
<megi> it does work, it's just not mainline
<anarsoul> it's usb type c, so it needs a driver
<megi> there's no id det
<megi> it's type-c
<megi> id det is done in software in the end
<apritzel> right (need to read up on type C detection)
<megi> here's the out-of-tree code https://megous.com/git/linux/log/?h=anx-5.12
<megi> it communicates via typec0_dr_sw
<megi> "usb-role-switch"
<megi> that implements it
<apritzel> so "role switch" is a basically an ID DET pin on steroids? As in: information provided by a more complex device?
<apritzel> and this is needed for USB C because it's not just a simple pin anymore?
xes has quit [Quit: bye..]
<megi> it's just a way to tell the phy what the role should be
<megi> from other drivers in the kernel
<megi> yes
<megi> for type-c the role is determined via some SW negotiation
<megi> and can be changed from either side
<megi> via sending messages over CC pins
xes has joined #linux-sunxi
lynxis has quit [Quit: No Ping reply in 180 seconds.]
<apritzel> so there is communication over the CC pins?
<megi> yes
xes has quit [Client Quit]
<megi> bi-directional
<megi> either side can ask for a role switch
<megi> either data role or power roles
lynxis has joined #linux-sunxi
<megi> so some other driver will handle it and will tell the phy driver to set a particular roles after the negotiation ends
<megi> and the other driver si anx7688 in pinephone's case
<apritzel> ah, so that's HDMI->Type C, plus PD and role negotiation?
xes has joined #linux-sunxi
<megi> yes
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
dev1990_ has quit [Ping timeout: 260 seconds]
dev1990_ has joined #linux-sunxi
gsz has quit [Ping timeout: 265 seconds]
netlynx has quit [Quit: Ex-Chat]
uis has quit [Quit: ZNC 1.7.5 - https://znc.in]
uis has joined #linux-sunxi
choozy has joined #linux-sunxi
jstein has joined #linux-sunxi
buzzmarshall has joined #linux-sunxi
megi has quit [Quit: WeeChat 3.1]
megi has joined #linux-sunxi
cmeerw has quit [Ping timeout: 246 seconds]
<anarsoul> tuxd3v: fyi https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/666 was merged into xorg-server-1.20.x, so aiglx error message should be gone with next xorg-server release
<tuxd3v> anarsoul, many many thanks :)
<tuxd3v> I will cross finger for it to be released soon to my distro :)
<[TheBug]> cross your fingers, your toes and twitch your nose.... just don't do it while you're in dispose
akaWolf has quit [Ping timeout: 260 seconds]
hlauer has quit [Ping timeout: 260 seconds]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<apritzel> megi: jernej: hah! 43706880 bytes read in 1007 ms (41.4 MiB/s)
<megi> :)
<megi> what mode? :)
<apritzel> MMC high speed @ 8/bit 52MHz, so out of theoretically 52 MB/s
<apritzel> without DMA!
<megi> nice :)
<apritzel> I figured we read one word from the FIFO, then read the status register, then read the next word ...
<apritzel> but the status register actually has a count of available words
pnill has quit [Read error: Connection reset by peer]
<megi> great!
pnill has joined #linux-sunxi
<apritzel> so I now read the status register, then read <n> words in a tight loop, then check the status again
<apritzel> now I will pull in your DDR enable patch and see what it does
<apritzel> for the clock doubling: I figured that's not really useful, so I just always read the base rate of PLL6, and use that
<apritzel> for the new timing modes, that's only half of the actual rate, but we never consider the postdiv anyway, so that cancels out
<megi> btw, while playing with this I accidentally doubled the SD card clock and it still worked, just at twice the speed :)
<apritzel> yeah, I saw this before
<apritzel> in Linux, on the H616
<megi> the card is made for much faster clocks anyway
<apritzel> indeed
<megi> just at slightly lower voltages
<megi> and different timings
<apritzel> and there are some indications that some modes can also work on 3.3V
<megi> but I guess tolerances are not that tight
<apritzel> indeed, it's effectively overclocking
<megi> yes
<apritzel> might be lucky with decent cards
<megi> kinda tempting to just sacrifice one of my sandisks to see how stable this can be longerterm
<apritzel> I guess for a particular card it should be fine, just not for those cards you grab at the till in the supermarket or from some random eBay auction
<megi> yeah, just like with any other overclocking
<apritzel> btw: the H616 supports switching portF to 1.8V, and I did some experiments on the OPi Zero 2, with the SD voltage switch protocol
<apritzel> I got somewhere, I saw the card ack'ing the 1.8V request, and measured 1.8V eventually
<apritzel> but then it didn't work
<apritzel> the pullups on the CMD line are towards a fixed 3.3V, I just hope that doesn't spoil it
sunshavi has quit [Read error: Connection reset by peer]
sunshavi has joined #linux-sunxi
jelly has quit [Remote host closed the connection]
jelly-home has joined #linux-sunxi
jstein has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft1 has quit [Ping timeout: 252 seconds]