aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorOliver O'Halloran <[email protected]>2016-03-07 22:08:47 +0000
committerMichael Ellerman <[email protected]>2016-03-29 01:08:08 +0000
commit01d7c2a2de47890934faba91a71d183795e4348d (patch)
tree92b4a3070ef4156cccb042d20144952c4b552497 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentpowerpc/mm: Fixup preempt underflow with huge pages (diff)
downloadkernel-01d7c2a2de47890934faba91a71d183795e4348d.tar.gz
kernel-01d7c2a2de47890934faba91a71d183795e4348d.zip
powerpc/process: Fix altivec SPR not being saved
In save_sprs() in process.c contains the following test: if (cpu_has_feature(cpu_has_feature(CPU_FTR_ALTIVEC))) t->vrsave = mfspr(SPRN_VRSAVE); CPU feature with the mask 0x1 is CPU_FTR_COHERENT_ICACHE so the test is equivilent to: if (cpu_has_feature(CPU_FTR_ALTIVEC) && cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) On CPUs without support for both (i.e G5) this results in vrsave not being saved between context switches. The vector register save/restore code doesn't use VRSAVE to determine which registers to save/restore, but the value of VRSAVE is used to determine if altivec is being used in several code paths. Fixes: 152d523e6307 ("powerpc: Create context switch helpers save_sprs() and restore_sprs()") Cc: [email protected] Signed-off-by: Oliver O'Halloran <[email protected]> Signed-off-by: Anton Blanchard <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions