[Intel-gfx] [PATCH 1/3] kernel: move use_mm/unuse_mm to kthread.c

2020-04-15 Thread Christoph Hellwig
These helpers are only for use with kernel threads, and I will tie them more into the kthread infrastructure going forward. Also move the prototypes to kthread.h - mmu_context.h was a little weird to start with as it otherwise contains very low-level MM bits. Signed-off-by: Christoph Hellwig

[Intel-gfx] improve use_mm / unuse_mm v2

2020-04-15 Thread Christoph Hellwig
Hi all, this series improves the use_mm / unuse_mm interface by better documenting the assumptions, and my taking the set_fs manipulations spread over the callers into the core API. Changes since v1: - drop a few patches - fix a comment typo - cover the newly merged use_mm/unuse_mm caller in

[Intel-gfx] [PATCH 2/3] kernel: better document the use_mm/unuse_mm API contract

2020-04-15 Thread Christoph Hellwig
Switch the function documentation to kerneldoc comments, and add WARN_ON_ONCE asserts that the calling thread is a kernel thread and does not have ->mm set (or has ->mm set in the case of unuse_mm). Also give the functions a kthread_ prefix to better document the use case. Signed-off-by:

[Intel-gfx] [PATCH 3/3] kernel: set USER_DS in kthread_use_mm

2020-04-15 Thread Christoph Hellwig
Some architectures like arm64 and s390 require USER_DS to be set for kernel threads to access user address space, which is the whole purpose of kthread_use_mm, but other like x86 don't. That has lead to a huge mess where some callers are fixed up once they are tested on said architectures, while

[Intel-gfx] ✗ Fi.CI.BUILD: failure for sna: fix --enable-debug=full

2020-04-15 Thread Patchwork
== Series Details == Series: sna: fix --enable-debug=full URL : https://patchwork.freedesktop.org/series/76002/ State : failure == Summary == Applying: sna: fix --enable-debug=full error: sha1 information is lacking or useless (src/sna/compiler.h). error: could not build fake ancestor hint:

[Intel-gfx] [patch xf86-video-intel] sna: fix --enable-debug=full

2020-04-15 Thread Alexei Podtelezhnikov
From: Alexei Podtelezhnikov Once a typo is fixed, the debug build triggers an assertion failure. Given that the normal build is just fine, the assert might be wrong. Signed-off-by: Alexei Podtelezhnikov --- src/sna/compiler.h | 2 +- src/sna/sna_accel.c | 2 +- 2 files changed, 2

Re: [Intel-gfx] [PATCH 1/3] drm/i915/display: Load DP_TP_CTL/STATUS offset before use it

2020-04-15 Thread Matt Roper
On Tue, Apr 14, 2020 at 04:04:40PM -0700, José Roberto de Souza wrote: > Right now dp.regs.dp_tp_ctl/status are only set during the encoder > pre_enable() hook, what is causing all reads and writes to those > registers to go to offset 0x0 before pre_enable() is executed. > > So if i915 takes the

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/gt: Update PMINTRMSK holding fw

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/gt: Update PMINTRMSK holding fw URL : https://patchwork.freedesktop.org/series/75958/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17305_full Summary ---

[Intel-gfx] linux-next: manual merge of the drm-misc tree with Linus' tree

2020-04-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: MAINTAINERS between commits: 4400b7d68f6e ("MAINTAINERS: sort entries by entry name") 3b50142d8528 ("MAINTAINERS: sort field names for all entries") from Linus' tree and commits: 5304058b1526 ("dt-bindings:

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/tgl: TBT AUX should use TC power well ops

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/tgl: TBT AUX should use TC power well ops URL : https://patchwork.freedesktop.org/series/75998/ State : success == Summary == CI Bug Log - changes from CI_DRM_8305 -> Patchwork_17319

[Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [1/2] drm/i915/tgl: TBT AUX should use TC power well ops

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/tgl: TBT AUX should use TC power well ops URL : https://patchwork.freedesktop.org/series/75998/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610:

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: TBT AUX should use TC power well ops

2020-04-15 Thread Souza, Jose
On Wed, 2020-04-15 at 16:34 -0700, Matt Roper wrote: > As on ICL, we want to use the Type-C aux handlers for the TBT aux > wells > to ensure the DP_AUX_CH_CTL_TBT_IO flag is set properly. Reviewed-by: José Roberto de Souza > > Fixes: 656409bbaf87 ("drm/i915/tgl: Add power well support") > Cc:

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/tgl: Wa_14011059788 (rev2)

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/tgl: Wa_14011059788 (rev2) URL : https://patchwork.freedesktop.org/series/75990/ State : success == Summary == CI Bug Log - changes from CI_DRM_8304 -> Patchwork_17318 Summary --- **SUCCESS**

[Intel-gfx] ✓ Fi.CI.IGT: success for devm_drm_dev_alloc, v2

2020-04-15 Thread Patchwork
== Series Details == Series: devm_drm_dev_alloc, v2 URL : https://patchwork.freedesktop.org/series/75956/ State : success == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17304_full Summary --- **SUCCESS** No

[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/tgl: Wa_14011059788 (rev2)

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/tgl: Wa_14011059788 (rev2) URL : https://patchwork.freedesktop.org/series/75990/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout, other

Re: [Intel-gfx] [CI 1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Andi Shyti
Hi Chris, On Wed, Apr 15, 2020 at 06:03:17PM +0100, Chris Wilson wrote: > Since we depend upon RPS generating interrupts after evaluation > intervals to determine when to up/down clock the GPU, it is imperative > that we successfully enable interrupt generation! Verify that we do see > an

[Intel-gfx] [PATCH 1/2] drm/i915/tgl: TBT AUX should use TC power well ops

2020-04-15 Thread Matt Roper
As on ICL, we want to use the Type-C aux handlers for the TBT aux wells to ensure the DP_AUX_CH_CTL_TBT_IO flag is set properly. Fixes: 656409bbaf87 ("drm/i915/tgl: Add power well support") Cc: José Roberto de Souza Cc: Imre Deak Signed-off-by: Matt Roper ---

[Intel-gfx] [PATCH 2/2] drm/i915: Use single set of AUX powerwell ops for gen11+

2020-04-15 Thread Matt Roper
AUX power wells sometimes need additional handling besides just programming the specific power well registers: * Type-C PHY's also require additional Type-C register programming * ICL combo PHY's require additional workarounds * TGL & EHL combo PHY's can be treated like any other power well

Re: [Intel-gfx] [PATCH 1/3] drm/i915/perf: Reduce cpu overhead for blocking perf OA reads

2020-04-15 Thread Umesh Nerlige Ramappa
On Wed, Apr 15, 2020 at 10:16:59PM +0300, Lionel Landwerlin wrote: On 15/04/2020 21:55, Umesh Nerlige Ramappa wrote: On Wed, Apr 15, 2020 at 01:00:30PM +0300, Lionel Landwerlin wrote: On 13/04/2020 18:48, Umesh Nerlige Ramappa wrote: A condition in wait_event_interruptible seems to be checked

[Intel-gfx] [PATCH v2] drm/i915/tgl: Wa_14011059788

2020-04-15 Thread Matt Atwood
Reflect recent Bspec changes v2: fix whitespace, typo Signed-off-by: Matt Atwood --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index b632b6bb9c3e..3d12a0617c84 100644 ---

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for Tigerlake workaround updates

2020-04-15 Thread Matt Roper
On Wed, Apr 15, 2020 at 09:47:21PM +, Patchwork wrote: > == Series Details == > > Series: Tigerlake workaround updates > URL : https://patchwork.freedesktop.org/series/75944/ > State : success > > == Summary == > > CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17302_full >

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/tgl: Wa_14011059788

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/tgl: Wa_14011059788 URL : https://patchwork.freedesktop.org/series/75990/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h CC [M]

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915/display: Load DP_TP_CTL/STATUS offset before use it

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915/display: Load DP_TP_CTL/STATUS offset before use it URL : https://patchwork.freedesktop.org/series/75946/ State : success == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17303_full

[Intel-gfx] [PATCH] drm/i915/tgl: Wa_14011059788

2020-04-15 Thread Matt Atwood
Reflect recent Bspec changes Signed-off-by: Matt Atwood --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index b632b6bb9c3e..30b45c0de6fb 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++

[Intel-gfx] ✓ Fi.CI.IGT: success for Tigerlake workaround updates

2020-04-15 Thread Patchwork
== Series Details == Series: Tigerlake workaround updates URL : https://patchwork.freedesktop.org/series/75944/ State : success == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17302_full Summary --- **SUCCESS**

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Use single set of AUX powerwell ops for gen11+

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Use single set of AUX powerwell ops for gen11+ URL : https://patchwork.freedesktop.org/series/75943/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17301_full

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/ehl: extended Wa_2006604312 to ehl

2020-04-15 Thread Matt Roper
On Wed, Apr 15, 2020 at 12:19:05PM +, Patchwork wrote: > == Series Details == > > Series: drm/i915/ehl: extended Wa_2006604312 to ehl > URL : https://patchwork.freedesktop.org/series/75894/ > State : success > > == Summary == > > CI Bug Log - changes from CI_DRM_8298_full ->

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

2020-04-15 Thread Rodrigo Vivi
Hi Dave and Daniel, Here goes drm-intel-fixes-2020-04-15: - Fix guest page access by using the brand new VFIO dma r/w interface (Yan) - Fix for i915 perf read buffers (Ashutosh) Thanks, Rodrigo. The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1

Re: [Intel-gfx] [PATCH v2] drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread Chris Wilson
Quoting José Roberto de Souza (2020-04-15 20:14:08) > The intel_display_power_put_async() used in TC cold sequences made > easy to hit the missing deinitialization of driver in case of load > failure as seen in the stack trace bellow. > > intel_modeset_driver_remove_noirq() had to be removed from

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Add missing deinitialization cases of load failure URL : https://patchwork.freedesktop.org/series/75987/ State : success == Summary == CI Bug Log - changes from CI_DRM_8302 -> Patchwork_17316 Summary

[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Add missing deinitialization cases of load failure URL : https://patchwork.freedesktop.org/series/75987/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate

Re: [Intel-gfx] [PATCH v2] drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread Chris Wilson
Quoting José Roberto de Souza (2020-04-15 20:14:08) > + i915_reset_error_state(i915); If you are bored, we should move this to unregister as that is the last point at which it can be accessed from userspace. Hopefully I remember next time we are rearranging this sequence. -Chris

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Add missing deinitialization cases of load failure URL : https://patchwork.freedesktop.org/series/75987/ State : warning == Summary == $ dim checkpatch origin/drm-tip 40cdb21a2c1e drm/i915: Add missing deinitialization cases of load failure -:17:

Re: [Intel-gfx] [PATCH 1/3] drm/i915/perf: Reduce cpu overhead for blocking perf OA reads

2020-04-15 Thread Lionel Landwerlin
On 15/04/2020 21:55, Umesh Nerlige Ramappa wrote: On Wed, Apr 15, 2020 at 01:00:30PM +0300, Lionel Landwerlin wrote: On 13/04/2020 18:48, Umesh Nerlige Ramappa wrote: A condition in wait_event_interruptible seems to be checked twice before waiting on the event to occur. These checks are

Re: [Intel-gfx] [PATCH] drm/i915/gt: Update PMINTRMSK holding fw

2020-04-15 Thread Francisco Jerez
Chris Wilson writes: > If we use a non-forcewaked write to PMINTRMSK, it does not take effect > until much later, if at all, causing a loss of RPS interrupts and no GPU > reclocking, leaving the GPU running at the wrong frequency for long > periods of time. > > Reported-by: Francisco Jerez >

[Intel-gfx] [PATCH v2] drm/i915: Add missing deinitialization cases of load failure

2020-04-15 Thread José Roberto de Souza
The intel_display_power_put_async() used in TC cold sequences made easy to hit the missing deinitialization of driver in case of load failure as seen in the stack trace bellow. intel_modeset_driver_remove_noirq() had to be removed from i915_driver_modeset_remove_noirq() as those are different

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation URL : https://patchwork.freedesktop.org/series/75983/ State : success == Summary == CI Bug Log - changes from CI_DRM_8302 -> Patchwork_17314

Re: [Intel-gfx] [PATCH 1/3] drm/i915/perf: Reduce cpu overhead for blocking perf OA reads

2020-04-15 Thread Umesh Nerlige Ramappa
On Wed, Apr 15, 2020 at 01:00:30PM +0300, Lionel Landwerlin wrote: On 13/04/2020 18:48, Umesh Nerlige Ramappa wrote: A condition in wait_event_interruptible seems to be checked twice before waiting on the event to occur. These checks are redundant when hrtimer events will call

[Intel-gfx] ✓ Fi.CI.BAT: success for i915 lpsp support for lpsp igt (rev9)

2020-04-15 Thread Patchwork
== Series Details == Series: i915 lpsp support for lpsp igt (rev9) URL : https://patchwork.freedesktop.org/series/74648/ State : success == Summary == CI Bug Log - changes from CI_DRM_8302 -> Patchwork_17315 Summary --- **SUCCESS**

[Intel-gfx] ✗ Fi.CI.DOCS: warning for i915 lpsp support for lpsp igt (rev9)

2020-04-15 Thread Patchwork
== Series Details == Series: i915 lpsp support for lpsp igt (rev9) URL : https://patchwork.freedesktop.org/series/74648/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout,

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation URL : https://patchwork.freedesktop.org/series/75983/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8302 -> Patchwork_17314

Re: [Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-15 Thread Dixit, Ashutosh
On Wed, 15 Apr 2020 07:39:00 -0700, Chris Wilson wrote: > > The poll() is proving unreliable, where our tests timeout without the > spinner being terminated. Let's try a blocking read instead! > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 > Signed-off-by: Chris Wilson > Cc:

[Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation URL : https://patchwork.freedesktop.org/series/75983/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915

Re: [Intel-gfx] [PATCH 05/59] drm/vboxvidoe: use managed pci functions

2020-04-15 Thread Daniel Vetter
On Wed, Apr 15, 2020 at 05:03:55PM +0200, Hans de Goede wrote: > Hi, > > On 4/15/20 9:39 AM, Daniel Vetter wrote: > > Allows us to drop the cleanup code on the floor. > > > > Sam noticed in his review: > > > With this change we avoid calling pci_disable_device() > > > twise in case

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/selftests: Exercise basic RPS interrupt generation URL : https://patchwork.freedesktop.org/series/75983/ State : warning == Summary == $ dim checkpatch origin/drm-tip fbb035e1d2f5 drm/i915/selftests: Exercise basic RPS

Re: [Intel-gfx] [PATCH 05/59] drm/vboxvidoe: use managed pci functions

2020-04-15 Thread Thomas Zimmermann
The commit's headline says 'vboxvidoe'. Am 15.04.20 um 09:39 schrieb Daniel Vetter: > Allows us to drop the cleanup code on the floor. > > Sam noticed in his review: >> With this change we avoid calling pci_disable_device() >> twise in case vbox_mm_init() fails. >> Once in vbox_hw_fini() and

[Intel-gfx] [PATCH v5 2/4] drm/i915: Add i915_lpsp_capability debugfs

2020-04-15 Thread Anshuman Gupta
New i915_pm_lpsp igt solution approach relies on connector specific debugfs attribute i915_lpsp_capability, it exposes whether an output is capable of driving lpsp. v2: - CI fixup. v3: - register i915_lpsp_info only for supported connector. [Jani] - use intel_display_power_well_is_enabled()

[Intel-gfx] [PATCH v5 1/4] drm/i915: Power well id for ICL PG3

2020-04-15 Thread Anshuman Gupta
Gen11 onwards PG3 is contains functions for pipe B, external displays, and VGA. It make sense to add a power well id with name ICL_DISP_PW_3 rather then TGL_DISP_PW_3, Also PG3 power well id requires to know if lpsp is enabled. Reviewed-by: Animesh Manna Signed-off-by: Anshuman Gupta ---

[Intel-gfx] [PATCH v5 0/4] i915 lpsp support for lpsp igt

2020-04-15 Thread Anshuman Gupta
v5 has fixed the review comment for [PATCH 2/4] provided by animesh and rebased the series. Test-with: 20200409053951.26929-2-anshuman.gu...@intel.com Anshuman Gupta (4): drm/i915: Power well id for ICL PG3 drm/i915: Add i915_lpsp_capability debugfs drm/i915: Add connector dbgfs for all

[Intel-gfx] [PATCH v5 3/4] drm/i915: Add connector dbgfs for all connectors

2020-04-15 Thread Anshuman Gupta
Add connector debugfs attributes for each intel connector which is getting register. v2: - adding connector debugfs for each connector in intel_connector_register() to fix CI failure for legacy connectors. Reviewed-by: Jani Nikula Signed-off-by: Anshuman Gupta ---

[Intel-gfx] [PATCH v5 4/4] drm/i915: Add i915_lpsp_status debugfs attribute

2020-04-15 Thread Anshuman Gupta
It requires a separate debugfs attribute to expose lpsp status to user space, as there may be display less configuration without any valid connected output, those configuration will not be able to test lpsp status, if lpsp status exposed from a connector based debugfs attribute. Reviewed-by:

[Intel-gfx] [CI 1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Chris Wilson
Since we depend upon RPS generating interrupts after evaluation intervals to determine when to up/down clock the GPU, it is imperative that we successfully enable interrupt generation! Verify that we do see an interrupt if we keep the GPU busy for an entire EI. Signed-off-by: Chris Wilson ---

[Intel-gfx] [CI 2/2] drm/i915/gt: Update PMINTRMSK holding fw

2020-04-15 Thread Chris Wilson
If we use a non-forcewaked write to PMINTRMSK, it does not take effect until much later, if at all, causing a loss of RPS interrupts and no GPU reclocking, leaving the GPU running at the wrong frequency for long periods of time. Reported-by: Francisco Jerez Suggested-by: Francisco Jerez Fixes:

Re: [Intel-gfx] [PATCH 1/3] drm/i915/display: Load DP_TP_CTL/STATUS offset before use it

2020-04-15 Thread Souza, Jose
On Tue, 2020-04-14 at 22:33 -0700, Lucas De Marchi wrote: > On Tue, Apr 14, 2020 at 4:03 PM José Roberto de Souza > wrote: > > Right now dp.regs.dp_tp_ctl/status are only set during the encoder > > pre_enable() hook, what is causing all reads and writes to those > > registers to go to offset 0x0

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3)

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3) URL : https://patchwork.freedesktop.org/series/75973/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8301 -> Patchwork_17313

[Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3)

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3) URL : https://patchwork.freedesktop.org/series/75973/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3)

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev3) URL : https://patchwork.freedesktop.org/series/75973/ State : warning == Summary == $ dim checkpatch origin/drm-tip 0454a6c7dd1e drm/i915/selftests: Exercise basic RPS

[Intel-gfx] ✓ Fi.CI.BAT: success for SAGV support for Gen12+ (rev21)

2020-04-15 Thread Patchwork
== Series Details == Series: SAGV support for Gen12+ (rev21) URL : https://patchwork.freedesktop.org/series/75129/ State : success == Summary == CI Bug Log - changes from CI_DRM_8301 -> Patchwork_17312 Summary --- **SUCCESS** No

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [v5,1/8] drm/i915/display: Move out code to return the digital_port of the aux ch

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [v5,1/8] drm/i915/display: Move out code to return the digital_port of the aux ch URL : https://patchwork.freedesktop.org/series/75941/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17300_full

[Intel-gfx] ✗ Fi.CI.DOCS: warning for SAGV support for Gen12+ (rev21)

2020-04-15 Thread Patchwork
== Series Details == Series: SAGV support for Gen12+ (rev21) URL : https://patchwork.freedesktop.org/series/75129/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout, other

Re: [Intel-gfx] [PATCH] drm/i915/icl: Update forcewake firmware ranges

2020-04-15 Thread Sripada, Radhakrishna
> -Original Message- > From: Roper, Matthew D > Sent: Wednesday, April 15, 2020 7:52 AM > To: Sripada, Radhakrishna > Cc: intel-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/i915/icl: Update forcewake firmware ranges > > On Wed, Apr 15, 2020 at 07:28:18AM -0700, Sripada,

[Intel-gfx] [PATCH] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Chris Wilson
Since we depend upon RPS generating interrupts after evaluation intervals to determine when to up/down clock the GPU, it is imperative that we successfully enable interrupt generation! Verify that we do see an interrupt if we keep the GPU busy for an entire EI. Signed-off-by: Chris Wilson ---

[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev2)

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with drm/i915/selftests: Exercise basic RPS interrupt generation (rev2) URL : https://patchwork.freedesktop.org/series/75973/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: Move the batch buffer pool from the engine to the gt

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/gt: Move the batch buffer pool from the engine to the gt URL : https://patchwork.freedesktop.org/series/75979/ State : success == Summary == CI Bug Log - changes from CI_DRM_8301 -> Patchwork_17310

[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/gt: Move the batch buffer pool from the engine to the gt

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/gt: Move the batch buffer pool from the engine to the gt URL : https://patchwork.freedesktop.org/series/75979/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/2] drm/i915/gt: Try to smooth RPS spikes

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/gt: Try to smooth RPS spikes URL : https://patchwork.freedesktop.org/series/75927/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17298_full

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Move the batch buffer pool from the engine to the gt

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/gt: Move the batch buffer pool from the engine to the gt URL : https://patchwork.freedesktop.org/series/75979/ State : warning == Summary == $ dim checkpatch origin/drm-tip 4498659d6015 drm/i915/gt: Move the batch buffer pool from the engine to the gt

[Intel-gfx] ✗ Fi.CI.BUILD: failure for i915 lpsp support for lpsp igt (rev8)

2020-04-15 Thread Patchwork
== Series Details == Series: i915 lpsp support for lpsp igt (rev8) URL : https://patchwork.freedesktop.org/series/74648/ State : failure == Summary == Applying: drm/i915: Power well id for ICL PG3 Applying: drm/i915: Add i915_lpsp_capability debugfs Applying: drm/i915: Add connector dbgfs for

Re: [Intel-gfx] [PATCH 22/59] drm/gm12u320: Don't use drm_device->dev_private

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Upcasting using a container_of macro is more typesafe, faster and easier for the compiler to optimize. Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans ---

Re: [Intel-gfx] [PATCH 21/59] drm/gm12u320: Use devm_drm_dev_alloc

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Already using devm_drm_dev_init, so very simple replacment. Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans --- drivers/gpu/drm/tiny/gm12u320.c | 13 -

Re: [Intel-gfx] [PATCH 06/59] drm/vboxvideo: Use devm_gen_pool_create

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Aside from deleting all the cleanup code we're now also setting a name for the pool Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans ---

[Intel-gfx] [PATCH v24 05/11] drm/i915: Use bw state for per crtc SAGV evaluation

2020-04-15 Thread Stanislav Lisovskiy
Future platforms require per-crtc SAGV evaluation and serializing global state when those are changed from different commits. v2: - Add has_sagv check to intel_crtc_can_enable_sagv so that it sets bit in reject mask. - Use bw_state in intel_pre/post_plane_enable_sagv instead of

Re: [Intel-gfx] [PATCH 05/59] drm/vboxvidoe: use managed pci functions

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Allows us to drop the cleanup code on the floor. Sam noticed in his review: With this change we avoid calling pci_disable_device() twise in case vbox_mm_init() fails. Once in vbox_hw_fini() and once in the error path. v2: Include Sam's review

Re: [Intel-gfx] [PATCH 03/59] drm/vboxvideo: Use devm_drm_dev_alloc

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Straightforward conversion. Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans --- drivers/gpu/drm/vboxvideo/vbox_drv.c | 19 +-- 1 file changed, 5 insertions(+), 14

Re: [Intel-gfx] [PATCH 04/59] drm/vboxvideo: Stop using drm_device->dev_private

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: We use the baseclass pattern here, so lets to the proper (and more typesafe) upcasting. Acked-by: Sam Ravnborg Acked-by: Thomas Zimmermann Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans

Re: [Intel-gfx] [PATCH 02/59] drm/vboxvideo: drop DRM_MTRR_WC #define

2020-04-15 Thread Hans de Goede
Hi, On 4/15/20 9:39 AM, Daniel Vetter wrote: Doesn't apply to upstream kernels since a rather long time. Acked-by: Sam Ravnborg Signed-off-by: Daniel Vetter Cc: Hans de Goede LGTM: Reviewed-by: Hans de Goede Regards, Hans --- drivers/gpu/drm/vboxvideo/vbox_ttm.c | 12

[Intel-gfx] [PATCH v24 03/11] drm/i915: Prepare to extract gen specific functions from intel_can_enable_sagv

2020-04-15 Thread Stanislav Lisovskiy
Addressing one of the comments, recommending to extract platform specific code from intel_can_enable_sagv as a preparation, before we are going to add support for tgl+. v2: - Removed whitespace v3: - Removed premature debug and new cycle introduction(Ville) - Added missing no active pipes

[Intel-gfx] [PATCH] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Chris Wilson
Since we depend upon RPS generating interrupts after evaluation intervals to determine when to up/down clock the GPU, it is imperative that we successfully enable interrupt generation! Verify that we do see an interrupt if we keep the GPU busy for an entire EI. Signed-off-by: Chris Wilson ---

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Always defer fenced work to the worker

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Always defer fenced work to the worker URL : https://patchwork.freedesktop.org/series/75917/ State : success == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17295_full Summary

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Exercise basic RPS interrupt generation (rev5)

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/selftests: Exercise basic RPS interrupt generation (rev5) URL : https://patchwork.freedesktop.org/series/75966/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8301 -> Patchwork_17308

Re: [Intel-gfx] [PATCH] drm/i915/icl: Update forcewake firmware ranges

2020-04-15 Thread Matt Roper
On Wed, Apr 15, 2020 at 07:28:18AM -0700, Sripada, Radhakrishna wrote: > Hi Matt, > > > -Original Message- > > From: Roper, Matthew D > > Sent: Tuesday, April 14, 2020 11:40 AM > > To: Sripada, Radhakrishna > > Cc: intel-gfx@lists.freedesktop.org > > Subject: Re: [PATCH] drm/i915/icl:

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Fix indirect context size calculation

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915: Fix indirect context size calculation URL : https://patchwork.freedesktop.org/series/75916/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17294_full Summary

[Intel-gfx] [PATCH] drm/i915/gt: Move the batch buffer pool from the engine to the gt

2020-04-15 Thread Chris Wilson
Since the introduction of 'soft-rc6', we aim to park the device quickly and that results in frequent idling of the whole device. Currently upon idling we free the batch buffer pool, and so this renders the cache ineffective for many workloads. If we want to have an effective cache of recently

[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/selftests: Exercise basic RPS interrupt generation (rev5)

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/selftests: Exercise basic RPS interrupt generation (rev5) URL : https://patchwork.freedesktop.org/series/75966/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING:

[Intel-gfx] [PATCH v24 04/11] drm/i915: Add pre/post plane updates for SAGV

2020-04-15 Thread Stanislav Lisovskiy
Lets have a unified way to handle SAGV changes, espoecially considering the upcoming Gen12 changes. Current "standard" way of doing this in commit_tail is pre/post plane updates, when everything which has to be forbidden and not supported in new config has to be restricted before update and

[Intel-gfx] [PATCH v24 00/11] SAGV support for Gen12+

2020-04-15 Thread Stanislav Lisovskiy
For Gen11+ platforms BSpec suggests disabling specific QGV points separately, depending on bandwidth limitations and current display configuration. Thus it required adding a new PCode request for disabling QGV points and some refactoring of already existing SAGV code. Also had to refactor

[Intel-gfx] [PATCH v24 02/11] drm/i915: Add intel_atomic_get_bw_*_state helpers

2020-04-15 Thread Stanislav Lisovskiy
Add correspondent helpers to be able to get old/new bandwidth global state object. v2: - Fixed typo in function call v3: - Changed new functions naming to use convention proposed by Jani Nikula, i.e intel_bw_* in intel_bw.c file. v4: - Change function naming back to intel_atomic* pattern,

[Intel-gfx] [PATCH v24 11/11] drm/i915: Enable SAGV support for Gen12

2020-04-15 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 1ab466e4a0c6..dfe511ab2d3b 100644 ---

[Intel-gfx] [PATCH v24 09/11] drm/i915: Rename bw_state to new_bw_state

2020-04-15 Thread Stanislav Lisovskiy
That is a preparation patch before next one where we introduce old_bw_state and a bunch of other changes as well. In a review comment it was suggested to split out at least that renaming into a separate patch, what is done here. v2: Removed spurious space Reviewed-by: Ville Syrjälä

[Intel-gfx] [PATCH v24 10/11] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-04-15 Thread Stanislav Lisovskiy
According to BSpec 53998, we should try to restrict qgv points, which can't provide enough bandwidth for desired display configuration. Currently we are just comparing against all of those and take minimum(worst case). v2: Fixed wrong PCode reply mask, removed hardcoded values. v3: Forbid

[Intel-gfx] [PATCH v24 07/11] drm/i915: Add TGL+ SAGV support

2020-04-15 Thread Stanislav Lisovskiy
Starting from TGL we need to have a separate wm0 values for SAGV and non-SAGV which affects how calculations are done. v2: Remove long lines v3: Removed COLOR_PLANE enum references Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8 +-

[Intel-gfx] [PATCH v24 05/11] drm/i915: Use bw state for per crtc SAGV evaluation

2020-04-15 Thread Stanislav Lisovskiy
Future platforms require per-crtc SAGV evaluation and serializing global state when those are changed from different commits. v2: - Add has_sagv check to intel_crtc_can_enable_sagv so that it sets bit in reject mask. - Use bw_state in intel_pre/post_plane_enable_sagv instead of

[Intel-gfx] [PATCH v24 08/11] drm/i915: Added required new PCode commands

2020-04-15 Thread Stanislav Lisovskiy
We need a new PCode request commands and reply codes to be added as a prepartion patch for QGV points restricting for new SAGV support. v2: - Extracted those changes into separate patch (Ville Syrjälä) v3: - Moved new PCode masks to another place from PCode commands(Ville)

[Intel-gfx] [PATCH v24 03/11] drm/i915: Prepare to extract gen specific functions from intel_can_enable_sagv

2020-04-15 Thread Stanislav Lisovskiy
Addressing one of the comments, recommending to extract platform specific code from intel_can_enable_sagv as a preparation, before we are going to add support for tgl+. v2: - Removed whitespace v3: - Removed premature debug and new cycle introduction(Ville) - Added missing no active pipes

[Intel-gfx] [PATCH v24 06/11] drm/i915: Separate icl and skl SAGV checking

2020-04-15 Thread Stanislav Lisovskiy
Introduce platform dependent SAGV checking in combination with bandwidth state pipe SAGV mask. v2, v3: Fix rebase conflict Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 38 - 1 file changed, 28 insertions(+), 10 deletions(-) diff

[Intel-gfx] [PATCH v24 01/11] drm/i915: Introduce skl_plane_wm_level accessor.

2020-04-15 Thread Stanislav Lisovskiy
For future Gen12 SAGV implementation we need to seemlessly alter wm levels calculated, depending on whether we are allowed to enable SAGV or not. So this accessor will give additional flexibility to do that. Currently this accessor is still simply working as "pass-through" function. This will be

[Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-15 Thread Chris Wilson
The poll() is proving unreliable, where our tests timeout without the spinner being terminated. Let's try a blocking read instead! Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 Signed-off-by: Chris Wilson Cc: "Dixit, Ashutosh" --- lib/igt_dummyload.c | 12 ++-- 1 file

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/selftests: Exercise basic RPS interrupt generation (rev5)

2020-04-15 Thread Patchwork
== Series Details == Series: drm/i915/selftests: Exercise basic RPS interrupt generation (rev5) URL : https://patchwork.freedesktop.org/series/75966/ State : warning == Summary == $ dim checkpatch origin/drm-tip ff4a038bdd9a drm/i915/selftests: Exercise basic RPS interrupt generation -:46:

Re: [Intel-gfx] [PATCH] drm/i915/icl: Update forcewake firmware ranges

2020-04-15 Thread Sripada, Radhakrishna
Hi Matt, > -Original Message- > From: Roper, Matthew D > Sent: Tuesday, April 14, 2020 11:40 AM > To: Sripada, Radhakrishna > Cc: intel-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/i915/icl: Update forcewake firmware ranges > > On Mon, Apr 13, 2020 at 02:00:03AM -0700,

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [v4,1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD

2020-04-15 Thread Patchwork
== Series Details == Series: series starting with [v4,1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD URL : https://patchwork.freedesktop.org/series/75899/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8298_full -> Patchwork_17293_full

  1   2   3   >