mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 15:53:59 -04:00
Currently it's not possible to test the WAs for platforms using gmdid since they don't have the IP information on the descriptor struct. In order to allow that, add a stub function for read_gmdid() that is activated when the test executes, replacing the iomap and read of the real register. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20231129232807.1499826-5-lucas.demarchi@intel.com Link: https://lore.kernel.org/r/20231205133954.2089546-3-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
37 lines
830 B
C
37 lines
830 B
C
/* SPDX-License-Identifier: GPL-2.0 AND MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PCI_TEST_H_
|
|
#define _XE_PCI_TEST_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "xe_platform_types.h"
|
|
|
|
struct xe_device;
|
|
struct xe_graphics_desc;
|
|
struct xe_media_desc;
|
|
|
|
typedef int (*xe_device_fn)(struct xe_device *);
|
|
typedef void (*xe_graphics_fn)(const struct xe_graphics_desc *);
|
|
typedef void (*xe_media_fn)(const struct xe_media_desc *);
|
|
|
|
int xe_call_for_each_device(xe_device_fn xe_fn);
|
|
void xe_call_for_each_graphics_ip(xe_graphics_fn xe_fn);
|
|
void xe_call_for_each_media_ip(xe_media_fn xe_fn);
|
|
|
|
struct xe_pci_fake_data {
|
|
enum xe_platform platform;
|
|
enum xe_subplatform subplatform;
|
|
u32 graphics_verx100;
|
|
u32 media_verx100;
|
|
u32 graphics_step;
|
|
u32 media_step;
|
|
};
|
|
|
|
int xe_pci_fake_device_init(struct xe_device *xe);
|
|
|
|
#endif
|