[PATCH 2/5] drm/xe: Drop useless forcewake get/put

Dong, Zhanjun zhanjun.dong at intel.com
Fri Apr 26 14:45:30 UTC 2024


Thanks for drop it.

Reviewed-by: Zhanjun Dong <zhanjun.dong at intel.com>

On 2024-04-26 1:19 a.m., Matthew Brost wrote:
> On Thu, Apr 25, 2024 at 11:24:07AM -0700, Lucas De Marchi wrote:
>> Forcewake used to be needed in xe_gt_init_early() since it was calling
>> xe_gt_topology_init(). That call was dropped in commit 4c47049d93b7
>> ("drm/xe/guc: Fix missing topology init"), but the forcewake calls were
>> left behind. Remove them.
>>
>> Cc: Zhanjun Dong <zhanjun.dong at intel.com>
>> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> 
> Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> 
>> ---
>>   drivers/gpu/drm/xe/xe_gt.c | 8 --------
>>   1 file changed, 8 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
>> index 00a22cf2f5b5..805fd0acfc03 100644
>> --- a/drivers/gpu/drm/xe/xe_gt.c
>> +++ b/drivers/gpu/drm/xe/xe_gt.c
>> @@ -318,14 +318,6 @@ int xe_gt_init_early(struct xe_gt *gt)
>>   			return err;
>>   	}
>>   
>> -	err = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
>> -	if (err)
>> -		return err;
>> -
>> -	err = xe_force_wake_put(gt_to_fw(gt), XE_FW_GT);
>> -	if (err)
>> -		return err;
>> -
>>   	xe_reg_sr_init(&gt->reg_sr, "GT", gt_to_xe(gt));
>>   
>>   	err = xe_wa_init(gt);
>> -- 
>> 2.43.0
>>


More information about the Intel-xe mailing list