Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'drm-fixes-4.11' of git://people.freedesktop.org/~agd5f/linux into drm-fixes

* 'drm-fixes-4.11' of git://people.freedesktop.org/~agd5f/linux:
drm/amdgpu: bump driver version for some new features
drm/amdgpu: validate paramaters in the gem ioctl
drm/amd/amdgpu: fix console deadlock if late init failed

+27 -2
+4 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 2094 2094 } 2095 2095 2096 2096 r = amdgpu_late_init(adev); 2097 - if (r) 2097 + if (r) { 2098 + if (fbcon) 2099 + console_unlock(); 2098 2100 return r; 2101 + } 2099 2102 2100 2103 /* pin cursors */ 2101 2104 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
··· 59 59 * - 3.7.0 - Add support for VCE clock list packet 60 60 * - 3.8.0 - Add support raster config init in the kernel 61 61 * - 3.9.0 - Add support for memory query info about VRAM and GTT. 62 + * - 3.10.0 - Add support for new fences ioctl, new gem ioctl flags 62 63 */ 63 64 #define KMS_DRIVER_MAJOR 3 64 - #define KMS_DRIVER_MINOR 9 65 + #define KMS_DRIVER_MINOR 10 65 66 #define KMS_DRIVER_PATCHLEVEL 0 66 67 67 68 int amdgpu_vram_limit = 0;
+21
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
··· 202 202 bool kernel = false; 203 203 int r; 204 204 205 + /* reject invalid gem flags */ 206 + if (args->in.domain_flags & ~(AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | 207 + AMDGPU_GEM_CREATE_NO_CPU_ACCESS | 208 + AMDGPU_GEM_CREATE_CPU_GTT_USWC | 209 + AMDGPU_GEM_CREATE_VRAM_CLEARED| 210 + AMDGPU_GEM_CREATE_SHADOW | 211 + AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS)) { 212 + r = -EINVAL; 213 + goto error_unlock; 214 + } 215 + /* reject invalid gem domains */ 216 + if (args->in.domains & ~(AMDGPU_GEM_DOMAIN_CPU | 217 + AMDGPU_GEM_DOMAIN_GTT | 218 + AMDGPU_GEM_DOMAIN_VRAM | 219 + AMDGPU_GEM_DOMAIN_GDS | 220 + AMDGPU_GEM_DOMAIN_GWS | 221 + AMDGPU_GEM_DOMAIN_OA)) { 222 + r = -EINVAL; 223 + goto error_unlock; 224 + } 225 + 205 226 /* create a gem object to contain this object in */ 206 227 if (args->in.domains & (AMDGPU_GEM_DOMAIN_GDS | 207 228 AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA)) {