All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: just disallow reading untouched registers
@ 2017-03-28 11:24 Christian König
       [not found] ` <1490700278-3374-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Christian König @ 2017-03-28 11:24 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Christian König <christian.koenig@amd.com>

Not sure what the original intention was here, but returning a random piece of
kernel memory to userspace because we didn't set the value at all is clearly
not a good idea.

This patch disallows reading the register and returns
a proper error code instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 5c02ec4..f1c2bff 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct amdgpu_device *adev)
 }
 
 static const struct amdgpu_allowed_register_entry tonga_allowed_read_registers[] = {
-	{mmGB_MACROTILE_MODE7, true},
 };
 
 static const struct amdgpu_allowed_register_entry cz_allowed_read_registers[] = {
-	{mmGB_TILE_MODE7, true},
-	{mmGB_TILE_MODE12, true},
-	{mmGB_TILE_MODE17, true},
-	{mmGB_TILE_MODE23, true},
-	{mmGB_MACROTILE_MODE7, true},
 };
 
 static const struct amdgpu_allowed_register_entry vi_allowed_read_registers[] = {
-- 
2.5.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found] ` <1490700278-3374-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-03-29 12:18   ` Christian König
       [not found]     ` <a6b9d45a-be2d-6cb8-929f-540c5cd0b38d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Christian König @ 2017-03-29 12:18 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Zhang, Jerry, Zhou,
	David(ChunMing),
	Alex Deucher

Ping!

Does anybody of you guys know what the background of those "untouched" 
registers is?

That we leak uninitialized memory to userspace is a bit bad.

Thanks,
Christian.

Am 28.03.2017 um 13:24 schrieb Christian König:
> From: Christian König <christian.koenig@amd.com>
>
> Not sure what the original intention was here, but returning a random piece of
> kernel memory to userspace because we didn't set the value at all is clearly
> not a good idea.
>
> This patch disallows reading the register and returns
> a proper error code instead.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>   1 file changed, 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
> index 5c02ec4..f1c2bff 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct amdgpu_device *adev)
>   }
>   
>   static const struct amdgpu_allowed_register_entry tonga_allowed_read_registers[] = {
> -	{mmGB_MACROTILE_MODE7, true},
>   };
>   
>   static const struct amdgpu_allowed_register_entry cz_allowed_read_registers[] = {
> -	{mmGB_TILE_MODE7, true},
> -	{mmGB_TILE_MODE12, true},
> -	{mmGB_TILE_MODE17, true},
> -	{mmGB_TILE_MODE23, true},
> -	{mmGB_MACROTILE_MODE7, true},
>   };
>   
>   static const struct amdgpu_allowed_register_entry vi_allowed_read_registers[] = {


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found]     ` <a6b9d45a-be2d-6cb8-929f-540c5cd0b38d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-03-29 12:28       ` Tom St Denis
       [not found]         ` <39974fc4-74bc-b2d7-3707-35282faea6d0-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Tom St Denis @ 2017-03-29 12:28 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 29/03/17 08:18 AM, Christian König wrote:
> Ping!
>
> Does anybody of you guys know what the background of those "untouched"
> registers is?
>
> That we leak uninitialized memory to userspace is a bit bad.

I don't know the history but wouldn't reading these just read the MMIO 
registers?  Or these are cached and we're reading kernel mem?

It seems sensible to remove them though and the patch looks clean so 
I'll give an ack-by.

Tom

>
> Thanks,
> Christian.
>
> Am 28.03.2017 um 13:24 schrieb Christian König:
>> From: Christian König <christian.koenig@amd.com>
>>
>> Not sure what the original intention was here, but returning a random
>> piece of
>> kernel memory to userspace because we didn't set the value at all is
>> clearly
>> not a good idea.
>>
>> This patch disallows reading the register and returns
>> a proper error code instead.
>>
>> Signed-off-by: Christian König <christian.koenig@amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>>   1 file changed, 6 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>> index 5c02ec4..f1c2bff 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct
>> amdgpu_device *adev)
>>   }
>>     static const struct amdgpu_allowed_register_entry
>> tonga_allowed_read_registers[] = {
>> -    {mmGB_MACROTILE_MODE7, true},
>>   };
>>     static const struct amdgpu_allowed_register_entry
>> cz_allowed_read_registers[] = {
>> -    {mmGB_TILE_MODE7, true},
>> -    {mmGB_TILE_MODE12, true},
>> -    {mmGB_TILE_MODE17, true},
>> -    {mmGB_TILE_MODE23, true},
>> -    {mmGB_MACROTILE_MODE7, true},
>>   };
>>     static const struct amdgpu_allowed_register_entry
>> vi_allowed_read_registers[] = {
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found]         ` <39974fc4-74bc-b2d7-3707-35282faea6d0-5C7GfCeVMHo@public.gmane.org>
@ 2017-03-29 12:36           ` Christian König
       [not found]             ` <8c7ecc25-dfc1-b451-542c-f55be429c8dd-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Christian König @ 2017-03-29 12:36 UTC (permalink / raw)
  To: Tom St Denis, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 29.03.2017 um 14:28 schrieb Tom St Denis:
> On 29/03/17 08:18 AM, Christian König wrote:
>> Ping!
>>
>> Does anybody of you guys know what the background of those "untouched"
>> registers is?
>>
>> That we leak uninitialized memory to userspace is a bit bad.
>
> I don't know the history but wouldn't reading these just read the MMIO 
> registers?  Or these are cached and we're reading kernel mem?

The crux is we actually don't read them, but just ignore them.

In other words we copy back random kernel memory to userspace because we 
didn't initialize the returned value.

That is strange at best, but I can't figure out the background here.

Christian.

>
> It seems sensible to remove them though and the patch looks clean so 
> I'll give an ack-by.
>
> Tom
>
>>
>> Thanks,
>> Christian.
>>
>> Am 28.03.2017 um 13:24 schrieb Christian König:
>>> From: Christian König <christian.koenig@amd.com>
>>>
>>> Not sure what the original intention was here, but returning a random
>>> piece of
>>> kernel memory to userspace because we didn't set the value at all is
>>> clearly
>>> not a good idea.
>>>
>>> This patch disallows reading the register and returns
>>> a proper error code instead.
>>>
>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>> ---
>>>   drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>>>   1 file changed, 6 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>>> index 5c02ec4..f1c2bff 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>>> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct
>>> amdgpu_device *adev)
>>>   }
>>>     static const struct amdgpu_allowed_register_entry
>>> tonga_allowed_read_registers[] = {
>>> -    {mmGB_MACROTILE_MODE7, true},
>>>   };
>>>     static const struct amdgpu_allowed_register_entry
>>> cz_allowed_read_registers[] = {
>>> -    {mmGB_TILE_MODE7, true},
>>> -    {mmGB_TILE_MODE12, true},
>>> -    {mmGB_TILE_MODE17, true},
>>> -    {mmGB_TILE_MODE23, true},
>>> -    {mmGB_MACROTILE_MODE7, true},
>>>   };
>>>     static const struct amdgpu_allowed_register_entry
>>> vi_allowed_read_registers[] = {
>>
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found]             ` <8c7ecc25-dfc1-b451-542c-f55be429c8dd-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-03-29 13:29               ` Alex Deucher
       [not found]                 ` <CADnq5_M-OhOo7HzY4wdb-Lq0Q-s7s9rXaZHaOei3Uxo-3A-dQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Deucher @ 2017-03-29 13:29 UTC (permalink / raw)
  To: Christian König; +Cc: Tom St Denis, amd-gfx list

On Wed, Mar 29, 2017 at 8:36 AM, Christian König
<deathsimple@vodafone.de> wrote:
> Am 29.03.2017 um 14:28 schrieb Tom St Denis:
>>
>> On 29/03/17 08:18 AM, Christian König wrote:
>>>
>>> Ping!
>>>
>>> Does anybody of you guys know what the background of those "untouched"
>>> registers is?
>>>
>>> That we leak uninitialized memory to userspace is a bit bad.
>>
>>
>> I don't know the history but wouldn't reading these just read the MMIO
>> registers?  Or these are cached and we're reading kernel mem?
>
>
> The crux is we actually don't read them, but just ignore them.
>
> In other words we copy back random kernel memory to userspace because we
> didn't initialize the returned value.

Well, it's zeroed memory, so it's not random.  They just return 0.

>
> That is strange at best, but I can't figure out the background here.

No idea why they were added separately.  AFAIK, those indices are not used.

Alex

>
> Christian.
>
>
>>
>> It seems sensible to remove them though and the patch looks clean so I'll
>> give an ack-by.
>>
>> Tom
>>
>>>
>>> Thanks,
>>> Christian.
>>>
>>> Am 28.03.2017 um 13:24 schrieb Christian König:
>>>>
>>>> From: Christian König <christian.koenig@amd.com>
>>>>
>>>> Not sure what the original intention was here, but returning a random
>>>> piece of
>>>> kernel memory to userspace because we didn't set the value at all is
>>>> clearly
>>>> not a good idea.
>>>>
>>>> This patch disallows reading the register and returns
>>>> a proper error code instead.
>>>>
>>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>>> ---
>>>>   drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>>>>   1 file changed, 6 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>> index 5c02ec4..f1c2bff 100644
>>>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct
>>>> amdgpu_device *adev)
>>>>   }
>>>>     static const struct amdgpu_allowed_register_entry
>>>> tonga_allowed_read_registers[] = {
>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>   };
>>>>     static const struct amdgpu_allowed_register_entry
>>>> cz_allowed_read_registers[] = {
>>>> -    {mmGB_TILE_MODE7, true},
>>>> -    {mmGB_TILE_MODE12, true},
>>>> -    {mmGB_TILE_MODE17, true},
>>>> -    {mmGB_TILE_MODE23, true},
>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>   };
>>>>     static const struct amdgpu_allowed_register_entry
>>>> vi_allowed_read_registers[] = {
>>>
>>>
>>>
>>> _______________________________________________
>>> amd-gfx mailing list
>>> amd-gfx@lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found]                 ` <CADnq5_M-OhOo7HzY4wdb-Lq0Q-s7s9rXaZHaOei3Uxo-3A-dQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-29 13:46                   ` Christian König
       [not found]                     ` <79548a48-7c1c-5340-f67c-ab991bd74a42-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Christian König @ 2017-03-29 13:46 UTC (permalink / raw)
  To: Alex Deucher; +Cc: Tom St Denis, amd-gfx list

Am 29.03.2017 um 15:29 schrieb Alex Deucher:
> On Wed, Mar 29, 2017 at 8:36 AM, Christian König
> <deathsimple@vodafone.de> wrote:
>> Am 29.03.2017 um 14:28 schrieb Tom St Denis:
>>> On 29/03/17 08:18 AM, Christian König wrote:
>>>> Ping!
>>>>
>>>> Does anybody of you guys know what the background of those "untouched"
>>>> registers is?
>>>>
>>>> That we leak uninitialized memory to userspace is a bit bad.
>>>
>>> I don't know the history but wouldn't reading these just read the MMIO
>>> registers?  Or these are cached and we're reading kernel mem?
>>
>> The crux is we actually don't read them, but just ignore them.
>>
>> In other words we copy back random kernel memory to userspace because we
>> didn't initialize the returned value.
> Well, it's zeroed memory, so it's not random.  They just return 0.

No, the IOCTL is using kmalloc_array, not kcalloc or kzalloc.

That's why I stumbled over it in the first place.

>
>> That is strange at best, but I can't figure out the background here.
> No idea why they were added separately.  AFAIK, those indices are not used.

Dare to put an rb or ack-by on it?

Christian.

>
> Alex
>
>> Christian.
>>
>>
>>> It seems sensible to remove them though and the patch looks clean so I'll
>>> give an ack-by.
>>>
>>> Tom
>>>
>>>> Thanks,
>>>> Christian.
>>>>
>>>> Am 28.03.2017 um 13:24 schrieb Christian König:
>>>>> From: Christian König <christian.koenig@amd.com>
>>>>>
>>>>> Not sure what the original intention was here, but returning a random
>>>>> piece of
>>>>> kernel memory to userspace because we didn't set the value at all is
>>>>> clearly
>>>>> not a good idea.
>>>>>
>>>>> This patch disallows reading the register and returns
>>>>> a proper error code instead.
>>>>>
>>>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>>>> ---
>>>>>    drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>>>>>    1 file changed, 6 deletions(-)
>>>>>
>>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>> index 5c02ec4..f1c2bff 100644
>>>>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct
>>>>> amdgpu_device *adev)
>>>>>    }
>>>>>      static const struct amdgpu_allowed_register_entry
>>>>> tonga_allowed_read_registers[] = {
>>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>>    };
>>>>>      static const struct amdgpu_allowed_register_entry
>>>>> cz_allowed_read_registers[] = {
>>>>> -    {mmGB_TILE_MODE7, true},
>>>>> -    {mmGB_TILE_MODE12, true},
>>>>> -    {mmGB_TILE_MODE17, true},
>>>>> -    {mmGB_TILE_MODE23, true},
>>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>>    };
>>>>>      static const struct amdgpu_allowed_register_entry
>>>>> vi_allowed_read_registers[] = {
>>>>
>>>>
>>>> _______________________________________________
>>>> amd-gfx mailing list
>>>> amd-gfx@lists.freedesktop.org
>>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>>
>>> _______________________________________________
>>> amd-gfx mailing list
>>> amd-gfx@lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/amdgpu: just disallow reading untouched registers
       [not found]                     ` <79548a48-7c1c-5340-f67c-ab991bd74a42-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-03-29 13:54                       ` Alex Deucher
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Deucher @ 2017-03-29 13:54 UTC (permalink / raw)
  To: Christian König; +Cc: Tom St Denis, amd-gfx list

On Wed, Mar 29, 2017 at 9:46 AM, Christian König
<deathsimple@vodafone.de> wrote:
> Am 29.03.2017 um 15:29 schrieb Alex Deucher:
>>
>> On Wed, Mar 29, 2017 at 8:36 AM, Christian König
>> <deathsimple@vodafone.de> wrote:
>>>
>>> Am 29.03.2017 um 14:28 schrieb Tom St Denis:
>>>>
>>>> On 29/03/17 08:18 AM, Christian König wrote:
>>>>>
>>>>> Ping!
>>>>>
>>>>> Does anybody of you guys know what the background of those "untouched"
>>>>> registers is?
>>>>>
>>>>> That we leak uninitialized memory to userspace is a bit bad.
>>>>
>>>>
>>>> I don't know the history but wouldn't reading these just read the MMIO
>>>> registers?  Or these are cached and we're reading kernel mem?
>>>
>>>
>>> The crux is we actually don't read them, but just ignore them.
>>>
>>> In other words we copy back random kernel memory to userspace because we
>>> didn't initialize the returned value.
>>
>> Well, it's zeroed memory, so it's not random.  They just return 0.
>
>
> No, the IOCTL is using kmalloc_array, not kcalloc or kzalloc.
>
> That's why I stumbled over it in the first place.

But the register is read from the cached copy which is zeroed.

>
>>
>>> That is strange at best, but I can't figure out the background here.
>>
>> No idea why they were added separately.  AFAIK, those indices are not
>> used.
>
>
> Dare to put an rb or ack-by on it?

Acked-by: Alex Deucher <alexander.deucher@amd.com>

>
> Christian.
>
>
>>
>> Alex
>>
>>> Christian.
>>>
>>>
>>>> It seems sensible to remove them though and the patch looks clean so
>>>> I'll
>>>> give an ack-by.
>>>>
>>>> Tom
>>>>
>>>>> Thanks,
>>>>> Christian.
>>>>>
>>>>> Am 28.03.2017 um 13:24 schrieb Christian König:
>>>>>>
>>>>>> From: Christian König <christian.koenig@amd.com>
>>>>>>
>>>>>> Not sure what the original intention was here, but returning a random
>>>>>> piece of
>>>>>> kernel memory to userspace because we didn't set the value at all is
>>>>>> clearly
>>>>>> not a good idea.
>>>>>>
>>>>>> This patch disallows reading the register and returns
>>>>>> a proper error code instead.
>>>>>>
>>>>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>>>>> ---
>>>>>>    drivers/gpu/drm/amd/amdgpu/vi.c | 6 ------
>>>>>>    1 file changed, 6 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>>> b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>>> index 5c02ec4..f1c2bff 100644
>>>>>> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>>> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
>>>>>> @@ -465,15 +465,9 @@ static void vi_detect_hw_virtualization(struct
>>>>>> amdgpu_device *adev)
>>>>>>    }
>>>>>>      static const struct amdgpu_allowed_register_entry
>>>>>> tonga_allowed_read_registers[] = {
>>>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>>>    };
>>>>>>      static const struct amdgpu_allowed_register_entry
>>>>>> cz_allowed_read_registers[] = {
>>>>>> -    {mmGB_TILE_MODE7, true},
>>>>>> -    {mmGB_TILE_MODE12, true},
>>>>>> -    {mmGB_TILE_MODE17, true},
>>>>>> -    {mmGB_TILE_MODE23, true},
>>>>>> -    {mmGB_MACROTILE_MODE7, true},
>>>>>>    };
>>>>>>      static const struct amdgpu_allowed_register_entry
>>>>>> vi_allowed_read_registers[] = {
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> amd-gfx mailing list
>>>>> amd-gfx@lists.freedesktop.org
>>>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>>>
>>>>
>>>> _______________________________________________
>>>> amd-gfx mailing list
>>>> amd-gfx@lists.freedesktop.org
>>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>>
>>>
>>>
>>> _______________________________________________
>>> amd-gfx mailing list
>>> amd-gfx@lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
>
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-29 13:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 11:24 [PATCH] drm/amdgpu: just disallow reading untouched registers Christian König
     [not found] ` <1490700278-3374-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-29 12:18   ` Christian König
     [not found]     ` <a6b9d45a-be2d-6cb8-929f-540c5cd0b38d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-29 12:28       ` Tom St Denis
     [not found]         ` <39974fc4-74bc-b2d7-3707-35282faea6d0-5C7GfCeVMHo@public.gmane.org>
2017-03-29 12:36           ` Christian König
     [not found]             ` <8c7ecc25-dfc1-b451-542c-f55be429c8dd-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-29 13:29               ` Alex Deucher
     [not found]                 ` <CADnq5_M-OhOo7HzY4wdb-Lq0Q-s7s9rXaZHaOei3Uxo-3A-dQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-29 13:46                   ` Christian König
     [not found]                     ` <79548a48-7c1c-5340-f67c-ab991bd74a42-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-29 13:54                       ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.