jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:23 pm

I saw some of Eric Anholt's stuff at Pi Towers the other day - accelerated OpenGL (not ES as I understand it, but MESA) in a X window. Bit flickery, but definitely getting there.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
PeterO
Posts: 4942
Joined: Sun Jul 22, 2012 4:14 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:27 pm

From the comments I've read about this, this is really only the first step in getting VC4 support into the kernel. It may be a while yet before anything really useful becomes available to users.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:30 pm

you beat me to it :p

i saw it here ate android-rpi google group forums https://groups.google.com/forum/#!topic ... 6aDCR6C4dE
source commit: https://goo.gl/MT2PKs

not 3d accel yet but inching towards it

Exiting stuff realy
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:33 pm

jamesh wrote:I saw some of Eric Anholt's stuff at Pi Towers the other day - accelerated OpenGL (not ES as I understand it, but MESA) in a X window. Bit flickery, but definitely getting there.
i did try a few demos as well, if you've got 45 min have a look at this video: https://www.youtube.com/watch?v=L7ec3rhMjZU
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:46 pm

Demo I saw was the standard GlxGears, running over MESA using OpenGL, good frame rate as well. I was just looking over Dom's shoulder...
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 1:56 pm

jamesh wrote:Demo I saw was the standard GlxGears, running over MESA using OpenGL, good frame rate as well. I was just looking over Dom's shoulder...
Aah... Nice. Looks like Eric's driver is going to beat Maynard in the default accelerated desktop race.
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 2:24 pm

ric96 wrote:
jamesh wrote:Demo I saw was the standard GlxGears, running over MESA using OpenGL, good frame rate as well. I was just looking over Dom's shoulder...
Aah... Nice. Looks like Eric's driver is going to beat Maynard in the default accelerated desktop race.
Yup, Maynard development is waiting to how well this stuff works.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Tue Nov 17, 2015 4:03 pm

My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

joaodriessen
Posts: 10
Joined: Fri Oct 18, 2013 9:36 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 12:13 am

Apologies for the naive questions, but does this driver mean smooth desktop environment performance for ie. gnome 3?
And of course does that mean waiting for or beyond the release of Linux kernel 4.4 - where the KMS part of the driver is scheduled to be released?

gkreidl
Posts: 6048
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 6:25 am

Don't expect too much.
1. the OpenGL driver is far from being ready.
2. It will support the typical 3D effects of "modern desktops", but for "normal" stuff it won't help very much (X-ORG being what it is).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 6:51 pm

ric96 wrote:any hope of supporting glamour http://www.freedesktop.org/wiki/Software/Glamor/
I believe so given this recent comment from Eric Anholt on github

https://github.com/raspberrypi/linux/pu ... -157783343
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

leiptrstormr
Posts: 60
Joined: Mon May 18, 2015 12:33 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 9:06 pm

https://wiki.freedesktop.org/dri/VC4/
status and to do list
http://sukzessiv.net/~gohai/vc4-buildbot/build/
buildbot builds
http://cgit.freedesktop.org/mesa/mesa/l ... rivers/vc4
log
https://www.phoronix.com/scan.php?page= ... -Linux-4.4
What bits are in 4.4 kernel

I'm very thankful (correction) Broadcom hired Eric to do all this stuff. OpenGL ES and proprietary blobs are what Android is all about. If Linux is the primary OS for the Pi, OpenGL and open sourced drivers translate into less headaches and more usability. It's never too late!
Last edited by leiptrstormr on Wed Nov 18, 2015 9:55 pm, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 9:36 pm

He's actually employed by Broadcom.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 9:53 pm

Will this driver give gpu support for chromium-browser?
:twisted:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 9:57 pm

expandables wrote:Will this driver give gpu support for chromium-browser?
:twisted:
Yes
There are 10 types of people: those who understand binary and those who don't.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 10:03 pm

kusti8 wrote:
expandables wrote:Will this driver give gpu support for chromium-browser?
:twisted:
Yes
Awesome! Any ETA on when the driver will make it into Raspbian?
I'm guess 3 years from now is plausible. :twisted:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 10:08 pm

expandables wrote:
kusti8 wrote:
expandables wrote:Will this driver give gpu support for chromium-browser?
:twisted:
Yes
Awesome! Any ETA on when the driver will make it into Raspbian?
I'm guess 3 years from now is plausible. :twisted:
It's still very much a work in progress and it'll be included when it's ready, no idea when that it.

It is usable now, but there are some glitches and still unavailable features, but Chromium is accelerated, with WebGL and all.
There are 10 types of people: those who understand binary and those who don't.

leiptrstormr
Posts: 60
Joined: Mon May 18, 2015 12:33 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Wed Nov 18, 2015 10:13 pm

gkreidl wrote:but for "normal" stuff it won't help very much (X-ORG being what it is).
I'm not sure what you mean by this. If they add glamor support it should give 2d boost as well. This is (will be) a full fledged GPU driver, not some generic framebuffer. I think it's important to keep expectations in check, but this is something to be happy about.

gkreidl
Posts: 6048
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Thu Nov 19, 2015 7:32 am

leiptrstormr wrote:
gkreidl wrote:but for "normal" stuff it won't help very much (X-ORG being what it is).
I'm not sure what you mean by this. If they add glamor support it should give 2d boost as well. This is (will be) a full fledged GPU driver, not some generic framebuffer. I think it's important to keep expectations in check, but this is something to be happy about.
Besides OpenGL, we would need a new video driver which supports it, a new mesa driver and glamor itself (not available in Raspan Jessie right now).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Thu Nov 19, 2015 9:04 am

gkreidl wrote:
leiptrstormr wrote:
gkreidl wrote:but for "normal" stuff it won't help very much (X-ORG being what it is).
I'm not sure what you mean by this. If they add glamor support it should give 2d boost as well. This is (will be) a full fledged GPU driver, not some generic framebuffer. I think it's important to keep expectations in check, but this is something to be happy about.
Besides OpenGL, we would need a new video driver which supports it, a new mesa driver and glamor itself (not available in Raspan Jessie right now).
I think Eric's stuff has all of that in. See the link above.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

spock
Posts: 205
Joined: Sun Oct 02, 2011 10:33 am

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Thu Nov 19, 2015 11:54 pm

jamesh wrote:He's actually employed by Broadcom.
broadcom discontinues videocore 5 but hires someone to write an open source driver for videocore 4?

why? i don't get all of this. :)
i mean of course the driver will be good for us but what is in it for them?

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2076
Joined: Thu Jul 11, 2013 2:37 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Fri Nov 20, 2015 12:24 am

spock wrote:
jamesh wrote:He's actually employed by Broadcom.
broadcom discontinues videocore 5 but hires someone to write an open source driver for videocore 4?

why? i don't get all of this. :)
i mean of course the driver will be good for us but what is in it for them?
Because VC4 was the 3D core that got open-sourced. Recruiting a FLOSS developer is the most efficient way to get support for the newly opened architecture in the places that matter - namely upstream repositories.

Regarding VC5 - there are many factors in the decision that a company such as Broadcom (which has a business model based on proprietary, patented/licenced software) considers when open-sourcing an architecture. The business case for VC4 may not necessarily apply to VC5 - individual customer deals may lock the IP to a chip or have some specific implementation detail that precludes open sourcing it.
Rockets are loud.
https://astro-pi.org

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23385
Joined: Sat Jul 30, 2011 7:41 pm

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Fri Nov 20, 2015 10:31 am

spock wrote:
jamesh wrote:He's actually employed by Broadcom.
broadcom discontinues videocore 5 but hires someone to write an open source driver for videocore 4?

why? i don't get all of this. :)
i mean of course the driver will be good for us but what is in it for them?
Cost of one engineer to do the VC4 OSS driver, $200k-$300k (multi year project)

Cost to develop VC5 $20M.

Numbers made up, but about the right sort of magnitude.

$200k seems a bargain for what Eric Anholt is doing - if nothing else, Broadcom get a of of publicity.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: VideoCore 4 GPU Driver Added to Linux Mainline in Kernel

Fri Nov 20, 2015 11:16 am

jamesh wrote:
spock wrote:
jamesh wrote:He's actually employed by Broadcom.
broadcom discontinues videocore 5 but hires someone to write an open source driver for videocore 4?

why? i don't get all of this. :)
i mean of course the driver will be good for us but what is in it for them?
Cost of one engineer to do the VC4 OSS driver, $200k-$300k (multi year project)

Cost to develop VC5 $20M.

Numbers made up, but about the right sort of magnitude.

$200k seems a bargain for what Eric Anholt is doing - if nothing else, Broadcom get a of of publicity.
Might be enough to kickstart VC5 ?
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

Return to “General discussion”