mmap fails for DRM_IOCTL_MODE_MAP_DUMB for Radeon, Nouveau, and VMWGFX

2014-11-10 Thread Rian Quinn
When working with dumb buffers, DRM_IOCTL_MODE_MAP_DUMB and mmap works fine on Intel, but the mmap call fails on Radeon, Nouveau, and VMWGFX. I you look at the source for the xorg moderating driver, it only uses the dumb buffer IOCTL (i.e. it’s not using LibKMS), and if you look at the kernel sou

mmap fails for DRM_IOCTL_MODE_MAP_DUMB for Radeon, Nouveau, and VMWGFX

2014-11-10 Thread Rian Quinn
test passes in all cases. David's code is returning with the same error of "Invalid Argument" on the mmap call. Why would the other driver's claim to support dumb buffers, but have no means to map the memory? - Rian On Mon, Nov 10, 2014 at 2:48 PM, Rian Quinn wrote: > Wh

mmap fails for DRM_IOCTL_MODE_MAP_DUMB for Radeon, Nouveau, and VMWGFX

2014-11-10 Thread Rian Quinn
de runs, I get the "Invalid Argument" on the mmap. On Mon, Nov 10, 2014 at 4:14 PM, Dave Airlie wrote: > On 11 November 2014 06:33, Rian Quinn wrote: > > I did another test using the following that David put up on github: > > > > https://github.com/dvdhrm/docs/

mmap fails for DRM_IOCTL_MODE_MAP_DUMB for Radeon, Nouveau, and VMWGFX

2014-11-10 Thread Rian Quinn
again, - Rian On Mon, Nov 10, 2014 at 5:33 PM, Dave Airlie wrote: > On 11 November 2014 07:33, Rian Quinn wrote: > > I would be surprised if the size argument was the issue. That comes right > > out out of the create IOCTL unmodified. Here is the full source that I am > > u

mmap fails for DRM_IOCTL_MODE_MAP_DUMB for Radeon, Nouveau, and VMWGFX

2014-11-11 Thread Rian Quinn
Verified that this fixed the issue for all of the video cards. On Mon, Nov 10, 2014 at 5:38 PM, Rian Quinn wrote: > Your a life savor man. That did the trick. I cannot test on the Radeon and > Nouveau until I get back into the office tomorrow, but it worked great on > the VMWG

Nouveau dumb buffer bug

2014-11-11 Thread Rian Quinn
I wrote a unit test that basically exercises the dumb buffer IOCTL to verify that I can create and destroy dumb buffers without any problems. All of my tests pass except for one test, on the nouveau driver. Right now I am testing on an nVidia K2000, which can support two monitors. If I allocate th

LibDRM Cloned Monitor Support

2014-11-11 Thread Rian Quinn
What exactly is the correct way to support cloned monitors using LibDRM. As I see it, there are two methods: - Use the connector array in drmModeSetCrtc - Use one crtc per connector, but share the same framebuffer. Right now I am using option #2 as it seems to be the most flexible, but my current

LibDRM Cloned Monitor Support

2014-11-11 Thread Rian Quinn
ote: > > On Tue, Nov 11, 2014 at 12:19 PM, Rian Quinn wrote: >> What exactly is the correct way to support cloned monitors using LibDRM. As >> I see it, there are two methods: >> >> - Use the connector array in drmModeSetCrtc >> - Use one crtc per connector, but share

LibDRM Cloned Monitor Support

2014-11-11 Thread Rian Quinn
LibDRM? Thanks, - Rian > On Nov 11, 2014, at 8:35 PM, Rob Clark wrote: > > On Tue, Nov 11, 2014 at 8:25 PM, Rian Quinn wrote: >> Yeah, I had issues trying to get the first method to work across the board >> on all of the hardware that we need to support. One example that I s

How to fill out a Mode for a Panel Fitter

2014-11-20 Thread Rian Quinn
Working on getting cloning to work on a laptop, and realized that laptop panel's only provides a single resolution. At least with Intel, these usually have a panel fitter that allows you to set the CRTC to any resolution, and the panel fitter scales for you. We also figured out that you can use DR

Testing LibDRM with Multi-Monitors on VMWare Fusion / Workstation

2014-09-25 Thread Rian Quinn
I have been doing a lot of work with LibDRM, including Multi-Monitor work on Intel and VMWare. Do you guy?s know if there is an easy way to tell VMWare to add more virtual display?s for testing? LibDRM reports something like 8 different connectors, and several CRTCs, so I know it at least suppor

DRM Hotplug

2014-02-07 Thread Rian Quinn
I noticed that the hotplug IOTCLs were removed. How are monitor hotplug events captured? Thanks, - Rian -- next part -- An HTML attachment was scrubbed... URL:

drmModeSetCrtc and how to use x,y

2014-02-12 Thread Rian Quinn
With respect to Windows XDDM, in the past I was able to map more than one display to a single framebuffer by leveraging width, height, stride, and then adding an offset to the framebuffer's char*. I can see how this would work with dumb buffers as they are basically a simple linear ARGB buffer, but

drmModeSetCrtc and how to use x,y

2014-02-13 Thread Rian Quinn
page flipping, David Herrmann has a good blog post on it: http://dvdhrm.wordpress.com/2012/12/21/advanced-drm-mode-setting-api/ Thanks, - Rian On Wed, Feb 12, 2014 at 2:05 PM, Rian Quinn wrote: > With respect to Windows XDDM, in the past I was able to map more than one > display to a si

Sharing Framebuffers between Client / Server

2014-01-17 Thread Rian Quinn
I am working on a client/server program, where the server creates (and has access to a framebuffer), and then needs to share this framebuffer with a client program so that this client program can draw into the framebuffer directly (i.e. no memcpy).? I am trying to figureout what the ?cleanest?

Sharing Framebuffers between Client / Server

2014-01-20 Thread Rian Quinn
Unibox > On Jan 20, 2014, at 8:10 AM, Rob Clark wrote: > > > On Fri, Jan 17, 2014 at 6:43 AM, Rian Quinn wrote: > > >> I am working on a client/server program, where the server creates (and has >> access to a framebuffer), and then needs to share this framebuffer wi

Sharing Framebuffers between Client / Server

2014-01-20 Thread Rian Quinn
, Rob Clark wrote: > > >> On Fri, Jan 17, 2014 at 6:43 AM, Rian Quinn wrote: >> >> >>> I am working on a client/server program, where the server creates (and has >>> access to a framebuffer), and then needs to share this framebuffer with a >>> clie

drmModeSetCursor not working on Intel (Haswell) GPU

2015-05-08 Thread Rian Quinn
Running a bunch of tests for some mode setting code that I have, and the drmModeSetCursor function works great on VMWare and AMD GPUs, but I get nothing on the Intel GPU (3.19 kernel). It used to work fine (3.11 kernel). I don’t get any errors either. I simply don’t see anything. For my te

Testing LibDRM with Multi-Monitors on VMWare Fusion / Workstation

2014-10-17 Thread Rian Quinn
Thanks a ton, I plan to try this out right away. - Rian On Oct 15, 2014, at 4:34 PM, Thomas Hellstrom wrote: > Hi! > > On 09/25/2014 06:52 PM, Rian Quinn wrote: >> I have been doing a lot of work with LibDRM, including Multi-Monitor work on >> Intel and VMWare. Do you g