mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-02 13:23:45 +00:00
drm/amd/display: Move kms_atomic support flag to dm_early_init.
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cf5a4c11a1
commit
d7ec53d9dd
2 changed files with 1 additions and 4 deletions
|
@ -2071,10 +2071,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
|
||||||
adev->audio_endpt_rreg = &amdgpu_block_invalid_rreg;
|
adev->audio_endpt_rreg = &amdgpu_block_invalid_rreg;
|
||||||
adev->audio_endpt_wreg = &amdgpu_block_invalid_wreg;
|
adev->audio_endpt_wreg = &amdgpu_block_invalid_wreg;
|
||||||
|
|
||||||
if (amdgpu_device_has_dc_support(adev))
|
|
||||||
adev->ddev->driver->driver_features |= DRIVER_ATOMIC;
|
|
||||||
|
|
||||||
|
|
||||||
DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X 0x%02X).\n",
|
DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X 0x%02X).\n",
|
||||||
amdgpu_asic_name[adev->asic_type], pdev->vendor, pdev->device,
|
amdgpu_asic_name[adev->asic_type], pdev->vendor, pdev->device,
|
||||||
pdev->subsystem_vendor, pdev->subsystem_device, pdev->revision);
|
pdev->subsystem_vendor, pdev->subsystem_device, pdev->revision);
|
||||||
|
|
|
@ -1421,6 +1421,7 @@ static int dm_early_init(void *handle)
|
||||||
{
|
{
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||||
|
|
||||||
|
adev->ddev->driver->driver_features |= DRIVER_ATOMIC;
|
||||||
amdgpu_dm_set_irq_funcs(adev);
|
amdgpu_dm_set_irq_funcs(adev);
|
||||||
|
|
||||||
switch (adev->asic_type) {
|
switch (adev->asic_type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue