Re: [Intel-gfx] [PATCH] drm/debugfs: Fix framebuffer debugfs file init

2017-11-13 Thread Dave Airlie
On 14 November 2017 at 09:12, Noralf Trønnes wrote: > The introduction of: drm/framebuffer: Add framebuffer debugfs file > broke vgem. That patch assumed that all drivers had initialized the > dev->mode_config.fb_lock mutex which happens in drm_mode_config_init(). > vgem doesn't need to call drm_m

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915: fix 64bit divide

2017-11-13 Thread Ewelina Musial
On Mon, Nov 13, 2017 at 11:34:53PM +, Lionel Landwerlin wrote: > ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > > Store the frequency in kHz and drop 64bit divisions. > > v2: Use div64_u64 (Matthew) > > v3: store f

Re: [Intel-gfx] [PATCH v3 1/4] drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset

2017-11-13 Thread Ewelina Musial
On Mon, Nov 13, 2017 at 11:34:52PM +, Lionel Landwerlin wrote: > This replaces accesses to the reg field of the i915_reg_t structure > with the i915_mmio_reg_offset() inline function. > > Suggested-by: Chris Wilson > Signed-off-by: Lionel Landwerlin Reviewed-by: Ewelina Musial > --- > driv

Re: [Intel-gfx] [PATCH v1 1/2] drm/i915: Introduce GEM proxy

2017-11-13 Thread Zhang, Tina
> -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Tuesday, October 17, 2017 10:37 PM > To: Zhang, Tina ; zhen...@linux.intel.com; Lv, Zhiyuan > ; Wang, Zhi A ; Tian, Kevin > ; dan...@ffwll.ch > Cc: Zhang, Tina ; intel-gfx@lists.freedesktop.org; > intel-

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Fix function name in comment

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix function name in comment URL : https://patchwork.freedesktop.org/series/33751/ State : success == Summary == Test kms_setmode: Subgroup basic: pass -> FAIL (shard-hsw) fdo#99912 Test gem_exec_suspend: Subgro

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4) URL : https://patchwork.freedesktop.org/series/33463/ State : success == Summary == Test kms_flip: Subgroup plain-flip-ts-check-interruptible: fail -> PASS (shard

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix function name in comment

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix function name in comment URL : https://patchwork.freedesktop.org/series/33751/ State : success == Summary == Series 33751v1 drm/i915: Fix function name in comment https://patchwork.freedesktop.org/api/1.0/series/33751/revisions/1/mbox/ Test chamelium

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: some perf cleanups (& fixes!) (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: some perf cleanups (& fixes!) (rev2) URL : https://patchwork.freedesktop.org/series/33736/ State : success == Summary == Test kms_busy: Subgroup extended-modeset-hang-oldfb-with-reset-render-a: pass -> DMESG-WARN (shard-hsw)

[Intel-gfx] [PATCH] drm/i915: Fix function name in comment

2017-11-13 Thread Lucas De Marchi
Commit 78597996370c (drm/i915/bxt: Fix PPS lost state after suspend breaking eDP link training) renamed the function to intel_power_sequencer_reset() but forgot to update comment. Cc: Imre Deak Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertio

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4) URL : https://patchwork.freedesktop.org/series/33463/ State : success == Summary == Series 33463v4 drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk https://patchwork.freedesktop.org/api/1

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: some perf cleanups (& fixes!) (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: some perf cleanups (& fixes!) (rev2) URL : https://patchwork.freedesktop.org/series/33736/ State : success == Summary == Series 33736v2 drm/i915: some perf cleanups (& fixes!) https://patchwork.freedesktop.org/api/1.0/series/33736/revisions/2/mbox/ Test

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/debugfs: Fix framebuffer debugfs file init

2017-11-13 Thread Patchwork
== Series Details == Series: drm/debugfs: Fix framebuffer debugfs file init URL : https://patchwork.freedesktop.org/series/33747/ State : warning == Summary == Series 33747v1 drm/debugfs: Fix framebuffer debugfs file init https://patchwork.freedesktop.org/api/1.0/series/33747/revisions/1/mbox/

[Intel-gfx] [PATCH v3 3/4] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Lionel Landwerlin
Now that we have this stored in the device info, we can drop it from perf part of the driver. Note that this requires to init perf after we've computed the frequency, hence why we move i915_perf_init() from i915_driver_init_early() to after intel_device_info_runtime_init(). v2: Use div_u64 (Chris

[Intel-gfx] [PATCH v3 1/4] drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset

2017-11-13 Thread Lionel Landwerlin
This replaces accesses to the reg field of the i915_reg_t structure with the i915_mmio_reg_offset() inline function. Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_perf.c | 39 --- 1 file changed, 24 insertions(+), 1

[Intel-gfx] [PATCH v3 0/4] drm/i915: some perf cleanups (& fixes!)

2017-11-13 Thread Lionel Landwerlin
Some sensible changes pointed by Chris, Matt & Ville. Thanks! Lionel Landwerlin (4): drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset drm/i915: fix 64bit divide drm/i915/perf: reuse timestamp frequency from device info drm/i915/cnl: only divide up base frequency with crystal

[Intel-gfx] [PATCH v3 4/4] drm/i915/cnl: only divide up base frequency with crystal source

2017-11-13 Thread Lionel Landwerlin
We apply this logic to Gen9 as well. We didn't notice this issue as most part we've encountered so far only use the crystal as source for their timestamp registers. Fixes: dab9178333 ("drm/i915: expose command stream timestamp frequency to userspace") Signed-off-by: Lionel Landwerlin --- driver

[Intel-gfx] [PATCH v3 2/4] drm/i915: fix 64bit divide

2017-11-13 Thread Lionel Landwerlin
ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! Store the frequency in kHz and drop 64bit divisions. v2: Use div64_u64 (Matthew) v3: store frequency in kHz to avoid 64bit divs (Chris/Ville) Fixes: dab9178333 ("drm/i915: ex

[Intel-gfx] [PATCH] drm/debugfs: Fix framebuffer debugfs file init

2017-11-13 Thread Noralf Trønnes
The introduction of: drm/framebuffer: Add framebuffer debugfs file broke vgem. That patch assumed that all drivers had initialized the dev->mode_config.fb_lock mutex which happens in drm_mode_config_init(). vgem doesn't need to call drm_mode_config_init(). Fix this by only creating the framebuffer

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5) URL : https://patchwork.freedesktop.org/series/33087/ State : success == Summary == Test kms_flip: Subgroup plain-flip-ts-check-interruptible: fail -> PASS (shard

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk (rev4) URL : https://patchwork.freedesktop.org/series/33463/ State : failure == Summary == Series 33463v4 drm/i915: Display WA #1185 WaDisableDARBFClkGating:cnl, glk https://patchwork.freedesktop.org/api/1

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5) URL : https://patchwork.freedesktop.org/series/33087/ State : success == Summary == Series 33087v5 drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ https://patchwork.freedesktop.org/api/1

Re: [Intel-gfx] [PATCH v3] drm/i915: Apply Wa Display #1183 on skl, kbl, and cfl

2017-11-13 Thread Lucas De Marchi
Hi Ville, On Thu, Nov 9, 2017 at 8:58 AM, Ville Syrjälä wrote: > On Thu, Nov 09, 2017 at 08:02:40AM -0800, Lucas De Marchi wrote: >> On Thu, Nov 9, 2017 at 5:11 AM, Ville Syrjälä >> wrote: >> > On Thu, Nov 09, 2017 at 02:58:04AM -0800, Lucas De Marchi wrote: >> >> Wa Display #1183 was recently a

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 09:03:34PM +, Chris Wilson wrote: > Quoting Ville Syrjala (2017-11-13 15:32:14) > > From: Ville Syrjälä > > > > Previously I was under the impression that the scanline counter > > reads 0 when the pipe is off. Turns out that's not correct, and > > instead the scanline

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Chris Wilson
Quoting Ville Syrjälä (2017-11-13 20:53:39) > On Mon, Nov 13, 2017 at 07:03:30PM +, Matthew Auld wrote: > > On 13 November 2017 at 18:18, Lionel Landwerlin > > > diff --git a/drivers/gpu/drm/i915/i915_perf.c > > > b/drivers/gpu/drm/i915/i915_perf.c > > > index 00be015e01df..292ad3e2c307 100644

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Wait for pipe to start on i830 as well

2017-11-13 Thread Chris Wilson
Quoting Ville Syrjala (2017-11-13 15:32:15) > From: Ville Syrjälä > > We should make sure the pipe has fully started when we enable it from > the i830 "power well". Otherwise theoretically i830 could also hit > problems with vblank timestamps jumping around (since we skip the > wait during modese

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2

2017-11-13 Thread Chris Wilson
Quoting Ville Syrjala (2017-11-13 15:32:14) > From: Ville Syrjälä > > Previously I was under the impression that the scanline counter > reads 0 when the pipe is off. Turns out that's not correct, and > instead the scanline counter simply stops when the pipe stops, and > it retains it's last value

Re: [Intel-gfx] [PATCH] drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Rodrigo Vivi
On Mon, Nov 13, 2017 at 08:46:10PM +, Ville Syrjälä wrote: > On Mon, Nov 13, 2017 at 11:01:31AM -0800, Rodrigo Vivi wrote: > > On Mon, Nov 13, 2017 at 02:50:28PM +, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Moving the init_clock_gating() call from intel_modeset_init_hw()

Re: [Intel-gfx] [PATCH i-g-t 2/5] tests: Convert to using the imported drm-uapi headers.

2017-11-13 Thread Eric Anholt
Lionel Landwerlin writes: > On 10/11/17 21:26, Eric Anholt wrote: >> Tested by dropping garbage in my libdrm's headers and rebuilding. >> >> Signed-off-by: Eric Anholt >> --- >> lib/Makefile.am | 5 - >> meson.build | 2 +- >> tests/Makefile.am | 1 + >> 3 files changed, 6 inser

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 07:03:30PM +, Matthew Auld wrote: > On 13 November 2017 at 18:18, Lionel Landwerlin > wrote: > > Now that we have this stored in the device info, we can drop it from perf > > part of the driver. > > > > Note that this requires to init perf after we've computed the frequ

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: fix 64bit divide

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 06:44:47PM +, Matthew Auld wrote: > On 13 November 2017 at 18:19, Lionel Landwerlin > wrote: > > ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > > ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > > > > We can also drop an if() as we divide by

Re: [Intel-gfx] [PATCH] drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 11:01:31AM -0800, Rodrigo Vivi wrote: > On Mon, Nov 13, 2017 at 02:50:28PM +, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Moving the init_clock_gating() call from intel_modeset_init_hw() to > > intel_modeset_gem_init() had an unintended effect of not applying

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: some perf cleanups (& fixes!)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: some perf cleanups (& fixes!) URL : https://patchwork.freedesktop.org/series/33736/ State : success == Summary == Test drv_module_reload: Subgroup basic-reload: pass -> DMESG-WARN (shard-hsw) fdo#102707 fdo#102707 https://bu

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Clear per-engine fault register as early as possible (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Clear per-engine fault register as early as possible (rev2) URL : https://patchwork.freedesktop.org/series/33649/ State : success == Summary == Test kms_setmode: Subgroup basic: pass -> FAIL

[Intel-gfx] [drm-intel:drm-intel-next-queued 6/6] drivers/gpu/drm/i915/intel_device_info.c:345: undefined reference to `__udivdi3'

2017-11-13 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: dab91783338bd3dd42638f89b5f7e34c57773207 commit: dab91783338bd3dd42638f89b5f7e34c57773207 [6/6] drm/i915: expose command stream timestamp frequency to userspace config: i386-randconfig-s0-201746 (attached as .config) com

[Intel-gfx] [PULL] drm-misc-fixes

2017-11-13 Thread Sean Paul
Hi Dave, Here's the previous PR plus the rockchip fix that snuck in. drm-misc-fixes-2017-11-13: Driver Changes: - qxl: Use a shadow bo as primary and blit to it to fix flicker (Gerd) - rockchip: Convert psr spinlock to mutex (Emil) Cc: Emil Renner Berthing Cc: Gerd Hoffmann Cheers, Sean Th

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/edid: Infoframe cleanups and fixes

2017-11-13 Thread Patchwork
== Series Details == Series: drm/edid: Infoframe cleanups and fixes URL : https://patchwork.freedesktop.org/series/33730/ State : success == Summary == Test kms_atomic_transition: Subgroup plane-all-modeset-transition-fencing: pass -> DMESG-WARN (shard-hsw) fdo#10

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Matthew Auld
On 13 November 2017 at 18:18, Lionel Landwerlin wrote: > Now that we have this stored in the device info, we can drop it from perf > part of the driver. > > Note that this requires to init perf after we've computed the frequency, > hence why we move i915_perf_init() from i915_driver_init_early() t

Re: [Intel-gfx] [PATCH] drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Rodrigo Vivi
On Mon, Nov 13, 2017 at 02:50:28PM +, Ville Syrjala wrote: > From: Ville Syrjälä > > Moving the init_clock_gating() call from intel_modeset_init_hw() to > intel_modeset_gem_init() had an unintended effect of not applying > some workarounds on resume. This, for example, cause some kind of > co

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: some perf cleanups (& fixes!)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: some perf cleanups (& fixes!) URL : https://patchwork.freedesktop.org/series/33736/ State : success == Summary == Series 33736v1 drm/i915: some perf cleanups (& fixes!) https://patchwork.freedesktop.org/api/1.0/series/33736/revisions/1/mbox/ Test chameli

Re: [Intel-gfx] [PATCH 07/10] drm/edid: Don't send bogus aspect ratios in AVI infoframes

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 06:30:47PM +, Jose Abreu wrote: > > > On 13-11-2017 17:04, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > If the user mode would specify an aspect ratio other than 4:3 or 16:9 > > we now silently ignore it. Maybe a better apporoach is to return an > > error? Let

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Clear per-engine fault register as early as possible (rev2)

2017-11-13 Thread Chris Wilson
Quoting Patchwork (2017-11-13 18:13:01) > == Series Details == > > Series: series starting with [1/2] drm/i915: Clear per-engine fault register > as early as possible (rev2) > URL : https://patchwork.freedesktop.org/series/33649/ > State : success More MTA fun, so I'll plonk my Reviewed-by her

Re: [Intel-gfx] [RESEND v2 1/2] drm/i915: Add connector property to limit max bpc

2017-11-13 Thread Rodrigo Vivi
On Fri, Nov 10, 2017 at 07:47:46PM +, Sripada, Radhakrishna wrote: > > > > -Original Message- > > From: Vivi, Rodrigo > > Sent: Thursday, November 9, 2017 1:25 PM > > To: Sripada, Radhakrishna > > Cc: intel-gfx@lists.freedesktop.org; Zanoni, Paulo R > > > > Subject: Re: [Intel-gfx]

Re: [Intel-gfx] [PATCH 06/10] drm/edid: Fix cea mode aspect ratio handling

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 06:13:37PM +, Jose Abreu wrote: > Hi Ville, > > On 13-11-2017 17:04, Ville Syrjala wrote: > > > > + if (to_match->picture_aspect_ratio) > > + match_flags |= DRM_MODE_MATCH_ASPECT_RATIO; > > + > > > > Maybe "if (to_match->picture_aspect_ratio != > HDMI_PIC

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: fix 64bit divide

2017-11-13 Thread Lionel Landwerlin
On 13/11/17 18:44, Matthew Auld wrote: On 13 November 2017 at 18:19, Lionel Landwerlin wrote: ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! We can also drop an if() as we divide by (value + 1) only if value is not 0. F

Re: [Intel-gfx] [PATCH 1/1] drm/i915/cnl: Extend HDMI 2.0 support to CNL.

2017-11-13 Thread Rodrigo Vivi
On Sat, Nov 11, 2017 at 09:43:44AM +, Sharma, Shashank wrote: > Regards > > Shashank > > > On 11/11/2017 3:56 AM, Rodrigo Vivi wrote: > > Starting on GLK we support HDMI 2.0. So this patch only > > extend the work Shashank has made to GLK to CNL. > > > > Cc: Paulo Zanoni > > Cc: Shashank S

Re: [Intel-gfx] [PATCH 1/1] drm/i915/cnl: Extend HDMI 2.0 support to CNL.

2017-11-13 Thread Rodrigo Vivi
On Sat, Nov 11, 2017 at 09:47:40AM +, Sharma, Shashank wrote: > I am still waiting for the dmesg logs, Rodrigo :P > > I am pretty sure that you would have picked up if there is a general > problem, wit the modeset or HDMI. yep... my bad... sorry... We will provide that soon. > > I just want

Re: [Intel-gfx] [PATCH 0/1] HDMI 2.0 on CNL... not working...

2017-11-13 Thread Rodrigo Vivi
On Sun, Nov 12, 2017 at 11:29:28PM +, Mike Lothian wrote: > Hi > > You will need a HDMI 2 cable Yes, I wonder already if that was the case... So we have a new HDMI cable type? a high-higher-speed? Or the regular high speed should be enough? Anyways we are trying to get a "certified" hdmi 2.0

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: fix 64bit divide

2017-11-13 Thread Matthew Auld
On 13 November 2017 at 18:19, Lionel Landwerlin wrote: > ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! > > We can also drop an if() as we divide by (value + 1) only if value is > not 0. > > Fixes: dab9178333 ("drm/i915: e

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5)

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ (rev5) URL : https://patchwork.freedesktop.org/series/33087/ State : warning == Summary == Series 33087v5 drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ https://patchwork.freedesktop.org/api/1

Re: [Intel-gfx] [PATCH 08/10] video/hdmi: Reject illegal picture aspect ratios

2017-11-13 Thread Jose Abreu
On 13-11-2017 17:04, Ville Syrjala wrote: > From: Ville Syrjälä > > AVI infoframe can only carry none, 4:3, or 16:9 picture aspect > ratios. Return an error if the user asked for something different. > > Cc: Shashank Sharma > Cc: "Lin, Jia" > Cc: Akashdeep Sharma > Cc: Jim Bride > Cc: Jose A

Re: [Intel-gfx] [PATCH 07/10] drm/edid: Don't send bogus aspect ratios in AVI infoframes

2017-11-13 Thread Jose Abreu
On 13-11-2017 17:04, Ville Syrjala wrote: > From: Ville Syrjälä > > If the user mode would specify an aspect ratio other than 4:3 or 16:9 > we now silently ignore it. Maybe a better apporoach is to return an > error? Let's try that. > > Also we must be careful that we don't try to send illegal p

[Intel-gfx] [drm-intel:drm-intel-next-queued 6/6] intel_device_info.c:undefined reference to `__udivdi3'

2017-11-13 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: dab91783338bd3dd42638f89b5f7e34c57773207 commit: dab91783338bd3dd42638f89b5f7e34c57773207 [6/6] drm/i915: expose command stream timestamp frequency to userspace config: i386-defconfig (attached as .config) compiler: gcc-

Re: [Intel-gfx] [PATCH 06/10] drm/edid: Fix cea mode aspect ratio handling

2017-11-13 Thread Jose Abreu
Hi Ville, On 13-11-2017 17:04, Ville Syrjala wrote: > > + if (to_match->picture_aspect_ratio) > + match_flags |= DRM_MODE_MATCH_ASPECT_RATIO; > + > Maybe "if (to_match->picture_aspect_ratio != HDMI_PICTURE_ASPECT_NONE && to_match->picture_aspect_ratio != HDMI_PICTURE_ASPECT_RESE

Re: [Intel-gfx] [PATCH] drm/i915: Don't use GEN6_RC_VIDEO_FREQ on gen10+

2017-11-13 Thread Rodrigo Vivi
On Mon, Nov 13, 2017 at 02:06:28PM +, David Weinehall wrote: > On Fri, Nov 10, 2017 at 11:53:58AM -0800, Rodrigo Vivi wrote: > > On Fri, Nov 10, 2017 at 02:29:29PM +, David Weinehall wrote: > > > GEN6_RC_VIDEO_FREQ is deprecated for >= gen10; > > > don't try to program it. > > > > > > Sign

[Intel-gfx] [PATCH v2 1/4] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Lionel Landwerlin
Now that we have this stored in the device info, we can drop it from perf part of the driver. Note that this requires to init perf after we've computed the frequency, hence why we move i915_perf_init() from i915_driver_init_early() to after intel_device_info_runtime_init(). v2: Use udiv_u64 (Chri

[Intel-gfx] [PATCH v2 3/4] drm/i915: fix 64bit divide

2017-11-13 Thread Lionel Landwerlin
ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined! We can also drop an if() as we divide by (value + 1) only if value is not 0. Fixes: dab9178333 ("drm/i915: expose command stream timestamp frequency to userspace") Reported-by

[Intel-gfx] [PATCH v2 4/4] drm/i915/cnl: only divide up base frequency with crystal source

2017-11-13 Thread Lionel Landwerlin
We apply this logic to Gen9 as well. We didn't notice this issue as most part we've encountered so far only use the crystal as source for their timestamp registers. Fixes: dab9178333 ("drm/i915: expose command stream timestamp frequency to userspace") Signed-off-by: Lionel Landwerlin --- driver

[Intel-gfx] [PATCH v2 0/4] drm/i915: some perf cleanups (& fixes!)

2017-11-13 Thread Lionel Landwerlin
Another round of issues reported mostly by Matthew. Thanks, Lionel Landwerlin (4): drm/i915/perf: reuse timestamp frequency from device info drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset drm/i915: fix 64bit divide drm/i915/cnl: only divide up base frequency with crystal s

[Intel-gfx] [PATCH v2 2/4] drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset

2017-11-13 Thread Lionel Landwerlin
This replaces accesses to the reg field of the i915_reg_t structure with the i915_mmio_reg_offset() inline function. Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_perf.c | 39 --- 1 file changed, 24 insertions(+), 1

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Clear per-engine fault register as early as possible (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Clear per-engine fault register as early as possible (rev2) URL : https://patchwork.freedesktop.org/series/33649/ State : success == Summary == Series 33649v2 series starting with [1/2] drm/i915: Clear per-engine fault registe

[Intel-gfx] [PATCH v4] drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+

2017-11-13 Thread James Ausmus
Since GLK, some plane configuration settings have moved to the PLANE_COLOR_CTL register. Refactor handling of the register to work like PLANE_CTL. This also allows us to fix the set/read of the plane Alpha Mode for GLK+. v2: Adjust ordering of platform checks to be newest->oldest, drop redundant c

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/edid: Infoframe cleanups and fixes

2017-11-13 Thread Patchwork
== Series Details == Series: drm/edid: Infoframe cleanups and fixes URL : https://patchwork.freedesktop.org/series/33730/ State : success == Summary == Series 33730v1 drm/edid: Infoframe cleanups and fixes https://patchwork.freedesktop.org/api/1.0/series/33730/revisions/1/mbox/ Test chamelium

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/atomic-helper: always track connector commits, too (rev3)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/atomic-helper: always track connector commits, too (rev3) URL : https://patchwork.freedesktop.org/series/33591/ State : success == Summary == Test drv_module_reload: Subgroup basic-no-display: dmesg-warn -> IN

[Intel-gfx] [PATCH v3] drm/i915: There is only one fault register from GEN8 onwards

2017-11-13 Thread Michel Thierry
Until Haswell/Baytrail, the hardware used to have a per engine fault register (e.g. 0x4094 - render fault register, 0x4194 - media fault register and so on). But since Broadwell, all these registers were combined into a singe one and the engine id stored in bits 14:12. Not only we should not been

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: some perf cleanups

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: some perf cleanups URL : https://patchwork.freedesktop.org/series/33729/ State : failure == Summary == Series 33729v1 drm/i915: some perf cleanups https://patchwork.freedesktop.org/api/1.0/series/33729/revisions/1/mbox/ Test chamelium: Subgroup d

Re: [Intel-gfx] [PATCH v3 04/11] drm/i915: Handle adjust better in intel_pipe_config_compare

2017-11-13 Thread Ville Syrjälä
On Fri, Nov 10, 2017 at 02:02:45PM +0100, Daniel Vetter wrote: > On Fri, Nov 10, 2017 at 12:34:56PM +0100, Maarten Lankhorst wrote: > > Some parameters use CHECK_BOOLL, but should really use > > CHECK_BOOL_INCOMPLETE. We cannot currently check whether > > the inherited infoframes and audio are set

Re: [Intel-gfx] [PATCH v3 02/11] drm/i915: Remove bogus ips_enabled check.

2017-11-13 Thread Ville Syrjälä
On Fri, Nov 10, 2017 at 01:57:06PM +0100, Daniel Vetter wrote: > On Fri, Nov 10, 2017 at 12:34:54PM +0100, Maarten Lankhorst wrote: > > The flag just tells us IPS can be enabled, if the primary plane > > is not enabled it means IPS might not be. This never triggered > > in CI because we don't have

Re: [Intel-gfx] [PATCH v3 08/11] drm/i915: Pass crtc_state to ips toggle functions, v2

2017-11-13 Thread Ville Syrjälä
On Fri, Nov 10, 2017 at 12:35:00PM +0100, Maarten Lankhorst wrote: > Changes since v1: > - Only pass crtc_state, not crtc. > > Signed-off-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_color.c | 4 ++-- > drivers/gpu/drm/i915/intel_display.c | 25 ++

Re: [Intel-gfx] [PATCH v3 07/11] drm/i915: Pass idle crtc_state to intel_dp_sink_crc

2017-11-13 Thread Ville Syrjälä
On Fri, Nov 10, 2017 at 12:34:59PM +0100, Maarten Lankhorst wrote: > IPS can only be enabled if the primary plane is visible, so > first make sure sw state matches hw state by waiting for hw_done. > > After this pass crtc_state to intel_dp_sink_crc() so that can be used, > instead of using legacy

[Intel-gfx] [PATCH 08/10] video/hdmi: Reject illegal picture aspect ratios

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä AVI infoframe can only carry none, 4:3, or 16:9 picture aspect ratios. Return an error if the user asked for something different. Cc: Shashank Sharma Cc: "Lin, Jia" Cc: Akashdeep Sharma Cc: Jim Bride Cc: Jose Abreu Cc: Daniel Vetter Cc: Emil Velikov Cc: Thierry Reding

[Intel-gfx] [PATCH 10/10] video/hdmi: Pass buffer size to infoframe unpack functions

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä To make sure the infoframe unpack functions don't end up examining stack garbage or oopsing, let's pass in the size of the buffer. Cc: Thierry Reding Cc: Hans Verkuil Cc: linux-me...@vger.kernel.org Signed-off-by: Ville Syrjälä --- drivers/media/i2c/adv7511.c | 2 +- dr

[Intel-gfx] [PATCH 07/10] drm/edid: Don't send bogus aspect ratios in AVI infoframes

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä If the user mode would specify an aspect ratio other than 4:3 or 16:9 we now silently ignore it. Maybe a better apporoach is to return an error? Let's try that. Also we must be careful that we don't try to send illegal picture aspect in the infoframe as it's only capable of s

[Intel-gfx] [PATCH 09/10] video/hdmi: Constify 'buffer' to the unpack functions

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä The unpack functions just read from the passed in buffer, so make it const. Cc: Thierry Reding Cc: Hans Verkuil Cc: linux-me...@vger.kernel.org Signed-off-by: Ville Syrjälä --- drivers/video/hdmi.c | 23 --- include/linux/hdmi.h | 3 ++- 2 files chang

[Intel-gfx] [PATCH 04/10] drm/edid: Use drm_mode_match_no_clocks_no_stereo() for consistentcy

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Use drm_mode_equal_no_clocks_no_stereo() in drm_match_hdmi_mode_clock_tolerance() for consistency as we also use it in drm_match_hdmi_mode() and the cea mode matching functions. This doesn't actually change anything since the input mode comes from detailed timings and we matc

[Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Appedix F of HDMI 2.0 says that some HDMI sink may fail to switch from 3D to 2D mode in a timely fashion if the source simply stops sending the HDMI infoframe. The suggested workaround is to keep sending the infoframe even when strictly not necessary (ie. no VIC and no S3D). H

[Intel-gfx] [PATCH 05/10] drm/edid: Fix up edid_cea_modes[] formatting

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Fix up a bunch of bad indentation and insconsistent comments in edid_cea_modes[]. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_edid.c | 84 +++--- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 03/10] drm/modes: Introduce drm_mode_match()

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Make mode matching less confusing by allowing the caller to specify which parts of the modes should match via some flags. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_modes.c | 134 ++-- include/drm/drm_modes.h | 9 +++

[Intel-gfx] [PATCH 06/10] drm/edid: Fix cea mode aspect ratio handling

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä commit 6dffd431e229 ("drm: Add aspect ratio parsing in DRM layer") cause us to not send out any VICs in the AVI infoframes. That commit was since reverted, but if and when we add aspect ratio handing back we need to be more careful. Let's handle this by considering the aspect

[Intel-gfx] [PATCH 00/10] drm/edid: Infoframe cleanups and fixes

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä This series tries to fix some issues with HDMI infoframes. In particular we can currently send a bogus picture aspect ratio in the infoframe. I included stuff to to make the infoframe unpakc more robust, evne though we don't (yet) use it in drm. Additionally I included my earl

[Intel-gfx] [PATCH 01/10] video/hdmi: Allow "empty" HDMI infoframes

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä HDMI 2.0 Appendix F suggest that we should keep sending the infoframe when switching from 3D to 2D mode, even if the infoframe isn't strictly necessary (ie. not needed to transmit the VIC or stereo information). This is a workaround against some sinks that fail to realize that

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2 URL : https://patchwork.freedesktop.org/series/33723/ State : success == Summary == Test vgem_basic: Subgroup debugfs: dmesg-fail -> INCOMPLETE (shard-hsw

Re: [Intel-gfx] [PATCH v9 8/8] drm/i915/guc : Calling intel_guc_init in i915_gem_init

2017-11-13 Thread Sujaritha
On 11/12/2017 09:22 AM, Michal Wajdeczko wrote: On Sat, 11 Nov 2017 01:06:38 +0100, Sujaritha Sundaresan wrote: Placing the call to intel_guc_init after i915_gem_contexts_init, based on the dependency within i915_gem_init. Will move the function if required, depending on the review comment

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/atomic-helper: always track connector commits, too (rev3)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/atomic-helper: always track connector commits, too (rev3) URL : https://patchwork.freedesktop.org/series/33591/ State : success == Summary == Series 33591v3 series starting with [1/2] drm/atomic-helper: always track connector commit

[Intel-gfx] [PATCH 1/2] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Lionel Landwerlin
Now that we have this stored in the device info, we can drop it from perf part of the driver. Note that this requires to init perf after we've computed the frequency, hence why we move i915_perf_init() from i915_driver_init_early() to after intel_device_info_runtime_init(). Signed-off-by: Lionel

[Intel-gfx] [PATCH 0/2] drm/i915: some perf cleanups

2017-11-13 Thread Lionel Landwerlin
This series contains a resend of the last patch that didn't get a reviewed-by in https://patchwork.freedesktop.org/series/33631/ and also a suggestion by Chris. Cheers, Lionel Landwerlin (2): drm/i915/perf: reuse timestamp frequency from device info drm/i915/perf: replace .reg accesses with i

[Intel-gfx] [PATCH 2/2] drm/i915/perf: replace .reg accesses with i915_mmio_reg_offset

2017-11-13 Thread Lionel Landwerlin
This replaces accesses to the reg field of the i915_reg_t structure with the i915_mmio_reg_offset() inline function. Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_perf.c | 39 --- 1 file changed, 24 insertions(+), 1

Re: [Intel-gfx] [PATCH] drm/i915: Unify SLICE_UNIT_LEVEL_CLKGATE w/a for cnl

2017-11-13 Thread Rafael Antognolli
On Sat, Nov 11, 2017 at 10:03:36AM +, Chris Wilson wrote: > gem_workarounds reports that the SLICE_UNIT_LEVEL_CLKGATE write isn't > sticking. Commit 0a60797a0efb ("drm/i915: Implement > ReadHitWriteOnlyDisable.") presumes that SLICE_UNIT_LEVEL_CLKGATE is a > masked register in the context image

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix init_clock_gating for resume URL : https://patchwork.freedesktop.org/series/33718/ State : success == Summary == Test drv_module_reload: Subgroup basic-no-display: dmesg-warn -> PASS (shard-hsw) fdo#102707 Test vgem_basic

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2 URL : https://patchwork.freedesktop.org/series/33723/ State : success == Summary == Series 33723v1 series starting with [1/2] drm/i915: Fix vblank timestamp/frame counter jumps

[Intel-gfx] [PATCH] drm/i915: sync dp link status checks against atomic commmits

2017-11-13 Thread Maarten Lankhorst
From: Daniel Vetter Two bits: - check actual atomic state, the legacy stuff can only be looked at from within the atomic_commit_tail function, since it's only protected by ordering and not by any locks. - Make sure we don't wreak the work an ongoing nonblocking commit is doing. v2: We nee

[Intel-gfx] [PATCH 2/2] drm/i915: Wait for pipe to start on i830 as well

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä We should make sure the pipe has fully started when we enable it from the i830 "power well". Otherwise theoretically i830 could also hit problems with vblank timestamps jumping around (since we skip the wait during modeset on i830). Additionally moving planes between the pipes

[Intel-gfx] [PATCH 1/2] drm/i915: Fix vblank timestamp/frame counter jumps on gen2

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Previously I was under the impression that the scanline counter reads 0 when the pipe is off. Turns out that's not correct, and instead the scanline counter simply stops when the pipe stops, and it retains it's last value until the pipe starts up again, at which point the scan

Re: [Intel-gfx] [PATCH 7/7] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Chris Wilson
Quoting Lionel Landwerlin (2017-11-13 15:19:28) > On 10/11/17 21:00, Chris Wilson wrote: > > Quoting Lionel Landwerlin (2017-11-10 19:08:45) > >> @@ -3528,7 +3502,7 @@ void i915_perf_init(struct drm_i915_private > >> *dev_priv) > >> spin_lock_init(&dev_priv->perf.oa.oa_buffer.ptr_

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [v3,01/11] drm/i915: Update watermark state correctly in sanitize_watermarks (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [v3,01/11] drm/i915: Update watermark state correctly in sanitize_watermarks (rev2) URL : https://patchwork.freedesktop.org/series/33595/ State : failure == Summary == Series 33595 revision 2 was fully merged or fully failed: no git log _

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix init_clock_gating for resume URL : https://patchwork.freedesktop.org/series/33718/ State : success == Summary == Series 33718v1 drm/i915: Fix init_clock_gating for resume https://patchwork.freedesktop.org/api/1.0/series/33718/revisions/1/mbox/ Test c

Re: [Intel-gfx] [PATCH 7/7] drm/i915/perf: reuse timestamp frequency from device info

2017-11-13 Thread Lionel Landwerlin
On 10/11/17 21:00, Chris Wilson wrote: Quoting Lionel Landwerlin (2017-11-10 19:08:45) @@ -3528,7 +3502,7 @@ void i915_perf_init(struct drm_i915_private *dev_priv) spin_lock_init(&dev_priv->perf.oa.oa_buffer.ptr_lock); oa_sample_rate_hard_limit = -

[Intel-gfx] ✗ Fi.CI.IGT: warning for drm/i915: Put all non-blocking modesets onto an ordered wq

2017-11-13 Thread Patchwork
== Series Details == Series: drm/i915: Put all non-blocking modesets onto an ordered wq URL : https://patchwork.freedesktop.org/series/33712/ State : warning == Summary == Test drv_module_reload: Subgroup basic-no-display: dmesg-warn -> PASS (shard-hsw) fdo#102707

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [v3,01/11] drm/i915: Update watermark state correctly in sanitize_watermarks (rev2)

2017-11-13 Thread Patchwork
== Series Details == Series: series starting with [v3,01/11] drm/i915: Update watermark state correctly in sanitize_watermarks (rev2) URL : https://patchwork.freedesktop.org/series/33595/ State : failure == Summary == Series 33595 revision 2 was fully merged or fully failed: no git log _

[Intel-gfx] [PATCH] drm/i915: Fix init_clock_gating for resume

2017-11-13 Thread Ville Syrjala
From: Ville Syrjälä Moving the init_clock_gating() call from intel_modeset_init_hw() to intel_modeset_gem_init() had an unintended effect of not applying some workarounds on resume. This, for example, cause some kind of corruption to appear at the top of my IVB Thinkpad X1 Carbon LVDS screen afte

Re: [Intel-gfx] [PATCH] drm/i915: Enable FIFO underrun reporting after initial fastset, v4.

2017-11-13 Thread Ville Syrjälä
On Mon, Nov 13, 2017 at 03:40:43PM +0100, Maarten Lankhorst wrote: > The firmware may have set up the pipe correctly, but the FIFO > underrun and CRC interrupts are likely not enabled. > > This resulted in debugfs_test.read_all_entries failing on haswell, > because of a timeout when reading the cr

  1   2   >