xmn_ has joined #maemo-leste
xmn has quit [Ping timeout: 256 seconds]
uvos has quit [Ping timeout: 256 seconds]
Pali has quit [Ping timeout: 256 seconds]
xmn_ has quit [Quit: ZZZzzz…]
xmn has joined #maemo-leste
TonyStone has quit [Remote host closed the connection]
TonyStone has joined #maemo-leste
joerg has quit [Ping timeout: 240 seconds]
joerg has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
pere has quit [Ping timeout: 250 seconds]
mardy has joined #maemo-leste
xmn has joined #maemo-leste
xmn has quit [Quit: ZZZzzz…]
alex1216 has joined #maemo-leste
xes has quit [Quit: WeeChat 3.3]
xes has joined #maemo-leste
alex1216 has quit [Ping timeout: 268 seconds]
_inky has quit [Ping timeout: 250 seconds]
inky has joined #maemo-leste
inky_ has quit [Ping timeout: 250 seconds]
_inky has joined #maemo-leste
<bencoh> Wizzup: gpio-keys misbehaving in OFF mode might (?) be an invalid pullup configuration issue
<bencoh> assuming it uses a different pin configuration for sleep modes (some chips do)
<sicelo> Wizzup: yay @wl1251. you also had made nice writeup really :-)
<bencoh> Wizzup: see TRM Chapter 7.4.4 Pad Functional Multiplexing, bit OFFPULLUDENABLE
<sicelo> are we going to handle CVE-2021-39685 in Leste kernels?
<Wizzup> we'll pull in latest 5.15-stable or so
<Wizzup> bencoh: hm, could be the same for ssi-protocol then
<Wizzup> basically what I am seeing is that it wakes up every few seconds (gpio_keys), sends slider press/unpress, and then sleep again for a bit
<bencoh> Wizzup: can you try devmem 0x480020de 16 ?
<bencoh> I'd like to compare the result with what I see on fremantle
<bencoh> (spoiler: on fremantle OFF-related bits are all 0, meaning I was wrong)
<bencoh> (I get 0x4114 for the records)
<Wizzup> bencoh: just to check, you have devmem on fremantle?
Pali has joined #maemo-leste
<bencoh> Wizzup: yeah
<Wizzup> bencoh: you just compiled it in scratchbox or something
<Wizzup> ?
<bencoh> I don't think so
<bencoh> wait, where does it come from ....
<Wizzup> I need to read some regs for Tony as well, which is why I am asking
<bencoh> dpkg says not found
<bencoh> wth
<bencoh> alright lemme check my sb vm
<bencoh> aaah, symlink to /bin/busybox :)
<bencoh> you just need busybox-power
<bencoh> (I still think you should check 0x480020de on leste btw, just to make sure)
<sicelo> bencoh: i also got zeros the other day too, but then wondered if it wasn't just what Pali mentioned, that userspace isn't allowed to read them
<sicelo> in fremantle, that is
<Wizzup> is it sane to just apt install busybox-power ?
<Wizzup> s/sane/safe/
<bencoh> sicelo: no, I get 0x4114; you just need to run it as root
<sicelo> ah :-)
<bencoh> sicelo: also, unpowered components may return 0s or bus error, depending on the SoC
<bencoh> Wizzup: I think so
<sicelo> well i was doing it with sudo (but not the addresses you're checking. i was checking the ones from tony)
<Pali> sicelo: if userspace cannot read /dev/mem then process either segfault or open fails with EPERM
<bencoh> (the n900 schematics are a blessing)
<Wizzup> ftr
<Wizzup> # devmem 0x480020de
<Wizzup> Illegal instruction
<Wizzup> devmem 0x48004a08
<Wizzup> 0x00000000
<Wizzup> tmlind: so 0x48004a08 seems to be 0x00000000
<bencoh> Wizzup: devmem 0x480020de 16
<bencoh> otherwise it's unaligned :)
<Wizzup> oh
<Wizzup> # sleep 5 ; devmem 0x480020de 16
<Wizzup> 0x4114
<bencoh> Wizzup: on leste or fremantle?
<Wizzup> fremantle
<Wizzup> I need to compile devmem on leste still
<bencoh> ah, I was asking about leste :)
<bencoh> to compile it? can't you just install it?
<Wizzup> yeah, ok, but I'm still just being happy that I can do this on fremantle since Tony asked about wrt bandgap
<Wizzup> bencoh: from where?
<bencoh> memdump
<bencoh> I think
<Wizzup> memdump - utility to dump memory contents to standard output
<bencoh> hmm, that's not devmem actually, but good enough I guess
<Wizzup> omg, just running 'memdump' without args causes it to dump memory
<bencoh> haha
<bencoh> you can also try memtool if you prefer
<bencoh> memtool md -w 0x480020de
<Wizzup> it reads a pretty big region
<Wizzup> maybe adding +0x4 makes sense?
<Wizzup> # memtool md -w 0x480020de+0x4
<Wizzup> 480020de: 0114 0104
* bencoh headscratches
<bencoh> what's the +0x4 ?
uvos has joined #maemo-leste
<bencoh> ah, bytes
<Wizzup> Memory regions can be specified in two different forms: START+SIZE
<bencoh> so it would be +0x2
<Wizzup> # memtool md -w 0x480020de+0x2
<bencoh> looks like it is 0x0114 anyway
<Wizzup> 480020de: 0114
<bencoh> so different from fremantle
<bencoh> the missing bit is the WAKEUP_EN flag
<bencoh> you could try setting it, see if it stays there even after hitting OFF mode, and see if it makes a difference, I guess
<Wizzup> every time I start to think I understand how this works even a bit I get lost again
<Wizzup> ok, let me see where to set thatr
<Wizzup> it looks that in dts it mostly goes in pinctrl
<bencoh> ah, if you want to do it properly, then yes, it goes in one of the pinmuxes
<bencoh> the gpio-keys node doesn't refer to any pinctrl yet
<Wizzup> what is the non-proper way to do it?
<uvos> just write to the register with rwmem/devmem whatever
<bencoh> yeah
<Wizzup> so in omap3-n900.dts gpio_keys refers to &gpio3, &gpio4, &gpio6
<Wizzup> this pin doesn't fall in any of their regs
<bencoh> the pinmux entry should look like that
<bencoh> OMAP3_CORE1_IOPAD(0x20de, WAKEUP_EN | INPUT_EN | PULL_UP | MUX_MODE4)
<bencoh> the gpio-keys entry for the slider is keypad_slide
<bencoh> but that part is fine
<bencoh> assuming gpio3 7 is indeed gpio_71, but I'm pretty sure it is, otherwise slider would never work
<Wizzup> but wait, why do you assume the problem is slider only?
<Wizzup> what I see is that gpio_keys wakes up and fires *all* gpio_keys events
<Wizzup> not just slider, also camera button, etc
<bencoh> wait, what?
<Wizzup> right.
<Wizzup> let me demonstrate
<Wizzup> oh, this time the device just reset :)
<Wizzup> normalle the screen keeps going on and off after a few seconds
<bencoh> hm, I wonder why I assumed you were referring to slider back then
<Wizzup> well I did mention the slider earlier
<Wizzup> maybe that wasn't clear in the gpio keys context
<Wizzup> but the slider is the most visible part because it makes mce wake up the device/screen
<bencoh> ah
<uvos> you can disable that with mce-lockgeneric if that makes testing idle easier
<Wizzup> uvos: I mean sure but that's not really the problem here
<uvos> right
<uvos> but the device waking up might make testing the problem itself harder
<uvos> since it dosent off again then
<Wizzup> it does turn off the display as well
<Wizzup> since this repeats every few seconds
<uvos> ok
<Wizzup> but sure just testing idle stuff I can just rmmod gpio_keys
<Wizzup> but something is quite wrong there I think
<uvos> no doubt
<uvos> but setting the reg dosent fix it for gpio3 7?
<bencoh> Wizzup: what do you get for memtool md -w 0x480020d8+0x4 on leste?
<Wizzup> uvos: the device just reset
<Wizzup> and they all fire at once
<Wizzup> I can try in a bit for sure
<Wizzup> bencoh: with off mode not turned on, and gpio keys probed I guess?
<bencoh> Wizzup: for a start yes
<Wizzup> ok, just a second, I need a coffee
<bencoh> :)
<bencoh> damn, I forgot how messy the pre-devicetree board drivers could be ...
<bencoh> having a look at arch/arm/mach-omap2/board-rx51* (fremantle kernel) ... it's awful
<Wizzup> bencoh: do you have a git link for it?
<Wizzup> I don't know what the canonical place is
<bencoh> hmm, lemme check
<Wizzup> # memtool md -w 0x480020d8+0x4
<Wizzup> 480020d8: 0104 0104 ....
<bencoh> I get 4104 4104
<bencoh> looks like all gpio-keys are missing the WAKEUP_EN bit
<bencoh> to be honest I don't fully understand the TRM 7.4.4 chapter, nor the System Off mode subchapter
<bencoh> (I only had a quick look thus far)
<bencoh> but something tells me keeping the fremantle values might help
<bencoh> that's the latest kernel-power (Pali's fork of the fremantle kernel)
<Wizzup> ok
<bencoh> (actually someone else started the fork, but P.ali eventually became the main maintainer/contributor :))
<Wizzup> ok, so I can write the memory with memtool mw
<Wizzup> so should I write to all the addresses then?
<Wizzup> (for all the gpio keys)
<bencoh> you could try changing only one of those first
<bencoh> to see if it makes a difference
<Wizzup> ok, let me boot to a more minimal system in case some other subsystem causes resets
<Wizzup> hm... interesting
<Wizzup> so just enabling off mode is not the problem
<Wizzup> the problem starts occuring when I idle the serial devices
<Wizzup> (which of course are what prevents it from entering off mode)
<bencoh> ?
<bencoh> "the problem" being? the gpio-keys thing, or the device resetting?
<Wizzup> gpio keys
<Wizzup> and they wake up 'with' the serial
<bencoh> hmm ...
<Wizzup> getting the reg didn't help fwiw
<Wizzup> maybe the n900-pm script is too agressive in the sysfs stuff it changes perhaps
<bencoh> everytime the device wakes from serial you get events in /dev/input ?
<Wizzup> yes
<bencoh> well, at least it should be a non-issue on production devices
<bencoh> that's interesting though, and it might hint at some issue too :)
<Wizzup> actually it is only three keys:
<Wizzup> KEY_SCREENLOCK, KEY_CAMERA_FOCUS, KEY_CAMERA
<Wizzup> so that is &gpio3
<Wizzup> huh, no, both
<Wizzup> (3 and 4)
<Wizzup> unrelated but debugging these resets is incredibly hard because to hit them we have to detach the kernel console from serial
<Wizzup> so the crucial messages are basically always lost
<bencoh> you can always check dmesg afterwards
<Wizzup> that doesn't help when it has reset :)
<bencoh> ?
<bencoh> ah, *reset*
<Wizzup> yeah
<bencoh> nevermind
<Wizzup> like, hard device resets
<bencoh> don't we have that ... pmem thing (was it pmem?) on n900?
<Wizzup> ramoops/pstore alike?
<Wizzup> bencoh: btw I got it wrong, it also happens sometimes when I don't type in serial
<Wizzup> sorry, finding this stuff out as I go along :)
<Wizzup> it could be some other wakeup that causes it to leave OFF mode for a bit though
<bencoh> could be ...
<bencoh> I guess we should really read those OFF mode chapters ...
alex1216 has joined #maemo-leste
<Wizzup> mhm
<Wizzup> rmmod gpio_keys also causes device not to idle again
<Wizzup> probing it again helps
alex1216 has quit [Ping timeout: 256 seconds]
alex1216 has joined #maemo-leste
<bencoh> that's ... interesting
<Wizzup> probably some things aren't deinitialised properly or something
zhxt has quit [Ping timeout: 256 seconds]
alex1216 has quit [Read error: Connection reset by peer]
alex1216 has joined #maemo-leste
alex1216 has quit [Ping timeout: 240 seconds]
alex1216 has joined #maemo-leste
pere has joined #maemo-leste
xmn has joined #maemo-leste
alex1216 has quit [Quit: WeeChat 2.3]
inky_ has joined #maemo-leste
_inky has quit [Ping timeout: 256 seconds]
inky has quit [Ping timeout: 268 seconds]
_inky has joined #maemo-leste
alex1216 has joined #maemo-leste
alex1216 has quit [Ping timeout: 256 seconds]
alex1216 has joined #maemo-leste
alex1216 has quit [Client Quit]
xmn has quit [Ping timeout: 256 seconds]
<Wizzup> freemangordon: hm I got this for xorgproto:
<Wizzup> Making all in bigreqsproto
<Wizzup> make[3]: Entering directory '/mnt/merlijn/maemo-leste/xorgproto/build/specs/bigreqsproto'
<Wizzup> make[3]: *** No rule to make target 'bigreq.xml', needed by 'all-am'. Stop.
<Wizzup> there are nothing but makefiles hm..
elastic_dog has quit [Ping timeout: 240 seconds]
<Wizzup> must be one of the weird debian things again
<Wizzup> truly breaks the brain
elastic_dog has joined #maemo-leste
<Wizzup> freemangordon: I guess you also got libxi ?
<Wizzup> freemangordon: really wonder how you did this
<Wizzup> I had to pull in xorgproto, libxi, and now I need this weird libxcvt which wants debhelper-compat = 13
<Wizzup> which we don't have
<Wizzup> maybe this is a xwayland only dep?
<Wizzup> the debian/ I have already drops xwayland, so I'm not sure waht is up
<Wizzup> I downloaded it from debian unstable and now it built at least
<Wizzup> lol, great ... I built everything for armhf
<Wizzup> and pine64 is arm64 of course
<Wizzup> *flips table*
<freemangordon> sorry, being busy
<freemangordon> and sill am
<freemangordon> *still
<Wizzup> I figured it out I think
<Wizzup> although I don't know how we will do this in CI
<uvos> updating x properly is a lot of work since the api levels also chainged so xf86-* modules also must be rebuilt
<Wizzup> let's see
<Wizzup> not a problem though
<Wizzup> also the xrandr stuff is np for modesetting
<uvos> it bumps the abi version
<uvos> so you have to rebuild video-* plugins
<uvos> except modesetting ofc
<Wizzup> uvos: yeah we only use modesetting on pp
<uvos> well if you want to update x in tge repo you have to rebuild all plugins
<Wizzup> sure
<Wizzup> if it doesn't make glamor better, I won't
joerg has quit [Read error: Connection reset by peer]
joerg has joined #maemo-leste
<Wizzup> uvos: looks like the same problems
<Wizzup> maybe it's time to force the gles/egl path
<Wizzup> actually it does feel better
<Wizzup> it happens only once on boot now it looks like
<Wizzup> uvos: does pp need a change to rotate h-d somehow? monitor-sensor picks it up
<Wizzup> but it doesn't rotate
<Wizzup> iio-accelerometer is loaded I think
<Wizzup> matrix is 90 degrees off
<Wizzup> hm monitor-sensor is correct
<Wizzup> it's really nice and fast in portrait mode :)
<uvos> Wizzup: monitor sensor should have Normal as landscape
<uvos> and left up as protrait
<Wizzup> uvos: hm, then it is wrong
<Wizzup> uvos: so 'normal' is currently reported when I hold it in portrait
<uvos> right
<uvos> so parazyd did this
<Wizzup> and 'left-up' for landscape
<uvos> it worked at some point, maybe the kernel changed
<Wizzup> SUBSYSTEM=="iio", ENV{OF_NAME}=="mpu6050", ENV{ACCEL_MOUNT_MATRIX}="1, 0, 0; 0, 1, 0; 0, 0, 1"
<Wizzup> this doesn't seem like it is touchscreen matrix
<Wizzup> comment might be wrong there
<Wizzup> right?
<uvos> oh yeah
<uvos> the comment is wrong
<Wizzup> mpu6050 is accelerometer
<Wizzup> OF_FULLNAME=/soc/i2c@1c2b000/accelerometer@68
<Wizzup> OF_COMPATIBLE_0=invensense,mpu6050
<Wizzup> # cat in_accel_mount_matrix
<Wizzup> 0, 1, 0; -1, 0, 0; 0, 0, -1
<Wizzup> hm, it sure has a lot of matrices
<Wizzup> uvos: I don't see any changes in leste-config recently
<uvos> so in_accel_mount_matrix comes from kernel
<uvos> this is wrong (for us) we dont want iio-s-p to use it
<uvos> so we override it with the udev rule
<uvos> now the rule is not applieing or the axies changed in the driver (unlikely)
<uvos> so plase checkout the udev entry
<uvos> so is the matrix applied to the right device?
<uvos> udevadm info `readlink -f /sys/bus/iio/devices/iio\:device3`
<uvos> replace device3 with whatever is the acell on pp ofc
<Wizzup> I think it might not be yeah
<Wizzup> E: OF_NAME=accelerometer
<Wizzup> so it doesn't match
<uvos> right so someone changed dts
<Wizzup> ok I have a fix
<Wizzup> will make sure it's in sync with kernel
<Wizzup> btw it's really smooth in portrait
<uvos> to bad hildon is ergonomically terrible in protrait
<Wizzup> so new X seems better
<Wizzup> I only see the keyboard now being draw correctly once
<Wizzup> per orientation
<Wizzup> on pp
<uvos> with gl or gles
<uvos> ?
<Wizzup> gl
<Wizzup> I didn't try the gles part yet
<Wizzup> that's next
<Wizzup> hmm let me try another build tomorrow
<Wizzup> lol I was building 1.20 :-)
<Wizzup> man
<Wizzup> I guess that's good news
xmn has joined #maemo-leste
<Wizzup> the dpi is messed up
<Wizzup> with gles the fonts don't render in 2d, only in 3d
<Wizzup> and in 3d the swizzle is wrong
<Wizzup> and all the other problems persist :)
<uvos> "with gles the fonts don't render in 2d, only in 3d" ?
<Wizzup> yeah they become rectangles
<uvos> i dont understand what 2d vs 3d means here
<Wizzup> also qml scrolling was messed up
<Wizzup> uvos: like status applet clock was not readable
<Wizzup> not app launcher icons are
<Wizzup> s/not/but/
<uvos> this isent because the dpi is correct?
<uvos> (gtk2 is horribly broken with correct dpi)
<Wizzup> it onl happens with gles
<uvos> ok
<Wizzup> and red and blue are swapped in gl/gles apps
<Wizzup> also hildon home icons
<uvos> heh
<Wizzup> yeah. idk how this can be so broken really
<Wizzup> lol
<uvos> that sucks tho
<uvos> this means that that making xorg work on on pp is quite some work
<Wizzup> yeah
<uvos> maybe sxmo
<uvos> knows how
<Wizzup> do they use 3d?
<uvos> no idea
<uvos> but surely they must no?
<uvos> or do you think they uses totaly unacellerated x
<Wizzup> don't know
<Wizzup> we can try to cherry pick other glamor patches
<Wizzup> unmerged ones
<uvos> Free space 2048 255 18446744073709549824 16E
<uvos> heh
<uvos> cfdisk gets realy confused on mz617
<uvos> 16 Exabites free
<uvos> i dont think so
<uvos> *byte
<Wizzup> heh
<Wizzup> working on the display?
<uvos> yeah
<Wizzup> :)
Wikiwide_ has quit [Ping timeout: 256 seconds]