mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/xe/vf: Use correct check for being a VF driver
The IS_SRIOV macro returns true also when we are running as a PF
driver. Use correct IS_SRIOV_VF macro to skip force-wake management.
Fixes: 513ea833c2 ("drm/xe/vf: Ignore force-wake requests if VF")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240613120749.2032-1-michal.wajdeczko@intel.com
This commit is contained in:
parent
7ddb9403dd
commit
6aaf3fd08d
|
|
@ -97,7 +97,7 @@ void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw)
|
|||
|
||||
static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake)
|
||||
{
|
||||
if (IS_SRIOV(gt_to_xe(gt)))
|
||||
if (IS_SRIOV_VF(gt_to_xe(gt)))
|
||||
return;
|
||||
|
||||
xe_mmio_write32(gt, domain->reg_ctl, domain->mask | (wake ? domain->val : 0));
|
||||
|
|
@ -108,7 +108,7 @@ static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain,
|
|||
u32 value;
|
||||
int ret;
|
||||
|
||||
if (IS_SRIOV(gt_to_xe(gt)))
|
||||
if (IS_SRIOV_VF(gt_to_xe(gt)))
|
||||
return 0;
|
||||
|
||||
ret = xe_mmio_wait32(gt, domain->reg_ack, domain->val, wake ? domain->val : 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user