Re: [PATCH 01/11] drm: add plane support

2011-10-25 Thread Jesse Barnes
Here's a diff I can roll in if it looks ok. It adds the ability to specify multiple handles for a single fb to better accommodate planar configs. I think Rob has convinced me that this is a good idea... comments appreciated. Thanks, Jesse diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/dr

Re: [PATCH 01/11] drm: add plane support

2011-10-27 Thread Jesse Barnes
On Wed, 26 Oct 2011 14:40:07 +0900 Joonyoung Shim wrote: > 10/25/2011 06:46 PM, Jesse Barnes 쓴 글: > > [snip] > > diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h > > index 8020798..d7f03aa 100644 > > --- a/include/drm/drm_crtc.h > > +++ b/include/

Re: Proposal for a low-level Linux display framework

2011-10-31 Thread Jesse Barnes
es, tablets, notebooks, etc will need and want an architecture that looks a lot like the DRM layer, with authentication for rendering clients, an command submission ioctl for acceleration, and memory management, so I expect most of the driver growth to be in DRM in the near future. And I totally ag

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control

2011-11-02 Thread Jesse Barnes
off-by: Keith Packard > --- > drivers/gpu/drm/i915/intel_dp.c | 37 +++-- > 1 files changed, 19 insertions(+), 18 deletions(-) Can't we just set UNLOCK_REGS at load time and have asserts sprinkled here and there? -- Jesse Barnes, Intel Open Sourc

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Treat PCH eDP like DP in most places

2011-11-02 Thread Jesse Barnes
e duplicated code than fragile code... Reviewed-by: Jesse Barnes But I was curious about this hunk: @@ -766,10 +766,10 @@ intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode, continue; intel_dp = enc_to_intel_dp(encoder); -

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Let panel power sequencing hardware do its job

2011-11-02 Thread Jesse Barnes
| PP_SEQUENCE_STATE_MASK) > +#define IDLE_ON_VALUE(PP_ON | 0 | PP_SEQUENCE_NONE | 0 >| PP_SEQUENCE_STATE_ON_IDLE) Note that PP_READY will incorrectly depend on some other register values, so in some configs the panel will happily power up ev

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Remove link_status field from intel_dp structure

2011-11-02 Thread Jesse Barnes
On Tue, 1 Nov 2011 23:20:25 -0700 Keith Packard wrote: > No persistent data was ever stored here, so link_status is instead > allocated on the stack as needed. > > Signed-off-by: Keith Packard > --- I like this cleanup. Reviewed-by: Jesse Barnes -- Jesse Barnes, In

[PATCH] DRM planes

2011-11-02 Thread Jesse Barnes
In response to feedback, I've adjusted the new addfb2 ioctl to take per component pitch and offset args. Generally, the offset[0] field will be 0, but it's conceivable that some metadata could be stored at the start of a given buffer, and an offset[0] allows the client to skip past that. Similarly

[PATCH 3/5] drm/i915: rename existing overlay support to "legacy"

2011-11-02 Thread Jesse Barnes
The old overlay block has all sorts of quirks and is very different than ILK+ video sprites. So rename it to legacy to make that clear and clash less with core overlay support. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c |2 +- drivers/gpu/drm/i915/i915_drv.h

[PATCH 5/5] drm/i915: add destination color key support

2011-11-02 Thread Jesse Barnes
Add new ioctls for getting and setting the current destination color key. This allows for simple overlay display control by matching a color key value in the primary plane before blending the overlay on top. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_dma.c |2

[PATCH 4/5] drm/i915: add SNB and IVB video sprite support

2011-11-02 Thread Jesse Barnes
The video sprites support various video surface formats natively and can handle scaling as well. So add support for them using the new DRM core overlay support functions. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/Makefile |1 + drivers/gpu/drm/i915/i915_reg.h

[PATCH 2/5] drm: add an fb creation ioctl that takes a pixel format

2011-11-02 Thread Jesse Barnes
To properly support the various plane formats supported by different hardware, the kernel must know the pixel format of a framebuffer object. So add a new ioctl taking a format argument corresponding to a fourcc name from videodev2.h. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c

[PATCH 1/5] drm: add plane support

2011-11-02 Thread Jesse Barnes
Planes are a bit like half-CRTCs. They have a location and fb, but don't drive outputs directly. Add support for handling them to the core KMS code. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 236 +++- drivers/gpu/drm/drm_

Re: [PATCH 1/5] drm: add plane support

2011-11-02 Thread Jesse Barnes
On Wed, 2 Nov 2011 13:03:19 -0700 Jesse Barnes wrote: > Planes are a bit like half-CRTCs. They have a location and fb, but > don't drive outputs directly. Add support for handling them to the core > KMS code. Accidentally left out the ->destroy hook in this one. The drm-o

Re: [PATCH] DRM planes

2011-11-03 Thread Jesse Barnes
On Thu, 3 Nov 2011 15:11:55 +0100 Daniel Vetter wrote: > On Wed, Nov 02, 2011 at 01:03:18PM -0700, Jesse Barnes wrote: > > In response to feedback, I've adjusted the new addfb2 ioctl to take per > > component pitch and offset args. Generally, the offset[0] field wil

Re: [PATCH] DRM planes

2011-11-03 Thread Jesse Barnes
. ;-) Rob, Joonyoung, Inkie, any comment on using fourcc vs rolling our own surface definitions? Thanks, -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel mailing list dri-devel@lists.freedesk

Re: [PATCH 1/5] drm: add plane support

2011-11-03 Thread Jesse Barnes
On Wed, 2 Nov 2011 15:33:04 -0700 Jesse Barnes wrote: > On Wed, 2 Nov 2011 13:03:19 -0700 > Jesse Barnes wrote: > > > Planes are a bit like half-CRTCs. They have a location and fb, but > > don't drive outputs directly. Add support for handling the

Re: [PATCH 2/5] drm: add an fb creation ioctl that takes a pixel format

2011-11-03 Thread Jesse Barnes
On Wed, 2 Nov 2011 13:03:20 -0700 Jesse Barnes wrote: > To properly support the various plane formats supported by different > hardware, the kernel must know the pixel format of a framebuffer object. > So add a new ioctl taking a format argument corresponding to a fourcc > name from

Re: [PATCH 3/5] drm/i915: rename existing overlay support to "legacy"

2011-11-03 Thread Jesse Barnes
On Wed, 2 Nov 2011 13:03:21 -0700 Jesse Barnes wrote: > The old overlay block has all sorts of quirks and is very different than > ILK+ video sprites. So rename it to legacy to make that clear and clash > less with core overlay support. This one has been dropped. I'm calling

Re: [PATCH 4/5] drm/i915: add SNB and IVB video sprite support

2011-11-03 Thread Jesse Barnes
On Wed, 2 Nov 2011 13:03:22 -0700 Jesse Barnes wrote: > The video sprites support various video surface formats natively and can > handle scaling as well. So add support for them using the new DRM core > overlay support functions. > > Signed-off-by: Jesse Barnes > --- Upda

Re: [PATCH 5/5] drm/i915: add destination color key support

2011-11-03 Thread Jesse Barnes
On Wed, 2 Nov 2011 13:03:23 -0700 Jesse Barnes wrote: > Add new ioctls for getting and setting the current destination color > key. This allows for simple overlay display control by matching a color > key value in the primary plane before blending the overlay on top. > > Signe

Re: [Intel-gfx] [PATCH] drm/i915: add SNB video sprite support

2011-11-03 Thread Jesse Barnes
e latest code; I clamp things in the top level function now. But take a look and see if I'm missing one of the cases you cover here. -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel mai

Re: [PATCH] DRM planes

2011-11-03 Thread Jesse Barnes
On Thu, 3 Nov 2011 13:55:50 -0500 Rob Clark wrote: > On Thu, Nov 3, 2011 at 12:36 PM, Jesse Barnes > wrote: > > On Thu, 3 Nov 2011 18:29:14 +0100 > > Daniel Vetter wrote: > > > >> Hi all, > >> > >> I've discussed this a bit on irc and co

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Let panel power sequencing hardware do its job

2011-11-03 Thread Jesse Barnes
gister until it shows the correct values. Modulo what we already discussed on irc about the PP_READY bit, and the CodingStyle nitpicks (newlines before {? come on, this isn't X :), Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center signature.asc Descripti

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Make DP prepare/commit consistent with DP dpms

2011-11-03 Thread Jesse Barnes
) && !is_pch_edp(intel_dp)) > - ironlake_edp_pll_off(encoder); > ironlake_edp_panel_vdd_off(intel_dp, false); > + > + if (is_cpu_edp(intel_dp)) > + ironlake_edp_pll_off(encoder); But

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Try harder during dp pattern 1 link training

2011-11-03 Thread Jesse Barnes
gt; + } > + } else > + voltage_tries = 0; > + voltage = intel_dp->train_set[0] & > DP_TRAIN_VOLTAGE_SWING_MASK; > + } > > /* Compute new intel_dp-&g

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Remove trailing white space

2011-11-03 Thread Jesse Barnes
,7 @@ intel_dp_init(struct drm_device *dev, int output_reg) > > cur.t8 = (pp_on & PANEL_LIGHT_ON_DELAY_MASK) >> > PANEL_LIGHT_ON_DELAY_SHIFT; > - > + > cur.t9 = (pp_off & PANEL_LIGHT_OFF_DELAY_MASK) >> >

Re: [PATCH] DRM planes

2011-11-03 Thread Jesse Barnes
patches? Daniel, have you been beaten down enough to acquiesce to that? Alan, does this look usable for your stuff? -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Make DP prepare/commit consistent with DP dpms

2011-11-03 Thread Jesse Barnes
On Thu, 03 Nov 2011 15:30:57 -0700 Keith Packard wrote: > On Thu, 3 Nov 2011 13:00:11 -0700, Jesse Barnes > wrote: > > > A few comments on this one (also, is it strictly required to fix your > > bug)? > > I think so; the panel definitely was not happy when I turn

Re: [PATCH 1/5] drm: add plane support

2011-11-03 Thread Jesse Barnes
On Thu, 3 Nov 2011 11:21:18 -0700 Jesse Barnes wrote: > On Wed, 2 Nov 2011 15:33:04 -0700 > Jesse Barnes wrote: > > > On Wed, 2 Nov 2011 13:03:19 -0700 > > Jesse Barnes wrote: > > > > > Planes are a bit like half-CRTCs. They have a location and fb, bu

Re: [PATCH 1/5] drm: add plane support

2011-11-04 Thread Jesse Barnes
in device specific update_plane, but can do in > drm_mode_setplane? Yeah it should probably be done in setplane if there's no error. Fixed. Thanks, -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature __

Re: [PATCH 2/5] drm: add an fb creation ioctl that takes a pixel format

2011-11-04 Thread Jesse Barnes
t above function cannot detect it. Oh that's a mistake on my part. RGB24 is generally bpp=32. I'll fix that. This is just a compatibility function, so it only needs to handle cases used by current code. I expect future code to use the fourcc values directly. Thanks, -- Jesse

Re: [PATCH 2/5] drm: add an fb creation ioctl that takes a pixel format

2011-11-07 Thread Jesse Barnes
ob, could you please tell me about why do you need > them.? Daniel seemed to think that some of the formats might have ambiguous pitches or offsets, so being able to specify one for each possible component seems like a good idea. Also, for planar formats packed into a single buffer object

[PATCH] DRM planes

2011-11-07 Thread Jesse Barnes
Ok this one includes all the minor feedback from last week, and should satisfy Daniel and Jakob enough to get their Reviewed-bys. You can ignore the final patch in the series; it's a WIP power saving feature, but the other ones are working well here. Thanks, Jesse ___

[PATCH 1/5] drm: add plane support

2011-11-07 Thread Jesse Barnes
Planes are a bit like half-CRTCs. They have a location and fb, but don't drive outputs directly. Add support for handling them to the core KMS code. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 251 +++- drivers/gpu/drm/drm_

[PATCH 3/5] drm/i915: add SNB and IVB video sprite support

2011-11-07 Thread Jesse Barnes
The video sprites support various video surface formats natively and can handle scaling as well. So add support for them using the new DRM core sprite support functions. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/Makefile|1 + drivers/gpu/drm/i915/i915_reg.h | 123

[PATCH 5/5] drm/i915: track sprite coverage and disable primary plane if possible

2011-11-07 Thread Jesse Barnes
To save power when the sprite is full screen, we can disable the primary plane on the same pipe. Track the sprite status and enable/disable the primary opportunistically. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_drv.h|1 + drivers/gpu/drm/i915/intel_sprite.c | 19

[PATCH 2/5] drm: add an fb creation ioctl that takes a pixel format

2011-11-07 Thread Jesse Barnes
To properly support the various plane formats supported by different hardware, the kernel must know the pixel format of a framebuffer object. So add a new ioctl taking a format argument corresponding to a fourcc name from videodev2.h. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c

[PATCH 4/5] drm/i915: add destination color key support

2011-11-07 Thread Jesse Barnes
Add new ioctls for getting and setting the current destination color key. This allows for simple overlay display control by matching a color key value in the primary plane before blending the overlay on top. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_dma.c |2 + drivers

[PATCH 1/4] drm: try to restore previous CRTC config if mode set fails

2011-11-07 Thread Jesse Barnes
We restore the CRTC, encoder, and connector configurations, but if the mode set failed, the attached display may have been turned off, so we need to try set_config again to restore things to the way they were. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc_helper.c | 13

Misc. cleanups

2011-11-07 Thread Jesse Barnes
Just some cleanups for unused fields in drm_crtc.h and some comment corrections. I also removed a few DRM_ERRORs from drm_crtc.c (things actually weren't as bad as I feared). Next step is to remove a whole slew of DRM_DEBUG calls unless people are really attached to them. I find them to just get

[PATCH 01/12] drm: remove unused connector_count field from drm_display_mode

2011-11-07 Thread Jesse Barnes
Doesn't really belong here anyway. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 8020798..b0df23a 100644 --- a/include/drm/drm_crtc.h +++ b/includ

[PATCH 02/12] drm: remove unused save/restore functions from drm_crtc_funcs & fix comments

2011-11-07 Thread Jesse Barnes
Remove two unused fields from this struct and cleanup/correct the comments. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 18 -- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b0df23a..a960020

[PATCH 03/12] drm: fix comments for drm_crtc struct

2011-11-07 Thread Jesse Barnes
Remove stale entries and update with the latest stuff. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index a960020..ad2a605 100644 --- a/include/drm

[PATCH 04/12] drm: remove unused save/restore fields from drm_connector & fix comments

2011-11-07 Thread Jesse Barnes
Also fix up the wrapping to 80 columns. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 20 +++- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ad2a605..6ab20f8 100644 --- a/include/drm/drm_crtc.h

[PATCH 06/12] drm: add drm_encoder comments

2011-11-07 Thread Jesse Barnes
Just some basic comments about the place and function of the structure and fields. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index a1583d8..a98433a

[PATCH 05/12] drm: add comments for drm_encoder_funcs

2011-11-07 Thread Jesse Barnes
Just basic verbiage. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 6ab20f8..a1583d8 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h

[PATCH 08/12] drm: document drm_mode_set structure

2011-11-07 Thread Jesse Barnes
This is a core mode setting structure that deserves a little verbiage. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index e9f486d..b33713b 100644 --- a

[PATCH 07/12] drm: remove unused fields in drm_connector and document the rest

2011-11-07 Thread Jesse Barnes
We never used initial_x/y or the force_encoder_id, so drop those fields and proide a basic description of the others. Really, the ELD bits belong in drm_display_info rather than directly in the connector, but that's a separate cleanup. Signed-off-by: Jesse Barnes --- include/drm/drm_c

[PATCH 09/12] drm: document and cleanup drm_mode_config_funcs

2011-11-07 Thread Jesse Barnes
Just fix the wrapping mostly. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b33713b..a0c7dc6 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm

[PATCH 10/12] drm: document the drm_mode_group structure

2011-11-07 Thread Jesse Barnes
This is actually a core structure with a big future ahead of it. Make it a little less mysterious. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index

[PATCH 11/12] drm: document the drm_mode_config structure

2011-11-07 Thread Jesse Barnes
Including a comment about what the locks are for. Signed-off-by: Jesse Barnes --- include/drm/drm_crtc.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 003cba2..58e6a996 100644 --- a/include

[PATCH 12/12] drm: remove some potentially dangerous DRM_ERRORs

2011-11-07 Thread Jesse Barnes
going upstream anyway. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 19 --- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index fe738f0..df6c01b 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/dr

Re: [PATCH 04/12] drm: remove unused save/restore fields from drm_connector & fix comments

2011-11-07 Thread Jesse Barnes
On Mon, 07 Nov 2011 20:26:59 + Chris Wilson wrote: > On Mon, 7 Nov 2011 12:03:15 -0800, Jesse Barnes > wrote: > > Also fix up the wrapping to 80 columns. > > > > Signed-off-by: Jesse Barnes > > --- > > include/drm/drm_crtc.h | 20 +++-

Re: [Intel-gfx] [PATCH 1/5] drm: add plane support

2011-11-08 Thread Jesse Barnes
On Tue, 8 Nov 2011 15:20:37 +0100 Daniel Vetter wrote: > On Mon, Nov 07, 2011 at 10:02:52AM -0800, Jesse Barnes wrote: > > Planes are a bit like half-CRTCs. They have a location and fb, but > > don't drive outputs directly. Add support for handling them to t

[PATCH 1/2] drm: add plane support

2011-11-08 Thread Jesse Barnes
Planes are a bit like half-CRTCs. They have a location and fb, but don't drive outputs directly. Add support for handling them to the core KMS code. Acked-by: Alan Cox Reviewed-by: Rob Clark Reviewed-by: Daniel Vetter Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c |

[PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format

2011-11-08 Thread Jesse Barnes
mode_fb_cmd2 using helpers where the old bpp/depth values are needed. Acked-by: Alan Cox Reviewed-by: Rob Clark Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c| 112 +++- drivers/gpu/drm/drm_crtc_helper.c | 50 - drivers/gpu/drm

Re: [PATCH 1/2] drm: add plane support

2011-11-08 Thread Jesse Barnes
On Tue, 08 Nov 2011 17:50:51 + Chris Wilson wrote: > On Tue, 8 Nov 2011 09:38:52 -0800, Jesse Barnes > wrote: > > +int drm_mode_getplane(struct drm_device *dev, void *data, > > + struct drm_file *file_priv) > > +{ > > + struct drm_mod

[PATCH 1/2] drm: add plane support

2011-11-08 Thread Jesse Barnes
Planes are a bit like half-CRTCs. They have a location and fb, but don't drive outputs directly. Add support for handling them to the core KMS code. Acked-by: Alan Cox Reviewed-by: Rob Clark Reviewed-by: Daniel Vetter Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c |

[PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format

2011-11-08 Thread Jesse Barnes
mode_fb_cmd2 using helpers where the old bpp/depth values are needed. Acked-by: Alan Cox Reviewed-by: Rob Clark Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c| 108 +++- drivers/gpu/drm/drm_crtc_helper.c | 50 - drivers/gpu/drm

Re: [Intel-gfx] [PATCH 3/5] drm/i915: add SNB and IVB video sprite support

2011-11-08 Thread Jesse Barnes
re > many other places where we stall in similarly bad ways, still ... Yes, good point. Will fix. > > > + > > + return ret; > > +} > > + > > +static int > > +intel_disable_plane(struct drm_plane *plane) > > +{ > > + struct drm_device *dev = plane->dev; > >

Re: [PATCH 4/5] drm/i915: add destination color key support

2011-11-08 Thread Jesse Barnes
On Tue, 8 Nov 2011 23:06:57 +0100 Daniel Vetter wrote: > On Mon, Nov 07, 2011 at 10:02:55AM -0800, Jesse Barnes wrote: > > Add new ioctls for getting and setting the current destination color > > key. This allows for simple overlay display control by matching a color >

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format

2011-11-11 Thread Jesse Barnes
On Fri, 11 Nov 2011 10:50:00 + Dave Airlie wrote: > On Fri, Nov 11, 2011 at 10:47 AM, Dave Airlie wrote: > > On Tue, Nov 8, 2011 at 9:18 PM, Jesse Barnes > > wrote: > >> To properly support the various plane formats supported by different > >> hardwar

Re: [PATCH 2/7] drm: plane: Fix size of formats memcpy()

2011-11-11 Thread Jesse Barnes
t; > - memcpy(plane->format_types, formats, format_count); > + memcpy(plane->format_types, formats, sizeof(uint32_t) * format_count); > plane->format_count = format_count; > plane->possible_crtcs = possible_crtcs; > Duh thank you. -- Jesse Barnes, Int

Re: [PATCH 4/7] drm: plane: Check source coordinates

2011-11-11 Thread Jesse Barnes
plane_req->crtc_x, plane_req->crtc_y, >plane_req->crtc_w, plane_req->crtc_h, Good sanity check (saves the drivers from having to do it), but I wonder if we can use a better return value like ENOSPC or something to make it easier for userspace to figure out. -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 6/7] drm: plane: Make 'formats' parameter to drm_plane_init() const

2011-11-11 Thread Jesse Barnes
int32_t format_count); > extern void drm_plane_cleanup(struct drm_plane *plane); > > extern void drm_encoder_cleanup(struct drm_encoder *encoder); Yeah good fix. I made the structure const at ickle's request (once I stopped assigning it directly) but didn't

Re: [PATCH 7/7] drm: plane: Check that the fb pixel format is supported by the plane

2011-11-11 Thread Jesse Barnes
t; + DRM_DEBUG_KMS("Invalid pixel format %x\n", fb->pixel_format); > + ret = -EINVAL; > + goto out; > + } > + > fb_width = fb->width << 16; > fb_height = fb->height << 16; > Ye

Re: [PATCH 1/7] drm: Zero initialize drm_mode_fb_cmd2 in legacy addfb ioctl handler

2011-11-11 Thread Jesse Barnes
void *data, struct drm_file *file_priv) > { > struct drm_mode_fb_cmd *or = data; > - struct drm_mode_fb_cmd2 r; > + struct drm_mode_fb_cmd2 r = {}; > struct drm_mode_config *config = &dev->mode_config; > struct drm_framebuffer *fb; > int

Re: [PATCH 3/7] drm: plane: Clear plane.crtc and plane.fb after disable_plane()

2011-11-11 Thread Jesse Barnes
code should also indicate that the function succeeded, but this doesn't hurt. Acked-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 5/7] drm: plane: Check crtc coodrinates against integer overflows in setplane ioctl

2011-11-11 Thread Jesse Barnes
plane_req->crtc_y, >plane_req->crtc_w, plane_req->crtc_h, Not sure this helps much in practice, since the drivers will have to validate the target CRTC rect against the actual pipe dimensions anyway. But it doesn't hurt either, so: Acked

Re: [PATCH 4/7] drm: plane: Check source coordinates

2011-11-11 Thread Jesse Barnes
On Fri, 11 Nov 2011 19:18:52 +0200 Ville Syrjälä wrote: > On Fri, Nov 11, 2011 at 08:24:18AM -0800, Jesse Barnes wrote: > > On Fri, 11 Nov 2011 18:04:04 +0200 > > ville.syrj...@linux.intel.com wrote: > > > > > From: Ville Syrjälä > > > > > >

Re: [PATCH 5/7] drm: plane: Check crtc coodrinates against integer overflows in setplane ioctl

2011-11-11 Thread Jesse Barnes
On Fri, 11 Nov 2011 19:11:39 +0200 Ville Syrjälä wrote: > On Fri, Nov 11, 2011 at 09:01:46AM -0800, Jesse Barnes wrote: > > On Fri, 11 Nov 2011 18:04:05 +0200 > > ville.syrj...@linux.intel.com wrote: > > > > > From: Ville Syrjälä > > > > > > H

[PATCH 1/2] drm: add plane support v2

2011-11-14 Thread Jesse Barnes
ff-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 257 +++- drivers/gpu/drm/drm_drv.c |3 + include/drm/drm.h |3 + include/drm/drm_crtc.h | 75 +- include/drm/drm_mode.h | 33 ++ 5 files changed, 368 inser

[PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v2

2011-11-14 Thread Jesse Barnes
mode_fb_cmd2 using helpers where the old bpp/depth values are needed. v2: create DRM specific fourcc header file for sharing with libdrm etc Acked-by: Alan Cox Reviewed-by: Rob Clark Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c| 109 +++- drivers

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v2

2011-11-14 Thread Jesse Barnes
On Mon, 14 Nov 2011 11:47:07 -0800 Jesse Barnes wrote: > To properly support the various plane formats supported by different > hardware, the kernel must know the pixel format of a framebuffer object. > So add a new ioctl taking a format argument corresponding to a fourcc > name from

Re: [PATCH 1/2] drm: add plane support v2

2011-11-14 Thread Jesse Barnes
On Mon, 14 Nov 2011 11:47:06 -0800 Jesse Barnes wrote: > Planes are a bit like half-CRTCs. They have a location and fb, but > don't drive outputs directly. Add support for handling them to the core > KMS code. > > v2: fix ABI of get_plane - move format_type_ptr to the end

[PATCH 1/2] drm: add plane support v2

2011-11-14 Thread Jesse Barnes
ff-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 257 +++- drivers/gpu/drm/drm_drv.c |3 + include/drm/drm.h |3 + include/drm/drm_crtc.h | 75 +- include/drm/drm_mode.h | 33 ++ 5 files changed, 368 inser

[PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-14 Thread Jesse Barnes
multi-object formats pull in Ville's fix for the memcpy in drm_plane_init apply Ville's cleanup to zero out fb_cmd2 arg in drm_mode_addfb Signed-off-by: Ville Syrjälä Acked-by: Alan Cox Reviewed-by: Rob Clark Signed-off-by: Jesse Barnes --- drivers/gpu/drm/

Re: DRM KMS Modesetting

2011-11-14 Thread Jesse Barnes
Hm I get a full white screen with a gray triangle in the lower right hand corner. I had to modify the resolution the test was searching for to 1920x1200 instead of 1024x600 since I tested on a DP attached monitor, and fix the connector id, but other than that it seemed to work fine. --

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-14 Thread Jesse Barnes
On Mon, 14 Nov 2011 23:16:44 +0200 Ville Syrjälä wrote: > On Mon, Nov 14, 2011 at 12:21:55PM -0800, Jesse Barnes wrote: > > +#define fourcc_code(a,b,c,d) ((u32)(a) | ((u32)(b) << 8) | \ > > + ((u32)(c) << 16) | ((u32)(d) << 24)) > &

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-14 Thread Jesse Barnes
On Mon, 14 Nov 2011 23:24:55 +0200 Ville Syrjälä wrote: > On Mon, Nov 14, 2011 at 12:21:55PM -0800, Jesse Barnes wrote: > > +struct drm_mode_fb_cmd2 { > > + __u32 fb_id; > > + __u32 width, height; > > + __u32 pixel_format; /* fourcc code from videodev2.h */ >

[PATCH 1/2] drm: add plane support v3

2011-11-14 Thread Jesse Barnes
n Cox Reviewed-by: Rob Clark Reviewed-by: Daniel Vetter Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c | 257 +++- drivers/gpu/drm/drm_drv.c |3 + include/drm/drm.h |3 + include/drm/drm_crtc.h | 75

[PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v5

2011-11-14 Thread Jesse Barnes
multi-object formats pull in Ville's fix for the memcpy in drm_plane_init apply Ville's cleanup to zero out fb_cmd2 arg in drm_mode_addfb v5: add 'flags' field for interlaced support (from Ville) Signed-off-by: Ville Syrjälä Acked-by: Alan Cox Reviewed-by: Rob Clark

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-14 Thread Jesse Barnes
On Tue, 15 Nov 2011 00:37:47 +0200 Ville Syrjälä wrote: > On Mon, Nov 14, 2011 at 01:35:57PM -0800, Jesse Barnes wrote: > > On Mon, 14 Nov 2011 23:24:55 +0200 > > Ville Syrjälä wrote: > > > > > On Mon, Nov 14, 2011 at 12:21:55PM -0800, Jesse Barnes wrote: &g

Re: DRM KMS Modesetting

2011-11-14 Thread Jesse Barnes
is. Are there any debug options? Is it > possible to query the EGLImage for width/height? Ok maybe the gen3 vs gen4 EGL image code isn't calculating the width/stride correctly somewhere then. You'd have to walk through the gbm_dri2.c and egl_dri2.c code and see where the width is

Re: [PATCH 1/2] drm: add plane support v2

2011-11-15 Thread Jesse Barnes
On Tue, 15 Nov 2011 13:42:40 +0200 Ville Syrjälä wrote: > On Tue, Nov 15, 2011 at 12:40:43PM +1000, Ben Skeggs wrote: > > On Mon, 2011-11-14 at 12:21 -0800, Jesse Barnes wrote: > > > Planes are a bit like half-CRTCs. They have a location and fb, but > > > don

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-15 Thread Jesse Barnes
:8, little endian */ > DRM_FOURCC_YVYU... /* [31:0] Cb:Y1:Cr:Y0 8:8:8:8, little endian */ > DRM_FOURCC_VYUY... /* [31:0] Y1:Cb:Y0:Cr 8:8:8:8, little endian */ > > That leaves no room for guesswork. Looks great. Want to send Dave an incremental patch? I'll apply the

[PATCH] drm/fb: don't call driver set_config if display isn't panned

2011-11-15 Thread Jesse Barnes
current crtc config to avoid unnecessary set_config calls. Signed-off-by: Jesse Barnes diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index f7c6854..4dd81f3 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -739,7 +739,8 @@ int

Re: [PATCH 2/2] drm: add an fb creation ioctl that takes a pixel format v4

2011-11-15 Thread Jesse Barnes
On Tue, 15 Nov 2011 22:30:36 +0200 Ville Syrjälä wrote: > On Tue, Nov 15, 2011 at 08:16:04AM -0800, Jesse Barnes wrote: > > On Tue, 15 Nov 2011 14:57:02 +0200 > > Ville Syrjälä wrote: > > > I'm fine with fourccs as long as the defines are named and documented >

Re: drm pixel formats update

2011-11-16 Thread Jesse Barnes
make do with just one format definition. Don't you still need to know the order? I.e. what's in handle[1], U or V? -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri-devel

Re: [PATCH 2/2] drop planar YUV format with Y Cr Cb plane ordering

2011-11-17 Thread Jesse Barnes
remove any > functionality. What if your surfaces are packed into a single bo? It would be a pain to move them around in that case... -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ dri

Re: drm pixel formats update

2011-11-17 Thread Jesse Barnes
On Thu, 17 Nov 2011 00:20:44 +0200 Ville Syrjälä wrote: > On Wed, Nov 16, 2011 at 01:23:01PM -0800, Jesse Barnes wrote: > > On Wed, 16 Nov 2011 23:19:38 +0200 > > Ville Syrjälä wrote: > > > Oh and one extra detail just occured to me regarding the three plane > > &g

Re: [PATCH 2/2] drop planar YUV format with Y Cr Cb plane ordering

2011-11-17 Thread Jesse Barnes
On Thu, 17 Nov 2011 19:14:07 +0200 Ville Syrjälä wrote: > On Thu, Nov 17, 2011 at 09:05:54AM -0800, Jesse Barnes wrote: > > On Thu, 17 Nov 2011 18:05:14 +0200 > > ville.syrj...@linux.intel.com wrote: > > > > > From: Ville Syrjälä > > > > > >

Re: DRM KMS Modesetting

2011-11-18 Thread Jesse Barnes
On Fri, 18 Nov 2011 22:35:13 +0100 David Herrmann wrote: > 2011/11/15 Kristian Høgsberg : > > 2011/11/15 David Herrmann : > >> 2011/11/15 Kristian Høgsberg : > >>> On Mon, Nov 14, 2011 at 5:54 PM, Jesse Barnes > >>> wrote: > >>>> On Mon

[PATCH 1/2] libdrm: update drm headers from kernel, including new overlay ioctls & structs

2011-12-06 Thread Jesse Barnes
Add structs and functions necessary for the new plane and fb handling code, including a new header, drm_fourcc.h, that includes the surface formats supported by various DRM drivers. Signed-off-by: Jesse Barnes --- include/drm/Makefile.am |1 + include/drm/drm.h| 13 - include

Re: [PATCH 1/2] libdrm: update drm headers from kernel, including new overlay ioctls & structs

2011-12-06 Thread Jesse Barnes
On Tue, 6 Dec 2011 15:23:57 -0800 Jesse Barnes wrote: > Add structs and functions necessary for the new plane and fb handling code, > including a new header, drm_fourcc.h, that includes the surface formats > supported by various DRM drivers. > > Signed-off-by: Jesse Barnes

[PATCH] libdrm: plane & addfb2 support

2011-12-07 Thread Jesse Barnes
Import the current kernel bits into libdrm for client code. Signed-off-by: Jesse Barnes diff --git a/include/drm/Makefile.am b/include/drm/Makefile.am index 43695bd..2923ab4 100644 --- a/include/drm/Makefile.am +++ b/include/drm/Makefile.am @@ -26,6 +26,7 @@ klibdrmincludedir = ${includedir

Re: [PATCH] drm_edid: support CEA video modes

2011-12-13 Thread Jesse Barnes
tian has a few patches outstanding for CEA mode handling. Getting them in makes sense to me and this patch looks like it's structured nicely at least (I haven't checked the CEA bits against the specs though). Any chance we can get them included for 3.3? Thanks, -- Jesse Barnes, Intel Open

Re: [PATCH v2 5/5] drm/exynos: Add plane support with fimd

2011-12-14 Thread Jesse Barnes
ed out was that you don't seem to be validating the zpos ioctl parameters for sanity. Not sure if there's much to do, but it may be worth checking for a max zpos or something... -- Jesse Barnes, Intel Open Source Technology Center ___ dri-devel mai

Re: [PATCH 2/2] drm: add support for private planes

2012-01-05 Thread Jesse Barnes
Ok no problem. I think Keith just queued up the i915 bits, but I don't think they've made their way to Dave yet. Jesse On Wed, 4 Jan 2012 22:55:31 -0600 Rob Clark wrote: > note: looks like I need to rebase this patch after exynos drm driver > was pulled to drm-next.. if there are some other co

<    1   2   3   4   5   6   7   8   9   10   >