Skip to content

Commit 698cf51

Browse files
committed
Revert "drm/xe/nvm: add on-die non-volatile memory device"
JIRA: https://issues.redhat.com/browse/RHEL-113577 Upstream Status: RHEL only This reverts commit c28bfb1. This commit was backported automatically as part of the DRM backport. The mtd infrastructure required by this commit is not available in this tree. Bringing it in would require backporting [1] and its dependencies (if any). Revert the patch instead. NOTE: This commit does not compile due to missing RHEL-specific fix-ups, which are split out into separate Git commits following this one. If git bisect selected this commit, run "git bisect skip" and try again. Repeat this until it selects a commit which compiles. [1] https://lore.kernel.org/all/20250617145159.3803852-1-alexander.usyskin@intel.com/ Signed-off-by: José Expósito <jexposit@redhat.com>
1 parent 90d1e6c commit 698cf51

File tree

6 files changed

+0
-199
lines changed

6 files changed

+0
-199
lines changed

drivers/gpu/drm/xe/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ xe-y += xe_bb.o \
8787
xe_mmio.o \
8888
xe_mocs.o \
8989
xe_module.o \
90-
xe_nvm.o \
9190
xe_oa.o \
9291
xe_observation.o \
9392
xe_pat.o \

drivers/gpu/drm/xe/xe_device.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include "xe_irq.h"
4848
#include "xe_mmio.h"
4949
#include "xe_module.h"
50-
#include "xe_nvm.h"
5150
#include "xe_oa.h"
5251
#include "xe_observation.h"
5352
#include "xe_pat.h"
@@ -869,8 +868,6 @@ int xe_device_probe(struct xe_device *xe)
869868
if (err)
870869
return err;
871870

872-
xe_nvm_init(xe);
873-
874871
err = xe_heci_gsc_init(xe);
875872
if (err)
876873
return err;
@@ -932,8 +929,6 @@ void xe_device_remove(struct xe_device *xe)
932929
{
933930
xe_display_unregister(xe);
934931

935-
xe_nvm_fini(xe);
936-
937932
drm_dev_unplug(&xe->drm);
938933

939934
xe_bo_pci_dev_remove_all(xe);

drivers/gpu/drm/xe/xe_device_types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
struct dram_info;
3636
struct intel_display;
37-
struct intel_dg_nvm_dev;
3837
struct xe_ggtt;
3938
struct xe_i2c;
4039
struct xe_pat_ops;
@@ -322,8 +321,6 @@ struct xe_device {
322321
u8 has_fan_control:1;
323322
/** @info.has_flat_ccs: Whether flat CCS metadata is used */
324323
u8 has_flat_ccs:1;
325-
/** @info.has_gsc_nvm: Device has gsc non-volatile memory */
326-
u8 has_gsc_nvm:1;
327324
/** @info.has_heci_cscfi: device has heci cscfi */
328325
u8 has_heci_cscfi:1;
329326
/** @info.has_heci_gscfi: device has heci gscfi */
@@ -578,9 +575,6 @@ struct xe_device {
578575
/** @heci_gsc: graphics security controller */
579576
struct xe_heci_gsc heci_gsc;
580577

581-
/** @nvm: discrete graphics non-volatile memory */
582-
struct intel_dg_nvm_dev *nvm;
583-
584578
/** @oa: oa observation subsystem */
585579
struct xe_oa oa;
586580

drivers/gpu/drm/xe/xe_nvm.c

Lines changed: 0 additions & 167 deletions
This file was deleted.

drivers/gpu/drm/xe/xe_nvm.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ static const struct xe_device_desc dg1_desc = {
239239
PLATFORM(DG1),
240240
.dma_mask_size = 39,
241241
.has_display = true,
242-
.has_gsc_nvm = 1,
243242
.has_heci_gscfi = 1,
244243
.max_gt_per_tile = 1,
245244
.require_force_probe = true,
@@ -252,7 +251,6 @@ static const u16 dg2_g12_ids[] = { INTEL_DG2_G12_IDS(NOP), 0 };
252251
#define DG2_FEATURES \
253252
DGFX_FEATURES, \
254253
PLATFORM(DG2), \
255-
.has_gsc_nvm = 1, \
256254
.has_heci_gscfi = 1, \
257255
.subplatforms = (const struct xe_subplatform_desc[]) { \
258256
{ XE_SUBPLATFORM_DG2_G10, "G10", dg2_g10_ids }, \
@@ -291,7 +289,6 @@ static const __maybe_unused struct xe_device_desc pvc_desc = {
291289
PLATFORM(PVC),
292290
.dma_mask_size = 52,
293291
.has_display = false,
294-
.has_gsc_nvm = 1,
295292
.has_heci_gscfi = 1,
296293
.max_gt_per_tile = 1,
297294
.max_remote_tiles = 1,
@@ -325,7 +322,6 @@ static const struct xe_device_desc bmg_desc = {
325322
.has_display = true,
326323
.has_fan_control = true,
327324
.has_mbx_power_limits = true,
328-
.has_gsc_nvm = 1,
329325
.has_heci_cscfi = 1,
330326
.has_sriov = true,
331327
.max_gt_per_tile = 2,
@@ -571,7 +567,6 @@ static int xe_info_init_early(struct xe_device *xe,
571567
xe->info.is_dgfx = desc->is_dgfx;
572568
xe->info.has_fan_control = desc->has_fan_control;
573569
xe->info.has_mbx_power_limits = desc->has_mbx_power_limits;
574-
xe->info.has_gsc_nvm = desc->has_gsc_nvm;
575570
xe->info.has_heci_gscfi = desc->has_heci_gscfi;
576571
xe->info.has_heci_cscfi = desc->has_heci_cscfi;
577572
xe->info.has_llc = desc->has_llc;

0 commit comments

Comments
 (0)