Unified · Split
| @@ -37,7 +37,9 @@ · 36 unmodified lines | |||
| 37 | #include <linux/kref.h> | 37 | #include <linux/kref.h> |
| 38 | #include <linux/sysfs.h> | 38 | #include <linux/sysfs.h> |
| 39 | #include <linux/device_cgroup.h> | 39 | #include <linux/device_cgroup.h> |
| 40 | #include <drm/drmP.h> | 40 | #include <drm/drm_file.h> |
| 41 | #include <drm/drm_drv.h> | ||
| 42 | #include <drm/drm_device.h> | ||
| 41 | #include <kgd_kfd_interface.h> | 43 | #include <kgd_kfd_interface.h> |
| 42 | 44 | ||
| 43 | #include "amd_shared.h" | 45 | #include "amd_shared.h" |
| @@ -49,8 +51,6 @@ · 5 unmodified lines | |||
| 49 | /* GPU ID hash width in bits */ | 51 | /* GPU ID hash width in bits */ |
| 50 | #define KFD_GPU_ID_HASH_WIDTH 16 | 52 | #define KFD_GPU_ID_HASH_WIDTH 16 |
| 51 | 53 | ||
| 52 | struct drm_device; | ||
| 53 | |||
| 54 | /* Use upper bits of mmap offset to store KFD driver specific information. | 54 | /* Use upper bits of mmap offset to store KFD driver specific information. |
| 55 | * BITS[63:62] - Encode MMAP type | 55 | * BITS[63:62] - Encode MMAP type |
| 56 | * BITS[61:46] - Encode gpu_id. To identify to which GPU the offset belongs to | 56 | * BITS[61:46] - Encode gpu_id. To identify to which GPU the offset belongs to |