[PATCH v3 2/3] bits: Introduce fixed-type BIT

2024-02-07 Thread Lucas De Marchi
Implement fixed-type BIT() to help drivers add stricter checks, like was done for GENMASK. Signed-off-by: Lucas De Marchi Acked-by: Jani Nikula --- include/linux/bits.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/linux/bits.h b/include/linux/bits.h index bd56f

[PATCH v3 0/3] Fixed-type GENMASK/BIT

2024-02-07 Thread Lucas De Marchi
ove the implementation of REG_GENMASK/REG_BIT to a more appropriate place to be shared by i915, xe and possibly other parts of the kernel. For now this re-defines the old macros. In future we may start using the new macros directly, but that's a more intrusive search-and-replace. Changes from v2:

[PATCH v3 1/3] bits: introduce fixed-type genmasks

2024-02-07 Thread Lucas De Marchi
From: Yury Norov Generalize __GENMASK() to support different types, and implement fixed-types versions of GENMASK() based on it. The fixed-type version allows more strict checks to the min/max values accepted, which is useful for defining registers like implemented by i915 and xe drivers with the

[PATCH v3 3/3] drm/i915: Convert REG_GENMASK* to fixed-width GENMASK_*

2024-02-07 Thread Lucas De Marchi
Now that include/linux/bits.h implements fixed-width GENMASK_*, use them to implement the i915/xe specific macros. Converting each driver to use the generic macros are left for later, when/if other driver-specific macros are also generalized. Signed-off-by: Lucas De Marchi Acked-by: Jani Nikula

Re: [PATCH] drm/buddy: Fix alloc_range() error handling code

2024-02-07 Thread Christian König
Am 07.02.24 um 18:44 schrieb Arunpravin Paneer Selvam: Few users have observed display corruption when they boot the machine to KDE Plasma or playing games. We have root caused the problem that whenever alloc_range() couldn't find the required memory blocks the function was returning SUCCESS in s

Re: [PATCH 2/2] xfs: disable large folio support in xfile_create

2024-02-07 Thread Andrew Morton
On Thu, 11 Jan 2024 18:22:50 -0800 "Darrick J. Wong" wrote: > On Thu, Jan 11, 2024 at 10:45:53PM +, Matthew Wilcox wrote: > > On Thu, Jan 11, 2024 at 02:00:53PM -0800, Andrew Morton wrote: > > > On Wed, 10 Jan 2024 12:04:51 -0800 "Darrick J. Wong" > > > wrote: > > > > > > > > > Fixing this

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:48:43PM +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > > + [...] > > > +static int group_allocated_bw(struct drm_dp_tunnel_group *group) > > > +{ > > > + struct dr

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 12:47, Souza, Jose wrote: On Wed, 2024-02-07 at 11:52 -0800, John Harrison wrote: On 2/7/2024 11:43, Souza, Jose wrote: On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tv

Re: [PATCH] kunit: device: Unregister the kunit_bus on shutdown

2024-02-07 Thread Rae Moar
On Wed, Feb 7, 2024 at 8:36 AM Jani Nikula wrote: > > On Fri, 02 Feb 2024, Rae Moar wrote: > > On Thu, Feb 1, 2024 at 1:06 AM David Gow wrote: > >> > >> If KUnit is built as a module, and it's unloaded, the kunit_bus is not > >> unregistered. This causes an error if it's then re-loaded later, as

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:48:53PM +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > > > [...] > > > +static int > > > +drm_dp_tunnel_atomic_check_group_bw(struct drm_dp_tunnel_group_state > > > *new_group_state, > > > + u32 *fai

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > +static char yes_no_chr(int val) > > +{ > > + return val ? 'Y' : 'N'; > > +} > > We have str_yes_no() already. Ok, will use this. > v> + > > +#define SKIP_DPRX_CAPS_C

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread Souza, Jose
On Wed, 2024-02-07 at 11:52 -0800, John Harrison wrote: > On 2/7/2024 11:43, Souza, Jose wrote: > > On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: > > > On 2/7/2024 10:49, Tvrtko Ursulin wrote: > > > > On 07/02/2024 18:12, John Harrison wrote: > > > > > On 2/7/2024 03:56, Tvrtko Ursulin wr

✓ Fi.CI.BAT: success for dma-buf: try to catch swiotlb bounce buffers

2024-02-07 Thread Patchwork
== Series Details == Series: dma-buf: try to catch swiotlb bounce buffers URL : https://patchwork.freedesktop.org/series/129638/ State : success == Summary == CI Bug Log - changes from CI_DRM_14240 -> Patchwork_129638v1 Summary --- *

✗ Fi.CI.CHECKPATCH: warning for dma-buf: try to catch swiotlb bounce buffers

2024-02-07 Thread Patchwork
== Series Details == Series: dma-buf: try to catch swiotlb bounce buffers URL : https://patchwork.freedesktop.org/series/129638/ State : warning == Summary == Error: dim checkpatch failed 04a7282ab816 dma-buf: try to catch swiotlb bounce buffers -:80: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Sign

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Ville Syrjälä
On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > +static char yes_no_chr(int val) > +{ > + return val ? 'Y' : 'N'; > +} We have str_yes_no() already. v> + > +#define SKIP_DPRX_CAPS_CHECK BIT(0) > +#define ALLOW_ALLOCATED_BW_CHANGEBIT(1) > + > +static bool tunnel_regs_a

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 11:43, Souza, Jose wrote: On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface vers

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread Souza, Jose
On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: > On 2/7/2024 10:49, Tvrtko Ursulin wrote: > > On 07/02/2024 18:12, John Harrison wrote: > > > On 2/7/2024 03:56, Tvrtko Ursulin wrote: > > > > From: Tvrtko Ursulin > > > > > > > > Add a new query to the GuC submission interface version. > >

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa intends to use this information to check for old firmware versions with a known bug w

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread Tvrtko Ursulin
On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa intends to use this information to check for old firmware versions with a known bug where using the render and compute comman

✓ Fi.CI.BAT: success for drm/buddy: Fix alloc_range() error handling code

2024-02-07 Thread Patchwork
== Series Details == Series: drm/buddy: Fix alloc_range() error handling code URL : https://patchwork.freedesktop.org/series/129637/ State : success == Summary == CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129637v1 Summary ---

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa intends to use this information to check for old firmware versions with a known bug where using the render and compute command streamers simultaneously can cause GPU hang

Re: [RFC PATCH] drm/i915: Add GETPARAM for GuC submission version

2024-02-07 Thread Souza, Jose
On Wed, 2024-02-07 at 13:36 +0200, Joonas Lahtinen wrote: > Quoting Tvrtko Ursulin (2024-02-07 10:44:01) > > > > On 06/02/2024 20:51, Souza, Jose wrote: > > > On Tue, 2024-02-06 at 12:42 -0800, John Harrison wrote: > > > > On 2/6/2024 08:33, Tvrtko Ursulin wrote: > > > > > On 01/02/2024 18:25, Sou

[PATCH] dma-buf: try to catch swiotlb bounce buffers

2024-02-07 Thread Daniel Vetter
They rather fundamentally break the entire concept of zero copy, so if an exporter manages to hand these out things will break all over. Luckily there's not too many case that use swiotlb_sync_single_for_device/cpu(): - The generic iommu dma-api code in drivers/iommu/dma-iommu.c. We can catch t

Re: [RFC PATCH] drm/i915: Add GETPARAM for GuC submission version

2024-02-07 Thread John Harrison
On 2/7/2024 03:36, Joonas Lahtinen wrote: Quoting Tvrtko Ursulin (2024-02-07 10:44:01) On 06/02/2024 20:51, Souza, Jose wrote: On Tue, 2024-02-06 at 12:42 -0800, John Harrison wrote: On 2/6/2024 08:33, Tvrtko Ursulin wrote: On 01/02/2024 18:25, Souza, Jose wrote: On Wed, 2024-01-24 at 08:55

[PATCH] drm/buddy: Fix alloc_range() error handling code

2024-02-07 Thread Arunpravin Paneer Selvam
Few users have observed display corruption when they boot the machine to KDE Plasma or playing games. We have root caused the problem that whenever alloc_range() couldn't find the required memory blocks the function was returning SUCCESS in some of the corner cases. The right approach would be if

✗ Fi.CI.BAT: failure for drm/i915/panelreplay: Panel replay workaround with VRR

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915/panelreplay: Panel replay workaround with VRR URL : https://patchwork.freedesktop.org/series/129632/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129632v1 Summary --

✗ Fi.CI.CHECKPATCH: warning for drm/i915/panelreplay: Panel replay workaround with VRR

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915/panelreplay: Panel replay workaround with VRR URL : https://patchwork.freedesktop.org/series/129632/ State : warning == Summary == Error: dim checkpatch failed 2d9bc540b38f drm/i915/panelreplay: Panel replay workaround with VRR -:26: CHECK:UNNECESSARY_PARE

✓ Fi.CI.BAT: success for drm/i915/cdclk: More hardcoded cd2x divider nukage (rev2)

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915/cdclk: More hardcoded cd2x divider nukage (rev2) URL : https://patchwork.freedesktop.org/series/129611/ State : success == Summary == CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129611v2 Summary

Re: [PATCH 3/3] Start separating pipe vs transcoder set logic for bigjoiner during modeset

2024-02-07 Thread Ville Syrjälä
On Fri, Feb 02, 2024 at 12:02:30PM +0200, Stanislav Lisovskiy wrote: > Handle only bigjoiner masters in skl_commit_modeset_enables/disables, > slave crtcs should be handled by master hooks. Same for encoders. > That way we can also remove a bunch of checks like > intel_crtc_is_bigjoiner_slave. >

✓ Fi.CI.BAT: success for drm/i915: Add GuC submission interface version query

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915: Add GuC submission interface version query URL : https://patchwork.freedesktop.org/series/129627/ State : success == Summary == CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129627v1 Summary

✗ Fi.CI.SPARSE: warning for drm/i915: Add GuC submission interface version query

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915: Add GuC submission interface version query URL : https://patchwork.freedesktop.org/series/129627/ 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: Add GuC submission interface version query

2024-02-07 Thread Patchwork
== Series Details == Series: drm/i915: Add GuC submission interface version query URL : https://patchwork.freedesktop.org/series/129627/ State : warning == Summary == Error: dim checkpatch failed b1fb7e21feba drm/i915: Add GuC submission interface version query -:105: WARNING:LONG_LINE_COMMENT

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 04:10:28PM +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 03:45:15PM +0200, Hogander, Jouni wrote: > > On Wed, 2024-02-07 at 15:26 +0200, Hogander, Jouni wrote: > > > On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > > > > Prevent accessing the HW from the SDVO/TV get

✗ Fi.CI.BAT: failure for XE HDCP Enablement (rev3)

2024-02-07 Thread Patchwork
== Series Details == Series: XE HDCP Enablement (rev3) URL : https://patchwork.freedesktop.org/series/129456/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14239 -> Patchwork_129456v3 Summary --- **FAILURE** Serio

Re: [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR

2024-02-07 Thread Ville Syrjälä
On Wed, Feb 07, 2024 at 08:05:09PM +0530, Animesh Manna wrote: > Panel Replay VSC SDP not getting sent when VRR is enabled > and W1 and W2 are 0. So Program Set Context Latency in > TRANS_SET_CONTEXT_LATENCY register to at least a value of 1. > > Signed-off-by: Animesh Manna > --- > drivers/gpu/

Re: [PATCH 2/2] drm/i915: Prevent HW access during init from connector get_modes hooks

2024-02-07 Thread Hogander, Jouni
On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > Prevent accessing the HW from the get_modes hooks of connectors > deriving > the mode list from the display's EDID. drm_edid_connector_add_modes() > will return the mode list based on the EDID which was cached during a > previous detection/get_m

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Hogander, Jouni
On Wed, 2024-02-07 at 16:16 +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 03:45:15PM +0200, Hogander, Jouni wrote: > > On Wed, 2024-02-07 at 15:26 +0200, Hogander, Jouni wrote: > > > On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > > > > Prevent accessing the HW from the SDVO/TV get_modes

Re: [PATCH] drm/i915/panelreplay: Panel replay workaround with VRR

2024-02-07 Thread Hogander, Jouni
On Wed, 2024-02-07 at 20:05 +0530, Animesh Manna wrote: > Panel Replay VSC SDP not getting sent when VRR is enabled > and W1 and W2 are 0. So Program Set Context Latency in > TRANS_SET_CONTEXT_LATENCY register to at least a value of 1. Do you have Bspec number. You could add it here. > > Signed-

Re: [RFC 1/8] cgroup: Add the DRM cgroup controller

2024-02-07 Thread Michal Koutný
Hello. On Tue, Oct 24, 2023 at 05:07:20PM +0100, Tvrtko Ursulin wrote: > +struct drm_cgroup_state { > + struct cgroup_subsys_state css; > +}; > + > +struct drm_root_cgroup_state { > + struct drm_cgroup_state drmcs; > +}; > + > +static struct drm_root_cgroup_state root_drmcs; Special str

Re: [RFC 6/8] cgroup/drm: Introduce weight based drm cgroup control

2024-02-07 Thread Michal Koutný
Hello. (I hope I'm replying to the latest iteration and it has some validitiy still. Sorry for my late reply. Few points caught my attention.) On Tue, Oct 24, 2023 at 05:07:25PM +0100, Tvrtko Ursulin wrote: > @@ -15,10 +17,28 @@ struct drm_cgroup_state { > struct cgroup_subsys_state css;

✗ Fi.CI.SPARSE: warning for XE HDCP Enablement (rev3)

2024-02-07 Thread Patchwork
== Series Details == Series: XE HDCP Enablement (rev3) URL : https://patchwork.freedesktop.org/series/129456/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +./arch/x86/include/asm/bitops.h:116:1: warning

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread Joonas Lahtinen
Quoting Tvrtko Ursulin (2024-02-07 13:56:12) > From: Tvrtko Ursulin > > Add a new query to the GuC submission interface version. > > Mesa intends to use this information to check for old firmware versions > with a known bug where using the render and compute command streamers > simultaneously ca

[PATCH] drm/i915/panelreplay: Panel replay workaround with VRR

2024-02-07 Thread Animesh Manna
Panel Replay VSC SDP not getting sent when VRR is enabled and W1 and W2 are 0. So Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register to at least a value of 1. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_display.c | 12 ++-- 1 file changed, 10 insert

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2024-02-07 Thread Paolo Bonzini
On Wed, Nov 22, 2023 at 1:49 PM Christian Brauner wrote: > > Ever since the evenfd type was introduced back in 2007 in commit > e1ad7468c77d ("signal/timer/event: eventfd core") the eventfd_signal() > function only ever passed 1 as a value for @n. There's no point in > keeping that additional argu

Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()

2024-02-07 Thread Anthony Krowiak
For vfio_ap_ops.c Reviewed-by: Anthony Krowiak On 2/6/24 2:44 PM, Stefan Hajnoczi wrote: vhost and VIRTIO-related parts: Reviewed-by: Stefan Hajnoczi On Wed, 22 Nov 2023 at 07:50, Christian Brauner wrote: Ever since the evenfd type was introduced back in 2007 in commit e1ad7468c77d ("sign

Re: [PATCH 14/19] drm/i915/dp: Compute DP tunel BW during encoder state computation

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 01:25:19AM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:45PM +0200, Imre Deak wrote: > > Compute the BW required through a DP tunnel on links with such tunnels > > detected and add the corresponding atomic state during a modeset. > > > > Signed-off-by: Imre D

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 03:45:15PM +0200, Hogander, Jouni wrote: > On Wed, 2024-02-07 at 15:26 +0200, Hogander, Jouni wrote: > > On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > > > Prevent accessing the HW from the SDVO/TV get_modes connector hook. > > > Returning 0 from the hook will make th

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 03:45:15PM +0200, Hogander, Jouni wrote: > On Wed, 2024-02-07 at 15:26 +0200, Hogander, Jouni wrote: > > On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > > > Prevent accessing the HW from the SDVO/TV get_modes connector hook. > > > Returning 0 from the hook will make th

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Hogander, Jouni
On Wed, 2024-02-07 at 15:26 +0200, Hogander, Jouni wrote: > On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > > Prevent accessing the HW from the SDVO/TV get_modes connector hook. > > Returning 0 from the hook will make the caller - > > drm_helper_probe_single_connector_modes() - keep the previ

Re: [PATCH] kunit: device: Unregister the kunit_bus on shutdown

2024-02-07 Thread Jani Nikula
On Fri, 02 Feb 2024, Rae Moar wrote: > On Thu, Feb 1, 2024 at 1:06 AM David Gow wrote: >> >> If KUnit is built as a module, and it's unloaded, the kunit_bus is not >> unregistered. This causes an error if it's then re-loaded later, as we >> try to re-register the bus. >> >> Unregister the bus and

Re: [PATCH 1/2] drm/i915: Prevent HW access during init from SDVO TV get_modes hook

2024-02-07 Thread Hogander, Jouni
On Tue, 2024-02-06 at 17:39 +0200, Imre Deak wrote: > Prevent accessing the HW from the SDVO/TV get_modes connector hook. > Returning 0 from the hook will make the caller - > drm_helper_probe_single_connector_modes() - keep the previously > detected > mode list of the connector. I don't see where

Re: [PATCH 11/19] drm/i915/dp: Add support for DP tunnel BW allocation

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 01:08:43AM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:42PM +0200, Imre Deak wrote: > > Add support to enable the DP tunnel BW allocation mode. Follow-up > > patches will call the required helpers added here to prepare for a > > modeset on a link with DP tunn

[RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa intends to use this information to check for old firmware versions with a known bug where using the render and compute command streamers simultaneously can cause GPU hangs due issues in firmware scheduling. Based

[PATCH 4/4] drm/xe/hdcp: Add intel_hdcp_gsc_message to Makefile

2024-02-07 Thread Suraj Kandpal
Add intel_hdcp_gsc_message to Makefile and add corresponding changes to xe_hdcp_gsc.c to make it build. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 18 ++ 2 files changed, 19 insertions(+) diff --gi

[PATCH 3/4] drm/xe/hdcp: Enable HDCP for XE

2024-02-07 Thread Suraj Kandpal
Enable HDCP for Xe by defining functions which take care of interaction of HDCP as a client with the GSC CS interface. --v2 -add kfree at appropriate place [Daniele] -forward declare drm_i915_private [Daniele] -remove useless define [Daniele] -move host session logic to xe_gsc_submit.c [Daniele] -

[PATCH 2/4] drm/xe: Use gsc_proxy_init_done to check proxy status

2024-02-07 Thread Suraj Kandpal
Expose gsc_proxy_init_done so that we can check if gsc proxy has been initialized or not. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 25 ++-- drivers/gpu/drm/xe/xe_gsc_proxy.c| 2 +- drivers/gpu/drm/xe/xe_gsc_proxy.h| 1 + 3

[PATCH 1/4] drm/i915/hdcp: Move intel_hdcp_gsc_message def away from header file

2024-02-07 Thread Suraj Kandpal
Move intel_hdcp_gsc_message definition into intel_hdcp_gsc_message.c so that intel_hdcp_gsc_message can be redefined for xe as needed. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_hdcp_gsc.c | 6 ++ drivers/gpu/drm/i915/display/intel_hdcp_gsc.h | 7 +-- 2 files cha

[PATCH 0/4] XE HDCP Enablement

2024-02-07 Thread Suraj Kandpal
This patch series enables HDCP on XE. Mainly includes rewriting functions that were responsible for sending hdcp messages via gsc cs. Signed-off-by: Suraj Kandpal Suraj Kandpal (4): drm/i915/hdcp: Move intel_hdcp_gsc_message def away from header file drm/xe: Use gsc_proxy_init_done to check

Re: [RFC PATCH] drm/i915: Add GETPARAM for GuC submission version

2024-02-07 Thread Joonas Lahtinen
Quoting Tvrtko Ursulin (2024-02-07 10:44:01) > > On 06/02/2024 20:51, Souza, Jose wrote: > > On Tue, 2024-02-06 at 12:42 -0800, John Harrison wrote: > >> On 2/6/2024 08:33, Tvrtko Ursulin wrote: > >>> On 01/02/2024 18:25, Souza, Jose wrote: > On Wed, 2024-01-24 at 08:55 +, Tvrtko Ursulin

[PULL] drm-intel-next

2024-02-07 Thread Jani Nikula
Hi Dave & Sima - drm-intel-next-2024-02-07: drm/i915 feature pull for v6.9: Features and functionality: - Early transport for panel replay and PSR (Jouni) - New ARL PCI IDs (Matt) - DP TPS4 PHY test pattern support (Khaled) Refactoring and cleanups: - Unify and improve VSC SDP for PSR and non-

Re: [PATCH 2/2] drm/i915/lnl: Program PKGC_LATENCY register

2024-02-07 Thread Govindapillai, Vinod
Hi Suraj, On Mon, 2024-02-05 at 13:31 +0530, Suraj Kandpal wrote: > Program the PKGC_LATENCY register with the highest latency from > level 1 and above LP registers else program with all 1's. > This is used to improve package C residency by sending the highest > latency tolerance requirement (LTR)

Re: [PATCH 1/2] drm/i915/lnl: Add pkgc related register

2024-02-07 Thread Govindapillai, Vinod
On Thu, 2024-02-01 at 14:21 +0530, Suraj Kandpal wrote: > Add the register that needs to read and written onto for > deep pkgc programming. > > Signed-off-by: Suraj Kandpal > --- >  drivers/gpu/drm/i915/display/skl_watermark_regs.h | 4 >  1 file changed, 4 insertions(+) Reviewed-by: Vinod G

Re: [PATCH 2/3] drm/xe/hdcp: Enable HDCP for XE

2024-02-07 Thread Jani Nikula
On Mon, 05 Feb 2024, Daniele Ceraolo Spurio wrote: > On 2/2/2024 12:37 AM, Suraj Kandpal wrote: >> Enable HDCP for Xe by defining functions which take care of >> interaction of HDCP as a client with the GSC CS interface. >> >> Signed-off-by: Suraj Kandpal >> --- >> drivers/gpu/drm/xe/display/x

Re: Re: linux-next: build failure after merge of the drm-misc tree

2024-02-07 Thread Jani Nikula
On Wed, 07 Feb 2024, Thomas Hellström wrote: > Indeed. Not even drm-misc itself compiles with xe enabled. I'll ping > drm-misc maintainers. We'll need CONFIG_DRM_XE=m enabled in drm-rerere/drm-misc-*_defconfig, and get people to use that. BR, Jani. -- Jani Nikula, Intel

Re: [PATCH] drm/i915/gt: Prevent possible NULL dereference in __caps_show()

2024-02-07 Thread Tvrtko Ursulin
Hi, On 06/02/2024 16:45, Nikita Zhandarovich wrote: After falling through the switch statement to default case 'repr' is initialized with NULL, which will lead to incorrect dereference of '!repr[n]' in the following loop. Fix it with the help of an additional check for NULL. Found by Linux V

Re: [RFC PATCH] drm/i915: Add GETPARAM for GuC submission version

2024-02-07 Thread Tvrtko Ursulin
On 06/02/2024 20:51, Souza, Jose wrote: On Tue, 2024-02-06 at 12:42 -0800, John Harrison wrote: On 2/6/2024 08:33, Tvrtko Ursulin wrote: On 01/02/2024 18:25, Souza, Jose wrote: On Wed, 2024-01-24 at 08:55 +, Tvrtko Ursulin wrote: On 24/01/2024 08:19, Joonas Lahtinen wrote: Add reportin

Re: [PATCH v3 1/4] drm/i915/alpm: Add ALPM register definitions

2024-02-07 Thread Hogander, Jouni
On Tue, 2024-02-06 at 15:25 +, Murthy, Arun R wrote: > > > -Original Message- > > From: Hogander, Jouni > > Sent: Tuesday, January 30, 2024 4:41 PM > > To: intel-gfx@lists.freedesktop.org > > Cc: Murthy, Arun R ; Hogander, Jouni > > ; Nikula, Jani > > Subject: [PATCH v3 1/4] drm/i915

GuC issue

2024-02-07 Thread natur . produkt
Hi, I'm currently implementing GuC/HuC firmware support in one Safety Critical OS. I'm following i915 code and I implemented all paths (I don't want GuC submission or SLPC features). I need GuC to authenticate HuC firmware blob. I mirrored GuC implementation in my code. After GuC DMA transfer s