Re: [Intel-gfx] [PATCH 13/20] drm/gem: create drm_gem_dumb_destroy

2013-08-01 Thread Patrik Jakobsson
*drm_gem_cma_create(struct drm_device *drm, unsigned int size); -- 1.8.3.2 Looks good Acked-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com Thanks Patrik ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http

Re: [Intel-gfx] [PATCH 3/5] drm/i915: fix VDD override off wait

2014-02-06 Thread Patrik Jakobsson
the problem. Thanks Patrik Jakobsson ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 3/5] drm/i915: fix VDD override off wait

2014-02-06 Thread Patrik Jakobsson
On Thu, Feb 6, 2014 at 8:30 PM, Paulo Zanoni przan...@gmail.com wrote: 2014-02-06 15:22 GMT-02:00 Chris Wilson ch...@chris-wilson.co.uk: On Thu, Feb 06, 2014 at 06:16:02PM +0100, Patrik Jakobsson wrote: On Fri, Dec 6, 2013 at 8:47 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Fri, 6

[Intel-gfx] [PATCH] drm/i915: Don't just say it, actually force edp vdd

2014-03-01 Thread Patrik Jakobsson
: https://bugs.freedesktop.org/show_bug.cgi?id=74628 Cc: Paulo Zanoni paulo.r.zan...@intel.com Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Intel-gfx] [PATCH] drm/i915: Don't just say it, actually force edp vdd

2014-03-03 Thread Patrik Jakobsson
-wilson.co.uk Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915/intel_dp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 57552eb..6da1fcb 100644 --- a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 2/6] drm/i915: properly disable the VDD when disabling the panel

2014-03-14 Thread Patrik Jakobsson
On Fri, Mar 14, 2014 at 2:57 PM, Daniel Vetter dan...@ffwll.ch wrote: On Fri, Mar 14, 2014 at 1:07 PM, Jani Nikula jani.nik...@linux.intel.com wrote: Fixes regression introduced by: commit b3064154dfd37deb386b1e459c54e1ca2460b3d5 Author: Patrik Jakobsson patrik.r.jakobs...@gmail.com Date

Re: [Intel-gfx] [PATCH for -fixes] Revert drm/i915: don't touch the VDD when disabling the panel

2014-03-18 Thread Patrik Jakobsson
: Patrik Jakobsson patrik.r.jakobs...@gmail.com Cc: Paulo Zanoni paulo.r.zan...@intel.com Signed-off-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c |1 + drivers/gpu/drm/i915/intel_dp.c | 10 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff

Re: [Intel-gfx] [PATCH 2/2] drm/gma500: add locking to fixed panel edid probing

2014-03-23 Thread Patrik Jakobsson
outputs. Cc: Patrik Jakobsson patrik.r.jakobs...@gmail.com Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/gma500/cdv_intel_lvds.c | 3 +++ drivers/gpu/drm/gma500/oaktrail_lvds.c | 5 + drivers/gpu/drm/gma500/psb_intel_lvds.c | 3 +++ 3 files changed, 11

[Intel-gfx] [PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-14 Thread Patrik Jakobsson
The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 and 5-9. Since we do all calculations based on them being register values (which are subtracted by 2) we need to specify them accordingly. Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915: Set i9xx sdvo clock limits according to specifications

2013-02-14 Thread Patrik Jakobsson
The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 and 5-9. Since we do all calculations based on them being register values (which are subtracted by 2) we need to specify them accordingly. Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-15 Thread Patrik Jakobsson
On Fri, Feb 15, 2013 at 1:51 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Feb 15, 2013 at 12:18:49AM +, Chris Wilson wrote: On Wed, Feb 13, 2013 at 10:20:21PM +0100, Patrik Jakobsson wrote: The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 and 5-9

Re: [Intel-gfx] [PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-16 Thread Patrik Jakobsson
On Fri, Feb 15, 2013 at 2:30 PM, Patrik Jakobsson patrik.r.jakobs...@gmail.com wrote: On Fri, Feb 15, 2013 at 1:51 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Fri, Feb 15, 2013 at 12:18:49AM +, Chris Wilson wrote: On Wed, Feb 13, 2013 at 10:20:21PM +0100, Patrik Jakobsson wrote

[Intel-gfx] [PATCH] drm/i915: Turn off hsync and vsync on ADPA when disabling crt

2013-03-05 Thread Patrik Jakobsson
According to PRM we need to disable hsync and vsync even though ADPA is disabled. The previous code did infact do the opposite so we fix it. Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915/intel_crt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [Intel-gfx] [PATCH] drm/i915: Turn off hsync and vsync on ADPA when disabling crt

2013-03-05 Thread Patrik Jakobsson
Accroding to the docs these bits don't exist on PCH platforms. intel_crt_dpms() already has a check for this, so I suppose intel_disable_crt() should have one too. Also I noticed that we seem to have the hsync and vsync disable bits reversed. At least that's what the docs are telling me.

Re: [Intel-gfx] [PATCH] drm/i915: Turn off hsync and vsync on ADPA when disabling crt

2013-03-05 Thread Patrik Jakobsson
On Tue, Mar 5, 2013 at 3:59 PM, Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Tue, Mar 05, 2013 at 03:33:26PM +0100, Patrik Jakobsson wrote: Accroding to the docs these bits don't exist on PCH platforms. intel_crt_dpms() already has a check for this, so I suppose intel_disable_crt

[Intel-gfx] [PATCH] drm/i915: Fix incorrect definition of ADPA HSYNC and VSYNC bits

2013-03-05 Thread Patrik Jakobsson
Disable bits for ADPA HSYNC and VSYNC where mixed up resulting in suspend becoming standby and vice versa. Fixed by swapping their bit position. Reported-by: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Patrik Jakobsson patrik.r.jakobs...@gmail.com --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: Fix incorrect definition of ADPA HSYNC and VSYNC bits

2013-03-06 Thread Patrik Jakobsson
On Wed, Mar 6, 2013 at 12:17 AM, Paul Menzel paulepan...@users.sourceforge.net wrote: Dear Patrik, Hi Paul Am Dienstag, den 05.03.2013, 19:09 +0100 schrieb Patrik Jakobsson: Disable bits for ADPA HSYNC and VSYNC where mixed up resulting in suspend becoming standby and vice versa. nice find

Re: [Intel-gfx] [PATCH] drm/i915: Be sure to turn hsync/vsync back on at crt enable (v2)

2013-03-26 Thread Patrik Jakobsson
On Tue, Mar 26, 2013 at 8:57 AM, Daniel Vetter dan...@ffwll.ch wrote: On Mon, Mar 25, 2013 at 03:40:05PM -0400, Adam Jackson wrote: f40ebd6b properly disabled the hsync/vsync logic at disable time, but neglected to re-enable them at enable time. v2: In the enable hook, restore the connector's

Re: [Intel-gfx] [GMA500/CDV] HDMI AVI infoframe code

2013-11-11 Thread Patrik Jakobsson
On Mon, Nov 11, 2013 at 6:57 AM, Gohad, Tushar tushar.go...@intel.com wrote: Folks, Hi From what I've seen there are no real HDMI connectors on either Poulsbo or Cedarview. It's just DVI with HDMI connectors. Though you might know of other hardware that I don't. SDVO_CMD_GET_SUPP_ENCODE always

[Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-06 Thread Patrik Jakobsson
will extend this patch set if the approach looks ok. The generic drm ioctls are also missing. Give it a spin with: strace -e trace=ioctl -p `pidof X` Patrik Jakobsson (2): strace/drm: Print extended info for drm and i915 ioctls strace/drm: Print args for most common i915 ioctls

[Intel-gfx] [RFC 1/2] strace/drm: Print extended info for drm and i915 ioctls

2015-05-06 Thread Patrik Jakobsson
This adds a dispatcher for extending drm ioctl debugging info and adds the i915 ioctls to the xlat framework. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am | 2 + defs.h | 2 + drm.c | 104

[Intel-gfx] [RFC 2/2] strace/drm: Print args for most common i915 ioctls

2015-05-06 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drm_i915.c | 235 + xlat/drm_i915_getparams.in | 28 ++ xlat/drm_i915_setparams.in | 4 + 3 files changed, 267 insertions(+) create mode 100644 xlat

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-11 Thread Patrik Jakobsson
On Thu, May 07, 2015 at 08:37:40AM -0700, Jesse Barnes wrote: On 05/06/2015 07:48 AM, Patrik Jakobsson wrote: This patch set aims to make strace more useful when tracing i915 ioctls. The ioctl type is first checked for being drm and then the driver backing the opened device is identified

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-11 Thread Patrik Jakobsson
On Mon, May 11, 2015 at 12:50:36PM +0200, Gabriel Laskar wrote: On Wed, 6 May 2015 16:48:01 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: This patch set aims to make strace more useful when tracing i915 ioctls. The ioctl type is first checked for being drm

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-12 Thread Patrik Jakobsson
On Mon, May 11, 2015 at 08:08:19PM +0200, Gabriel Laskar wrote: On Mon, 11 May 2015 15:54:24 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: On Mon, May 11, 2015 at 12:50:36PM +0200, Gabriel Laskar wrote: On Wed, 6 May 2015 16:48:01 +0200 Patrik Jakobsson patrik.jakobs

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-19 Thread Patrik Jakobsson
On Wed, May 13, 2015 at 01:10:17AM +0300, Dmitry V. Levin wrote: On Tue, May 12, 2015 at 07:37:59PM +0200, Gabriel Laskar wrote: On Tue, 12 May 2015 14:35:28 +0200, Patrik Jakobsson wrote: On Mon, May 11, 2015 at 08:08:19PM +0200, Gabriel Laskar wrote: On Mon, 11 May 2015 15:54:24 +0200

[Intel-gfx] [PATCH 1/4] drm: Add config for detecting libdrm

2015-06-09 Thread Patrik Jakobsson
Use pkg-config to try to find libdrm. If that fails use the standard include directory for kernel drm headers in /usr/include/drm. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac

[Intel-gfx] [PATCH 3/4] drm: Add decoding of i915 ioctls

2015-06-09 Thread Patrik Jakobsson
There are more ioctls to add but the ones in this patch are most commonly used. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am| 1 + defs.h | 2 + drm.c | 6 + drm_i915.c | 287

[Intel-gfx] [PATCH 0/4] drm: Add decoding for DRM/KMS and i915 ioctls

2015-06-09 Thread Patrik Jakobsson
I've added a function for detecting the driver based on it's name. Patrik Jakobsson (4): drm: Add config for detecting libdrm drm: Add dispatcher and driver identification for DRM drm: Add decoding of i915 ioctls drm: Add decoding of DRM and KMS ioctls Makefile.am| 2

Re: [Intel-gfx] [PATCH 0/4] drm: Add decoding for DRM/KMS and i915 ioctls

2015-06-09 Thread Patrik Jakobsson
On Tue, Jun 09, 2015 at 03:51:05PM +0200, Gabriel Laskar wrote: On Tue, 9 Jun 2015 13:26:40 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: This set of patches adds a dispatcher for handling DRM ioctls. The kernel headers for DRM might not be available on all distributions

Re: [Intel-gfx] [PATCH 2/4] drm: Add dispatcher and driver identification for DRM

2015-06-09 Thread Patrik Jakobsson
On Tue, Jun 09, 2015 at 03:51:10PM +0200, Gabriel Laskar wrote: On Tue, 9 Jun 2015 13:26:42 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am | 1 + defs.h | 6 - drm.c

Re: [Intel-gfx] [PATCH 4/4] drm: Add decoding of DRM and KMS ioctls

2015-06-09 Thread Patrik Jakobsson
On Tue, Jun 09, 2015 at 03:51:08PM +0200, Gabriel Laskar wrote: On Tue, 9 Jun 2015 13:26:44 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: This patch adds many of the DRM and KMS ioctls. The rest can be added as needed. Signed-off-by: Patrik Jakobsson patrik.jakobs

Re: [Intel-gfx] [PATCH 2/4] drm: Add dispatcher and driver identification for DRM

2015-06-10 Thread Patrik Jakobsson
On Wed, Jun 10, 2015 at 01:14:20AM +0300, Dmitry V. Levin wrote: On Tue, Jun 09, 2015 at 01:26:42PM +0200, Patrik Jakobsson wrote: [...] --- a/Makefile.am +++ b/Makefile.am @@ -121,6 +121,7 @@ strace_SOURCES =\ utime.c \ utimes.c\ v4l2.c

Re: [Intel-gfx] [PATCH 3/4] drm: Add decoding of i915 ioctls

2015-06-10 Thread Patrik Jakobsson
On Wed, Jun 10, 2015 at 01:35:35AM +0300, Dmitry V. Levin wrote: On Tue, Jun 09, 2015 at 01:26:43PM +0200, Patrik Jakobsson wrote: [...] +static int i915_getparam(struct tcb *tcp, const unsigned int code, long arg) +{ + struct drm_i915_getparam param; + int value

Re: [Intel-gfx] [PATCH 4/4] drm: Add decoding of DRM and KMS ioctls

2015-06-10 Thread Patrik Jakobsson
On Wed, Jun 10, 2015 at 01:46:53AM +0300, Dmitry V. Levin wrote: On Tue, Jun 09, 2015 at 01:26:44PM +0200, Patrik Jakobsson wrote: [...] +static int drm_version(struct tcb *tcp, const unsigned int code, long arg) +{ + struct drm_version ver; + char *name, *date, *desc; + int ret

Re: [Intel-gfx] [PATCH 2/4] drm: Add dispatcher and driver identification for DRM

2015-06-11 Thread Patrik Jakobsson
On Thu, Jun 11, 2015 at 02:26:59AM +0300, Dmitry V. Levin wrote: On Wed, Jun 10, 2015 at 01:52:33PM +0200, Patrik Jakobsson wrote: On Wed, Jun 10, 2015 at 01:14:20AM +0300, Dmitry V. Levin wrote: On Tue, Jun 09, 2015 at 01:26:42PM +0200, Patrik Jakobsson wrote: [...] +#define

Re: [Intel-gfx] [PATCH 3/4] drm: Add decoding of i915 ioctls

2015-06-11 Thread Patrik Jakobsson
On Thu, Jun 11, 2015 at 02:27:12AM +0300, Dmitry V. Levin wrote: On Wed, Jun 10, 2015 at 02:45:24PM +0200, Patrik Jakobsson wrote: On Wed, Jun 10, 2015 at 01:35:35AM +0300, Dmitry V. Levin wrote: On Tue, Jun 09, 2015 at 01:26:43PM +0200, Patrik Jakobsson wrote: [...] +static int

Re: [Intel-gfx] [PATCH 3/4] drm: Add decoding of i915 ioctls

2015-06-14 Thread Patrik Jakobsson
On Sat, Jun 13, 2015 at 1:48 AM, Dmitry V. Levin l...@altlinux.org wrote: On Thu, Jun 11, 2015 at 03:34:14PM +0200, Patrik Jakobsson wrote: On Thu, Jun 11, 2015 at 02:27:12AM +0300, Dmitry V. Levin wrote: On Wed, Jun 10, 2015 at 02:45:24PM +0200, Patrik Jakobsson wrote: On Wed, Jun 10, 2015

Re: [Intel-gfx] [PATCH 2/4] drm: Add dispatcher and driver identification for DRM

2015-06-14 Thread Patrik Jakobsson
On Sat, Jun 13, 2015 at 1:41 AM, Dmitry V. Levin l...@altlinux.org wrote: On Thu, Jun 11, 2015 at 04:11:49PM +0200, Patrik Jakobsson wrote: On Thu, Jun 11, 2015 at 02:26:59AM +0300, Dmitry V. Levin wrote: On Wed, Jun 10, 2015 at 01:52:33PM +0200, Patrik Jakobsson wrote: On Wed, Jun 10, 2015

[Intel-gfx] [PATCH v2 4/5] drm: Add decoding of i915 ioctls

2015-06-18 Thread Patrik Jakobsson
SETPARAM parameters * xlat/drm_i915_ioctls.in: List i915 ioctls Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am| 1 + drm.c | 14 ++ drm_i915.c | 332 + xlat

[Intel-gfx] [PATCH v2 2/5] drm: Add private data field to trace control block

2015-06-18 Thread Patrik Jakobsson
of the ioctl. * defs.h: Add private data field in struct tcb Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- defs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/defs.h b/defs.h index c02f810..5b0670e 100644 --- a/defs.h +++ b/defs.h @@ -266,6 +266,13 @@ struct tcb

[Intel-gfx] [PATCH v2 1/5] drm: Add config for detecting libdrm

2015-06-18 Thread Patrik Jakobsson
Use pkg-config to try to find libdrm. If that fails use the standard include directory for kernel drm headers in /usr/include/drm. * configure.ac: Use pkg-config to find libdrm Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- configure.ac | 4 1 file changed, 4

[Intel-gfx] [PATCH v2 0/5] drm: Add decoding for DRM/KMS and i915 ioctls

2015-06-18 Thread Patrik Jakobsson
* Reworked entering() / exiting() handling for all ioctls * Use printstr() to print strings in properly quoted form Patrik Jakobsson (5): drm: Add config for detecting libdrm drm: Add private data field to trace control block drm: Add dispatcher and driver identification for DRM drm: Add decoding

[Intel-gfx] [PATCH v2 5/5] drm: Add decoding of DRM and KMS ioctls

2015-06-18 Thread Patrik Jakobsson
DRM_IOCTL_DIRTYFB * drm.c: Decode DRM_IOCTL_CREATE_DUMB * drm.c: Decode DRM_IOCTL_MAP_DUMB * drm.c: Decode DRM_IOCTL_DESTROY_DUMB * drm.c: Decode DRM_IOCTL_GEM_CLOSE Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drm.c | 510

[Intel-gfx] [PATCH v2 3/5] drm: Add dispatcher and driver identification for DRM

2015-06-18 Thread Patrik Jakobsson
* Makefile.am: Add compilation of drm.c * defs.h: Declarations of drm functions * drm.c: Utility functions for drm driver detection * io.c: Dispatch drm ioctls * ioctl.c: Distpatch generic and driver specific ioctls Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am

[Intel-gfx] [PATCH v3 4/5] drm: Add decoding of i915 ioctls

2015-07-01 Thread Patrik Jakobsson
SETPARAM parameters * xlat/drm_i915_ioctls.in: List i915 ioctls Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am| 1 + drm.c | 18 ++- drm_i915.c | 332 + xlat

[Intel-gfx] [PATCH v3 3/5] drm: Add dispatcher and driver identification for DRM

2015-07-01 Thread Patrik Jakobsson
* Makefile.am: Add compilation of drm.c * defs.h: Declarations of drm functions * drm.c: Utility functions for drm driver detection * io.c: Dispatch drm ioctls * ioctl.c: Distpatch generic and driver specific ioctls Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am

[Intel-gfx] [PATCH v3 2/5] drm: Add private data field to trace control block

2015-07-01 Thread Patrik Jakobsson
of the ioctl. * defs.h: Add private data field in struct tcb Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- defs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/defs.h b/defs.h index c02f810..5b0670e 100644 --- a/defs.h +++ b/defs.h @@ -266,6 +266,13 @@ struct tcb

[Intel-gfx] [PATCH v3 5/5] drm: Add decoding of DRM and KMS ioctls

2015-07-01 Thread Patrik Jakobsson
DRM_IOCTL_DIRTYFB * drm.c: Decode DRM_IOCTL_CREATE_DUMB * drm.c: Decode DRM_IOCTL_MAP_DUMB * drm.c: Decode DRM_IOCTL_DESTROY_DUMB * drm.c: Decode DRM_IOCTL_GEM_CLOSE Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drm.c | 544

[Intel-gfx] [PATCH v3 1/5] drm: Add config for detecting libdrm

2015-07-01 Thread Patrik Jakobsson
Use pkg-config to try to find libdrm. If that fails use the standard include directory for kernel drm headers in /usr/include/drm. * configure.ac: Use pkg-config to find libdrm Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- configure.ac | 4 1 file changed, 4

[Intel-gfx] [PATCH v3 0/5] drm: Add decoding for DRM/KMS and i915 ioctls

2015-07-01 Thread Patrik Jakobsson
before private data is freed in drm_ioctl() Patrik Jakobsson (5): drm: Add config for detecting libdrm drm: Add private data field to trace control block drm: Add dispatcher and driver identification for DRM drm: Add decoding of i915 ioctls drm: Add decoding of DRM and KMS ioctls

Re: [Intel-gfx] [PATCH v2 5/5] drm: Add decoding of DRM and KMS ioctls

2015-06-30 Thread Patrik Jakobsson
On Thu, Jun 18, 2015 at 10:42:45AM +0200, Patrik Jakobsson wrote: This patch adds many of the DRM and KMS ioctls. The rest can be added as needed. * drm.c: Decode DRM_IOCTL_VERSION * drm.c: Decode DRM_IOCTL_GET_UNIQUE * drm.c: Decode DRM_IOCTL_GET_MAGIC * drm.c: Decode

Re: [Intel-gfx] [PATCH v2 4/5] drm: Add decoding of i915 ioctls

2015-06-30 Thread Patrik Jakobsson
On Mon, Jun 29, 2015 at 07:46:50PM +0200, Gabriel Laskar wrote: On Thu, 18 Jun 2015 10:42:44 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: There are more ioctls to add but the ones in this patch are most commonly used. * Makefile.am: Add compilation of drm_i915.c

Re: [Intel-gfx] [PATCH v2 5/5] drm: Add decoding of DRM and KMS ioctls

2015-06-30 Thread Patrik Jakobsson
On Mon, Jun 29, 2015 at 07:35:00PM +0200, Gabriel Laskar wrote: On Thu, 18 Jun 2015 10:42:45 +0200 Patrik Jakobsson patrik.jakobs...@linux.intel.com wrote: This patch adds many of the DRM and KMS ioctls. The rest can be added as needed. * drm.c: Decode DRM_IOCTL_VERSION * drm.c

Re: [Intel-gfx] [PATCH v2 0/5] drm: Add decoding for DRM/KMS and i915 ioctls

2015-06-29 Thread Patrik Jakobsson
On Thu, Jun 18, 2015 at 10:42:40AM +0200, Patrik Jakobsson wrote: This set of patches adds a dispatcher for handling DRM ioctls. The kernel headers for DRM might not be available on all distributions so we depend on libdrm for those. If libdrm is not available we fall back on the kernel

Re: [Intel-gfx] [PATCH v3 4/5] drm: Add decoding of i915 ioctls

2015-07-06 Thread Patrik Jakobsson
On Fri, Jul 03, 2015 at 03:36:09AM +0300, Dmitry V. Levin wrote: On Wed, Jul 01, 2015 at 02:52:47PM +0200, Patrik Jakobsson wrote: [...] --- a/drm.c +++ b/drm.c @@ -35,6 +35,9 @@ #define DRM_MAX_NAME_LEN 128 +extern int drm_i915_decode_number(struct tcb *tcp, unsigned int arg

Re: [Intel-gfx] [PATCH v3 2/5] drm: Add private data field to trace control block

2015-07-06 Thread Patrik Jakobsson
On Fri, Jul 03, 2015 at 03:33:31AM +0300, Dmitry V. Levin wrote: On Wed, Jul 01, 2015 at 02:52:45PM +0200, Patrik Jakobsson wrote: [...] --- a/defs.h +++ b/defs.h @@ -266,6 +266,13 @@ struct tcb { int u_error;/* Error code */ long scno; /* System call

[Intel-gfx] [PATCH v4 4/5] drm: Add decoding of i915 ioctls

2015-08-24 Thread Patrik Jakobsson
file. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am| 1 + defs.h | 2 + drm.c | 15 +- drm_i915.c | 342 + xlat/drm_i915_getparams.in | 28

[Intel-gfx] [PATCH v4 1/5] drm: Add config for detecting libdrm

2015-08-24 Thread Patrik Jakobsson
Use pkg-config to try to find libdrm headers. If that fails look for the kernel headers. If no headers are found, drm support will not be compiled. * configure.ac: Use pkg-config to find libdrm Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- configure.ac | 5 + 1 file

[Intel-gfx] [PATCH v4 5/5] drm: Add decoding of DRM and KMS ioctls

2015-08-24 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drm.c | 543 ++ 1 file changed, 543 insertions(+) diff --git a/drm.c b/drm.c index e220309..06f2265 100644 --- a/drm.c +++ b/drm.c @@ -104,6 +104,471 @@ int

[Intel-gfx] [PATCH v4 3/5] drm: Add dispatcher and driver identification for DRM

2015-08-24 Thread Patrik Jakobsson
* Makefile.am: Add compilation of drm.c. * defs.h: Add extern declaration of drm_ioctl when drm headers are found. * drm.c: New file. * ioctl.c (ioctl_decode): Dispatch drm ioctls when drm headers are found. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- Makefile.am | 1

[Intel-gfx] [PATCH v4 0/5] drm: Add decoding for DRM/KMS and i915 ioctls

2015-08-24 Thread Patrik Jakobsson
* Various small fixes Patrik Jakobsson (5): drm: Add config for detecting libdrm drm: Add private data field to trace control block drm: Add dispatcher and driver identification for DRM drm: Add decoding of i915 ioctls drm: Add decoding of DRM and KMS ioctls Makefile.am| 2

[Intel-gfx] [PATCH v4 2/5] drm: Add private data field to trace control block

2015-08-24 Thread Patrik Jakobsson
declaration of free_tcb_priv_data. (struct tcb): Add priv_data and free_priv_data. * strace.c (free_tcb_priv_data): New function (drop_tcb): Execute free_tcb_priv_data callback * syscall.c (trace_syscall_exiting): Execute free_tcb_priv_data callback Signed-off-by: Patrik Jakobsson patrik.jakobs

[Intel-gfx] [PATCH] drm/i915: Fix intel_crtc typo in intel_pre_plane_update()

2015-06-29 Thread Patrik Jakobsson
Fixes broken build introduced by: commit 81636fdb79346e415e4726f2b6d439ccff9af1c6 Author: Rodrigo Vivi rodrigo.v...@intel.com Date: Fri Jun 26 13:55:54 2015 -0700 drm/i915: Fix IPS related flicker Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v3 1/5] drm: Add config for detecting libdrm

2015-07-30 Thread Patrik Jakobsson
On Thu, Jul 23, 2015 at 05:48:21AM -0400, Mike Frysinger wrote: On 01 Jul 2015 14:52, Patrik Jakobsson wrote: Use pkg-config to try to find libdrm. If that fails use the standard include directory for kernel drm headers in /usr/include/drm. * configure.ac: Use pkg-config to find libdrm

[Intel-gfx] [PATCH] drm/i915: Postpone plane readout until after encoder readout

2015-07-31 Thread Patrik Jakobsson
in skl_compute_linetime_wm() where pixel_rate becomes 0 when crtc_clock is 0. Signed-off-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c | 38 +--- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm

Re: [Intel-gfx] [PATCH v3 1/5] drm: Add config for detecting libdrm

2015-08-02 Thread Patrik Jakobsson
On Sat, Aug 1, 2015 at 8:22 PM, Dmitry V. Levin l...@altlinux.org wrote: On Fri, Jul 31, 2015 at 11:09:11AM +0200, Patrik Jakobsson wrote: On Thu, Jul 30, 2015 at 10:04:49AM -0400, Mike Frysinger wrote: On 30 Jul 2015 15:30, Patrik Jakobsson wrote: On Thu, Jul 23, 2015 at 05:48:21AM -0400

Re: [Intel-gfx] [PATCH] drm/i915: Postpone plane readout until after encoder readout

2015-08-04 Thread Patrik Jakobsson
On Mon, Aug 3, 2015 at 4:36 PM, Maarten Lankhorst maarten.lankho...@linux.intel.com wrote: Hey, Op 31-07-15 om 15:04 schreef Patrik Jakobsson: When reading out hw state for planes we disable inactive planes which in turn triggers an update of the watermarks. The update depends

Re: [Intel-gfx] [PATCH 0/4] Fix SKL runtime PM

2015-07-31 Thread Patrik Jakobsson
looks fine to me but I agree with Jani that you can squash enable/disable into one commit. Now lets hope the bugs uncovered by this series are trivial to fix. For the entire patchset: Reviewed-by: Patrik Jakobsson patrik.jakobs...@linux.intel.com Thanks, Paulo Damien Lespiau (3): drm

Re: [Intel-gfx] [PATCH i-g-t v2 1/2] lib/igt_fb : Add more overlay plane support for bxt

2015-07-22 Thread Patrik Jakobsson
On Wed, Jul 22, 2015 at 04:34:27AM +, Gharpure, Mayuresh S wrote: Hi Nabendu, PFA. I came across this patch from Damien Lespiau which prevents the topmost plane from being exposed to user space. Once this patch is merged, the following correction in i-g-t won't be required as it

[Intel-gfx] [PATCH] drm/i915: Always program CSR if CSR is uninitialized

2015-10-21 Thread Patrik Jakobsson
The current CSR loading code depends on the CSR program memory to be cleared after boot. This is unfortunately not true on all hardware. Instead make use of the FW_UNINITIALIZED state in init and check for FW_LOADED to prevent init path from skipping the actual programming. Signed-off-by: Patrik

[Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-23 Thread Patrik Jakobsson
initialization of state to after HAS_CSR() check Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> Tested-by: Rodrigo Vivi <rodrigo.v...@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.v...@intel.com> --- drivers/gpu/drm/i915/intel_csr.c | 4 +++- 1 file changed, 3 inserti

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-23 Thread Patrik Jakobsson
, Patrik Jakobsson wrote: > The current CSR loading code depends on the CSR program memory to be > cleared after boot. This is unfortunately not true on all hardware. > Instead make use of the FW_UNINITIALIZED state in init and check for > FW_LOADED to prevent init path from skipping the actual

Re: [Intel-gfx] [PATCH] drm/i915: Always program CSR if CSR is uninitialized

2015-10-22 Thread Patrik Jakobsson
On Thu, Oct 22, 2015 at 6:07 PM, Rodrigo Vivi <rodrigo.v...@gmail.com> wrote: > regarding your offline question: yes, I had your patch applied here, so > > Tested-by: Rodrigo Vivi <rodrigo.v...@intel.com> > > On Wed, Oct 21, 2015 at 7:57 AM, Patrik Jakobsson > <

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-26 Thread Patrik Jakobsson
On Sat, Oct 24, 2015 at 11:03:05AM +0530, Animesh Manna wrote: > > > On 10/23/2015 3:11 PM, Patrik Jakobsson wrote: > >The current CSR loading code depends on the CSR program memory to be > >cleared after boot. This is unfortunately not true on all hardware

Re: [Intel-gfx] [PATCH v2] drm/i915: Always program CSR if CSR is uninitialized

2015-10-28 Thread Patrik Jakobsson
On Tue, Oct 27, 2015 at 08:41:31PM +0200, Imre Deak wrote: > On pe, 2015-10-23 at 11:41 +0200, Patrik Jakobsson wrote: > > The current CSR loading code depends on the CSR program memory to be > > cleared after boot. This is unfortunately not true on all hardware. >

[Intel-gfx] [PATCH 01/12] drm/i915: Don't trust CSR program memory contents

2015-11-09 Thread Patrik Jakobsson
call-sites of intel_csr_load_program(). Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/intel_csr.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_csr.c b/drivers/gpu/drm/i915/intel_csr.c index

[Intel-gfx] [PATCH 04/12] drm/i915: Introduce a gmbus power domain

2015-11-09 Thread Patrik Jakobsson
oblems if we run out of bits for power domains. We're already really close to the limit... [Patrik: Add gmbus string to debugfs output] Signed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com> Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i

[Intel-gfx] [PATCH v2 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-09 Thread Patrik Jakobsson
for Skylake in a later patch. v2: Check both DC5 and DC6 bits in power well enabled function (Ville) Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_drv.c | 6 -- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/dr

[Intel-gfx] [PATCH 05/12] drm/i915: Remove DDI power domain exclusion SKL_DISPLAY_ALWAYS_ON_POWER_DOMAINS

2015-11-09 Thread Patrik Jakobsson
ed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com> Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/intel_runtime_pm.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/dr

[Intel-gfx] [PATCH 09/12] drm/i915: Explain usage of power well IDs vs bit groups

2015-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_reg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index e6d88f5..31b3a84 100644 --- a/drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH 07/12] drm/i915: Add a modeset power domain

2015-11-09 Thread Patrik Jakobsson
We need a power domain for disabling DC5/DC6 around modesets to prevent confusing the DMC. Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files changed, 3 insertions(+) diff

[Intel-gfx] [PATCH 06/12] drm/i915: Remove distinction between DDI 2 vs 4 lanes

2015-11-09 Thread Patrik Jakobsson
We never make use of the distinction between 2 vs 4 lanes so combine them into a per port domain instead. This saves us a few bits in the power domain mask. Change suggested by Ville. Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_deb

[Intel-gfx] [PATCH v2 00/12] Skylake DMC/DC-state fixes and redesign

2015-11-09 Thread Patrik Jakobsson
://lists.freedesktop.org/archives/intel-gfx/2015-October/078898.html Patrik Jakobsson (9): drm/i915: Don't trust CSR program memory contents drm/i915/gen9: Always set mask memory up when enabling DC5 or DC6 drm/i915: Remove distinction between DDI 2 vs 4 lanes drm/i915: Add a modeset power

[Intel-gfx] [PATCH 08/12] drm/i915: Do not warn on PG2 enabled in gen9_disable_dc5()

2015-11-09 Thread Patrik Jakobsson
PG2 enabled is not a requirement for disabling DC5. It's just one of the reasons why the DMC wouldn't enter DC5. During modeset we don't care about PG2 from a DC perspective, only the fact that DC5/DC6 is not allowed. Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> Re

[Intel-gfx] [PATCH 02/12] drm/i915/gen9: Always set mask memory up when enabling DC5 or DC6

2015-11-09 Thread Patrik Jakobsson
Move call to gen9_set_dc_state_debugmask_memory_up() into gen9_set_dc_state() to prevent us missing it somewhere. Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/intel_runtime_pm.c | 35 - 1 file changed, 17 inse

[Intel-gfx] [PATCH 03/12] drm/i915: Clean up AUX power domain handling

2015-11-09 Thread Patrik Jakobsson
oesn't change anything for CHV at least. But I think it's still a worthwile change. Signed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com> Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/intel_display.c | 40 ++ dr

[Intel-gfx] [PATCH 12/12] drm/i915/skl: Remove unused suspend and resume callbacks

2015-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_drv.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 0c7f435..77d183d 100644 --- a/drivers/gpu/dr

[Intel-gfx] [PATCH v2 11/12] drm/i915/gen9: Add boot parameter for disabling DC6

2015-11-09 Thread Patrik Jakobsson
v2: Use _unsafe (Jani) Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_params.c | 6 ++ drivers/gpu/drm/i915/intel_runtime_pm.c | 4 ++-- 3 files changed, 9 insertions(+), 2 del

Re: [Intel-gfx] [PATCH 03/12] drm/i915: Clean up AUX power domain handling

2015-11-12 Thread Patrik Jakobsson
On Wed, Nov 11, 2015 at 08:37:36PM +0200, Ville Syrjälä wrote: > On Wed, Nov 11, 2015 at 08:22:03PM +0200, Imre Deak wrote: > > On ma, 2015-11-09 at 16:48 +0100, Patrik Jakobsson wrote: > > > From: Ville Syrjälä <ville.syrj...@linux.intel.com>

Re: [Intel-gfx] [PATCH v2 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-12 Thread Patrik Jakobsson
On Wed, Nov 11, 2015 at 08:57:19PM +0200, Imre Deak wrote: > On ma, 2015-11-09 at 16:48 +0100, Patrik Jakobsson wrote: > > Handle DC off as a power well where enabling the power well will > > prevent > > the DMC to enter selected DC states (required around modesets and

Re: [Intel-gfx] [PATCH v2 10/12] drm/i915/gen9: Turn DC handling into a power well

2015-11-12 Thread Patrik Jakobsson
On Wed, Nov 11, 2015 at 09:23:32PM +0200, Imre Deak wrote: > On ma, 2015-11-09 at 16:48 +0100, Patrik Jakobsson wrote: > > Handle DC off as a power well where enabling the power well will > > prevent > > the DMC to enter selected DC states (required around modesets and

Re: [Intel-gfx] [PATCH v2 11/12] drm/i915/gen9: Add boot parameter for disabling DC6

2015-11-12 Thread Patrik Jakobsson
On Wed, Nov 11, 2015 at 09:04:09PM +0200, Imre Deak wrote: > On ma, 2015-11-09 at 16:48 +0100, Patrik Jakobsson wrote: > > v2: Use _unsafe (Jani) > > > > Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > > --- > > drivers/gpu/drm/i915/i9

Re: [Intel-gfx] [PATCH 09/12] drm/i915: Explain usage of power well IDs vs bit groups

2015-11-12 Thread Patrik Jakobsson
On Wed, Nov 11, 2015 at 09:13:27PM +0200, Imre Deak wrote: > On ma, 2015-11-09 at 16:48 +0100, Patrik Jakobsson wrote: > > Signed-off-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > > --- > > drivers/gpu/drm/i915/i915_reg.h | 2 ++ > > 1 file changed, 2

Re: [Intel-gfx] [PATCH 01/10] drm/i915: fix the power well ID for always on wells

2015-11-12 Thread Patrik Jakobsson
in ->data. With that said, I don't think it's worth fixing right here and now and since we add some comments about this in later patches I'm ok with this. Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > > Signed-off-by: Imre Deak <imre.d...@intel.com&

Re: [Intel-gfx] [PATCH 02/10] drm/i915: fix lookup_power_well for power wells without any domain

2015-11-12 Thread Patrik Jakobsson
ells, so fix things up accordingly. > Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > Signed-off-by: Imre Deak <imre.d...@intel.com> > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [Intel-gfx] [PATCH 03/10] drm/i915: Make turning on/off PW1 and Misc I/O part of the init/fini sequences

2015-11-12 Thread Patrik Jakobsson
ardcoded indexes. > > Testcase: igt/pm_rpm/rte (and every other rpm test) > Signed-off-by: Damien Lespiau <damien.lesp...@intel.com> > Reviewed-by: Paulo Zanoni <paulo.r.zan...@intel.com> > Signed-off-by: Paulo Zanoni <paulo.r.zan...@intel.com> Reviewed-by: Patrik Jak

Re: [Intel-gfx] [PATCH 06/10] drm/i915/skl: don't toggle PW1 and MISC power wells on-demand

2015-11-13 Thread Patrik Jakobsson
these fixes/changes in a BXT follow-up series later on. Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > > Signed-off-by: Imre Deak <imre.d...@intel.com> > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 36 > + >

Re: [Intel-gfx] [PATCH 07/10] drm/i915/gen9: simplify DC toggling code

2015-11-13 Thread Patrik Jakobsson
d if we try to enable DC5 or DC6 so we only have to care about it at one place in the code. Perhaps we could even move it to skl_display_core_init() if we do additional testing on when it needs to be reset. Either way, not a biggie so let's ignore it for now. Reviewed-by: Patrik Jakobsson <patrik.ja

Re: [Intel-gfx] [PATCH 08/10] drm/i915/skl: disable DC states before display core init/uninit

2015-11-13 Thread Patrik Jakobsson
since we get to the display core uninit step with all power > domains disabled already). > > Signed-off-by: Imre Deak <imre.d...@intel.com> Reviewed-by: Patrik Jakobsson <patrik.jakobs...@linux.intel.com> > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 4 >

  1   2   3   >