diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2019-06-09 18:07:56 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2019-06-10 17:02:48 -0400 |
commit | fdf2f6c56e5e289c7d7e726b676aba25643b39a0 (patch) | |
tree | ee73c025bec0f2514aea3920d5f1056212223a8a | |
parent | 09d21852a6f3bd8f96c0eb2d7bd9a3b8706f8bcd (diff) |
drm/amd: drop use of drmP.h in amdgpu/amdgpu*
Drop use of drmP.h in all files named amdgpu*
in drm/amd/amdgpu/
Fix fallout.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190609220757.10862-10-sam@ravnborg.org
55 files changed, 95 insertions, 64 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 56f8ca2a3bb4..1e41367ef74e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/power_supply.h> | 27 | #include <linux/power_supply.h> |
28 | #include <linux/pm_runtime.h> | 28 | #include <linux/pm_runtime.h> |
29 | #include <acpi/video.h> | 29 | #include <acpi/video.h> |
30 | #include <drm/drmP.h> | 30 | |
31 | #include <drm/drm_crtc_helper.h> | 31 | #include <drm/drm_crtc_helper.h> |
32 | #include "amdgpu.h" | 32 | #include "amdgpu.h" |
33 | #include "amdgpu_pm.h" | 33 | #include "amdgpu_pm.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c index 3889486f71fe..a4d65973bf7c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | |||
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | #include <linux/hdmi.h> | 26 | #include <linux/hdmi.h> |
27 | #include <linux/gcd.h> | 27 | #include <linux/gcd.h> |
28 | #include <drm/drmP.h> | 28 | |
29 | #include <drm/amdgpu_drm.h> | 29 | #include <drm/amdgpu_drm.h> |
30 | #include "amdgpu.h" | 30 | #include "amdgpu.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c index aeead072fa79..822049a78e9f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include "amdgpu_amdkfd.h" | 23 | #include "amdgpu_amdkfd.h" |
24 | #include "amd_shared.h" | 24 | #include "amd_shared.h" |
25 | #include <drm/drmP.h> | 25 | |
26 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
27 | #include "amdgpu_gfx.h" | 27 | #include "amdgpu_gfx.h" |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c index fa09e11a600c..c49d5ae4e29e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/fdtable.h> | 23 | #include <linux/fdtable.h> |
24 | #include <linux/uaccess.h> | 24 | #include <linux/uaccess.h> |
25 | #include <linux/mmu_context.h> | 25 | #include <linux/mmu_context.h> |
26 | #include <drm/drmP.h> | 26 | |
27 | #include "amdgpu.h" | 27 | #include "amdgpu.h" |
28 | #include "amdgpu_amdkfd.h" | 28 | #include "amdgpu_amdkfd.h" |
29 | #include "cikd.h" | 29 | #include "cikd.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c index fec3a6aa1de6..68f4b1315740 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/fdtable.h> | 24 | #include <linux/fdtable.h> |
25 | #include <linux/uaccess.h> | 25 | #include <linux/uaccess.h> |
26 | #include <linux/mmu_context.h> | 26 | #include <linux/mmu_context.h> |
27 | #include <drm/drmP.h> | 27 | |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_amdkfd.h" | 29 | #include "amdgpu_amdkfd.h" |
30 | #include "gfx_v8_0.h" | 30 | #include "gfx_v8_0.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c index ef3d93b995b2..1a3ec47238b0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <linux/fdtable.h> | 26 | #include <linux/fdtable.h> |
27 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
28 | #include <linux/mmu_context.h> | 28 | #include <linux/mmu_context.h> |
29 | #include <drm/drmP.h> | 29 | |
30 | #include "amdgpu.h" | 30 | #include "amdgpu.h" |
31 | #include "amdgpu_amdkfd.h" | 31 | #include "amdgpu_amdkfd.h" |
32 | #include "soc15_hw_ip.h" | 32 | #include "soc15_hw_ip.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index d2b51bc3f534..0d27376a0707 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/sched/mm.h> | 28 | #include <linux/sched/mm.h> |
29 | #include <linux/sched/task.h> | 29 | #include <linux/sched/task.h> |
30 | 30 | ||
31 | #include <drm/drmP.h> | ||
32 | #include "amdgpu_object.h" | 31 | #include "amdgpu_object.h" |
33 | #include "amdgpu_vm.h" | 32 | #include "amdgpu_vm.h" |
34 | #include "amdgpu_amdkfd.h" | 33 | #include "amdgpu_amdkfd.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c index e02781b37e73..1c9d40f97a9b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include <drm/drmP.h> | 26 | |
27 | #include <drm/amdgpu_drm.h> | 27 | #include <drm/amdgpu_drm.h> |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_atombios.h" | 29 | #include "amdgpu_atombios.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c index f96d75c6e099..a2dbdf13c4c7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * OTHER DEALINGS IN THE SOFTWARE. | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | #include <drm/drmP.h> | 23 | |
24 | #include <drm/amdgpu_drm.h> | 24 | #include <drm/amdgpu_drm.h> |
25 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
26 | #include "atomfirmware.h" | 26 | #include "atomfirmware.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c index 3079ea8523c5..649e68c4479b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * | 21 | * |
22 | * Authors: Jerome Glisse | 22 | * Authors: Jerome Glisse |
23 | */ | 23 | */ |
24 | #include <drm/drmP.h> | 24 | |
25 | #include <drm/amdgpu_drm.h> | 25 | #include <drm/amdgpu_drm.h> |
26 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
27 | 27 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c index a5df80d50d44..50dff69a0f6e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | |||
@@ -25,10 +25,11 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <drm/drmP.h> | 28 | |
29 | #include "amdgpu.h" | 29 | #include "amdgpu.h" |
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | 31 | ||
32 | #include <linux/pci.h> | ||
32 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
33 | #include <linux/acpi.h> | 34 | #include <linux/acpi.h> |
34 | /* | 35 | /* |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index 5c79da8e1150..7d2f37434c1a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |||
@@ -28,7 +28,8 @@ | |||
28 | * Christian König <deathsimple@vodafone.de> | 28 | * Christian König <deathsimple@vodafone.de> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <drm/drmP.h> | 31 | #include <linux/uaccess.h> |
32 | |||
32 | #include "amdgpu.h" | 33 | #include "amdgpu.h" |
33 | #include "amdgpu_trace.h" | 34 | #include "amdgpu_trace.h" |
34 | 35 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index 387f1cf1dc20..031b094607bd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |||
@@ -22,8 +22,9 @@ | |||
22 | * | 22 | * |
23 | */ | 23 | */ |
24 | #include <linux/list.h> | 24 | #include <linux/list.h> |
25 | #include <linux/pci.h> | ||
25 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
26 | #include <drm/drmP.h> | 27 | |
27 | #include <linux/firmware.h> | 28 | #include <linux/firmware.h> |
28 | #include <drm/amdgpu_drm.h> | 29 | #include <drm/amdgpu_drm.h> |
29 | #include "amdgpu.h" | 30 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c index bf04c12bd324..73b2ede773d3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include <drm/drmP.h> | 26 | |
27 | #include <drm/drm_edid.h> | 27 | #include <drm/drm_edid.h> |
28 | #include <drm/drm_fb_helper.h> | 28 | #include <drm/drm_fb_helper.h> |
29 | #include <drm/drm_probe_helper.h> | 29 | #include <drm/drm_probe_helper.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 2f6239b6be6f..7cd24c1d7919 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -24,9 +24,11 @@ | |||
24 | * Authors: | 24 | * Authors: |
25 | * Jerome Glisse <glisse@freedesktop.org> | 25 | * Jerome Glisse <glisse@freedesktop.org> |
26 | */ | 26 | */ |
27 | |||
28 | #include <linux/file.h> | ||
27 | #include <linux/pagemap.h> | 29 | #include <linux/pagemap.h> |
28 | #include <linux/sync_file.h> | 30 | #include <linux/sync_file.h> |
29 | #include <drm/drmP.h> | 31 | |
30 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
31 | #include <drm/drm_syncobj.h> | 33 | #include <drm/drm_syncobj.h> |
32 | #include "amdgpu.h" | 34 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index a28a3d722ba2..f539a2a92774 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * Authors: monk liu <monk.liu@amd.com> | 22 | * Authors: monk liu <monk.liu@amd.com> |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <drm/drmP.h> | ||
26 | #include <drm/drm_auth.h> | 25 | #include <drm/drm_auth.h> |
27 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
28 | #include "amdgpu_sched.h" | 27 | #include "amdgpu_sched.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c index 8930d66f2204..f255a00c4492 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |||
@@ -24,8 +24,11 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/kthread.h> | 26 | #include <linux/kthread.h> |
27 | #include <drm/drmP.h> | 27 | #include <linux/pci.h> |
28 | #include <linux/debugfs.h> | 28 | #include <linux/uaccess.h> |
29 | |||
30 | #include <drm/drm_debugfs.h> | ||
31 | |||
29 | #include "amdgpu.h" | 32 | #include "amdgpu.h" |
30 | 33 | ||
31 | /** | 34 | /** |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 9f282e971197..aa423887943f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -27,9 +27,10 @@ | |||
27 | */ | 27 | */ |
28 | #include <linux/power_supply.h> | 28 | #include <linux/power_supply.h> |
29 | #include <linux/kthread.h> | 29 | #include <linux/kthread.h> |
30 | #include <linux/module.h> | ||
30 | #include <linux/console.h> | 31 | #include <linux/console.h> |
31 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
32 | #include <drm/drmP.h> | 33 | |
33 | #include <drm/drm_atomic_helper.h> | 34 | #include <drm/drm_atomic_helper.h> |
34 | #include <drm/drm_probe_helper.h> | 35 | #include <drm/drm_probe_helper.h> |
35 | #include <drm/amdgpu_drm.h> | 36 | #include <drm/amdgpu_drm.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index b083b219b1a9..6a15f85086c1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include <drm/drmP.h> | 26 | |
27 | #include <drm/amdgpu_drm.h> | 27 | #include <drm/amdgpu_drm.h> |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_i2c.h" | 29 | #include "amdgpu_i2c.h" |
@@ -32,11 +32,13 @@ | |||
32 | #include "amdgpu_display.h" | 32 | #include "amdgpu_display.h" |
33 | #include <asm/div64.h> | 33 | #include <asm/div64.h> |
34 | 34 | ||
35 | #include <linux/pci.h> | ||
35 | #include <linux/pm_runtime.h> | 36 | #include <linux/pm_runtime.h> |
36 | #include <drm/drm_crtc_helper.h> | 37 | #include <drm/drm_crtc_helper.h> |
37 | #include <drm/drm_edid.h> | 38 | #include <drm/drm_edid.h> |
38 | #include <drm/drm_gem_framebuffer_helper.h> | 39 | #include <drm/drm_gem_framebuffer_helper.h> |
39 | #include <drm/drm_fb_helper.h> | 40 | #include <drm/drm_fb_helper.h> |
41 | #include <drm/drm_vblank.h> | ||
40 | 42 | ||
41 | static void amdgpu_display_flip_callback(struct dma_fence *f, | 43 | static void amdgpu_display_flip_callback(struct dma_fence *f, |
42 | struct dma_fence_cb *cb) | 44 | struct dma_fence_cb *cb) |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 523b8ab6b04e..eedecaf4c804 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * Authors: Alex Deucher | 22 | * Authors: Alex Deucher |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <drm/drmP.h> | ||
26 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
27 | #include "amdgpu_atombios.h" | 26 | #include "amdgpu_atombios.h" |
28 | #include "amdgpu_i2c.h" | 27 | #include "amdgpu_i2c.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 1e2cc9d68a05..2e2e9508c339 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -22,14 +22,16 @@ | |||
22 | * OTHER DEALINGS IN THE SOFTWARE. | 22 | * OTHER DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <drm/drmP.h> | ||
26 | #include <drm/amdgpu_drm.h> | 25 | #include <drm/amdgpu_drm.h> |
26 | #include <drm/drm_drv.h> | ||
27 | #include <drm/drm_gem.h> | 27 | #include <drm/drm_gem.h> |
28 | #include <drm/drm_vblank.h> | ||
28 | #include "amdgpu_drv.h" | 29 | #include "amdgpu_drv.h" |
29 | 30 | ||
30 | #include <drm/drm_pciids.h> | 31 | #include <drm/drm_pciids.h> |
31 | #include <linux/console.h> | 32 | #include <linux/console.h> |
32 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/pci.h> | ||
33 | #include <linux/pm_runtime.h> | 35 | #include <linux/pm_runtime.h> |
34 | #include <linux/vga_switcheroo.h> | 36 | #include <linux/vga_switcheroo.h> |
35 | #include <drm/drm_probe_helper.h> | 37 | #include <drm/drm_probe_helper.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c index ec78e2b2015c..571a6dfb473e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include <drm/drmP.h> | 26 | |
27 | #include <drm/drm_crtc_helper.h> | 27 | #include <drm/drm_crtc_helper.h> |
28 | #include <drm/amdgpu_drm.h> | 28 | #include <drm/amdgpu_drm.h> |
29 | #include "amdgpu.h" | 29 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index 2e2869299a84..eb3569b46c1e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -23,22 +23,22 @@ | |||
23 | * Authors: | 23 | * Authors: |
24 | * David Airlie | 24 | * David Airlie |
25 | */ | 25 | */ |
26 | |||
26 | #include <linux/module.h> | 27 | #include <linux/module.h> |
27 | #include <linux/slab.h> | ||
28 | #include <linux/pm_runtime.h> | 28 | #include <linux/pm_runtime.h> |
29 | #include <linux/slab.h> | ||
30 | #include <linux/vga_switcheroo.h> | ||
29 | 31 | ||
30 | #include <drm/drmP.h> | 32 | #include <drm/amdgpu_drm.h> |
31 | #include <drm/drm_crtc.h> | 33 | #include <drm/drm_crtc.h> |
32 | #include <drm/drm_crtc_helper.h> | 34 | #include <drm/drm_crtc_helper.h> |
33 | #include <drm/amdgpu_drm.h> | 35 | #include <drm/drm_fb_helper.h> |
36 | #include <drm/drm_fourcc.h> | ||
37 | |||
34 | #include "amdgpu.h" | 38 | #include "amdgpu.h" |
35 | #include "cikd.h" | 39 | #include "cikd.h" |
36 | #include "amdgpu_gem.h" | 40 | #include "amdgpu_gem.h" |
37 | 41 | ||
38 | #include <drm/drm_fb_helper.h> | ||
39 | |||
40 | #include <linux/vga_switcheroo.h> | ||
41 | |||
42 | #include "amdgpu_display.h" | 42 | #include "amdgpu_display.h" |
43 | 43 | ||
44 | /* object hierarchy - | 44 | /* object hierarchy - |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index 4dee2326b29c..2d0d1c43c786 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | |||
@@ -34,7 +34,9 @@ | |||
34 | #include <linux/kref.h> | 34 | #include <linux/kref.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include <linux/firmware.h> | 36 | #include <linux/firmware.h> |
37 | #include <drm/drmP.h> | 37 | |
38 | #include <drm/drm_debugfs.h> | ||
39 | |||
38 | #include "amdgpu.h" | 40 | #include "amdgpu.h" |
39 | #include "amdgpu_trace.h" | 41 | #include "amdgpu_trace.h" |
40 | 42 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index 6d11e1721147..d79ab1da9e07 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |||
@@ -25,7 +25,10 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <drm/drmP.h> | 28 | |
29 | #include <linux/pci.h> | ||
30 | #include <linux/vmalloc.h> | ||
31 | |||
29 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
30 | #ifdef CONFIG_X86 | 33 | #ifdef CONFIG_X86 |
31 | #include <asm/set_memory.h> | 34 | #include <asm/set_memory.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index d4fcf5475464..a806d403d29a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -26,9 +26,13 @@ | |||
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <linux/ktime.h> | 28 | #include <linux/ktime.h> |
29 | #include <linux/module.h> | ||
29 | #include <linux/pagemap.h> | 30 | #include <linux/pagemap.h> |
30 | #include <drm/drmP.h> | 31 | #include <linux/pci.h> |
32 | |||
31 | #include <drm/amdgpu_drm.h> | 33 | #include <drm/amdgpu_drm.h> |
34 | #include <drm/drm_debugfs.h> | ||
35 | |||
32 | #include "amdgpu.h" | 36 | #include "amdgpu.h" |
33 | #include "amdgpu_display.h" | 37 | #include "amdgpu_display.h" |
34 | #include "amdgpu_xgmi.h" | 38 | #include "amdgpu_xgmi.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index 997932ebbb83..f198185c1fb6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * OTHER DEALINGS IN THE SOFTWARE. | 22 | * OTHER DEALINGS IN THE SOFTWARE. |
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | #include <drm/drmP.h> | 25 | |
26 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
27 | #include "amdgpu_gfx.h" | 27 | #include "amdgpu_gfx.h" |
28 | #include "amdgpu_rlc.h" | 28 | #include "amdgpu_rlc.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c index 62591d081856..627104401e84 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * Authors: Christian König | 22 | * Authors: Christian König |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <drm/drmP.h> | ||
26 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
27 | 26 | ||
28 | struct amdgpu_gtt_mgr { | 27 | struct amdgpu_gtt_mgr { |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c index f2739995c335..70dbe343f51d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |||
@@ -23,9 +23,10 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | |||
26 | #include <linux/export.h> | 27 | #include <linux/export.h> |
28 | #include <linux/pci.h> | ||
27 | 29 | ||
28 | #include <drm/drmP.h> | ||
29 | #include <drm/drm_edid.h> | 30 | #include <drm/drm_edid.h> |
30 | #include <drm/amdgpu_drm.h> | 31 | #include <drm/amdgpu_drm.h> |
31 | #include "amdgpu.h" | 32 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index fe393a46f881..c124e583bb91 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -28,8 +28,10 @@ | |||
28 | */ | 28 | */ |
29 | #include <linux/seq_file.h> | 29 | #include <linux/seq_file.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include <drm/drmP.h> | 31 | |
32 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
33 | #include <drm/drm_debugfs.h> | ||
34 | |||
33 | #include "amdgpu.h" | 35 | #include "amdgpu.h" |
34 | #include "atom.h" | 36 | #include "atom.h" |
35 | #include "amdgpu_trace.h" | 37 | #include "amdgpu_trace.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c index df9b173c3d0b..df6d33381f8b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include <linux/idr.h> | 25 | #include <linux/idr.h> |
26 | #include <linux/dma-fence-array.h> | 26 | #include <linux/dma-fence-array.h> |
27 | #include <drm/drmP.h> | 27 | |
28 | 28 | ||
29 | #include "amdgpu.h" | 29 | #include "amdgpu.h" |
30 | #include "amdgpu_trace.h" | 30 | #include "amdgpu_trace.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c index 934dfdcb4e73..6d8f05511aba 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | |||
@@ -21,7 +21,8 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <drm/drmP.h> | 24 | #include <linux/dma-mapping.h> |
25 | |||
25 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
26 | #include "amdgpu_ih.h" | 27 | #include "amdgpu_ih.h" |
27 | 28 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c index 26482914dc4b..5cf142e849bb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c | |||
@@ -29,8 +29,9 @@ | |||
29 | */ | 29 | */ |
30 | #include <linux/compat.h> | 30 | #include <linux/compat.h> |
31 | 31 | ||
32 | #include <drm/drmP.h> | ||
33 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
33 | #include <drm/drm_ioctl.h> | ||
34 | |||
34 | #include "amdgpu_drv.h" | 35 | #include "amdgpu_drv.h" |
35 | 36 | ||
36 | long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | 37 | long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index af4c3b1af322..2a3f5ec298db 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |||
@@ -43,8 +43,11 @@ | |||
43 | */ | 43 | */ |
44 | 44 | ||
45 | #include <linux/irq.h> | 45 | #include <linux/irq.h> |
46 | #include <drm/drmP.h> | 46 | #include <linux/pci.h> |
47 | |||
47 | #include <drm/drm_crtc_helper.h> | 48 | #include <drm/drm_crtc_helper.h> |
49 | #include <drm/drm_irq.h> | ||
50 | #include <drm/drm_vblank.h> | ||
48 | #include <drm/amdgpu_drm.h> | 51 | #include <drm/amdgpu_drm.h> |
49 | #include "amdgpu.h" | 52 | #include "amdgpu.h" |
50 | #include "amdgpu_ih.h" | 53 | #include "amdgpu_ih.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index 0a17fb1af204..7e9eafce8a35 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/kthread.h> | 24 | #include <linux/kthread.h> |
25 | #include <linux/wait.h> | 25 | #include <linux/wait.h> |
26 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
27 | #include <drm/drmP.h> | 27 | |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_trace.h" | 29 | #include "amdgpu_trace.h" |
30 | 30 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index b17d0545728e..ad7c4bef5797 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -25,8 +25,9 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <drm/drmP.h> | 28 | |
29 | #include "amdgpu.h" | 29 | #include "amdgpu.h" |
30 | #include <drm/drm_debugfs.h> | ||
30 | #include <drm/amdgpu_drm.h> | 31 | #include <drm/amdgpu_drm.h> |
31 | #include "amdgpu_sched.h" | 32 | #include "amdgpu_sched.h" |
32 | #include "amdgpu_uvd.h" | 33 | #include "amdgpu_uvd.h" |
@@ -35,6 +36,8 @@ | |||
35 | 36 | ||
36 | #include <linux/vga_switcheroo.h> | 37 | #include <linux/vga_switcheroo.h> |
37 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/uaccess.h> | ||
40 | #include <linux/pci.h> | ||
38 | #include <linux/pm_runtime.h> | 41 | #include <linux/pm_runtime.h> |
39 | #include "amdgpu_amdkfd.h" | 42 | #include "amdgpu_amdkfd.h" |
40 | #include "amdgpu_gem.h" | 43 | #include "amdgpu_gem.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index 58ed401c5996..19f8909e9647 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <linux/module.h> | 47 | #include <linux/module.h> |
48 | #include <linux/mmu_notifier.h> | 48 | #include <linux/mmu_notifier.h> |
49 | #include <linux/interval_tree.h> | 49 | #include <linux/interval_tree.h> |
50 | #include <drm/drmP.h> | 50 | |
51 | #include <drm/drm.h> | 51 | #include <drm/drm.h> |
52 | 52 | ||
53 | #include "amdgpu.h" | 53 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 93b2c5a48a71..16f96f2e3671 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -31,7 +31,7 @@ | |||
31 | */ | 31 | */ |
32 | #include <linux/list.h> | 32 | #include <linux/list.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include <drm/drmP.h> | 34 | |
35 | #include <drm/amdgpu_drm.h> | 35 | #include <drm/amdgpu_drm.h> |
36 | #include <drm/drm_cache.h> | 36 | #include <drm/drm_cache.h> |
37 | #include "amdgpu.h" | 37 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c index 8e67c1210d7c..1f2305b7bd13 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * OTHER DEALINGS IN THE SOFTWARE. | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | #include <drm/drmP.h> | 23 | |
24 | #include <drm/amdgpu_drm.h> | 24 | #include <drm/amdgpu_drm.h> |
25 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
26 | #include "atom.h" | 26 | #include "atom.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 34471dbaa872..15b42f80ada2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -22,7 +22,9 @@ | |||
22 | * Authors: Rafał Miłecki <zajec5@gmail.com> | 22 | * Authors: Rafał Miłecki <zajec5@gmail.com> |
23 | * Alex Deucher <alexdeucher@gmail.com> | 23 | * Alex Deucher <alexdeucher@gmail.com> |
24 | */ | 24 | */ |
25 | #include <drm/drmP.h> | 25 | |
26 | #include <drm/drm_debugfs.h> | ||
27 | |||
26 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
27 | #include "amdgpu_drv.h" | 29 | #include "amdgpu_drv.h" |
28 | #include "amdgpu_pm.h" | 30 | #include "amdgpu_pm.h" |
@@ -31,6 +33,7 @@ | |||
31 | #include "amdgpu_smu.h" | 33 | #include "amdgpu_smu.h" |
32 | #include "atom.h" | 34 | #include "atom.h" |
33 | #include <linux/power_supply.h> | 35 | #include <linux/power_supply.h> |
36 | #include <linux/pci.h> | ||
34 | #include <linux/hwmon.h> | 37 | #include <linux/hwmon.h> |
35 | #include <linux/hwmon-sysfs.h> | 38 | #include <linux/hwmon-sysfs.h> |
36 | #include <linux/nospec.h> | 39 | #include <linux/nospec.h> |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index a38e0fb4a6fe..95685a9c57ab 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |||
@@ -31,8 +31,6 @@ | |||
31 | * objects between different devices via PRIME <prime_buffer_sharing>`. | 31 | * objects between different devices via PRIME <prime_buffer_sharing>`. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <drm/drmP.h> | ||
35 | |||
36 | #include "amdgpu.h" | 34 | #include "amdgpu.h" |
37 | #include "amdgpu_display.h" | 35 | #include "amdgpu_display.h" |
38 | #include "amdgpu_gem.h" | 36 | #include "amdgpu_gem.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 86cc24b2e0aa..d72d603b55fc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |||
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/firmware.h> | 26 | #include <linux/firmware.h> |
27 | #include <drm/drmP.h> | 27 | |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_psp.h" | 29 | #include "amdgpu_psp.h" |
30 | #include "amdgpu_ucode.h" | 30 | #include "amdgpu_ucode.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c index 8f5026c123ef..ee440fe29b91 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |||
@@ -28,8 +28,9 @@ | |||
28 | */ | 28 | */ |
29 | #include <linux/seq_file.h> | 29 | #include <linux/seq_file.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include <linux/uaccess.h> | ||
31 | #include <linux/debugfs.h> | 32 | #include <linux/debugfs.h> |
32 | #include <drm/drmP.h> | 33 | |
33 | #include <drm/amdgpu_drm.h> | 34 | #include <drm/amdgpu_drm.h> |
34 | #include "amdgpu.h" | 35 | #include "amdgpu.h" |
35 | #include "atom.h" | 36 | #include "atom.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c index bfaf5c6323be..0bd1d4ffc19e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | |||
@@ -41,7 +41,7 @@ | |||
41 | * If we are asked to block we wait on all the oldest fence of all | 41 | * If we are asked to block we wait on all the oldest fence of all |
42 | * rings. We just wait for any of those fence to complete. | 42 | * rings. We just wait for any of those fence to complete. |
43 | */ | 43 | */ |
44 | #include <drm/drmP.h> | 44 | |
45 | #include "amdgpu.h" | 45 | #include "amdgpu.h" |
46 | 46 | ||
47 | static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo); | 47 | static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c index 115bb0c99b0f..a425329d1897 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * OTHER DEALINGS IN THE SOFTWARE. | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | #include <drm/drmP.h> | 23 | |
24 | #include "amdgpu.h" | 24 | #include "amdgpu.h" |
25 | #include "amdgpu_sdma.h" | 25 | #include "amdgpu_sdma.h" |
26 | 26 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 2d6f5ec77a68..9828f3c7c655 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |||
@@ -28,7 +28,6 @@ | |||
28 | * Christian König <christian.koenig@amd.com> | 28 | * Christian König <christian.koenig@amd.com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <drm/drmP.h> | ||
32 | #include "amdgpu.h" | 31 | #include "amdgpu.h" |
33 | #include "amdgpu_trace.h" | 32 | #include "amdgpu_trace.h" |
34 | #include "amdgpu_amdkfd.h" | 33 | #include "amdgpu_amdkfd.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c index 8904e62dca7a..b66d29d5ffa2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * | 22 | * |
23 | * Authors: Michel Dänzer | 23 | * Authors: Michel Dänzer |
24 | */ | 24 | */ |
25 | #include <drm/drmP.h> | 25 | |
26 | #include <drm/amdgpu_drm.h> | 26 | #include <drm/amdgpu_drm.h> |
27 | #include "amdgpu.h" | 27 | #include "amdgpu.h" |
28 | #include "amdgpu_uvd.h" | 28 | #include "amdgpu_uvd.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c index f212402570a5..57c6c39ba064 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * | 21 | * |
22 | * Author : Dave Airlie <airlied@redhat.com> | 22 | * Author : Dave Airlie <airlied@redhat.com> |
23 | */ | 23 | */ |
24 | #include <drm/drmP.h> | 24 | |
25 | #include <drm/amdgpu_drm.h> | 25 | #include <drm/amdgpu_drm.h> |
26 | #include "amdgpu.h" | 26 | #include "amdgpu.h" |
27 | 27 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index e9ede34dd875..a8a1fcab299b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |||
@@ -30,7 +30,7 @@ | |||
30 | * Dave Airlie | 30 | * Dave Airlie |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <linux/debugfs.h> | 33 | #include <linux/dma-mapping.h> |
34 | #include <linux/iommu.h> | 34 | #include <linux/iommu.h> |
35 | #include <linux/pagemap.h> | 35 | #include <linux/pagemap.h> |
36 | #include <linux/sched/task.h> | 36 | #include <linux/sched/task.h> |
@@ -44,7 +44,8 @@ | |||
44 | #include <drm/ttm/ttm_placement.h> | 44 | #include <drm/ttm/ttm_placement.h> |
45 | #include <drm/ttm/ttm_module.h> | 45 | #include <drm/ttm/ttm_module.h> |
46 | #include <drm/ttm/ttm_page_alloc.h> | 46 | #include <drm/ttm/ttm_page_alloc.h> |
47 | #include <drm/drmP.h> | 47 | |
48 | #include <drm/drm_debugfs.h> | ||
48 | #include <drm/amdgpu_drm.h> | 49 | #include <drm/amdgpu_drm.h> |
49 | #include "amdgpu.h" | 50 | #include "amdgpu.h" |
50 | #include "amdgpu_object.h" | 51 | #include "amdgpu_object.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index 7b33867036e7..5228e8a49ec5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/firmware.h> | 24 | #include <linux/firmware.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <drm/drmP.h> | 27 | |
28 | #include "amdgpu.h" | 28 | #include "amdgpu.h" |
29 | #include "amdgpu_ucode.h" | 29 | #include "amdgpu_ucode.h" |
30 | 30 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 4e5d13e41f6a..5b2fea3b4a2c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #include <linux/firmware.h> | 31 | #include <linux/firmware.h> |
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | #include <drm/drmP.h> | 33 | |
34 | #include <drm/drm.h> | 34 | #include <drm/drm.h> |
35 | 35 | ||
36 | #include "amdgpu.h" | 36 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index fa03081c2f78..aa222da24ecf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <linux/firmware.h> | 28 | #include <linux/firmware.h> |
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <drm/drmP.h> | 30 | |
31 | #include <drm/drm.h> | 31 | #include <drm/drm.h> |
32 | 32 | ||
33 | #include "amdgpu.h" | 33 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 7ed5d4e3884d..9501f8be8c75 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |||
@@ -26,7 +26,8 @@ | |||
26 | 26 | ||
27 | #include <linux/firmware.h> | 27 | #include <linux/firmware.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <drm/drmP.h> | 29 | #include <linux/pci.h> |
30 | |||
30 | #include <drm/drm.h> | 31 | #include <drm/drm.h> |
31 | 32 | ||
32 | #include "amdgpu.h" | 33 | #include "amdgpu.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 4f10f5aba00b..e44f9dd202e8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/dma-fence-array.h> | 28 | #include <linux/dma-fence-array.h> |
29 | #include <linux/interval_tree_generic.h> | 29 | #include <linux/interval_tree_generic.h> |
30 | #include <linux/idr.h> | 30 | #include <linux/idr.h> |
31 | #include <drm/drmP.h> | 31 | |
32 | #include <drm/amdgpu_drm.h> | 32 | #include <drm/amdgpu_drm.h> |
33 | #include "amdgpu.h" | 33 | #include "amdgpu.h" |
34 | #include "amdgpu_trace.h" | 34 | #include "amdgpu_trace.h" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c index ec9ea3fdbb4a..8abc9b6892ea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * Authors: Christian König | 22 | * Authors: Christian König |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <drm/drmP.h> | ||
26 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
27 | 26 | ||
28 | struct amdgpu_vram_mgr { | 27 | struct amdgpu_vram_mgr { |