hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/gpu/drm/radeon/r600.c
....@@ -25,19 +25,25 @@
2525 * Alex Deucher
2626 * Jerome Glisse
2727 */
28
-#include <linux/slab.h>
29
-#include <linux/seq_file.h>
28
+
3029 #include <linux/firmware.h>
3130 #include <linux/module.h>
32
-#include <drm/drmP.h>
31
+#include <linux/pci.h>
32
+#include <linux/slab.h>
33
+#include <linux/seq_file.h>
34
+
35
+#include <drm/drm_debugfs.h>
36
+#include <drm/drm_device.h>
37
+#include <drm/drm_vblank.h>
3338 #include <drm/radeon_drm.h>
39
+
40
+#include "atom.h"
41
+#include "avivod.h"
42
+#include "r600d.h"
3443 #include "radeon.h"
3544 #include "radeon_asic.h"
3645 #include "radeon_audio.h"
3746 #include "radeon_mode.h"
38
-#include "r600d.h"
39
-#include "atom.h"
40
-#include "avivod.h"
4147 #include "radeon_ucode.h"
4248
4349 /* Firmware Names */
....@@ -2840,7 +2846,7 @@
28402846 tmp = RREG32(scratch);
28412847 if (tmp == 0xDEADBEEF)
28422848 break;
2843
- DRM_UDELAY(1);
2849
+ udelay(1);
28442850 }
28452851 if (i < rdev->usec_timeout) {
28462852 DRM_INFO("ring test on %d succeeded in %d usecs\n", ring->idx, i);
....@@ -2957,7 +2963,7 @@
29572963 struct radeon_fence *r600_copy_cpdma(struct radeon_device *rdev,
29582964 uint64_t src_offset, uint64_t dst_offset,
29592965 unsigned num_gpu_pages,
2960
- struct reservation_object *resv)
2966
+ struct dma_resv *resv)
29612967 {
29622968 struct radeon_fence *fence;
29632969 struct radeon_sync sync;
....@@ -3047,7 +3053,7 @@
30473053 * there. So it is pointless to try to go through that code
30483054 * hence why we disable uvd here.
30493055 */
3050
- rdev->has_uvd = 0;
3056
+ rdev->has_uvd = false;
30513057 return;
30523058 }
30533059 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL;
....@@ -3185,7 +3191,7 @@
31853191 uint32_t temp;
31863192
31873193 temp = RREG32(CONFIG_CNTL);
3188
- if (state == false) {
3194
+ if (!state) {
31893195 temp &= ~(1<<0);
31903196 temp |= (1<<1);
31913197 } else {
....@@ -3433,7 +3439,7 @@
34333439 tmp = RREG32(scratch);
34343440 if (tmp == 0xDEADBEEF)
34353441 break;
3436
- DRM_UDELAY(1);
3442
+ udelay(1);
34373443 }
34383444 if (i < rdev->usec_timeout) {
34393445 DRM_INFO("ib test on ring %d succeeded in %u usecs\n", ib.fence->ring, i);