From: Riana Tauro <riana.tauro@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: riana.tauro@intel.com, anshuman.gupta@intel.com,
rodrigo.vivi@intel.com, aravind.iddamsetty@intel.com,
jani.nikula@linux.intel.com, alexander.usyskin@intel.com
Subject: [PATCH v3 3/3] drm/xe: Initialize mei-gsc and vsec in survivability mode
Date: Mon, 20 Jan 2025 12:10:42 +0530 [thread overview]
Message-ID: <20250120064042.2596178-4-riana.tauro@intel.com> (raw)
In-Reply-To: <20250120064042.2596178-1-riana.tauro@intel.com>
Initialize mei-gsc in survivability mode and disable HECI
interrupts. Also initialize vsec in survivability mode
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_heci_gsc.c | 3 ++-
drivers/gpu/drm/xe/xe_survivability_mode.c | 7 +++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_heci_gsc.c b/drivers/gpu/drm/xe/xe_heci_gsc.c
index d765bfd3636b..06dc78d3a812 100644
--- a/drivers/gpu/drm/xe/xe_heci_gsc.c
+++ b/drivers/gpu/drm/xe/xe_heci_gsc.c
@@ -12,6 +12,7 @@
#include "xe_drv.h"
#include "xe_heci_gsc.h"
#include "xe_platform_types.h"
+#include "xe_survivability_mode.h"
#define GSC_BAR_LENGTH 0x00000FFC
@@ -200,7 +201,7 @@ void xe_heci_gsc_init(struct xe_device *xe)
return;
}
- if (!def->use_polling) {
+ if (!def->use_polling && !xe_survivability_mode_enabled(xe)) {
ret = heci_gsc_irq_setup(xe);
if (ret)
goto fail;
diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c b/drivers/gpu/drm/xe/xe_survivability_mode.c
index e1ce14d8dec2..16e805e32887 100644
--- a/drivers/gpu/drm/xe/xe_survivability_mode.c
+++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
@@ -12,8 +12,10 @@
#include "xe_device.h"
#include "xe_gt.h"
+#include "xe_heci_gsc.h"
#include "xe_mmio.h"
#include "xe_pcode_api.h"
+#include "xe_vsec.h"
#define MAX_SCRATCH_MMIO 8
@@ -142,6 +144,10 @@ static void enable_survivability_mode(struct pci_dev *pdev)
dev_warn(dev, "Failed to create survivability sysfs files\n");
return;
}
+
+ xe_heci_gsc_init(xe);
+
+ xe_vsec_init(xe);
}
/**
@@ -194,6 +200,7 @@ void xe_survivability_mode_remove(struct xe_device *xe)
struct device *dev = &pdev->dev;
sysfs_remove_file(&dev->kobj, &dev_attr_survivability_mode.attr);
+ xe_heci_gsc_fini(xe);
kfree(survivability->info);
pci_set_drvdata(pdev, NULL);
}
--
2.47.1
next prev parent reply other threads:[~2025-01-20 6:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 6:40 [PATCH v3 0/3] Enable Survivability mode Riana Tauro
2025-01-20 6:40 ` [PATCH v3 1/3] drm/xe: Add functions and sysfs for boot survivability Riana Tauro
2025-01-21 14:50 ` Rodrigo Vivi
2025-01-20 6:40 ` [PATCH v3 2/3] drm/xe: Enable Boot Survivability mode Riana Tauro
2025-01-20 6:40 ` Riana Tauro [this message]
2025-01-22 6:33 ` [PATCH v3 3/3] drm/xe: Initialize mei-gsc and vsec in survivability mode Usyskin, Alexander
2025-01-20 9:15 ` ✓ CI.Patch_applied: success for Enable Survivability mode (rev3) Patchwork
2025-01-20 9:16 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-20 9:17 ` ✓ CI.KUnit: success " Patchwork
2025-01-20 9:33 ` ✓ CI.Build: " Patchwork
2025-01-20 9:35 ` ✓ CI.Hooks: " Patchwork
2025-01-20 9:37 ` ✓ CI.checksparse: " Patchwork
2025-01-21 8:30 ` ✓ Xe.CI.BAT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250120064042.2596178-4-riana.tauro@intel.com \
--to=riana.tauro@intel.com \
--cc=alexander.usyskin@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox