[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers

2023-06-16 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers URL : https://patchwork.freedesktop.org/series/119480/ State : success == Summary == CI Bug Log - changes from CI_DRM_13279 -> Patchwork_119480v1

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/perf: Consider OA buffer boundary when zeroing out reports (rev2)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915/perf: Consider OA buffer boundary when zeroing out reports (rev2) URL : https://patchwork.freedesktop.org/series/119427/ State : success == Summary == CI Bug Log - changes from CI_DRM_13279 -> Patchwork_119427v2

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/perf: Determine context valid in OA reports (rev2)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915/perf: Determine context valid in OA reports (rev2) URL : https://patchwork.freedesktop.org/series/119426/ State : success == Summary == CI Bug Log - changes from CI_DRM_13279 -> Patchwork_119426v2

Re: [Intel-gfx] [PATCH] drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Randy Dunlap
On 6/16/23 02:31, Arnd Bergmann wrote: > From: Arnd Bergmann > > The function is only defined if CONFIG_PROC_FS is enabled: > > ld.lld: error: undefined symbol: i915_drm_client_fdinfo referenced by i915_driver.c drivers/gpu/drm/i915/i915_driver.o:(i915_drm_driver) in

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Add missing forward declarations/includes to display power headers

2023-06-16 Thread Randy Dunlap
Hi-- On 6/16/23 11:51, Imre Deak wrote: > Add the seq_file struct forward declaration to intel_display_power.h > fixing the build error below. While at it add the rest of missing > forward declarations/includes to the display power header files. > > In file included from : >

[Intel-gfx] [PATCH v2] drm/i915: Extend Wa_14015795083 platforms

2023-06-16 Thread Matt Roper
This workaround was already implemented for DG2, PVC, and some steppings of MTL, but the workaround database has now been updated to extend this workaround to TGL, RKL, DG1, and ADL. v2: - Skip readback verification for these extra gen12lp platforms. On some of the platforms, the firmware

[Intel-gfx] [PATCH] drm/i915/gt: Remove incorrect hard coded cache coherrency setting

2023-06-16 Thread Zhanjun Dong
The previouse i915_gem_object_create_internal already set it with proper value before function return. This hard coded setting is incorrect for platforms like MTL, thus need to be removed. Signed-off-by: Zhanjun Dong --- drivers/gpu/drm/i915/gt/intel_timeline.c | 2 -- 1 file changed, 2

[Intel-gfx] [PATCH] drm/i915/mtl: Skip using vbt hdmi_level_shifter selection on MTL

2023-06-16 Thread Radhakrishna Sripada
The hdmi_level_shifter part of General Bytes definition in VBT, which was used for choosing different levels on earlier platforms is now a hidden optin and shows the default value of 0. The level shifter is now to be deduced from hdmi_default_entry in intel_ddi_buf_trans for each phy. Skip

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers

2023-06-16 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers URL : https://patchwork.freedesktop.org/series/119480/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers

2023-06-16 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Add missing forward declarations/includes to display power headers URL : https://patchwork.freedesktop.org/series/119480/ State : warning == Summary == Error: dim checkpatch failed 0fa1731f78bd drm/i915: Add missing forward

[Intel-gfx] [PATCH 4/4] drm/i915: Prevent needless toggling of DC states during modesets

2023-06-16 Thread Imre Deak
DC states are disabled / re-enabled around each modeset, which may lead to a needless off->on->off toggling of the DC_off power well. This has some overhead as toggling DC states involves running a DMC firmware handler and also running a periodic firmware handler while DC states are enabled. The

[Intel-gfx] [PATCH 2/4] drm/i915: Remove redundant forward declarations from display power headers

2023-06-16 Thread Imre Deak
Remove the forward declarations for enums and structs from display power header files that aren't used in prototypes. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_display_power.h | 3 --- drivers/gpu/drm/i915/display/intel_display_power_well.h | 1 - 2 files changed, 4

[Intel-gfx] [PATCH 3/4] drm/i915: Add way to specify the power-off delay of a display power domain

2023-06-16 Thread Imre Deak
Add support for specifying a delay different than the current 100 ms default for powering off a display power domain. This is needed by the next patch which delays re-enabling DC states during modesets to avoid the off->on->off toggling overhead of the DC_off power well, but does this using a <

[Intel-gfx] [PATCH 1/4] drm/i915: Add missing forward declarations/includes to display power headers

2023-06-16 Thread Imre Deak
Add the seq_file struct forward declaration to intel_display_power.h fixing the build error below. While at it add the rest of missing forward declarations/includes to the display power header files. In file included from : ./../drivers/gpu/drm/i915/display/intel_display_power.h:255:70: error:

Re: [Intel-gfx] [PATCH] drm/i915/perf: Consider OA buffer boundary when zeroing out reports

2023-06-16 Thread Dixit, Ashutosh
On Fri, 16 Jun 2023 10:34:02 -0700, Umesh Nerlige Ramappa wrote: > > For reports that are not powers of 2, reports at the end of the OA > buffer may get split across the buffer boundary. When zeroing out such > reports, take the split into consideration. > > v2: Use OA_BUFFER_SIZE (Ashutosh) > >

[Intel-gfx] [linux-next:master] BUILD REGRESSION f7efed9f38f886edb450041b82a6f15d663c98f8

2023-06-16 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: f7efed9f38f886edb450041b82a6f15d663c98f8 Add linux-next specific files for 20230616 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202306100035.vtusnhm4-...@intel.com https

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Init DDI ports based on port_mask (rev4)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: Init DDI ports based on port_mask (rev4) URL : https://patchwork.freedesktop.org/series/117641/ State : success == Summary == CI Bug Log - changes from CI_DRM_13278_full -> Patchwork_117641v4_full

[Intel-gfx] [PATCH] drm/i915/perf: Consider OA buffer boundary when zeroing out reports

2023-06-16 Thread Umesh Nerlige Ramappa
For reports that are not powers of 2, reports at the end of the OA buffer may get split across the buffer boundary. When zeroing out such reports, take the split into consideration. v2: Use OA_BUFFER_SIZE (Ashutosh) Fixes: 09a36015d9a0 ("drm/i915/perf: Clear out entire reports after reading if

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: make i915_drm_client_fdinfo() reference conditional again URL : https://patchwork.freedesktop.org/series/119441/ State : success == Summary == CI Bug Log - changes from CI_DRM_13278_full -> Patchwork_119441v1_full

Re: [Intel-gfx] [PATCH v1] drm/i915/gsc: Fix intel_gsc_uc_fw_proxy_init_done with directed wakerefs

2023-06-16 Thread Ceraolo Spurio, Daniele
On 6/15/2023 2:19 PM, Alan Previn wrote: intel_gsc_uc_fw_proxy_init_done is used by a few code paths and usages. However, certain paths need a wakeref while others can't take a wakeref such as from the runtime_pm_resume callstack. Add a param into this helper to allow callers to direct

[Intel-gfx] [PATCH v3 i-g-t] tests/i915_pm_freq_api: Add a suspend subtest

2023-06-16 Thread Vinay Belgaumkar
Verify that SLPC API works as expected after a suspend. Added another subtest that does multiple GT resets and checks freq api works as expected after each one. We now check requested frequency instead of soft min/max after a reset or suspend. That ensures the soft limits got applied correctly at

Re: [Intel-gfx] [PATCH v7 2/8] PCI/VGA: Deal only with VGA class devices

2023-06-16 Thread Sui Jingfeng
Hi, On 2023/6/16 22:34, Alex Deucher wrote: On Fri, Jun 16, 2023 at 10:22 AM Sui Jingfeng wrote: On 2023/6/16 21:41, Alex Deucher wrote: On Fri, Jun 16, 2023 at 3:11 AM Sui Jingfeng wrote: Hi, On 2023/6/16 05:11, Alex Deucher wrote: On Wed, Jun 14, 2023 at 6:50 AM Sui Jingfeng wrote:

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Init DDI ports based on port_mask (rev4)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: Init DDI ports based on port_mask (rev4) URL : https://patchwork.freedesktop.org/series/117641/ State : success == Summary == CI Bug Log - changes from CI_DRM_13278 -> Patchwork_117641v4 Summary

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Init DDI ports based on port_mask (rev4)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: Init DDI ports based on port_mask (rev4) URL : https://patchwork.freedesktop.org/series/117641/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Init DDI ports based on port_mask (rev4)

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: Init DDI ports based on port_mask (rev4) URL : https://patchwork.freedesktop.org/series/117641/ State : warning == Summary == Error: dim checkpatch failed 7f76f42ce69c drm/i915: Remove bogus DDI-F from hsw/bdw output init 701f1f810f87 drm/i915: Introduce

Re: [Intel-gfx] [PATCH v7 2/8] PCI/VGA: Deal only with VGA class devices

2023-06-16 Thread Alex Deucher
On Fri, Jun 16, 2023 at 10:22 AM Sui Jingfeng wrote: > > > On 2023/6/16 21:41, Alex Deucher wrote: > > On Fri, Jun 16, 2023 at 3:11 AM Sui Jingfeng > > wrote: > >> Hi, > >> > >> On 2023/6/16 05:11, Alex Deucher wrote: > >>> On Wed, Jun 14, 2023 at 6:50 AM Sui Jingfeng > >>> wrote: > Hi,

Re: [Intel-gfx] [PATCH v7 2/8] PCI/VGA: Deal only with VGA class devices

2023-06-16 Thread Sui Jingfeng
On 2023/6/16 21:41, Alex Deucher wrote: On Fri, Jun 16, 2023 at 3:11 AM Sui Jingfeng wrote: Hi, On 2023/6/16 05:11, Alex Deucher wrote: On Wed, Jun 14, 2023 at 6:50 AM Sui Jingfeng wrote: Hi, On 2023/6/13 11:01, Sui Jingfeng wrote: From: Sui Jingfeng Deal only with the VGA

[Intel-gfx] ✗ Fi.CI.IGT: failure for Enhance vfio PCI hot reset for vfio cdev device (rev8)

2023-06-16 Thread Patchwork
== Series Details == Series: Enhance vfio PCI hot reset for vfio cdev device (rev8) URL : https://patchwork.freedesktop.org/series/116991/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13277_full -> Patchwork_116991v8_full

[Intel-gfx] [PATCH v3 7/7] drm/i915: Convert HSW/BDW to use port_mask for DDI probe

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Make HSW/BDW use port_mask for output probing as well. To achieve that the strap checks are moved into intel_ddi_init() itself. Or should we move them to the runtime port_mask init instead? Maybe not since the hardware is still there, just not connected to anything. v2:

[Intel-gfx] [PATCH v3 6/7] drm/i915: Init DDI outputs based on port_mask on skl+

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Instead of listing every platform's possible DDI outputs in intel_setup_outputs() just loop over the new port_mask to achieve the same thing. HSW/BDW were left as is since they still look at the straps as well. DSI is still a mess. For now just check for the relevant

[Intel-gfx] [PATCH v3 5/7] drm/i915: Beef up SDVO/HDMI port checks

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä The SDVO code already warns when the port in question doesn't actually support SDVO. Let's make that also bail the encoder registration like the generic assert_port_valid() we added. And add a similar thing for g4x HDMI, mainly because on g4x itsefl port D only supports DP

[Intel-gfx] [PATCH v3 4/7] drm/i915: Assert that the port being initialized is valid

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Sprinkle some asserts to catch any mishaps in the port_mask vs. output init. For DDI/DP/HDMI/SDVO I decided that we want to bail out for an invalid port since those are the encoder types where we might want consider driving the whole thing from the VBT child device list, and

[Intel-gfx] [PATCH v3 3/7] drm/i915: Assert that device info bitmasks have enough bits

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Sprinkle in some BUILD_BUG_ON()s to make sure some of the bitmasks used in the device info have enough bits. Do we have a better place for this sort of stuff? v2: Relocate to the new place Reviewed-by: Jani Nikula Signed-off-by: Ville Syrjälä ---

[Intel-gfx] [PATCH v3 2/7] drm/i915: Introduce device info port_mask

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Declare the available DVO/SDVO/HDMI/DP/DDI ports in the device info. The other outputs (LVDS/TV/DSI/VGA) are left out since for most of them we don't consider them as "ports". DSI we should probably perhaps include somehow in the device info. Just not sure how. Or we just

[Intel-gfx] [PATCH v3 1/7] drm/i915: Remove bogus DDI-F from hsw/bdw output init

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä HSW/BDW don't have DDI-F so don't go looking for one. Seems to have been accidentally left behind when the skl+ stuff got split out in commit 097d9e902068 ("drm/i915/display: remove strap checks from gen 9"). Reviewed-by: Lucas De Marchi Signed-off-by: Ville Syrjälä ---

[Intel-gfx] [PATCH v3 0/7] drm/i915: Init DDI ports based on port_mask

2023-06-16 Thread Ville Syrjala
From: Ville Syrjälä Introduce port_mask into the device info and utilize it it initalize DDI ports instead of hand rolling each intel_ddi_init() call per platform+port. This is an intermediate step towards initializing DDI/DP/HDMI/DSI ports purely based on VBT information. v2: rebased due to

[Intel-gfx] ✗ Fi.CI.BUILD: failure for Add vfio_device cdev for iommufd support (rev17)

2023-06-16 Thread Patchwork
== Series Details == Series: Add vfio_device cdev for iommufd support (rev17) URL : https://patchwork.freedesktop.org/series/113696/ State : failure == Summary == Error: patch https://patchwork.freedesktop.org/api/1.0/series/113696/revisions/17/mbox/ not applied Applying: vfio: Allocate per

Re: [Intel-gfx] [PATCH v7 2/8] PCI/VGA: Deal only with VGA class devices

2023-06-16 Thread Alex Deucher
On Fri, Jun 16, 2023 at 3:11 AM Sui Jingfeng wrote: > > Hi, > > On 2023/6/16 05:11, Alex Deucher wrote: > > On Wed, Jun 14, 2023 at 6:50 AM Sui Jingfeng > > wrote: > >> Hi, > >> > >> On 2023/6/13 11:01, Sui Jingfeng wrote: > >>> From: Sui Jingfeng > >>> > >>> Deal only with the VGA

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: make i915_drm_client_fdinfo() reference conditional again URL : https://patchwork.freedesktop.org/series/119441/ State : success == Summary == CI Bug Log - changes from CI_DRM_13278 -> Patchwork_119441v1

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: make i915_drm_client_fdinfo() reference conditional again URL : https://patchwork.freedesktop.org/series/119441/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915: make i915_drm_client_fdinfo() reference conditional again URL : https://patchwork.freedesktop.org/series/119441/ State : warning == Summary == Error: dim checkpatch failed e48e1d622c43 drm/i915: make i915_drm_client_fdinfo() reference conditional again

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/mtl: Fix SSC selection for MPLLA

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915/mtl: Fix SSC selection for MPLLA URL : https://patchwork.freedesktop.org/series/119428/ State : success == Summary == CI Bug Log - changes from CI_DRM_13277_full -> Patchwork_119428v1_full Summary

Re: [Intel-gfx] [PATCH 11/11] drm/i915/mtl: s/MTL/METEORLAKE for platform/subplatform defines

2023-06-16 Thread Tvrtko Ursulin
On 16/06/2023 13:05, Tvrtko Ursulin wrote: On 16/06/2023 12:42, Dnyaneshwar Bhadane wrote: Follow consistent naming convention. Replace MTL with METEORLAKE Signed-off-by: Dnyaneshwar Bhadane ---   drivers/gpu/drm/i915/display/intel_fbc.c  |  2 +-  

Re: [Intel-gfx] [PATCH 11/11] drm/i915/mtl: s/MTL/METEORLAKE for platform/subplatform defines

2023-06-16 Thread Tvrtko Ursulin
On 16/06/2023 12:42, Dnyaneshwar Bhadane wrote: Follow consistent naming convention. Replace MTL with METEORLAKE Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_fbc.c | 2 +- drivers/gpu/drm/i915/display/intel_pmdemand.c | 2 +-

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/perf: Consider OA buffer boundary when zeroing out reports

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915/perf: Consider OA buffer boundary when zeroing out reports URL : https://patchwork.freedesktop.org/series/119427/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13277_full -> Patchwork_119427v1_full

[Intel-gfx] [PATCH 10/11] drm/i915/adls: s/ADLS/ALDERLAKE_S in platform and subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
From: Anusha Srivatsa Driver refers to the platform Alderlake S as ADLS in places and ALDERLAKE_S in some. Making the consistent change to avoid confusion of the right naming convention for the platform. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/display/intel_display_device.c |

[Intel-gfx] [PATCH 11/11] drm/i915/mtl: s/MTL/METEORLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace MTL with METEORLAKE Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_fbc.c | 2 +- drivers/gpu/drm/i915/display/intel_pmdemand.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 10 ++---

[Intel-gfx] [PATCH 09/11] drm/i915/adln: s/ADLP/ALDERLAKE_P in ADLN defines

2023-06-16 Thread Dnyaneshwar Bhadane
From: Anusha Srivatsa Follow consistent naming convention. Replace ADLP with ALDERLAKE_P Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c| 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 08/11] drm/i915/rplu: s/ADLP/ALDERLAKE_P in RPLU defines

2023-06-16 Thread Dnyaneshwar Bhadane
From: Anusha Srivatsa Follow consistent naming convention. Replace ADLP with ALDERLAKE_P Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/i915_drv.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 05/11] drm/i915/tgl: s/TGL/TIGERLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace TGL with TIGERLAKE. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 2 +- drivers/gpu/drm/i915/display/skl_universal_plane.c | 2 +- drivers/gpu/drm/i915/i915_drv.h| 4 ++--

[Intel-gfx] [PATCH 07/11] drm/i915/rplp: s/ADLP/ALDERLAKE_P for RPLP defines

2023-06-16 Thread Dnyaneshwar Bhadane
From: Anusha Srivatsa Follow consistent naming convention. Replace ADLP with ALDERLAKE_P. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_step.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 03/11] drm/i915/tgl: s/RKL/ROCKETLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace RKL with ROCKETLAKE. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_display_power.c | 2 +- drivers/gpu/drm/i915/i915_drv.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 06/11] drm/i915/adlp: s/ADLP/ALDERLAKE_P for display and graphics step

2023-06-16 Thread Dnyaneshwar Bhadane
From: Anusha Srivatsa Driver refers to the platform Alderlake P as ADLP in places and ALDERLAKE_P in some. Making the consistent change to avoid confusion of the right naming convention for the platform. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/display/intel_cdclk.c | 2

[Intel-gfx] [PATCH 02/11] drm/i915/kbl: s/KBL/KABYLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace KBL with KABYLAKE. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 ++-- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_workarounds.c| 6 +++---

[Intel-gfx] [PATCH 04/11] drm/i915/jsl: s/JSL/JASPERLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace JSL with JASPERLAKE. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/icl_dsi.c | 4 ++-- drivers/gpu/drm/i915/display/intel_cdclk.c | 4 ++-- drivers/gpu/drm/i915/display/intel_combo_phy.c | 6 +++---

[Intel-gfx] [PATCH 01/11] drm/i915/skl: s/SKL/SKYLAKE for platform/subplatform defines

2023-06-16 Thread Dnyaneshwar Bhadane
Follow consistent naming convention. Replace SKL with SKYLAKE. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_workarounds.c| 2 +- drivers/gpu/drm/i915/i915_drv.h| 14 +++---

[Intel-gfx] [PATCH 00/11] Replace acronym with full platform name in defines.

2023-06-16 Thread Dnyaneshwar Bhadane
Replace all occurences of MTL with METEORLAKE, ADL with ALDERLAKE, TGL with TIGERLAKE, RKL with ROCKETLAKE, JSL with JASPERLAKE, KBL with KABYLAKE and SKL with SKYLAKE in platform and subplatform defines. This way there is a consistent pattern to how platforms are referred. While the change is

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

2023-06-16 Thread Maarten Lankhorst
Hey Dave, Daniel, Sorry for being late, life sometimes get in the way. Sometimes even literally! Cheers, ~Maarten drm-misc-fixes-2023-06-16: drm-misc-fixes maybe in time for v6.4-rc7: - qaic leak and null deref fix. - Fix runtime pm in nouveau. - Fix array overflow in ti-sn65dsi86 pwm chip

Re: [Intel-gfx] [PATCH] drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Tvrtko Ursulin
On 16/06/2023 11:16, Andi Shyti wrote: Hi Arnd, On Fri, Jun 16, 2023 at 11:31:47AM +0200, Arnd Bergmann wrote: From: Arnd Bergmann The function is only defined if CONFIG_PROC_FS is enabled: ld.lld: error: undefined symbol: i915_drm_client_fdinfo referenced by i915_driver.c

[Intel-gfx] ✓ Fi.CI.BAT: success for Enhance vfio PCI hot reset for vfio cdev device (rev8)

2023-06-16 Thread Patchwork
== Series Details == Series: Enhance vfio PCI hot reset for vfio cdev device (rev8) URL : https://patchwork.freedesktop.org/series/116991/ State : success == Summary == CI Bug Log - changes from CI_DRM_13277 -> Patchwork_116991v8 Summary

Re: [Intel-gfx] [PATCH] drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Andi Shyti
Hi Arnd, On Fri, Jun 16, 2023 at 11:31:47AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The function is only defined if CONFIG_PROC_FS is enabled: > > ld.lld: error: undefined symbol: i915_drm_client_fdinfo > >>> referenced by i915_driver.c > >>>

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Enhance vfio PCI hot reset for vfio cdev device (rev8)

2023-06-16 Thread Patchwork
== Series Details == Series: Enhance vfio PCI hot reset for vfio cdev device (rev8) URL : https://patchwork.freedesktop.org/series/116991/ State : warning == Summary == Error: dim checkpatch failed bbf7d5109b70 vfio/pci: Update comment around group_fd get in vfio_pci_ioctl_pci_hot_reset()

[Intel-gfx] ✗ Fi.CI.IGT: failure for Remove incorrect hard coded cache coherrency setting

2023-06-16 Thread Patchwork
== Series Details == Series: Remove incorrect hard coded cache coherrency setting URL : https://patchwork.freedesktop.org/series/119418/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13277_full -> Patchwork_119418v1_full

[Intel-gfx] [PATCH v13 22/22] docs: vfio: Add vfio device cdev description

2023-06-16 Thread Yi Liu
This gives notes for userspace applications on device cdev usage. Reviewed-by: Kevin Tian Signed-off-by: Yi Liu --- Documentation/driver-api/vfio.rst | 139 ++ 1 file changed, 139 insertions(+) diff --git a/Documentation/driver-api/vfio.rst

[Intel-gfx] [PATCH v13 19/22] vfio: Add VFIO_DEVICE_[AT|DE]TACH_IOMMUFD_PT

2023-06-16 Thread Yi Liu
This adds ioctl for userspace to attach device cdev fd to and detach from IOAS/hw_pagetable managed by iommufd. VFIO_DEVICE_ATTACH_IOMMUFD_PT: attach vfio device to IOAS, hw_pagetable managed by iommufd. Attach can be undo

[Intel-gfx] [PATCH v13 21/22] vfio: Compile vfio_group infrastructure optionally

2023-06-16 Thread Yi Liu
vfio_group is not needed for vfio device cdev, so with vfio device cdev introduced, the vfio_group infrastructures can be compiled out if only cdev is needed. Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Tested-by: Terrence Xu

[Intel-gfx] [PATCH v13 20/22] vfio: Move the IOMMU_CAP_CACHE_COHERENCY check in __vfio_register_dev()

2023-06-16 Thread Yi Liu
The IOMMU_CAP_CACHE_COHERENCY check only applies to the physical devices that are IOMMU-backed. But it is now in the group code. If want to compile vfio_group infrastructure out, this check needs to be moved out of the group code. Another reason for this change is to fail the device registration

[Intel-gfx] [PATCH v13 18/22] vfio: Add VFIO_DEVICE_BIND_IOMMUFD

2023-06-16 Thread Yi Liu
This adds ioctl for userspace to bind device cdev fd to iommufd. VFIO_DEVICE_BIND_IOMMUFD: bind device to an iommufd, hence gain DMA control provided by the iommufd. open_device op is called after bind_iommufd op. Only allowed on

[Intel-gfx] [PATCH v13 17/22] vfio: Add cdev for vfio_device

2023-06-16 Thread Yi Liu
This allows user to directly open a vfio device w/o using the legacy container/group interface, as a prerequisite for supporting new iommu features like nested translation. The device fd opened in this manner doesn't have the capability to access the device as the fops open() doesn't open the

[Intel-gfx] [PATCH v13 16/22] vfio: Move vfio_device_group_unregister() to be the first operation in unregister

2023-06-16 Thread Yi Liu
This avoids endless vfio_device refcount increasement by userspace, which would keep blocking the vfio_unregister_group_dev(). Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Tested-by: Terrence Xu Signed-off-by: Yi Liu ---

[Intel-gfx] [PATCH v13 15/22] vfio-iommufd: Add detach_ioas support for emulated VFIO devices

2023-06-16 Thread Yi Liu
This prepares for adding DETACH ioctl for emulated VFIO devices. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Signed-off-by: Yi Liu --- drivers/gpu/drm/i915/gvt/kvmgt.c | 1 +

[Intel-gfx] [PATCH v13 14/22] iommufd/device: Add iommufd_access_detach() API

2023-06-16 Thread Yi Liu
From: Nicolin Chen Previously, the detach routine is only done by the destroy(). And it was called by vfio_iommufd_emulated_unbind() when the device runs close(), so all the mappings in iopt were cleaned in that setup, when the call trace reaches this detach() routine. Now, there's a need of a

[Intel-gfx] [PATCH v13 13/22] vfio-iommufd: Add detach_ioas support for physical VFIO devices

2023-06-16 Thread Yi Liu
This prepares for adding DETACH ioctl for physical VFIO devices. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Signed-off-by: Yi Liu --- Documentation/driver-api/vfio.rst |

[Intel-gfx] [PATCH v13 12/22] vfio: Record devid in vfio_device_file

2023-06-16 Thread Yi Liu
.bind_iommufd() will generate an ID to represent this bond, which is needed by userspace for further usage. Store devid in vfio_device_file to avoid passing the pointer in multiple places. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato

[Intel-gfx] [PATCH v13 11/22] vfio-iommufd: Split bind/attach into two steps

2023-06-16 Thread Yi Liu
This aligns the bind/attach logic with the coming vfio device cdev support. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer Kolothum Signed-off-by: Yi Liu --- drivers/vfio/group.c | 17

[Intel-gfx] [PATCH v13 10/22] vfio-iommufd: Move noiommu compat validation out of vfio_iommufd_bind()

2023-06-16 Thread Yi Liu
This moves the noiommu compat validation logic into vfio_df_group_open(). This is more consistent with what will be done in vfio device cdev path. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by: Shameer

[Intel-gfx] [PATCH v13 09/22] vfio: Make vfio_df_open() single open for device cdev path

2023-06-16 Thread Yi Liu
VFIO group has historically allowed multi-open of the device FD. This was made secure because the "open" was executed via an ioctl to the group FD which is itself only single open. However, no known use of multiple device FDs today. It is kind of a strange thing to do because new device FDs can

[Intel-gfx] [PATCH v13 08/22] vfio: Add cdev_device_open_cnt to vfio_group

2023-06-16 Thread Yi Liu
This is for counting the devices that are opened via the cdev path. This count is increased and decreased by the cdev path. The group path checks it to achieve exclusion with the cdev path. With this, only one path (group path or cdev path) will claim DMA ownership. This avoids scenarios in which

[Intel-gfx] [PATCH v13 06/22] vfio: Pass struct vfio_device_file * to vfio_device_open/close()

2023-06-16 Thread Yi Liu
This avoids passing too much parameters in multiple functions. Per the input parameter change, rename the function to be vfio_df_open/close(). Reviewed-by: Kevin Tian Reviewed-by: Jason Gunthorpe Reviewed-by: Eric Auger Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato

[Intel-gfx] [PATCH v13 07/22] vfio: Block device access via device fd until device is opened

2023-06-16 Thread Yi Liu
Allow the vfio_device file to be in a state where the device FD is opened but the device cannot be used by userspace (i.e. its .open_device() hasn't been called). This inbetween state is not used when the device FD is spawned from the group FD, however when we create the device FD directly by

[Intel-gfx] [PATCH v13 03/22] vfio: Accept vfio device file in the KVM facing kAPI

2023-06-16 Thread Yi Liu
This makes the vfio file kAPIs to accept vfio device files, also a preparation for vfio device cdev support. For the kvm set with vfio device file, kvm pointer is stored in struct vfio_device_file, and use kvm_ref_lock to protect kvm set and kvm pointer usage within VFIO. This kvm pointer will be

[Intel-gfx] [PATCH v13 04/22] kvm/vfio: Prepare for accepting vfio device fd

2023-06-16 Thread Yi Liu
This renames kvm_vfio_group related helpers to prepare for accepting vfio device fd. No functional change is intended. Reviewed-by: Kevin Tian Reviewed-by: Eric Auger Reviewed-by: Jason Gunthorpe Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting

[Intel-gfx] [PATCH v13 05/22] kvm/vfio: Accept vfio device file from userspace

2023-06-16 Thread Yi Liu
This defines KVM_DEV_VFIO_FILE* and make alias with KVM_DEV_VFIO_GROUP*. Old userspace uses KVM_DEV_VFIO_GROUP* works as well. Reviewed-by: Jason Gunthorpe Reviewed-by: Kevin Tian Tested-by: Terrence Xu Tested-by: Nicolin Chen Tested-by: Matthew Rosato Tested-by: Yanting Jiang Tested-by:

[Intel-gfx] [PATCH v13 02/22] vfio: Refine vfio file kAPIs for KVM

2023-06-16 Thread Yi Liu
This prepares for making the below kAPIs to accept both group file and device file instead of only vfio group file. bool vfio_file_enforced_coherent(struct file *file); void vfio_file_set_kvm(struct file *file, struct kvm *kvm); Reviewed-by: Kevin Tian Reviewed-by: Eric Auger Reviewed-by:

[Intel-gfx] [PATCH v13 01/22] vfio: Allocate per device file structure

2023-06-16 Thread Yi Liu
This is preparation for adding vfio device cdev support. vfio device cdev requires: 1) A per device file memory to store the kvm pointer set by KVM. It will be propagated to vfio_device:kvm after the device cdev file is bound to an iommufd. 2) A mechanism to block device access through

[Intel-gfx] [PATCH v13 00/22] Add vfio_device cdev for iommufd support

2023-06-16 Thread Yi Liu
Existing VFIO provides group-centric user APIs for userspace. Userspace opens the /dev/vfio/$group_id first before getting device fd and hence getting access to device. This is not the desired model for iommufd. Per the conclusion of community discussion[1], iommufd provides device-centric kAPIs

[Intel-gfx] [PATCH] drm/i915: make i915_drm_client_fdinfo() reference conditional again

2023-06-16 Thread Arnd Bergmann
From: Arnd Bergmann The function is only defined if CONFIG_PROC_FS is enabled: ld.lld: error: undefined symbol: i915_drm_client_fdinfo >>> referenced by i915_driver.c >>> drivers/gpu/drm/i915/i915_driver.o:(i915_drm_driver) in >>> archive vmlinux.a Use the PTR_IF() helper to

[Intel-gfx] [PATCH v8 03/10] iommufd: Reserve all negative IDs in the iommufd xarray

2023-06-16 Thread Yi Liu
With this reservation, IOMMUFD users can encode the negative IDs for specific purposes. e.g. VFIO needs two reserved values to tell userspace the ID returned is not valid but has other meaning. Tested-by: Terrence Xu Reviewed-by: Jason Gunthorpe Signed-off-by: Yi Liu ---

[Intel-gfx] [PATCH v8 06/10] vfio: Mark cdev usage in vfio_device

2023-06-16 Thread Yi Liu
This can be used to differentiate whether to report group_id or devid in the revised VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl. At this moment, no cdev path yet, so the vfio_device_cdev_opened() helper always returns false. Reviewed-by: Kevin Tian Tested-by: Terrence Xu Signed-off-by: Yi Liu

[Intel-gfx] [PATCH v8 10/10] vfio/pci: Allow passing zero-length fd array in VFIO_DEVICE_PCI_HOT_RESET

2023-06-16 Thread Yi Liu
This is the way user to invoke hot-reset for the devices opened by cdev interface. User should check the flag VFIO_PCI_HOT_RESET_FLAG_DEV_ID_OWNED in the output of VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl before doing hot-reset for cdev devices. Suggested-by: Jason Gunthorpe Signed-off-by: Jason

[Intel-gfx] [PATCH v8 09/10] vfio/pci: Copy hot-reset device info to userspace in the devices loop

2023-06-16 Thread Yi Liu
This copies the vfio_pci_dependent_device to userspace during looping each affected device for reporting vfio_pci_hot_reset_info. This avoids counting the affected devices and allocating a potential large buffer to store the vfio_pci_dependent_device of all the affected devices before copying them

[Intel-gfx] [PATCH v8 07/10] vfio: Add helper to search vfio_device in a dev_set

2023-06-16 Thread Yi Liu
There are drivers that need to search vfio_device within a given dev_set. e.g. vfio-pci. So add a helper. vfio_pci_is_device_in_set() now returns -EBUSY in commit a882c16a2b7e ("vfio/pci: Change vfio_pci_try_bus_reset() to use the dev_set") where it was trying to preserve the return of

[Intel-gfx] [PATCH v8 02/10] vfio/pci: Move the existing hot reset logic to be a helper

2023-06-16 Thread Yi Liu
This prepares to add another method for hot reset. The major hot reset logic are moved to vfio_pci_ioctl_pci_hot_reset_groups(). No functional change is intended. Suggested-by: Jason Gunthorpe Signed-off-by: Jason Gunthorpe Reviewed-by: Jason Gunthorpe Reviewed-by: Eric Auger Reviewed-by:

[Intel-gfx] [PATCH v8 05/10] iommufd: Add helper to retrieve iommufd_ctx and devid

2023-06-16 Thread Yi Liu
This is needed by the vfio-pci driver to report affected devices in the hot-reset for a given device. Tested-by: Terrence Xu Reviewed-by: Jason Gunthorpe Signed-off-by: Yi Liu --- drivers/iommu/iommufd/device.c | 12 include/linux/iommufd.h| 3 +++ 2 files changed, 15

[Intel-gfx] [PATCH v8 08/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-06-16 Thread Yi Liu
This allows VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl use the iommufd_ctx of the cdev device to check the ownership of the other affected devices. When VFIO_DEVICE_GET_PCI_HOT_RESET_INFO is called on an IOMMUFD managed device, the new flag VFIO_PCI_HOT_RESET_FLAG_DEV_ID is reported to indicate the

[Intel-gfx] [PATCH v8 04/10] iommufd: Add iommufd_ctx_has_group()

2023-06-16 Thread Yi Liu
This adds the helper to check if any device within the given iommu_group has been bound with the iommufd_ctx. This is helpful for the checking on device ownership for the devices which have not been bound but cannot be bound to any other iommufd_ctx as the iommu_group has been bound. Tested-by:

[Intel-gfx] [PATCH v8 00/10] Enhance vfio PCI hot reset for vfio cdev device

2023-06-16 Thread Yi Liu
VFIO_DEVICE_PCI_HOT_RESET requires user to pass an array of group fds to prove that it owns all devices affected by resetting the calling device. While for cdev devices, user can use an iommufd-based ownership checking model and invoke VFIO_DEVICE_PCI_HOT_RESET with a zero-length fd array. This

[Intel-gfx] [PATCH v8 01/10] vfio/pci: Update comment around group_fd get in vfio_pci_ioctl_pci_hot_reset()

2023-06-16 Thread Yi Liu
This suits more on what the code does. Reviewed-by: Kevin Tian Reviewed-by: Jason Gunthorpe Reviewed-by: Eric Auger Signed-off-by: Yi Liu --- drivers/vfio/pci/vfio_pci_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci_core.c

Re: [Intel-gfx] [RFC 3/3] drm/i915/display: Add wrapper to Compute SAD

2023-06-16 Thread Borah, Chaitanya Kumar
Hello Kai, > -Original Message- > From: Golani, Mitulkumar Ajitkumar > > Sent: Thursday, June 15, 2023 12:37 PM > To: intel-gfx@lists.freedesktop.org > Cc: Shankar, Uma ; Borah, Chaitanya Kumar > ; Golani, Mitulkumar Ajitkumar > ; Nautiyal, Ankit K > > Subject: [RFC 3/3]

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gsc: Fix intel_gsc_uc_fw_proxy_init_done with directed wakerefs

2023-06-16 Thread Patchwork
== Series Details == Series: drm/i915/gsc: Fix intel_gsc_uc_fw_proxy_init_done with directed wakerefs URL : https://patchwork.freedesktop.org/series/119412/ State : success == Summary == CI Bug Log - changes from CI_DRM_13277_full -> Patchwork_119412v1_full

  1   2   >