intel: properly test for HAS_LLC
PATCH 1/1 intel: properly test for HAS_LLC
If the kernel supports the test, we need to check the param. Copy&pasta from the above checks that only look at the return value. Interesting how much one can get such a simple interface wrong.
Issue created in
commit 151cdcfe685ee280a4344dfc40e6087d74a5590f
Author: Eugeni Dodonov <[email protected]> Date: Tue Jan 17 15:20:19 2012 -0200
intel: query for LLC support
Patch even claims to have fixed this in v2, but is actually unchanged from v1.
--- intel/intel_bufmgr_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
intel/intel_bufmgr_gem.c +1 -1
@@ -3112,7 +3112,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size) bufmgr_gem->has_llc = (IS_GEN6 (bufmgr_gem->pci_device) |IS_GEN7 (bufmgr_gem->pci_device)); }else - bufmgr_gem->has_llc = ret ==0 ; + bufmgr_gem->has_llc = gp.value;if (bufmgr_gem->gen <4 ) { gp.param =I915_PARAM_NUM_FENCES_AVAIL ;
Signature · 1 line
1.7.10.4
Quoted 3 lines · Daniel Vetter
If the kernel supports the test, we need to check the param. Copy&pasta from the above checks that only look at the return value. Interesting how much one can get such a simple interface wrong.
Interesting, didn't realise libdrm declared that we even had LLC on 8xx!
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 10 lines · On Fri, 31 Aug 2012 11:18:53 +0200 Daniel Vetter <[email protected]> wrote:
If the kernel supports the test, we need to check the param. Copy&pasta from the above checks that only look at the return value. Interesting how much one can get such a simple interface wrong.
Issue created in
commit
151cdcfe685ee280a4344dfc40e6087d74a5590fAuthor: Eugeni Dodonov <[email protected]> Date: Tue Jan 17 15:20:19 2012 -0200
Quoted 7 lines
intel: query for LLC support
Patch even claims to have fixed this in v2, but is actually unchanged from v1.
Reported-by Xiang, Haihao <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center