Add driver for GSC controller
Alexander Usyskin
maintainerv7 cover Add driver for GSC controller
GSC is a graphics system controller, it provides
a chassis controller for graphics discrete cards.
There are two MEI interfaces in GSC: HECI1 and HECI2.
This series includes instantiation of the auxiliary devices for HECI2 and mei-gsc auxiliary device driver that binds to the auxiliary device.
In v2 the platform device was replaced by the auxiliary device. v3 is the rebase over drm-tip to make public CI running.
In v4 the not needed debug prints and empty line were removed,
'select' were replaced by 'depends on' in MEI Kconfig, the new include file now listed in the MAINTATINERS file.
V5, rebase and add Greg KH Reviewed-by
V6, rebase and drop redundant assignments found by the kernel test robot. V7, add Greg KH Reviewed-by to the individual patches
Alexander Usyskin (2):
mei: gsc: setup char driver alive in spite of firmware handshake
failure
mei: gsc: retrieve the firmware version
Tomas Winkler (3):
drm/i915/gsc: add gsc as a mei auxiliary device
mei: add support for graphics system controller (gsc) devices
mei: gsc: add runtime pm handlers
MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 196 ++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gsc.h | 37 ++++ drivers/gpu/drm/i915/gt/intel_gt.c | 3 + drivers/gpu/drm/i915/gt/intel_gt.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 13 ++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 2 + drivers/misc/mei/Kconfig | 14 ++ drivers/misc/mei/Makefile | 3 + drivers/misc/mei/bus-fixup.c | 25 +++ drivers/misc/mei/gsc-me.c | 252 +++++++++++++++++++++++ drivers/misc/mei/hw-me.c | 29 ++- drivers/misc/mei/hw-me.h | 2 + include/linux/mei_aux.h | 19 ++ 21 files changed, 618 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.c create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.h create mode 100644 drivers/misc/mei/gsc-me.c create mode 100644 include/linux/mei_aux.h
Signature · 1 line
2.32.0
Alexander Usyskin
maintainerPATCH v7 1/5 drm/i915/gsc: add gsc as a mei auxiliary device
From: Tomas Winkler <[email protected]>
GSC is a graphics system controller, it provides
a chassis controller for graphics discrete cards.
There are two MEI interfaces in GSC: HECI1 and HECI2.
Both interfaces are on the BAR0 at offsets 0x00258000 and 0x00259000. GSC is a GT Engine (class 4: instance 6). HECI1 interrupt is signaled via bit 15 and HECI2 via bit 14 in the interrupt register.
This patch exports GSC as auxiliary device for mei driver to bind to for HECI2 interface.
---
V4: add header to the MAINTAINERS file
drop empty line
V5: rebase
V6: rebase, drop redundant assignments
V7: add Greg KH Reviewed-by
--- MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 196 +++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gsc.h | 37 +++++ drivers/gpu/drm/i915/gt/intel_gt.c | 3 + drivers/gpu/drm/i915/gt/intel_gt.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 13 ++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 2 + include/linux/mei_aux.h | 19 +++ 15 files changed, 295 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.c create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.h create mode 100644 include/linux/mei_aux.h
MAINTAINERS +1 -0
@@ -9797,6 +9797,7 @@ S: Supported F: Documentation/driver-api/mei/* F: drivers/misc/mei/ F: drivers/watchdog/mei_wdt.c +F: include/linux/mei_aux.h F: include/linux/mei_cl_bus.h F: include/uapi/linux/mei.h F: samples/mei/*
drivers/gpu/drm/i915/Kconfig +1 -0
@@ -29,6 +29,7 @@ config DRM_I915 select VMAP_PFN select DRM_TTM select DRM_BUDDY + select AUXILIARY_BUS help Choose this option if you have a system that has "Intel Graphics Media Accelerator" or "HD Graphics" integrated graphics,
drivers/gpu/drm/i915/Makefile +3 -0
@@ -195,6 +195,9 @@ i915-y += gt/uc/intel_uc.o \ gt/uc/intel_huc_debugfs.o \ gt/uc/intel_huc_fw.o +# graphics system controller (GSC) support +i915-y += gt/intel_gsc.o + # modesetting core code i915-y += \ display/hsw_ips.o \
drivers/gpu/drm/i915/gt/intel_gsc.c new file +196 -0
196 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_gsc.h new file +37 -0
@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2019-2022, Intel Corporation. All rights reserved. +*/ +#ifndef __INTEL_GSC_DEV_H__ +#define __INTEL_GSC_DEV_H__ + +#include <linux/types.h> + +struct drm_i915_private ; +struct intel_gt ; +struct mei_aux_device ; + +#define INTEL_GSC_NUM_INTERFACES 2 +/* +* The HECI1 bit corresponds to bit15 and HECI2 to bit14. +* The reason for this is to allow growth for more interfaces in the future. +*/ +#define GSC_IRQ_INTF (_x) BIT(15 - (_x)) + +/** +* struct intel_gsc - graphics security controller +* @intf : gsc interface +*/ +struct intel_gsc { +struct intel_gsc_intf { +struct mei_aux_device *adev; +int irq; +unsigned int id; + } intf[INTEL_GSC_NUM_INTERFACES ]; +}; + +void intel_gsc_init (struct intel_gsc *gsc,struct drm_i915_private *dev_priv); +void intel_gsc_fini (struct intel_gsc *gsc); +void gsc_irq_handler (struct intel_gt *gt,u32 iir); + +#endif /* __INTEL_GSC_DEV_H__ */
drivers/gpu/drm/i915/gt/intel_gt.c +3 -0
@@ -446,6 +446,8 @@ void intel_gt_chipset_flush(struct intel_gt *gt)void intel_gt_driver_register (struct intel_gt *gt) { +intel_gsc_init (>->gsc, gt->i915); +intel_rps_driver_register (>->rps);intel_gt_debugfs_register (gt);
@@ -766,6 +768,7 @@ void intel_gt_driver_unregister(struct intel_gt *gt)intel_wakeref_t wakeref;intel_rps_driver_unregister (>->rps); +intel_gsc_fini (>->gsc);intel_pxp_fini (>->pxp);
drivers/gpu/drm/i915/gt/intel_gt.h +5 -0
@@ -34,6 +34,11 @@ static inline struct intel_gt *huc_to_gt(struct intel_huc *huc) return container_of(huc, struct intel_gt, uc.huc); } +static inline struct intel_gt *gsc_to_gt (struct intel_gsc *gsc) +{ + return container_of(gsc, struct intel_gt, gsc); +} +void intel_gt_init_early (struct intel_gt *gt,struct drm_i915_private *i915);void __intel_gt_init_early (struct intel_gt *gt,struct drm_i915_private *i915);int intel_gt_assign_ggtt (struct intel_gt *gt);
drivers/gpu/drm/i915/gt/intel_gt_irq.c +13 -0
@@ -68,6 +68,9 @@ gen11_other_irq_handler(struct intel_gt *gt, const u8 instance,if (instance ==OTHER_KCR_INSTANCE )return intel_pxp_irq_handler (>->pxp, iir); +if (instance ==OTHER_GSC_INSTANCE ) +return gsc_irq_handler (gt, iir); +WARN_ONCE (1 ,"unhandled other interrupt instance=0x%x, iir=0x%x\n" , instance, iir); }
@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt)/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_ENABLE ,0 );/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );
@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt)intel_uncore_write (uncore,GEN11_VECS0_VECS1_INTR_MASK , ~0 );if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 ))intel_uncore_write (uncore,GEN12_VECS2_VECS3_INTR_MASK , ~0 ); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_MASK , ~0 );intel_uncore_write (uncore,GEN11_GPM_WGBOXPERF_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_GPM_WGBOXPERF_INTR_MASK , ~0 );
@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );u32 dmask;u32 smask;
@@ -225,6 +233,9 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)/* Enable RCS, BCS, VCS and VECS class interrupts. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE , dmask);intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE , dmask); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_ENABLE , + gsc_mask);/* Unmask irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~smask);
@@ -238,6 +249,8 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)intel_uncore_write (uncore,GEN11_VECS0_VECS1_INTR_MASK , ~dmask);if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 ))intel_uncore_write (uncore,GEN12_VECS2_VECS3_INTR_MASK , ~dmask); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_MASK ,0 );/* * RPS interrupts will get enabled/disabled on demand when RPS itself * is enabled/disabled.
drivers/gpu/drm/i915/gt/intel_gt_regs.h +1 -0
@@ -944,6 +944,7 @@ enum {#define OTHER_GUC_INSTANCE 0#define OTHER_GTPM_INSTANCE 1#define OTHER_KCR_INSTANCE 4 +#define OTHER_GSC_INSTANCE 6#define GEN11_INTR_IDENTITY_REG (x) _MMIO(0x190060 + ((x) * 4))
drivers/gpu/drm/i915/gt/intel_gt_types.h +2 -0
@@ -16,6 +16,7 @@#include <linux/workqueue.h> #include "uc/intel_uc.h" +#include "intel_gsc.h" #include "i915_vma.h" #include "intel_engine_types.h"
@@ -72,6 +73,7 @@ struct intel_gt {struct i915_ggtt *ggtt;struct intel_uc uc; +struct intel_gsc gsc;struct mutex tlb_invalidate_lock;
drivers/gpu/drm/i915/i915_drv.h +8 -0
@@ -1444,6 +1444,14 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_DMC (dev_priv) (INTEL_INFO(dev_priv)->display.has_dmc) +#define HAS_HECI_PXP (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_pxp) + +#define HAS_HECI_GSCFI (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_gscfi) + +#define HAS_HECI_GSC (dev_priv) (HAS_HECI_PXP(dev_priv) || HAS_HECI_GSCFI(dev_priv)) +#define HAS_MSO (i915) (DISPLAY_VER(i915) >= 12)#define HAS_RUNTIME_PM (dev_priv) (INTEL_INFO(dev_priv)->has_runtime_pm)
drivers/gpu/drm/i915/i915_pci.c +2 -1
@@ -900,7 +900,8 @@ static const struct intel_device_info rkl_info = { .has_llc = 0, \ .has_pxp = 0, \ .has_snoop = 1, \ - .is_dgfx = 1 + .is_dgfx = 1, \ + .has_heci_gscfi = 1 static const struct intel_device_info dg1_info = {GEN12_FEATURES ,
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -974,6 +974,8 @@#define GEN11_VEBOX2_RING_BASE 0x1d8000#define XEHP_VEBOX3_RING_BASE 0x1e8000#define XEHP_VEBOX4_RING_BASE 0x1f8000 +#define GSC_DG1_HECI1_BASE 0x00258000 +#define GSC_DG1_HECI2_BASE 0x00259000#define BLT_RING_BASE 0x22000
drivers/gpu/drm/i915/intel_device_info.h +2 -0
@@ -135,6 +135,8 @@ enum intel_ppgtt_type {func (has_reset_engine); \func (has_global_mocs); \func (has_gt_uc); \ +func (has_heci_pxp); \ +func (has_heci_gscfi); \func (has_guc_deprivilege); \func (has_l3_dpf); \func (has_llc); \
include/linux/mei_aux.h new file +19 -0
@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2022, Intel Corporation. All rights reserved. +*/ +#ifndef _LINUX_MEI_AUX_H +#define _LINUX_MEI_AUX_H + +#include <linux/auxiliary_bus.h> + +struct mei_aux_device { +struct auxiliary_device aux_dev; +int irq; +struct resource bar; +}; + +#define auxiliary_dev_to_mei_aux_dev (auxiliary_dev) \ + container_of(auxiliary_dev, struct mei_aux_device, aux_dev) + +#endif /* _LINUX_MEI_AUX_H */
Signature · 1 line
2.32.0
Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 110 lines · Alexander Usyskin
From: Tomas Winkler <[email protected]>
GSC is a graphics system controller, it provides
a chassis controller for graphics discrete cards.There are two MEI interfaces in GSC: HECI1 and HECI2.
Both interfaces are on the BAR0 at offsets
0x00258000and0x00259000. GSC is a GT Engine (class 4: instance 6). HECI1 interrupt is signaled via bit 15 and HECI2 via bit 14 in the interrupt register.This patch exports GSC as auxiliary device for mei driver to bind to for HECI2 interface.
CC Rodrigo Vivi <[email protected]>Reviewed-by Greg Kroah-Hartman <[email protected]>Signed-off-by Tomas Winkler <[email protected]>Signed-off-by Vitaly Lubart <[email protected]>Signed-off-by Alexander Usyskin <[email protected]>---
V4: add header to theMAINTAINERSfile
drop empty line
V5: rebase
V6: rebase, drop redundant assignments
V7: add Greg KH Reviewed-by--- MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 196 +++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gsc.h | 37 +++++ drivers/gpu/drm/i915/gt/intel_gt.c | 3 + drivers/gpu/drm/i915/gt/intel_gt.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 13 ++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 2 + include/linux/mei_aux.h | 19 +++ 15 files changed, 295 insertions(+), 1 deletion(-)create mode 100644
drivers/gpu/drm/i915/gt/intel_gsc.ccreate mode 100644drivers/gpu/drm/i915/gt/intel_gsc.hcreate mode 100644include/linux/mei_aux.hMAINTAINERS +1
-0@@ -9797,6 +9797,7 @@ S: Supported F: Documentation/driver-api/mei/* F: drivers/misc/mei/ F: drivers/watchdog/mei_wdt.c +F: include/linux/mei_aux.h F: include/linux/mei_cl_bus.h F: include/uapi/linux/mei.h F: samples/mei/*drivers/gpu/drm/i915/Kconfig +1
-0@@ -29,6 +29,7 @@ config DRM_I915 select VMAP_PFN select DRM_TTM select DRM_BUDDY + select AUXILIARY_BUS help Choose this option if you have a system that has "Intel Graphics Media Accelerator" or "HD Graphics" integrated graphics,drivers/gpu/drm/i915/Makefile +3
-0@@ -195,6 +195,9 @@ i915-y += gt/uc/intel_uc.o \ gt/uc/intel_huc_debugfs.o \ gt/uc/intel_huc_fw.o +# graphics system controller (GSC) support +i915-y += gt/intel_gsc.o + # modesetting core code i915-y += \ display/hsw_ips.o \drivers/gpu/drm/i915/gt/intel_gsc.c new file +20
-0@@ -0,0 +1,196 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright(c) 2019-2022, Intel Corporation. All rights reserved. +*/ + +#include <linux/irq.h> +#include <linux/mei_aux.h> +#include "i915_reg.h" +#include "i915_drv.h" +#include "gt/intel_gt.h" +#include "intel_gsc.h" + +#define GSC_BAR_LENGTH 0x00000FFC + +static void gsc_irq_mask (struct irq_data *d) +{ +/* generic irq handling */ +} + +static void gsc_irq_unmask (struct irq_data *d)
drivers/gpu/drm/i915/gt/intel_gsc.c line 30
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+{ +/* generic irq handling */ +} > + +static struct irq_chip gsc_irq_chip = { + .name ="gsc_irq_chip" , + .irq_mask = gsc_irq_mask, + .irq_unmask = gsc_irq_unmask, +}; + +static int gsc_irq_init (struct drm_i915_private *dev_priv,int irq)
I am not insisting but we tend to use i915 for the variable name instead of dev_priv since some time back.
drivers/gpu/drm/i915/gt/intel_gsc.c line 36
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+{ +irq_set_chip_and_handler_name (irq, &gsc_irq_chip, + handle_simple_irq,"gsc_irq_handler" ); + +return irq_set_chip_data (irq, dev_priv);
I am not familiar with this interrupt scheme - does dev_priv get used at all by handle_simple_irq, or anyone, after being set here?
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;
Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
drivers/gpu/drm/i915/gt/intel_gsc.c line 48
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +7
-0+size_t bar_size; +}; + +/* gscfi (graphics system controller firmware interface) resources */ +static const struct intel_gsc_def intel_gsc_def_dg1[] = { + { + },
Maybe put a comment in this empty element like "/* HECI1 not yet implemented. */"?
Quoted 20 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +20
-0+ { + .name = "mei-gscfi", + .bar = GSC_DG1_HECI2_BASE, + .bar_size = GSC_BAR_LENGTH, + } +}; + +static void intel_gsc_release_dev (struct device *dev) +{ +struct auxiliary_device *aux_dev =to_auxiliary_dev (dev); +struct mei_aux_device *adev =auxiliary_dev_to_mei_aux_dev (aux_dev); + +kfree (adev); +} + +static void intel_gsc_destroy_one (struct intel_gsc_intf *intf) +{ +if (intf->adev) { +auxiliary_device_delete (&intf->adev->aux_dev); +auxiliary_device_uninit (&intf->adev->aux_dev);
drivers/gpu/drm/i915/gt/intel_gsc.c line 78
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+ intf->adev =NULL ; + } +if (intf->irq >=0 ) +irq_free_desc (intf->irq); + intf->irq =-1 ; +} + +static void intel_gsc_init_one (struct drm_i915_private *dev_priv, +struct intel_gsc_intf *intf, +unsigned int intf_id)
Could pass in intel_gsc instead of dev_priv to better match with intel_gsc prefix, but no big deal.
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 12 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +12
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ; + intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;
Isn't inf_id == 0 always a bug with this patch, regardless of HAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plain drm_WARN_ON_ONCE(intf_id == 0).
drivers/gpu/drm/i915/gt/intel_gsc.c line 94
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ + def = &intel_gsc_def_dg1[intf_id]; + +dev_dbg (&pdev->dev,"init gsc one with id %d\n" , intf_id);
Meh, too much looks like a during development aid.
Quoted 31 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +31
-0+ intf->irq =irq_alloc_desc (0 ); +if (intf->irq <0 ) { +dev_err (&pdev->dev,"gsc irq error %d\n" , intf->irq); +return ; + } + + ret =gsc_irq_init (dev_priv, intf->irq); +if (ret <0 ) { +dev_err (&pdev->dev,"gsc irq init failed %d\n" , ret); + goto fail; + } + + adev =kzalloc (sizeof (*adev),GFP_KERNEL ); +if (!adev) + goto fail; + + adev->irq = intf->irq; + adev->bar.parent = &pdev->resource[0 ]; + adev->bar.start = def->bar + pdev->resource[0 ].start; + adev->bar.end = adev->bar.start + def->bar_size -1 ; + adev->bar.flags =IORESOURCE_MEM ; + adev->bar.desc =IORES_DESC_NONE ; + + aux_dev = &adev->aux_dev; + aux_dev->name = def->name; + aux_dev->id = (pci_domain_nr (pdev->bus) <<16 ) | +PCI_DEVID (pdev->bus->number, pdev->devfn); + aux_dev->dev.parent = &pdev->dev; + aux_dev->dev.release = intel_gsc_release_dev; + + ret =auxiliary_device_init (aux_dev);
drivers/gpu/drm/i915/gt/intel_gsc.c line 135
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+if (ret <0 ) { +dev_err (&pdev->dev,"gsc aux init failed %d\n" , ret); +kfree (adev); + goto fail; + } + + ret =auxiliary_device_add (aux_dev); +if (ret <0 ) { +dev_err (&pdev->dev,"gsc aux add failed %d\n" , ret); +/* adev will be freed with the put_device() and .release sequence */
For things which fail but do not prevent driver loading and operating otherwise correctly I'd suggest drm_warn throughout but maybe it is just me.
drivers/gpu/drm/i915/gt/intel_gsc.c line 144
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +9
-0+auxiliary_device_uninit (aux_dev); + goto fail; + } + intf->adev = adev; + +dev_dbg (&pdev->dev,"gsc init one done\n" ); +return ; +fail: +intel_gsc_destroy_one (intf);
Error handling is a bit meh but looks correct. Like you could avoid separate free's on the error paths by doing onion unwind, or even full onion unwind instead of conditional teardown in intel_gsc_destroy_one. Not asking for it, just commenting.
drivers/gpu/drm/i915/gt/intel_gsc.c line 152
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+} + +static void intel_gsc_irq_handler (struct intel_gt *gt,unsigned int intf_id) +{ +int ret; + +if (intf_id >=INTEL_GSC_NUM_INTERFACES ) +return ;
Is this worthy of a WARN_ON or drm_warn? (ratelimited I suppose) Because it would be either bad hardware or a bad driver error to see the interrupt with wrong interface, no?
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;
Likewise?
drivers/gpu/drm/i915/gt/intel_gsc.c line 158
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { +DRM_ERROR_RATELIMITED ("error handling GSC irq: irq not set" );
Like this, but use logging functions which say which device please.
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +7
-0+return ; + } + + ret =generic_handle_irq (gt->gsc.intf[intf_id].irq); +if (ret) +DRM_ERROR_RATELIMITED ("error handling GSC irq: %d\n" , ret); +}
drivers/gpu/drm/i915/gt/intel_gsc.c line 175
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+ +void gsc_irq_handler (struct intel_gt *gt,u32 iir) +{ +if (iir &GSC_IRQ_INTF (0 )) +intel_gsc_irq_handler (gt,0 ); +if (iir &GSC_IRQ_INTF (1 )) +intel_gsc_irq_handler (gt,1 ); +} + +void intel_gsc_init (struct intel_gsc *gsc,struct drm_i915_private *dev_priv)
Here you don't need to pass in dev_priv since you can get it with container_of and gt->i915 but up to you, no big deal.
Quoted 52 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +21
-0+{ +unsigned int i; + +if (!HAS_HECI_GSC (dev_priv)) +return ; + +for (i =0 ; i <INTEL_GSC_NUM_INTERFACES ; i++) +intel_gsc_init_one (dev_priv, &gsc->intf[i], i); +} + +void intel_gsc_fini (struct intel_gsc *gsc) +{ +struct intel_gt *gt =gsc_to_gt (gsc); +unsigned int i; + +if (!HAS_HECI_GSC (gt->i915)) +return ; + +for (i =0 ; i <INTEL_GSC_NUM_INTERFACES ; i++) +intel_gsc_destroy_one (&gsc->intf[i]); +}drivers/gpu/drm/i915/gt/intel_gsc.h new file +25
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2019-2022, Intel Corporation. All rights reserved. +*/ +#ifndef __INTEL_GSC_DEV_H__ +#define __INTEL_GSC_DEV_H__ + +#include <linux/types.h> + +struct drm_i915_private ; +struct intel_gt ; +struct mei_aux_device ; + +#define INTEL_GSC_NUM_INTERFACES 2 +/* +* The HECI1 bit corresponds to bit15 and HECI2 to bit14. +* The reason for this is to allow growth for more interfaces in the future. +*/ +#define GSC_IRQ_INTF (_x) BIT(15 - (_x)) + +/** +* struct intel_gsc - graphics security controller +* @intf : gsc interface +*/ +struct intel_gsc {
drivers/gpu/drm/i915/gt/intel_gsc.h line 35
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.h new file +10
-0+struct intel_gsc_intf { +struct mei_aux_device *adev; +int irq; +unsigned int id; + } intf[INTEL_GSC_NUM_INTERFACES ]; +}; + +void intel_gsc_init (struct intel_gsc *gsc,struct drm_i915_private *dev_priv); +void intel_gsc_fini (struct intel_gsc *gsc); +void gsc_irq_handler (struct intel_gt *gt,u32 iir);
Why not have consistent prefix on all exported functions?
Quoted 44 lines
drivers/gpu/drm/i915/gt/intel_gsc.h new file +2
-0+ +#endif /* __INTEL_GSC_DEV_H__ */ drivers/gpu/drm/i915/gt/intel_gt.c +3
-0@@ -446,6 +446,8 @@ void intel_gt_chipset_flush(struct intel_gt *gt)void intel_gt_driver_register (struct intel_gt *gt) { +intel_gsc_init (>->gsc, gt->i915); +intel_rps_driver_register (>->rps);intel_gt_debugfs_register (gt);@@ -766,6 +768,7 @@ void intel_gt_driver_unregister(struct intel_gt *gt)intel_wakeref_t wakeref;intel_rps_driver_unregister (>->rps); +intel_gsc_fini (>->gsc);intel_pxp_fini (>->pxp);drivers/gpu/drm/i915/gt/intel_gt.h +5
-0@@ -34,6 +34,11 @@ static inline struct intel_gt *huc_to_gt(struct intel_huc *huc) return container_of(huc, struct intel_gt, uc.huc); } +static inline struct intel_gt *gsc_to_gt (struct intel_gsc *gsc) +{ + return container_of(gsc, struct intel_gt, gsc); +} +void intel_gt_init_early (struct intel_gt *gt,struct drm_i915_private *i915);void __intel_gt_init_early (struct intel_gt *gt,struct drm_i915_private *i915);int intel_gt_assign_ggtt (struct intel_gt *gt);drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0
drivers/gpu/drm/i915/gt/intel_gt_irq.c gen11_other_irq_handler(struct intel_gt *gt, const u8 instance, · line 75
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +3
-0@@ -68,6 +68,9 @@ gen11_other_irq_handler(struct intel_gt *gt, const u8 instance,if (instance ==OTHER_KCR_INSTANCE )return intel_pxp_irq_handler (>->pxp, iir); +if (instance ==OTHER_GSC_INSTANCE ) +return gsc_irq_handler (gt, iir); +WARN_ONCE (1 ,"unhandled other interrupt instance=0x%x, iir=0x%x\n" , instance, iir);
Digression - it would be nice to be able to report unhandled iir bits here but all handlers return void so refactoring would be needed.
Quoted 20 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +4
-0}@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt)/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_ENABLE ,0 );/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt)intel_uncore_write (uncore,GEN11_VECS0_VECS1_INTR_MASK , ~0 );if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 ))intel_uncore_write (uncore,GEN12_VECS2_VECS3_INTR_MASK , ~0 ); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_MASK , ~0 );intel_uncore_write (uncore,GEN11_GPM_WGBOXPERF_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_GPM_WGBOXPERF_INTR_MASK , ~0 );
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );
Why enable the one which is not supported by the patch? No harm doing it?
Quoted 105 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +5
-0u32 dmask;u32 smask;@@ -225,6 +233,9 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)/* Enable RCS, BCS, VCS and VECS class interrupts. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE , dmask);intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE , dmask); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_ENABLE , + gsc_mask);/* Unmask irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~smask);@@ -238,6 +249,8 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)intel_uncore_write (uncore,GEN11_VECS0_VECS1_INTR_MASK , ~dmask);if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 ))intel_uncore_write (uncore,GEN12_VECS2_VECS3_INTR_MASK , ~dmask); +if (HAS_HECI_GSC (gt->i915)) +intel_uncore_write (uncore,GEN11_GUNIT_CSME_INTR_MASK ,0 );/* * RPS interrupts will get enabled/disabled on demand when RPS itself * is enabled/disabled. drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -944,6 +944,7 @@ enum {#define OTHER_GUC_INSTANCE 0#define OTHER_GTPM_INSTANCE 1#define OTHER_KCR_INSTANCE 4 +#define OTHER_GSC_INSTANCE 6#define GEN11_INTR_IDENTITY_REG (x) _MMIO(0x190060 + ((x) * 4))drivers/gpu/drm/i915/gt/intel_gt_types.h +2
-0@@ -16,6 +16,7 @@#include <linux/workqueue.h> #include "uc/intel_uc.h" +#include "intel_gsc.h" #include "i915_vma.h" #include "intel_engine_types.h" @@ -72,6 +73,7 @@ struct intel_gt {struct i915_ggtt *ggtt;struct intel_uc uc; +struct intel_gsc gsc;struct mutex tlb_invalidate_lock;drivers/gpu/drm/i915/i915_drv.h +8
-0@@ -1444,6 +1444,14 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,#define HAS_DMC (dev_priv) (INTEL_INFO(dev_priv)->display.has_dmc) +#define HAS_HECI_PXP (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_pxp) + +#define HAS_HECI_GSCFI (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_gscfi) + +#define HAS_HECI_GSC (dev_priv) (HAS_HECI_PXP(dev_priv) || HAS_HECI_GSCFI(dev_priv)) +#define HAS_MSO (i915) (DISPLAY_VER(i915) >= 12)#define HAS_RUNTIME_PM (dev_priv) (INTEL_INFO(dev_priv)->has_runtime_pm)drivers/gpu/drm/i915/i915_pci.c +2
-1@@ -900,7 +900,8 @@ static const struct intel_device_info rkl_info = { .has_llc = 0, \ .has_pxp = 0, \ .has_snoop = 1, \ - .is_dgfx = 1 + .is_dgfx = 1, \ + .has_heci_gscfi = 1 static const struct intel_device_info dg1_info = {GEN12_FEATURES ,drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -974,6 +974,8 @@#define GEN11_VEBOX2_RING_BASE 0x1d8000#define XEHP_VEBOX3_RING_BASE 0x1e8000#define XEHP_VEBOX4_RING_BASE 0x1f8000 +#define GSC_DG1_HECI1_BASE 0x00258000 +#define GSC_DG1_HECI2_BASE 0x00259000#define BLT_RING_BASE 0x22000drivers/gpu/drm/i915/intel_device_info.h +0
-0
drivers/gpu/drm/i915/intel_device_info.h enum intel_ppgtt_type { · line 138
Quoted 4 lines
drivers/gpu/drm/i915/intel_device_info.h +1
-0@@ -135,6 +135,8 @@ enum intel_ppgtt_type {func (has_reset_engine); \func (has_global_mocs); \func (has_gt_uc); \ +func (has_heci_pxp); \
Presumably this will be used soon? (And the variety of HAS_ macros.)
Quoted 19 lines
drivers/gpu/drm/i915/intel_device_info.h +1
-0+func (has_heci_gscfi); \func (has_guc_deprivilege); \func (has_l3_dpf); \func (has_llc); \include/linux/mei_aux.h new file +9
-0@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2022, Intel Corporation. All rights reserved. +*/ +#ifndef _LINUX_MEI_AUX_H +#define _LINUX_MEI_AUX_H + +#include <linux/auxiliary_bus.h> +
include/linux/mei_aux.h line 19
Quoted 10 lines
include/linux/mei_aux.h new file +10
-0+struct mei_aux_device { +struct auxiliary_device aux_dev; +int irq; +struct resource bar; +}; + +#define auxiliary_dev_to_mei_aux_dev (auxiliary_dev) \ + container_of(auxiliary_dev, struct mei_aux_device, aux_dev) + +#endif /* _LINUX_MEI_AUX_H */
In summary I think prefix on the exported function and drm_err_ratelimited were the only comments which need action. The rest were either questions of suggestions on how to polish it a bit more so it aligns better with established i915 patterns.
Regards,
Tvrtko
Usyskin, Alexander
maintainerRE: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 136 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Tuesday, February 15, 2022 14:30
To: Usyskin, Alexander <[email protected]>; Greg Kroah- Hartman <[email protected]>; Jani Nikula <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>
Cc: [email protected]; Winkler, Tomas <[email protected]>; Lubart, Vitaly <[email protected]>; intel- [email protected]
Subject: Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary deviceQuoted 25 lines · Alexander Usyskin
From: Tomas Winkler <[email protected]>
GSC is a graphics system controller, it provides
a chassis controller for graphics discrete cards.There are two MEI interfaces in GSC: HECI1 and HECI2.
Both interfaces are on the BAR0 at offsets
0x00258000and0x00259000. GSC is a GT Engine (class 4: instance 6). HECI1 interrupt is signaled via bit 15 and HECI2 via bit 14 in the interrupt register.This patch exports GSC as auxiliary device for mei driver to bind to for HECI2 interface.
CC Rodrigo Vivi <[email protected]>Reviewed-by Greg Kroah-Hartman <[email protected]>Signed-off-by Tomas Winkler <[email protected]>Signed-off-by Vitaly Lubart <[email protected]>Signed-off-by Alexander Usyskin <[email protected]>---
V4: add header to theMAINTAINERSfile
drop empty line
V5: rebase
V6: rebase, drop redundant assignments
V7: add Greg KH Reviewed-byQuoted 5 lines
--- MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 196+++++++++++++++++++++++
Review
Quoted 41 lines
drivers/gpu/drm/i915/gt/intel_gsc.h | 37 +++++ drivers/gpu/drm/i915/gt/intel_gt.c | 3 + drivers/gpu/drm/i915/gt/intel_gt.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 13 ++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/intel_device_info.h | 2 + include/linux/mei_aux.h | 19 +++ 15 files changed, 295 insertions(+), 1 deletion(-)create mode 100644
drivers/gpu/drm/i915/gt/intel_gsc.ccreate mode 100644drivers/gpu/drm/i915/gt/intel_gsc.hcreate mode 100644include/linux/mei_aux.hMAINTAINERS +1
-0@@ -9797,6 +9797,7 @@ S: Supported F: Documentation/driver-api/mei/* F: drivers/misc/mei/ F: drivers/watchdog/mei_wdt.c +F: include/linux/mei_aux.h F: include/linux/mei_cl_bus.h F: include/uapi/linux/mei.h F: samples/mei/*drivers/gpu/drm/i915/Kconfig +1
-0@@ -29,6 +29,7 @@ config DRM_I915 select VMAP_PFN select DRM_TTM select DRM_BUDDY + select AUXILIARY_BUS help Choose this option if you have a system that has "Intel Graphics Media Accelerator" or "HD Graphics" integrated graphics,(quoted diff) +0
-0b/drivers/gpu/drm/i915/Makefile
Review
Quoted 14 lines
index
226dbef5f64a..e40ba71b3cdd100644drivers/gpu/drm/i915/Makefile +3
-0@@ -195,6 +195,9 @@ i915-y += gt/uc/intel_uc.o \ gt/uc/intel_huc_debugfs.o \ gt/uc/intel_huc_fw.o +# graphics system controller (GSC) support +i915-y += gt/intel_gsc.o + # modesetting core code i915-y += \ display/hsw_ips.o \(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gsc.cQuoted 30 lines
new file mode 100644
index 000000000000..d07f182f64e4drivers/gpu/drm/i915/gt/intel_gsc.c new file +25
-0@@ -0,0 +1,196 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright(c) 2019-2022, Intel Corporation. All rights reserved. +*/ + +#include <linux/irq.h> +#include <linux/mei_aux.h> +#include "i915_reg.h" +#include "i915_drv.h" +#include "gt/intel_gt.h" +#include "intel_gsc.h" + +#define GSC_BAR_LENGTH 0x00000FFC + +static void gsc_irq_mask (struct irq_data *d) +{ +/* generic irq handling */ +} + +static void gsc_irq_unmask (struct irq_data *d) +{ +/* generic irq handling */ +} > + +static struct irq_chip gsc_irq_chip = { + .name ="gsc_irq_chip" ,
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 31
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+ .irq_mask = gsc_irq_mask, + .irq_unmask = gsc_irq_unmask, +}; + +static int gsc_irq_init (struct drm_i915_private *dev_priv,int irq)I am not insisting but we tend to use i915 for the variable name instead of
dev_privsince some time back.
Ok, will change to i915
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 36
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+{ +irq_set_chip_and_handler_name (irq, &gsc_irq_chip, + handle_simple_irq,"gsc_irq_handler" ); + +return irq_set_chip_data (irq, dev_priv);I am not familiar with this interrupt scheme - does
dev_privget used at all byhandle_simple_irq, or anyone, after being set here?
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
Some leftover, thanks for spotting this!
It is a base of bar. I prefer bar name here. But not really matter.
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 48
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +7
-0+size_t bar_size; +}; + +/* gscfi (graphics system controller firmware interface) resources */ +static const struct intel_gsc_def intel_gsc_def_dg1[] = { + { + },Maybe put a comment in this empty element like "/* HECI1 not yet implemented. */"?
Will add
Quoted 36 lines
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 12 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +11
-0+ { + .name = "mei-gscfi", + .bar = GSC_DG1_HECI2_BASE, + .bar_size = GSC_BAR_LENGTH, + } +}; + +static void intel_gsc_release_dev (struct device *dev) +{ +struct auxiliary_device *aux_dev =to_auxiliary_dev (dev); + struct mei_aux_device *adev =
auxiliary_dev_to_mei_aux_dev(aux_dev);Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +9
-0+ +kfree (adev); +} + +static void intel_gsc_destroy_one (struct intel_gsc_intf *intf) +{ +if (intf->adev) { +auxiliary_device_delete (&intf->adev->aux_dev); +auxiliary_device_uninit (&intf->adev->aux_dev);drivers/gpu/drm/i915/gt/intel_gsc.c line 78
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+ intf->adev =NULL ; + } +if (intf->irq >=0 ) +irq_free_desc (intf->irq); + intf->irq =-1 ; +} + +static void intel_gsc_init_one (struct drm_i915_private *dev_priv, +struct intel_gsc_intf *intf, +unsigned int intf_id)Could pass in
intel_gscinstead ofdev_privto better match withintel_gscprefix, but no big deal.
Quoted 17 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 12 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +12
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ; + intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;Isn't
inf_id== 0 always a bug with this patch, regardless ofHAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plaindrm_WARN_ON_ONCE(intf_id == 0).
There will be patches for other cards that have pxp as soon as this is reviewed. It is better to have infra prepared for two heads.
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 94
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ + def = &intel_gsc_def_dg1[intf_id]; + +dev_dbg (&pdev->dev,"init gsc one with id %d\n" , intf_id);Meh, too much looks like a during development aid.
Will drop.
Quoted 62 lines
Quoted 31 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +31
-0+ intf->irq =irq_alloc_desc (0 ); +if (intf->irq <0 ) { +dev_err (&pdev->dev,"gsc irq error %d\n" , intf->irq); +return ; + } + + ret =gsc_irq_init (dev_priv, intf->irq); +if (ret <0 ) { +dev_err (&pdev->dev,"gsc irq init failed %d\n" , ret); + goto fail; + } + + adev =kzalloc (sizeof (*adev),GFP_KERNEL ); +if (!adev) + goto fail; + + adev->irq = intf->irq; + adev->bar.parent = &pdev->resource[0 ]; + adev->bar.start = def->bar + pdev->resource[0 ].start; + adev->bar.end = adev->bar.start + def->bar_size -1 ; + adev->bar.flags =IORESOURCE_MEM ; + adev->bar.desc =IORES_DESC_NONE ; + + aux_dev = &adev->aux_dev; + aux_dev->name = def->name; + aux_dev->id = (pci_domain_nr (pdev->bus) <<16 ) | +PCI_DEVID (pdev->bus->number, pdev->devfn); + aux_dev->dev.parent = &pdev->dev; + aux_dev->dev.release = intel_gsc_release_dev; + + ret =auxiliary_device_init (aux_dev);drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +10
-0+if (ret <0 ) { +dev_err (&pdev->dev,"gsc aux init failed %d\n" , ret); +kfree (adev); + goto fail; + } + + ret =auxiliary_device_add (aux_dev); +if (ret <0 ) { +dev_err (&pdev->dev,"gsc aux add failed %d\n" , ret); +/* adev will be freed with the put_device() and .release sequence */
For things which fail but do not prevent driver loading and operating otherwise correctly I'd suggest
drm_warnthroughout but maybe it is just me.drivers/gpu/drm/i915/gt/intel_gsc.c line 144
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +9
-0+auxiliary_device_uninit (aux_dev); + goto fail; + } + intf->adev = adev; + +dev_dbg (&pdev->dev,"gsc init one done\n" ); +return ; +fail: +intel_gsc_destroy_one (intf);Error handling is a bit meh but looks correct. Like you could avoid separate free's on the error paths by doing onion unwind, or even full onion unwind instead of conditional teardown in
intel_gsc_destroy_one. Not asking for it, just commenting.
Quoted 13 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 152
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+} + +static void intel_gsc_irq_handler (struct intel_gt *gt,unsigned int intf_id) +{ +int ret; + +if (intf_id >=INTEL_GSC_NUM_INTERFACES ) +return ;Is this worthy of a
WARN_ONordrm_warn? (ratelimited I suppose) Because it would be either bad hardware or a bad driver error to see the interrupt with wrong interface, no?
Will add
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;Likewise?
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { + DRM_ERROR_RATELIMITED("error handling GSC irq: irq notset");
Like this, but use logging functions which say which device please.
drm_err_ratelimited fits here?
Quoted 85 lines
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +6
-0+return ; + } + + ret =generic_handle_irq (gt->gsc.intf[intf_id].irq); +if (ret) + DRM_ERROR_RATELIMITED("error handling GSC irq: %d\n",ret);
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +11
-0+} + +void gsc_irq_handler (struct intel_gt *gt,u32 iir) +{ +if (iir &GSC_IRQ_INTF (0 )) +intel_gsc_irq_handler (gt,0 ); +if (iir &GSC_IRQ_INTF (1 )) +intel_gsc_irq_handler (gt,1 ); +} + +void intel_gsc_init(struct intel_gsc *gsc, struct drm_i915_private
*dev_priv)Here you don't need to pass in
dev_privsince you can get it withcontainer_ofandgt->i915but up to you, no big deal.Review
Quoted 22 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +21
-0+{ +unsigned int i; + +if (!HAS_HECI_GSC (dev_priv)) +return ; + +for (i =0 ; i <INTEL_GSC_NUM_INTERFACES ; i++) +intel_gsc_init_one (dev_priv, &gsc->intf[i], i); +} + +void intel_gsc_fini (struct intel_gsc *gsc) +{ +struct intel_gt *gt =gsc_to_gt (gsc); +unsigned int i; + +if (!HAS_HECI_GSC (gt->i915)) +return ; + +for (i =0 ; i <INTEL_GSC_NUM_INTERFACES ; i++) +intel_gsc_destroy_one (&gsc->intf[i]); +}(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gsc.hQuoted 28 lines
new file mode 100644
index 000000000000..67cb2a75f839drivers/gpu/drm/i915/gt/intel_gsc.h new file +23
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright(c) 2019-2022, Intel Corporation. All rights reserved. +*/ +#ifndef __INTEL_GSC_DEV_H__ +#define __INTEL_GSC_DEV_H__ + +#include <linux/types.h> + +struct drm_i915_private ; +struct intel_gt ; +struct mei_aux_device ; + +#define INTEL_GSC_NUM_INTERFACES 2 +/* +* The HECI1 bit corresponds to bit15 and HECI2 to bit14. +* The reason for this is to allow growth for more interfaces in the future. +*/ +#define GSC_IRQ_INTF (_x) BIT(15 - (_x)) + +/** +* struct intel_gsc - graphics security controller +* @intf : gsc interface drivers/gpu/drm/i915/gt/intel_gsc.h line 33
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.h new file +10
-0+*/ +struct intel_gsc { +struct intel_gsc_intf { +struct mei_aux_device *adev; +int irq; +unsigned int id; + } intf[INTEL_GSC_NUM_INTERFACES ]; +}; + +void intel_gsc_init(struct intel_gsc *gsc, struct drm_i915_private
*dev_priv);
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.h line 35
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gsc.h new file +2
-0+void intel_gsc_fini (struct intel_gsc *gsc); +void gsc_irq_handler (struct intel_gt *gt,u32 iir);Why not have consistent prefix on all exported functions?
Will fix
Quoted 88 lines
Review
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.h new file +2
-0+ +#endif /* __INTEL_GSC_DEV_H__ */ (quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gt.cReview
Quoted 21 lines
index
e8403fa53909..18961d154956100644drivers/gpu/drm/i915/gt/intel_gt.c +3
-0@@ -446,6 +446,8 @@ void intel_gt_chipset_flush(struct intel_gt *gt)void intel_gt_driver_register (struct intel_gt *gt) { +intel_gsc_init (>->gsc, gt->i915); +intel_rps_driver_register (>->rps);intel_gt_debugfs_register (gt);@@ -766,6 +768,7 @@ void intel_gt_driver_unregister(struct intel_gt *gt)intel_wakeref_t wakeref;intel_rps_driver_unregister (>->rps); +intel_gsc_fini (>->gsc);intel_pxp_fini (>->pxp);(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gt.hdrivers/gpu/drm/i915/gt/intel_gt.h static inline struct intel_gt *huc_to_gt(struct
Quoted 4 lines
index
2dad46c3eff2..6ba817c02baa100644drivers/gpu/drm/i915/gt/intel_gt.h +0
-0@@ -34,6 +34,11 @@ static inline struct intel_gt *huc_to_gt(struct
intel_huc*huc)drivers/gpu/drm/i915/gt/intel_gt.h static inline struct intel_gt *huc_to_gt(struct intel_huc *huc)
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gt.h +5
-0return container_of(huc, struct intel_gt, uc.huc); } +static inline struct intel_gt *gsc_to_gt (struct intel_gsc *gsc) +{ + return container_of(gsc, struct intel_gt, gsc); +} +void intel_gt_init_early (struct intel_gt *gt,struct drm_i915_private *i915); void __intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private*i915);
Review
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt.h +0
-0int intel_gt_assign_ggtt (struct intel_gt *gt);(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gt_irq.cdrivers/gpu/drm/i915/gt/intel_gt_irq.c gen11_other_irq_handler(struct intel_gt *gt, const u8
Quoted 4 lines
index
983264e10e0a..d36f919bbdf5100644drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0@@ -68,6 +68,9 @@ gen11_other_irq_handler(struct intel_gt *gt, const u8instance,
drivers/gpu/drm/i915/gt/intel_gt_irq.c gen11_other_irq_handler(struct intel_gt *gt, const u8 instance,
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +3
-0if (instance ==OTHER_KCR_INSTANCE )return intel_pxp_irq_handler (>->pxp, iir); +if (instance ==OTHER_GSC_INSTANCE ) +return gsc_irq_handler (gt, iir); + WARN_ONCE(1, "unhandled other interrupt instance=0x%x,iir=0x%x\n",
drivers/gpu/drm/i915/gt/intel_gt_irq.c gen11_other_irq_handler(struct intel_gt *gt, const u8 instance, · line 75
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0instance, iir);Digression - it would be nice to be able to report unhandled iir bits here but all handlers return void so refactoring would be needed.
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 186
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0}@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt)/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE,0);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt)
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 200
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK,~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 202
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 )) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 204
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0+if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 205
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 206
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0intel_uncore_write(uncore,
Quoted 9 lines
GEN11_GPM_WGBOXPERF_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );Why enable the one which is not supported by the patch? No harm doing it?
No harm and the next patch will be soon, this patch unfortunately is long overdue.
Quoted 119 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 234
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0u32 dmask;u32 smask;@@ -225,6 +233,9 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)/* Enable RCS, BCS, VCS and VECS class interrupts. */ intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE,dmask);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 235
Quoted 1 line
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0intel_uncore_write(uncore, GEN11_VCS_VECS_INTR_ENABLE,dmask);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 237
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0+if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE,drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt)
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0+ gsc_mask);/* Unmask irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write(uncore, GEN11_RCS0_RSVD_INTR_MASK,~smask);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 249
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0@@ -238,6 +249,8 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK,~dmask);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 251
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0if (HAS_ENGINE (gt,VECS2 ) ||HAS_ENGINE (gt,VECS3 )) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~dmask);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 253
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0+if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 255
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* * RPS interrupts will get enabled/disabled on demand when RPS itself
Review
Quoted 2 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0* is enabled/disabled. (quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gt_regs.hReview
Quoted 12 lines
index
a6f0220c2e9f..427f91900afc100644drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -944,6 +944,7 @@ enum {#define OTHER_GUC_INSTANCE 0#define OTHER_GTPM_INSTANCE 1#define OTHER_KCR_INSTANCE 4 +#define OTHER_GSC_INSTANCE 6#define GEN11_INTR_IDENTITY_REG (x) _MMIO(0x190060 + ((x) * 4))(quoted diff) +0
-0
b/drivers/gpu/drm/i915/gt/intel_gt_types.hReview
Quoted 20 lines
index
f20687796490..5556d55f76ea100644drivers/gpu/drm/i915/gt/intel_gt_types.h +2
-0@@ -16,6 +16,7 @@#include <linux/workqueue.h> #include "uc/intel_uc.h" +#include "intel_gsc.h" #include "i915_vma.h" #include "intel_engine_types.h" @@ -72,6 +73,7 @@ struct intel_gt {struct i915_ggtt *ggtt;struct intel_uc uc; +struct intel_gsc gsc;struct mutex tlb_invalidate_lock;(quoted diff) +0
-0
b/drivers/gpu/drm/i915/i915_drv.hdrivers/gpu/drm/i915/i915_drv.h IS_SUBPLATFORM(const struct
Quoted 4 lines
index
4f057a45654a..b41871abe776100644drivers/gpu/drm/i915/i915_drv.h +0
-0@@ -1444,6 +1444,14 @@ IS_SUBPLATFORM(const struct
drm_i915_private*i915,drivers/gpu/drm/i915/i915_drv.h IS_SUBPLATFORM(const struct drm_i915_private *i915,
Quoted 11 lines
drivers/gpu/drm/i915/i915_drv.h +7
-0#define HAS_DMC (dev_priv) (INTEL_INFO(dev_priv)- display.has_dmc) +#define HAS_HECI_PXP (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_pxp) + +#define HAS_HECI_GSCFI (dev_priv) \ + (INTEL_INFO(dev_priv)->has_heci_gscfi) + +#define HAS_HECI_GSC (dev_priv) (HAS_HECI_PXP(dev_priv) ||
HAS_HECI_GSCFI(dev_priv))Review
Quoted 6 lines
drivers/gpu/drm/i915/i915_drv.h +1
-0+#define HAS_MSO (i915) (DISPLAY_VER(i915) >= 12)#define HAS_RUNTIME_PM (dev_priv) (INTEL_INFO(dev_priv)-
has_runtime_pm)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/i915_pci.cReview
Quoted 14 lines
index
467252f885c2..8f608b03d30b100644drivers/gpu/drm/i915/i915_pci.c +2
-1@@ -900,7 +900,8 @@ static const struct intel_device_info rkl_info = { .has_llc = 0, \ .has_pxp = 0, \ .has_snoop = 1, \ - .is_dgfx = 1 + .is_dgfx = 1, \ + .has_heci_gscfi = 1 static const struct intel_device_info dg1_info = {GEN12_FEATURES ,(quoted diff) +0
-0
b/drivers/gpu/drm/i915/i915_reg.hReview
Quoted 13 lines
index
ca6adfc234c0..e74934255198100644drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -974,6 +974,8 @@#define GEN11_VEBOX2_RING_BASE 0x1d8000#define XEHP_VEBOX3_RING_BASE 0x1e8000#define XEHP_VEBOX4_RING_BASE 0x1f8000 +#define GSC_DG1_HECI1_BASE 0x00258000 +#define GSC_DG1_HECI2_BASE 0x00259000#define BLT_RING_BASE 0x22000(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_device_info.h
Quoted 11 lines
drivers/gpu/drm/i915/intel_device_info.h enum intel_ppgtt_type { · line 138
Quoted 8 lines
index
27dcfe6f2429..fa75f464cb01100644drivers/gpu/drm/i915/intel_device_info.h +1
-0@@ -135,6 +135,8 @@ enum intel_ppgtt_type {func (has_reset_engine); \func (has_global_mocs); \func (has_gt_uc); \ +func (has_heci_pxp); \Presumably this will be used soon? (And the variety of
HAS_macros.)
Yes, I have it staged, but want to have reviews on this one to fix obvious problems
Quoted 35 lines
Quoted 19 lines
drivers/gpu/drm/i915/intel_device_info.h +1
-0+func (has_heci_gscfi); \func (has_guc_deprivilege); \func (has_l3_dpf); \func (has_llc); \include/linux/mei_aux.h new file +9
-0@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2022, Intel Corporation. All rights reserved. +*/ +#ifndef _LINUX_MEI_AUX_H +#define _LINUX_MEI_AUX_H + +#include <linux/auxiliary_bus.h> +include/linux/mei_aux.h line 19
Quoted 10 lines
include/linux/mei_aux.h new file +10
-0+struct mei_aux_device { +struct auxiliary_device aux_dev; +int irq; +struct resource bar; +}; + +#define auxiliary_dev_to_mei_aux_dev (auxiliary_dev) \ + container_of(auxiliary_dev, struct mei_aux_device, aux_dev) + +#endif /* _LINUX_MEI_AUX_H */ In summary I think prefix on the exported function and
drm_err_ratelimitedwere the only comments which need action. The rest were either questions of suggestions on how to polish it a bit more so it aligns better with established i915 patterns.
Quoted 3 lines
Regards,
Tvrtko
Thanks for review! Will send a new one with fixes soon.
Signature · 2 lines
Thanks, Sasha
Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 8 lines · Alexander
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 36
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+{ +irq_set_chip_and_handler_name (irq, &gsc_irq_chip, + handle_simple_irq,"gsc_irq_handler" ); + +return irq_set_chip_data (irq, dev_priv);I am not familiar with this interrupt scheme - does
dev_privget used at all byhandle_simple_irq, or anyone, after being set here?
What about this? Is dev_priv required or you could pass in NULL just as well?
Quoted 10 lines
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
Quoted 2 lines
Some leftover, thanks for spotting this!
It is a base of bar. I prefer bar name here. But not really matter.
Is it?
+ adev->bar.start = def->bar + pdev->resource[0].start;
Looks like offset on top of BAR, no?
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ;Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;Isn't
inf_id== 0 always a bug with this patch, regardless ofHAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plaindrm_WARN_ON_ONCE(intf_id == 0).
Quoted 2 lines
There will be patches for other cards that have pxp as soon as this is reviewed. It is better to have infra prepared for two heads.
My point is things are half-prepared since you don't have the id 0 in the array, regardless of the HAS_HECI_PXP. Yes it can't be true now, but if you add a patch which enables it to be true, you have to modify the array at the same time or risk a broken patch in the middle.
I don't see the point of the condition making it sound like there are two criteria to enter below, while in fact there is only one in current code, and that it that it must not be entered because array is incomplete!
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;Likewise?
Quoted 8 lines
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { + DRM_ERROR_RATELIMITED("error handling GSC irq: irq notset");
Like this, but use logging functions which say which device please.
drm_err_ratelimitedfits here?
AFAICT it would be a programming bug and not something that can happen at runtime hence drm_warn_on_once sounds correct for both.
Quoted 34 lines
Quoted 25 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 186
Quoted 4 lines
}(quoted diff) +0
-0@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) /* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE,0);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt)
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 200
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK,~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 202
Quoted 2 lines
(quoted diff) +0
-0if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3)) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 204
Quoted 2 lines
(quoted diff) +2
-0+ if (HAS_HECI_GSC(gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 205
Quoted 2 lines
(quoted diff) +0
-0intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 206
Quoted 1 line
(quoted diff) +0
-0intel_uncore_write(uncore,Quoted 9 lines
GEN11_GPM_WGBOXPERF_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );Why enable the one which is not supported by the patch? No harm doing it?
Quoted 1 line
No harm and the next patch will be soon, this patch unfortunately is long overdue.
Just feels a bit lazy. You are adding two feature test macros to prepare, so why not use them.
Regards,
Tvrtko
Usyskin, Alexander
maintainerRE: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 29 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Wednesday, February 16, 2022 14:04
To: Usyskin, Alexander <[email protected]>; Greg Kroah- Hartman <[email protected]>; Jani Nikula <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>
Cc: [email protected]; Winkler, Tomas <[email protected]>; Lubart, Vitaly <[email protected]>; intel- [email protected]
Subject: Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary deviceQuoted 8 lines · Alexander
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 36
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+{ +irq_set_chip_and_handler_name (irq, &gsc_irq_chip, + handle_simple_irq,"gsc_irq_handler" ); + +return irq_set_chip_data (irq, dev_priv);I am not familiar with this interrupt scheme - does
dev_privget used at all byhandle_simple_irq, or anyone, after being set here?
Quoted 3 lines
What about this? Is
dev_privrequired or you could pass in NULL just as well?
It is not used, will remove
Quoted 17 lines
Quoted 10 lines
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
Quoted 2 lines
Some leftover, thanks for spotting this!
It is a base of bar. I prefer bar name here. But not really matter.Is it?
drivers/gpu/drm/i915/gt/intel_gsc.c new file +1
-0+ adev->bar.start = def->bar + pdev->resource[0 ].start;
Quoted 2 lines
Looks like offset on top of BAR, no?
Offset on top of DG bar; but start of HECI1/2 bar too.
Quoted 21 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ;Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;Isn't
inf_id== 0 always a bug with this patch, regardless ofHAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plaindrm_WARN_ON_ONCE(intf_id == 0).Quoted 1 line
There will be patches for other cards that have pxp as soon as this is
reviewed.
Quoted 1 line
It is better to have infra prepared for two heads.
Quoted 9 lines
My point is things are half-prepared since you don't have the id 0 in the array, regardless of the
HAS_HECI_PXP. Yes it can't be true now, but if you add a patch which enables it to be true, you have to modify the array at the same time or risk a broken patch in the middle.I don't see the point of the condition making it sound like there are two criteria to enter below, while in fact there is only one in current code, and that it that it must not be entered because array is incomplete!
We initialize both cells in gsc->intf array, the first one with defaults (two lines before this line) for systems without working PXP, like DG1.
The code on GSC level does not know that we don't have PXP and don't want to know.
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;Likewise?
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { + DRM_ERROR_RATELIMITED("error handling GSC irq: irq notset");
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Like this, but use logging functions which say which device please.
drm_err_ratelimitedfits here?AFAICT it would be a programming bug and not something that can happen at runtime hence
drm_warn_on_oncesounds correct for both.
Sure, will do
Quoted 33 lines
Quoted 25 lines
Quoted 25 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 186
Quoted 4 lines
}(quoted diff) +0
-0@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) /* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE,0);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt)
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 200
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK,~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 202
Quoted 2 lines
(quoted diff) +0
-0if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3)) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 204
Quoted 2 lines
(quoted diff) +2
-0+ if (HAS_HECI_GSC(gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 205
Quoted 2 lines
(quoted diff) +0
-0intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);Quoted 1 line
(quoted diff) +0
-0intel_uncore_write(uncore,Quoted 8 lines
Quoted 8 lines
GEN11_GPM_WGBOXPERF_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );Why enable the one which is not supported by the patch? No harm doing
Quoted 8 lines
it?
Quoted 2 lines
Quoted 1 line
No harm and the next patch will be soon, this patch unfortunately is long
overdue.
Just feels a bit lazy. You are adding two feature test macros to prepare, so why not use them.
I've been told that better to enable them both from the HW perspective, the real interrupt enable magic happens in GSC FW, not here.
Quoted 3 lines
Regards,
Tvrtko
Signature · 2 lines
Thanks, Sasha
Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 48 lines · Alexander
Quoted 29 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Wednesday, February 16, 2022 14:04
To: Usyskin, Alexander <[email protected]>; Greg Kroah- Hartman <[email protected]>; Jani Nikula <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>
Cc: [email protected]; Winkler, Tomas <[email protected]>; Lubart, Vitaly <[email protected]>; intel- [email protected]
Subject: Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary deviceQuoted 8 lines · Alexander
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 36
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+{ +irq_set_chip_and_handler_name (irq, &gsc_irq_chip, + handle_simple_irq,"gsc_irq_handler" ); + +return irq_set_chip_data (irq, dev_priv);I am not familiar with this interrupt scheme - does
dev_privget used at all byhandle_simple_irq, or anyone, after being set here?Quoted 3 lines
What about this? Is
dev_privrequired or you could pass in NULL just as well?It is not used, will remove
Quoted 13 lines
Quoted 12 lines
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
Some leftover, thanks for spotting this!
It is a base of bar. I prefer bar name here. But not really matter.
Quoted 8 lines
Quoted 6 lines
Is it?
drivers/gpu/drm/i915/gt/intel_gsc.c new file +1
-0+ adev->bar.start = def->bar + pdev->resource[0 ].start;Looks like offset on top of BAR, no?
Offset on top of DG bar; but start of HECI1/2 bar too.
Ok. :)
Quoted 26 lines
Quoted 26 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ;Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;Isn't
inf_id== 0 always a bug with this patch, regardless ofHAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plaindrm_WARN_ON_ONCE(intf_id == 0).Quoted 1 line
There will be patches for other cards that have pxp as soon as this is
reviewed.
Quoted 1 line
It is better to have infra prepared for two heads.
My point is things are half-prepared since you don't have the id 0 in the array, regardless of the
HAS_HECI_PXP. Yes it can't be true now, but if you add a patch which enables it to be true, you have to modify the array at the same time or risk a broken patch in the middle.
Quoted 8 lines
Quoted 4 lines
I don't see the point of the condition making it sound like there are two criteria to enter below, while in fact there is only one in current code, and that it that it must not be entered because array is incomplete!
We initialize both cells in
gsc->intfarray, the first one with defaults (two lines before this line) for systems without working PXP, like DG1.
The code on GSC level does not know that we don't have PXP and don't want to know.
By defaults you mean "-1" ?
My point is intel_gsc_def_dg1[] does not contain anything valid for interface zero. If you change HAS_HECI_PXP to return true, the code below does:
def = &intel_gsc_def_dg1[intf_id];
And points to template data not populated.
So you have to change two in conjuction. Hence safest code for this patch would simply be:
if (intf_id == 0) {
drm_WARN_ON_ONCE(, "Code not implemented yet!\n");
return;}
When you add entries to intel_gsc_def_dg1[] in a later series/patch, then you simply remove the above lines altogether.
Quoted 58 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;Likewise?
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { + DRM_ERROR_RATELIMITED("error handling GSC irq: irq notset");
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Like this, but use logging functions which say which device please.
drm_err_ratelimitedfits here?AFAICT it would be a programming bug and not something that can happen at runtime hence
drm_warn_on_oncesounds correct for both.Sure, will do
Quoted 36 lines
Quoted 25 lines
Quoted 25 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 186
Quoted 4 lines
}(quoted diff) +0
-0@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) /* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE,0);
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt)
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +2
-0intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 ); +if (HAS_HECI_GSC (gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE, 0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 200
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write (uncore,GEN11_RCS0_RSVD_INTR_MASK , ~0 );@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK,~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 202
Quoted 2 lines
(quoted diff) +0
-0if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3)) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 204
Quoted 2 lines
(quoted diff) +2
-0+ if (HAS_HECI_GSC(gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 205
Quoted 2 lines
(quoted diff) +0
-0intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);Quoted 1 line
(quoted diff) +0
-0intel_uncore_write(uncore,Quoted 8 lines
Quoted 8 lines
GEN11_GPM_WGBOXPERF_INTR_MASK, ~0);drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );Why enable the one which is not supported by the patch? No harm doing
it?
Quoted 2 lines
Quoted 1 line
No harm and the next patch will be soon, this patch unfortunately is long
Quoted 8 lines
Quoted 5 lines
overdue.
Just feels a bit lazy. You are adding two feature test macros to prepare, so why not use them.
I've been told that better to enable them both from the HW perspective, the real interrupt enable magic happens in GSC FW, not here.
Well whatever.. As long as logging of spurious/unexpected interrupts is in place I can live with that.
Regards,
Tvrtko
Usyskin, Alexander
maintainerRE: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary device
Quoted 131 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Thursday, February 17, 2022 11:26
To: Usyskin, Alexander <[email protected]>; Greg Kroah- Hartman <[email protected]>; Jani Nikula <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>
Cc: [email protected]; Winkler, Tomas <[email protected]>; Lubart, Vitaly <[email protected]>; intel- [email protected]
Subject: Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary deviceQuoted 9 lines · Alexander
Quoted 9 lines
-----Original Message-----
From: Tvrtko Ursulin <[email protected]>
Sent: Wednesday, February 16, 2022 14:04
To: Usyskin, Alexander <[email protected]>; Greg Kroah- Hartman <[email protected]>; Jani Nikula <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, RodrigoQuoted 3 lines
Quoted 3 lines
David Airlie <[email protected]>; Daniel Vetter <[email protected]>
Cc: [email protected]; Winkler, Tomas <[email protected]>; Lubart, Vitaly <[email protected]>;intel-
Quoted 11 lines
Quoted 11 lines
[email protected]
Subject: Re: [Intel-gfx] [PATCH v7 1/5] drm/i915/gsc: add gsc as a mei auxiliary deviceQuoted 3 lines · Alexander
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+{ + irq_set_chip_and_handler_name(irq, &gsc_irq_chip, + handle_simple_irq,"
gsc_irq_handler");Quoted 25 lines
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ + return irq_set_chip_data(irq, dev_priv);I am not familiar with this interrupt scheme - does
dev_privget used at all byhandle_simple_irq, or anyone, after being set here?What about this? Is
dev_privrequired or you could pass in NULL just as well?It is not used, will remove
Quoted 13 lines
Quoted 12 lines
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 41
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +5
-0+} + +struct intel_gsc_def { +const char *name; +const unsigned long bar;Unusual, why const out of curiosity? And is it "bar" or "base" would be more accurate?
Some leftover, thanks for spotting this!
It is a base of bar. I prefer bar name here. But not really matter.Quoted 8 lines
Quoted 6 lines
Is it?
drivers/gpu/drm/i915/gt/intel_gsc.c new file +1
-0+ adev->bar.start = def->bar + pdev->resource[0 ].start;Looks like offset on top of BAR, no?
Offset on top of DG bar; but start of HECI1/2 bar too.
Ok. :)
Quoted 26 lines
Quoted 26 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +8
-0+{ +struct pci_dev *pdev =to_pci_dev (dev_priv->drm.dev); +struct mei_aux_device *adev; +struct auxiliary_device *aux_dev; +const struct intel_gsc_def *def; +int ret; + + intf->irq =-1 ;Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 90
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +4
-0+ intf->id = intf_id; + +if (intf_id ==0 && !HAS_HECI_PXP (dev_priv)) +return ;Isn't
inf_id== 0 always a bug with this patch, regardless ofHAS_HECI_PXP, since the support is incomplete in this patch? If so I'd be more comfortable with a plaindrm_WARN_ON_ONCE(intf_id == 0).Quoted 1 line
There will be patches for other cards that have pxp as soon as this is
reviewed.
Quoted 1 line
It is better to have infra prepared for two heads.
My point is things are half-prepared since you don't have the id 0 in the array, regardless of the
HAS_HECI_PXP. Yes it can't be true now, but if you add a patch which enables it to be true, you have to modify the array at the same time or risk a broken patch in the middle.Quoted 6 lines
Quoted 4 lines
I don't see the point of the condition making it sound like there are two criteria to enter below, while in fact there is only one in current code, and that it that it must not be entered because array is incomplete!
We initialize both cells in
gsc->intfarray, the first one with defaults (twolines before this line)
Quoted 2 lines
for systems without working PXP, like DG1.
The code on GSC level does not know that we don't have PXP and don'twant to know.
By defaults you mean "-1" ?
My point is intel_gsc_def_dg1[] does not contain anything valid for interface zero. If you change
HAS_HECI_PXPto return true, the code below does:def = &intel_gsc_def_dg1[intf_id];And points to template data not populated.
So you have to change two in conjuction. Hence safest code for this patch would simply be:
Quoted 8 lines
if (intf_id == 0) { drm_WARN_ON_ONCE(, "Code not implemented yet!\n"); return; }When you add entries to intel_gsc_def_dg1[] in a later series/patch, then you simply remove the above lines altogether.
Maybe better to add check after def = &intel_gsc_def_dg1[intf_id]; for name pointer to catch mismatch between supported bits and filled structures in definition array, like:
if (def->name == NULL) {
drm_WARN_ON_ONCE(, "HECI%d is not implemented!\n", intf_id + 1);
return;
}This way we can leave this line as we'll have more platforms without HECI1
Quoted 80 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_gsc.c line 155
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (!HAS_HECI_GSC (gt->i915)) +return ;Likewise?
drivers/gpu/drm/i915/gt/intel_gsc.c
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_gsc.c new file +3
-0+ +if (gt->gsc.intf[intf_id].irq <=0 ) { + DRM_ERROR_RATELIMITED("error handling GSC irq:irq not
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
set");
Like this, but use logging functions which say which device please.
drm_err_ratelimitedfits here?AFAICT it would be a programming bug and not something that can
happen
Quoted 9 lines
Quoted 2 lines
at runtime hence
drm_warn_on_oncesounds correct for both.Sure, will do
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 186
Quoted 4 lines
}(quoted diff) +0
-0@@ -182,6 +185,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) /* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write(uncore,
GEN11_RENDER_COPY_INTR_ENABLE,Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
0);
Quoted 1 line
(quoted diff) +0
-0intel_uncore_write(uncore,
GEN11_VCS_VECS_INTR_ENABLE, 0);Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 189
Quoted 2 lines
(quoted diff) +2
-0+ if (HAS_HECI_GSC(gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_ENABLE, 0);Quoted 3 lines
(quoted diff) +0
-0/* Restore masks irqs on RCS, BCS, VCS and VECS engines. */ intel_uncore_write(uncore,
GEN11_RCS0_RSVD_INTR_MASK, ~0);Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 200
Quoted 2 lines
(quoted diff) +0
-0@@ -195,6 +200,8 @@ void gen11_gt_irq_reset(struct intel_gt *gt) intel_uncore_write(uncore,
GEN11_VECS0_VECS1_INTR_MASK,Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 202
Quoted 2 lines
(quoted diff) +0
-0if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3)) intel_uncore_write(uncore,
GEN12_VECS2_VECS3_INTR_MASK, ~0);Review void gen11_gt_irq_reset(struct intel_gt *gt) · line 204
Quoted 2 lines
(quoted diff) +2
-0+ if (HAS_HECI_GSC(gt->i915)) + intel_uncore_write(uncore,
GEN11_GUNIT_CSME_INTR_MASK, ~0);Quoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);Quoted 1 line
intel_uncore_write(uncore,
GEN11_GPM_WGBOXPERF_INTR_MASK, ~0);Review void gen11_gt_irq_postinstall(struct intel_gt
Quoted 1 line
(quoted diff) +0
-0@@ -209,6 +216,7 @@ void gen11_gt_irq_postinstall(struct intel_gt*gt)
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_postinstall(struct intel_gt *gt) · line 219
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +1
-0{struct intel_uncore *uncore = gt->uncore;u32 irqs =GT_RENDER_USER_INTERRUPT ; +const u32 gsc_mask =GSC_IRQ_INTF (0 ) |GSC_IRQ_INTF (1 );Why enable the one which is not supported by the patch? No harm
doing
Quoted 11 lines
Quoted 8 lines
it?
Quoted 2 lines
Quoted 1 line
No harm and the next patch will be soon, this patch unfortunately is long
overdue.
Just feels a bit lazy. You are adding two feature test macros to prepare, so why not use them.
I've been told that better to enable them both from the HW perspective, the real interrupt enable magic happens in GSC FW, not here.
Well whatever.. As long as logging of spurious/unexpected interrupts is in place I can live with that.
Regards,
Tvrtko
Signature · 2 lines
Thanks, Sasha
Alexander Usyskin
maintainerPATCH v7 2/5 mei: add support for graphics system controller (gsc) devices
In reply to Alexander UsyskinFrom: Tomas Winkler <[email protected]>
GSC is a graphics system controller, based on CSE, it provides a chassis controller for graphics discrete cards, as well as it supports media protection on selected devices.
mei_gsc binds to a auxiliary devices exposed by Intel discrete driver i915.
---
V4: drop debug prints
replace selects with depends on in Kconfig
V5: Rebase
V6: Rebase
V7: add Greg KH Reviewed-by
--- drivers/misc/mei/Kconfig | 14 +++ drivers/misc/mei/Makefile | 3 + drivers/misc/mei/gsc-me.c | 186 ++++++++++++++++++++++++++++++++++++++ drivers/misc/mei/hw-me.c | 27 +++++- drivers/misc/mei/hw-me.h | 2 + 5 files changed, 230 insertions(+), 2 deletions(-) create mode 100644 drivers/misc/mei/gsc-me.c
drivers/misc/mei/Kconfig +14 -0
@@ -46,6 +46,20 @@ config INTEL_MEI_TXE Supported SoCs: Intel Bay Trail +config INTEL_MEI_GSC + tristate "Intel MEI GSC embedded device" + depends on INTEL_MEI + depends on INTEL_MEI_ME + depends on X86 && PCI + depends on DRM_I915 + help + Intel auxiliary driver for GSC devices embedded in Intel graphics devices. + + An MEI device here called GSC can be embedded in an + Intel graphics devices, to support a range of chassis + tasks such as graphics card firmware update and security + tasks. + source "drivers/misc/mei/hdcp/Kconfig" source "drivers/misc/mei/pxp/Kconfig"
drivers/misc/mei/Makefile +3 -0
@@ -18,6 +18,9 @@ obj-$(CONFIG_INTEL_MEI_ME) += mei-me.o mei-me-objs := pci-me.o mei-me-objs += hw-me.o +obj-$(CONFIG_INTEL_MEI_GSC) += mei-gsc.o +mei-gsc-objs := gsc-me.o + obj-$(CONFIG_INTEL_MEI_TXE) += mei-txe.o mei-txe-objs := pci-txe.o mei-txe-objs += hw-txe.o
drivers/misc/mei/gsc-me.c new file +186 -0
186 lines not on this page · raw message
drivers/misc/mei/hw-me.c +25 -2
@@ -1226,6 +1226,7 @@ irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id)me_intr_disable (dev, hcsr);return IRQ_WAKE_THREAD ; } +EXPORT_SYMBOL_GPL (mei_me_irq_quick_handler);/** * mei_me_irq_thread_handler - function called after ISR to handle the interrupt
@@ -1320,6 +1321,7 @@ irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id)mutex_unlock (&dev->device_lock);return IRQ_HANDLED ; } +EXPORT_SYMBOL_GPL (mei_me_irq_thread_handler);static const struct mei_hw_ops mei_me_hw_ops = {
@@ -1433,6 +1435,12 @@ static bool mei_me_fw_type_sps(const struct pci_dev *pdev)#define MEI_CFG_KIND_ITOUCH \ .kind = "itouch" +#define MEI_CFG_TYPE_GSC \ + .kind = "gsc" + +#define MEI_CFG_TYPE_GSCFI \ + .kind = "gscfi" +#define MEI_CFG_FW_SPS \ .quirk_probe = mei_me_fw_type_sps
@@ -1565,6 +1573,18 @@ static const struct mei_cfg mei_me_pch15_sps_cfg = { MEI_CFG_FW_SPS, }; +/* Graphics System Controller */ +static const struct mei_cfg mei_me_gsc_cfg = { +MEI_CFG_TYPE_GSC , +MEI_CFG_PCH8_HFS , +}; + +/* Graphics System Controller Firmware Interface */ +static const struct mei_cfg mei_me_gscfi_cfg = { +MEI_CFG_TYPE_GSCFI , +MEI_CFG_PCH8_HFS , +}; +/* * mei_cfg_list - A list of platform platform specific configurations. * Note: has to be synchronized with enum mei_cfg_idx.
@@ -1585,6 +1605,8 @@ static const struct mei_cfg *const mei_cfg_list[] = { [MEI_ME_PCH12_SPS_ITOUCH_CFG] = &mei_me_pch12_itouch_sps_cfg, [MEI_ME_PCH15_CFG] = &mei_me_pch15_cfg, [MEI_ME_PCH15_SPS_CFG] = &mei_me_pch15_sps_cfg, + [MEI_ME_GSC_CFG] = &mei_me_gsc_cfg, + [MEI_ME_GSCFI_CFG] = &mei_me_gscfi_cfg, };const struct mei_cfg *mei_me_get_cfg (kernel_ulong_t idx)
@@ -1595,7 +1617,8 @@ const struct mei_cfg *mei_me_get_cfg(kernel_ulong_t idx)return NULL ;return mei_cfg_list[idx]; -}; +} +EXPORT_SYMBOL_GPL (mei_me_get_cfg);/** * mei_me_dev_init - allocates and initializes the mei device structure
@@ -1630,4 +1653,4 @@ struct mei_device *mei_me_dev_init(struct device *parent,return dev; } - +EXPORT_SYMBOL_GPL (mei_me_dev_init);
drivers/misc/mei/hw-me.h +2 -0
@@ -112,6 +112,8 @@ enum mei_cfg_idx {MEI_ME_PCH12_SPS_ITOUCH_CFG ,MEI_ME_PCH15_CFG ,MEI_ME_PCH15_SPS_CFG , +MEI_ME_GSC_CFG , +MEI_ME_GSCFI_CFG , MEI_ME_NUM_CFG, };
Signature · 1 line
2.32.0
Alexander Usyskin
maintainerPATCH v7 3/5 mei: gsc: setup char driver alive in spite of firmware handshake failure
In reply to Alexander UsyskinSetup char device in spite of firmware handshake failure.
In order to provide host access to the firmware status registers and other information required for the manufacturing process.
---
V5: Rebase
V6: Rebase
V7: add Greg KH Reviewed-by
--- drivers/misc/mei/gsc-me.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/misc/mei/gsc-me.c +6 -5
@@ -79,11 +79,12 @@ static int mei_gsc_probe(struct auxiliary_device *aux_dev,pm_runtime_set_active (device);pm_runtime_enable (device); -if (mei_start (dev)) { -dev_err (device,"init hw failure.\n" ); - ret = -ENODEV ; - goto err; - } +/* Continue to char device setup in spite of firmware handshake failure. +* In order to provide access to the firmware status registers to the user +* space via sysfs. +*/ +if (mei_start (dev)) +dev_warn (device,"init hw failure.\n" );pm_runtime_set_autosuspend_delay (device,MEI_GSC_RPM_TIMEOUT );pm_runtime_use_autosuspend (device);
Signature · 1 line
2.32.0
Alexander Usyskin
maintainerPATCH v7 4/5 mei: gsc: add runtime pm handlers
In reply to Alexander UsyskinFrom: Tomas Winkler <[email protected]>
Implement runtime handlers for mei-gsc, to track idle state of the device properly.
---
V4: drop debug prints
V5: Rebase
V6: Rebase
V7: add Greg KH Reviewed-by
--- drivers/misc/mei/gsc-me.c | 67 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-)
drivers/misc/mei/gsc-me.c +66 -1
@@ -152,7 +152,72 @@ static int __maybe_unused mei_gsc_pm_resume(struct device *device)return 0 ; } -static SIMPLE_DEV_PM_OPS(mei_gsc_pm_ops, mei_gsc_pm_suspend, mei_gsc_pm_resume); +static int __maybe_unused mei_gsc_pm_runtime_idle (struct device *device) +{ +struct mei_device *dev =dev_get_drvdata (device); + +if (!dev) +return -ENODEV ; +if (mei_write_is_idle (dev)) +pm_runtime_autosuspend (device); + +return -EBUSY ; +} + +static int __maybe_unused mei_gsc_pm_runtime_suspend (struct device *device) +{ +struct mei_device *dev =dev_get_drvdata (device); +struct mei_me_hw *hw; +int ret; + +if (!dev) +return -ENODEV ; + +mutex_lock (&dev->device_lock); + +if (mei_write_is_idle (dev)) { + hw =to_me_hw (dev); + hw->pg_state =MEI_PG_ON ; + ret =0 ; + }else { + ret = -EAGAIN ; + } + +mutex_unlock (&dev->device_lock); + +return ret; +} + +static int __maybe_unused mei_gsc_pm_runtime_resume (struct device *device) +{ +struct mei_device *dev =dev_get_drvdata (device); +struct mei_me_hw *hw; +irqreturn_t irq_ret; + +if (!dev) +return -ENODEV ; + +mutex_lock (&dev->device_lock); + + hw =to_me_hw (dev); + hw->pg_state =MEI_PG_OFF ; + +mutex_unlock (&dev->device_lock); + + irq_ret =mei_me_irq_thread_handler (1 , dev); +if (irq_ret !=IRQ_HANDLED ) +dev_err (dev->dev,"thread handler fail %d\n" , irq_ret); + +return 0 ; +} + +static const struct dev_pm_ops mei_gsc_pm_ops = { + SET_SYSTEM_SLEEP_PM_OPS(mei_gsc_pm_suspend, + mei_gsc_pm_resume) +SET_RUNTIME_PM_OPS (mei_gsc_pm_runtime_suspend, + mei_gsc_pm_runtime_resume, + mei_gsc_pm_runtime_idle) +};static const struct auxiliary_device_id mei_gsc_id_table[] = { {
Signature · 1 line
2.32.0
Alexander Usyskin
maintainerPATCH v7 5/5 mei: gsc: retrieve the firmware version
In reply to Alexander UsyskinAdd a hook to retrieve the firmware version of the
GSC devices to bus-fixup.
GSC has a different MKHI clients GUIDs but the same message structure to retrieve the firmware version as MEI so mei_fwver() can be reused.
---
V5: Rebase
V6: Rebase
V7: add Greg KH Reviewed-by
--- drivers/misc/mei/bus-fixup.c | 25 +++++++++++++++++++++++++ drivers/misc/mei/hw-me.c | 2 ++ 2 files changed, 27 insertions(+)
drivers/misc/mei/bus-fixup.c +25 -0
@@ -30,6 +30,12 @@ static const uuid_le mei_nfc_info_guid = MEI_UUID_NFC_INFO;#define MEI_UUID_MKHIF_FIX UUID_LE(0x55213584, 0x9a29, 0x4916, \ 0xba, 0xdf, 0xf, 0xb7, 0xed, 0x68, 0x2a, 0xeb) +#define MEI_UUID_IGSC_MKHI UUID_LE(0xE2C2AFA2, 0x3817, 0x4D19, \ + 0x9D, 0x95, 0x06, 0xB1, 0x6B, 0x58, 0x8A, 0x5D) + +#define MEI_UUID_IGSC_MKHI_FIX UUID_LE(0x46E0C1FB, 0xA546, 0x414F, \ + 0x91, 0x70, 0xB7, 0xF4, 0x6D, 0x57, 0xB4, 0xAD) +#define MEI_UUID_HDCP UUID_LE(0xB638AB7E, 0x94E2, 0x4EA2, \ 0xA5, 0x52, 0xD1, 0xC5, 0x4B, 0x62, 0x7F, 0x04)
@@ -241,6 +247,23 @@ static void mei_mkhi_fix(struct mei_cl_device *cldev)mei_cldev_disable (cldev); } +static void mei_gsc_mkhi_ver (struct mei_cl_device *cldev) +{ +int ret; + +/* No need to enable the client if nothing is needed from it */ +if (!cldev->bus->fw_f_fw_ver_supported) +return ; + + ret =mei_cldev_enable (cldev); +if (ret) +return ; + + ret =mei_fwver (cldev); +if (ret <0 ) +dev_err (&cldev->dev,"FW version command failed %d\n" , ret); +mei_cldev_disable (cldev); +}/** * mei_wd - wd client on the bus, change protocol version * as the API has changed.
@@ -492,6 +515,8 @@ static struct mei_fixup {MEI_FIXUP (MEI_UUID_NFC_HCI , mei_nfc),MEI_FIXUP (MEI_UUID_WD , mei_wd),MEI_FIXUP (MEI_UUID_MKHIF_FIX , mei_mkhi_fix), +MEI_FIXUP (MEI_UUID_IGSC_MKHI , mei_gsc_mkhi_ver), +MEI_FIXUP (MEI_UUID_IGSC_MKHI_FIX , mei_gsc_mkhi_ver),MEI_FIXUP (MEI_UUID_HDCP , whitelist),MEI_FIXUP (MEI_UUID_ANY , vt_support), MEI_FIXUP(MEI_UUID_PAVP, whitelist),
drivers/misc/mei/hw-me.c +2 -0
@@ -1577,12 +1577,14 @@ static const struct mei_cfg mei_me_pch15_sps_cfg = {static const struct mei_cfg mei_me_gsc_cfg = {MEI_CFG_TYPE_GSC ,MEI_CFG_PCH8_HFS , +MEI_CFG_FW_VER_SUPP , };/* Graphics System Controller Firmware Interface */ static const struct mei_cfg mei_me_gscfi_cfg = {MEI_CFG_TYPE_GSCFI ,MEI_CFG_PCH8_HFS , +MEI_CFG_FW_VER_SUPP , };/*
Signature · 1 line
2.32.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add driver for GSC controller (rev7)
In reply to Alexander Usyskin== Series Details ==
== Series Details ==
Series: Add driver for GSC controller (rev7)
URL : https://patchwork.freedesktop.org/series/98066/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 7a41c021be32 drm/i915/gsc: add gsc as a mei auxiliary device -:63: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #63: new file mode 100644
-:449: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev_priv' - possible side-effects? #449: FILE: drivers/gpu/drm/i915/i915_drv.h:1453:
+#define HAS_HECI_GSC(dev_priv) (HAS_HECI_PXP(dev_priv) || HAS_HECI_GSCFI(dev_priv))
total: 0 errors, 1 warnings, 1 checks, 410 lines checked14f79d10b186 mei: add support for graphics system controller (gsc) devices
-:57: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #57:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 289 lines checked66deddcad662 mei: gsc: setup char driver alive in spite of firmware handshake failure 791e0ad8dabc mei: gsc: add runtime pm handlers45a4cf17359a mei: gsc: retrieve the firmware version
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Add driver for GSC controller (rev7)
In reply to Alexander Usyskin== Series Details ==
== Series Details ==
Series: Add driver for GSC controller (rev7)
URL : https://patchwork.freedesktop.org/series/98066/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Add driver for GSC controller (rev7)
In reply to Alexander Usyskin== Series Details ==
== Series Details ==
Series: Add driver for GSC controller (rev7)
URL : https://patchwork.freedesktop.org/series/98066/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11224 -> Patchwork_22261
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/index.html
Participating hosts (48 -> 43)
------------------------------
Missing (5): shard-tglu fi-bsw-cyan shard-rkl shard-dg1 bat-jsl-2
Known issues
------------
Here are the changes found in Patchwork_22261 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [PASS][1] -> [INCOMPLETE][2] ([i915#2940])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/fi-bsw-n3050/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-bsw-n3050/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@requests:
- fi-blb-e6850: [PASS][3] -> [DMESG-FAIL][4] ([i915#5026])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/fi-blb-e6850/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-blb-e6850/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-bsw-n3050: NOTRUN -> [FAIL][5] ([fdo#109271] / [i915#1436] / [i915#2722] / [i915#3428] / [i915#4312])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-bsw-n3050/igt@[email protected]
- fi-blb-e6850: NOTRUN -> [FAIL][6] ([fdo#109271] / [i915#2403] / [i915#2426] / [i915#4312])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-blb-e6850/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [FAIL][7] ([i915#2426] / [i915#4312])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-bdw-5557u/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3@smem:
- fi-bdw-5557u: [INCOMPLETE][8] ([i915#146]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/fi-bdw-5557u/igt@gem_exec_suspend@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/fi-bdw-5557u/igt@gem_exec_suspend@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2722]: https://gitlab.freedesktop.org/drm/intel/issues/2722
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4897]: https://gitlab.freedesktop.org/drm/intel/issues/4897
[i915#5026]: https://gitlab.freedesktop.org/drm/intel/issues/5026
Build changes
-------------
* Linux: CI_DRM_11224 -> Patchwork_22261
CI-20190529: 20190529
CI_DRM_11224: a55c69f5d509af75d5fd907cb2c9c7a6e1ce09c2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6343: 59c59f45b8433300b1b45cc9abc4b86dd0f81084 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22261: 45a4cf17359a7c29e17ef3221c3f2376cf8171fd @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
45a4cf17359a mei: gsc: retrieve the firmware version791e0ad8dabc mei: gsc: add runtime pm handlers66deddcad662 mei: gsc: setup char driver alive in spite of firmware handshake failure 14f79d10b186 mei: add support for graphics system controller (gsc) devices 7a41c021be32 drm/i915/gsc: add gsc as a mei auxiliary device
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for Add driver for GSC controller (rev7)
In reply to Alexander Usyskin== Series Details ==
== Series Details ==
Series: Add driver for GSC controller (rev7)
URL : https://patchwork.freedesktop.org/series/98066/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11224_full -> Patchwork_22261_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 13)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22261_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@gem_contexts:
- {shard-rkl}: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-2/igt@i915_selftest@live@gem_contexts.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-5/igt@i915_selftest@live@gem_contexts.html
* igt@prime_self_import@reimport-vs-gem_close-race:
- {shard-rkl}: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-1/igt@prime_self_import@reimport-vs-gem_close-race.html
* igt@syncobj_timeline@etime-multi-wait-all-for-submit-unsubmitted-submitted-signaled:
- {shard-rkl}: ([PASS][4], [PASS][5]) -> [INCOMPLETE][6]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-2/igt@syncobj_timeline@etime-multi-wait-all-for-submit-unsubmitted-submitted-signaled.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-4/igt@syncobj_timeline@etime-multi-wait-all-for-submit-unsubmitted-submitted-signaled.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-5/igt@syncobj_timeline@etime-multi-wait-all-for-submit-unsubmitted-submitted-signaled.html
Known issues
------------
Here are the changes found in Patchwork_22261_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@in-flight-10ms:
- shard-tglb: [PASS][7] -> [TIMEOUT][8] ([i915#3063])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglb3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb3/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][9] -> [FAIL][10] ([i915#232])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglb6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb5/igt@[email protected]
* igt@gem_exec_balancer@parallel-ordering:
- shard-kbl: NOTRUN -> [DMESG-FAIL][11] ([i915#5076])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl7/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-tglb: NOTRUN -> [FAIL][12] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-kbl: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-kbl4/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][15] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][16] -> [FAIL][17] ([i915#2842])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-iclb3/igt@gem_exec_fair@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@no-bsd:
- shard-tglb: NOTRUN -> [SKIP][18] ([fdo#109283])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@gem_exec_whisper@basic-fds-priority-all:
- shard-glk: [PASS][19] -> [DMESG-WARN][20] ([i915#118])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk6/igt@[email protected]
* igt@gem_lmem_swapping@heavy-multi:
- shard-apl: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#4613]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl8/igt@[email protected]
* igt@gem_lmem_swapping@heavy-verify-random:
- shard-kbl: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#4613]) +1 similar issue
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl6/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][23] ([fdo#109271] / [i915#4613]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl3/igt@[email protected]
* igt@gem_lmem_swapping@random:
- shard-tglb: NOTRUN -> [SKIP][24] ([i915#4613])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-tglb: NOTRUN -> [WARN][25] ([i915#2658])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@gem_pxp@regular-baseline-src-copy-readible:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#4270])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@gem_softpin@allocator-evict-all-engines:
- shard-glk: [PASS][27] -> [FAIL][28] ([i915#4171])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk5/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk2/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3323])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@[email protected]
* igt@gen3_render_tiledy_blits:
- shard-tglb: NOTRUN -> [SKIP][30] ([fdo#109289]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@gen3_render_tiledy_blits.html
* igt@gen9_exec_parse@allowed-single:
- shard-tglb: NOTRUN -> [SKIP][31] ([i915#2527] / [i915#2856]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@i915_pm_lpsp@screens-disabled:
- shard-skl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#1888])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl3/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][33] ([fdo#111644] / [i915#1397] / [i915#2411])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition-fencing:
- shard-tglb: NOTRUN -> [SKIP][34] ([i915#1769])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#111614]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-kbl: NOTRUN -> [SKIP][36] ([fdo#109271] / [i915#3777]) +1 similar issue
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl1/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-apl: NOTRUN -> [SKIP][37] ([fdo#109271] / [i915#3777]) +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl2/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_fb@yf-tiled-32bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][38] ([fdo#111615])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3886]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][40] ([fdo#109271] / [i915#3886]) +2 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl3/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-crc-primary-basic-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][41] ([fdo#109271] / [i915#3886]) +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@kms_ccs@pipe-b-crc-primary-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][42] ([fdo#111615] / [i915#3689]) +4 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-yf_tiled_ccs.html
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][43] ([i915#3689] / [i915#3886]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][44] ([i915#3689]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_ccs.html
* igt@kms_chamelium@dp-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +11 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl6/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-negative:
- shard-kbl: NOTRUN -> [SKIP][46] ([fdo#109271] / [fdo#111827]) +8 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-tglb: NOTRUN -> [SKIP][47] ([fdo#109284] / [fdo#111827]) +3 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-max:
- shard-skl: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +4 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-tglb: NOTRUN -> [SKIP][49] ([i915#1063])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][50] ([i915#1319])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl1/igt@[email protected]
- shard-apl: NOTRUN -> [TIMEOUT][51] ([i915#1319])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-max-size-random:
- shard-skl: NOTRUN -> [SKIP][52] ([fdo#109271]) +46 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-32x32-random:
- shard-tglb: NOTRUN -> [SKIP][53] ([i915#3319])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-32x10-onscreen:
- shard-tglb: NOTRUN -> [SKIP][54] ([i915#3359]) +4 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][55] ([fdo#109279] / [i915#3359]) +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-iclb: [PASS][56] -> [FAIL][57] ([i915#2346])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-iclb1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
- shard-skl: [PASS][58] -> [FAIL][59] ([i915#2346] / [i915#533])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-skl7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium:
- shard-tglb: NOTRUN -> [SKIP][60] ([i915#3528])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank@ac-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][61] -> [FAIL][62] ([i915#79])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk5/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk8/igt@kms_flip@[email protected]
* igt@kms_flip@2x-plain-flip-interruptible:
- shard-tglb: NOTRUN -> [SKIP][63] ([fdo#109274] / [fdo#111825]) +6 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-kbl: NOTRUN -> [DMESG-WARN][64] ([i915#180])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check@c-edp1:
- shard-skl: [PASS][65] -> [FAIL][66] ([i915#2122]) +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-skl4/igt@kms_flip@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#2587])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-plflip-blt:
- shard-tglb: NOTRUN -> [SKIP][68] ([fdo#109280] / [fdo#111825]) +13 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [PASS][69] -> [DMESG-WARN][70] ([i915#180]) +3 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-kbl3/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl7/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][71] ([fdo#109271]) +78 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][72] -> [FAIL][73] ([i915#1188]) +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-skl8/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl9/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][74] ([fdo#109271] / [i915#533])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#533]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl8/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: NOTRUN -> [INCOMPLETE][76] ([i915#180] / [i915#2828])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-7efc:
- shard-skl: NOTRUN -> [FAIL][77] ([fdo#108145] / [i915#265])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl3/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][78] ([fdo#108145] / [i915#265]) +1 similar issue
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][79] ([fdo#108145] / [i915#265]) +2 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl8/igt@[email protected]
* igt@kms_plane_lowres@pipe-c-tiling-none:
- shard-tglb: NOTRUN -> [SKIP][80] ([i915#3536])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-skl: NOTRUN -> [SKIP][81] ([fdo#109271] / [i915#658])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area:
- shard-kbl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#658])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl3/igt@[email protected]
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-tglb: NOTRUN -> [FAIL][83] ([i915#132] / [i915#3467]) +2 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@kms_psr@psr2_cursor_plane_onoff.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][84] -> [SKIP][85] ([fdo#109441]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb8/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_rotation_crc@multiplane-rotation-cropping-bottom:
- shard-skl: [PASS][86] -> [DMESG-WARN][87] ([i915#1982])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-skl3/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@[email protected]
* igt@kms_setmode@basic:
- shard-glk: [PASS][88] -> [FAIL][89] ([i915#31])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk6/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk4/igt@[email protected]
* igt@kms_tv_load_detect@load-detect:
- shard-tglb: NOTRUN -> [SKIP][90] ([fdo#109309])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][91] ([fdo#109271]) +126 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl3/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-apl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#2437])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl8/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-tglb: NOTRUN -> [SKIP][93] ([i915#2437])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@nouveau_crc@pipe-d-ctx-flip-detection:
- shard-tglb: NOTRUN -> [SKIP][94] ([i915#2530])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-skl: NOTRUN -> [FAIL][95] ([i915#1542])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl3/igt@[email protected]
* igt@prime_nv_api@i915_nv_import_twice_check_flink_name:
- shard-tglb: NOTRUN -> [SKIP][96] ([fdo#109291])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@prime_nv_api@i915_nv_import_twice_check_flink_name.html
* igt@prime_vgem@fence-write-hang:
- shard-tglb: NOTRUN -> [SKIP][97] ([fdo#109295])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@[email protected]
* igt@syncobj_timeline@transfer-timeline-point:
- shard-tglb: NOTRUN -> [DMESG-FAIL][98] ([i915#5098])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@[email protected]
* igt@sysfs_clients@create:
- shard-apl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#2994]) +2 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-apl3/igt@[email protected]
* igt@sysfs_clients@fair-0:
- shard-skl: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#2994])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl3/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#2994])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl6/igt@[email protected]
#### Possible fixes ####
* igt@drm_read@empty-block:
- {shard-rkl}: ([SKIP][102], [SKIP][103]) ([i915#1845]) -> [PASS][104] +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-4/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-5/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-6/igt@[email protected]
* igt@fbdev@unaligned-write:
- {shard-rkl}: [SKIP][105] ([i915#2582]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-5/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_persistence@smoketest:
- {shard-dg1}: [DMESG-WARN][107] ([i915#4892]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-dg1-18/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-dg1-12/igt@[email protected]
* igt@gem_exec_capture@pi@vcs0:
- shard-iclb: [INCOMPLETE][109] ([i915#3371]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-iclb6/igt@gem_exec_capture@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb2/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][111] ([i915#2846]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk3/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk8/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- {shard-tglu}: [FAIL][113] ([i915#2842]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglu-8/igt@gem_exec_fair@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglu-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: [FAIL][115] ([i915#2842]) -> [PASS][116] +4 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-kbl7/igt@gem_exec_fair@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-kbl4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [FAIL][117] ([i915#2842]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglb8/igt@gem_exec_fair@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-fds-forked-all:
- shard-glk: [DMESG-WARN][119] ([i915#118]) -> [PASS][120]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-glk3/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-glk4/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][121] ([i915#454]) -> [PASS][122]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-iclb3/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-iclb6/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- {shard-tglu}: [SKIP][123] ([i915#4281]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglu-3/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglu-4/igt@[email protected]
* igt@i915_pm_rpm@dpms-non-lpsp:
- {shard-dg1}: [SKIP][125] ([i915#1397]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-dg1-12/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-dg1-18/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-skl: [INCOMPLETE][127] ([i915#4817]) -> [PASS][128]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-skl1/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-skl4/igt@[email protected]
* igt@kms_atomic_transition@modeset-transition@1x-outputs:
- shard-tglb: [INCOMPLETE][129] -> [PASS][130] +1 similar issue
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-tglb3/igt@kms_atomic_transition@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-tglb8/igt@kms_atomic_transition@[email protected]
* igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_rc_ccs:
- {shard-rkl}: [SKIP][131] ([i915#1845]) -> [PASS][132] +12 similar issues
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-4/igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_rc_ccs.html
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-6/igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_rc_ccs.html
* igt@kms_color@pipe-a-ctm-0-25:
- {shard-rkl}: [SKIP][133] ([i915#1149] / [i915#4098]) -> [PASS][134]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-4/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-offscreen:
- {shard-rkl}: ([SKIP][135], [SKIP][136]) ([fdo#112022]) -> [PASS][137]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-5/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11224/shard-rkl-4/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-random:
- {shard-rkl}:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22261/index.html