* [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted()
@ 2017-01-24 0:55 Nils Holland
[not found] ` <20170124005551.GA22069-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Nils Holland @ 2017-01-24 0:55 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
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@tisys.org>
Date: Tue, 24 Jan 2017 01:36:45 +0100
Subject: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted()
Remove mistakedly placed ; that prevents the code from compiling. No
functional change.
Signed-off-by: Nils Holland <nholland@tisys.org>
---
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;
--
2.11.0
Greetings
Nils
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <20170124005551.GA22069-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org>]
* Re: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted() [not found] ` <20170124005551.GA22069-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org> @ 2017-01-24 1:35 ` Michel Dänzer [not found] ` <97f6e4c1-0851-51cc-c496-66c1e8f83c61-otUistvHUpPR7s880joybQ@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Michel Dänzer @ 2017-01-24 1:35 UTC (permalink / raw) To: Nils Holland; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW 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@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@tisys.org> Reviewed-by: Michel Dänzer <michel.daenzer@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 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <97f6e4c1-0851-51cc-c496-66c1e8f83c61-otUistvHUpPR7s880joybQ@public.gmane.org>]
* Re: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted() [not found] ` <97f6e4c1-0851-51cc-c496-66c1e8f83c61-otUistvHUpPR7s880joybQ@public.gmane.org> @ 2017-01-24 7:43 ` Nils Holland [not found] ` <20170124074340.GA9899-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Nils Holland @ 2017-01-24 7:43 UTC (permalink / raw) To: Michel Dänzer; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW On Tue, Jan 24, 2017 at 10:35:16AM +0900, Michel Dänzer wrote: > 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@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. Ah, I see! Making the job unnecessarily difficult for a maintainer is no good idea, so I will certainly do this better / correctly the next time I submit something! > Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Thanks!! Greetings Nils _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20170124074340.GA9899-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org>]
* Re: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted() [not found] ` <20170124074340.GA9899-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org> @ 2017-01-24 8:53 ` Christian König [not found] ` <c42e3767-1f6e-a04f-956d-8112666c1dec-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Christian König @ 2017-01-24 8:53 UTC (permalink / raw) To: Nils Holland, Michel Dänzer; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Am 24.01.2017 um 08:43 schrieb Nils Holland: > On Tue, Jan 24, 2017 at 10:35:16AM +0900, Michel Dänzer wrote: >> 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@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. > Ah, I see! Making the job unnecessarily difficult for a maintainer is > no good idea, so I will certainly do this better / correctly the next > time I submit something! > >> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> as well. > Thanks!! > > Greetings > Nils > _______________________________________________ > 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] 5+ messages in thread
[parent not found: <c42e3767-1f6e-a04f-956d-8112666c1dec-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>]
* Re: [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted() [not found] ` <c42e3767-1f6e-a04f-956d-8112666c1dec-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org> @ 2017-01-24 9:28 ` Nils Holland 0 siblings, 0 replies; 5+ messages in thread From: Nils Holland @ 2017-01-24 9:28 UTC (permalink / raw) To: Christian König Cc: Alex Deucher, Michel Dänzer, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW On Tue, Jan 24, 2017 at 09:53:24AM +0100, Christian König wrote: > Am 24.01.2017 um 08:43 schrieb Nils Holland: > > On Tue, Jan 24, 2017 at 10:35:16AM +0900, Michel Dänzer wrote: > >> 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@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. > > Ah, I see! Making the job unnecessarily difficult for a maintainer is > > no good idea, so I will certainly do this better / correctly the next > > time I submit something! > > > >> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> > > Reviewed-by: Christian König <christian.koenig@amd.com> as well. Just a note: I've just had a look at the official amdgpu Git tree for the first time, and saw that when Alex Deucher commited my patch into drm-next-4.11-wip yesterday, he obviously already spotted the mistake and fixed it. That would mean that my follow-up patch is void and can be discarded. I should probably have verified the state of the patch in the tree before reacting to the kernel test robot's output (or, rather: Should have tested well enough to prevent this mistake right from the start...) Thanks Alex! Greetings Nils _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-24 9:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-24 0:55 [PATCH] drm/amdgpu: Fix error in amdgpu_bo_create_restricted() Nils Holland
[not found] ` <20170124005551.GA22069-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org>
2017-01-24 1:35 ` Michel Dänzer
[not found] ` <97f6e4c1-0851-51cc-c496-66c1e8f83c61-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-01-24 7:43 ` Nils Holland
[not found] ` <20170124074340.GA9899-iI9p2NPcQ/rYtjvyW6yDsg@public.gmane.org>
2017-01-24 8:53 ` Christian König
[not found] ` <c42e3767-1f6e-a04f-956d-8112666c1dec-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-01-24 9:28 ` Nils Holland
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.