hirodotp
Posts: 1
Joined: Mon Oct 08, 2012 2:09 am

Re: Updated GPU firmware

Mon Oct 08, 2012 2:15 am

cult_hero13 wrote:If my information is of any help, I updated to #244 PREEMPT yesterday. I'm running in headless mode with some network services running and see load consistently above 1.0 where it used to run near .5. top shows there is nothing in particular causing the high load, and nothing out of the ordinary running, though I can't say I've ever seen these running:
3.2.27+ #244 PREEMPT Sat Oct 6 17:26:38 BST 2012 armv6l GNU/Linux

Oct 5 2012 23:28:10
Copyright (c) 2012 Broadcom
version 342141 (release)

240/16 split.
I am also using this same setup and seeing the exact same thing, increased load, kernel messages, etc.The only difference is I am using a 192/64 split.

rtang
Posts: 49
Joined: Mon Oct 08, 2012 6:27 am

Re: Updated GPU firmware

Mon Oct 08, 2012 6:37 am

I have a question regarding the new h264 encoder example:

I modify the hello_encode example to encode a 1080p video, and found it took roughly 44 seconds. I figured perhaps the pattern calculation chewed up quite a number of cycles, so I replaced generate_test_card() with a simple memset() of a incrementing value. The result still took roughly 20 seconds to encode. Given that the encoded video is I think 10 seconds (300 frames @ 30fps), how does the Pi achieve real time encoding performance when the camera module is released?

What am I missing here?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Mon Oct 08, 2012 10:09 am

rtang wrote:What am I missing here?
Well, the camera data doesn't start life on the ARM. At the moment the ARM and VCHIQ are the bottleneck, not the video encoder.
The camera has a much faster connection to the video encoder, and it's all handled on the GPU side, so that bottleneck is not a factor.

Partholan
Posts: 8
Joined: Fri Dec 09, 2011 3:10 pm

Re: Updated GPU firmware

Mon Oct 08, 2012 1:52 pm

dom wrote:
joan wrote:@firmware updaters: Why not add a changed file and place it in the boot directory? Even if it's just a tweet.
If you want a changelist then:
https://github.com/raspberrypi/firmware/commits/master
@dom:
I think neither (tweet or changelist on github) will do for me but you already came up with the best solution in your first post in this thread which is way more informative than "Move to newer version of GPU source tree (LKG56)". Actually I would prefer a sticky post like that with details on what has changed, where to expect improvements and what's to test with the new version.

User avatar
kulve
Posts: 26
Joined: Mon Sep 24, 2012 7:05 pm
Location: Finland

Re: Updated GPU firmware

Mon Oct 08, 2012 3:01 pm

rtang wrote:II modify the hello_encode example to encode a 1080p video, and found it took roughly 44 seconds. I figured perhaps the pattern calculation chewed up quite a number of cycles, so I replaced generate_test_card() with a simple memset() of a incrementing value. The result still took roughly 20 seconds to encode.
Try without the memset for comparison. Also remove the debug prints, they take already 2 secs.

Bherz
Posts: 1
Joined: Mon Oct 08, 2012 4:44 pm

Re: Updated GPU firmware

Mon Oct 08, 2012 4:53 pm

I'm using 128/128 split, also had mpd freeze during playback, then when trying to /etc/init.d/mpd restart, pi froze and was no longer accessible through SSH.

Using raspbian. Things used to work very nicely before I rpi-updated two days ago.

Please help! :-)

janek
Posts: 8
Joined: Sun Aug 05, 2012 4:10 pm

Re: Updated GPU firmware

Mon Oct 08, 2012 7:52 pm

cult_hero13 wrote:If my information is of any help, I updated to #244 PREEMPT yesterday. I'm running in headless mode with some network services running and see load consistently above 1.0 (...)
Same here, I hope it will be fixed soon.

bleomycin
Posts: 2
Joined: Tue Oct 09, 2012 12:58 am

Re: Updated GPU firmware

Tue Oct 09, 2012 12:59 am

janek wrote:
cult_hero13 wrote:If my information is of any help, I updated to #244 PREEMPT yesterday. I'm running in headless mode with some network services running and see load consistently above 1.0 (...)
Same here, I hope it will be fixed soon.
Same here.

Mogwai
Posts: 21
Joined: Thu Jul 26, 2012 4:08 pm
Location: Montreal
Contact: Website

Re: Updated GPU firmware

Tue Oct 09, 2012 4:25 pm

If you found this thread because you just want the endless "INFO: task VCHIQka-0:27 blocked for more than 120 seconds." messages to stop flooding your console you can do this:

echo "kernel.hung_task_warnings=0" >> /etc/sysctl.conf

That should shut it up while the firmware guys figure out what it's yapping about :)

zardoz99
Posts: 175
Joined: Fri Jan 13, 2012 2:25 pm
Location: Somewhere in Canada.

Re: Updated GPU firmware

Tue Oct 09, 2012 6:13 pm

The problem is that suppressing the symptoms does not improve the system stability.
We need either to back out the changes or have the cause resolved. I'm easy either way...

Z

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Tue Oct 09, 2012 6:29 pm

zardoz99 wrote:The problem is that suppressing the symptoms does not improve the system stability.
We need either to back out the changes or have the cause resolved. I'm easy either way...
Soon.

I'd imagine:

Code: Select all

sudo apt-get update && sudo apt-get upgrade
will probably revert you to the last stable firmware if you are having problems.

zardoz99
Posts: 175
Joined: Fri Jan 13, 2012 2:25 pm
Location: Somewhere in Canada.

Re: Updated GPU firmware

Tue Oct 09, 2012 6:34 pm

Dom,

I think that you and others, possibly unseen, are doing a fantastic job.

We really appreciate the efforts that are being put in to making this all work.

Regards,
Z.,

User avatar
megazirt
Posts: 9
Joined: Tue Oct 09, 2012 1:49 am
Location: Thetford, Norfolk, UK
Contact: Website

Re: Updated GPU firmware

Tue Oct 09, 2012 6:46 pm

dom wrote:

Code: Select all

sudo apt-get update && sudo apt-get upgrade
will probably revert you to the last stable firmware if you are having problems.
I had a backup of my SD Card before trying to update the firmware anyway, so it was just a simple case of copying the old files back in the "system" partition and rebooting.

"dd" is very handy for backing up SD Cards into mountable image files, that's what I use. ;)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Tue Oct 09, 2012 8:53 pm

hexxeh has just added the ability to downgrade to a specific firmware version. Eg:

Code: Select all

rpi-update 240 9fa8696eef5ab1e89552d46a76710c7045483ef0

lupine
Posts: 8
Joined: Wed Jul 25, 2012 12:46 pm

Re: Updated GPU firmware

Wed Oct 10, 2012 6:50 am

dom wrote:hexxeh has just added the ability to downgrade to a specific firmware version. Eg:

Code: Select all

rpi-update 240 9fa8696eef5ab1e89552d46a76710c7045483ef0
This function does not seem to work, with a updated script. I am using the commit numbers for rpi-updates internal repo.
  • root@raspberrypi:/usr/local/bin# rpi-update 240 28cc41c63029ecdc9e7e66ef444ee63abaac11fd
    Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
    Performing self-update
    Using ARM/GPU memory split of 240MB/16MB
    Updating firmware (this will take a few minutes)
    Your firmware is already up to date

schicki
Posts: 14
Joined: Wed Jul 18, 2012 10:56 am

Re: Updated GPU firmware

Wed Oct 10, 2012 11:07 am

There seems to be a little bug in the rpi-update script, so that it didn't recognize the second argumend passed.

I've created a pull request, which got commited this moment.
So it should work now.

Code: Select all

rpi-update 240 d6b57e4dad12353f291dae03ecfaf852d2d9fcce
This is the last firmware that works for me, no kernel messages and normal cpu load.

MattSwarbrick
Posts: 27
Joined: Thu Oct 04, 2012 3:15 pm

Re: Updated GPU firmware

Wed Oct 10, 2012 11:33 am

Still not working for me

Code: Select all

pi@raspberrypi ~ $ sudo rpi-update 128 d6b57e4dad12353f291dae03ecfaf852d2d9fcce
Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
Performing self-update
Using ARM/GPU memory split of 128MB/128MB
Updating firmware (this will take a few minutes)
Your firmware is already up to date

schicki
Posts: 14
Joined: Wed Jul 18, 2012 10:56 am

Re: Updated GPU firmware

Wed Oct 10, 2012 12:05 pm

Your are right. I've forgotten something and created another pull request just now.
As soon as this is commited it should finally work as expected.

MattSwarbrick
Posts: 27
Joined: Thu Oct 04, 2012 3:15 pm

Re: Updated GPU firmware

Wed Oct 10, 2012 1:49 pm

This still doesn't seem to work, I'm not sure whether its working but always displays "Your firmware is already up to date"

Because if I try:

Code: Select all

pi@raspberrypi ~ $ sudo rpi-update 128 9fa8696eef5ab1e89552d46a76710c7045483ef0                                                                                                              Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
Performing self-update
Using ARM/GPU memory split of 128MB/128MB
Updating firmware (this will take a few minutes)
Your firmware is already up to date
I've performed, update, rpi-update, then rpi-udate 123 9fa8696eef5ab1e89552d46a76710c7045483ef0

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Wed Oct 10, 2012 1:51 pm

It looks like the high load average only persists until the first VCHIQ message. Typing in:

Code: Select all

vcgencmd
Should get it out of that state (and avoids the [ 241.151262] INFO: task VCHIQka-0:27 blocked for more than 120 seconds messages).

MattSwarbrick
Posts: 27
Joined: Thu Oct 04, 2012 3:15 pm

Re: Updated GPU firmware

Wed Oct 10, 2012 1:59 pm

yep that fixes it now getting:

Code: Select all

Downloading specific firmware revision (this will take a few minutes)

schicki
Posts: 14
Joined: Wed Jul 18, 2012 10:56 am

Re: Updated GPU firmware

Wed Oct 10, 2012 2:17 pm

@ MattSwarbrick

My last two changes didn't fix the problem. I reverted them now and addressed the real issue.
Please try again and thanks for the patience. I'm afraid my bash scripting is a bit rusty. :)

@ dom

I cannot confirm this. The cpu load seems to drop, but after some time it's back up.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Wed Oct 10, 2012 3:09 pm

schicki wrote:I cannot confirm this. The cpu load seems to drop, but after some time it's back up.
Do you know what makes it go up again? It's still at zero for me.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Updated GPU firmware

Wed Oct 10, 2012 3:12 pm

I've temporarily reverted the "Updated GPU firmware".
rpi-update should now get you an older (more stable) firmware. If you want to experiment with the updated firmware you should be able to get it with

Code: Select all

sudo rpi-update 192 f8b144bbebeea
Hopefully the update will be back soon when the vchiq issues are resolved.

schicki
Posts: 14
Joined: Wed Jul 18, 2012 10:56 am

Re: Updated GPU firmware

Wed Oct 10, 2012 4:56 pm

dom wrote:Do you know what makes it go up again? It's still at zero for me.
Sorry, I'm afraid I can't help you there. This goes beyond my skills.

If you need someone to test specific things though, I would would be happy to help you out.

Return to “Advanced users”