RE: [PATCH] drm/xe/hdcp: Add check to remove hdcp2 compatibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx>
> Sent: Tuesday, October 22, 2024 1:17 PM
> To: Kandpal, Suraj <suraj.kandpal@xxxxxxxxx>; intel-xe@xxxxxxxxxxxxxxxxxxxxx;
> intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Kandpal, Suraj <suraj.kandpal@xxxxxxxxx>; Nautiyal, Ankit K
> <ankit.k.nautiyal@xxxxxxxxx>; Ghimiray, Himal Prasad
> <himal.prasad.ghimiray@xxxxxxxxx>
> Subject: Re: [PATCH] drm/xe/hdcp: Add check to remove hdcp2 compatibility
> 
> On Tue, 22 Oct 2024, Suraj Kandpal <suraj.kandpal@xxxxxxxxx> wrote:
> > Add check to remove HDCP2 compatibility from BMG as it does not have
> > GSC which ends up causing warning when we try to get reference of GSC
> > FW.
> >
> > Fixes: 89d030804831 ("drm/xe/hdcp: Fix condition for hdcp gsc cs
> > requirement")
> > Fixes: 883631771038 ("drm/i915/mtl: Add HDCP GSC interface")
> > Signed-off-by: Suraj Kandpal <suraj.kandpal@xxxxxxxxx>
> > Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@xxxxxxxxx>
> > Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@xxxxxxxxx>
> > ---
> >  drivers/gpu/drm/i915/display/intel_hdcp_gsc.c | 3 ++-
> >  drivers/gpu/drm/xe/display/xe_hdcp_gsc.c      | 4 +++-
> >  2 files changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
> > b/drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
> > index 55965844d829..2c1d0ee8cec2 100644
> > --- a/drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
> > +++ b/drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
> > @@ -21,7 +21,8 @@ struct intel_hdcp_gsc_message {
> >
> >  bool intel_hdcp_gsc_cs_required(struct intel_display *display)  {
> > -	return DISPLAY_VER(display) >= 14;
> > +	return DISPLAY_VER(display) >= 14 &&
> > +		DISPLAY_VER_FULL(display) != IP_VER(14, 1);
> >  }
> >
> >  bool intel_hdcp_gsc_check_status(struct intel_display *display) diff
> > --git a/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
> > b/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
> > index 231677129a35..efa3441c249c 100644
> > --- a/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
> > +++ b/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
> > @@ -8,6 +8,7 @@
> >  #include <linux/delay.h>
> >
> >  #include "abi/gsc_command_header_abi.h"
> > +#include "i915_drv.h"
> 
> Hrmh, xe code should not include i915_drv.h.

The issue is without this IP_VER used below ends up throwing an error

Regards,
Suraj Kandpal
> 
> >  #include "intel_hdcp_gsc.h"
> >  #include "intel_hdcp_gsc_message.h"
> >  #include "xe_bo.h"
> > @@ -32,7 +33,8 @@ struct intel_hdcp_gsc_message {
> >
> >  bool intel_hdcp_gsc_cs_required(struct intel_display *display)  {
> > -	return DISPLAY_VER(display) >= 14;
> > +	return DISPLAY_VER(display) >= 14 &&
> > +		DISPLAY_VER_FULL(display) != IP_VER(14, 1);
> >  }
> >
> >  bool intel_hdcp_gsc_check_status(struct intel_display *display)
> 
> --
> Jani Nikula, Intel




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux