Re: [Intel-gfx] [PATCH v3] drm/i915: intel_hpd_init(): Fix suspend/resume reprobing

2016-01-07 Thread Daniel Vetter
&& > + intel_connector->encoder->hpd_pin > HPD_NONE) > connector->polled = DRM_CONNECTOR_POLL_HPD; > } > > -- > 2.5.0 > > ___ > Intel-gfx mailing list > intel-...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] drm/i915: Init power domains early in driver load

2016-01-07 Thread Daniel Vetter
vger.kernel.org References: http://www.spinics.net/lists/intel-gfx/msg83075.html Signed-off-by: Daniel Vetter --- Meelis, can you pls retest this one? Thanks, Daniel --- drivers/gpu/drm/i915/i915_dma.c | 6 +++--- drivers/gpu/drm/i915/intel_display.c | 2 ++ 2 files changed, 5 insertions(+), 3 del

[PATCH] drm/i915: Init power domains early in driver load

2016-01-07 Thread Daniel Vetter
/i915: Introduce a gmbus power domain") Cc: stable@vger.kernel.org References: http://www.spinics.net/lists/intel-gfx/msg83075.html Tested-by: Meelis Roos Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

Re: [PATCH] drm/i915: Init power domains early in driver load

2016-01-07 Thread Daniel Vetter
On Thu, Jan 7, 2016 at 1:52 PM, Ville Syrjälä wrote: > On Thu, Jan 07, 2016 at 12:44:21PM +0100, Daniel Vetter wrote: >> Since >> >> commit ac9b8236551d1177fd07b56aef9b565d1864420d >> Author: Ville Syrjälä >> Date: Fri Nov 27 18:55:26 2015 +0200 >> &

[PATCH] drm/i915: Init power domains early in driver load

2016-01-07 Thread Daniel Vetter
/intel-gfx/msg83075.html Tested-by: Meelis Roos Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 988a3806512a..490d8b0d931e 10

[PATCH] drm/i915: Init power domains early in driver load

2016-01-07 Thread Daniel Vetter
use them. Cc: Ville Syrjälä Cc: Patrik Jakobsson Cc: Imre Deak Cc: Jani Nikula Cc: Meelis Roos Fixes: ac9b8236551d ("drm/i915: Introduce a gmbus power domain") Cc: stable@vger.kernel.org References: http://www.spinics.net/lists/intel-gfx/msg83075.html Signed-off-by: Daniel Vetter --

Re: [Intel-gfx] [PATCH v2] drm/i915: intel_hpd_init(): Fix suspend/resume reprobing

2016-01-05 Thread Daniel Vetter
if (!connector->polled && I915_HAS_HOTPLUG(dev) && intel_connector->encoder->hpd_pin > HPD_NONE) connector->polled = DRM_CONNECTOR_POLL_HPD; } That yields even tidier code and gives us a place for a comment.

Re: [Intel-gfx] [PATCH] drm/i915: Workaround CHV pipe C cursor fail

2015-12-21 Thread Daniel Vetter
On Mon, Dec 21, 2015 at 02:49:18PM +0100, Daniel Vetter wrote: > On Fri, Dec 18, 2015 at 07:24:39PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Turns out CHV pipe C was glued on somewhat poorly, and there's something > > wron

Re: [Intel-gfx] [PATCH] drm/i915: Workaround CHV pipe C cursor fail

2015-12-21 Thread Daniel Vetter
-off-by: Ville Syrjälä Well can't really review with Bspec and I don't expect we can get confirmation from hw engineers. But does what it says in the commit message. Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c | 17 + > 1 file ch

Re: [PATCH] drm/i915: Hide one invalid cancellation bug in i915_switch_context()

2015-12-21 Thread Daniel Vetter
> Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: stable@vger.kernel.org > --- > drivers/gpu/drm/i915/i915_gem_context.c | 29 + > 1 file changed, 17 insertions(+), 12 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem_context.

Re: [PATCH 03/32] drm/i915: Only spin whilst waiting on the current request

2015-12-18 Thread Daniel Vetter
timing issue). > Here, we do not need the w/a to force ordering of the read with an > interrupt. > > Signed-off-by: Chris Wilson > Reviewed-by: Tvrtko Ursulin > Cc: "Rogozhkin, Dmitry V" > Cc: Daniel Vetter > Cc: Tvrtko Ursulin > Cc: Eero Tamminen >

Re: [Intel-gfx] [PATCH v5] drm/i915: Pin the ifbdev for the info->system_base GGTT mmapping

2015-12-17 Thread Daniel Vetter
> > > > > > v4: Try to simplify the pinning even further. > > > v5: Leak the VMA (cleaned up by object-free) to avoid complicated error > > > paths. > > > > > > Signed-off-by: Chris Wilson > > > Cc: "Goel, Akash" > > &g

Re: [PATCH v5] drm/i915: Pin the ifbdev for the info->system_base GGTT mmapping

2015-12-16 Thread Daniel Vetter
ion, the declaration of fb can then be > changed thus: > > - struct drm_framebuffer *fb = NULL; > + struct drm_framebuffer *fb; > > Kind regards, Yeah there's room for follow-up polish, but this seems good enough at least for -fixes. Reviewed-by: Daniel Vetter L

Re: [Intel-gfx] [PATCH] drm/i915: Unbreak check_digital_port_conflicts()

2015-12-10 Thread Daniel Vetter
atomic helpers. But that's way too much for -fixes. On the patch itself, for -fixes: Reviewed-by: Daniel Vetter > Cc: Ander Conselvan de Oliveira > Fixes: 5448a00d3f06 ("drm/i915: Don't use staged config in > check_digital_port_conflicts()") > Signed-off-by: Vi

Re: [Intel-gfx] [PATCH v2] drm/i915: Do a better job at disabling primary plane in the noatomic case.

2015-12-10 Thread Daniel Vetter
den to keep > plane_state->visible set, or a WARN_ON in intel_plane_atomic_calc_changes > triggers. There are other code points that rely on accurate > plane_state->visible > too, so make sure the bool is cleared. Oh dear is this a mess :( As a bugfix this is Reviewed-by: Daniel V

Re: [PATCH] drm/i915: Fix RPS pointer passed from wait_ioctl to i915_wait_request

2015-12-04 Thread Daniel Vetter
idn't spot one > > callsite in wait-ioctl was passing the wrong pointer. > > > > Signed-off-by: Chris Wilson > > Cc: Daniel Vetter > > Cc: stable@vger.kernel.org > > Fwiw, the impact of this bug is zero. Along the rps path, we always > first call list_e

Re: [PATCH 1/7] drm: Don't overwrite UNVERFIED mode status to OK

2015-12-04 Thread Daniel Vetter
that list). This way we will > correctly prune away any mode from the old mode list that didn't > appear on the probed_modes list. > > Cc: stable@vger.kernel.org > Cc: Adam Jackson > Fixes: 05acaec334fc ("drm: Reorganize probed mode validation") > Signed-off-by:

Re: [PATCH] drm/i915: Check the timeout passed to i915_wait_request

2015-11-26 Thread Daniel Vetter
gned-off-by: Chris Wilson > Cc: Lionel Landwerlin > Cc: Tvrtko Ursulin > Cc: Daniel Vetter > Cc: stable@vger.kernel.org Commit message should explain what the actual problem is - we add 1 jiffy of delay for each wait_request, potentially waiting quite a bit longer than what userspace as

Re: [Intel-gfx] [PATCH v4] drm/i915: Pin the ifbdev for the info->system_base GGTT mmapping

2015-11-24 Thread Daniel Vetter
DRM_ERROR("Failed to allocate fb_info\n"); >232ret = PTR_ERR(info); >233goto out_unpin; > > --- > 0-DAY kernel test infrastructureOpen Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] drm/i915: Mark uneven memory banks on gen4 desktop as unknown swizzling

2015-11-19 Thread Daniel Vetter
patches to prevent userspace ever seeing > unknown swizzling through the normal get-tiling-ioctl. Also use the same > path for the existing uneven bank detection for mobile gen4. > > Reported-by: Matti Hämäläinen > Tested--by: Matti Hämäläinen > References: https://bugs.freedeskt

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Mark uneven memory banks on gen4 desktop as unknown swizzling

2015-11-18 Thread Daniel Vetter
le_y = I915_BIT_6_SWIZZLE_9; > -- > 2.6.2 > > ___ > Intel-gfx mailing list > intel-...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.

Re: [Intel-gfx] [PATCH] drm/i915: Unpin framebuffers when crtc is deconfigured.

2015-11-17 Thread Daniel Vetter
ursor_needs_physical)) { > intel_unpin_fb_obj(old_state->fb, old_state); > + } > > /* prepare_fb aborted? */ > if ((old_obj && (old_obj->frontbuffer_bits & > intel_plane->frontbuffer_bit)) || > -- > 2.1.0 >

Re: [PATCH 1/4] drm: Fix primary plane size for stereo doubled modes for legacy setcrtc

2015-11-17 Thread Daniel Vetter
mary plane must be fullscreen, and on > the rest only the first eye would get a visible plane. > > Cc: Daniel Vetter > Cc: stable@vger.kernel.org > Fixes: 042652ed9599 ("drm/atomic-helper: implementatations for legacy > interfaces") > Signed-off-by: Ville Syrj

Re: [PATCH 2/5] drm/core: Fix old_fb handling in drm_mode_atomic_ioctl.

2015-11-17 Thread Daniel Vetter
ch, but a bit a terse commit message. We should add "Without this fix the plane->fb refcounting might get out of sync on retries, resulting in either leaked memory or use-after-free." With that: Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/drm_atomic.c | 3 ++- >

Re: [PATCH 1/2] drm/i915: Don't clobber the addfb2 ioctl params

2015-11-17 Thread Daniel Vetter
addfb2, the ioctl will be rejected since it's now asking for > some modifiers w/o the flag set. > > Fix the problem by making a copy of the user provided structure. We can > play any games we want with the copy. > > Cc: stable@vger.kernel.org > Cc: Daniel Vetter >

Re: [Intel-gfx] [PATCH] drm/i915: Deny wrapping an userptr into a framebuffer

2015-10-23 Thread Daniel Vetter
> Can we allow this for unsynchronized userptrs? I'd like to not add more complexity to a root-only feature. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a m

Re: [Intel-gfx] [PATCH 10/11] drm/i915/skl: Update watermarks before the crtc is disabled.

2015-10-22 Thread Daniel Vetter
s(crtc); Does this ever do anything at all? We just killed the crtc completely above, those watermark writes will get cleansed as soon as the power well goes down. -Daniel > } > } > > -- > 2.1.0 > > ___ > Inte

Re: [Intel-gfx] [PATCH 09/11] drm/i915/skl: Prevent unclaimed register writes on skylake.

2015-10-22 Thread Daniel Vetter
power well is off. > > Signed-off-by: Maarten Lankhorst > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92181 > Cc: stable@vger.kernel.org Reviewed-by: Daniel Vetter Jani, one for you. -Daniel > --- > drivers/gpu/drm/i915/intel_pm.c | 5 + > 1 file changed, 5 i

Re: [Intel-gfx] [PATCH 4.1, 4.2] drm/i915: Silence DDR DVFS errors on CHV

2015-10-19 Thread Daniel Vetter
esg about a feature which isn't even implemented and took about 20+ patches to get right in Linus tree. Option B is to waste reporters time if we leave that DRM_ERROR in there with filing bugs that we'll close right away. There's no way we can backport DVFS support without breaking the w

Re: [Intel-gfx] [PATCH] drm/i915: Deny wrapping an userptr into a framebuffer

2015-10-13 Thread Daniel Vetter
t;tries to unmap its address space. The situation can be even more > >complicated when the buffer is passed between processes, between a > >client and display server, where the lifetime and hardware access is > >even more confusing. Deny it. > > Reviewed-by: Tvrtko Urs

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Restore lost DPLL register write on gen2-4

2015-10-13 Thread Daniel Vetter
On Tue, Oct 13, 2015 at 04:10:19PM +0300, Jani Nikula wrote: > On Thu, 08 Oct 2015, Ville Syrjälä wrote: > > On Thu, Oct 08, 2015 at 10:17:30AM +0200, Daniel Vetter wrote: > >> On Wed, Oct 07, 2015 at 10:08:24PM +0300, ville.syrj...@linux.intel.com > >> wrote:

Re: [Intel-gfx] [PATCH] drm/i915: Flush pipecontrol post-sync writes

2015-10-13 Thread Daniel Vetter
On Tue, Oct 13, 2015 at 03:45:58PM +0300, Jani Nikula wrote: > On Wed, 26 Aug 2015, Chris Wilson wrote: > > On Wed, Aug 26, 2015 at 11:16:34AM +0200, Daniel Vetter wrote: > >> On Fri, Aug 21, 2015 at 04:08:41PM +0100, Chris Wilson wrote: > >> > In order to f

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Restore lost DPLL register write on gen2-4

2015-10-08 Thread Daniel Vetter
> ___ > Intel-gfx mailing list > intel-...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line &q

Re: [PATCH] drm/i915: Resurrect golden context on gen6/7

2015-10-07 Thread Daniel Vetter
On Thu, Oct 01, 2015 at 07:13:11PM +0300, Francisco Jerez wrote: > Daniel Vetter writes: > > > In > > > > commit 8f0e2b9d95a88ca5d8349deef2375644faf184ae > > Author: Daniel Vetter > > Date: Tue Dec 2 16:19:07 2014 +0100 > > > > drm/i9

[PATCH] drm/i915: Resurrect golden context on gen6/7

2015-10-01 Thread Daniel Vetter
In commit 8f0e2b9d95a88ca5d8349deef2375644faf184ae Author: Daniel Vetter Date: Tue Dec 2 16:19:07 2014 +0100 drm/i915: Move golden context init into ->init_context I've shuffled around per-ctx init code a bit for legacy contexts but accidentally dropped the render state init call

[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Daniel Vetter
o just grab the mode_config.connection_mutex, but we can do a bit better. v2: Remove unused variables I failed to git add for real. Reported-by: Jens Axboe Cc: Jens Axboe Cc: Rob Clark Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_sysfs.c | 12 +++- 1 file changed, 3 i

[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Daniel Vetter
o just grab the mode_config.connection_mutex, but we can do a bit better. Reported-by: Jens Axboe Cc: Jens Axboe Cc: Rob Clark Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_sysfs.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_sy

Re: [PATCH v2] drm/i915: Limit the number of loops for reading a split 64bit register

2015-09-08 Thread Daniel Vetter
> > v2: Use the most recent values when erring out on an unstable register. > > Reported-by: russianneuroman...@ya.ru > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91906 > Signed-off-by: Chris Wilson > Cc: Michał Winiarski > Cc: Daniel Vetter > Cc: Jani Nikula

Re: [PATCH] drm/i915: Limit the number of loops for reading a split 64bit register

2015-09-08 Thread Daniel Vetter
are not stable. > > Just give up after a couple of tries and report whatever we read last. > > > > Reported-by: russianneuroman...@ya.ru > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91906 > > Signed-off-by: Chris Wilson > > Cc: Michał Winiarski

Re: [PATCH] drm/i915: Always mark the object as dirty when used by the GPU

2015-09-02 Thread Daniel Vetter
tions under which userspace may wish to tell white lies to the > kernel... > > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: Kristian Høgsberg > Cc: Jesse Barnes > Cc: "Goel, Akash" > Cc: Michał Winiarski > Cc: stable@vger.kernel.org Reviewed-by

Re: [PATCH] drm/i915: Set the map-and-fenceable flag for preallocated objects

2015-08-26 Thread Daniel Vetter
On Wed, Aug 26, 2015 at 03:06:59PM +0200, Daniel Vetter wrote: > On Wed, Aug 26, 2015 at 12:55:57PM +0100, Chris Wilson wrote: > > As we mark the preallocated objects as bound, we should also flag them > > correctly as being map-and-fenceable (if appropriate!) so that latter >

Re: [PATCH] drm/i915: Set the map-and-fenceable flag for preallocated objects

2015-08-26 Thread Daniel Vetter
et a map-and-fenceable binding. > > Signed-off-by: Chris Wilson > Cc: "Goel, Akash" > Cc: Daniel Vetter > Cc: Jesse Barnes > Cc: stable@vger.kernel.org Reviewed-by: Daniel Vetter Jani, can you please pick up both? And some bugzilla references for either would be gre

Re: [Intel-gfx] [PATCH] drm/i915: Flush pipecontrol post-sync writes

2015-08-26 Thread Daniel Vetter
flags |= PIPE_CONTROL_FLUSH_ENABLE; > } > if (invalidate_domains) { > flags |= PIPE_CONTROL_TLB_INVALIDATE; > -- > 2.5.0 > > _______ > Intel-gfx mailing list > intel-...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel

Re: [Intel-gfx] [PATCH] drm/i915: Check DP link status on long hpd too

2015-08-26 Thread Daniel Vetter
t; Date: Fri May 2 14:02:48 2014 +1000 > > > > drm/i915: add DP 1.2 MST support (v0.7) > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89453 > > Tested-by: Palmer Dabbelt Reviewed-by: Daniel Vetter > > > Bugzilla: https://bugs.freedesktop.

Re: [Intel-gfx] [PATCH] drm/dp/mst: Remove port after removing connector.

2015-08-15 Thread Daniel Vetter
ther way round: First we synchronously kfree the port, then we call the driver's connector cleanup function asynchronously. And that is very unhappy that the port is now gone. So perfectly ok regression fix imo to restore the ordering we had before your patch in the cleanup code. -Daniel -- Dani

Re: [Intel-gfx] [PATCH] drm/i915: Flag the execlists context object as dirty after every use

2015-08-14 Thread Daniel Vetter
s this already. Reviewed-by: Daniel Vetter -Daniel > --- > drivers/gpu/drm/i915/intel_lrc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_lrc.c > b/drivers/gpu/drm/i915/intel_lrc.c > index 138964afd187..41cfa6fa909d 100644 > --- a/d

Re: [Intel-gfx] [PATCH] drm/dp/mst: Remove port after removing connector.

2015-08-11 Thread Daniel Vetter
> This fixes a regression introduced with > 6b8eeca65b18ae77e175cc2b6571731f0ee413bf > "drm/dp/mst: close deadlock in connector destruction." > > Cc: stable@vger.kernel.org > Cc: Dave Airlie > Signed-off-by: Maarten Lankhorst Reviewed-by: Daniel Vetter Jani, can you

[PATCH 3/4] drm/dp-mst: Remove debug WARN_ON

2015-08-03 Thread Daniel Vetter
Apparently been in there since forever and fairly easy to hit when hotplugging really fast. I can do that since my mst hub has a manual button to flick the hpd line for reprobing. The resulting WARNING spam isn't pretty. Cc: Dave Airlie Cc: stable@vger.kernel.org Signed-off-by: Daniel V

Re: [PATCH] drm/i915: Declare the swizzling unknown for L-shaped configurations

2015-07-30 Thread Daniel Vetter
manually detile > > into memory as the swizzling for an individual page is unknown (it > > depends on its physical address only known to the kernel), userspace > > cannot correctly swizzle. > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91105 &

Re: [Intel-gfx] [PATCH v3] drm/i915: Use two 32bit reads for select 64bit REG_READ ioctls

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 10:45:45AM +0100, Chris Wilson wrote: > On Tue, Jul 21, 2015 at 08:49:31AM +0200, Daniel Vetter wrote: > > On Fri, Jul 17, 2015 at 05:10:25PM +0200, Michał Winiarski wrote: > > > On Thu, Jul 16, 2015 at 12:37:56PM +0100, Chris Wilson wrote: > >

Re: [Intel-gfx] [PATCH v3] drm/i915: Use two 32bit reads for select 64bit REG_READ ioctls

2015-07-20 Thread Daniel Vetter
@ -1087,6 +1087,14 @@ struct drm_i915_reg_read { > > __u64 offset; > > __u64 val; /* Return value */ > > }; > > +/* Known registers: > > + * > > + * Render engine timestamp - 0x2358 + 64bit - gen7+ > > + * - Note this register returns an invalid value if using the default > > + * single instruction 8byte read, in order to workaround that use > > + * offset (0x2538 | 1) instead. > > + * > > + */ > > > > struct drm_i915_reset_stats { > > __u32 ctx_id; > > -- > > 2.1.4 > > > ___ > Intel-gfx mailing list > intel-...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/2] drm: Stop resetting connector state to unknown

2015-07-16 Thread Daniel Vetter
http://article.gmane.org/gmane.comp.freedesktop.xorg.drivers.intel/62584 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=100641 Cc: Rui Matos Cc: Julien Wajsberg Cc: kuddel.m...@gmx.de Cc: Lennart Poettering Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc.c | 5 + 1 file changed, 1

[PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"

2015-07-14 Thread Daniel Vetter
this we need to extend the ioctl with new paramters that only new userspace looks at. Cc: Harald Arnesen Cc: Chris Wilson Reported-by: Harald Arnesen Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem_tiling.c | 12 +--- 1 file changed, 1 inse

Re: [Intel-gfx] [PATCH 2/2] drm: Provide compat ioctl for addfb2.1

2015-07-14 Thread Daniel Vetter
and makes the ioctl need explicit > compat handling. > > v2: Removed the typedef. (Daniel Vetter) > > Signed-off-by: Tvrtko Ursulin > Reviewed-by: Daniel Vetter > Cc: dri-de...@lists.freedesktop.org > Cc: Rob Clark > Cc: Daniel Stone > Cc: Daniel Vetter > Cc: s

Re: [PATCH v2] drm/i915: Declare the swizzling unknown for L-shaped configurations

2015-07-09 Thread Daniel Vetter
on its physical address only known to the kernel), userspace > cannot correctly swizzle objects. > > v2: Mark the global swizzling as unknown rather than adjust the value > reported to userspace. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91105 > Signed-of

Re: [PATCH] drm/rockchip: use drm_gem_mmap helpers

2015-07-07 Thread Daniel Vetter
he mapping. > > Signed-off-by: Daniel Kurtz > Reviewed-by: Daniel Vetter > Cc: stable@vger.kernel.org Applied to topic/drm-fixes to make sure it won't get lost, but I expect rockchip maintainers to pick this one up. -Daniel > > --- > drivers/gpu/drm/rockchip/rockchip_d

[PATCH RESEND] drm/kms-helper: disable hpd_irq handling when poll=0

2015-07-07 Thread Daniel Vetter
When inlining the actual hpd output probing in commit 69787f7da6b2adc4054357a661aaa1701a9ca76f Author: Daniel Vetter Date: Tue Oct 23 18:23:34 2012 + drm: run the hpd irq event code directly the check for the drm_kms_hlper.poll module option was lost. This regressed systems where

Re: [PATCH] agp/intel: Fix typo in needs_ilk_vtd_wa()

2015-06-29 Thread Daniel Vetter
s.freedesktop.org/show_bug.cgi?id=91127 > References: https://bugzilla.freedesktop.org/show_bug.cgi?id=60391 > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: stable@vger.kernel.org Oops, can't count how often we've committed this mistake. Reviewed-by: Daniel Vetter >

Re: [PATCH] drm/i915: Declare the swizzling unknown for L-shaped configurations

2015-06-29 Thread Daniel Vetter
on its physical address only known to the kernel), userspace > cannot correctly swizzle. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91105 > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: stable@vger.kernel.org Reviewed-by: Daniel Vetter > ---

[PATCH] drm/vgem: Set unique to "vgem"

2015-06-23 Thread Daniel Vetter
Since there's only one global instance ever we don't need to have anything fancy. Stops a WARNING in the get_unique ioctl that the unique name isn't set. Cc: # 4.1+ only Reportedy-and-tested-by: Fabio Coatti Cc: Fabio Coatti Signed-off-by: Daniel Vetter --- drivers/gpu/drm/

Re: [Intel-gfx] [PATCH] drm/i915: Officially give up on seqno coherency

2015-06-23 Thread Daniel Vetter
On Tue, Jun 23, 2015 at 01:05:41PM +0300, Jani Nikula wrote: > On Fri, 19 Jun 2015, Daniel Vetter wrote: > > We've never figured out the magic trick to make irq vs. seqno > > updates coherent, only tricks to make it work. And since > > > > commit 094f9a54

Re: [PATCH] drm/i915: Avoid GPU hang when coming out of s3 or s4

2015-06-23 Thread Daniel Vetter
On Tue, Jun 23, 2015 at 9:12 AM, Jani Nikula wrote: >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89600 >> Cc: stable@vger.kernel.org # 4.0+ >> Signed-off-by: Peter Antoine >> Reviewed-by: Daniel Vetter >> [Jani: fixed typo in subject, massaged the co

[PATCH] drm/i915: Officially give up on seqno coherency

2015-06-19 Thread Daniel Vetter
it might be of value for bug reports (Chris). Cc: Mark Janes Cc: Chris Wilson Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/

[PATCH] drm/i915: Officially give up on seqno coherency

2015-06-19 Thread Daniel Vetter
nes Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index e6bb72dca3ff..9350f2e5cd04 100644 --- a/drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH v2] drm/i915: Fix DDC probe for passive adapters

2015-05-28 Thread Daniel Vetter
struct intel_gmbus, adapter); struct drm_i915_private *dev_priv = bus->dev_priv; - int i, reg_offset; + int i = 0, reg_offset; int ret = 0; intel_aux_display_runtime_get(dev_priv); @@ -499,9 +499,10 @@ gmbus_xfer(struct i2c_adapter *adapter, reg_offset = dev_priv->gpio_mmio_base; +retry: I915_WRITE(GMBUS0 + reg_offset, bus->reg0); - for (i = 0; i < num; i++) { + for (i; i < num; i++) { if (gmbus_is_index_read(msgs, i, num)) { ret = gmbus_xfer_index_read(dev_priv, &msgs[i]); i += 1; /* set i to the index of the read xfer */ @@ -576,6 +577,9 @@ clear_err: adapter->name, msgs[i].addr, (msgs[i].flags & I2C_M_RD) ? 'r' : 'w', msgs[i].len); + if (bla) + goto retry; + goto out; timeout: --- Totally untested ofc ;-) Cheers, Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Intel-gfx] [PATCH v2] drm/i915: Force wmb() on using GTT io_mapping_map_wc

2015-05-26 Thread Daniel Vetter
On Tue, May 26, 2015 at 09:49:15AM +0100, Chris Wilson wrote: > On Tue, May 26, 2015 at 10:01:24AM +0200, Daniel Vetter wrote: > > On Mon, May 25, 2015 at 06:48:44PM +0100, Chris Wilson wrote: > > > Since the advent of mmap(wc), where we reused the same cache domain for > >

Re: [Intel-gfx] [PATCH] drm/i915: Unconditionally flush writes before execbuffer

2015-05-26 Thread Daniel Vetter
On Thu, May 21, 2015 at 5:30 PM, Daniel Vetter wrote: > On Thu, May 21, 2015 at 04:22:55PM +0100, Chris Wilson wrote: >> On Thu, May 21, 2015 at 04:21:46PM +0200, Daniel Vetter wrote: >> > Hm right. What about emphasising this a bit more in the comment: >> > >&g

Re: [Intel-gfx] [PATCH v2] drm/i915: Force wmb() on using GTT io_mapping_map_wc

2015-05-26 Thread Daniel Vetter
on the other path. > + */ > + if (write) > + mb(); > + else > + wmb(); > return 0; > } > > -- > 2.1.4 > > ___ > Intel-gfx mailing list > intel-...@lists.freedesktop.

Re: [Intel-gfx] [PATCH] drm/i915: Unconditionally flush writes before execbuffer

2015-05-21 Thread Daniel Vetter
On Thu, May 21, 2015 at 04:22:55PM +0100, Chris Wilson wrote: > On Thu, May 21, 2015 at 04:21:46PM +0200, Daniel Vetter wrote: > > Hm right. What about emphasising this a bit more in the comment: > > > > /* > > * Empirical evidence indicates that

Re: [Intel-gfx] [PATCH] drm/i915: Unconditionally flush writes before execbuffer

2015-05-21 Thread Daniel Vetter
On Thu, May 21, 2015 at 02:13:01PM +0100, Chris Wilson wrote: > On Thu, May 21, 2015 at 03:07:54PM +0200, Daniel Vetter wrote: > > On Thu, May 21, 2015 at 02:00:34PM +0100, Chris Wilson wrote: > > > On Tue, May 19, 2015 at 03:41:48PM +0100, Chris Wilson wrote: > > > >

Re: [Intel-gfx] [PATCH] drm/i915: Unconditionally flush writes before execbuffer

2015-05-21 Thread Daniel Vetter
On Thu, May 21, 2015 at 02:00:34PM +0100, Chris Wilson wrote: > On Tue, May 19, 2015 at 03:41:48PM +0100, Chris Wilson wrote: > > On Mon, May 11, 2015 at 04:25:52PM +0100, Chris Wilson wrote: > > > On Mon, May 11, 2015 at 12:34:37PM +0200, Daniel Vetter wrote: > > > >

[PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers

2015-05-20 Thread Daniel Vetter
In commit f02ad907cd9e7fe3a6405d2d005840912f1ed258 Author: Daniel Vetter Date: Thu Jan 22 16:36:23 2015 +0100 drm/atomic-helpers: Recover full cursor plane behaviour we've added a hack to atomic helpers to never to vblank waits for cursor updates through the legacy apis since that&#

[PATCH 1/2] drm/i915: Fix locking in DRRS flush/invalidate hooks

2015-04-09 Thread Daniel Vetter
yrjälä Cc: Ramalingam C Cc: Rodrigo Vivi Cc: Vandana Kannan Cc: stable@vger.kernel.org (4.0+ only) Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_dp.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gp

Re: [Intel-gfx] [PATCH] drm/edid: set ELD for firmware and debugfs override EDIDs

2015-03-26 Thread Daniel Vetter
> Reported-by: Rob Engle > Tested-by: Jolan Luff > Cc: stable@vger.kernel.org > Signed-off-by: Jani Nikula Since it's harmless I wonder whether we shouldn't just do this in drm_add_edid_modes unconditionally. But this looks like the right minimal patch for -fixes, so Reviewe

Re: [PATCH] drm/i915: Make WAIT_IOCTL negative timeouts be indefinite again

2015-03-06 Thread Daniel Vetter
On Fri, Mar 06, 2015 at 08:54:35AM +, Chris Wilson wrote: > On Thu, Mar 05, 2015 at 01:27:43PM +0100, Daniel Vetter wrote: > > On Wed, Mar 04, 2015 at 06:09:26PM +, Chris Wilson wrote: > > > This fixes a regression from > > > > > > commit 5ed0

Re: [PATCH] drm/i915: Make WAIT_IOCTL negative timeouts be indefinite again

2015-03-05 Thread Daniel Vetter
hat made a negative timeout return immediately rather than the > previously defined behaviour of waiting indefinitely. > > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: Ben Widawsky > Cc: Kristian Høgsberg > Cc: stable@vger.kernel.org Do you have the igt for this too?

Re: [Intel-gfx] [PATCH] drm/i915: Check for driver readyness before handling an underrun interrupt

2015-02-27 Thread Daniel Vetter
ipe)) > > >> +!to_intel_crtc(crtc)->cpu_fifo_underrun_disabled) > > Should be without the '!': > if (HAS_GMCH_DISPLAY(dev_priv->dev) && > to_intel_crtc(crtc)->cpu_fifo_underrun_disabled) Somewhere on my todo is to invert the sense of

[PATCH] drm: Fixup racy refcounting in plane_force_disable

2015-02-27 Thread Daniel Vetter
Originally it was impossible to be dropping the last refcount in this function since there was always one around still from the idr. But in commit 83f45fc360c8e16a330474860ebda872d1384c8c Author: Daniel Vetter Date: Wed Aug 6 09:10:18 2014 +0200 drm: Don't grab an fb reference for th

Re: [PATCH] drm: Don't assign fbs for universal cursor support to files

2015-02-27 Thread Daniel Vetter
ernal() into the addfb ioctl implementation, which is > > the only place it is needed. And also rename the function for a more > > accurate since it only creates the fb, but doesn't add it anywhere. > > > > Signed-off-by: Daniel Vetter (fix & commit msg) > > Sign

Re: [Intel-gfx] [PATCH] drm/i915: fix failure to power off after hibernate

2015-02-26 Thread Daniel Vetter
> +{ > + struct drm_device *drm_dev = dev_to_i915(dev)->dev; > + > + if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF) > + return 0; > + > + return i915_drm_suspend_late(drm_dev, true); > } > > static int i915_pm_resume_early(struct

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Disallow pin ioctl completely for kms drivers

2015-02-23 Thread Daniel Vetter
On Mon, Feb 23, 2015 at 01:29:57PM -0800, Jesse Barnes wrote: > On 11/24/2014 06:13 AM, Chris Wilson wrote: > > On Mon, Nov 24, 2014 at 03:10:05PM +0100, Daniel Vetter wrote: > >> On Mon, Nov 24, 2014 at 10:35:29AM +, Chris Wilson wrote: > >>> Pinning is a us

Re: [Intel-gfx] [PATCH] drm/i915: Do not invalidate obj->pages under mempressure

2015-02-11 Thread Daniel Vetter
similar. Otherwise when we extended them in upstream (which we're just doing, the kernel 0-fills the new fields automatically) it'll break because after a recompile there's now garbage in the new fields. I just spent a while fixing up libdrm ;-) -Daniel -- Daniel Vetter Software Engin

[PATCH] drm/i915: Align initial plane backing objects correctly

2015-02-10 Thread Daniel Vetter
l.org Cc: Johannes W Cc: Chris Wilson Cc: Jani Nikula Reported-by: Johannes W Signed-off-by: Daniel Vetter -- Johannes, can you please test this patch instead of the one from Chris? Thanks, Daniel --- drivers/gpu/drm/i915/i915_gem_stolen.c | 5 + drivers/gpu/drm/i915/intel_display.c

[PATCH] drm/i915: Align initial plane backing objects correctly

2015-02-10 Thread Daniel Vetter
Nikula Reported-by: Johannes W Signed-off-by: Daniel Vetter -- Johannes, can you please test this patch instead of the one from Chris? Thanks, Daniel --- drivers/gpu/drm/i915/i915_gem_stolen.c | 5 + drivers/gpu/drm/i915/intel_display.c | 18 -- 2 files changed, 13

[PATCH] drm/i915: Do not invalidate obj->pages under mempressure

2015-02-09 Thread Daniel Vetter
patch also fully reverts this fixup. Apparently this is just too tricky. Reported-by: Sean V Kelley Signed-off-by: Chris Wilson Cc: Sean V Kelley Cc: stable@vger.kernel.org Cc: Chris Wilson Cc: Jani Nikula Signed-off-by: Daniel Vetter (v2) --- drivers/gpu/drm/i915/i915_gem.c

Re: [Intel-gfx] [PATCH] drm/i915: Insert a command barrier on BLT/BSD cache flushes

2015-01-22 Thread Daniel Vetter
is in gen8_emit_flush and gen6_bsd_ring_flush I think. And interesting that the subsequent seqno write can apparently be reordered with cache flushing. Or do we just need lots more of those (wasn't the magic number once 32 or so)? Anyway can't argue with hw, so Acked (with the other 2 functions upd

Re: [Intel-gfx] [PATCH] drm/i915: Quietly reject attempts to create non-pagealigned stolen objects

2015-01-21 Thread Daniel Vetter
On Wed, Jan 21, 2015 at 07:45:01PM +0200, Jani Nikula wrote: > On Wed, 10 Dec 2014, Daniel Vetter wrote: > > On Wed, Dec 10, 2014 at 08:17:11AM +, Chris Wilson wrote: > >> This added as a BUG_ON as it considered that no one would ever request > >> an unaligned ob

Re: [PATCH v2] drm/i915: Initialize primary plane src/dst coords when reading hw state

2015-01-20 Thread Daniel Vetter
On Tue, Jan 20, 2015 at 11:46:57AM +0200, Ville Syrjälä wrote: > On Tue, Jan 20, 2015 at 11:33:22AM +0200, Ander Conselvan de Oliveira wrote: > > On 01/20/2015 11:22 AM, Daniel Vetter wrote: > > > On Mon, Jan 19, 2015 at 03:51:47PM +0200, Ander Conselvan de Oli

Re: [PATCH v2] drm/i915: Initialize primary plane src/dst coords when reading hw state

2015-01-20 Thread Daniel Vetter
primary_update_size(crtc); I think Ville raised a really good point about the fragility of this and restoring plane state correctly. I think conceptually it makes more sense to restore the primary plane state together with the fb in the loop at the end of intel_modeset_init. Would th

Re: [Intel-gfx] [PATCH] drm/i915: Do not invalidate obj->pages under mempressure

2015-01-16 Thread Daniel Vetter
On Thu, Jan 15, 2015 at 08:44:00PM +, Chris Wilson wrote: > On Thu, Jan 15, 2015 at 08:36:15PM +0100, Daniel Vetter wrote: > > On Wed, Jan 14, 2015 at 9:34 PM, Chris Wilson > > wrote: > > > This (partially) reverts > > > > > > commit 5537252b6b6

Re: [Intel-gfx] [PATCH] drm/i915: Do not invalidate obj->pages under mempressure

2015-01-15 Thread Daniel Vetter
we also revert the hunk in i915_gem_free_objects? Without the truncate vs. invalidate disdinction it seems to have lost it's reason for existence ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch -- To unsubscribe from this list: send t

Re: [Intel-gfx] [PATCH] drm/i915: Do not invalidate obj->pages under mempressure

2015-01-14 Thread Daniel Vetter
object_put_pages(struct drm_i915_gem_object > *obj) > ops->put_pages(obj); > obj->pages = NULL; > > - i915_gem_object_invalidate(obj); > + if (i915_gem_object_is_purgeable(obj)) > + i915_gem_object_truncate(obj); > > return 0; > } > -- > 2.1.4 > >

Re: [Intel-gfx] [PATCH] drm/i915: Initialize primary plane src/dst coords when reading hw state

2015-01-13 Thread Daniel Vetter
On Tue, Jan 13, 2015 at 01:24:12PM +0200, Ville Syrjälä wrote: > On Tue, Jan 13, 2015 at 12:34:06AM +0100, Daniel Vetter wrote: > > On Mon, Jan 12, 2015 at 05:36:52PM +0200, Ander Conselvan de Oliveira wrote: > > > Otherwise setting the rotation property will cause the primary

Re: [Intel-gfx] [PATCH] drm/i915: Initialize primary plane src/dst coords when reading hw state

2015-01-12 Thread Daniel Vetter
ug.cgi?id=87662 > Signed-off-by: Ander Conselvan de Oliveira > Reviewed-by: Daniel Vetter I guess long term we need to consolidate all our plane state related readout functions, atm it's splattered all over. But that's maybe something for after all the atomic work has stablized a

Re: [PATCH 3.16.y-ckt 030/168] drm/i915: Handle failure to kick out a conflicting fb driver

2015-01-12 Thread Daniel Vetter
On Mon, Jan 12, 2015 at 6:43 PM, Luis Henriques wrote: > On Mon, Jan 12, 2015 at 06:20:22PM +0100, Daniel Vetter wrote: >> On Sun, Jan 11, 2015 at 10:49 PM, Ben Hutchings wrote: >> > On Mon, 2014-12-15 at 14:24 +, Luis Henriques wrote: >> >> 3.16.7-ckt3 -stabl

Re: [PATCH 3.16.y-ckt 030/168] drm/i915: Handle failure to kick out a conflicting fb driver

2015-01-12 Thread Daniel Vetter
t;> From: Chris Wilson >> >> commit f96de58fc7e7d3d717c7c63975c3b896c906b5e3 upstream. >> >> Signed-off-by: Chris Wilson >> Reviewed-by: Jani Nikula >> Signed-off-by: Daniel Vetter >> Signed-off-by: Luis Henriques > > Should this also be applied to any older stable

Re: [Intel-gfx] [PATCH] drm/i915: Fix mutex->owner inspection race under DEBUG_MUTEXES

2015-01-05 Thread Daniel Vetter
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87955 > Signed-off-by: Chris Wilson > Cc: stable@vger.kernel.org Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_gem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gp

Re: [Intel-gfx] [PATCH] drm/i915/hsw: Implement Selective Write workaround

2015-01-05 Thread Daniel Vetter
at to do with this patch now. It looks like all we needed was > your patch. Merge without the "stable" is what I'm thinking. Makes sense if we really don't need it any more with Chris' patches in -fixes. Can you please volunteer someone to cough up an r-b? Thanks, Daniel --

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Disable PMSI sleep messages on all rings around context switches

2014-12-16 Thread Daniel Vetter
On Tue, Dec 16, 2014 at 09:55:23AM +, Chris Wilson wrote: > On Tue, Dec 16, 2014 at 10:19:47AM +0100, Daniel Vetter wrote: > > Hm right, there have been patches floating around for that one ... A short > > mention in the commit message about this would be useful. > >

Re: [PATCH v2 3/3] drm/i915: Disable PSMI sleep messages on all rings around context switches

2014-12-16 Thread Daniel Vetter
t; v2: Make it explicit that the PSMI LRI are an extension to the original > workaround for the other rings. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80660 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83677 > Cc: Simon Farnsworth > Cc: Daniel Vett

  1   2   3   4   5   >