diff options
| author | Lucas De Marchi <[email protected]> | 2024-05-13 14:37:51 -0700 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2024-05-13 21:21:13 -0700 |
| commit | d1855d284e9f6580c0eaba66bfa04722f4d4dc9b (patch) | |
| tree | bb7dbe024e4affcdcb38b079a2da7435c06e7296 /drivers/gpu | |
| parent | 45b9066ec351518657cd09599872f737ceb25f09 (diff) | |
drm/xe: Move sw-only pcode initialization
Move it to xe_gt_init_early() that initializes the sw-only part for each
gt.
Reviewed-by: Rodrigo Vivi <[email protected]>
Reviewed-by: MichaĆ Winiarski <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_device.c | 3 | ||||
| -rw-r--r-- | drivers/gpu/drm/xe/xe_gt.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index ad18c48cab99..bedf55928aa4 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -597,9 +597,6 @@ int xe_device_probe(struct xe_device *xe) if (err) return err; - for_each_gt(gt, xe, id) - xe_pcode_init(gt); - err = xe_display_init_noirq(xe); if (err) return err; diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c index e05899691a8c..11870ad2caf6 100644 --- a/drivers/gpu/drm/xe/xe_gt.c +++ b/drivers/gpu/drm/xe/xe_gt.c @@ -44,6 +44,7 @@ #include "xe_migrate.h" #include "xe_mmio.h" #include "xe_pat.h" +#include "xe_pcode.h" #include "xe_pm.h" #include "xe_mocs.h" #include "xe_reg_sr.h" @@ -329,6 +330,7 @@ int xe_gt_init_early(struct xe_gt *gt) xe_tuning_process_gt(gt); xe_force_wake_init_gt(gt, gt_to_fw(gt)); + xe_pcode_init(gt); return 0; } |