diff options
| author | Vineet Gupta <[email protected]> | 2016-10-13 22:58:59 +0000 |
|---|---|---|
| committer | Vineet Gupta <[email protected]> | 2016-10-24 16:24:47 +0000 |
| commit | cf986d470208fbdd68b6934a86ccd81c04408484 (patch) | |
| tree | d87390ab95834343e6ef9236d847e2f91d5f3720 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | ARC: syscall for userspace cmpxchg assist (diff) | |
| download | kernel-cf986d470208fbdd68b6934a86ccd81c04408484.tar.gz kernel-cf986d470208fbdd68b6934a86ccd81c04408484.zip | |
ARCv2: IOC: use @ioc_enable not @ioc_exist where intended
if user disables IOC from debugger at startup (by clearing @ioc_enable),
@ioc_exists is cleared too. This means boot prints don't capture the
fact that IOC was present but disabled which could be misleading.
So invert how we use @ioc_enable and @ioc_exists and make it more
canonical. @ioc_exists represent whether hardware is present or not and
stays same whether enabled or not. @ioc_enable is still user driven,
but will be auto-disabled if IOC hardware is not present, i.e. if
@ioc_exist=0. This is opposite to what we were doing before, but much
clearer.
This means @ioc_enable is now the "exported" toggle in rest of code such
as dma mapping API.
Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
