summaryrefslogtreecommitdiff
path: root/src/sna/sna_cpu.c
AgeCommit message (Collapse)Author
2014-05-28Silence CLang (almost)Chris Wilson
Fix up all the warnings about implicit enum conversions. The container_of() macro remains defunct. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-17sna: Wrap cpuid.hChris Wilson
More our ifdef out of line from the main code into a header file, where we can also apply a little bit of synatic sugar. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-03sna: Always populate the CPU features stringChris Wilson
So that we don't print random contents of the stack on ancient 32-bit CPUs with no extended instruction sets. References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1186800 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-26sna: Add extra '()' around bitwise &/&& for CPU feature detectionChris Wilson
By popular demand. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-26sna: Check for OS support of AVX/AVX2 before useChris Wilson
If the OS has not initialised support for the extended instructions, then their use may result in general protection faults. Based on code by Thiago Macieira. Reported-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-26sna: Fix AVX2 detectionChris Wilson
It requires use of the cpuid feature eax=7:ecx=0, so it requires the extended version of __cpuid to pass in the subfeature. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-26sna: AVX2 is in the ebx result of cpuidChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-03sna: CPUID return ISA features in ecx/edxChris Wilson
Whereas we were wrongly looking in eax. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61733 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-27sna: Fix syntax for __get_cpuid()Chris Wilson
It is a function not a macro like cpuid() and takes pointers to its arguments! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-27sna: Prettify GCC version detection in headersChris Wilson
And fixup a basic error in the process. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-27sna: Improve compatibility of cpuid.h detectionChris Wilson
Reported-by: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-26sna: Mention if compiled as 64bit as part of the CPU feature detectionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-26sna: Ignore SSE4a - not an Intel ISA!Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-26sna: Print detected CPU featuresChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-26sna: Fix build on older GCC for cpuid()Chris Wilson
We need to double check that the features we look for are supported by the compiler before doing so. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-02-25sna: Detect available instruction sets at runtimeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>