Skip to content

Commit

Permalink
drm/xe/gsc: enable pvc support
Browse files Browse the repository at this point in the history
Configure and enable PVC HECI GSC support.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
  • Loading branch information
Alexander Usyskin authored and Rodrigo Vivi committed Dec 21, 2023
1 parent 047d1f6 commit 86017f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/regs/xe_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define XEHPC_BCS8_RING_BASE 0x3ee000

#define DG1_GSC_HECI2_BASE 0x00259000
#define PVC_GSC_HECI2_BASE 0x00285000
#define DG2_GSC_HECI2_BASE 0x00374000

#define GSCCS_RING_BASE 0x11a000
Expand Down
11 changes: 10 additions & 1 deletion drivers/gpu/drm/xe/xe_heci_gsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ static const struct heci_gsc_def heci_gsc_def_dg2 = {
.bar_size = GSC_BAR_LENGTH,
};

static const struct heci_gsc_def heci_gsc_def_pvc = {
.name = "mei-gscfi",
.bar = PVC_GSC_HECI2_BASE,
.bar_size = GSC_BAR_LENGTH,
.slow_firmware = true,
};

static void heci_gsc_release_dev(struct device *dev)
{
struct auxiliary_device *aux_dev = to_auxiliary_dev(dev);
Expand Down Expand Up @@ -172,7 +179,9 @@ void xe_heci_gsc_init(struct xe_device *xe)

heci_gsc->irq = -1;

if (xe->info.platform == XE_DG2) {
if (xe->info.platform == XE_PVC) {
def = &heci_gsc_def_pvc;
} else if (xe->info.platform == XE_DG2) {
def = &heci_gsc_def_dg2;
} else if (xe->info.platform == XE_DG1) {
def = &heci_gsc_def_dg1;
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/xe_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ static const __maybe_unused struct xe_device_desc pvc_desc = {
DGFX_FEATURES,
PLATFORM(XE_PVC),
.require_force_probe = true,
.has_heci_gscfi = 1,
};

static const struct xe_device_desc mtl_desc = {
Expand Down

0 comments on commit 86017f3

Please sign in to comment.