mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 21:45:08 -04:00
drm/xe/vf: Don't initialize stolen memory manager if VF
VF drivers don't have access to the stolen memory. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240213154355.1221-5-michal.wajdeczko@intel.com
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "xe_gt.h"
|
||||
#include "xe_mmio.h"
|
||||
#include "xe_res_cursor.h"
|
||||
#include "xe_sriov.h"
|
||||
#include "xe_ttm_stolen_mgr.h"
|
||||
#include "xe_ttm_vram_mgr.h"
|
||||
#include "xe_wa.h"
|
||||
@@ -205,7 +206,9 @@ void xe_ttm_stolen_mgr_init(struct xe_device *xe)
|
||||
u64 stolen_size, io_size, pgsize;
|
||||
int err;
|
||||
|
||||
if (IS_DGFX(xe))
|
||||
if (IS_SRIOV_VF(xe))
|
||||
stolen_size = 0;
|
||||
else if (IS_DGFX(xe))
|
||||
stolen_size = detect_bar2_dgfx(xe, mgr);
|
||||
else if (GRAPHICS_VERx100(xe) >= 1270)
|
||||
stolen_size = detect_bar2_integrated(xe, mgr);
|
||||
|
||||
Reference in New Issue
Block a user