maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] kernel-power stable v50 in Extras (https://talk.maemo.org/showthread.php?t=83118)

marmistrz 2012-06-27 15:19

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Mitrigol (Post 1228181)
Hey, i have a question for you all.

While doing some tests with Thumb kernel, i had some trouble with Powertop as the CPU in idle was too much on C3 state if i compare it without Thumb. I did this check because i had a little loss in battery consumption.

(the following is the short explaination, i can provide a more complete test process and info):
So as i tinker a lot with my N900, i though it is because of something else, so i did a backup and flashed the N900 with PR1.3 emmc and rootfs.
Then installed CSSU, KP50, KP-Settingsv14, batterygraph, rootsh and leafpad (yes, i am unable to understand how vi works)

Then did Powertop and dmesg to see the evolution. Everything was fine until a few hour after the reinstall, i suddenly got a big consumption drain. Confirmed in batterygraph.

So i started powertop and found a lot more interrupt than usual. Also, core, neon and ina2 in powertop result are always 100% ON.
then started DMESG and found out a lot of "procwrap_detach: deprecated dspbridge ioctl.
I also found this kind of error:
Code:

bridge_deh_notify: ********** DEVICE EXCEPTION **********
[ 2768.851745] bridge_deh_notify: DSP_MMUFAULT,err_info = 0x0
[ 2768.851776] bridge_deh_notify: DSP_MMUFAULT, High Address = 0x7246
[ 2768.851806] bridge_deh_notify: DSP_MMUFAULT, Low Address = 0x1240
[ 2768.851806] bridge_deh_notify: DSP_MMUFAULT, fault address = 0x72461240
[ 2768.852050] print_dsp_trace_buffer:
[ 2768.852081] (SYS_EFREE): segid = 540916496, ptr = 0x0, size = 537949416
[ 2768.852142] bridge_deh_notify: ********** DEVICE EXCEPTION **********
[ 2768.852142] bridge_deh_notify: DSP_SYSERROR, err_info = 0x102
[ 2768.852233] print_dsp_trace_buffer:
[ 2768.852233] (SYS_EFREE): segid = 540916496, ptr = 0x0, size = 537949416
[ 2768.852264] bridge_deh_notify: ********** DEVICE EXCEPTION **********
[ 2768.852294] bridge_deh_notify: DSP_SYSERROR, err_info = 0x102
[ 2768.852355] print_dsp_trace_buffer:
[ 2768.852386] (SYS_EFREE): segid = 540916496, ptr = 0x0, size = 537949416
[ 2768.852386] bridge_deh_notify: ********** DEVICE EXCEPTION **********
[ 2768.852416] bridge_deh_notify: DSP_SYSERROR, err_info = 0x102
[ 2768.852478] print_dsp_trace_buffer:
[ 2768.852508] (SYS_EFREE): segid = 540916496, ptr = 0x0, size = 537949416
[ 2768.861450] wake_dsp: unexpected state a
[ 2768.861541] bridge_deh_notify: ********** DEVICE EXCEPTION **********
[ 2768.861541] bridge_deh_notify: DSP_SYSERROR, err_info = 0x102
[ 2768.861663] print_dsp_trace_buffer:
[ 2768.861694] (SYS_EFREE): segid = 540916496, ptr = 0x0, size = 537949416

I somehow found out that this is happen while recording/playing movie.
I uninstalled KP50 and KP50-Settings, problem gone!

I also tried with DSP overclock profile.

This is something i tested a lot with different configuration, CSSU or not, DCIM folder on Internal/uSD, swap on internal/uSD/both, KP50/OMAP. And i only got this problem while KP50 installed, no matter the rest of my configuration.

I found a solution, it is to install 720p packages once KP50 is installed. Now i don't have any error.

I am using KP50 since the very beginning and never experienced this error, right is that i had 720p installed since the very beginning too...

I did not find any info about KP50 requiring 720p package to run properly, i checked TMO page and wiki.

So can any of you confirm this?



Thank you

IIRC kps v14 isn't compatible with thumb2 on n900.

Mitrigol 2012-06-27 15:26

Re: [Announce] kernel-power stable v50 in Extras
 
as i explained, i was testing thumb2 and reflashed to stock, then installing CSSU and KP50 + settings.
So if there is a problem, it is with the normal "stable" KP50 installed

Mohammed Muid 2012-07-06 17:39

Re: [Announce] kernel-power stable v50 in Extras
 
plzzz help me. i cant uninstall power kernel v50. i clicked the nokia kernel symbol. after few min it appeared. ( successfully restored nokia kernel). then i rebooted and there was still kp50 option in the multiboot section. i tapped 3 to select it. then it loaded kp50. so it wasnt uninstalled. but the nokia kernel option wasnt there. then i followed the wiki steps. rebooted the device. my stock kernel was rebooting and kp50 showed guru meditation. my phone is in a reboot loop now. i restore my backup but unfortunately i created the backup with my kp50 installed. plzz help me to uninstall it safely. i will install cssu thumb. that is why.

ersanpermana 2012-07-07 19:32

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Mohammed Muid (Post 1233041)
plzzz help me. i cant uninstall power kernel v50. i clicked the nokia kernel symbol. after few min it appeared. ( successfully restored nokia kernel). then i rebooted and there was still kp50 option in the multiboot section. i tapped 3 to select it. then it loaded kp50. so it wasnt uninstalled. but the nokia kernel option wasnt there. then i followed the wiki steps. rebooted the device. my stock kernel was rebooting and kp50 showed guru meditation. my phone is in a reboot loop now. i restore my backup but unfortunately i created the backup with my kp50 installed. plzz help me to uninstall it safely. i will install cssu thumb. that is why.

Try to flashing only kernel :)

pali 2012-07-09 10:12

Re: [Announce] kernel-power stable v50 in Extras
 
EDIT: kernel-power v51 was pushed to extras-devel


Please test it. If there will be no problem, I will push it to extras-devel.

Changelog:
kernel-power (1:2.6.28-10power51) fremantle; urgency=low

* Added bq2415x charger driver (blacklisted by default)
* Show speed of connected usb device in /sys/devices/platform/musb_hdrc/hostdevice
* Fix radio-si4713 driver which caused using 100% CPU
* Provides: kernel-feature-smartreflex, kernel-feature-video720p, kernel-feature-packet-injection, kernel-feature-charger
* Added wl1251 packet injection modules
* Use ITEM_OMAPATAG in u-boot bootmenu entry
* Added thumb patches from kernel-cssu, enable thumb support, add Provides: kernel-feature-errata-430973-workaround

-- Pali Rohár <hidden> Mon, 09 Jul 2012 11:53:41 +0200

joerg_rw 2012-07-09 10:30

Re: [Announce] kernel-power stable v50 in Extras
 
many thanks Pali!
I hope to find the time to look into all the hostmode related stuff. How would I check for kernel-feature-XY at runtime?

/j

mauron85 2012-07-09 10:50

Re: [Announce] kernel-power stable v50 in Extras
 
What exactly is kernel-feature-video720p?

Hurrian 2012-07-09 11:16

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by mauron85 (Post 1234344)
What exactly is kernel-feature-video720p?

It allows apps to Requires: kernel features that they need, instead of depending on kernel-power versions.

tl;dr, kernel-bfs and others should also follow suit to include features they support.

ersanpermana 2012-07-09 11:17

Re: [Announce] kernel-power stable v50 in Extras
 
Wow thank you very much pali.

:cool:

pali 2012-07-09 11:18

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by joerg_rw (Post 1234329)
many thanks Pali!
I hope to find the time to look into all the hostmode related stuff. How would I check for kernel-feature-XY at runtime?

/j

Check if exists file /sys/devices/platform/musb_hdrc/hostdevice It is only in kp 51 and cat file show real speed of attached usb device (that which is written to dmeg)

pali 2012-07-09 11:22

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by mauron85 (Post 1234344)
What exactly is kernel-feature-video720p?

This means that this kernel package has kernel modules for playing 720p videos. User space applications for playing 720p videos will depends on kernel-feature-video720p.

ersanpermana 2012-07-09 11:49

Re: [Announce] kernel-power stable v50 in Extras
 
pali this kp51 can fix for Mobile Hotspot?:)

pali 2012-07-09 12:56

Re: [Announce] kernel-power stable v50 in Extras
 
@ersanpermana: What is problem with mobile hotspot?

@all: I updated -flasher and -bootimg packages. Only debian control file was changed. Now only -flasher package provides kernel-feature-errata-430973-workaround.

and here is untested script for loading packet injection modules:
http://atrey.karlin.mff.cuni.cz/~pal...t-injection.sh
only for devs, it was not tested yet!!!

sifo 2012-07-09 13:12

Re: [Announce] kernel-power stable v50 in Extras
 
wow thank you very much Pali i really appreciate your efforts :)

ersanpermana 2012-07-09 13:20

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by pali (Post 1234428)
@ersanpermana: What is problem with mobile hotspot?

@all: I updated -flasher and -bootimg packages. Only debian control file was changed. Now only -flasher package provides kernel-feature-errata-430973-workaround.

and here is untested script for loading packet injection modules:
http://atrey.karlin.mff.cuni.cz/~pal...t-injection.sh
only for devs, it was not tested yet!!!

Application on my mobile hotspot problem, my computer can not be detected :(

freemangordon 2012-07-09 13:27

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by ersanpermana (Post 1234440)
Application on my mobile hotspot problem, my computer can not be detected :(

What OS your computer is running?

No matter what, it is not a problem of KP, check if you have all of the needed drivers installed on your PC.

Also I would recommend uninstalling MobileHotspot and install QtMobileHotspot, it is way better and stable. And it carries windows drivers with it, so you don't need to search over the inet for them.

ersanpermana 2012-07-09 13:34

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by freemangordon (Post 1234445)
What OS your computer is running?

No matter what, it is not a problem of KP, check if you have all of the needed drivers installed on your PC.

Also I would recommend uninstalling MobileHotspot and install QtMobileHotspot, it is way better and stable. And it carries windows drivers with it, so you don't need to search over the inet for them.

I use windows 7, OK thanks for the information :) I will try QtMobileHotspot :)

ersanpermana 2012-07-09 15:14

Re: [Announce] kernel-power stable v50 in Extras
 
1 Attachment(s)
Many thanks pali :):)

ersanpermana 2012-07-09 15:32

Re: [Announce] kernel-power stable v50 in Extras
 
Pali. When you upload to the repository?:D

pali 2012-07-09 15:44

Re: [Announce] kernel-power stable v50 in Extras
 
@ersanpermana: If there are no problems, I will upload v51 to extras-devel in next days.

ersanpermana 2012-07-09 16:40

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by pali (Post 1234542)
@ersanpermana: If there are no problems, I will upload v51 to extras-devel in next days.

@Pali, Ok I'm trying for it's fine :).
Can you tell me how to upload the app to the repository? :) :cool:

Estel 2012-07-09 17:22

Re: [Announce] kernel-power stable v50 in Extras
 
Uploading to extras

First google result - anyway, it's off-topic here, so in case of further questions, please, search for appropriate thread.

/Estel

ivgalvez 2012-07-09 17:43

Re: [Announce] kernel-power stable v50 in Extras
 
Pali, freemangordon.

Don't you think it's now time to start moving KP to CSSU as community Kernel?

IMHO the Thumb2 experiment is a real success and maintaining so much flavours of CSSU plus combinations of KP and/or community kernel, is going to be a mess.

Estel 2012-07-09 18:16

Re: [Announce] kernel-power stable v50 in Extras
 
See reply here - it may shed some light into whole issue:
http://talk.maemo.org/showpost.php?p...&postcount=302

ersanpermana 2012-07-09 19:28

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Estel (Post 1234651)
Uploading to extras

First google result - anyway, it's off-topic here, so in case of further questions, please, search for appropriate thread.

/Estel

@Estel..thanks :) I do not know the exact steps :) there might be an easier way?

joerg_rw 2012-07-09 19:32

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Estel (Post 1234716)
See reply here - it may shed some light into whole issue:
http://talk.maemo.org/showpost.php?p...&postcount=302

AAh yes. Questionable merit, and everybody seeing merit in my arguments is actually "under bad influence" while you invented ultimate wisdom

Great!

A pitty you're feeding community with obsolete and biased destructive rant, while you actually completely miss the point. FreemanGordon and me already are at least 5 steps beyond your limited arrogant POV, having agreed on him trying to build a KP which is ABI compatible to stock kernel, and I appreciated he agreed on that and promised I'll support it.

You're also missing (or deliberately ignoring) that it's been me who supported and pushed to get thumb-errata-workaround incl sysfs-switch into KP. Well it would spoil your story of me==evil


Have fun in your little paranoid world!
/j

ed_boner 2012-07-09 21:08

Re: [Announce] kernel-power stable v50 in Extras
 
i can confirm this...had kp50, intalled thumb2 and i am pleased with result, and now new kp51...really confusing and dont have the slightest idea what to do:(

sifo 2012-07-09 21:14

Re: [Announce] kernel-power stable v50 in Extras
 
@ed_boner
do what fits your needs ;)

reinob 2012-07-10 07:54

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by pali (Post 1234313)
* Added bq2415x charger driver (blacklisted by default)

Can you explain this one a bit?

Meaning: does in-kernel battery charging actually work? (will gladly test it, but need more info :)

Is isp1704 also in there?

I read in one LKML thread (where you and Felipe discussed the two alternative drivers) that one would have to stop mce, insmod the module and echo auto/none/host/dedicated to /sys/class/power_supply/bq24150-0/mode.

Assuming I try the above, will my N900 become a bratwurst? :) (or a bratbrick :)

How do I stop charging? is this automatically detected? or do I have to echo something to /mode and unplug the charger, etc.?

Sorry lots of questions. If this works it's going to be BIG (for me at least) but I need to know (without time for reading the module nor time to actually check if the module is OK :) if this is more-or-less-safe to try.

Cheers and thanks a million!

joerg_rw 2012-07-10 07:59

Re: [Announce] kernel-power stable v50 in Extras
 
no time to comment on all the other questions, just one thing: charging on N900 is immanently safe due to hardware design. No way to fry your device.

/j

pali 2012-07-10 08:11

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by reinob (Post 1235040)
Can you explain this one a bit?

Meaning: does in-kernel battery charging actually work? (will gladly test it, but need more info :)

Yes, I charged battery in my n900 more times without problem with this my in-kernel driver.

Quote:

Originally Posted by reinob (Post 1235040)
Is isp1704 also in there?

If you mean upstream isp1704_charger kernel driver, no it is not included. But isp1704_charger driver was created from our patched maemo 2.6.28 musb code. So isp1704_charger is included in musb kernel driver (which do needed wallcharger detection).

Quote:

Originally Posted by reinob (Post 1235040)
I read in one LKML thread (where you and Felipe discussed the two alternative drivers) that one would have to stop mce, insmod the module and echo auto/none/host/dedicated to /sys/class/power_supply/bq24150-0/mode.

Assuming I try the above, will my N900 become a bratwurst? :) (or a bratbrick :)

How do I stop charging? is this automatically detected? or do I have to echo something to /mode and unplug the charger, etc.?

Now in kp51 autodetection of charger type working, so manual mode is not needed. But BME must be stopped and then bq2415x_charger driver can be loaded.

Quote:

Originally Posted by reinob (Post 1235040)
Sorry lots of questions. If this works it's going to be BIG (for me at least) but I need to know (without time for reading the module nor time to actually check if the module is OK :) if this is more-or-less-safe to try.

Cheers and thanks a million!

I written some info about charging & hostmode with bq2415x_charger driver for kernel-power on: http://atrey.karlin.mff.cuni.cz/~pal...o/bq2415x.html

mauron85 2012-07-10 08:24

Re: [Announce] kernel-power stable v50 in Extras
 
Pali, I've read your info about bq2415x_charger driver. I've got only one question. What is boost mode?

pali 2012-07-10 08:29

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by mauron85 (Post 1235063)
Pali, I've read your info about bq2415x_charger driver. I've got only one question. What is boost mode?

power for your usb device in usb host mode if you do not have external power supply.

pali 2012-07-10 09:37

Re: [Announce] kernel-power stable v50 in Extras
 
New update for kernel-power-modules package:

Now I added patch for bq27x00_battery kernel driver which export values of all chip registers to one text sysfs file /sys/class/power_supply/bq27200-0/registers in format reg=val separated by newline (both reg and val are in hexadecimal). Driver is still blacklisted due to BME.

joerg_rw 2012-07-10 11:16

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by pali (Post 1235118)
New update for kernel-power-modules package:

Now I added patch for bq27x00_battery kernel driver which export values of all chip registers to one text sysfs file /sys/class/power_supply/bq27200-0/registers in format reg=val separated by newline (both reg and val are in hexadecimal). Driver is still blacklisted due to BME.

Feels like my birthday :-D And I got all I ever asked for.
Thanks Pali!

/j

joerg_rw 2012-07-10 11:18

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by mauron85 (Post 1235063)
Pali, I've read your info about bq2415x_charger driver. I've got only one question. What is boost mode?

N900 provides up to 200mA@5V on USB receptacle +VBUS_5V. Needed for USB hostmode/H-E-N

/j

Mohammed Muid 2012-07-10 11:28

Re: [Announce] kernel-power stable v50 in Extras
 
when will it hit the repos?

sifo 2012-07-10 20:43

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by Mohammed Muid (Post 1235199)
when will it hit the repos?

http://talk.maemo.org/showpost.php?p...&postcount=460

im not sure you want it if you did not read the posts before :)

Estel 2012-07-11 00:52

Re: [Announce] kernel-power stable v50 in Extras
 
Quote:

Originally Posted by joerg_rw (Post 1235044)
no time to comment on all the other questions, just one thing: charging on N900 is immanently safe due to hardware design. No way to fry your device.

/j

AFAIK, ShadowJK mentioned once a possibility of overheating chip, when charging with more than 950 mA (he tried faster charging, using charge.sh and temperature change was very troubling - I asked about it, when I considered faster charging due to 2-cell battery and 2A power source).

It's possible that I've misunderstood something - so don't get aggressive, like in last answer to my post (despite my tremendous amount of marking, that it's personal view on things, personal opinion, may be not accurate, etc) - but are you sure about that one, i.e complete bulletproofness of charging route design?

/Estel

ersanpermana 2012-07-11 03:20

Re: [Announce] kernel-power stable v50 in Extras
 
Hy all,what you've tried mobilehotspot and qtmobilehotspot connection? Is there a problem? Why do I always fail to connect to other devices?
Could initially but now it always failed :(


All times are GMT. The time now is 18:30.

vBulletin® Version 3.8.8