libera/#maemo-leste/ Wednesday, 2021-11-03

bencohnice blog update :)00:48
tmlindyeah great :) nice that terminal supports the vol keys now for font size, i did not know that06:23
mighty17[m]hey, is there anything special needed to make usb-otg work on omap4? also usb only works when connected before booting the device, ie if once device booted and then i connect it to my pc, pc doesnt detect it :( here's my dts https://paste.debian.net/1218005/07:25
freemangordonoh, VRFB was never ported to omapdrm :(07:30
freemangordonluckily the code is still there for omapfb07:33
tmlindmighty17[m]: you need to configure the usb phy driver for it, probably the legacy drivers/usb/phy driver still for that pmic08:15
mighty17[m]something like https://github.com/drebrez/linux/commit/55b64defc79f6c6ba4c8a9b95ad3fb6e96ac63fe?diff=split#diff-f4ce6be0e44247b3d208cb32128980f30a78e7577da984908b2630dfabd28ca7R197-R199 ?08:16
tmlindmighty17[m]: compare to the pandaboard dts files assuming you have the same twl pmic and usb phy, i guess it's possible you have some separate usb phy for the otg interface08:19
Wizzupfreemangordon: what is VRFB ?09:26
freemangordonvirtual rotated frame-buffer09:56
freemangordonthis is what is used to rotate display on omap309:56
freemangordonand maybe omap4, I am not sure it has dmm09:56
freemangordontmlind may know09:57
tmlindomap4 has dmm with tiler for sure09:59
tmlindomap3 has vrfb instead afaik10:01
tmlindi think both provide separate addresses for various rotations, looks like vrfb configuration is missing from drivers/gpu/drm/omapdrm?10:03
tmlindless than 400loc for drivers/video/fbdev/omap2/omapfb/vrfb.c it seems10:04
freemangordonyeah10:06
freemangordonalso: https://patchwork.kernel.org/project/dri-devel/patch/1493893412-12178-7-git-send-email-tomi.valkeinen@ti.com/10:06
tmlindok10:09
freemangordonnot really 'ok', but yeah. I would port that, but I'll need some hints where to start10:09
tmlindno idea on that one, seems like it just needs to be configured, then saved and restored for idle states10:14
uvosso if tiler rotation is supported by omapdss in practice atm10:16
uvoswhat prevents it from working in modesetting10:16
uvosdo we know?10:16
freemangordonno10:18
freemangordonuvos: also, we need vrfb rotation form omap3 (n900, n9/50)10:18
tmlindmaybe nothing reconfigures the changed tiler/vrfb addresses right now on rotation change?10:18
tmlindmaybe there was some ioctl in the old ddk-1.9 setup doing that10:19
freemangordonyes, there is10:19
uvosfreemangordon: sure but knowing why tiler is not working helps in understanding how to implement vrfb10:19
tmlindalthough it sounds like the rotation change should be a standard ioctl..10:19
uvosfreemangordon: since in theroy ms should use it10:19
freemangordonnot really10:19
freemangordonat least IIUC10:19
tmlindmy guess is it all should be simpler than earlier anyways10:19
freemangordonwhen you create BO you need to   omap_bo_new_tiled()10:20
freemangordonbut, in GBM case I don;t see how this can be done10:21
uvosno10:21
freemangordonhttps://github.com/robclark/libdrm/blob/master/omap/omap_drm.c#L24610:21
freemangordonuvos: yes, in order to use TILER roatation, a special BO is needed10:22
uvossure but really the kernel should do this more or less transperantly if you setup kms/drm correctly10:22
freemangordonyes, I agree10:22
uvosat least thats how the interfaces are supposed to work10:22
freemangordonbut maybe this is not implemented10:22
* tmlind bbl10:22
uvossure10:22
freemangordonlemme check if omapdrm dma_buf implementation supports that, somehow10:23
freemangordonuvos: I don;t see a way of requesting dma_buf with TILER flags10:28
freemangordonhttps://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/omapdrm/omap_gem.c#L130010:29
freemangordonsee flags https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/omapdrm/omap_gem.c#L118510:31
freemangordonamd because modesetting uses gbm (dma_buf that is), bo's never have OMAP_BO_TILED_XXX set on them10:32
freemangordonso, rotation does not work10:32
uvosfreemangordon: right but really omapdrm should allow the primary display plane to be rotatied10:51
uvosby just calling the rotation transform on it in the kms interface10:51
uvosand then the kernel should just do whatever to rotate the plane, ie move it to tiler space and configure it10:51
uvosthis appears not implemented atm10:52
uvosbut this is the right/generic way of doing it.10:52
WizzupMartijnBraam[m]: btw I answered the tweakers guy late last night, thanks for the refer, hope I was able to help10:54
Wizzupuvos: freemangordon: seems like it would be quite helpful to have the omapdrm folks here11:23
Wizzupor for us to move some discussion to a medium where they read along11:23
parazyduvos: This is what's left in -devel, http://sprunge.us/urFWSH11:25
parazyduvos: Anything from here I should promote?11:26
Wizzupwhat about ke-recv ?11:26
parazydIt's in the list. I dunno, so that's why I'm asking.11:27
uvosyou promoted leste-config you have to promote hildon-desktop or rotation breaks11:27
WizzupI think I just changed some logging in ke-recv11:28
uvosalso please make sure that hildon meta in stable no longer wants hildon-rotation-support11:28
uvosas this also needs to go11:28
uvossimple-brightness-applet is fine for promotion11:29
uvosso is hildon-home11:30
uvoshildon-theme-alpha11:30
uvoshildon-theme-beta11:30
uvoshildon-theme-devel11:30
uvosthese being in devel at all seams wierd11:30
uvosofono can be promoted11:31
uvosthats just the motmdm bugfix11:31
uvosthat looks like its it11:32
parazydThanks11:32
uvosadd profilesx to hildon-meta while at it11:34
uvosif Wizzup dident allready11:34
Wizzupthat wasn't done yet11:35
Wizzupbut I agree it should be11:35
parazyduvos: We have a Conflicts and Provides for hildon-desktop-rotation-support11:36
parazyduvos: That should be fine11:36
uvosok11:36
uvosanny one have had any trouble with new osso-applet-display?11:37
uvosif no thats fine to i gues11:37
uvosto promote11:37
Wizzupit works for me11:37
freemangordonWizzup: right, but I doubt tomi will join here :)12:28
freemangordonback then there was linux-omap, but I doubt it is anymore12:29
freemangordonuvos: agree12:30
parazyduvos: What about droid4-battery-calibration?12:48
uvosparazyd: what about it12:49
parazydShould I also move it to stable?12:49
uvosi dont recall any changes12:49
parazydah nvm, it's my changes to install it in sysinit runlevel instead of default12:50
uvosand you renamed it from maserati to droid412:50
uvosnot that i mind12:50
uvosbut mapphone would have been more correct12:50
uvosbut no big deal12:51
parazydWizzup: What about qt5 stuff? Leave that alone or move?13:00
uvosthis is me removing the color workaround13:01
uvosits broken either way13:01
uvosif you keep it osso_caluclator is broken, if you move it qcalendar is broken13:02
uvos(amoung other things)13:02
Wizzupfreemangordon: maybe he would?13:11
Wizzupparazyd: not sure @ qt13:12
parazydok, then all is done now14:24
parazydLet's see if next week's images are ok14:24
parazydAbout hildon-theme-*, I didn't promote them yet, as I think there's some packaging bug, but I haven't confirmed it.14:25
parazydSo that's gonna wait a bit14:25
Wizzupdsc_: \o17:06
mighty17[m]<tmlind> "mighty17: compare to the..." <- i suppose i need this commit https://github.com/torvalds/linux/commit/5bd2100ed2a76147ddec95499214eb606b799a22#diff-52c1876ad7abb628d8d7de325b4d82a4e4d1870ff81cc01d0af532fdb2188f88 ?17:07
mighty17[m]but what about usb only working when connected before boot?17:08
dsc_hi17:13
dsc_does maemo-leste run on my iphone 13 pro max?17:14
Wizzupdsc_: ;-)17:16
WizzupIt runs on a few devices, but not iphones17:16
dreamermaybe you can ask steve jobs' ghost17:19
dsc_:P17:23
uvosmighty17[m]: well you dident explain what "usb working" or "usb not working" means and its very ambigous18:03
uvosmighty17[m]: but if it "works" when coccentcted before boot its because your bootloader is initalizing usb for itself and the hw state carrys through18:04
mighty17[m]uvos: yeah thats a possible reason18:04
uvosthe bootloader dose so to allow android fastboot or rather whatever the proprietary samsung equivalent is to work18:05
mighty17[m]the thing is my pc doesnt show anything in dmesg, but on device i get `twl6030_irq: Unmapped PIH ISR 20 detected` when i do not let bootloader initialize it18:05
uvosso some plug/usb interrupt fires and your not handling it18:07
mighty17[m]any example of it?18:09
uvosas tmlind said look at how it works on some other device with twl6030 pmic18:10
uvos(what you have to do is device dependant)18:10
mighty17[m]mine is twl6032, they're different18:11
mighty17[m]afaik my device has some usb_sel1 thingy18:11
uvoswell your going to have to figure out what the differences are and ammend the usb phy driver18:11
mighty17[m]oh, now thats weird, it worked now18:12
mighty17[m]ie without bootloader initialisation18:12

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!