02:38
System_Error has quit [Remote host closed the connection]
02:39
System_Error has joined #maemo-leste
03:57
Pali has quit [Ping timeout: 240 seconds]
04:32
zhxt has joined #maemo-leste
04:46
xmn has quit [Remote host closed the connection]
04:57
xmn has joined #maemo-leste
05:21
joerg has quit [Ping timeout: 256 seconds]
05:22
joerg has joined #maemo-leste
06:57
zhxt has quit [Remote host closed the connection]
07:13
xmn has quit [Ping timeout: 268 seconds]
08:51
<
freemangordon >
ok, I have a fix for the so-called "HildonPannableArea bug", but I still don't know why it works
08:52
<
freemangordon >
the bug is actually in GtkRange or in gdk_event_request_motions()
09:02
<
freemangordon >
uvos: it is 7871e095605332ce1cfb15e19a06f36b05604d0b that breaks it
09:11
<
freemangordon >
ok, this is the clue:
09:11
<
freemangordon >
(gdb) p range->event_window
09:11
<
freemangordon >
$8 = 0x55555577aa20 [GdkWindow]
09:11
<
freemangordon >
(gdb) p event->window
09:11
<
freemangordon >
$9 = 0x55555577a5a0 [GdkWindow]
10:04
alex1216 has joined #maemo-leste
10:47
Pali has joined #maemo-leste
10:55
Wikiwide_ has quit [Ping timeout: 256 seconds]
11:07
<
freemangordon >
uvos: I think GtkRange is broken even without hildon, but don;t have a way to test it
11:28
Wikiwide_ has joined #maemo-leste
11:44
_inky has quit [Ping timeout: 240 seconds]
11:47
<
freemangordon >
Wizzup: do you know how to build gtk or I shall ping parazyd?
11:49
<
freemangordon >
WTF? why my gtk tree differs from leset?
11:49
<
freemangordon >
*leste
11:50
<
Wizzup >
freemangordon: do you mean on the ci?
11:50
<
Wizzup >
I can help you with it
11:50
<
freemangordon >
yes
11:50
<
freemangordon >
but hold on till I find why I cannot push
11:51
<
freemangordon >
ah, I have to force-push
11:53
<
Wizzup >
did you check the changes that you forcep ushed to
11:54
<
freemangordon >
yeah
11:54
<
freemangordon >
it is one patch only I pushed few days ago (GtkRange one) I updated today
11:54
<
freemangordon >
with the fix
11:55
<
freemangordon >
maybe I should have split that to 2, but is too late already :)
11:57
inky_ has joined #maemo-leste
11:57
<
Wizzup >
git branch is it in?
11:57
<
Wizzup >
what branch
11:57
<
freemangordon >
maemo/beowulf-devel
11:57
inky has quit [Ping timeout: 245 seconds]
11:58
<
freemangordon >
Wizzup: it is ready
11:58
<
freemangordon >
I guess I shall only build it, as the changes are in debian/patches dir only
11:58
<
freemangordon >
no need to tag or something, no?
11:59
<
freemangordon >
Wizzup: hmm, what about changelog?
12:01
<
Wizzup >
freemangordon: better to do changelog
12:02
<
Wizzup >
maybe just go for 2:2.24.32-4
12:03
<
freemangordon >
not sure, that's why better wait for parazyd :)
12:03
<
Wizzup >
no need to wait
12:03
<
Wizzup >
I know you can do this np
12:03
<
freemangordon >
Wizzup: look at the changelog
12:03
<
Wizzup >
what about it?
12:03
<
Wizzup >
do you want me to do it?
12:04
<
freemangordon >
we have gtk+2.0 (2:2.24.32-3) version twice
12:04
<
freemangordon >
and that's on purpose
12:04
<
Wizzup >
no, we don't
12:04
<
Wizzup >
we have epoch
12:04
<
Wizzup >
or whatever the thing at the start is
12:04
<
freemangordon >
oh, right
12:04
<
Wizzup >
pretty sure the -3 and the end can safely be increased to -4 with no affects on anything else
12:05
<
Wizzup >
effects* even
12:05
<
freemangordon >
not sure, becaue this is upstream version
12:05
<
freemangordon >
not ours
12:05
<
freemangordon >
upstream == debian
12:05
<
freemangordon >
so, I think it is better to add entries to the current last changelog entry and rebuild
12:06
<
freemangordon >
the new version will become 2:2.24.32-3+2m7.10 or something
12:06
<
freemangordon >
current is 2:2.24.32-3+2m7.9
12:09
<
freemangordon >
Wizzup: please do it as you think is right
12:10
alex1216 has quit [Quit: WeeChat 2.3]
12:11
alex1216 has joined #maemo-leste
12:12
<
Wizzup >
freemangordon: fine as well, we'll still add a version in the repo I think
12:12
<
Wizzup >
freemangordon: then just issue a buiild
12:23
<
freemangordon >
Wizzup: are you going to do it?
12:24
<
freemangordon >
ah, you already did :)
12:25
<
freemangordon >
hmm, you didn;t do changelog it seems
12:29
<
freemangordon >
Wizzup: how often is -devel pulled in -stable?
12:32
<
Wizzup >
freemangordon: whenever we decide to, and it can be done perpackage
12:32
<
Wizzup >
it's basically a rebuild anyway
12:32
<
Wizzup >
freemangordon: yeah I'd need to force push changelog, can do that though
12:32
<
freemangordon >
why force-push?
12:33
<
Wizzup >
oh, right, doesn't need to be
12:33
<
freemangordon >
just add some lines to the current
12:33
<
Wizzup >
want me to do it?
12:33
<
freemangordon >
no, I will
12:36
<
freemangordon >
do we have an issure for that GtkRange bug?
12:36
<
freemangordon >
*issue
12:37
<
freemangordon >
done
12:38
<
Wizzup >
freemangordon: let me check
12:39
<
freemangordon >
will close it
12:58
inky_ has quit [Ping timeout: 256 seconds]
12:58
inky_ has joined #maemo-leste
13:01
<
Wizzup >
btw, what do you think we should do wrt bandgap
13:05
inky_ has quit [Ping timeout: 240 seconds]
13:13
<
freemangordon >
did you try tmlind's patch?
13:24
<
Wizzup >
freemangordon: 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 broken
13:24
<
Wizzup >
but I guess it would be good to see if it idles even if we don't want to use it
13:28
<
freemangordon >
Wizzup: bandgap being broken in fremantle kernel doesn;t mean the driver shall oops, no?
13:29
<
freemangordon >
and "broken" means you can;t rely on it to measure battery temp
13:31
<
Wizzup >
freemangordon: sure, but what I mean is that iiuc it's not even active on fremantle
13:31
<
Wizzup >
freemangordon: we read the bandgap register and it wasn't active
13:32
<
freemangordon >
which kernel?
13:33
<
freemangordon >
KP or omap1?
13:34
<
Wizzup >
2.6.28.10-sssu3
13:34
<
freemangordon >
IIRC, it is not active because: 1. it is not kept active continuously and 2. noone reads it
13:34
<
freemangordon >
hmm, I don;t remember if bandgap driver is active in cssu kernel
13:35
<
Wizzup >
there was some talk about it just a few days ago
13:35
<
Wizzup >
I just wanted to check what we're thinking of doing, mostly
13:35
<
bencoh >
freemangordon: I can probably check, if you know how to
13:35
<
bencoh >
I have a kp53 at hand
13:35
<
freemangordon >
me too
13:35
<
Wizzup >
n900 is stable on 5.15 for me now without off mode enabled
13:35
<
freemangordon >
devmem I guess
13:35
<
Wizzup >
(the only bug is X11 segfaults)
13:35
<
Wizzup >
off mode enabled though, there's more to fix for sure
13:36
<
freemangordon >
Wizzup: I think it is good to have bandgap on n900, even if we don;t use it
13:36
<
freemangordon >
the oops we see most-probably is not bandgap's driver fault
13:36
<
bencoh >
oh btw, regarding powertop and measuring wakeup events ... you should use powertop with html output
13:36
<
Wizzup >
bencoh: what does that add?
13:37
<
freemangordon >
also, it is possible that back then (fremantle) bandgap driver was buggy thus nokia gave up on it
13:37
<
freemangordon >
they were saying thumb2 and 720p are impossible too ;)
13:37
<
bencoh >
Wizzup: I don't know understand how/when powertop samples events when using the interactive view
13:37
<
freemangordon >
Wizzup: do you have a link to the discussion?
13:38
<
Wizzup >
no, it was like in the last few days
13:38
<
Wizzup >
maybe just search for pali since he was active then
13:38
<
Wizzup >
(in the logs I mean)
13:38
<
bencoh >
(yeah, thumb2, usb host mode, 720p, overclocking, ...)
13:39
<
freemangordon >
Wizzup: hmm, I took a part in sam discussion
13:39
<
freemangordon >
*some
13:39
<
freemangordon >
did I miss something important?
13:39
<
freemangordon >
Wizzup: re x11 segfault - hopefully starting tomorrow I will have time to do the needed omapdmr patch
13:40
<
freemangordon >
it shouldn't take me more than 3-4 days
13:40
<
freemangordon >
I hope
13:41
louipc has joined #maemo-leste
13:43
<
freemangordon >
bencoh: do you know if bandgap is visible in sysfs?
13:43
<
freemangordon >
on KP that is
13:43
<
bencoh >
no idea, got a name to look for?
13:44
<
freemangordon >
me neither, going to try to find it
13:44
<
bencoh >
hm, no /sys/class/thermal
13:44
<
bencoh >
that's a good start
13:44
<
Wizzup >
freemangordon: ok
13:44
<
bencoh >
(year 2009 is waiting on the other line ...)
13:44
<
Wizzup >
louipc: hi
13:45
<
louipc >
Wizzup: hehe nice name
13:45
<
Wizzup >
had it for 20 years by now I think
13:46
<
Wizzup >
freemangordon: 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)
13:46
<
louipc >
wouldnt it be cool to be able to run random programs from dubious sources and not have it affect your system at all security wise?
13:46
<
Wizzup >
is this some flatpak plug? :p
13:46
<
louipc >
even programs with unknown exploits
13:47
<
louipc >
no im just curious
13:47
<
bencoh >
freemangordon: /sys/class/power_supply/rx51-battery/temp ?
13:47
<
louipc >
if this would be like an 'ultimate' perhaps unattainable goal security-wise
13:48
<
Wizzup >
louipc: I mean there are a lot of things you can do but it'll likely never be entirely 100%
13:48
<
freemangordon >
bencoh: no
13:48
<
louipc >
as far as i know flatpak is fundamentally flawed
13:48
<
freemangordon >
/sys/class/hwmon
13:48
<
louipc >
Wizzup: yea its a constant cat-mouse game
13:49
<
freemangordon >
Wizzup: bandgap seems to be enabled on KP
13:49
<
Wizzup >
did you use the same command to read it?
13:49
<
louipc >
but i'm thinking would this kinda be something that people would like to move towards in the pursuit of security
13:49
<
freemangordon >
it is exported in sysfs
13:49
<
Wizzup >
freemangordon: ok, but is it active and in use
13:50
<
Wizzup >
iirc I used devmem to read the reg and it was 0000
13:50
<
louipc >
lemme know if im goin offtopic
13:50
<
bencoh >
freemangordon: I didn't see much in hwmon
13:50
<
louipc >
im mainly here because there was chat about debian vs android security model
13:50
<
Wizzup >
louipc: 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 that
13:51
<
bencoh >
louipc: do you mean, from a pure software point of you?
13:51
<
freemangordon >
/sys/devices/platform/omap34xx_temp
13:51
<
Wizzup >
louipc: 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 things
13:51
<
louipc >
well android is increasingly integrating hardware as part of the security model too
13:51
<
Wizzup >
freemangordon: want me to check on non-kp?
13:51
<
freemangordon >
/sys/devices/platform/omap34xx_temp # cat temp1_input
13:51
<
louipc >
with titan m chip, and such
13:51
<
Wizzup >
freemangordon: and you're sure this is bandgap btw?
13:51
<
freemangordon >
Wizzup: I guess it gets enabled only when you read it
13:51
<
bencoh >
freemangordon: nice catch. 20 here as well
13:51
<
freemangordon >
omap34xx_temp?
13:52
<
freemangordon >
sure it is
13:52
<
louipc >
Wizzup: cool. good to hear that its a consideration
13:52
<
bencoh >
but if we both read 20 ... sounds bogus :>
13:52
<
Wizzup >
freemangordon: that is also present on my kernel
13:52
<
Wizzup >
it reports 13 degrees
13:52
<
louipc >
but i understand the limited dev resources
13:52
<
buZz >
louipc: containers/namespaces is literally what i suggested, apt install firejail
13:52
<
Wizzup >
which is very inaccurate fwiw
13:53
<
Wizzup >
louipc: yeah we want the phone aspect working well first :)
13:53
<
freemangordon >
lemme check int the KP source what omap34xx_temp
13:53
<
louipc >
buZz: right. its not well integrated tho. and firejail has its flaws too
13:53
<
louipc >
android sandboxing is not an 'addon'
13:53
<
louipc >
its part of the system inherently
13:53
<
buZz >
android sandboxing has flaws too
13:54
<
buZz >
you just dont hear about them as often as they're often quickly safeguarded into a TLA's arsenal
13:54
<
buZz >
louipc: its literally a kernel feature
13:54
<
Wizzup >
firejail looks interesting
13:54
<
louipc >
as a 1st class feature they get get flaws will get dwindled down much faster
13:54
<
Wizzup >
buZz: want to lead the efforts to integrating this and apparmor in leste? ;)
13:54
<
buZz >
gladly not :D
13:55
<
dsc_ >
louipc: hi :)
13:55
<
Wizzup >
freemangordon: I can confirm that the gtk fix works
13:55
<
louipc >
consider this
13:55
<
Wizzup >
freemangordon: thanks
13:55
<
louipc >
dsc_: wuddup.
13:55
<
louipc >
dsc_: u maemo dev? :D
13:56
<
buZz >
lol @ that website
13:56
<
buZz >
> You can contact me on various platforms, including Reddit, Matrix and Telegram.
13:56
<
louipc >
anyway thanks for your perspective Wizzup.. and buZz too ;)
13:57
<
Wizzup >
louipc: if it was up to me I'd want to use the grsec rbac but that's not available anymore unfortunately
13:57
<
dsc_ >
louipc: I'm working on the `conversations` app (uses telepathy as backend) for SMS, IRC, XMPP, Telegram
13:57
<
bencoh >
(RIP opensource grsec </3 :'( )
13:58
<
louipc >
theres the kernel self protection project
13:58
<
bencoh >
compared to grsec, it's some kind of joke :(
13:58
<
freemangordon >
hmm, I don;t have kp sources around anymore?!? The fuck, I am one of its maintainers :(
13:58
<
bencoh >
freemangordon: :D
13:58
<
freemangordon >
yeah
13:58
<
bencoh >
louipc: that thing is no longer up to date
13:59
<
bencoh >
well, I think he stopped updating it at least
13:59
<
louipc >
bencoh: just select the correct branch
13:59
<
bencoh >
ah, nevermind
14:00
<
bencoh >
they only dropped the grsec porting effort I guess then
14:00
<
louipc >
dsc_: nioce mang
14:00
<
louipc >
grsec ppl are a bit nasty i hear
14:00
<
Wizzup >
oh, didn't know folks still maintain it
14:00
<
Wizzup >
that is off topic and no they're not
14:00
<
louipc >
ok sorry :p
14:01
<
Wizzup >
also just my opinion, but yeah
14:01
<
freemangordon >
hmm, I forgot how to clone from vce.maemo.org :(
14:01
<
freemangordon >
*vcs
14:01
<
bencoh >
freemangordon: just clone the address I gave you iirc
14:02
<
bencoh >
if you just want to fetch
14:02
<
freemangordon >
yueah, will try
14:02
<
bencoh >
watch out for the debian patches there
14:02
<
bencoh >
(I freaking hate that thing)
14:02
<
freemangordon >
sure, patches must be applied
14:04
<
freemangordon >
ugh, I need apt-get source actually
14:04
<
louipc >
im running linux-hardened everyday no probs
14:05
<
bencoh >
freemangordon: let's say it's easier yeah
14:05
<
bencoh >
not mandatory though
14:05
<
freemangordon >
it is, as I need .orig source anyway
14:06
<
freemangordon >
however, downloading
14:06
<
freemangordon >
on vcs there is only /debian
14:06
<
bencoh >
hmm, lemme check, I might be wrong
14:08
<
freemangordon >
source downloaded and patches applied, lets see
14:19
<
freemangordon >
Wizzup: IIUC reading 0x48002524 should return 0000, unless we are in A/d conversion cycle
14:22
<
freemangordon >
hmm, actually it should contain the last measurement in the last 6 bits
14:23
<
freemangordon >
Wizzup: so, if you disable bandgap in CONFIG, device enters OFF mode with no issues?
14:24
<
Wizzup >
freemangordon: so
14:25
<
Wizzup >
I do not know the relation between bandgap and CONFIG_OMAP3_THERMAL
14:25
<
Wizzup >
first of all OMAP3_THERMAL was causing it to basically never enter OFF mode
14:25
<
Wizzup >
secondly I have to disable cpu_thermal and bandgap in dts to not make the device reset in OFF mode with (for example) mmc access
14:25
<
Wizzup >
I do not know if these separate problems interact
14:25
* bencoh
headscratches
14:26
<
Wizzup >
I do know that afaik we were seeing the oopses/resets also with OMAP3_THERMAL enablec
14:27
<
Wizzup >
(and also with it disabled)
14:30
<
Wizzup >
freemangordon: so 'with no issues' is vague: yes it enters off mode, but there are issues until we also disable cpu_thermal and bandgap in dts
14:30
<
Wizzup >
with those gone, the device idles stable with no modules loaded (others can interact)
14:31
<
freemangordon >
CONFIG_OMAP3_THERMAL should be bandgap driver
14:31
<
freemangordon >
we may have oopses because bandgap driver has fclk
14:32
<
freemangordon >
fclk being disabled when CONTROL.CONTROL_TEMP_SENSOR is being accesses might cause oops we see
14:33
<
freemangordon >
also, it can generate TSHUT signal for thermal shutdown
14:34
<
freemangordon >
that's gpio 127, iiuc
14:35
<
freemangordon >
there is an interesting note on p. 3341 in regards to TSHUT generating an interrupt
14:39
zhxt has joined #maemo-leste
15:01
zhxt has quit [Ping timeout: 256 seconds]
15:01
zhxt has joined #maemo-leste
15:02
sunshavi_ has joined #maemo-leste
15:03
sunshavi has quit [Ping timeout: 250 seconds]
15:06
zhxt has quit [Remote host closed the connection]
15:08
inky_ has joined #maemo-leste
15:15
<
Wizzup >
freemangordon: ok @ it being bandgap
15:24
zhxt has joined #maemo-leste
15:27
_inky has joined #maemo-leste
15:29
sunshavi_ has left #maemo-leste [ERC 5.4 (IRC client for GNU Emacs 28.0.90)]
15:30
sunshavi_ has joined #maemo-leste
15:57
_inky has quit [Ping timeout: 240 seconds]
16:02
<
freemangordon >
Wizzup: shall I first look at that issue before omapdrm?
16:02
<
freemangordon >
this should be pretty easy to identify
16:05
<
bencoh >
I'm about to say something stupid (maybe), but err ... afaiu, no code can run while in OFF mode
16:06
<
bencoh >
ah, nevermind, it's non-relevant
16:06
<
freemangordon >
sure, but IIRC there comes an interrupt while we are in OFF mode
16:06
<
freemangordon >
l3_app_irq
16:06
<
bencoh >
once you try to read a register, you're already not in OFF mode
16:07
<
bencoh >
meaning that if some clock is missing, it should be enabled
16:07
<
bencoh >
(clk_enable(), whatever)
16:07
<
freemangordon >
but, if clocks of that particular IP is not running you get oops
16:07
<
freemangordon >
yes, exactly
16:07
<
bencoh >
(or some restore sequence in the idle exit code)
16:07
<
bencoh >
so you mean entering OFF mode disables that specific clock ?
16:07
<
bencoh >
and it is never restored?
16:08
<
freemangordon >
could be
16:08
<
freemangordon >
because the context seems to be saved/restored
16:08
<
bencoh >
iiuc part of the context is saved/restored by hardware, but I don't know how much of it, btw
16:09
<
bencoh >
OMAP343X_CONTROL_TEMP_SENSOR interesting
16:09
<
freemangordon >
me neither, but now I am looking at thermal driver, to see how is power/clocks controlled
16:10
<
freemangordon >
yes, this is 0x48002524
16:10
<
bencoh >
no I mean, interesting that it is saved/restored as well
16:10
<
freemangordon >
sure, why not?
16:10
<
freemangordon >
why do you think it should not be saved/restored?
16:12
<
bencoh >
oh, I just didn't expect it, that's all. but if it's flushed during idle, it definitely should :)
16:13
<
bencoh >
hm, arm_pm_idle() is the default arm idle handler right?
16:14
<
freemangordon >
no idea
16:14
<
bencoh >
looks like it is
16:15
<
Wizzup >
freemangordon: I'd prefer the omapdrm stuff tbh, we have more off mode stuyff to do anyway
16:15
<
Wizzup >
but whatever you want to work on :p
16:16
<
bencoh >
unrelated, but has the latest droid4 kernel hit -devel?
16:16
<
bencoh >
can I install only kernel from -devel, or is something expected to break?
16:17
<
Wizzup >
that will break
16:17
<
Wizzup >
why would you only get kernel?
16:17
<
bencoh >
to toy with powersaving
16:17
<
Wizzup >
you would miss out on the important bits: xf86-video-omap and new sgx userspace
16:17
<
Wizzup >
I use -devel daily and it's stable imho
16:18
<
bencoh >
well, maybe I'll just move to -devel then
16:18
<
Wizzup >
hm.... I need to triple check if new mesa is in -devel
16:18
<
Wizzup >
just a second
16:18
<
freemangordon >
bencoh: could you have a look in TRM and tell me if you understand the difference between CONTCONV = 1 and CONTCONV = 0
16:18
<
bencoh >
I still need to find out what's wrong with usb, so using this device for serious dev stuff is kind of a pain :(
16:18
<
bencoh >
freemangordon: lemme check
16:18
<
bencoh >
freemangordon: omap3 right?
16:18
<
freemangordon >
7.4.6.2.1 that is
16:19
<
freemangordon >
yes
16:19
<
Wizzup >
bencoh: maybe just add -experimental and not -devel
16:19
<
bencoh >
oh, I dont have the omap3 TRM on that host, fun
16:19
<
Wizzup >
sounds more dangerious but it isn't really
16:20
<
bencoh >
Wizzup: :D
16:20
<
Wizzup >
btw, this would be for droid4 pm stuff right, not n900?
16:21
<
freemangordon >
ah, it seems you should not assert SoC to start another a/d cycle
16:23
<
freemangordon >
Wizzup: BTW, do you still see "eocz timed out waiting high" ?
16:25
<
bencoh >
freemangordon: basically with CONTCONV==1 ADC keeps converting and writing to CONTROL_TEMP_SENSOR
16:25
<
freemangordon >
yeah
16:25
<
freemangordon >
I wonder how do you stop that :)
16:25
<
freemangordon >
anyway
16:25
<
bencoh >
probably by clearing CONTCONV
16:26
<
freemangordon >
mhm
16:26
<
Wizzup >
freemangordon: oh, uh, when should I check for this exactly (what enabled), and do you mean on n900?
16:26
<
bencoh >
I'm not super happy with lacking Samsung/Exynos documentations, but heck, TI/OMAP documentation is unreadable
16:27
<
bencoh >
I get this impression every single time I open one of those TRMs ...
16:27
<
freemangordon >
Wizzup: in dmesg
16:27
<
bencoh >
their SoCs are a mess :(
16:27
<
freemangordon >
we were seeing that on d4 iirc
16:27
<
freemangordon >
do you see that on n900?
16:28
<
freemangordon >
Wizzup: also, it seems tshut gpio is not defined for omap3
16:28
<
freemangordon >
in dts that is
16:29
<
freemangordon >
tmlind: ping
16:29
<
sicelo >
Wizzup: xf86-video-omap ... what's the correct package name? pvr-omap4-xf86? or xserver-xorg-video-omap?
16:29
<
bencoh >
CONTROL_TEMP_SENSOR returns 0x0 on kp53 here btw, is that expected?
16:29
<
freemangordon >
no idea
16:30
<
freemangordon >
but driver seems to work
16:31
<
bencoh >
ah, now it shows 0x2e
16:31
<
bencoh >
(I devmem'ed it in a loop and cat'ed the temp1_input sysfs at the same time)
16:32
<
freemangordon >
mhm
16:32
<
freemangordon >
makes sense
16:32
<
bencoh >
0x2E != 20, but whatever
16:32
<
freemangordon >
oh, no
16:32
<
bencoh >
no idea what they do there
16:32
<
freemangordon >
this is adc reading
16:32
<
bencoh >
it's reprocessed?
16:32
<
freemangordon >
there is a table, look in the TRM
16:33
<
bencoh >
yay, 46 == 19.4
16:33
<
Wizzup >
sicelo: look at git repo of xf86-video-omap debian/control
16:33
<
sicelo >
thanks. will do
16:33
<
bencoh >
(ie 0x2E -> 19.4)
16:33
<
bencoh >
looks like it works then
16:34
<
freemangordon >
try to find omap34xx_adc_to_temp over the inet
16:34
<
freemangordon >
this is what is used in KP
16:34
<
bencoh >
I'll check in my kp tree
16:34
<
freemangordon >
umm
16:34
<
freemangordon >
in upstream, sorry :)
16:35
<
freemangordon >
in kp it is adc_to_temp
16:35
<
bencoh >
yeah there is a nice LUT
16:35
<
freemangordon >
mhm
16:37
<
freemangordon >
hmm:
16:37
<
freemangordon >
.bgap_dtemp_mask = 0x7f,
16:38
<
freemangordon >
this is rather 3f
16:39
<
bencoh >
I suppose core_l4_clkdm is the default clock domain?
16:39
<
sicelo >
Wizzup: 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 :-)
16:40
<
bencoh >
freemangordon: yeah it should be 0x3f
16:40
<
Wizzup >
sicelo: I think that depends on the -meta file
16:40
<
Wizzup >
if you are asking for n900, I didn't fix those yet
16:40
<
sicelo >
i'm on d4. that's why i find it odd
16:40
<
Wizzup >
for droid4 it should work with dist-upgrade and -experimental
16:40
<
freemangordon >
and I guess this leads to wrong temp being calculated
16:41
<
freemangordon >
not only that, but this could potentially lead to writing to EOCZ, which is RO bit
16:42
<
bencoh >
freemangordon: although I'm not sure EOCZ is high when they try to read it
16:42
<
bencoh >
well, I dunno how the mainline driver does it, but I didn't see CONTCONV==1 on kp53
16:42
<
bencoh >
(when dumping regs)
16:42
<
freemangordon >
it is in single conv mode
16:43
<
bencoh >
then they probably don't read the temp register before EOCZ returns to 0
16:43
<
freemangordon >
right
16:43
<
bencoh >
so it shouldn't affect it
16:43
<
bencoh >
(but you're right that it's wrong)
16:44
<
freemangordon >
mhm
16:44
<
freemangordon >
what worries me more is that tshut gpio is ignored
16:44
<
freemangordon >
I think that potentially may lead to what Wizzup is seeing
16:45
<
freemangordon >
because it seems gpios have issues in OFF mode
16:45
<
bencoh >
fucking firefox preventing me from opening non-https files -_- wtf
16:45
<
bencoh >
getlost mozilla
16:46
<
bencoh >
freemangordon: what is tshut gpio?
16:46
<
bencoh >
camera shut?
16:46
<
bencoh >
(I guess not, but ...)
16:47
<
freemangordon >
thermal shutdown
16:47
<
bencoh >
I don't see it in schems
16:47
<
bencoh >
is it a real gpio, or an internal interrupt?
16:47
<
freemangordon >
it is internal
16:47
<
freemangordon >
gpio 127
16:48
xmn has joined #maemo-leste
16:49
<
freemangordon >
bencoh: search for gpio_127
16:50
<
bencoh >
I only see it in omap3-pandora and a few non-omap3 boards ... lemme update my tree
16:51
<
freemangordon >
I don;t see it at all
16:51
<
freemangordon >
ah, the search is for TRM
16:53
<
bencoh >
afaiu tshut != gpio_127
16:53
<
bencoh >
tshut is an input-only internal signal
16:53
<
freemangordon >
hmm, my bad, 7f is ok
16:54
<
freemangordon >
yeah :)
16:54
<
bencoh >
tbf I made the same mistake when checking the regs manually :)
16:54
<
freemangordon >
so, what do you mean about gpio 127?
16:55
<
freemangordon >
it
*is* gpio 127 if connected to a ball
16:55
<
freemangordon >
look at p. 3341
16:55
<
bencoh >
it took me some time to understand that gpio_127 can either be gpio_127 (external gpio) or TSHUT
16:56
<
bencoh >
(see the GPIO Integration Overview figure)
16:56
<
freemangordon >
mhm
16:56
<
bencoh >
no wonder it doesn't show up in schems then
16:57
zhxt has quit [Remote host closed the connection]
16:57
<
freemangordon >
do you see any threshold for tshut activation?
16:59
<
bencoh >
I see 160C
16:59
<
bencoh >
but that sounds high (wrong?)
17:00
<
bencoh >
see 7.4.6.2 Temperature Sensor
17:03
_inky has joined #maemo-leste
17:04
<
bencoh >
freemangordon: do we get "invalid gpio for tshut" at boot?
17:05
<
freemangordon >
no idea
17:05
<
freemangordon >
only Wizzup knows
17:05
<
bencoh >
ohwell, actually, nevermind .... omap3-thermal-data.c doesn't features TI_BANDGAP_FEATURE_TSHUT
17:05
<
freemangordon >
mhm
17:05
<
freemangordon >
which is weird
17:05
<
bencoh >
so the driver doesn't even try
17:05
<
freemangordon >
yes
17:05
<
bencoh >
either they didn't deem it necessary, or they missed omap3 when adding support for omap4/omap5
17:06
<
freemangordon >
thats strange, given that 3630 even has control over whether to enable or not TSHUT functionality
17:06
<
freemangordon >
(I am looking at 3630 TRM)
17:06
<
bencoh >
well, maybe they got lazy :>
17:06
<
freemangordon >
mhm
17:09
<
freemangordon >
So, maybe what happens is:
17:09
<
freemangordon >
1. omap3 bangap driver doesn't attach irq routine for TSHUT interrupt(gpio)
17:09
<
freemangordon >
nice theory, but doesn;t explain why there is no oops with bangap driver disabled :)
17:09
<
freemangordon >
2. in OFF mode gpios go crazy
17:09
<
freemangordon >
4. we have unhandled irq
17:09
<
freemangordon >
3. TSHUT is generated because of 2
17:10
<
freemangordon >
so, I think the highest prio is to see what happens with GPIOs in OFF mode
17:10
* freemangordon
is afk
17:10
<
freemangordon >
ttyl
17:13
zhxt has joined #maemo-leste
17:21
<
Wizzup >
18:04 < bencoh> freemangordon: do we get "invalid gpio for tshut" at boot?
17:21
<
Wizzup >
18:05 < freemangordon> only Wizzup knows
17:21
<
Wizzup >
18:05 < freemangordon> no idea
17:21
<
bencoh >
Wizzup: the answer is probably no, but the question was whether we get that error at boot (dmesg)
17:23
<
freemangordon >
Wizzup: also, there is some SiErr it seems, look at sprz278f.pdf
17:23
<
bencoh >
(the omap4 devicetrees probably define the gpio/interrupt, btw)
17:23
<
freemangordon >
3.1.1.186
17:24
<
Wizzup >
yeah that's also a comment in kernel:
17:24
<
bencoh >
I was reading the omap34xx TRM btw, I just realized n900 is ... omap35xx right?
17:24
<
freemangordon >
it is 3430
17:24
<
bencoh >
ah alright
17:24
<
bencoh >
the errata is 35xx then
17:24
<
freemangordon >
hmm?
17:25
<
freemangordon >
3430 is HS version
17:25
<
bencoh >
sprz278f.pdf mentions 3530
17:25
<
bencoh >
nevermind )
17:26
<
bencoh >
freemangordon: I wouldn't be surprised if the tshut "omission" was related to that erradata
17:26
<
bencoh >
since on omap3 gpio_127 is mmc_whatever mode4
17:27
<
bencoh >
control_padconf_mmc1_dat4 / mmc1_dat5 / gpio_127
17:27
<
bencoh >
oh, erm ... mmc1 is in use on n900 right?
17:28
<
bencoh >
if so, then tshut cannot be used no matter what :)
17:30
<
bencoh >
the workaround in the errata is quite hilarious :'(
17:30
<
bencoh >
but we probably shouldn't be affected since our mmc IS in use
17:31
<
bencoh >
(unless it gets disabled from one of the pm_runtime handlers)
17:32
<
Wizzup >
sicelo: did -experimental work
17:32
<
Wizzup >
sicelo: if it didn't can you share the output of apt dist-upgrade
17:32
<
bencoh >
Wizzup: what's the recommended way to upgrade leste these days btw? HAM? apt-get in a screen/tmux? disabling some mce/dsme flag?
17:35
<
Wizzup >
I don't think leste usually restarts during an upgrade, but it does happen sometimes
17:36
<
Wizzup >
I just run 'apt-get update' and 'apt-get dist-upgrade'
17:36
<
Wizzup >
from osso-xterm
17:36
<
bencoh >
Wizzup: it hapenned to me last time :>
17:36
<
bencoh >
(actually it didn't even manage to poweroff iirc, I had to force-reboot :>)
17:36
<
Wizzup >
I don't have a specific recommendation, but you can touch the /etc/no_lg_reboots file or something
17:36
<
Wizzup >
(check name)
18:04
alex1216 has quit [Ping timeout: 268 seconds]
18:26
System_Error has quit [Ping timeout: 276 seconds]
18:31
_inky has quit [Ping timeout: 256 seconds]
18:32
inky_ has quit [Ping timeout: 256 seconds]
18:50
inky_ has joined #maemo-leste
19:15
uvos has joined #maemo-leste
20:02
alex1216 has joined #maemo-leste
20:49
alex1216 has quit [Ping timeout: 240 seconds]
20:51
alex1216 has joined #maemo-leste
20:54
sunshavi_ has quit [Ping timeout: 260 seconds]
20:55
sunshavi_ has joined #maemo-leste
20:55
inky has joined #maemo-leste
20:58
inky_ has quit [Ping timeout: 260 seconds]
21:18
_inky has joined #maemo-leste
21:29
mardy has quit [Quit: WeeChat 2.8]
22:07
alex1216 has quit [Quit: WeeChat 2.3]
23:07
System_Error has joined #maemo-leste
23:26
TonyStone has quit [Remote host closed the connection]
23:28
TonyStone has joined #maemo-leste