... that sounds very well.ghans wrote:Eric Anholts work should have a big impact though. It wold give us "real" OpenGL , not just OpenGL ES. This would automatically accelerate everything which uses GLX behind the scenes.
Actually, Eric's work might mean less requirement for Wayland as it would, I think, allow integration of OpenGL with X. Swings and roundabouts.Fidelius wrote:... that sounds very well.ghans wrote:Eric Anholts work should have a big impact though. It wold give us "real" OpenGL , not just OpenGL ES. This would automatically accelerate everything which uses GLX behind the scenes.
So also Blender would finally work? (It's in the Raspbian repository but uses OpenGL and so gives an error currently)
Would the Wayland project for the Pi also profit from a full MESA, or does it already work well with the Pi as it is? (There's some nice Wayland demo videos on Youtube with, I think Mr. Upton, and the Collabra developers.)
Nice!jamesh wrote:Actually, Eric's work might mean less requirement for Wayland as it would, I think, allow integration of OpenGL with X. Swings and roundabouts.
I’m aware of the work Eric has been doing, unfortunately though his live journal was last updated in October, digging about I can see there has been activity but unless you know what you are looking at its hard to gauge progress, I guess its a big project for one person as well....jamesh wrote:Not heard of much going on. There is Eric Anholt's work on MESA drivers that should have a good impact, but he is just one person (and employed by Broadcom!). Herman Hermitage has been doing good work, but I don't know what the end results of that will be.
Well I was thinking the same thing, I was hoping for a flurry of improved “things” based around this but apart from some niche things nothing seems to stand out.... Peter Warden is the only person who I can think of who as grasped the nettle:-jamesh wrote:As for other stuff, it does beg the question, why were people clamouring for release and full openness when only a few are using the stuff that actually has been released....
Yup. I don't think it is far off IIRC my last conversation with Eben correctly!ghans wrote:http://cgit.freedesktop.org/mesa/mesa/l ... grep&q=vc4
https://github.com/anholt/linux/commits/vc4-3.19
I think you have no choice instead of regularly pulling and rebuilding the sources for testing ... i'm pretty sure Eben himself will want to make the big
announcment when it's ready for primetime.
ghans
It is good enough to run Unityjamesh wrote:Yup. I don't think it is far off IIRC my last conversation with Eben correctly!ghans wrote:http://cgit.freedesktop.org/mesa/mesa/l ... grep&q=vc4
https://github.com/anholt/linux/commits/vc4-3.19
I think you have no choice instead of regularly pulling and rebuilding the sources for testing ... i'm pretty sure Eben himself will want to make the big
announcment when it's ready for primetime.
ghans
http://cgit.freedesktop.org/mesa/mesa/l ... rivers/vc4itsmedoofer wrote:Hi James,
Thanks for taking the time to reply, appreciated...
I’m aware of the work Eric has been doing, unfortunately though his live journal was last updated in October, digging about I can see there has been activity but unless you know what you are looking at its hard to gauge progress, I guess its a big project for one person as well....jamesh wrote:Not heard of much going on. There is Eric Anholt's work on MESA drivers that should have a good impact, but he is just one person (and employed by Broadcom!). Herman Hermitage has been doing good work, but I don't know what the end results of that will be.
For those interested:- http://anholt.livejournal.com/calendar
Maybe this is the key that unlocks the door ?
Well I was thinking the same thing, I was hoping for a flurry of improved “things” based around this but apart from some niche things nothing seems to stand out.... Peter Warden is the only person who I can think of who as grasped the nettle:-jamesh wrote:As for other stuff, it does beg the question, why were people clamouring for release and full openness when only a few are using the stuff that actually has been released....
http://petewarden.com/2014/08/07/how-to ... g-its-gpu/
Not supposedly but I'm using it right now.mung wrote:I think I made comment years back about how few people there probably are that actually need or would be able to use full open access to the raspberry pi processor details.
I guessed there are probably only a couple of hundred people that would really be interested, and a small percentage of those would actually get time to do anything.
I have had a very brief look and messed around with some of the demo example work that others have released, but really not had the time or inclination to put any real effort in. Now the rpi2 is available I probably do not need to use the extra processing of the vc4 so will not look further.
I was sort of considering creating realtime motor control driver to run on parts of the vc4, still not really sure how suitable the vc4 would be for that, but it sems definitly possible.
I think the problem is most people want an easy quick fix and learning a whole new architexture and assembly language that is not well supported seems too much work unless it has great benefits and is not achievable any other way.
Most people probably just say they will buy a more powerful ARM board and save on development costs if the project is low volume, there are probably a few hobbiests that will play with things just out of interest but they probably will not be putting much time into it so its very slow to see anything appear.
Most of the open source zealots probably have other agendas than actually creating any software when they demand access to processor details.
I hope the anholt opengl stuff makes it into raspbian soon, not sure what other infrastructure work needs to be done maybe opencl (not even sure about how that works?), or something that would allow generalised access to the 'dsp' which the vc4 supposedly has?
Code: Select all
/dts-v1/;
/include/ "bcm2836-rpi.dtsi"
/ {
compatible = "raspberrypi,model-b-plus", "brcm,bcm2836";
model = "Raspberry Pi 2 Model B+";Pi2 with both 3.18 and 3.19. That is just a mistake. Did you enable the interrupt mask and build the DRM module as included (not a module)? Is your screen 1080p(or you have to "correct" one source file)?ktb wrote:mimi123,
What Pi model did you get it to work on? Which kernel? vc4-3.18 or vc4-3.19? Based on commits, it looked like Pi2 support was only added to vc4-3.19. I've built both, but haven't been successful in trying to use the driver on my Pi2. Can you give me any tips?
http://www.raspberrypi.org/forums/viewt ... 16#p719816
BTW, this seemed interesting https://github.com/anholt/linux/blob/bc ... -rpi-b.dts.
It's probably just a mistake.Code: Select all
/dts-v1/; /include/ "bcm2836-rpi.dtsi" / { compatible = "raspberrypi,model-b-plus", "brcm,bcm2836"; model = "Raspberry Pi 2 Model B+";
1. Yes. I added mask_gpu_interrupt0=0x400 to /boot/config.txt and the DRM module is built-in.mimi123 wrote:Pi2 with both 3.18 and 3.19. That is just a mistake. Did you enable the interrupt mask and build the DRM module as included (not a module)? Is your screen 1080p(or you have to "correct" one source file)?ktb wrote:mimi123,
What Pi model did you get it to work on? Which kernel? vc4-3.18 or vc4-3.19? Based on commits, it looked like Pi2 support was only added to vc4-3.19. I've built both, but haven't been successful in trying to use the driver on my Pi2. Can you give me any tips?
http://www.raspberrypi.org/forums/viewt ... 16#p719816
BTW, this seemed interesting https://github.com/anholt/linux/blob/bc ... -rpi-b.dts.
It's probably just a mistake.Code: Select all
/dts-v1/; /include/ "bcm2836-rpi.dtsi" / { compatible = "raspberrypi,model-b-plus", "brcm,bcm2836"; model = "Raspberry Pi 2 Model B+";
Code: Select all
"You need CONFIG_DRM_VC4=y (not m, or it won't load)."
> Device Drivers > Graphics support > Direct Rendering Manager
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
I2C encoder or helper chips --->
< > PTN3460 DP/LVDS bridge (NEW)
< > DisplayLink (NEW)
< > DRM support for Marvell Armada SoCs (NEW)
< > DRM Support for TI LCDC Display Controller (NEW)
<*> Broadcom VC4 Graphics
"You need CONFIG_CMA_SIZE_MBYTES=64 (or, apparently, cma=64M on the kernel command line), or you'll get "vc4-drm vc4-drm.0: failed to allocate buffer with size 7057408". You also, if you want to see output, need a monitor that can scan out the same 1680x1050 as me, for now."
> Device Drivers > Generic Driver Options
[*] DMA Contiguous Memory Allocator
*** Default contiguous memory area size: ***
(64) Size in Mega Bytes
Selected region size (Use mega bytes value only) --->
(8) Maximum PAGE_SIZE order of alignment for contiguous buffers
Code: Select all
static struct vc4_params params = {
.width = 1360,
.height = 768
};
...
module_param_named(width, params.width, int, 0444);
MODULE_PARM_DESC(width, "Display width (default 1360");
module_param_named(height, params.height, int, 0444);
MODULE_PARM_DESC(height, "Display height (default 768)");Code: Select all
[ 296.024] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 296.028] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 7 paused 0
[ 296.028] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Invalid argument
[ 296.028] (II) systemd-logind: releasing fd for 226:0
[ 296.032] (II) no primary bus or device found
...
[ 296.103] (EE) modesetting(0): drmSetMaster failed: Permission denied
[ 296.103] (EE)
Fatal server error:
[ 296.103] (EE) AddScreen/ScreenInit failed for driver 0
[ 296.103] (EE)
[ 296.103] (EE) I don't have errors on the Xorg log.Did you try to run as root? Did you compile anholt's X11 module?ktb wrote:1. Yes. I added mask_gpu_interrupt0=0x400 to /boot/config.txt and the DRM module is built-in.mimi123 wrote:Pi2 with both 3.18 and 3.19. That is just a mistake. Did you enable the interrupt mask and build the DRM module as included (not a module)? Is your screen 1080p(or you have to "correct" one source file)?ktb wrote:mimi123,
What Pi model did you get it to work on? Which kernel? vc4-3.18 or vc4-3.19? Based on commits, it looked like Pi2 support was only added to vc4-3.19. I've built both, but haven't been successful in trying to use the driver on my Pi2. Can you give me any tips?
http://www.raspberrypi.org/forums/viewt ... 16#p719816
BTW, this seemed interesting https://github.com/anholt/linux/blob/bc ... -rpi-b.dts.
It's probably just a mistake.Code: Select all
/dts-v1/; /include/ "bcm2836-rpi.dtsi" / { compatible = "raspberrypi,model-b-plus", "brcm,bcm2836"; model = "Raspberry Pi 2 Model B+";
2. I'm not sure, but maybe this is the problem. I have a 720p Samsung TV/monitor with a preferred mode of 1360x768. It supports some 1920x1080 modes and will display at 1920x1080, however It's scaled and doesn't look good. 1920x1080 appears to work OK in general, but maybe not when trying to use the VC4 driver? So, I'll give it one more attempt after modifying vc4_display.cCode: Select all
"You need CONFIG_DRM_VC4=y (not m, or it won't load)." > Device Drivers > Graphics support > Direct Rendering Manager <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> I2C encoder or helper chips ---> < > PTN3460 DP/LVDS bridge (NEW) < > DisplayLink (NEW) < > DRM support for Marvell Armada SoCs (NEW) < > DRM Support for TI LCDC Display Controller (NEW) <*> Broadcom VC4 Graphics "You need CONFIG_CMA_SIZE_MBYTES=64 (or, apparently, cma=64M on the kernel command line), or you'll get "vc4-drm vc4-drm.0: failed to allocate buffer with size 7057408". You also, if you want to see output, need a monitor that can scan out the same 1680x1050 as me, for now." > Device Drivers > Generic Driver Options [*] DMA Contiguous Memory Allocator *** Default contiguous memory area size: *** (64) Size in Mega Bytes Selected region size (Use mega bytes value only) ---> (8) Maximum PAGE_SIZE order of alignment for contiguous buffers
I wonder... Do you see the following errors in your Xorg.0.log?Code: Select all
static struct vc4_params params = { .width = 1360, .height = 768 }; ... module_param_named(width, params.width, int, 0444); MODULE_PARM_DESC(width, "Display width (default 1360"); module_param_named(height, params.height, int, 0444); MODULE_PARM_DESC(height, "Display height (default 768)");Thank you for the advice.Code: Select all
[ 296.024] (II) xfree86: Adding drm device (/dev/dri/card0) [ 296.028] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 7 paused 0 [ 296.028] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Invalid argument [ 296.028] (II) systemd-logind: releasing fd for 226:0 [ 296.032] (II) no primary bus or device found ... [ 296.103] (EE) modesetting(0): drmSetMaster failed: Permission denied [ 296.103] (EE) Fatal server error: [ 296.103] (EE) AddScreen/ScreenInit failed for driver 0 [ 296.103] (EE) [ 296.103] (EE)
I don't think I have tried running the xserver as root, but the user I am using is in the video group. I will give root a try.mimi123 wrote: I don't have errors on the Xorg log.Did you try to run as root? Did you compile anholt's X11 module?
Alright. This seems interesting. I tried startx as root and it actually appears to be working. The desktop doesn't all fit on my screen (it's 1920x1080 on my 1360x768 screen), but that can probably be fixed by the width and height modification to vc4_display.c.ktb wrote:I don't think I have tried running the xserver as root, but the user I am using is in the video group. I will give root a try.mimi123 wrote: I don't have errors on the Xorg log.Did you try to run as root? Did you compile anholt's X11 module?
What is anholt's X11 module? I don't see that mentioned anywhere. I compiled the kernels from GitHub. I then compiled mesa as well as the latest xserver, xf86-input-evdev, xf86-input-synaptics, xf86-video-modesetting and even xf86-video-fbdev (as a fallback) from freedesktop.org.