00:05
ruleh93 has quit [Ping timeout: 256 seconds]
00:12
xmn has quit [Quit: xmn]
00:30
akossh has quit [Quit: Leaving.]
00:35
uvos has quit [Ping timeout: 268 seconds]
00:53
System_Error has joined #maemo-leste
01:27
n900 has quit [Ping timeout: 245 seconds]
01:40
n900 has joined #maemo-leste
02:16
Pali has quit [Ping timeout: 260 seconds]
02:26
vifino has quit [Ping timeout: 268 seconds]
03:01
sunshavi has joined #maemo-leste
03:09
System_Error has quit [Remote host closed the connection]
03:20
System_Error has joined #maemo-leste
03:23
n900 has quit [Ping timeout: 256 seconds]
03:25
n900 has joined #maemo-leste
04:46
ceene has quit [Ping timeout: 260 seconds]
04:52
inky has quit [Ping timeout: 240 seconds]
04:52
_inky has quit [Ping timeout: 250 seconds]
05:30
joerg has quit [Ping timeout: 245 seconds]
05:32
joerg has joined #maemo-leste
05:57
mardy has joined #maemo-leste
06:27
_inky has joined #maemo-leste
06:36
System_Error has quit [Ping timeout: 276 seconds]
06:43
Danct12 has quit [Quit: Quitting]
06:50
Danct12 has joined #maemo-leste
07:01
Wikiwide has quit [Ping timeout: 268 seconds]
09:12
uvos has joined #maemo-leste
09:48
Pali has joined #maemo-leste
10:35
doc has quit [Ping timeout: 264 seconds]
11:04
peetah has quit [Ping timeout: 245 seconds]
11:06
peetah has joined #maemo-leste
11:11
<
Wizzup >
these seem quite small
11:25
<
uvos >
not sure why you need sutch a thing
11:25
<
uvos >
just one of these
11:25
<
uvos >
set it to 3.7v before you leave
11:26
<
uvos >
and have a usb cable feed it
11:26
<
uvos >
maybe rather this
11:26
<
uvos >
transient current can be pretty high with these things
11:27
<
Wizzup >
I might be able to find those locally here now
11:28
<
uvos >
but you need a multimeter too
11:28
<
uvos >
not sure what you have
11:28
<
Wizzup >
nothing, but there should be shops with that stuff here
11:28
<
Wizzup >
probably better if I just wait and focus on other stuff, but I don't like waiting :)
11:29
<
uvos >
probubly more sane just to work on userspace with the d4
11:30
<
Wizzup >
I'll work on the bootmenu+recovery-mode and omap-linux some, try to get that going
11:38
<
bencoh >
uvos: wait, is that thing reliable
11:38
<
bencoh >
uvos: it looks like a toy
11:39
<
uvos >
ofc its just a lm259
11:39
<
uvos >
extreamly widly used in products
11:39
<
bencoh >
no I meant, your first link
11:39
<
uvos >
and the rest is just its referance implementation
11:40
<
bencoh >
the "power supply" with the lcd screen
11:40
<
uvos >
those work great too
11:40
<
Wizzup >
the one I linked?
11:40
<
uvos >
cant vautch for this exact one
11:41
<
uvos >
but i have several
11:41
<
uvos >
they are fine
11:41
<
bencoh >
Wizzup: ah right, that one too
11:41
<
uvos >
no match for a real lab supply on output ripple or regulation
11:41
<
uvos >
but perfectly fine otherwise
11:41
<
Wizzup >
I mean I don't think I can find a lab psu here, that's the problem :p
11:41
<
Wizzup >
I'll just wait
11:42
<
bencoh >
Wizzup: what kind of voltage do you need anyway?
11:44
<
Wizzup >
a bit less, but around that, yes
11:47
mrtux2 has joined #maemo-leste
11:50
Armen2 has joined #maemo-leste
11:51
asriel_dreemurr has joined #maemo-leste
11:55
tmlind_ has joined #maemo-leste
11:55
mardy has quit [Ping timeout: 260 seconds]
11:56
tmlind has quit [Ping timeout: 260 seconds]
11:56
blasty has quit [Ping timeout: 260 seconds]
11:56
n900 has quit [Ping timeout: 260 seconds]
11:56
mrtux has quit [Ping timeout: 260 seconds]
11:56
asrieldreemurr has quit [Ping timeout: 260 seconds]
11:56
Armen has quit [Ping timeout: 260 seconds]
11:56
mrtux2 is now known as mrtux
11:56
Armen2 is now known as Armen
11:58
blasty has joined #maemo-leste
12:01
mardy has joined #maemo-leste
12:04
n900 has joined #maemo-leste
13:14
adc has quit [Quit: reboot]
13:26
adc has joined #maemo-leste
13:38
ruleh has joined #maemo-leste
14:02
<
Wizzup >
found a local shop, will go there now I guess
14:12
<
uvos >
"[12:41] <Wizzup> I'll just wait" that lasted long :P
14:44
vifino has joined #maemo-leste
16:50
[TheBug] has quit [Changing host]
16:50
[TheBug] has joined #maemo-leste
17:12
<
freemangordon >
uvos: drmModePageFlip takes 6 ms
17:12
<
freemangordon >
according to docs it shall return immediately
17:22
<
Wizzup >
got it at least
17:23
<
freemangordon >
well, not sure
17:25
<
uvos >
freemangordon: thats wierd drmModePageFlip shouldent really do anything at all
17:31
<
uvos >
plenty of reasons why drm_mode_page_flip_ioctl can stall for a while really
17:35
<
freemangordon >
I think in our case it is that it pins the framebuffer
17:36
<
freemangordon >
but I think we have more general issue here - it seems buffer is created for every frame
17:36
<
freemangordon >
not that I know how is that supposed to work
17:37
<
freemangordon >
but in armsoc we have ARMSOCDRI2ReuseBufferNotify()
17:38
<
uvos >
in our flipchain dri2 in x calls a function called check_resue_buffer (or something like that)
17:38
<
uvos >
it returns false
17:38
<
uvos >
maybe check whyy
17:38
<
Wizzup >
ok, I have a working serial. now to remember which string to use for kernel command line
17:40
<
uvos >
freemangordon: its allocate_or_reuse_buffer
17:40
<
uvos >
the ddx implements ReuseBufferNotify
17:40
<
uvos >
yeah looks like what armsoc probubly dose
17:42
<
freemangordon >
hmm, where do you see that?
17:43
<
freemangordon >
uvos: I don;t see such function
17:43
doc has joined #maemo-leste
17:44
<
uvos >
hw/xfree86/dri2/dri.c
17:44
<
uvos >
hw/xfree86/dri2/dri2.c
17:44
<
uvos >
allocate_or_reuse_buffer
17:45
<
uvos >
gets called on every flip and returns false on d4 - i checked this yesterday
17:45
<
freemangordon >
I don;t understand what do you mean "the ddx implements ReuseBufferNotify"
17:45
<
freemangordon >
omap-video ddx does not implement that
17:45
<
freemangordon >
maybe this is one of the problems
17:45
<
uvos >
thats why allocate_or_reuse_buffer returns false
17:46
<
uvos >
the ddx implements ReuseBufferNotify if it wants
17:46
<
uvos >
actually thats not what happens
17:46
<
freemangordon >
ah, yeah, sure
17:46
<
uvos >
it returns false for another reason
17:47
<
uvos >
actually false is reuse
17:50
<
freemangordon >
uvos: what about (both of us) try to find some time these days and debug this?
17:51
<
freemangordon >
I mean - to have a debug session
17:52
<
freemangordon >
not to say that it somehow manages to tear while doing page flip
17:53
<
freemangordon >
this is impossible on theory :)
17:53
<
freemangordon >
*in theory
17:54
<
uvos >
why would that be impossible, you can flip during hblank
17:56
<
freemangordon >
no, because the flip requested is "flip on next vblank"
17:56
<
freemangordon >
Wizzup: do we have some budget to spend on that?
17:56
<
uvos >
sure we can debug some time
17:56
<
uvos >
synconiously
17:56
<
freemangordon >
yeah
17:56
<
uvos >
idk if it makes sense but sure
17:56
<
freemangordon >
I am not sure too
17:57
<
freemangordon >
thus my question ^^^ to Wizzup
17:57
<
freemangordon >
if we can find someone who knows how all this is supposed to work
17:58
<
Wizzup >
freemangordon: probably depends on how much the person needs
17:59
<
freemangordon >
well, I guess we have to fina that 'person' first
18:34
RedW has quit [Ping timeout: 268 seconds]
18:39
RedW has joined #maemo-leste
18:41
<
Wizzup >
let's see if I can boot to recovery mode with serial now :)
18:42
vifino has quit [Ping timeout: 245 seconds]
18:43
<
Wizzup >
uvos: do we need to install something to make the recovery softlevel work?
18:43
<
Wizzup >
hm, ok, nevermind, it works I think
19:04
<
Wizzup >
uvos: btw since I attached serial I haven't bad any random boot failure ;)
19:07
peetah has quit [Ping timeout: 245 seconds]
19:10
peetah has joined #maemo-leste
19:14
<
Wizzup >
tmlind_: ok, I have a shell now with the uarts idled and no modules loaded
19:14
<
Wizzup >
the screen seems to be on still though
19:15
<
Wizzup >
I guess I'll load omapdrm and friends?
19:24
RedW has quit [Ping timeout: 250 seconds]
19:27
<
Wizzup >
uvos: ping
19:28
<
uvos >
Wizzup: hmm?
19:28
<
Wizzup >
uvos: how do I blank a display with drm
19:28
<
Wizzup >
I might not have enough modules loaded yet but it's also not clear to me
19:28
<
Wizzup >
uvos: as in, I have the n900 booted to init=/bin/bash and enabled off mode
19:28
RedW has joined #maemo-leste
19:28
<
Wizzup >
but I don't think the screen is off
19:29
<
Wizzup >
ok, I do not have /dev/dri/ yet
19:29
<
Wizzup >
so more is missing
19:29
<
Wizzup >
the panel is loaded though
19:29
<
uvos >
is omapdrm loaded?
19:30
<
Wizzup >
no, definitely not udev since that loads all the modules
19:30
<
Wizzup >
which is the point: I don't want it to do that
19:30
<
freemangordon >
Wizzup: maybe mknod
19:30
<
Wizzup >
when I booted to init=/bin/bash the display was still on from u-boot
19:30
<
uvos >
Wizzup: well udev also creats lots of the files in /dev/
19:31
<
Wizzup >
I ran busybox mdev -s and it didn't make it
19:31
<
Wizzup >
as you sure what's all that is needed?
19:31
<
parazyd >
You should mount devtmpfs first, no?
19:31
<
parazyd >
Then mdev
19:31
<
uvos >
module wise that looks correct
19:31
<
Wizzup >
oh you're right, even devtmpfs is not set up
19:32
<
parazyd >
Then also sys and proc manually
19:32
<
Wizzup >
maybe not, it says it's already mounted
19:32
<
Wizzup >
but it's not in mount
19:32
<
Wizzup >
parazyd: yes I did that
19:32
<
freemangordon >
Wizzup: I think you should mknod /dev/dri/card0 c 226,0 at some point
19:32
<
Wizzup >
# mount -t devtmpfs devtmpfs /dev
19:32
<
Wizzup >
mount: /dev: devtmpfs already mounted on /dev.
19:33
<
freemangordon >
sorry, it is mknod /dev/dri/card0 c 226 0
19:33
<
freemangordon >
(no comma)
19:33
<
Wizzup >
still, I don't have internet so I can't build uvos tool anyway
19:33
<
Wizzup >
I'll have to reset/reboot
19:34
<
Wizzup >
kinda weird that kernel provides no way to do this
19:34
<
parazyd >
In my initramfs shell script I have:
19:34
<
parazyd >
mount -t devtmpfs none /dev
19:34
<
parazyd >
mount -t proc none /proc
19:34
<
parazyd >
mount -t sysfs none /sys
19:34
<
parazyd >
in that order
19:35
<
freemangordon >
glib upstream replied, finally :)
19:36
<
freemangordon >
pm runtime
19:36
<
Wizzup >
yes, as always
19:38
<
freemangordon >
lets hope tmlind_ know how to find the offending module
19:38
<
freemangordon >
*knows
19:39
<
freemangordon >
Wizzup: maybe post on linux-omap
19:39
<
Wizzup >
yeah, I'm just trying to catch a bunch
19:39
<
Wizzup >
I'll have to build nokia modem again later as well
20:00
<
Wizzup >
parazyd: btw kernel does it:
20:00
<
Wizzup >
# dmesg|grep devtmp
20:00
<
Wizzup >
[ 5.040222] devtmpfs: mounted
20:00
<
Wizzup >
[ 0.134277] devtmpfs: initialized
20:01
vifino has joined #maemo-leste
20:02
<
Wizzup >
so the mknod is not enough (or just wrong) since uvos drm tool gets Can not open drm device /dev/dri/card0: No such device
20:03
<
freemangordon >
maybe you need to mknod render node as well
20:04
<
Wizzup >
modprobe display_connector
20:04
<
Wizzup >
this was necessary
20:09
<
Wizzup >
it looks like the touchscreen doesn't even support runtime pm?
20:11
<
uvos >
i mean it just calls perror() regardless
20:11
<
uvos >
so that dosent mean anything
20:11
<
uvos >
unless drmSetMaster is failing
20:11
<
uvos >
i should klean that thing up a bit
20:12
<
uvos >
dose it not work?
20:12
<
Wizzup >
uvos: well maybe I need to also disable the backlight manually?
20:13
<
uvos >
if the backlight is associated with the right output device in dts it should also turn off
20:13
<
uvos >
cat /sys/class/drm/*/dpms
20:14
<
uvos >
should tell you if the display is on or not
20:14
<
uvos >
according to drm
20:15
<
Wizzup >
it looks like you things turns off only one
20:15
<
Wizzup >
# cat /sys/class/drm/*/dpms
20:15
<
uvos >
obivously you need to have whatever module the baclight led is on loaded too
20:15
<
Wizzup >
(runs tool)
20:15
<
Wizzup >
# cat /sys/class/drm/*/dpms
20:15
<
Wizzup >
yes, but I can control the backlight via sys so it is loaded with the panel
20:16
<
Wizzup >
I think probably it turns off the s-video/composite but not the lcd
20:16
<
uvos >
it should turn off both
20:16
<
Wizzup >
# cat /sys/class/drm/card0-Composite-1/dpms
20:16
<
Wizzup >
t# cat /sys/class/drm/card0-DPI-1/dpms
20:16
<
uvos >
works on d4 with dsi and hdmi
20:17
<
uvos >
drmModeConnectorSetProperty also returns 0 for both displays
20:17
<
uvos >
so it not haveing any effect is wierd
20:17
<
Wizzup >
't is what is happening though
20:17
<
uvos >
maybe something else is reneableing it, could you have drm_blankscreen not quit
20:17
<
uvos >
and not drop master
20:18
<
uvos >
that way nothing can renable
20:18
<
uvos >
so move drmSetMaster(device); out of the loop
20:18
<
uvos >
and add while(true) to the end
20:18
<
uvos >
after the loop
20:19
<
uvos >
and remove drmDropMaster(device); ofc
20:19
<
Wizzup >
the only process that runs is bash
20:20
<
uvos >
the kernel might for its console, it dident when i wrote the program but it might now
20:20
<
Wizzup >
in any case currently: # sleep 5; ./idle.sh
20:20
<
Wizzup >
ST_UART2,ST_MCSPI1
20:20
<
Wizzup >
uvos: console=ttyS2 though
20:20
<
uvos >
Wizzup: no idea then
20:21
<
Wizzup >
spi1 = touchscreen as far as I can tell
20:21
<
Wizzup >
(and it's not loaded, and it doesn't do pm)
20:21
<
uvos >
and uart is undetached kernel console
20:22
<
Wizzup >
it is detached actually
20:22
<
Wizzup >
uart2 seems to be bt
20:22
<
Wizzup >
[ 2.565093] printk: console [ttyS2] enabled
20:22
<
Wizzup >
[ 17.983398] printk: console [ttyS2] disabled
20:31
<
Wizzup >
uvos: maybe fbdev can be used to blank or something?
20:34
<
uvos >
you can try fbdev blanking
20:34
<
uvos >
but on d4 it dosent allow it it idle
20:37
<
Wizzup >
interesting, without drm loaded (just serials idled and off mode enabled) I get this:
20:37
<
Wizzup >
# sleep 5 ; ./idle.sh
20:38
<
uvos >
dose i2cdetect suggest you have any i2c devices in use by the kernel?
20:39
<
Wizzup >
it looks like RET increases though
20:39
<
uvos >
looking at /sys/class/i2c-dev/ should also work
20:39
<
uvos >
ah so its not blocked all the time
20:39
<
Wizzup >
yes, which is great, I haven't seen that before
20:40
<
uvos >
that might be the best you can do, tmlind mentioned that the kernel is too busy with timers to enter off mode with stock cost table
20:40
<
uvos >
dunno if it applies when you have so little modules loaded or not
20:40
<
Wizzup >
# sleep 5; ./idle.sh
20:40
<
Wizzup >
OFF:0,RET:458
20:41
<
Wizzup >
uvos: fwiw no modules loaded at all atm
20:42
<
Wizzup >
well I guess this is some progress
20:44
<
Wizzup >
looks like loading just drm (not omapdrm) and panel adds uart2 as blocker, but allows me turn off backlight and it's not too bad ...
20:44
<
Wizzup >
0.01A at 0.34V
20:47
mardy has quit [Quit: WeeChat 2.8]
20:49
<
Wizzup >
so like 71mW?
20:49
<
Wizzup >
# sleep 10 ; cat /sys/class/power_supply/bq27200-0/power_avg
20:49
<
Wizzup >
uvos: 3.4V
20:50
<
Wizzup >
my display is showing 03.4v ;)
20:50
<
uvos >
0.01A at 0.34V =/= 71mW
20:50
<
uvos >
or 0.01A at 3.4V =/= 71mW even
20:51
<
Wizzup >
right, which is why I took the measure from bq27200
20:51
<
uvos >
71mW is the same as bionic at idle
20:51
<
Wizzup >
71mW seems about right for hitting RET some time but not OFF, no
20:51
<
uvos >
also ret no off
20:51
<
uvos >
so that makes sense
20:51
<
uvos >
actually bionic is about 60
20:51
<
Wizzup >
yeah maybe I need to let it settle some more
20:52
<
Wizzup >
ok, I'll document all of this, but then there is a big task of loading modules one by one I guess
20:52
<
Wizzup >
seeing what causes what kind of blocks
20:52
<
Wizzup >
I suspect there's more than a few different ones
20:52
<
Wizzup >
also didn't tmlind_ say he fixed OFF not being hit?
20:52
<
uvos >
not that i remember
20:53
<
uvos >
i remember him hacking the cost table
20:53
<
uvos >
no idea how this ended up
20:55
<
Wizzup >
sicelo: ok, so looks like we probably dn't have it yet
20:56
<
Wizzup >
thanks for digging that up :)
20:56
<
sicelo >
18:40 <tmlind> uvos: yup trying with target_residency of 50000 and 60000 makes core ret work
20:56
<
sicelo >
18:40 <tmlind> core_pwrdm (ON),OFF:19,RET:6,INA:0,ON:26,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0,RET-MEMBANK2-OFF:0
20:56
<
sicelo >
so you could try that and see
20:57
<
uvos >
but we need to mesure target_residency really
20:57
<
uvos >
and see if the current value is wrong
20:58
<
Wizzup >
so this would be replacing 15000 with 50000 and 30000 with 60000 ?
20:58
<
Wizzup >
in arch/arm/mach-omap2/cpuidle34xx.c
20:59
<
uvos >
you should lower it really
20:59
<
uvos >
if you want it to pick it more often
21:00
<
Wizzup >
well it looks like we're raising it atm?
21:00
<
Wizzup >
unless I am missing something?
21:01
<
uvos >
that makes no sense
21:01
<
uvos >
thats why im mentioning it
21:01
<
Wizzup >
well I might do what tmlind said worked first
21:01
<
Wizzup >
and then see what better values we need?
21:01
<
uvos >
just set off to what ret is now
21:01
<
uvos >
there might not be better values
21:02
<
uvos >
so the point of target_residencey is that this is the minimum time the device must spend there for it to make sense to enter this state
21:02
<
uvos >
from a pm perspective
21:02
<
uvos >
off requries you to reload all registers
21:02
<
uvos >
its expensive
21:02
<
Wizzup >
then why does it only work for tmlind_ if he increases it?
21:04
<
uvos >
his values must be wrong/typo, he must be looking at a different file or he/someone changed it to a lower value since
21:04
<
Wizzup >
last change Date: Wed Mar 4 14:54:30 2020 -0800
21:04
<
Wizzup >
grepping for omap3_idle_driver only shows this file
21:04
<
Wizzup >
and these are the only target_residency mentions
21:05
<
Wizzup >
omap3_idle_driver vs omap3430_idle_driver
21:05
<
Wizzup >
ok I see what I should change now
21:06
<
Wizzup >
sorry for being slow
21:06
<
uvos >
we are all slow sometimes
21:17
<
Wizzup >
ttps://github.com/maemo-leste/bugtracker/issues/545#issuecomment-980438141 posted some info here
21:18
<
uvos >
Terrorist Tactics and ProcedureS?
21:19
<
Wizzup >
totally worth the 40 euro for this lab psu
21:21
<
Wizzup >
any ideas about the best way to load specific modules and do off mode tests?
21:21
<
Wizzup >
to see which ones block idle
21:22
<
Wizzup >
I figured maybe I can make some script that one can set as init= that also sets up wifi and sshd, but I don't think I have job management in my bash shell currently
21:23
<
uvos >
omap3430 having its own special cost table probubly has a reason btw
21:24
<
uvos >
there is likley some bug that causes it to take forever to restore from idle or some errata that wastes a buch of power on wakeup
21:25
<
uvos >
ie this numbers suggest something is broken hw wise
21:25
<
Wizzup >
well, what can we do :)
21:25
<
uvos >
no idea, we need to quiet down the kernel timers
21:25
<
Wizzup >
I meant we cannot fix the hw
21:26
<
Wizzup >
but yeah I guess you mean lowering the timers doesn't necessarily help
21:26
<
Wizzup >
maybe tmlind was also onto something when he said maybe they overflow
21:49
<
Wizzup >
# sleep 5; ./idle.sh
21:49
<
Wizzup >
OFF:13,RET:1
21:52
<
sicelo >
that's beautiful sight :-)
21:52
<
Wizzup >
doesn't seem to matter much for power usage compared to ret though
21:53
<
uvos >
probubly the errata biteing
21:53
<
uvos >
maybe some value higher than what you have
21:53
<
uvos >
but lower than before would be better
21:54
<
Wizzup >
it looks like kernel also just wakes up more than before perhaps
21:54
<
Wizzup >
causing it not to be hit
21:54
<
uvos >
right yes thats true for sure
21:54
<
uvos >
its very busy
21:54
<
uvos >
increably so compeard to the motorola kernel for instance
21:57
meldrian is now known as IchBinDerUweUndB
21:58
IchBinDerUweUndB is now known as IchBinDerUwe
22:13
<
Wizzup >
uvos: do you see that in powertop?
22:31
<
Wizzup >
looks like tsc2005 just outright blocks idle when probed
22:31
<
uvos >
whats lol about that?
22:32
<
uvos >
if it dosent support runtimepm
22:32
<
Wizzup >
well I think it does in some form
22:32
<
Wizzup >
at least open/close do something
22:35
<
Wizzup >
uvos: well it's mostly lol in the sense that it's the first module I probed
22:35
<
Wizzup >
and it blocks idles right away
22:36
<
uvos >
not sure if suprising, ts on d4 also blocked idle at all times untill tmlind improved the driver
22:36
<
uvos >
fixing various drivers is likely going to be the story of your life for a while :P
22:36
<
Wizzup >
at least wifi does not block idle
22:37
<
uvos >
thats something
23:10
uvos has quit [Read error: Connection reset by peer]
23:23
freemangordon has quit [Ping timeout: 256 seconds]