[PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted()
Michel Dänzer
michel at daenzer.net
Tue Jan 24 01:35:16 UTC 2017
On 24/01/17 09:55 AM, Nils Holland wrote:
> So I decided to fix this with the following follow-up patch. I hope
> this is the right approach (vs. reverting the commit and instead using
> a fixed v2 of the original patch).
>
> From 41775d2c8a14873f522667a57b66cfbe119e28a4 Mon Sep 17 00:00:00 2001
> From: Nils Holland <nholland at tisys.org>
> Date: Tue, 24 Jan 2017 01:36:45 +0100
> Subject: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted()
Note that the way your e-mail was formatted, the above commentary and
mail headers would end up in the Git commit log, unless the person
applying the patch pays attention and removes them. Commentary that
isn't to be part of the commit log should be added between the ---
marker below and the actual code diff.
> Remove mistakedly placed ; that prevents the code from compiling. No
> functional change.
>
> Signed-off-by: Nils Holland <nholland at tisys.org>
Reviewed-by: Michel Dänzer <michel.daenzer at 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 f71fe41c1c99..89d32131e3f5 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -377,7 +377,7 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
> #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
> thanks to write-combining
>
> - if (bo->flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC;)
> + if (bo->flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
> DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
> "better performance thanks to write-combining\n");
> bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the amd-gfx
mailing list