Skip to content

Commit 1d622a4

Browse files
harishchegondilucasdemarchi
authored andcommitted
drm/xe/eustall: Do not support EU stall on SRIOV VF
EU stall sampling is not supported on SRIOV VF. Do not initialize or open EU stall stream on SRIOV VF. Fixes: 9a0b11d ("drm/xe/eustall: Add support to init, enable and disable EU stall sampling") Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://lore.kernel.org/r/10db5d1c7e17aadca7078ff74575b7ffc0d5d6b8.1745215022.git.harish.chegondi@intel.com (cherry picked from commit 6ed2062) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 5a295ba commit 1d622a4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/gpu/drm/xe/xe_eu_stall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ int xe_eu_stall_init(struct xe_gt *gt)
210210
struct xe_device *xe = gt_to_xe(gt);
211211
int ret;
212212

213+
if (!xe_eu_stall_supported_on_platform(xe))
214+
return 0;
215+
213216
gt->eu_stall = kzalloc(sizeof(*gt->eu_stall), GFP_KERNEL);
214217
if (!gt->eu_stall) {
215218
ret = -ENOMEM;

drivers/gpu/drm/xe/xe_eu_stall.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define __XE_EU_STALL_H__
88

99
#include "xe_gt_types.h"
10+
#include "xe_sriov.h"
1011

1112
size_t xe_eu_stall_get_per_xecore_buf_size(void);
1213
size_t xe_eu_stall_data_record_size(struct xe_device *xe);
@@ -19,6 +20,6 @@ int xe_eu_stall_stream_open(struct drm_device *dev,
1920

2021
static inline bool xe_eu_stall_supported_on_platform(struct xe_device *xe)
2122
{
22-
return xe->info.platform == XE_PVC || GRAPHICS_VER(xe) >= 20;
23+
return !IS_SRIOV_VF(xe) && (xe->info.platform == XE_PVC || GRAPHICS_VER(xe) >= 20);
2324
}
2425
#endif

0 commit comments

Comments
 (0)