mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
drm/xe/kunit: Update struct xe_pci_fake_data step declarations
The struct xe_pci_fake_data has fields that specify graphics and media stepping of the fake PCI device used during KUnit testing. Change definitions of those separate step fields and use existing struct xe_step_info definition that already have required fields. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250829171922.572-3-michal.wajdeczko@intel.com
This commit is contained in:
parent
981daf1046
commit
42367babd8
|
|
@ -94,10 +94,10 @@ static void fake_read_gmdid(struct xe_device *xe, enum xe_gmdid_type type,
|
|||
|
||||
if (type == GMDID_MEDIA) {
|
||||
*ver = data->media_verx100;
|
||||
*revid = xe_step_to_gmdid(data->media_step);
|
||||
*revid = xe_step_to_gmdid(data->step.media);
|
||||
} else {
|
||||
*ver = data->graphics_verx100;
|
||||
*revid = xe_step_to_gmdid(data->graphics_step);
|
||||
*revid = xe_step_to_gmdid(data->step.graphics);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "xe_platform_types.h"
|
||||
#include "xe_sriov_types.h"
|
||||
#include "xe_step_types.h"
|
||||
|
||||
struct xe_device;
|
||||
|
||||
|
|
@ -17,10 +18,9 @@ struct xe_pci_fake_data {
|
|||
enum xe_sriov_mode sriov_mode;
|
||||
enum xe_platform platform;
|
||||
enum xe_subplatform subplatform;
|
||||
struct xe_step_info step;
|
||||
u32 graphics_verx100;
|
||||
u32 media_verx100;
|
||||
u32 graphics_step;
|
||||
u32 media_step;
|
||||
};
|
||||
|
||||
int xe_pci_fake_device_init(struct xe_device *xe);
|
||||
|
|
|
|||
|
|
@ -93,8 +93,7 @@ static int xe_wa_test_init(struct kunit *test)
|
|||
.subplatform = param->subplatform,
|
||||
.graphics_verx100 = param->graphics_verx100,
|
||||
.media_verx100 = param->media_verx100,
|
||||
.graphics_step = param->step.graphics,
|
||||
.media_step = param->step.media,
|
||||
.step = param->step,
|
||||
};
|
||||
struct xe_device *xe;
|
||||
struct device *dev;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user