Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1572152
| From | Michel Dänzer <michel@daenzer.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drm/amdgpu: shut up #warning for compile testing |
| Date | 2017-02-02 07:10 +0100 |
| Message-ID | <t6iKJ-5L-7@gated-at.bofh.it> (permalink) |
| References | <t65DQ-86Y-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 02/02/17 12:59 AM, Arnd Bergmann wrote: > My randconfig tests on linux-next showed a newly introduced warning: > > drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function 'amdgpu_bo_create_restricted': > drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:377:2: error: #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance thanks to write-combining [-Werror=cpp] > > Generally speaking, warnings about bad kernel configuration are not particularly > helpful. We could enforce the selection of X86_PAT through Kconfig, so the driver > cannot even be used unless it is enabled, Making AMDGPU depend on X86_PAT would be wrong I think, and any fancier Kconfig solution might be overkill. > or we could just rely on the runtime warning that is also there. That might make sense, since the runtime warning is only triggered when the lack of PAT actually makes a difference. OTOH the people running the kernel aren't always the same people building it, so the downside is that this would potentially delay getting X86_PAT enabled. > In this version, I'm making the warning conditional on CONFIG_COMPILE_TEST, which > shuts it up for me, but not people that may actually want to run the kernel > as a compromize. This is fine with me as well. Whichever way we end up going for this, it should be applied to the radeon driver as well. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drm/amdgpu: shut up #warning for compile testing Arnd Bergmann <arnd@arndb.de> - 2017-02-01 17:10 +0100
Re: [PATCH] drm/amdgpu: shut up #warning for compile testing Michel Dänzer <michel@daenzer.net> - 2017-02-02 07:10 +0100
Re: [PATCH] drm/amdgpu: shut up #warning for compile testing Michel Dänzer <michel@daenzer.net> - 2017-02-03 11:20 +0100
Re: [PATCH] drm/amdgpu: shut up #warning for compile testing Alex Deucher <alexdeucher@gmail.com> - 2017-02-09 06:30 +0100
csiph-web