diff options
author | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:35 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:40 -0400 |
commit | 87c2ee740c07f1edae9eec8bc45cb9b32a68f323 (patch) | |
tree | 1515f53eacb86689f2f96279e51cf0053ae8a308 /drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |
parent | 2de0b0a158bf423208c3898522c8fa1c1078df48 (diff) | |
parent | 6a96243056217662843694a4cbc83158d0e84403 (diff) |
Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next
More new features and fixes for 4.20:
- Add dynamic powergating support for VCN on picasso
- Scheduler cleanup
- Vega20 support for KFD
- DC cleanups and bug fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180927184348.2696-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index 797196476c94..8c0576978d36 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |||
@@ -2643,19 +2643,19 @@ static int dce_v8_0_sw_init(void *handle) | |||
2643 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 2643 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
2644 | 2644 | ||
2645 | for (i = 0; i < adev->mode_info.num_crtc; i++) { | 2645 | for (i = 0; i < adev->mode_info.num_crtc; i++) { |
2646 | r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, i + 1, &adev->crtc_irq); | 2646 | r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq); |
2647 | if (r) | 2647 | if (r) |
2648 | return r; | 2648 | return r; |
2649 | } | 2649 | } |
2650 | 2650 | ||
2651 | for (i = 8; i < 20; i += 2) { | 2651 | for (i = 8; i < 20; i += 2) { |
2652 | r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, i, &adev->pageflip_irq); | 2652 | r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq); |
2653 | if (r) | 2653 | if (r) |
2654 | return r; | 2654 | return r; |
2655 | } | 2655 | } |
2656 | 2656 | ||
2657 | /* HPD hotplug */ | 2657 | /* HPD hotplug */ |
2658 | r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 42, &adev->hpd_irq); | 2658 | r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 42, &adev->hpd_irq); |
2659 | if (r) | 2659 | if (r) |
2660 | return r; | 2660 | return r; |
2661 | 2661 | ||
@@ -3458,8 +3458,7 @@ static const struct amdgpu_display_funcs dce_v8_0_display_funcs = { | |||
3458 | 3458 | ||
3459 | static void dce_v8_0_set_display_funcs(struct amdgpu_device *adev) | 3459 | static void dce_v8_0_set_display_funcs(struct amdgpu_device *adev) |
3460 | { | 3460 | { |
3461 | if (adev->mode_info.funcs == NULL) | 3461 | adev->mode_info.funcs = &dce_v8_0_display_funcs; |
3462 | adev->mode_info.funcs = &dce_v8_0_display_funcs; | ||
3463 | } | 3462 | } |
3464 | 3463 | ||
3465 | static const struct amdgpu_irq_src_funcs dce_v8_0_crtc_irq_funcs = { | 3464 | static const struct amdgpu_irq_src_funcs dce_v8_0_crtc_irq_funcs = { |