libera/#maemo-leste/ Sunday, 2021-12-19

freemangordonok, I have a fix for the so-called "HildonPannableArea bug", but I still don't know why it works09:51
freemangordonthe bug is actually in GtkRange or in gdk_event_request_motions()09:52
freemangordonuvos: it is 7871e095605332ce1cfb15e19a06f36b05604d0b that breaks it10:02
freemangordonok, this is the clue:10:11
freemangordon(gdb) p range->event_window10:11
freemangordon$8 = 0x55555577aa20 [GdkWindow]10:11
freemangordon(gdb) p event->window10:11
freemangordon$9 = 0x55555577a5a0 [GdkWindow]10:11
freemangordonuvos: I think GtkRange is broken even without hildon, but don;t have a way to test it12:07
Wizzupgood find12:45
freemangordonWizzup: do you know how to build gtk or I shall ping parazyd?12:47
freemangordonWTF? why my gtk tree differs from leset?12:49
freemangordon*leste12:49
Wizzupfreemangordon: do you mean on the ci?12:50
WizzupI can help you with it12:50
freemangordonyes12:50
freemangordonbut hold on till I find why I cannot push12:50
freemangordonah, I have to force-push12:51
Wizzupdid you check the changes that you forcep ushed to12:53
freemangordonyeah12:54
Wizzupok12:54
freemangordonit is one patch only I pushed few days ago (GtkRange one) I updated today12:54
freemangordonwith the fix12:54
freemangordonmaybe I should have split that to 2, but is too late already :)12:55
Wizzupgit branch is it in?12:57
Wizzupwhat branch12:57
freemangordonmaemo/beowulf-devel12:57
freemangordonWizzup: it is ready12:58
freemangordonI guess I shall only build it, as the changes are in debian/patches dir only12:58
freemangordonno need to tag or something, no?12:58
freemangordonWizzup: hmm, what about changelog?12:59
Wizzupfreemangordon: better to do changelog13:01
Wizzupmaybe just go for 2:2.24.32-413:02
freemangordonnot sure, that's why better wait for parazyd :)13:03
Wizzupno need to wait13:03
WizzupI know you can do this np13:03
freemangordonWizzup: look at the changelog13:03
Wizzupwhat about it?13:03
Wizzupdo you want me to do it?13:03
freemangordonwe have gtk+2.0 (2:2.24.32-3) version twice13:04
freemangordonand that's on purpose13:04
Wizzupno, we don't13:04
Wizzupwe have epoch13:04
Wizzupor whatever the thing at the start is13:04
freemangordonoh, right13:04
Wizzuppretty sure the -3 and the end can safely be increased to -4 with no affects on anything else13:04
Wizzupeffects* even13:05
freemangordonnot sure, becaue this is upstream version13:05
freemangordonnot ours13:05
freemangordonupstream == debian13:05
freemangordonso, I think it is better to add entries to the current last changelog entry and rebuild13:05
freemangordonthe new version will become 2:2.24.32-3+2m7.10 or something13:06
freemangordoncurrent is 2:2.24.32-3+2m7.913:06
freemangordonWizzup: please do it as you think is right13:09
Wizzupok13:12
Wizzupfreemangordon: fine as well, we'll still add a version in the repo I think13:12
Wizzupfreemangordon: then just issue a buiild13:12
freemangordonWizzup: are you going to do it?13:23
freemangordonah, you already did :)13:24
freemangordonhmm, you didn;t do changelog it seems13:25
freemangordonWizzup: how often is -devel pulled in -stable?13:29
Wizzupfreemangordon: whenever we decide to, and it can be done perpackage13:32
Wizzupit's basically a rebuild anyway13:32
Wizzupfreemangordon: yeah I'd need to force push changelog, can do that though13:32
freemangordonwhy force-push?13:32
Wizzupoh, right, doesn't need to be13:33
freemangordonjust add some lines to the current13:33
Wizzupwant me to do it?13:33
freemangordonno, I will13:33
freemangordondo we have an issure for that GtkRange bug?13:36
freemangordon*issue13:36
freemangordondone13:37
Wizzupfreemangordon: let me check13:38
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/58213:39
freemangordonok13:39
freemangordonwill close it13:39
lelfreemangordon closed an issue: https://github.com/maemo-leste/bugtracker/issues/582 (Gtk2 sliders are broken)13:40
Wizzupbtw, what do you think we should do wrt bandgap14:01
freemangordondid you try tmlind's patch?14:13
Wizzupfreemangordon: I will do that now, but it doesn't relate to the oops and I've heard folks here say that bandgap on the n900 is just broken14:24
Wizzupbut I guess it would be good to see if it idles even if we don't want to use it14:24
freemangordonWizzup: bandgap being broken in fremantle kernel doesn;t mean the driver shall oops, no?14:28
freemangordonand "broken" means you can;t rely on it to measure battery temp14:29
Wizzupfreemangordon: sure, but what I mean is that iiuc it's not even active on fremantle14:31
Wizzupfreemangordon: we read the bandgap register and it wasn't active14:31
freemangordonwhich kernel?14:32
freemangordonKP or omap1?14:33
Wizzup2.6.28.10-sssu314:34
Wizzupcssu*14:34
freemangordonIIRC, it is not active because: 1. it is not kept active continuously and 2. noone reads it14:34
freemangordonhmm, I don;t remember if bandgap driver is active in cssu kernel14:34
Wizzupthere was some talk about it just a few days ago14:35
WizzupI just wanted to check what we're thinking of doing, mostly14:35
bencohfreemangordon: I can probably check, if you know how to14:35
bencohI have a kp53 at hand14:35
freemangordonme too14:35
Wizzupn900 is stable on 5.15 for me now without off mode enabled14:35
freemangordondevmem I guess14:35
bencohah :)14:35
Wizzup(the only bug is X11 segfaults)14:35
Wizzupoff mode enabled though, there's more to fix for sure14:35
freemangordonWizzup: I think it is good to have bandgap on n900, even if we don;t use it14:36
Wizzupwhy?14:36
freemangordonthe oops we see most-probably is not bandgap's driver fault14:36
bencohoh btw, regarding powertop and measuring wakeup events ... you should use powertop with html output14:36
Wizzupbencoh: what does that add?14:36
freemangordonalso, it is possible that back then (fremantle) bandgap driver was buggy thus nokia gave up on it14:37
freemangordonthey were saying thumb2 and 720p are impossible too ;)14:37
bencohWizzup: I don't know understand how/when powertop samples events when using the interactive view14:37
freemangordonWizzup: do you have a link to the discussion?14:37
Wizzupno, it was like in the last few days14:38
Wizzupmaybe just search for pali since he was active then14:38
Wizzup(in the logs I mean)14:38
bencoh(yeah, thumb2, usb host mode, 720p, overclocking, ...)14:38
freemangordonWizzup: hmm, I took a part in sam discussion14:39
freemangordon*some14:39
freemangordondid I miss something important?14:39
freemangordonWizzup: re x11 segfault - hopefully starting tomorrow I will have time to do the needed omapdmr patch14:39
freemangordonit shouldn't take me more than 3-4 days14:40
freemangordonI hope14:40
louipcwuzzzup14:41
freemangordonbencoh: do you know if bandgap is visible in sysfs?14:43
freemangordonon KP that is14:43
bencohno idea, got a name to look for?14:43
freemangordonme neither, going to try to find it14:44
bencohhm, no /sys/class/thermal14:44
bencohthat's a good start14:44
Wizzupfreemangordon: ok14:44
bencoh(year 2009 is waiting on the other line ...)14:44
freemangordon:)14:44
Wizzuplouipc: hi14:44
louipcWizzup: hehe nice name14:45
Wizzuphad it for 20 years by now I think14:45
Wizzupfreemangordon: there is also an ocassional segfault on the d4 for me (once every couple days, shall I keep gdb attached to get you a bt)14:46
louipcwouldnt it be cool to be able to run random programs from dubious sources and not have it affect your system at all security wise?14:46
Wizzupis this some flatpak plug? :p14:46
louipceven programs with unknown exploits14:46
louipcno im just curious14:47
bencohfreemangordon: /sys/class/power_supply/rx51-battery/temp ?14:47
louipcif this would be like an 'ultimate' perhaps unattainable goal security-wise14:47
Wizzuplouipc: I mean there are a lot of things you can do but it'll likely never be entirely 100%14:48
freemangordonbencoh: no14:48
louipcas far as i know flatpak is fundamentally flawed14:48
freemangordon/sys/class/hwmon14:48
louipcWizzup: yea its a constant cat-mouse game14:48
freemangordonWizzup: bandgap seems to be enabled on KP14:49
Wizzupdid you use the same command to read it?14:49
louipcbut i'm thinking would this kinda be something that people would like to move towards in the pursuit of security14:49
freemangordonit is exported in sysfs14:49
Wizzupfreemangordon: ok, but is it active and in use14:49
Wizzupiirc I used devmem to read the reg and it was 000014:50
louipclemme know if im goin offtopic14:50
bencohfreemangordon: I didn't see much in hwmon14:50
louipcim mainly here because there was chat about debian vs android security model14:50
Wizzuplouipc: not so much, it's just that we probably don't have much to contribute, there's the full-virt approach and there's load of different rbacs and namespaces work, but a kernel exploit will still just kill that14:50
bencohlouipc: do you mean, from a pure software point of you?14:51
freemangordon/sys/devices/platform/omap34xx_temp14:51
Wizzuplouipc: if it was up to me the first things we'd integrate would be some rbac (apparmor probably) and later look at perhaps using containers (just namespaces) for some things14:51
louipcwell android is increasingly integrating hardware as part of the security model too14:51
Wizzupfreemangordon: want me to check on non-kp?14:51
freemangordon/sys/devices/platform/omap34xx_temp # cat temp1_input14:51
freemangordon2014:51
louipcwith titan m chip, and such14:51
Wizzupfreemangordon: and you're sure this is bandgap btw?14:51
freemangordonWizzup: I guess it gets enabled only when you read it14:51
bencohfreemangordon: nice catch. 20 here as well14:51
freemangordonomap34xx_temp?14:51
bencohyeah14:52
freemangordonsure it is14:52
louipcWizzup: cool. good to hear that its a consideration14:52
bencohbut if we both read 20 ... sounds bogus :>14:52
Wizzupfreemangordon: that is also present on my kernel14:52
Wizzupit reports 13 degrees14:52
louipcbut i understand the limited dev resources14:52
buZzlouipc: containers/namespaces is literally what i suggested, apt install firejail14:52
Wizzupwhich is very inaccurate fwiw14:52
Wizzuplouipc: yeah we want the phone aspect working well first :)14:53
freemangordonlemme check int the KP source what omap34xx_temp14:53
freemangordonis14:53
louipcbuZz: right. its not well integrated tho. and firejail has its flaws too14:53
louipcandroid sandboxing is not an 'addon'14:53
louipcits part of the system inherently14:53
buZzandroid sandboxing has flaws too14:53
buZzyou just dont hear about them as often as they're often quickly safeguarded into a TLA's arsenal14:54
buZzlouipc: its literally a kernel feature14:54
Wizzupfirejail looks interesting14:54
louipcas a 1st class feature they get get flaws will get dwindled down much faster14:54
WizzupbuZz: want to lead the efforts to integrating this and apparmor in leste? ;)14:54
buZzgladly not :D14:54
dsc_louipc: hi :)14:55
louipchttps://madaidans-insecurities.github.io/linux.html#sandboxing14:55
Wizzupfreemangordon: I can confirm that the gtk fix works14:55
louipcconsider this14:55
Wizzupfreemangordon: thanks14:55
louipcdsc_: wuddup.14:55
freemangordon:)14:55
louipcdsc_: u maemo dev? :D14:55
dsc_I think so?14:56
dsc_:P14:56
louipcsweet14:56
buZzlol @ that website14:56
buZz> You can contact me on various platforms, including Reddit, Matrix and Telegram.14:56
louipcanyway thanks for your perspective Wizzup.. and buZz  too ;)14:56
buZzhttps://madaidans-insecurities.github.io/messengers.html14:56
buZzlol14:56
Wizzuplouipc: if it was up to me I'd want to use the grsec rbac but that's not available anymore unfortunately14:57
dsc_louipc: I'm working on the `conversations` app (uses telepathy as backend) for SMS, IRC, XMPP, Telegram14:57
bencoh(RIP opensource grsec </3 :'( )14:57
louipctheres the kernel self protection project14:58
bencohcompared to grsec, it's some kind of joke :(14:58
louipchehe ye14:58
freemangordonhmm, I don;t have kp sources around anymore?!? The fuck, I am one of its maintainers :(14:58
bencohfreemangordon: :D14:58
freemangordon:)14:58
louipcalso https://github.com/anthraxx/linux-hardened14:58
bencohfreemangordon: https://vcs.maemo.org/git/kernel-power14:58
freemangordonyeah14:58
bencohlouipc: that thing is no longer up to date14:58
bencohwell, I think he stopped updating it at least14:59
louipcbencoh: just select the correct branch14:59
bencohah, nevermind14:59
louipchttps://github.com/anthraxx/linux-hardened/tree/5.1514:59
bencohyeah14:59
bencohthey only dropped the grsec porting effort I guess then15:00
louipcdsc_: nioce mang15:00
louipcgrsec ppl are a bit nasty i hear15:00
Wizzupoh, didn't know folks still maintain it15:00
Wizzupthat is off topic and no they're not15:00
louipcok sorry :p15:00
bencoh:)15:00
Wizzupalso just my opinion, but yeah15:01
freemangordonhmm, I forgot how to clone from vce.maemo.org :(15:01
freemangordon*vcs15:01
bencohfreemangordon: just clone the address I gave you iirc15:01
bencohif you just want to fetch15:02
freemangordonyueah, will try15:02
bencohwatch out for the debian patches there15:02
bencoh(I freaking hate that thing)15:02
freemangordonsure, patches must be applied15:02
freemangordonugh, I need apt-get source actually15:04
louipcim running linux-hardened everyday no probs15:04
bencohfreemangordon: let's say it's easier yeah15:05
bencohnot mandatory though15:05
freemangordonit is, as I need .orig source anyway15:05
bencoh?15:06
freemangordonhowever, downloading15:06
freemangordonon vcs there is only /debian15:06
bencohhmm, lemme check, I might be wrong15:06
bencohright15:07
freemangordonsource downloaded and patches applied, lets see15:08
freemangordonto me this is bandgap driver https://pastebin.com/QDhZGrmc15:11
freemangordonWizzup: IIUC reading 0x48002524 should return 0000, unless we are in A/d conversion cycle15:19
freemangordonhmm, actually it should contain the last measurement in the last 6 bits15:22
freemangordonWizzup: so, if you disable bandgap in CONFIG, device enters OFF mode with no issues?15:23
Wizzupfreemangordon: so15:24
WizzupI do not know the relation between bandgap and CONFIG_OMAP3_THERMAL15:25
Wizzupfirst of all OMAP3_THERMAL was causing it to basically never enter OFF mode15:25
Wizzupsecondly I have to disable cpu_thermal and bandgap in dts to not make the device reset in OFF mode with (for example) mmc access15:25
WizzupI do not know if these separate problems interact15:25
* bencoh headscratches15:25
WizzupI do know that afaik we were seeing the oopses/resets also with OMAP3_THERMAL enablec15:26
Wizzup(and also with it disabled)15:27
Wizzupfreemangordon: so 'with no issues' is vague: yes it enters off mode, but there are issues until we also disable cpu_thermal and bandgap in dts15:30
Wizzupwith those gone, the device idles stable with no modules loaded (others can interact)15:30
freemangordonCONFIG_OMAP3_THERMAL should be bandgap driver15:31
freemangordonwe may have oopses because bandgap driver has fclk15:31
freemangordonfclk being disabled when CONTROL.CONTROL_TEMP_SENSOR is being accesses might cause oops we see15:32
freemangordonalso, it can generate TSHUT signal for thermal shutdown15:33
freemangordonthat's gpio 127, iiuc15:34
freemangordonthere is an interesting note on p. 3341 in regards to TSHUT generating an interrupt15:35
Wizzupfreemangordon: ok @ it being bandgap16:15
freemangordonWizzup: shall I first look at that issue before omapdrm?17:02
freemangordonthis should be pretty easy to identify17:02
bencohI'm about to say something stupid (maybe), but err ... afaiu, no code can run while in OFF mode17:05
bencohah, nevermind, it's non-relevant17:06
freemangordonsure, but IIRC there comes an interrupt while we are in OFF mode17:06
bencohand?17:06
freemangordonl3_app_irq17:06
bencohonce you try to read a register, you're already not in OFF mode17:06
bencohmeaning that if some clock is missing, it should be enabled17:07
bencoh(clk_enable(), whatever)17:07
freemangordonbut, if clocks of that particular IP is not running you get oops17:07
freemangordonyes, exactly17:07
bencoh(or some restore sequence in the idle exit code)17:07
bencohso you mean entering OFF mode disables that specific clock ?17:07
bencohand it is never restored?17:07
freemangordoncould be17:08
bencoh:)17:08
freemangordonbecause the context seems to be saved/restored17:08
freemangordonhttps://elixir.free-electrons.com/linux/v5.15.10/source/arch/arm/mach-omap2/control.c#L52017:08
bencohiiuc part of the context is saved/restored by hardware, but I don't know how much of it, btw17:08
bencohOMAP343X_CONTROL_TEMP_SENSOR interesting17:09
freemangordonme neither, but now I am looking at thermal driver, to see how is power/clocks controlled17:09
freemangordonyes, this is 0x4800252417:10
bencohno I mean, interesting that it is saved/restored as well17:10
freemangordonsure, why not?17:10
freemangordonwhy do you think it should not be saved/restored?17:10
bencohoh, I just didn't expect it, that's all. but if it's flushed during idle, it definitely should :)17:12
bencohhm, arm_pm_idle() is the default arm idle handler right?17:13
freemangordonno idea17:14
bencohlooks like it is17:14
Wizzupfreemangordon: I'd prefer the omapdrm stuff tbh, we have more off mode stuyff to do anyway17:15
Wizzupbut whatever you want to work on :p17:15
bencohunrelated, but has the latest droid4 kernel hit -devel?17:16
Wizzupyeah17:16
bencohcan I install only kernel from -devel, or is something expected to break?17:16
Wizzupthat will break17:17
bencohalright17:17
Wizzupwhy would you only get kernel?17:17
bencohto toy with powersaving17:17
Wizzupyou would miss out on the important bits: xf86-video-omap and new sgx userspace17:17
WizzupI use -devel daily and it's stable imho17:17
bencohoh17:17
bencohwell, maybe I'll just move to -devel then17:18
Wizzuphm.... I need to triple check if new mesa is in -devel17:18
Wizzupjust a second17:18
freemangordonbencoh: could you have a look in TRM and tell me if you understand the difference between CONTCONV = 1 and CONTCONV = 017:18
bencohI still need to find out what's wrong with usb, so using this device for serious dev stuff is kind of a pain :(17:18
bencohfreemangordon: lemme check17:18
bencohfreemangordon: omap3 right?17:18
freemangordon7.4.6.2.1 that is17:18
freemangordonyes17:19
Wizzupbencoh: maybe just add -experimental and not -devel17:19
bencohoh, I dont have the omap3 TRM on that host, fun17:19
Wizzupsounds more dangerious but it isn't really17:19
bencohWizzup: :D17:20
Wizzupbtw, this would be for droid4 pm stuff right, not n900?17:20
freemangordonah, it seems you should not assert SoC to start another a/d cycle17:21
freemangordonWizzup: BTW, do you still see "eocz timed out waiting high" ?17:23
bencohfreemangordon: basically with CONTCONV==1 ADC keeps converting and writing to CONTROL_TEMP_SENSOR17:25
freemangordonyeah17:25
freemangordonI wonder how do you stop that :)17:25
freemangordonanyway17:25
bencohprobably by clearing CONTCONV17:25
freemangordonmhm17:26
Wizzupfreemangordon: oh, uh, when should I check for this exactly (what enabled), and do you mean on n900?17:26
bencohI'm not super happy with lacking Samsung/Exynos documentations, but heck, TI/OMAP documentation is unreadable17:26
bencohI get this impression every single time I open one of those TRMs ...17:27
freemangordonWizzup: in dmesg17:27
bencohtheir SoCs are a mess :(17:27
freemangordonwe were seeing that on d4 iirc17:27
freemangordondo you see that on n900?17:27
freemangordonWizzup: also, it seems tshut gpio is not defined for omap317:28
freemangordonin dts that is17:28
freemangordontmlind: ping17:29
siceloWizzup: xf86-video-omap ... what's the correct package name? pvr-omap4-xf86? or xserver-xorg-video-omap?17:29
bencohCONTROL_TEMP_SENSOR returns 0x0 on kp53 here btw, is that expected?17:29
freemangordonno idea17:29
freemangordonbut driver seems to work17:30
bencohah, now it shows 0x2e17:31
bencoh(I devmem'ed it in a loop and cat'ed the temp1_input sysfs at the same time)17:31
freemangordonmhm17:32
freemangordonmakes sense17:32
bencoh0x2E != 20, but whatever17:32
freemangordonoh, no17:32
bencohno idea what they do there17:32
freemangordonthis is adc reading17:32
bencohit's reprocessed?17:32
freemangordonthere is a table, look in the TRM17:32
bencohah :)17:32
bencohoh right17:32
bencohyay, 46 == 19.417:33
Wizzupsicelo: look at git repo of xf86-video-omap debian/control17:33
sicelothanks. will do17:33
bencoh(ie 0x2E -> 19.4)17:33
bencohlooks like it works then17:33
freemangordontry to find omap34xx_adc_to_temp over the inet17:34
freemangordonthis is what is used in KP17:34
bencohI'll check in my kp tree17:34
freemangordonumm17:34
freemangordonin upstream, sorry :)17:34
bencohah17:34
freemangordonin kp it is  adc_to_temp17:35
bencohyeah there is a nice LUT17:35
freemangordonmhm17:35
freemangordonhmm:17:37
freemangordon .bgap_dtemp_mask = 0x7f,17:37
freemangordonthis is rather 3f17:38
freemangordonthis looks wrong to me https://elixir.free-electrons.com/linux/v5.15.10/source/drivers/thermal/ti-soc-thermal/omap3-thermal-data.c#L3317:39
bencohI suppose core_l4_clkdm is the default clock domain?17:39
siceloWizzup: not to derail convo - but looks like there's some unexpected dependency issues with xserver-xorg-video-omap (which comes from xf86-video-omap) ... installing it forces removal of sgx-um-ti443x and installs ti343x instead. anyway, maybe something for later. i'm more interested in this bandgap stuff :-)17:39
bencohfreemangordon: yeah it should be 0x3f17:40
Wizzupsicelo: I think that depends on the -meta file17:40
freemangordonhttps://elixir.free-electrons.com/linux/v5.15.10/source/drivers/thermal/ti-soc-thermal/ti-bandgap.c#L18117:40
Wizzupif you are asking for n900, I didn't fix those yet17:40
siceloi'm on d4. that's why i find it odd17:40
Wizzupfor droid4 it should work with dist-upgrade and -experimental17:40
freemangordonand I guess this leads to wrong temp being calculated17:40
* bencoh nods17:40
freemangordonnot only that, but this could potentially lead to writing to EOCZ, which is RO bit17:41
bencohfreemangordon: although I'm not sure EOCZ is high when they try to read it17:42
bencohwell, I dunno how the mainline driver does it, but I didn't see CONTCONV==1 on kp5317:42
bencoh(when dumping regs)17:42
freemangordonit is in single conv mode17:42
bencohthen they probably don't read the temp register before EOCZ returns to 017:43
freemangordonright17:43
bencohso it shouldn't affect it17:43
bencoh(but you're right that it's wrong)17:43
freemangordonmhm17:44
freemangordonwhat worries me more is that tshut gpio is ignored17:44
freemangordonI think that potentially may lead to what Wizzup is seeing17:44
freemangordonbecause it seems gpios have issues in OFF mode17:45
bencohfucking firefox preventing me from opening non-https files -_- wtf17:45
bencohgetlost mozilla17:45
bencohfreemangordon: what is tshut gpio?17:46
bencohcamera shut?17:46
bencoh(I guess not, but ...)17:46
freemangordonthermal shutdown17:47
bencohI don't see it in schems17:47
bencohis it a real gpio, or an internal interrupt?17:47
freemangordonit is internal17:47
freemangordongpio 12717:47
bencohhmm17:47
freemangordonbencoh: search for gpio_12717:49
bencohI only see it in omap3-pandora and a few non-omap3 boards ... lemme update my tree17:50
freemangordonI don;t see it at all17:51
freemangordonah, the search is for TRM17:51
bencohafaiu tshut != gpio_12717:53
bencohtshut is an input-only internal signal17:53
freemangordonhmm, my bad, 7f is ok17:53
bencohhow so?17:53
bencohah, 0:617:53
bencohhuhu17:53
freemangordonyeah :)17:54
bencohtbf I made the same mistake when checking the regs manually :)17:54
freemangordonso, what do you mean about gpio 127?17:54
freemangordonit *is* gpio 127 if connected to a ball17:55
freemangordonlook at p. 334117:55
bencohit took me some time to understand that gpio_127 can either be gpio_127 (external gpio) or TSHUT17:55
bencoh(see the GPIO Integration Overview figure)17:56
freemangordonmhm17:56
bencohno wonder it doesn't show up in schems then17:56
freemangordondo you see any threshold for tshut activation?17:57
bencohI see 160C17:59
bencohbut that sounds high (wrong?)17:59
bencohsee 7.4.6.2 Temperature Sensor18:00
bencohfreemangordon: do we get "invalid gpio for tshut" at boot?18:04
freemangordonno idea18:05
freemangordononly Wizzup knows18:05
bencohohwell, actually, nevermind .... omap3-thermal-data.c doesn't features TI_BANDGAP_FEATURE_TSHUT18:05
freemangordonmhm18:05
freemangordonwhich is weird18:05
bencohso the driver doesn't even try18:05
freemangordonyes18:05
bencoheither they didn't deem it necessary, or they missed omap3 when adding support for omap4/omap518:05
freemangordonthats strange, given that 3630 even has control over whether to enable or not TSHUT functionality18:06
bencohyeah18:06
freemangordon(I am looking at 3630 TRM)18:06
bencohwell, maybe they got lazy :>18:06
freemangordonmhm18:06
freemangordonSo, maybe what happens is:18:09
freemangordon1. omap3 bangap driver doesn't attach irq routine for TSHUT interrupt(gpio)18:09
freemangordon2. in OFF mode gpios go crazy18:09
freemangordon3. TSHUT is generated because of 218:09
freemangordon4. we have unhandled irq18:09
freemangordonnice theory, but doesn;t explain why there is no oops with bangap driver disabled :)18:09
freemangordonso, I think the highest prio is to see what happens with GPIOs in OFF mode18:10
* freemangordon is afk18:10
freemangordonttyl18:10
Wizzup18:04 < bencoh> freemangordon: do we get "invalid gpio for tshut" at boot?18:21
Wizzup18:05 < freemangordon> no idea18:21
Wizzup18:05 < freemangordon> only Wizzup knows18:21
Wizzup?18:21
bencohWizzup: the answer is probably no, but the question was whether we get that error at boot (dmesg)18:21
bencoh(on n900)18:21
freemangordonWizzup: also, there is some SiErr it seems, look at sprz278f.pdf18:23
bencoh(the omap4 devicetrees probably define the gpio/interrupt, btw)18:23
freemangordon3.1.1.18618:23
bencohohright18:23
Wizzupyeah that's also a comment in kernel:18:24
Wizzup* Note * http://www.ti.com/lit/er/sprz278f/sprz278f.pdf "Advisory * 3.1.1.186 MMC OCP Clock Not Gated When Thermal Sensor Is Used"18:24
bencohI was reading the omap34xx TRM btw, I just realized n900 is ... omap35xx right?18:24
freemangordonno18:24
freemangordonit is 343018:24
bencohah alright18:24
bencohthe errata is 35xx then18:24
freemangordonhmm?18:24
freemangordon3430 is HS version18:25
bencohsprz278f.pdf mentions 353018:25
bencohoh18:25
bencohnevermind )18:25
bencoh:)18:25
bencohfreemangordon: I wouldn't be surprised if the tshut "omission" was related to that erradata18:26
bencohsince on omap3 gpio_127 is mmc_whatever mode418:26
bencohcontrol_padconf_mmc1_dat4 / mmc1_dat5 / gpio_12718:27
bencohoh, erm ... mmc1 is in use on n900 right?18:27
bencohif so, then tshut cannot be used no matter what :)18:28
bencohthe workaround in the errata is quite hilarious :'(18:30
bencohbut we probably shouldn't be affected since our mmc IS in use18:30
bencoh(unless it gets disabled from one of the pm_runtime handlers)18:31
Wizzupsicelo: did -experimental work18:32
Wizzupsicelo: if it didn't can you share the output of apt dist-upgrade18:32
bencohWizzup: what's the recommended way to upgrade leste these days btw? HAM? apt-get in a screen/tmux? disabling some mce/dsme flag?18:32
WizzupI don't think leste usually restarts during an upgrade, but it does happen sometimes18:35
WizzupI just run 'apt-get update' and 'apt-get dist-upgrade'18:36
Wizzupfrom osso-xterm18:36
bencohWizzup: it hapenned to me last time :>18:36
bencoh(actually it didn't even manage to poweroff iirc, I had to force-reboot :>)18:36
WizzupI don't have a specific recommendation, but you can touch the /etc/no_lg_reboots file or something18:36
Wizzup(check name)18:36
bencohalright18:37
bencohthx18:37

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