Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 12:19:02PM +0200, Noralf Trønnes wrote: > > Den 17.08.2016 11:30, skrev Daniel Vetter: > > On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: > > > > That's still a lot for what amounts to reimplementing mmap on shmem, but > > > > badly. What I

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 12:19:02PM +0200, Noralf Trønnes wrote: > > Den 17.08.2016 11:30, skrev Daniel Vetter: > > On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: > > > > That's still a lot for what amounts to reimplementing mmap on shmem, but > > > > badly. What I mean with redirecting

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Noralf Trønnes
Den 17.08.2016 11:30, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: That's still a lot for what amounts to reimplementing mmap on shmem, but badly. What I mean with redirecting is pointing the entire ->mmap operation to the mmap implementation

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Noralf Trønnes
Den 17.08.2016 11:30, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: That's still a lot for what amounts to reimplementing mmap on shmem, but badly. What I mean with redirecting is pointing the entire ->mmap operation to the mmap implementation for the underlying

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Daniel Vetter
On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: >> That's still a lot for what amounts to reimplementing mmap on shmem, but >> badly. What I mean with redirecting is pointing the entire ->mmap >> operation to the mmap implementation for the underlying mmap. Roughly: >>

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Daniel Vetter
On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: >> That's still a lot for what amounts to reimplementing mmap on shmem, but >> badly. What I mean with redirecting is pointing the entire ->mmap >> operation to the mmap implementation for the underlying mmap. Roughly: >> >> /* normal

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 16.08.2016 17:25, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 16.08.2016 17:25, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Daniel Vetter
On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: > > Den 15.08.2016 08:59, skrev Daniel Vetter: > > On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: > > > The SimpleDRM driver binds to simple-framebuffer devices and provides a > > > DRM/KMS API. It provides only a

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Daniel Vetter
On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: > > Den 15.08.2016 08:59, skrev Daniel Vetter: > > On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: > > > The SimpleDRM driver binds to simple-framebuffer devices and provides a > > > DRM/KMS API. It provides only a

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-15 Thread Daniel Vetter
On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: > The SimpleDRM driver binds to simple-framebuffer devices and provides a > DRM/KMS API. It provides only a single CRTC+encoder+connector combination > plus one initial mode. > > Userspace can create dumb-buffers which can be blit

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-15 Thread Daniel Vetter
On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: > The SimpleDRM driver binds to simple-framebuffer devices and provides a > DRM/KMS API. It provides only a single CRTC+encoder+connector combination > plus one initial mode. > > Userspace can create dumb-buffers which can be blit

[PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb-buffers which can be blit into the real framebuffer similar to UDL. No access to the real framebuffer

[PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb-buffers which can be blit into the real framebuffer similar to UDL. No access to the real framebuffer