libera/#maemo-leste/ Saturday, 2021-12-18

Wizzupwith gles the fonts don't render in 2d, only in 3d00:03
Wizzupand in 3d the swizzle is wrong00:03
Wizzupand all the other problems persist :)00:03
uvos"with gles the fonts don't render in 2d, only in 3d" ?00:08
Wizzupyeah they become rectangles00:10
uvosi dont understand what 2d vs 3d means here00:10
Wizzupalso qml scrolling was messed up00:10
Wizzupuvos: like status applet clock was not readable00:11
Wizzupnot app launcher icons are00:11
Wizzups/not/but/00:11
uvosthis isent because the dpi is correct?00:11
uvos(gtk2 is horribly broken with correct dpi)00:11
Wizzupit onl happens with gles00:11
uvosok00:11
Wizzupand red and blue are swapped in gl/gles apps00:13
Wizzupalso hildon home icons00:13
uvosheh00:14
Wizzupyeah. idk how this can be so broken really00:14
Wizzuplol00:14
uvosthat sucks tho00:17
uvosthis means that that making xorg work on on pp is quite some work00:18
Wizzupyeah00:18
uvosmaybe sxmo00:18
uvosknows how00:18
Wizzupdo they use 3d?00:18
uvosno idea00:18
uvosbut surely they must no?00:18
uvosor do you think they uses totaly unacellerated x00:18
Wizzupdon't know00:20
Wizzupwe can try to cherry pick other glamor patches00:20
Wizzupunmerged ones00:20
uvosFree space                                          2048                      255                 18446744073709549824                  16E00:21
uvosheh00:21
uvoscfdisk gets realy confused on mz61700:21
uvos16 Exabites free00:22
uvosi dont think so00:22
uvos*byte00:22
Wizzupheh00:25
Wizzupworking on the display?00:25
uvosyeah00:25
Wizzup:)00:26
Wizzuphttps://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/401 this probably fixes swizzle01:23
Wizzupheh: https://www.phoronix.com/scan.php?page=news_item&px=X.Org-Server-21.1.202:12
Wizzupuvos: I think probably 5.14 needs the leste-config for pine64, but 5.10 still uses the old one02:17
sicelosxmo definitely uses 3d, although they're now in the process of completely switching to wayland09:17
siceloiirc they currently use x and wayland in parallel (sxmo, swmo)09:18
tmlindWizzup: sounds like fremantel bandgap is only periodically enabled, looks like oma34xx is missing the thermal shutdown features09:34
tmlindPali: so is your bme taking care of charger thermal shutdown?09:35
freemangordonIIRC, on fremantle nokia kernel bandgap was not enabled/used at all09:42
freemangordonin kernel-power we enabled it, but I am not sure we used it at all09:43
freemangordonbattery thermistor is used for temperature measurement, if I am not mistaken09:44
freemangordon'battery' means it is close to battery, not built-in to09:44
freemangordonjoerg: do you remember how it all was? ^^^09:45
tmlindfreemangordon: i'm mostly worried about what shuts down the system if battery overheats during charging, i guess there's no hardware based thermal shutdown on bq27200?09:57
tmlindhmm maybe the charger needs to be kicked periodically to keep charging enabled?09:58
tmlindheading out here, on a spotty connection on my d409:59
freemangordonuserspace shuts it down10:13
freemangordonthere is a dsme plugin which reads temperature from bme (iirc), lemme check10:13
freemangordonhttps://github.com/community-ssu/dsme/blob/master/modules/thermalsensor_omap.c10:14
freemangordonhttps://github.com/community-ssu/dsme/blob/master/modules/thermalsensor_omap.c#L8410:15
freemangordonhmm, can;t find dsme bme plugin code :(10:18
freemangordonah, here it is:10:19
freemangordonhttps://github.com/community-ssu/dsme-thermalobject-surface/blob/master/modules/thermalsensor_battery.c10:19
freemangordontmlind: so, dsme plugin reads MADC temperature sensor values and reports temperature to dsme, which takes overheat shutdown decision. OMAP sensor seems to be explicitly disabled10:22
freemangordonpali: please confirm ^^^10:22
freemangordonhmm, I shal pull that to leste, at least for n90010:25
freemangordonthough I guess it makes sense for all devices10:25
Wizzupfreemangordon: point is that atm bandgap is unstable10:46
Wizzuphaving it loaded with cpu_thermal causes oopses10:46
freemangordonWizzup: yes, I know, but that seems to be a kernel driver issue10:54
freemangordonnokia disabled it because the reading is useless10:54
freemangordonAFAIK10:54
freemangordonnot to say I still hold on to "on mobile it is userspace that shall take shutdown decisions"10:55
WizzupI suppose from kernel perspective there might not be mobile userspace10:56
uvosi think reling on userspace of thermal shutdown is bad design10:56
uvos*for10:56
freemangordonsure, but userspace should at least have a knob to tell kernel "don;t kare about thermal shutdown stuff"10:57
freemangordon*care10:57
freemangordonuvos: not really, kernel doesn;t have all the information10:57
freemangordonBTW, the same goes for low battery10:57
freemangordonkernel has no idea of "emergency call"10:58
uvosyou can maybe have it turn it off in parts yeah10:58
uvosbut the kernel must support it10:58
uvosuserspace is not allways runing10:58
freemangordonsure10:58
uvosor reactive10:58
freemangordonno doub;t about that10:58
freemangordonI am saying that userspace should be able to take over that10:58
Wizzupsicelo: well the question was do they use glamor10:59
freemangordonWizzup: sorry for not helping you with xorg, I change that today :)11:00
Wizzupfreemangordon: no worries, I built it already11:00
freemangordonI had 2 almost sleepest nights having to take care of some production issues in one of the systems we support11:00
Wizzupit doesn't change that much for pinephone unfortunately though it seems11:00
Wizzupyikes11:00
Wizzupjava? :p11:00
freemangordonno11:00
freemangordonTAL :p11:00
uvossomeone mentioned that accel dosent work on pp on dri211:01
freemangordonever heard about?11:01
uvosso glamor is the only choice11:01
uvosif thats true11:01
freemangordonWizzup: it was not related to log4shell11:01
freemangordonit was a planned migration which almost turned out to be a disaster because the SW provider left a bug in one of the file conversion routines11:02
Wizzupfreemangordon: yikes11:02
freemangordonyeah :)11:02
Wizzupuvos: what accel would that be?11:03
freemangordondri311:03
freemangordonI guess11:03
Wizzupuvos: also it's surprisingly smooth in portrait, but not in landscape11:03
uvosany kind of 3d11:03
Wizzupbut there are real weird bugs, like just having conversations open causes it to glitch on the edges near the screen11:03
uvos(ie client or x's own rendering)11:03
Wizzupit keeps wiggling around11:03
freemangordonWizzup: because it is rotated in SW11:04
Wizzuplike some animation that never stops11:04
uvosits rotated in gl11:04
uvosnot sw11:04
freemangordonnot really11:04
uvosyes really11:04
freemangordonhow do you know?11:04
uvosit uses the glamor pixmap rotating function11:04
uvosfor the framebuffer11:04
freemangordonit doesn;t makes sense to me then11:04
uvosi traced this some time ago11:04
Wizzupyou have a pp? I forgot11:05
uvosno11:05
uvosi traced how glamor rotates11:05
freemangordonPP has powerful GPU, it should not make it stutter on GL rotation11:05
Wizzupwell in landscape it is so slow I thought it was llvmpipe11:05
uvoson desktop11:05
freemangordonuvos: it is not glamor, but modesetting11:05
uvosyes/no11:05
uvosor really no11:05
freemangordonWizzup: maybe try to disable shadow framebuffer11:06
Wizzupok11:06
freemangordonand see if it gets better11:06
Wizzupfreemangordon: this 1 bit font problem you found btw11:06
Wizzupdoes that cause fonts to get rendered poorly?11:06
uvosso theres a file part of the randr extenstion that sets the transformation matrix property on the pixmap of the root window11:06
freemangordonWizzup: will provide pacthes later on11:06
Wizzupok11:06
uvosthe other window's pixmaps are subwindows of the root window ofc11:06
uvosso they all get it11:06
uvosthis makes glamor apply all the matrixies in the normal pximap rendering pipleine11:07
uvoscauseing everything to be rotated11:07
uvosthis dosent touch the ddx at all11:07
freemangordonok, but that doesn;t explain the slowness11:07
uvosit stays at native oritation11:07
uvossure i have no idea why its so slow on pp11:07
freemangordonGL doesn;t really care if it is rotated on 0 or 270 degrees11:07
freemangordonso it must be modesetting doing SW pixmap copy to the shadow FB11:08
freemangordonthe same I was seeing on d4/n90011:08
uvosthats not true tho11:08
uvosiirc glamor uses a diferent path for pixmaps that dont have a transformation matrix set and ones that do iirc11:09
freemangordonuvos: wait, you were saying it is kernel that shall rotate, no you say glamor11:09
freemangordon*now11:09
uvos?11:09
uvosno xorg has internal transformation matrixes11:09
uvosnot the planes11:09
freemangordonI remember we were discussing that modesetting shall set atomic property for the kernel to roatate11:10
freemangordonah, ok11:10
uvosthis is something else11:10
uvosthese are used by glamor to rotated windows11:10
freemangordonbut who takes the decision what to use?11:10
uvos(even indipendant of full screen rotation)11:10
uvosrandr11:10
freemangordonthen maybe we have a bug in randr11:10
uvosor really not11:11
uvosit just sets the matrix11:11
freemangordonbecause I can confirm on d4 rotation was done in SW11:11
uvosin non accelerated x the matrix just dose nothing11:11
uvosand modesetting rotates in ddx11:11
uvosso the framebuffer is really roated11:11
freemangordonfor modesetting/glamor11:11
uvosthe decision is implicit11:11
uvosthe matrixies are allways there11:11
uvosbut only glamor uses it11:12
uvos(maybe xaa/exa dose too idk)11:12
uvosso if glamor is not in use the windows get renderd at 0 deg11:12
freemangordonagain, why then landscape is so slow on pp/d4?11:12
uvosand the ddx has to do something else11:12
uvosno idea11:12
Wizzupso shadowfb didn't seem to matter (much)11:12
uvossomeone ahs to trace it11:12
freemangordonI did on d4 and SW rotate path was taken in modesetting11:13
Wizzupthis still bothers me: [    26.151] (II) modeset(0): Disabling kernel dirty updates, not required.11:13
Wizzupalso seeing this:11:13
Wizzup[    26.634] (EE) glamor0: GL error: GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_SWIZZLE_A)11:13
Wizzup[    26.634] (EE)11:14
Wizzup[    26.634] (EE) Backtrace:11:14
Wizzup[    26.636] (EE) 0: /usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so (__driDriverGetExtensions_d3d12+0x129a08) [0x7f9df20920]11:14
Wizzup(but the GL path worked better then GLES on lima)11:14
uvosso its xf86RotateCrtcRedisplay11:19
joergfreemangordon: yes, in N900 you meant? the "temperature" usually seen is that of the charger chip, not of battery. CPU temperature was considered SiErr broken and not used11:20
uvosand below11:20
joergthe thermistor is supposed to actually measure battery temp but iirc was not exposed in kernel filesystems11:21
joergyou could read it out via ADC iirc11:21
joergwhich BME actually did11:22
uvosnot reading the cpu temperature at all is kinda flippant :P11:22
Wizzupfreemangordon: from my perspective btw I think having pine64 gpu/X behave more would be nice but I don't consider it too urgent, I just wanted to try it out to see if newer glamor and mesa helped, and it probably is less crashy, it didn't solve all the problems11:22
Wizzupso this is not urgent from my perspective, n900 X I think would be more important11:22
freemangordonok11:25
freemangordonjoerg: yeah, and we later on exposed MADC readings through rx51_battery11:26
freemangordonthanks11:26
Wizzupwe explicitly disable rx51_battery atm since it's otherwise quite useless11:26
freemangordonwait, why?11:26
Wizzup(and it tells upower we have two batteries)11:26
freemangordonso?11:26
freemangordona colleague of mine as laptop with 2 batteries11:27
freemangordon*has11:27
Wizzupthe n900 doesn't have two batteries11:27
joergfreemangordon: yw11:27
Wizzupmaybe it's only for 5.1 btw11:27
freemangordonok, but rx51_battery provides temp sensor11:28
freemangordonI don't remember what else though11:28
Wizzupwe don't have it in 5.15 I think11:28
freemangordonwe should11:28
freemangordonotherwise we don;t have sensor11:28
WizzupI mean we don't have the patch that reverts it11:28
freemangordonah :)11:28
Wizzupimho though we probably have too many modules loaded making the idle stuff all the harder11:29
Wizzupe.g. the omap3isp stuff also caused trouble11:29
Wizzupand we don't even have anything that uses it yet11:29
Wizzupbut that's just a general remark11:29
freemangordonrx51_battery should idle just fine11:29
WizzupOMAP3_THERMAL for sure dosen't, I spent ~6 hours bisecting it11:30
Wizzupbut yeah, we'll see11:30
freemangordonat least on n900 it is useless afaik11:31
joergmy take on this two-battery problem is that the device description (DTS? DTD?) and/or the driver architecture doesn't match the real hardware11:31
freemangordonor rather attempting to put everything in the kernel11:32
freemangordonbut yea, we have some general issue here11:32
freemangordonWizzup: maybe we shall come-up with some 'aggregate' power device kernel framework11:33
uvoswe also have the same problem on mz61711:33
uvosit also has 2 battery chips for one battery11:33
freemangordonor, teach upower to handle such cases11:33
freemangordonmaybe that'd be easy11:35
joergpali and me designed rx51_battery(?) module as a foundation for acomprehensive alternative to BME11:35
freemangordonjoerg: there is nothing wrong with it11:35
freemangordonit is that upower is not smart enough to know bq and rx51 drivers are about the same physical battery. or we are not smart enough to tell it to :)11:37
freemangordonyeah, 'composite_power' device framework will do the job11:37
freemangordonbut I am not the one to implement that :)11:38
WizzupI think we are smart enough to pick the right device from upower btw11:40
Wizzupit just means that every tool has to be smart enough11:41
Wizzupin any case it's not super important atm11:41
freemangordonyeah11:41
freemangordonWizzup: later on I will get back to you with glamor patches11:41
freemangordonhave to leave now, ttyl11:41
Wizzupok ttyl11:41
joerg>>upower is not smart enough to know bq and rx51 drivers...<< that's pretty much to the point. I think either via device-tree or by driver design, the bq.ko has to become a sub-feature of the *_battery.ko system11:53
joergI don't know upower but sounds to me like userland, which is not supposed to have prior knowledge about particular hardware properties11:54
joerg'composite_power' device framework  sounds great11:55
freemangordonWizzup: check your mail19:41
Wizzupty19:44
Wizzuplooks like these should fix the es2 problems I was seeing19:44
WizzupI'll try them, but I think other problems will persist19:45
freemangordonhopefully19:45
freemangordonyeah19:45
Wizzupit's quite some weirdness in general19:45
Wizzuplike many of the animations suddenly return later, I've randomly seen the titlebar texture rotate a bit (like we do with phone rotation)19:45
Wizzup(this is not gles or gl specific)19:46
freemangordonthis is with latest mesa?19:46
Wizzupyes19:46
freemangordonwe shall open a bug then19:46
WizzupOpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.2.519:46
WizzupOpenGL version string: 2.1 Mesa 21.2.519:47
WizzupI bet it's glamor and note modesetting, though19:47
Wizzupor rather, not lima19:47
freemangordonyeah19:47
freemangordonbut try with those patches first19:47
Wizzupok19:49
Wizzuprebuilding with gles forced19:50
Wizzupwill let you know in ~30 mins19:51
freemangordonok19:51
Wizzupbtw, the landscape stuff got a -bit- faster with the double shadow thing I feel like19:51
Wizzupmaybe it transfers less or something19:51
Wizzupthat 30 mins estimate was pretty accurate :D20:22
freemangordon:)20:22
Wizzuphm I think the font rendering is still broken for me20:24
Wizzupbut the colours look ok20:24
Wizzupother corruption is also still there20:27
freemangordon:(20:27
Wizzupnot surprising since it's clearly some damage or buffer mgmt problem20:27
Wizzuplike I can see the previous screen icons in various apps20:27
Wizzuplike the conversations contacts overview icons, they show through on the side of the view of a single conversation when I screen20:28
Wizzups/screen/scroll/20:28
Wizzupfreemangordon: for fonts I guess https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/119 is needed21:23
freemangordonno idea21:37
freemangordonbut on d4 fonts were fine, IIRC21:38

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