All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix 64bit BAR detection
@ 2018-01-08 13:51 Christian König
       [not found] ` <20180108135147.41819-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Christian König @ 2018-01-08 13:51 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Windows added by the BIOS are not marked as 64bit because they are
usually not changeable anyway.

This fixes large BAR support on my new Ryzen build system.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index e91575311646..7114f2527edc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -626,7 +626,7 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
 		root = root->parent;
 
 	pci_bus_for_each_resource(root, res, i) {
-		if (res && res->flags & IORESOURCE_MEM_64 &&
+		if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
 		    res->start > 0x100000000ull)
 			break;
 	}
-- 
2.14.1

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

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

* Re: [PATCH] drm/amdgpu: fix 64bit BAR detection
       [not found] ` <20180108135147.41819-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
@ 2018-01-10 15:04   ` Christian König
  2018-01-10 16:32   ` Alex Deucher
  1 sibling, 0 replies; 3+ messages in thread
From: Christian König @ 2018-01-10 15:04 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Ping? Alex, David, anybody?

Am 08.01.2018 um 14:51 schrieb Christian König:
> Windows added by the BIOS are not marked as 64bit because they are
> usually not changeable anyway.
>
> This fixes large BAR support on my new Ryzen build system.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index e91575311646..7114f2527edc 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -626,7 +626,7 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
>   		root = root->parent;
>   
>   	pci_bus_for_each_resource(root, res, i) {
> -		if (res && res->flags & IORESOURCE_MEM_64 &&
> +		if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
>   		    res->start > 0x100000000ull)
>   			break;
>   	}

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

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

* Re: [PATCH] drm/amdgpu: fix 64bit BAR detection
       [not found] ` <20180108135147.41819-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  2018-01-10 15:04   ` Christian König
@ 2018-01-10 16:32   ` Alex Deucher
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2018-01-10 16:32 UTC (permalink / raw)
  To: Christian König; +Cc: amd-gfx list

On Mon, Jan 8, 2018 at 8:51 AM, Christian König
<ckoenig.leichtzumerken@gmail.com> wrote:
> Windows added by the BIOS are not marked as 64bit because they are
> usually not changeable anyway.
>
> This fixes large BAR support on my new Ryzen build system.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>

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

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index e91575311646..7114f2527edc 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -626,7 +626,7 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
>                 root = root->parent;
>
>         pci_bus_for_each_resource(root, res, i) {
> -               if (res && res->flags & IORESOURCE_MEM_64 &&
> +               if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
>                     res->start > 0x100000000ull)
>                         break;
>         }
> --
> 2.14.1
>
> _______________________________________________
> 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] 3+ messages in thread

end of thread, other threads:[~2018-01-10 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-08 13:51 [PATCH] drm/amdgpu: fix 64bit BAR detection Christian König
     [not found] ` <20180108135147.41819-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2018-01-10 15:04   ` Christian König
2018-01-10 16:32   ` 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.