diff mbox series

[v2,01/20] drm/amdgpu: Fix trailing whitespaces

Message ID 20201201103542.2182-2-tzimmermann@suse.de (mailing list archive)
State New, archived
Headers show
Series drm: Move struct drm_device.pdev to legacy | expand

Commit Message

Thomas Zimmermann Dec. 1, 2020, 10:35 a.m. UTC
Adhere to kernel coding style.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Christian König Dec. 1, 2020, 10:40 a.m. UTC | #1
Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1 and #15.

Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and #16.

Regards,
Christian.

Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
> Adhere to kernel coding style.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
> Acked-by: Sam Ravnborg <sam@ravnborg.org>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: Christian König <christian.koenig@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 5f304425c948..da23c0f21311 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -4922,8 +4922,8 @@ pci_ers_result_t amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
>   	case pci_channel_io_normal:
>   		return PCI_ERS_RESULT_CAN_RECOVER;
>   	/* Fatal error, prepare for slot reset */
> -	case pci_channel_io_frozen:		
> -		/*		
> +	case pci_channel_io_frozen:
> +		/*
>   		 * Cancel and wait for all TDRs in progress if failing to
>   		 * set  adev->in_gpu_reset in amdgpu_device_lock_adev
>   		 *
> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct pci_dev *pdev)
>   		goto out;
>   	}
>   
> -	adev->in_pci_err_recovery = true;	
> +	adev->in_pci_err_recovery = true;
>   	r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
>   	adev->in_pci_err_recovery = false;
>   	if (r)
Thomas Zimmermann Dec. 2, 2020, 7:59 a.m. UTC | #2
Hi

Am 01.12.20 um 11:40 schrieb Christian König:
> Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1 and 
> #15.
> 
> Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and #16.

Could you add these patches to the AMD tree?

Best regards
Thomas

> 
> Regards,
> Christian.
> 
> Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
>> Adhere to kernel coding style.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
>> Cc: Alex Deucher <alexander.deucher@amd.com>
>> Cc: Christian König <christian.koenig@amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> index 5f304425c948..da23c0f21311 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>> @@ -4922,8 +4922,8 @@ pci_ers_result_t 
>> amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
>>       case pci_channel_io_normal:
>>           return PCI_ERS_RESULT_CAN_RECOVER;
>>       /* Fatal error, prepare for slot reset */
>> -    case pci_channel_io_frozen:
>> -        /*
>> +    case pci_channel_io_frozen:
>> +        /*
>>            * Cancel and wait for all TDRs in progress if failing to
>>            * set  adev->in_gpu_reset in amdgpu_device_lock_adev
>>            *
>> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct 
>> pci_dev *pdev)
>>           goto out;
>>       }
>> -    adev->in_pci_err_recovery = true;
>> +    adev->in_pci_err_recovery = true;
>>       r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
>>       adev->in_pci_err_recovery = false;
>>       if (r)
>
Christian König Dec. 2, 2020, 8:43 a.m. UTC | #3
Am 02.12.20 um 08:59 schrieb Thomas Zimmermann:
> Hi
>
> Am 01.12.20 um 11:40 schrieb Christian König:
>> Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1 
>> and #15.
>>
>> Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and 
>> #16.
>
> Could you add these patches to the AMD tree?

Alex is usually the one who picks such stuff up.

But when people send out patch sets which mix changes from different 
drivers it is more common to push them through drm-misc-next.

Regards,
Christian.

>
> Best regards
> Thomas
>
>>
>> Regards,
>> Christian.
>>
>> Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
>>> Adhere to kernel coding style.
>>>
>>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
>>> Cc: Alex Deucher <alexander.deucher@amd.com>
>>> Cc: Christian König <christian.koenig@amd.com>
>>> ---
>>>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
>>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>> index 5f304425c948..da23c0f21311 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>> @@ -4922,8 +4922,8 @@ pci_ers_result_t 
>>> amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
>>>       case pci_channel_io_normal:
>>>           return PCI_ERS_RESULT_CAN_RECOVER;
>>>       /* Fatal error, prepare for slot reset */
>>> -    case pci_channel_io_frozen:
>>> -        /*
>>> +    case pci_channel_io_frozen:
>>> +        /*
>>>            * Cancel and wait for all TDRs in progress if failing to
>>>            * set  adev->in_gpu_reset in amdgpu_device_lock_adev
>>>            *
>>> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct 
>>> pci_dev *pdev)
>>>           goto out;
>>>       }
>>> -    adev->in_pci_err_recovery = true;
>>> +    adev->in_pci_err_recovery = true;
>>>       r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
>>>       adev->in_pci_err_recovery = false;
>>>       if (r)
>>
>
Thomas Zimmermann Dec. 2, 2020, 8:52 a.m. UTC | #4
Hi

Am 02.12.20 um 09:43 schrieb Christian König:
> Am 02.12.20 um 08:59 schrieb Thomas Zimmermann:
>> Hi
>>
>> Am 01.12.20 um 11:40 schrieb Christian König:
>>> Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1 
>>> and #15.
>>>
>>> Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and 
>>> #16.
>>
>> Could you add these patches to the AMD tree?
> 
> Alex is usually the one who picks such stuff up.
> 
> But when people send out patch sets which mix changes from different 
> drivers it is more common to push them through drm-misc-next.

I'm OK with drm-misc-next. I just don't want to add too many merge 
conflicts in your side.

Best regards
Thomas

> 
> Regards,
> Christian.
> 
>>
>> Best regards
>> Thomas
>>
>>>
>>> Regards,
>>> Christian.
>>>
>>> Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
>>>> Adhere to kernel coding style.
>>>>
>>>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>>>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
>>>> Cc: Alex Deucher <alexander.deucher@amd.com>
>>>> Cc: Christian König <christian.koenig@amd.com>
>>>> ---
>>>>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
>>>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
>>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>> index 5f304425c948..da23c0f21311 100644
>>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>> @@ -4922,8 +4922,8 @@ pci_ers_result_t 
>>>> amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
>>>>       case pci_channel_io_normal:
>>>>           return PCI_ERS_RESULT_CAN_RECOVER;
>>>>       /* Fatal error, prepare for slot reset */
>>>> -    case pci_channel_io_frozen:
>>>> -        /*
>>>> +    case pci_channel_io_frozen:
>>>> +        /*
>>>>            * Cancel and wait for all TDRs in progress if failing to
>>>>            * set  adev->in_gpu_reset in amdgpu_device_lock_adev
>>>>            *
>>>> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct 
>>>> pci_dev *pdev)
>>>>           goto out;
>>>>       }
>>>> -    adev->in_pci_err_recovery = true;
>>>> +    adev->in_pci_err_recovery = true;
>>>>       r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
>>>>       adev->in_pci_err_recovery = false;
>>>>       if (r)
>>>
>>
>
Alex Deucher Dec. 2, 2020, 2:02 p.m. UTC | #5
On Wed, Dec 2, 2020 at 3:53 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> Hi
>
> Am 02.12.20 um 09:43 schrieb Christian König:
> > Am 02.12.20 um 08:59 schrieb Thomas Zimmermann:
> >> Hi
> >>
> >> Am 01.12.20 um 11:40 schrieb Christian König:
> >>> Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1
> >>> and #15.
> >>>
> >>> Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and
> >>> #16.
> >>
> >> Could you add these patches to the AMD tree?
> >
> > Alex is usually the one who picks such stuff up.
> >
> > But when people send out patch sets which mix changes from different
> > drivers it is more common to push them through drm-misc-next.
>
> I'm OK with drm-misc-next. I just don't want to add too many merge
> conflicts in your side.

Yeah, it doesn't matter to me.  I assumed you wanted to land this
whole series so you could move forward with further cleanups.  If we
merge via different trees, you'll have to wait for all of this to come
together again in drm-next.

Alex


>
> Best regards
> Thomas
>
> >
> > Regards,
> > Christian.
> >
> >>
> >> Best regards
> >> Thomas
> >>
> >>>
> >>> Regards,
> >>> Christian.
> >>>
> >>> Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
> >>>> Adhere to kernel coding style.
> >>>>
> >>>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> >>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
> >>>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
> >>>> Cc: Alex Deucher <alexander.deucher@amd.com>
> >>>> Cc: Christian König <christian.koenig@amd.com>
> >>>> ---
> >>>>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
> >>>>   1 file changed, 3 insertions(+), 3 deletions(-)
> >>>>
> >>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >>>> index 5f304425c948..da23c0f21311 100644
> >>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> >>>> @@ -4922,8 +4922,8 @@ pci_ers_result_t
> >>>> amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
> >>>>       case pci_channel_io_normal:
> >>>>           return PCI_ERS_RESULT_CAN_RECOVER;
> >>>>       /* Fatal error, prepare for slot reset */
> >>>> -    case pci_channel_io_frozen:
> >>>> -        /*
> >>>> +    case pci_channel_io_frozen:
> >>>> +        /*
> >>>>            * Cancel and wait for all TDRs in progress if failing to
> >>>>            * set  adev->in_gpu_reset in amdgpu_device_lock_adev
> >>>>            *
> >>>> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct
> >>>> pci_dev *pdev)
> >>>>           goto out;
> >>>>       }
> >>>> -    adev->in_pci_err_recovery = true;
> >>>> +    adev->in_pci_err_recovery = true;
> >>>>       r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
> >>>>       adev->in_pci_err_recovery = false;
> >>>>       if (r)
> >>>
> >>
> >
>
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Felix Imendörffer
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Thomas Zimmermann Dec. 2, 2020, 2:28 p.m. UTC | #6
Hi

Am 02.12.20 um 15:02 schrieb Alex Deucher:
> On Wed, Dec 2, 2020 at 3:53 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>>
>> Hi
>>
>> Am 02.12.20 um 09:43 schrieb Christian König:
>>> Am 02.12.20 um 08:59 schrieb Thomas Zimmermann:
>>>> Hi
>>>>
>>>> Am 01.12.20 um 11:40 schrieb Christian König:
>>>>> Reviewed-by: Christian König <christian.koenig@amd.com> on patch #1
>>>>> and #15.
>>>>>
>>>>> Acked-by: Christian König <christian.koenig@amd.com> on patch #2 and
>>>>> #16.
>>>>
>>>> Could you add these patches to the AMD tree?
>>>
>>> Alex is usually the one who picks such stuff up.
>>>
>>> But when people send out patch sets which mix changes from different
>>> drivers it is more common to push them through drm-misc-next.
>>
>> I'm OK with drm-misc-next. I just don't want to add too many merge
>> conflicts in your side.
> 
> Yeah, it doesn't matter to me.  I assumed you wanted to land this
> whole series so you could move forward with further cleanups.  If we
> merge via different trees, you'll have to wait for all of this to come
> together again in drm-next.

OK, sure. I'll merge it through drm-misc-next.

Best regards
Thomas

> 
> Alex
> 
> 
>>
>> Best regards
>> Thomas
>>
>>>
>>> Regards,
>>> Christian.
>>>
>>>>
>>>> Best regards
>>>> Thomas
>>>>
>>>>>
>>>>> Regards,
>>>>> Christian.
>>>>>
>>>>> Am 01.12.20 um 11:35 schrieb Thomas Zimmermann:
>>>>>> Adhere to kernel coding style.
>>>>>>
>>>>>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>>>>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>>>>>> Acked-by: Sam Ravnborg <sam@ravnborg.org>
>>>>>> Cc: Alex Deucher <alexander.deucher@amd.com>
>>>>>> Cc: Christian König <christian.koenig@amd.com>
>>>>>> ---
>>>>>>    drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
>>>>>>    1 file changed, 3 insertions(+), 3 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>>>> index 5f304425c948..da23c0f21311 100644
>>>>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
>>>>>> @@ -4922,8 +4922,8 @@ pci_ers_result_t
>>>>>> amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
>>>>>>        case pci_channel_io_normal:
>>>>>>            return PCI_ERS_RESULT_CAN_RECOVER;
>>>>>>        /* Fatal error, prepare for slot reset */
>>>>>> -    case pci_channel_io_frozen:
>>>>>> -        /*
>>>>>> +    case pci_channel_io_frozen:
>>>>>> +        /*
>>>>>>             * Cancel and wait for all TDRs in progress if failing to
>>>>>>             * set  adev->in_gpu_reset in amdgpu_device_lock_adev
>>>>>>             *
>>>>>> @@ -5014,7 +5014,7 @@ pci_ers_result_t amdgpu_pci_slot_reset(struct
>>>>>> pci_dev *pdev)
>>>>>>            goto out;
>>>>>>        }
>>>>>> -    adev->in_pci_err_recovery = true;
>>>>>> +    adev->in_pci_err_recovery = true;
>>>>>>        r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
>>>>>>        adev->in_pci_err_recovery = false;
>>>>>>        if (r)
>>>>>
>>>>
>>>
>>
>> --
>> Thomas Zimmermann
>> Graphics Driver Developer
>> SUSE Software Solutions Germany GmbH
>> Maxfeldstr. 5, 90409 Nürnberg, Germany
>> (HRB 36809, AG Nürnberg)
>> Geschäftsführer: Felix Imendörffer
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 5f304425c948..da23c0f21311 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -4922,8 +4922,8 @@  pci_ers_result_t amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
 	case pci_channel_io_normal:
 		return PCI_ERS_RESULT_CAN_RECOVER;
 	/* Fatal error, prepare for slot reset */
-	case pci_channel_io_frozen:		
-		/*		
+	case pci_channel_io_frozen:
+		/*
 		 * Cancel and wait for all TDRs in progress if failing to
 		 * set  adev->in_gpu_reset in amdgpu_device_lock_adev
 		 *
@@ -5014,7 +5014,7 @@  pci_ers_result_t amdgpu_pci_slot_reset(struct pci_dev *pdev)
 		goto out;
 	}
 
-	adev->in_pci_err_recovery = true;	
+	adev->in_pci_err_recovery = true;
 	r = amdgpu_device_pre_asic_reset(adev, NULL, &need_full_reset);
 	adev->in_pci_err_recovery = false;
 	if (r)