✗ Fi.CI.IGT: failure for Documentation/i915: remove kernel-doc for DMC wakelocks

2024-05-10 Thread Patchwork
== Series Details == Series: Documentation/i915: remove kernel-doc for DMC wakelocks URL : https://patchwork.freedesktop.org/series/133435/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14746_full -> Patchwork_133435v1_full

Re: [RFC PATCH 0/3] Introducing I915_FORMAT_MOD_4_TILED_XE2_CCS Modifier for Xe2

2024-05-10 Thread Kenneth Graunke
On Tuesday, May 7, 2024 3:56:57 PM PDT Matt Roper wrote: > On Mon, May 06, 2024 at 09:52:35PM +0300, Juha-Pekka Heikkila wrote: > > These patches introduce I915_FORMAT_MOD_4_TILED_XE2_CCS modifier, which, > > from the kernel's perspective, behaves similarly to `I915_FORMAT_MOD_4_TILED`. > > This

Re: [RESEND 1/6] drm/nouveau: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Lyude Paul
Reviewed-by: Lyude Paul On Fri, 2024-05-10 at 18:08 +0300, Jani Nikula wrote: > Prefer the parsed results for is_hdmi and has_audio in display info > over > calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), > respectively. > > Conveniently, this also removes the need to use

Re: [PATCH 0/9] drm/i915: Plane fb refactoring

2024-05-10 Thread Ville Syrjälä
On Mon, May 06, 2024 at 03:57:09PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > A bit of cleanup/refactoring around plane fb stuff. > This is mainly prep work for a slightly bigger rework > of alignment handling. > > Ville Syrjälä (9): > drm/i915: Split gen2 vs. gen3 .max_stride() >

✓ Fi.CI.BAT: success for drm/i915: skl+ plane register stuff

2024-05-10 Thread Patchwork
== Series Details == Series: drm/i915: skl+ plane register stuff URL : https://patchwork.freedesktop.org/series/133458/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133458v1 Summary ---

✓ Fi.CI.BAT: success for drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-10 Thread Patchwork
== Series Details == Series: drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups URL : https://patchwork.freedesktop.org/series/133455/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133455v1 Summary

✗ Fi.CI.SPARSE: warning for drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-10 Thread Patchwork
== Series Details == Series: drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups URL : https://patchwork.freedesktop.org/series/133455/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [RESEND 0/6] drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-10 Thread Alex Deucher
On Fri, May 10, 2024 at 11:17 AM Jani Nikula wrote: > > I've sent this some moths ago, let's try again... > > BR, > Jani. > > Jani Nikula (6): > drm/nouveau: convert to using is_hdmi and has_audio from display info > drm/radeon: convert to using is_hdmi and has_audio from display info >

[PATCH 16/16] drm/i915: Handle SKL+ WM/DDB registers next to all other plane registers

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Having the plane WM/DDB regitster write functions in skl_watermarks.c is rather annoying when trying to implement DSB based plane updates. Move them into the respective files that handle all other plane register writes. Less places where I need to worry about the DSB vs. MMIO

[PATCH 15/16] drm/i915: Nuke skl_write_wm_level() and skl_ddb_entry_write()

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Get rid of skl_ddb_entry_write() and skl_write_wm_level() and just call intel_de_write_fw() directly. This is prep work towards DSB based plane updates where these wrappers are more of a hinderance. Done with cocci mostly: @@ expression D, R, L; @@ - skl_write_wm_level(D,

[PATCH 14/16] drm/i915: Extract skl_plane_{wm,ddb}_reg_val()

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Extract helpers to calculate the final wm/ddb register values for skl+. Will allow me to more cleanly remove the register write wrappers for these registers. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/skl_watermark.c | 29 +--- 1 file

[PATCH 13/16] drm/i915: Refactor skl+ plane register offset calculations

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Currentluy every skl+ plane register defines some intermediate macros to calculate the final register offset. Pull all of that into common macros, simplifying the final register offset stuff into just five defines: - raw register offsets for the planes 1 and 2 on pipes A and

[PATCH 12/16] drm/i915: Drop a few unwanted tabs from skl+ plane reg defines

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä A few extra tabs have snuck into the skl+ plane register bit definitions. Remove them. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/skl_universal_plane_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 11/16] drm/i915: Use REG_BIT for PLANE_WM bits

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä A couple of PLANE_WM bits were still using the hand rolled (1< --- drivers/gpu/drm/i915/display/skl_universal_plane_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane_regs.h

[PATCH 10/16] drm/i915: Shuffle the skl+ plane register definitions

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Rearrange the plane skl+ universal plane register definitions: - keep everything related to the same register in one place - sort based on register offset - unify the whitespace/etc a bit Signed-off-by: Ville Syrjälä --- .../i915/display/skl_universal_plane_regs.h | 502

[PATCH 09/16] drm/i915: Drop useless PLANE_FOO_3 register defines

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä We only need register defines for the first two planes on the first two pipes. Nuke everything else. Signed-off-by: Ville Syrjälä --- .../gpu/drm/i915/display/skl_universal_plane_regs.h | 12 1 file changed, 12 deletions(-) diff --git

[PATCH 08/16] drm/i915/gvt: Use PLANE_CTL and PLANE_SURF defines

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Stop hand rolling PLANE_CTL and PLANE_SURF for the third plane and just use the real thing. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_gvt_mmio_table.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 07/16] drm/i915/gvt: Use the full PLANE_KEY*() defines

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Stop hand rolling PLANE_KEY*() register defines and just use the real thing. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_gvt_mmio_table.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH 06/16] drm/i915/gvt: Use the proper PLANE_AUX_OFFSET() define

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Stop hand rolling PLANE_AUX_OFFSET() and just use the real thing. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/gvt/handlers.c | 24 ++--- drivers/gpu/drm/i915/gvt/reg.h | 2 --

[PATCH 05/16] drm/i915/gvt: Use the proper PLANE_AUX_DIST() define

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Stop hand rolling PLANE_AUX_DIST() and just use the real thing. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/gvt/handlers.c | 24 ++--- drivers/gpu/drm/i915/gvt/reg.h | 1 -

[PATCH 04/16] drm/i915: Move skl+ wm/ddb registers to proper headers

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä On SKL+ the watermark/DDB registers are proper per-plane registers. Move the definitons to their respective files. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- .../gpu/drm/i915/display/intel_cursor_regs.h | 20 +

[PATCH 03/16] drm/i915: Extract intel_cursor_regs.h

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Move most cursor register definitions into their own file. Declutters i915_reg.h a bit more. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_cursor.c | 1 + .../gpu/drm/i915/display/intel_cursor_regs.h | 78

[PATCH 02/16] drm/i915: Extract skl_universal_plane_regs.h

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Move most of the SKL+ universal plane register definitions into their own file. Declutters i915_reg.h a bit more. Cc: Zhenyu Wang CC: Zhi Wang Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 1 +

[PATCH 01/16] drm/i915: Nuke _MMIO_PLANE_GAMC()

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä _MMIO_PLANE_GAMC() is some leftover macro that is never used. Get rid of it. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_reg.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 00/16] drm/i915: skl+ plane register stuff

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Bunch of refactoring around skl+ plane registers. Ville Syrjälä (16): drm/i915: Nuke _MMIO_PLANE_GAMC() drm/i915: Extract skl_universal_plane_regs.h drm/i915: Extract intel_cursor_regs.h drm/i915: Move skl+ wm/ddb registers to proper headers drm/i915/gvt: Use the

[RESEND 6/6] drm/connector: update edid_blob_ptr documentation

2024-05-10 Thread Jani Nikula
Accessing the EDID via edid_blob_ptr causes chicken-and-egg problems. Keep edid_blob_ptr as the userspace interface that should be accessed via dedicated functions. Signed-off-by: Jani Nikula --- include/drm/drm_connector.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[RESEND 5/6] drm/edid: add a helper for EDID sysfs property show

2024-05-10 Thread Jani Nikula
Add a helper to get the EDID property for sysfs property show. This hides all the edid_blob_ptr usage within drm_edid.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_crtc_internal.h | 2 ++ drivers/gpu/drm/drm_edid.c | 33 +

[RESEND 4/6] drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
amdgpu_connector_edid() copies the EDID from edid_blob_ptr as a side effect if amdgpu_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using

[RESEND 3/6] drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
radeon_connector_edid() copies the EDID from edid_blob_ptr as a side effect if radeon_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using

[RESEND 2/6] drm/radeon: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Cc: Alex Deucher Cc: Christian König Cc: Pan, Xinhui Cc: amd-...@lists.freedesktop.org Signed-off-by: Jani Nikula ---

[RESEND 1/6] drm/nouveau: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Conveniently, this also removes the need to use edid_blob_ptr. v2: Reverse a backwards if condition (Ilia) Cc: Karol Herbst Cc: Lyude Paul

[RESEND 0/6] drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-10 Thread Jani Nikula
I've sent this some moths ago, let's try again... BR, Jani. Jani Nikula (6): drm/nouveau: convert to using is_hdmi and has_audio from display info drm/radeon: convert to using is_hdmi and has_audio from display info drm/radeon: remove radeon_connector_edid() and stop using

Re: PR for BMG DMC v2.06

2024-05-10 Thread Josh Boyer
Merged and pushed out. https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/210 josh On Thu, May 9, 2024 at 1:47 PM Gustavo Sousa wrote: > > The following changes since commit 93f329774542b9b7d57abb18ea8b6542f2d8feac: > > Merge branch 'robot/pr-0-1709214990' into 'main'

✓ Fi.CI.BAT: success for drm/i915/bmg: Load DMC

2024-05-10 Thread Patchwork
== Series Details == Series: drm/i915/bmg: Load DMC URL : https://patchwork.freedesktop.org/series/133452/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133452v1 Summary --- **SUCCESS** No

[PATCH] drm/i915/bmg: Load DMC

2024-05-10 Thread Gustavo Sousa
Load Battlemage's DMC. We re-use XELPDP_DMC_MAX_FW_SIZE since BMG's display is a derivative of Xe_LPD+ and has the same MMIO offset limits. Signed-off-by: Gustavo Sousa --- drivers/gpu/drm/i915/display/intel_dmc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH 0/8] drm/i915/pciids: PCI ID macro cleanups

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Jani Nikula wrote: > This is a spin-off from [1], including just the PCI ID macro cleanups, > as well as adding a bunch more cleanups. > > BR, > Jani. > > [1] https://lore.kernel.org/all/cover.1715086509.git.jani.nik...@intel.com/ > > > Jani Nikula (8): > drm/i915/pciids:

Re: [PATCH 7/8] drm/i915/pciids: remove 12 from INTEL_TGL_IDS()

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:20PM +0300, Jani Nikula wrote: > Most other PCI ID macros do not encode the gen in the name. Follow suit > for TGL. Reviewed-by: Rodrigo Vivi > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula > --- >

Re: [PATCH 6/8] drm/i915/pciids: remove 11 from INTEL_ICL_IDS()

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:19PM +0300, Jani Nikula wrote: > Most other PCI ID macros do not encode the gen in the name. Follow suit > for ICL. Reviewed-by: Rodrigo Vivi > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula > --- >

Re: [PATCH 5/8] drm/i915/pciids: don't include WHL/CML PCI IDs in CFL

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:18PM +0300, Jani Nikula wrote: > It's confusing for INTEL_CFL_IDS() to include all WHL and CML PCI > IDs. Even if we treat them the same in a lot of places, CML is a > platform of its own, and the lists of PCI IDs should not conflate them. > > Largely go by the idea

Re: [PATCH 4/8] drm/i915/pciids: add INTEL_IVB_IDS()

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:17PM +0300, Jani Nikula wrote: > Add INTEL_IVB_IDS() to identify all IVBs except IVB Q transcode. > Reviewed-by: Rodrigo Vivi > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula > --- > arch/x86/kernel/early-quirks.c

Re: [PATCH 3/8] drm/i915/pciids: add INTEL_SNB_IDS()

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:16PM +0300, Jani Nikula wrote: > Add INTEL_SNB_IDS() to identify all SNBs. Reviewed-by: Rodrigo Vivi > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula > --- > arch/x86/kernel/early-quirks.c | 3 +-- >

Re: [PATCH 2/8] drm/i915/pciids: add INTEL_ILK_IDS(), use acronym

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:15PM +0300, Jani Nikula wrote: > Most other PCI ID macros use platform acronyms. Follow suit for ILK. Add > INTEL_ILK_IDS() to identify all ILKs. Reviewed-by: Rodrigo Vivi > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula > --- >

Re: [PATCH 1/8] drm/i915/pciids: add INTEL_PNV_IDS(), use acronym

2024-05-10 Thread Rodrigo Vivi
On Fri, May 10, 2024 at 02:22:14PM +0300, Jani Nikula wrote: > Most other PCI ID macros use platform acronyms. Follow suit for PNV. Add > INTEL_PNV_IDS() to identify all PNVs. > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Jani Nikula Reviewed-by: Rodrigo Vivi > --- >

✓ Fi.CI.BAT: success for drm/i915/pciids: PCI ID macro cleanups

2024-05-10 Thread Patchwork
== Series Details == Series: drm/i915/pciids: PCI ID macro cleanups URL : https://patchwork.freedesktop.org/series/133444/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133444v1 Summary ---

✗ Fi.CI.CHECKPATCH: warning for drm/i915/pciids: PCI ID macro cleanups

2024-05-10 Thread Patchwork
== Series Details == Series: drm/i915/pciids: PCI ID macro cleanups URL : https://patchwork.freedesktop.org/series/133444/ State : warning == Summary == Error: dim checkpatch failed 74c4a4b08b9b drm/i915/pciids: add INTEL_PNV_IDS(), use acronym -:72: ERROR:COMPLEX_MACRO: Macros with complex

Re: [PATCH 2/2] drm/i915/display: Remove uhbr13.5 pll state values

2024-05-10 Thread Jani Nikula
On Thu, 09 May 2024, Arun R Murthy wrote: > uhbr13.5 is not supported on dg2/mtl. This patch removes the pll state > table for synps and c20 PHY. > > Signed-off-by: Arun R Murthy > --- > drivers/gpu/drm/i915/display/intel_cx0_phy.c | 26 -- > drivers/gpu/drm/i915/display/intel_dp.c

✓ Fi.CI.BAT: success for drm/i915: Plane fb refactoring (rev3)

2024-05-10 Thread Patchwork
== Series Details == Series: drm/i915: Plane fb refactoring (rev3) URL : https://patchwork.freedesktop.org/series/133231/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133231v3 Summary ---

✓ Fi.CI.BAT: success for series starting with [1/2] drm/xe/display: remove unused xe->enabled_irq_mask

2024-05-10 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/xe/display: remove unused xe->enabled_irq_mask URL : https://patchwork.freedesktop.org/series/133441/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_133441v1

✓ Fi.CI.BAT: success for Panel replay selective update support (rev11)

2024-05-10 Thread Patchwork
== Series Details == Series: Panel replay selective update support (rev11) URL : https://patchwork.freedesktop.org/series/128193/ State : success == Summary == CI Bug Log - changes from CI_DRM_14747 -> Patchwork_128193v11 Summary ---

✗ Fi.CI.SPARSE: warning for Panel replay selective update support (rev11)

2024-05-10 Thread Patchwork
== Series Details == Series: Panel replay selective update support (rev11) URL : https://patchwork.freedesktop.org/series/128193/ 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 Panel replay selective update support (rev11)

2024-05-10 Thread Patchwork
== Series Details == Series: Panel replay selective update support (rev11) URL : https://patchwork.freedesktop.org/series/128193/ State : warning == Summary == Error: dim checkpatch failed 4ce3205a70e0 drm/i915/psr: Rename has_psr2 as has_sel_update 2d9a71ec0767 drm/i915/display: Do not print

Re: [PATCH 9/9] drm/i915: Rename the fb pinning functions to indicate the address space

2024-05-10 Thread Jani Nikula
On Mon, 06 May 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Rename the fb pinning functions such that their name directly > informs us what gets pinned into which address space. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- >

Re: [PATCH v2 8/9] drm/i915: Cleanup fbdev fb setup

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > We use a mix of 'intel_fb' vs. 'ifbdev->fb' in the same function. > Both should be pointing at the same thing. Make things less > confusing by just getting existing fb from 'ifbdev->fb' at the > start and then sticking with the

Re: [PATCH v2 7/9] drm/i915: Change intel_fbdev_fb_alloc() return type

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Change intel_fbdev_fb_alloc() to return struct intel_fb instead > of struct drm_framebuffer. Let's us eliminate some annoying > aliasing variables in the fbdev setup code. > > v2: Assing the results to the correct variable

Re: [PATCH 1/2] drm/xe/display: remove unused xe->enabled_irq_mask

2024-05-10 Thread Ghimiray, Himal Prasad
On 10-05-2024 15:13, Jani Nikula wrote: The xe->enabled_irq_mask member has never been used for anything. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/display/xe_display.c | 1 - drivers/gpu/drm/xe/xe_device_types.h| 2 -- 2 files changed, 3 deletions(-) diff --git

Re: [PATCH 2/2] drm/xe/display: remove unused xe->sb_lock

2024-05-10 Thread Ghimiray, Himal Prasad
On 10-05-2024 15:13, Jani Nikula wrote: Nothing in xe needs xe->sb_lock. None of the i915 display code using ->sb_lock gets built with xe, and in any case that would be wrong as xe uses gt->pcode.lock for this. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/display/xe_display.c | 2 --

Re: [PATCH 1/5] drm/i915: don't include CML PCI IDs in CFL

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Ville Syrjälä wrote: > On Fri, May 10, 2024 at 01:24:12PM +0300, Jani Nikula wrote: >> On Wed, 08 May 2024, Ville Syrjälä wrote: >> > On Wed, May 08, 2024 at 02:45:10PM +0300, Jani Nikula wrote: >> >> On Wed, 08 May 2024, Ville Syrjälä wrote: >> >> > On Tue, May 07, 2024 at

[PATCH 8/8] drm/i915/pciids: don't include RPL-U PCI IDs in RPL-P

2024-05-10 Thread Jani Nikula
It's confusing for INTEL_RPLP_IDS() to include INTEL_RPLU_IDS(). Even if we treat them the same elsewhere, the lists of PCI IDs should not. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c

[PATCH 7/8] drm/i915/pciids: remove 12 from INTEL_TGL_IDS()

2024-05-10 Thread Jani Nikula
Most other PCI ID macros do not encode the gen in the name. Follow suit for TGL. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 2 +- drivers/gpu/drm/i915/display/intel_display_device.c | 2 +-

[PATCH 6/8] drm/i915/pciids: remove 11 from INTEL_ICL_IDS()

2024-05-10 Thread Jani Nikula
Most other PCI ID macros do not encode the gen in the name. Follow suit for ICL. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 2 +- drivers/gpu/drm/i915/display/intel_display_device.c | 2 +-

[PATCH 5/8] drm/i915/pciids: don't include WHL/CML PCI IDs in CFL

2024-05-10 Thread Jani Nikula
It's confusing for INTEL_CFL_IDS() to include all WHL and CML PCI IDs. Even if we treat them the same in a lot of places, CML is a platform of its own, and the lists of PCI IDs should not conflate them. Largely go by the idea that if a platform has a name, group its PCI IDs together. That said,

[PATCH 3/8] drm/i915/pciids: add INTEL_SNB_IDS()

2024-05-10 Thread Jani Nikula
Add INTEL_SNB_IDS() to identify all SNBs. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 3 +-- drivers/gpu/drm/i915/display/intel_display_device.c | 3 +-- include/drm/i915_pciids.h

[PATCH 4/8] drm/i915/pciids: add INTEL_IVB_IDS()

2024-05-10 Thread Jani Nikula
Add INTEL_IVB_IDS() to identify all IVBs except IVB Q transcode. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 3 +-- drivers/gpu/drm/i915/display/intel_display_device.c | 3 +-- include/drm/i915_pciids.h

[PATCH 2/8] drm/i915/pciids: add INTEL_ILK_IDS(), use acronym

2024-05-10 Thread Jani Nikula
Most other PCI ID macros use platform acronyms. Follow suit for ILK. Add INTEL_ILK_IDS() to identify all ILKs. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 3 +--

[PATCH 1/8] drm/i915/pciids: add INTEL_PNV_IDS(), use acronym

2024-05-10 Thread Jani Nikula
Most other PCI ID macros use platform acronyms. Follow suit for PNV. Add INTEL_PNV_IDS() to identify all PNVs. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Jani Nikula --- arch/x86/kernel/early-quirks.c | 3 +--

[PATCH 0/8] drm/i915/pciids: PCI ID macro cleanups

2024-05-10 Thread Jani Nikula
This is a spin-off from [1], including just the PCI ID macro cleanups, as well as adding a bunch more cleanups. BR, Jani. [1] https://lore.kernel.org/all/cover.1715086509.git.jani.nik...@intel.com/ Jani Nikula (8): drm/i915/pciids: add INTEL_PNV_IDS(), use acronym drm/i915/pciids: add

RE: [PATCH v10 08/12] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status

2024-05-10 Thread Manna, Animesh
> -Original Message- > From: Hogander, Jouni > Sent: Friday, May 10, 2024 3:08 PM > To: intel-gfx@lists.freedesktop.org > Cc: Manna, Animesh ; Hogander, Jouni > > Subject: [PATCH v10 08/12] drm/i915/psr: Panel replay uses SRD_STATUS to > track it's status > > DP Panel replay uses

✓ Fi.CI.BAT: success for Documentation/i915: remove kernel-doc for DMC wakelocks

2024-05-10 Thread Patchwork
== Series Details == Series: Documentation/i915: remove kernel-doc for DMC wakelocks URL : https://patchwork.freedesktop.org/series/133435/ State : success == Summary == CI Bug Log - changes from CI_DRM_14746 -> Patchwork_133435v1 Summary

Re: [PATCH 1/5] drm/i915: don't include CML PCI IDs in CFL

2024-05-10 Thread Ville Syrjälä
On Fri, May 10, 2024 at 01:24:12PM +0300, Jani Nikula wrote: > On Wed, 08 May 2024, Ville Syrjälä wrote: > > On Wed, May 08, 2024 at 02:45:10PM +0300, Jani Nikula wrote: > >> On Wed, 08 May 2024, Ville Syrjälä wrote: > >> > On Tue, May 07, 2024 at 09:47:16AM -0400, Rodrigo Vivi wrote: > >> >> On

Re: [PATCH v10 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-10 Thread Hogander, Jouni
On Fri, 2024-05-10 at 12:45 +0300, Jani Nikula wrote: > On Fri, 10 May 2024, Jouni Högander wrote: > > Add definitions for panel replay selective update > > > > v2: Remove unnecessary Cc from commit message > > > > Signed-off-by: Jouni Högander > > Reviewed-by: Animesh Manna > > Needs to be

Re: [PATCH 1/5] drm/i915: don't include CML PCI IDs in CFL

2024-05-10 Thread Jani Nikula
On Wed, 08 May 2024, Ville Syrjälä wrote: > On Wed, May 08, 2024 at 02:45:10PM +0300, Jani Nikula wrote: >> On Wed, 08 May 2024, Ville Syrjälä wrote: >> > On Tue, May 07, 2024 at 09:47:16AM -0400, Rodrigo Vivi wrote: >> >> On Tue, May 07, 2024 at 03:56:48PM +0300, Jani Nikula wrote: >> >> > It's

[PATCH v2 8/9] drm/i915: Cleanup fbdev fb setup

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä We use a mix of 'intel_fb' vs. 'ifbdev->fb' in the same function. Both should be pointing at the same thing. Make things less confusing by just getting existing fb from 'ifbdev->fb' at the start and then sticking with the local 'fb' (renamed from the 'intel_fb') until the

[PATCH v2 7/9] drm/i915: Change intel_fbdev_fb_alloc() return type

2024-05-10 Thread Ville Syrjala
From: Ville Syrjälä Change intel_fbdev_fb_alloc() to return struct intel_fb instead of struct drm_framebuffer. Let's us eliminate some annoying aliasing variables in the fbdev setup code. v2: Assing the results to the correct variable (Jani) Fix xe's copy Signed-off-by: Ville Syrjälä ---

Re: [PATCH v10 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Jouni Högander wrote: > Add definitions for panel replay selective update > > v2: Remove unnecessary Cc from commit message > > Signed-off-by: Jouni Högander > Reviewed-by: Animesh Manna Needs to be Cc: dri-devel. > --- > include/drm/display/drm_dp.h | 6 ++ > 1 file

[PATCH 2/2] drm/xe/display: remove unused xe->sb_lock

2024-05-10 Thread Jani Nikula
Nothing in xe needs xe->sb_lock. None of the i915 display code using ->sb_lock gets built with xe, and in any case that would be wrong as xe uses gt->pcode.lock for this. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/display/xe_display.c | 2 -- drivers/gpu/drm/xe/xe_device_types.h| 3

[PATCH 1/2] drm/xe/display: remove unused xe->enabled_irq_mask

2024-05-10 Thread Jani Nikula
The xe->enabled_irq_mask member has never been used for anything. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/display/xe_display.c | 1 - drivers/gpu/drm/xe/xe_device_types.h| 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/gpu/drm/xe/display/xe_display.c

[PATCH v10 11/12] drm/i915/psr: Split intel_psr2_config_valid for panel replay

2024-05-10 Thread Jouni Högander
Part of intel_psr2_config_valid is valid for panel replay. rename it as intel_sel_update_config_valid. Split psr2 specific part and name it as intel_psr2_config_valid. v3: - move early transport check to psr2 specific check - check intel_psr2_config_valid only for non-Panel Replay case v2:

[PATCH v10 12/12] drm/i915/psr: Add panel replay sel update support to debugfs interface

2024-05-10 Thread Jouni Högander
Add panel replay selective update support to debugfs status interface. In case of sink supporting panel replay we will print out: Sink support: PSR = no, Panel Replay = yes, Panel Replay Selective Update = yes and PSR mode will look like this if printing out enabled panel replay selective

[PATCH v10 10/12] drm/i915/psr: Update PSR module parameter descriptions

2024-05-10 Thread Jouni Högander
We are re-using PSR module parameters for panel replay. Update module parameter descriptions with panel replay information: enable_psr: -1 (default) == follow what is in VBT 0 == disable PSR/PR 1 == Allow PSR1 and PR full frame update 2 == allow PSR1/PSR2 and PR Selective Update

[PATCH v10 09/12] drm/i915/psr: Do not apply workarounds in case of panel replay

2024-05-10 Thread Jouni Högander
There are some workarounds that are not applicable for panel replay. Do not apply these if panel replay is used. Bspec: 66624, 50422 Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_fbc.c | 5 +++-- drivers/gpu/drm/i915/display/intel_hdmi.c |

[PATCH v10 08/12] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status

2024-05-10 Thread Jouni Högander
DP Panel replay uses SRD_STATUS to track it's status despite selective update mode. Bspec: 53370, 68920 v4: - use PSR2_STATUS for eDP Panel Replay - handle intel_psr_wait_exit_locked as well v3: - do not use PSR2_STATUS for PSR1 v2: - use intel_dp_is_edp to differentiate - modify

[PATCH v10 07/12] drm/i915/psr: Modify intel_dp_get_su_granularity to support panel replay

2024-05-10 Thread Jouni Högander
Currently intel_dp_get_su_granularity doesn't support panel replay. This fix modifies it to support panel replay as well. v4: - use drm_dp_dpcd_readb instead of drm_dp_dpcd_read - ensure return value is 0 if drm_dp_dpcd_readb fails v3: use correct offset for DP_PANEL_PANEL_REPLAY_CAPABILITY

[PATCH v10 06/12] drm/i915/psr: Detect panel replay selective update support

2024-05-10 Thread Jouni Högander
Add new boolean to store panel replay selective update support of sink into intel_psr struct. Detect panel replay selective update support and store it into this new boolean. v3: Clear sink_panel_replay_su_support in intel_dp_detect v2: Merge adding new boolean into this patch Signed-off-by:

[PATCH v10 02/12] drm/i915/display: Do not print "psr: enabled" for on Panel Replay

2024-05-10 Thread Jouni Högander
After setting has_psr for panel replay as well crtc state dump is improperly printing "psr: enabled" for Panel Replay as well. Fix this by checking also has_panel_replay. Fixes: 5afa6e496098 ("drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well") Signed-off-by: Jouni Högander

[PATCH v10 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-10 Thread Jouni Högander
Add definitions for panel replay selective update v2: Remove unnecessary Cc from commit message Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- include/drm/display/drm_dp.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/display/drm_dp.h

[PATCH v10 03/12] drm/i915/dp: Use always vsc revision 0x6 for Panel Replay

2024-05-10 Thread Jouni Högander
We are about to enable Panel Replay Selective update mode. Vsc revision 0x6 for Panel Replay no matter if it is selective update or full frame update mode. Take this into account when preparing VSC SDP package. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna ---

[PATCH v10 01/12] drm/i915/psr: Rename has_psr2 as has_sel_update

2024-05-10 Thread Jouni Högander
We are going to reuse has_psr2 for panel_replay as well. Rename it as has_sel_update to avoid confusion. v3: do not add has_psr check into psr2 case in intel_dp_compute_vsc_sdp v2: Rebase Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna ---

[PATCH v10 04/12] drm/i915/psr: Rename psr2_enabled as sel_update_enabled

2024-05-10 Thread Jouni Högander
We are about to reuse psr2_enabled for panel replay as well. Rename it as sel_update_enabled to avoid confusion. v3: Rebase v2: Rebase Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gpu/drm/i915/display/intel_psr.c

[PATCH v10 00/12] Panel replay selective update support

2024-05-10 Thread Jouni Högander
This patch set is implementing panel replay selective update support for Intel hardware. v10: - use always PSR2_STATUS for eDP Panel Replay - handle SRD_STATUS vs. PSR2_STATUS in intel_psr_wait_exit_locked as well v9: - do not add has_psr check into psr2 case in intel_dp_compute_vsc_sdp -

Re: [PATCH] drm/xe: Nuke xe's copy of intel_fbdev_fb.h

2024-05-10 Thread Jani Nikula
On Wed, 08 May 2024, Ville Syrjälä wrote: > On Tue, May 07, 2024 at 11:53:40AM +0300, Jani Nikula wrote: >> On Mon, 06 May 2024, Ville Syrjala wrote: >> > From: Ville Syrjälä >> > >> > For some reason xe and i915 each have an identical (fortunately) >> > copy of intel_fbdev_fb.h. The xe copy

RE: [PATCH] drm/mst: Fix NULL pointer dereference at drm_dp_add_payload_part2

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, "Lin, Wayne" wrote: > [Public] > >> -Original Message- >> From: Limonciello, Mario >> Sent: Friday, May 10, 2024 3:18 AM >> To: Linux regressions mailing list ; Wentland, >> Harry >> ; Lin, Wayne >> Cc: ly...@redhat.com; imre.d...@intel.com; Leon Weiß > bochum.de>;

Re: [PATCH] Documentation/i915: remove kernel-doc for DMC wakelocks

2024-05-10 Thread Luca Coelho
On Fri, 2024-05-10 at 12:21 +0300, Jani Nikula wrote: > On Fri, 10 May 2024, Luca Coelho wrote: > > The function descriptions are optional and have not yet been added to > > the DMC wakelock code, so we shouldn't try to use it. Since this is a > > regression, remove the kernel-doc entry for DMC

Re: [PATCH] Documentation/i915: remove kernel-doc for DMC wakelocks

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Luca Coelho wrote: > The function descriptions are optional and have not yet been added to > the DMC wakelock code, so we shouldn't try to use it. Since this is a > regression, remove the kernel-doc entry for DMC wakelocks for now. > The proper documentation will be added in

[PATCH] Documentation/i915: remove kernel-doc for DMC wakelocks

2024-05-10 Thread Luca Coelho
The function descriptions are optional and have not yet been added to the DMC wakelock code, so we shouldn't try to use it. Since this is a regression, remove the kernel-doc entry for DMC wakelocks for now. The proper documentation will be added in a future patch. Fixes: 765425f598c2

Re: [PATCH 04/10] drm/i915: pass dev_priv explicitly to TRANS_VRR_VMAXSHIFT

2024-05-10 Thread Jani Nikula
On Thu, 09 May 2024, Rodrigo Vivi wrote: > On Wed, May 08, 2024 at 06:47:50PM +0300, Jani Nikula wrote: >> Avoid the implicit dev_priv local variable use, and pass dev_priv >> explicitly to the TRANS_VRR_VMAXSHIFT register macro. >> >> Signed-off-by: Jani Nikula >> --- >>

[PULL] drm-misc-fixes

2024-05-10 Thread Thomas Zimmermann
Hi Dave, Sima, this is the weekly drm-misc-fixes PR. Sorry for being late. Best regards Thomas drm-misc-fixes-2024-05-10: Short summary of fixes pull: core: - fix connector debugging output meson: - dw-hdmi: power-up fixes - dw-hdmi: add badngap setting for g12 The following changes since