[PATCH] drm/i915/dp: Enable AUX based backlight for HDR

2024-03-14 Thread Suraj Kandpal
As of now whenerver HDR is switched on we use the PWM to change the backlight as opposed to AUX based backlight changes in terms of nits. This patch writes to the appropriate DPCD registers to enable aux based backlight using values in nits. --v2 -Fix max_cll and max_fall assignment [Jani] -Fix

[PULL] drm-xe-next-fixes

2024-03-14 Thread Lucas De Marchi
Hi Dave and Sima, Here are the drm-xe fixes for the 6.9 cycle. Just 3 fixes: one trivial fix for error path handling, one to avoid pinning all VMAs in drm_gpuvm_exec_lock() when num_batch_buffer passed to xe_exec is 0 and the other to allow userspace to free userptr while still having bindings.

✗ Fi.CI.IGT: failure for drm/xe/display: fix type of intel_uncore_read*() functions

2024-03-14 Thread Patchwork
== Series Details == Series: drm/xe/display: fix type of intel_uncore_read*() functions URL : https://patchwork.freedesktop.org/series/131122/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14429_full -> Patchwork_131122v1_full

Re: [PATCH] drm/i915/guc: Update w/a 14019159160

2024-03-14 Thread Matt Roper
On Tue, Mar 12, 2024 at 04:43:06PM -0700, John Harrison wrote: > On 3/12/2024 09:24, Matt Roper wrote: > > On Thu, Mar 07, 2024 at 06:01:29PM -0800, john.c.harri...@intel.com wrote: > > > From: John Harrison > > > > > > An existing workaround has been extended in both platforms affected > > >

Re: [PATCH v2 6/6] drm/i915: Remove special handling for !RCS_MASK()

2024-03-14 Thread Matt Roper
On Tue, Mar 12, 2024 at 04:51:45PM -0700, Lucas De Marchi wrote: > With both XEHPSDV and PVC removed (as platforms, most of their code > remain used by others), there's no need to handle !RCS_MASK() as > other platforms don't ever have fused-off render. Remove those code > paths and the special WA

Re: [PATCH v2 3/6] drm/i915: Stop inheriting IP_VER(12, 50)

2024-03-14 Thread Matt Roper
On Tue, Mar 12, 2024 at 04:51:42PM -0700, Lucas De Marchi wrote: > All the platforms that inherit the media/graphics version > from XE_HPM_FEATURES / XE_HP_FEATURES just override it to another > version. Just set the version directly in the respective struct > and remove the versions from the

Re: [PATCH v2 2/6] drm/i915: Remove XEHP_FWRANGES()

2024-03-14 Thread Matt Roper
On Tue, Mar 12, 2024 at 04:51:41PM -0700, Lucas De Marchi wrote: > Now that DG2 is the only user of this forcewake table, remove the macro > and use FORCEWAKE_RENDER explicitly for range 0xd800 - 0xd87f. > > Suggested-by: Matt Roper > Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper >

✗ Fi.CI.BAT: failure for drm/i915/gt: Report full vm address range (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915/gt: Report full vm address range (rev2) URL : https://patchwork.freedesktop.org/series/131095/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14433 -> Patchwork_131095v2 Summary ---

✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915/gt: Report full vm address range (rev2) URL : https://patchwork.freedesktop.org/series/131095/ State : warning == Summary == Error: dim checkpatch failed de74046741ce drm/i915/gt: Report full vm address range -:20: WARNING:BAD_SIGN_OFF: Duplicate

✗ Fi.CI.BAT: failure for drm/i915: cleanup dead code (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915: cleanup dead code (rev2) URL : https://patchwork.freedesktop.org/series/131049/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14433 -> Patchwork_131049v2 Summary ---

✗ Fi.CI.SPARSE: warning for drm/i915: cleanup dead code (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915: cleanup dead code (rev2) URL : https://patchwork.freedesktop.org/series/131049/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✗ Fi.CI.CHECKPATCH: warning for drm/i915: cleanup dead code (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915: cleanup dead code (rev2) URL : https://patchwork.freedesktop.org/series/131049/ State : warning == Summary == Error: dim checkpatch failed 8c0c8bf0df8f drm/i915: Drop dead code for xehpsdv -:918: WARNING:LINE_CONTINUATIONS: Avoid unnecessary line

✗ Fi.CI.BAT: failure for series starting with [01/11] drm/xe: Introduce xe_pm_runtime_get_noresume for inner callers

2024-03-14 Thread Patchwork
== Series Details == Series: series starting with [01/11] drm/xe: Introduce xe_pm_runtime_get_noresume for inner callers URL : https://patchwork.freedesktop.org/series/131141/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14433 -> Patchwork_131141v1

✗ Fi.CI.SPARSE: warning for series starting with [01/11] drm/xe: Introduce xe_pm_runtime_get_noresume for inner callers

2024-03-14 Thread Patchwork
== Series Details == Series: series starting with [01/11] drm/xe: Introduce xe_pm_runtime_get_noresume for inner callers URL : https://patchwork.freedesktop.org/series/131141/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be

✓ Fi.CI.IGT: success for Enable LNL display (rev2)

2024-03-14 Thread Patchwork
== Series Details == Series: Enable LNL display (rev2) URL : https://patchwork.freedesktop.org/series/130689/ State : success == Summary == CI Bug Log - changes from CI_DRM_14421_full -> Patchwork_130689v2_full Summary ---

✓ Fi.CI.BAT: success for Disable automatic load CCS load balancing (rev10)

2024-03-14 Thread Patchwork
== Series Details == Series: Disable automatic load CCS load balancing (rev10) URL : https://patchwork.freedesktop.org/series/129951/ State : success == Summary == CI Bug Log - changes from CI_DRM_14433 -> Patchwork_129951v10 Summary

Recall: ✗ Fi.CI.IGT: failure for drm/i915/dp: Increase idle pattern wait timeout to 2ms (rev4)

2024-03-14 Thread Illipilli, TejasreeX
Illipilli, TejasreeX would like to recall the message, "✗ Fi.CI.IGT: failure for drm/i915/dp: Increase idle pattern wait timeout to 2ms (rev4)".

Re: [FYI][PATCH] tracing/treewide: Remove second parameter of __assign_str()

2024-03-14 Thread Steven Rostedt
On Thu, 14 Mar 2024 09:57:57 -0700 Alison Schofield wrote: > On Fri, Feb 23, 2024 at 12:56:34PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > [ > >This is a treewide change. I will likely re-create this patch again in > >the second week of the merge window of

✗ Fi.CI.SPARSE: warning for Disable automatic load CCS load balancing (rev10)

2024-03-14 Thread Patchwork
== Series Details == Series: Disable automatic load CCS load balancing (rev10) URL : https://patchwork.freedesktop.org/series/129951/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✗ Fi.CI.CHECKPATCH: warning for Disable automatic load CCS load balancing (rev10)

2024-03-14 Thread Patchwork
== Series Details == Series: Disable automatic load CCS load balancing (rev10) URL : https://patchwork.freedesktop.org/series/129951/ State : warning == Summary == Error: dim checkpatch failed 67800c9b3ada drm/i915/gt: Disable HW load balancing for CCS 6b604822e329 drm/i915/gt: Do not

Re: [PATCH 03/11] drm/i915/display: convert inner wakeref get towards get_if_in_use

2024-03-14 Thread Francois Dugast
On Thu, Mar 14, 2024 at 10:10:13AM -0400, Rodrigo Vivi wrote: > This patch brings no functional change. Since at this point of > the code we are already asserting a wakeref was held, it means > that we are with runtime_pm 'in_use' and in practical terms we > are only bumping the pm_runtime usage

Re: [PATCH 02/11] drm/xe: Introduce intel_runtime_pm_get_noresume at compat-i915-headers for display

2024-03-14 Thread Francois Dugast
Hi, On Thu, Mar 14, 2024 at 10:10:12AM -0400, Rodrigo Vivi wrote: > The i915-display will start using the intel_runtime_pm_noresume. > So we need to add the compat header before it. Or "So we need to add it to the compat header before"? > > Signed-off-by: Rodrigo Vivi > --- >

Re: [FYI][PATCH] tracing/treewide: Remove second parameter of __assign_str()

2024-03-14 Thread Alison Schofield
On Fri, Feb 23, 2024 at 12:56:34PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > [ >This is a treewide change. I will likely re-create this patch again in >the second week of the merge window of v6.9 and submit it then. Hoping >to keep the conflicts that it will

Re: [PATCH v2] drm/i915/gem: Execbuffer objects must have struct pages.

2024-03-14 Thread Nirmoy Das
On 3/12/2024 3:55 PM, Jonathan Cavitt wrote: We cannot write requests to objects without struct pages, so escape early if the requests are bound to objects that lack them. Signed-off-by: Jonathan Cavitt --- v2: s/vma-obj/vma->obj drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +++

Re: [PATCH] drm/i915/gt: Report full vm address range

2024-03-14 Thread Nirmoy Das
On 3/14/2024 3:04 PM, Lionel Landwerlin wrote: Hi Andi, In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long as that is adjusted by the kernel What do you mean by adjusted by, should it be a aligned size? I915_CONTEXT_PARAM_GTT_SIZE ioctl is returning vm->total which is

Re: [PATCH v6 4/4] drm/i915/display: Increase number of fast wake precharge pulses

2024-03-14 Thread Hogander, Jouni
On Wed, 2024-03-13 at 16:01 +0200, Ville Syrjälä wrote: > On Wed, Mar 13, 2024 at 03:32:21PM +0200, Jouni Högander wrote: > > Increasing number of fast wake sync pulses seem to fix problems > > with > > certain PSR panels. This should be ok for other panels as well as > > the eDP > > specification

[PATCH 11/11] drm/xe: Kill xe_device_mem_access_{get*,put}

2024-03-14 Thread Rodrigo Vivi
Let's simply convert all the current callers towards direct xe_pm_runtime access and remove this extra layer of indirection. v2: Convert all the current callers instead of a big refactor at once. Signed-off-by: Rodrigo Vivi Reviewed-by: Matthew Auld --- drivers/gpu/drm/xe/display/xe_fb_pin.c

[PATCH 10/11] drm/xe: Ensure all the inner access are using the _noresume variant

2024-03-14 Thread Rodrigo Vivi
At this point mem_access references should be only used as inner points of the execution and a get with synchronous resume previously called at an outer point. So, before killing mem_acces in favor of direct accsess, let's ensure that we first convert them towards the new _noresume variant that

[PATCH 09/11] drm/xe: Convert mem_access_if_ongoing to direct xe_pm_runtime_get_if_active

2024-03-14 Thread Rodrigo Vivi
Now that assert_mem_access is relying directly on the pm_runtime state instead of the counters, there's no reason why we cannot use the pm_runtime functions directly. Signed-off-by: Rodrigo Vivi Reviewed-by: Matthew Auld --- drivers/gpu/drm/xe/xe_device.c | 17 -

[PATCH 08/11] drm/xe: Removing extra mem_access protection from runtime pm

2024-03-14 Thread Rodrigo Vivi
This is not needed any longer, now that we have all the protection in place with the runtime pm itself. Signed-off-by: Rodrigo Vivi Reviewed-by: Matthew Auld --- drivers/gpu/drm/xe/xe_device.c | 8 drivers/gpu/drm/xe/xe_device.h | 1 - drivers/gpu/drm/xe/xe_pm.c | 3 --- 3 files

[PATCH 07/11] drm/xe: Convert xe_gem_fault to use direct xe_pm_runtime calls

2024-03-14 Thread Rodrigo Vivi
The gem page fault is one of the outer bound protections where we want to ensure that the hardware is in D0 before proceeding with memory access. Let's convert it towards the xe_pm_runtime functions directly so we can then convert the mem_access to be inner protection only and then Kill it for

[PATCH 05/11] drm/xe: Convert GSC HDCP from mem_access to direct xe_pm_runtime calls

2024-03-14 Thread Rodrigo Vivi
We need to convert so we can continue to kill the mem_access. At this point we should be protected by the display wakerefs already, so let's use the noresume variant. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 06/11] drm/xe: Remove useless mem_access during probe

2024-03-14 Thread Rodrigo Vivi
xe_pm_init is the very last thing during the xe_pci_probe(), hence these protections are useless from the point of view of ensuring that the device is awake. Let's remove it so we continue towards the goal of killing xe_device_mem_access. v2: Adding more cases v3: Provide a separate fix for

[PATCH 04/11] drm/xe: Move lockdep protection from mem_access to xe_pm_runtime

2024-03-14 Thread Rodrigo Vivi
The mem_access itself is not holding any lock, but attempting to train lockdep with possible scarring locks happening during runtime pm. We are going soon to kill the mem_access get and put helpers in favor of direct xe_pm_runtime calls, so let's just move this lock around to where it now belongs.

[PATCH 03/11] drm/i915/display: convert inner wakeref get towards get_if_in_use

2024-03-14 Thread Rodrigo Vivi
This patch brings no functional change. Since at this point of the code we are already asserting a wakeref was held, it means that we are with runtime_pm 'in_use' and in practical terms we are only bumping the pm_runtime usage counter and moving on. However, xe driver has a lockdep annotation

[PATCH 02/11] drm/xe: Introduce intel_runtime_pm_get_noresume at compat-i915-headers for display

2024-03-14 Thread Rodrigo Vivi
The i915-display will start using the intel_runtime_pm_noresume. So we need to add the compat header before it. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 01/11] drm/xe: Introduce xe_pm_runtime_get_noresume for inner callers

2024-03-14 Thread Rodrigo Vivi
Let's ensure that we have an option for inner callers that will raise WARN if device is not active and not protected by outer callers. Make this also a void function forcing every caller to unconditionally put the reference back afterwards. This will be very important for cases where we want to

Re: [PATCH] drm/i915/gt: Report full vm address range

2024-03-14 Thread Lionel Landwerlin
Hi Andi, In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long as that is adjusted by the kernel, we should be able to continue working without issues. Acked-by: Lionel Landwerlin Thanks, -Lionel On 13/03/2024 21:39, Andi Shyti wrote: Commit 9bb66c179f50 ("drm/i915:

Re: [PATCH v2] drm/i915/gem: Execbuffer objects must have struct pages.

2024-03-14 Thread Andi Shyti
Hi Jonathan, On Tue, Mar 12, 2024 at 07:55:06AM -0700, Jonathan Cavitt wrote: > We cannot write requests to objects without struct pages, so escape > early if the requests are bound to objects that lack them. > > Signed-off-by: Jonathan Cavitt is this a fix? Do you need Fixes: 544460c33821

✓ Fi.CI.BAT: success for drm/i915: Fix VMA UAF on destroy against deactivate race (rev8)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915: Fix VMA UAF on destroy against deactivate race (rev8) URL : https://patchwork.freedesktop.org/series/129026/ State : success == Summary == CI Bug Log - changes from CI_DRM_14430 -> Patchwork_129026v8

✗ Fi.CI.SPARSE: warning for drm/i915: Fix VMA UAF on destroy against deactivate race (rev8)

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915: Fix VMA UAF on destroy against deactivate race (rev8) URL : https://patchwork.freedesktop.org/series/129026/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [PATCH] drm/i915: Add includes for BUG_ON/BUILD_BUG_ON in i915_memcpy.c

2024-03-14 Thread Joonas Lahtinen
Quoting Rodrigo Vivi (2024-03-08 16:58:04) > On Fri, Mar 08, 2024 at 04:46:43PM +0200, Joonas Lahtinen wrote: > > Add standalone includes for BUG_ON and BUILD_BUG_ON to avoid build failure > > after linux-next include refactoring. > > any lore link so we can use with a 'Closes:' tag? > and

Re: [PATCH 0/6] drm: debug logging improvements

2024-03-14 Thread Jani Nikula
On Thu, 07 Mar 2024, Jani Nikula wrote: > Switch a handful of places over to drm device based logging and WARNs, > unify connector and crtc logging, etc. Ping for review, please. :) > > Jani Nikula (6): > drm/modes: add drm_mode_print() to dump mode in drm_printer > drm/probe-helper:

Re: [PATCH i-g-t v2 1/2] lib/kunit: Execute test cases synchronously

2024-03-14 Thread Janusz Krzysztofik
On Thursday, 14 March 2024 11:29:38 CET Kamil Konieczny wrote: > Hi Janusz, > On 2024-02-27 at 16:10:41 +0100, Janusz Krzysztofik wrote: > > Up to now we were loading a KUnit test module in test execution mode only > > once per subtest, in background, and then, in parallel with execution of > >

Re: [PATCH v3] Fix divide-by-zero regression on DP MST unplug with nouveau

2024-03-14 Thread Imre Deak
On Wed, Mar 13, 2024 at 10:06:30PM +, Chris Bainbridge wrote: > Fix a regression when using nouveau and unplugging a StarTech MSTDP122DP > DisplayPort 1.2 MST hub (the same regression does not appear when using > a Cable Matters DisplayPort 1.4 MST hub). Trace: > > divide error: [#1]

Re: [PATCH i-g-t v2 1/2] lib/kunit: Execute test cases synchronously

2024-03-14 Thread Kamil Konieczny
Hi Janusz, On 2024-02-27 at 16:10:41 +0100, Janusz Krzysztofik wrote: > Up to now we were loading a KUnit test module in test execution mode only > once per subtest, in background, and then, in parallel with execution of > test cases while the module was loading, we were looking through dmesg for

Re: [PATCH v5] drm/i915/dp: Increase idle pattern wait timeout to 2ms

2024-03-14 Thread Jani Nikula
On Mon, 11 Mar 2024, Gustavo Sousa wrote: > Quoting Shekhar Chauhan (2024-03-11 01:15:04-03:00) >>The driver currently waits 1ms for idle patterns, >>but for Xe2LPD and possibly future display IPs, >>it requires a 1640us (rounded up to 2ms) timeout >>whilst waiting for idle patterns for MST

Re: [PATCH v18 8/9] drm/i915/display: Compute vrr_vsync params

2024-03-14 Thread Nautiyal, Ankit K
On 3/13/2024 9:26 AM, Mitul Golani wrote: Compute vrr_vsync_start/end, which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Updated VSYNC_START/END macros to VRR_VSYNC_START/END. (Ankit) - Updated bit fields of

✓ Fi.CI.BAT: success for drm/i915/display: DMC wakelock implementation

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915/display: DMC wakelock implementation URL : https://patchwork.freedesktop.org/series/131124/ State : success == Summary == CI Bug Log - changes from CI_DRM_14429 -> Patchwork_131124v1 Summary ---

✗ Fi.CI.SPARSE: warning for drm/i915/display: DMC wakelock implementation

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915/display: DMC wakelock implementation URL : https://patchwork.freedesktop.org/series/131124/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: DMC wakelock implementation

2024-03-14 Thread Patchwork
== Series Details == Series: drm/i915/display: DMC wakelock implementation URL : https://patchwork.freedesktop.org/series/131124/ State : warning == Summary == Error: dim checkpatch failed 80db5bb4bd35 drm/i915/display: add support for DMC wakelocks Traceback (most recent call last): File

[PULL] drm-misc-next-fixes

2024-03-14 Thread Thomas Zimmermann
Hi Dave, Sima, here's the PR for drm-misc-next-fixes for this week. There's a fix for nouveau BOs and quite a few fixes for get_modes() functions. Best regards Thomas drm-misc-next-fixes-2024-03-14: Short summary of fixes pull: probe-helper: - never return negative values from .get_modes()

✓ Fi.CI.BAT: success for drm/xe/display: fix type of intel_uncore_read*() functions

2024-03-14 Thread Patchwork
== Series Details == Series: drm/xe/display: fix type of intel_uncore_read*() functions URL : https://patchwork.freedesktop.org/series/131122/ State : success == Summary == CI Bug Log - changes from CI_DRM_14429 -> Patchwork_131122v1

[PATCH v2 4/4] drm/i915/display: tie DMC wakelock to DC5/6 state transitions

2024-03-14 Thread Luca Coelho
We only need DMC wakelocks when we allow DC5 and DC6 states. Add the calls to enable and disable DMC wakelock accordingly. Signed-off-by: Luca Coelho --- drivers/gpu/drm/i915/display/intel_display_power_well.c | 7 +++ drivers/gpu/drm/i915/display/intel_dmc.c| 4 2

[PATCH v2 3/4] drm/i915/display: add module parameter to enable DMC wakelock

2024-03-14 Thread Luca Coelho
This feature should be disabled by default until properly tested and mature. Add a module parameter to enable the feature for testing, while keeping it disabled by default for now. Signed-off-by: Luca Coelho --- drivers/gpu/drm/i915/display/intel_display_params.c | 5 +

[PATCH v2 2/4] drm/i915/display: don't allow DMC wakelock on older hardware

2024-03-14 Thread Luca Coelho
Only allow running DMC wakelock code if the display version is 20 or greater. Signed-off-by: Luca Coelho --- drivers/gpu/drm/i915/display/intel_dmc_wl.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dmc_wl.c

[PATCH v2 1/4] drm/i915/display: add support for DMC wakelocks

2024-03-14 Thread Luca Coelho
In order to reduce the DC5->DC2 restore time, wakelocks have been introduced in DMC so the driver can tell it when registers and other memory areas are going to be accessed and keep their respective blocks awake. Implement this in the driver by adding the concept of DMC wakelocks. When the driver

[PATCH v2 0/4] drm/i915/display: DMC wakelock implementation

2024-03-14 Thread Luca Coelho
Hi, This is the fourth version of my series, the second as a proper patchset. Now sent for the drm-tip (intel-gfx). The changes comparing to v1 are just addressing Gustavo's comments. The major changes are: * Enable/disable the wakelocks on DC5-6 entry and exit instead of on DMC load and

[PATCH] drm/xe/display: fix type of intel_uncore_read*() functions

2024-03-14 Thread Luca Coelho
Some of the backported intel_uncore_read*() functions used the wrong types. Change the function declarations accordingly. Reviewed-by: Gustavo Sousa Signed-off-by: Luca Coelho --- drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)