drm/amdgpu: fix typo of domain fallback

Submitted by Zhou, David(ChunMing) on March 23, 2018, 10:43 a.m.

Details

Message ID 20180323104315.31050-1-david1.zhou@amd.com
State New
Headers show
Series "drm/amdgpu: fix typo of domain fallback" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Zhou, David(ChunMing) March 23, 2018, 10:43 a.m.
Change-Id: I71c01f1526db785463af0ba3747fbd2ab8291d1f
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index ea7c7f05f306..01d7ceb1541d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -425,7 +425,7 @@  static int amdgpu_bo_do_create(struct amdgpu_device *adev, unsigned long size,
 		if (bo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) {
 			bo->flags &= ~AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
 			goto retry;
-		} else if (domains != bo->preferred_domains) {
+		} else if (domains != bo->allowed_domains) {
 			domains = bo->allowed_domains;
 			goto retry;
 		}

Comments

Am 23.03.2018 um 11:43 schrieb Chunming Zhou:
> Change-Id: I71c01f1526db785463af0ba3747fbd2ab8291d1f
> Signed-off-by: Chunming Zhou <david1.zhou@amd.com>

Ups, patch is Reviewed-by: Christian König <christian.koenig@amd.com>.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index ea7c7f05f306..01d7ceb1541d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -425,7 +425,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, unsigned long size,
>   		if (bo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) {
>   			bo->flags &= ~AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
>   			goto retry;
> -		} else if (domains != bo->preferred_domains) {
> +		} else if (domains != bo->allowed_domains) {
>   			domains = bo->allowed_domains;
>   			goto retry;
>   		}