diff mbox series

[1/2] drm/xe/display: remove unused xe->enabled_irq_mask

Message ID 20240510094313.3422982-1-jani.nikula@intel.com (mailing list archive)
State New
Headers show
Series [1/2] drm/xe/display: remove unused xe->enabled_irq_mask | expand

Commit Message

Jani Nikula May 10, 2024, 9:43 a.m. UTC
The xe->enabled_irq_mask member has never been used for anything.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/xe/display/xe_display.c | 1 -
 drivers/gpu/drm/xe/xe_device_types.h    | 2 --
 2 files changed, 3 deletions(-)

Comments

Ghimiray, Himal Prasad May 10, 2024, 11:30 a.m. UTC | #1
On 10-05-2024 15:13, Jani Nikula wrote:
> The xe->enabled_irq_mask member has never been used for anything.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>   drivers/gpu/drm/xe/display/xe_display.c | 1 -
>   drivers/gpu/drm/xe/xe_device_types.h    | 2 --
>   2 files changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index 0de0566e5b39..fbe2c2eddea9 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -97,7 +97,6 @@ int xe_display_create(struct xe_device *xe)
>   	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
>   
>   	drmm_mutex_init(&xe->drm, &xe->sb_lock);
> -	xe->enabled_irq_mask = ~0;


LGTM

Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

Thanks


>   
>   	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
>   }
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 906b98fb973b..b78223e3baab 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -517,8 +517,6 @@ struct xe_device {
>   	/* only to allow build, not used functionally */
>   	u32 irq_mask;
>   
> -	u32 enabled_irq_mask;
> -
>   	struct intel_uncore {
>   		spinlock_t lock;
>   	} uncore;
Jani Nikula May 13, 2024, 12:10 p.m. UTC | #2
On Fri, 10 May 2024, Jani Nikula <jani.nikula@intel.com> wrote:
> The xe->enabled_irq_mask member has never been used for anything.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Lucas, ack for merging these two via drm-intel-next? Even though these
touch struct xe_device, I presume any further cleanups touching the
surrounding context would have a bigger footprint in drm-intel-next.

BR,
Jani.

> ---
>  drivers/gpu/drm/xe/display/xe_display.c | 1 -
>  drivers/gpu/drm/xe/xe_device_types.h    | 2 --
>  2 files changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index 0de0566e5b39..fbe2c2eddea9 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -97,7 +97,6 @@ int xe_display_create(struct xe_device *xe)
>  	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
>  
>  	drmm_mutex_init(&xe->drm, &xe->sb_lock);
> -	xe->enabled_irq_mask = ~0;
>  
>  	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
>  }
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 906b98fb973b..b78223e3baab 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -517,8 +517,6 @@ struct xe_device {
>  	/* only to allow build, not used functionally */
>  	u32 irq_mask;
>  
> -	u32 enabled_irq_mask;
> -
>  	struct intel_uncore {
>  		spinlock_t lock;
>  	} uncore;
Lucas De Marchi May 13, 2024, 2:35 p.m. UTC | #3
On Mon, May 13, 2024 at 03:10:29PM GMT, Jani Nikula wrote:
>On Fri, 10 May 2024, Jani Nikula <jani.nikula@intel.com> wrote:
>> The xe->enabled_irq_mask member has never been used for anything.
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
>Lucas, ack for merging these two via drm-intel-next? Even though these
>touch struct xe_device, I presume any further cleanups touching the
>surrounding context would have a bigger footprint in drm-intel-next.



Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>

for both patches

thanks,
Lucas De Marchi

>
>BR,
>Jani.
>
>> ---
>>  drivers/gpu/drm/xe/display/xe_display.c | 1 -
>>  drivers/gpu/drm/xe/xe_device_types.h    | 2 --
>>  2 files changed, 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
>> index 0de0566e5b39..fbe2c2eddea9 100644
>> --- a/drivers/gpu/drm/xe/display/xe_display.c
>> +++ b/drivers/gpu/drm/xe/display/xe_display.c
>> @@ -97,7 +97,6 @@ int xe_display_create(struct xe_device *xe)
>>  	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
>>
>>  	drmm_mutex_init(&xe->drm, &xe->sb_lock);
>> -	xe->enabled_irq_mask = ~0;
>>
>>  	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
>>  }
>> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
>> index 906b98fb973b..b78223e3baab 100644
>> --- a/drivers/gpu/drm/xe/xe_device_types.h
>> +++ b/drivers/gpu/drm/xe/xe_device_types.h
>> @@ -517,8 +517,6 @@ struct xe_device {
>>  	/* only to allow build, not used functionally */
>>  	u32 irq_mask;
>>
>> -	u32 enabled_irq_mask;
>> -
>>  	struct intel_uncore {
>>  		spinlock_t lock;
>>  	} uncore;
>
>-- 
>Jani Nikula, Intel
Jani Nikula May 13, 2024, 7:56 p.m. UTC | #4
On Mon, 13 May 2024, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Mon, May 13, 2024 at 03:10:29PM GMT, Jani Nikula wrote:
>>On Fri, 10 May 2024, Jani Nikula <jani.nikula@intel.com> wrote:
>>> The xe->enabled_irq_mask member has never been used for anything.
>>>
>>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>>
>>Lucas, ack for merging these two via drm-intel-next? Even though these
>>touch struct xe_device, I presume any further cleanups touching the
>>surrounding context would have a bigger footprint in drm-intel-next.
>
>
>
> Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
>
> for both patches

Thanks for the review and acks, pushed to drm-intel-next.

BR,
Jani.


>
> thanks,
> Lucas De Marchi
>
>>
>>BR,
>>Jani.
>>
>>> ---
>>>  drivers/gpu/drm/xe/display/xe_display.c | 1 -
>>>  drivers/gpu/drm/xe/xe_device_types.h    | 2 --
>>>  2 files changed, 3 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
>>> index 0de0566e5b39..fbe2c2eddea9 100644
>>> --- a/drivers/gpu/drm/xe/display/xe_display.c
>>> +++ b/drivers/gpu/drm/xe/display/xe_display.c
>>> @@ -97,7 +97,6 @@ int xe_display_create(struct xe_device *xe)
>>>  	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
>>>
>>>  	drmm_mutex_init(&xe->drm, &xe->sb_lock);
>>> -	xe->enabled_irq_mask = ~0;
>>>
>>>  	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
>>>  }
>>> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
>>> index 906b98fb973b..b78223e3baab 100644
>>> --- a/drivers/gpu/drm/xe/xe_device_types.h
>>> +++ b/drivers/gpu/drm/xe/xe_device_types.h
>>> @@ -517,8 +517,6 @@ struct xe_device {
>>>  	/* only to allow build, not used functionally */
>>>  	u32 irq_mask;
>>>
>>> -	u32 enabled_irq_mask;
>>> -
>>>  	struct intel_uncore {
>>>  		spinlock_t lock;
>>>  	} uncore;
>>
>>-- 
>>Jani Nikula, Intel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
index 0de0566e5b39..fbe2c2eddea9 100644
--- a/drivers/gpu/drm/xe/display/xe_display.c
+++ b/drivers/gpu/drm/xe/display/xe_display.c
@@ -97,7 +97,6 @@  int xe_display_create(struct xe_device *xe)
 	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
 
 	drmm_mutex_init(&xe->drm, &xe->sb_lock);
-	xe->enabled_irq_mask = ~0;
 
 	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
 }
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 906b98fb973b..b78223e3baab 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -517,8 +517,6 @@  struct xe_device {
 	/* only to allow build, not used functionally */
 	u32 irq_mask;
 
-	u32 enabled_irq_mask;
-
 	struct intel_uncore {
 		spinlock_t lock;
 	} uncore;