]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: set DRIVER_ATOMIC flag early
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jan 2018 22:05:03 +0000 (17:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:03 +0000 (14:19 -0500)
commit4f57b3da35487d7cfcac58b49bea1cf561eb92f2
treeee356facc91fa93e90c271cb1684862deadb93f6
parent43f325cdc9d0f2f07a6a63f83848b0f05d594e33
drm/amdgpu: set DRIVER_ATOMIC flag early

The atomic debugfs stuff gets created in drm_dev_alloc()
but this gets called before we've enumerated all of our
IPs, so move the DRIVER_ATOMIC flag setting to fix that.

Since DRIVER_ATOMIC is a driver flag it's currently global
to the driver so setting it affects all GPUs driven by the
driver.  Unfortunately, not all GPUs support atomic.  Warn
the user if that is the case.

This is the same as our current behavior, but at least the
atomic debugfs stuff gets created now.

Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c