2 * Copyright (C) 2013 Red Hat
3 * Author: Rob Clark <robdclark@gmail.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program. If not, see <http://www.gnu.org/licenses/>.
22 static void msm_fb_output_poll_changed(struct drm_device
*dev
)
24 struct msm_drm_private
*priv
= dev
->dev_private
;
26 drm_fb_helper_hotplug_event(priv
->fbdev
);
29 static const struct drm_mode_config_funcs mode_config_funcs
= {
30 .fb_create
= msm_framebuffer_create
,
31 .output_poll_changed
= msm_fb_output_poll_changed
,
34 int msm_register_mmu(struct drm_device
*dev
, struct msm_mmu
*mmu
)
36 struct msm_drm_private
*priv
= dev
->dev_private
;
37 int idx
= priv
->num_mmus
++;
39 if (WARN_ON(idx
>= ARRAY_SIZE(priv
->mmus
)))
42 priv
->mmus
[idx
] = mmu
;
47 #ifdef CONFIG_DRM_MSM_REGISTER_LOGGING
48 static bool reglog
= false;
49 MODULE_PARM_DESC(reglog
, "Enable register read/write logging");
50 module_param(reglog
, bool, 0600);
56 MODULE_PARM_DESC(vram
, "Configure VRAM size (for devices without IOMMU/GPUMMU");
57 module_param(vram
, charp
, 0);
59 void __iomem
*msm_ioremap(struct platform_device
*pdev
, const char *name
,
67 res
= platform_get_resource_byname(pdev
, IORESOURCE_MEM
, name
);
69 res
= platform_get_resource(pdev
, IORESOURCE_MEM
, 0);
72 dev_err(&pdev
->dev
, "failed to get memory resource: %s\n", name
);
73 return ERR_PTR(-EINVAL
);
76 size
= resource_size(res
);
78 ptr
= devm_ioremap_nocache(&pdev
->dev
, res
->start
, size
);
80 dev_err(&pdev
->dev
, "failed to ioremap: %s\n", name
);
81 return ERR_PTR(-ENOMEM
);
85 printk(KERN_DEBUG
"IO:region %s %08x %08lx\n", dbgname
, (u32
)ptr
, size
);
90 void msm_writel(u32 data
, void __iomem
*addr
)
93 printk(KERN_DEBUG
"IO:W %08x %08x\n", (u32
)addr
, data
);
97 u32
msm_readl(const void __iomem
*addr
)
99 u32 val
= readl(addr
);
101 printk(KERN_ERR
"IO:R %08x %08x\n", (u32
)addr
, val
);
109 static int msm_unload(struct drm_device
*dev
)
111 struct msm_drm_private
*priv
= dev
->dev_private
;
112 struct msm_kms
*kms
= priv
->kms
;
113 struct msm_gpu
*gpu
= priv
->gpu
;
115 drm_kms_helper_poll_fini(dev
);
116 drm_mode_config_cleanup(dev
);
117 drm_vblank_cleanup(dev
);
119 pm_runtime_get_sync(dev
->dev
);
120 drm_irq_uninstall(dev
);
121 pm_runtime_put_sync(dev
->dev
);
123 flush_workqueue(priv
->wq
);
124 destroy_workqueue(priv
->wq
);
127 pm_runtime_disable(dev
->dev
);
128 kms
->funcs
->destroy(kms
);
132 mutex_lock(&dev
->struct_mutex
);
133 gpu
->funcs
->pm_suspend(gpu
);
134 gpu
->funcs
->destroy(gpu
);
135 mutex_unlock(&dev
->struct_mutex
);
138 if (priv
->vram
.paddr
) {
139 DEFINE_DMA_ATTRS(attrs
);
140 dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING
, &attrs
);
141 drm_mm_takedown(&priv
->vram
.mm
);
142 dma_free_attrs(dev
->dev
, priv
->vram
.size
, NULL
,
143 priv
->vram
.paddr
, &attrs
);
146 dev
->dev_private
= NULL
;
153 static int msm_load(struct drm_device
*dev
, unsigned long flags
)
155 struct platform_device
*pdev
= dev
->platformdev
;
156 struct msm_drm_private
*priv
;
160 priv
= kzalloc(sizeof(*priv
), GFP_KERNEL
);
162 dev_err(dev
->dev
, "failed to allocate private data\n");
166 dev
->dev_private
= priv
;
168 priv
->wq
= alloc_ordered_workqueue("msm", 0);
169 init_waitqueue_head(&priv
->fence_event
);
171 INIT_LIST_HEAD(&priv
->inactive_list
);
172 INIT_LIST_HEAD(&priv
->fence_cbs
);
174 drm_mode_config_init(dev
);
176 /* if we have no IOMMU, then we need to use carveout allocator.
177 * Grab the entire CMA chunk carved out in early startup in
180 if (!iommu_present(&platform_bus_type
)) {
181 DEFINE_DMA_ATTRS(attrs
);
185 DBG("using %s VRAM carveout", vram
);
186 size
= memparse(vram
, NULL
);
187 priv
->vram
.size
= size
;
189 drm_mm_init(&priv
->vram
.mm
, 0, (size
>> PAGE_SHIFT
) - 1);
191 dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING
, &attrs
);
192 dma_set_attr(DMA_ATTR_WRITE_COMBINE
, &attrs
);
194 /* note that for no-kernel-mapping, the vaddr returned
195 * is bogus, but non-null if allocation succeeded:
197 p
= dma_alloc_attrs(dev
->dev
, size
,
198 &priv
->vram
.paddr
, 0, &attrs
);
200 dev_err(dev
->dev
, "failed to allocate VRAM\n");
201 priv
->vram
.paddr
= 0;
206 dev_info(dev
->dev
, "VRAM: %08x->%08x\n",
207 (uint32_t)priv
->vram
.paddr
,
208 (uint32_t)(priv
->vram
.paddr
+ size
));
211 kms
= mdp4_kms_init(dev
);
214 * NOTE: once we have GPU support, having no kms should not
215 * be considered fatal.. ideally we would still support gpu
216 * and (for example) use dmabuf/prime to share buffers with
217 * imx drm driver on iMX5
219 dev_err(dev
->dev
, "failed to load kms\n");
227 pm_runtime_enable(dev
->dev
);
228 ret
= kms
->funcs
->hw_init(kms
);
230 dev_err(dev
->dev
, "kms hw init failed: %d\n", ret
);
235 dev
->mode_config
.min_width
= 0;
236 dev
->mode_config
.min_height
= 0;
237 dev
->mode_config
.max_width
= 2048;
238 dev
->mode_config
.max_height
= 2048;
239 dev
->mode_config
.funcs
= &mode_config_funcs
;
241 ret
= drm_vblank_init(dev
, 1);
243 dev_err(dev
->dev
, "failed to initialize vblank\n");
247 pm_runtime_get_sync(dev
->dev
);
248 ret
= drm_irq_install(dev
);
249 pm_runtime_put_sync(dev
->dev
);
251 dev_err(dev
->dev
, "failed to install IRQ handler\n");
255 platform_set_drvdata(pdev
, dev
);
257 #ifdef CONFIG_DRM_MSM_FBDEV
258 priv
->fbdev
= msm_fbdev_init(dev
);
261 drm_kms_helper_poll_init(dev
);
270 static void load_gpu(struct drm_device
*dev
)
272 struct msm_drm_private
*priv
= dev
->dev_private
;
278 mutex_lock(&dev
->struct_mutex
);
279 gpu
= a3xx_gpu_init(dev
);
281 dev_warn(dev
->dev
, "failed to load a3xx gpu\n");
285 mutex_unlock(&dev
->struct_mutex
);
289 gpu
->funcs
->pm_resume(gpu
);
290 ret
= gpu
->funcs
->hw_init(gpu
);
292 dev_err(dev
->dev
, "gpu hw init failed: %d\n", ret
);
293 gpu
->funcs
->destroy(gpu
);
301 static int msm_open(struct drm_device
*dev
, struct drm_file
*file
)
303 struct msm_file_private
*ctx
;
305 /* For now, load gpu on open.. to avoid the requirement of having
306 * firmware in the initrd.
310 ctx
= kzalloc(sizeof(*ctx
), GFP_KERNEL
);
314 file
->driver_priv
= ctx
;
319 static void msm_preclose(struct drm_device
*dev
, struct drm_file
*file
)
321 struct msm_drm_private
*priv
= dev
->dev_private
;
322 struct msm_file_private
*ctx
= file
->driver_priv
;
323 struct msm_kms
*kms
= priv
->kms
;
326 kms
->funcs
->preclose(kms
, file
);
328 mutex_lock(&dev
->struct_mutex
);
329 if (ctx
== priv
->lastctx
)
330 priv
->lastctx
= NULL
;
331 mutex_unlock(&dev
->struct_mutex
);
336 static void msm_lastclose(struct drm_device
*dev
)
338 struct msm_drm_private
*priv
= dev
->dev_private
;
340 drm_modeset_lock_all(dev
);
341 drm_fb_helper_restore_fbdev_mode(priv
->fbdev
);
342 drm_modeset_unlock_all(dev
);
346 static irqreturn_t
msm_irq(int irq
, void *arg
)
348 struct drm_device
*dev
= arg
;
349 struct msm_drm_private
*priv
= dev
->dev_private
;
350 struct msm_kms
*kms
= priv
->kms
;
352 return kms
->funcs
->irq(kms
);
355 static void msm_irq_preinstall(struct drm_device
*dev
)
357 struct msm_drm_private
*priv
= dev
->dev_private
;
358 struct msm_kms
*kms
= priv
->kms
;
360 kms
->funcs
->irq_preinstall(kms
);
363 static int msm_irq_postinstall(struct drm_device
*dev
)
365 struct msm_drm_private
*priv
= dev
->dev_private
;
366 struct msm_kms
*kms
= priv
->kms
;
368 return kms
->funcs
->irq_postinstall(kms
);
371 static void msm_irq_uninstall(struct drm_device
*dev
)
373 struct msm_drm_private
*priv
= dev
->dev_private
;
374 struct msm_kms
*kms
= priv
->kms
;
376 kms
->funcs
->irq_uninstall(kms
);
379 static int msm_enable_vblank(struct drm_device
*dev
, int crtc_id
)
381 struct msm_drm_private
*priv
= dev
->dev_private
;
382 struct msm_kms
*kms
= priv
->kms
;
385 DBG("dev=%p, crtc=%d", dev
, crtc_id
);
386 return kms
->funcs
->enable_vblank(kms
, priv
->crtcs
[crtc_id
]);
389 static void msm_disable_vblank(struct drm_device
*dev
, int crtc_id
)
391 struct msm_drm_private
*priv
= dev
->dev_private
;
392 struct msm_kms
*kms
= priv
->kms
;
395 DBG("dev=%p, crtc=%d", dev
, crtc_id
);
396 kms
->funcs
->disable_vblank(kms
, priv
->crtcs
[crtc_id
]);
403 #ifdef CONFIG_DEBUG_FS
404 static int msm_gpu_show(struct drm_device
*dev
, struct seq_file
*m
)
406 struct msm_drm_private
*priv
= dev
->dev_private
;
407 struct msm_gpu
*gpu
= priv
->gpu
;
410 seq_printf(m
, "%s Status:\n", gpu
->name
);
411 gpu
->funcs
->show(gpu
, m
);
417 static int msm_gem_show(struct drm_device
*dev
, struct seq_file
*m
)
419 struct msm_drm_private
*priv
= dev
->dev_private
;
420 struct msm_gpu
*gpu
= priv
->gpu
;
423 seq_printf(m
, "Active Objects (%s):\n", gpu
->name
);
424 msm_gem_describe_objects(&gpu
->active_list
, m
);
427 seq_printf(m
, "Inactive Objects:\n");
428 msm_gem_describe_objects(&priv
->inactive_list
, m
);
433 static int msm_mm_show(struct drm_device
*dev
, struct seq_file
*m
)
435 return drm_mm_dump_table(m
, dev
->mm_private
);
438 static int msm_fb_show(struct drm_device
*dev
, struct seq_file
*m
)
440 struct msm_drm_private
*priv
= dev
->dev_private
;
441 struct drm_framebuffer
*fb
, *fbdev_fb
= NULL
;
444 seq_printf(m
, "fbcon ");
445 fbdev_fb
= priv
->fbdev
->fb
;
446 msm_framebuffer_describe(fbdev_fb
, m
);
449 mutex_lock(&dev
->mode_config
.fb_lock
);
450 list_for_each_entry(fb
, &dev
->mode_config
.fb_list
, head
) {
454 seq_printf(m
, "user ");
455 msm_framebuffer_describe(fb
, m
);
457 mutex_unlock(&dev
->mode_config
.fb_lock
);
462 static int show_locked(struct seq_file
*m
, void *arg
)
464 struct drm_info_node
*node
= (struct drm_info_node
*) m
->private;
465 struct drm_device
*dev
= node
->minor
->dev
;
466 int (*show
)(struct drm_device
*dev
, struct seq_file
*m
) =
467 node
->info_ent
->data
;
470 ret
= mutex_lock_interruptible(&dev
->struct_mutex
);
476 mutex_unlock(&dev
->struct_mutex
);
481 static struct drm_info_list msm_debugfs_list
[] = {
482 {"gpu", show_locked
, 0, msm_gpu_show
},
483 {"gem", show_locked
, 0, msm_gem_show
},
484 { "mm", show_locked
, 0, msm_mm_show
},
485 { "fb", show_locked
, 0, msm_fb_show
},
488 static int msm_debugfs_init(struct drm_minor
*minor
)
490 struct drm_device
*dev
= minor
->dev
;
493 ret
= drm_debugfs_create_files(msm_debugfs_list
,
494 ARRAY_SIZE(msm_debugfs_list
),
495 minor
->debugfs_root
, minor
);
498 dev_err(dev
->dev
, "could not install msm_debugfs_list\n");
505 static void msm_debugfs_cleanup(struct drm_minor
*minor
)
507 drm_debugfs_remove_files(msm_debugfs_list
,
508 ARRAY_SIZE(msm_debugfs_list
), minor
);
516 int msm_wait_fence_interruptable(struct drm_device
*dev
, uint32_t fence
,
517 struct timespec
*timeout
)
519 struct msm_drm_private
*priv
= dev
->dev_private
;
525 if (fence
> priv
->gpu
->submitted_fence
) {
526 DRM_ERROR("waiting on invalid fence: %u (of %u)\n",
527 fence
, priv
->gpu
->submitted_fence
);
533 ret
= fence_completed(dev
, fence
) ? 0 : -EBUSY
;
535 unsigned long timeout_jiffies
= timespec_to_jiffies(timeout
);
536 unsigned long start_jiffies
= jiffies
;
537 unsigned long remaining_jiffies
;
539 if (time_after(start_jiffies
, timeout_jiffies
))
540 remaining_jiffies
= 0;
542 remaining_jiffies
= timeout_jiffies
- start_jiffies
;
544 ret
= wait_event_interruptible_timeout(priv
->fence_event
,
545 fence_completed(dev
, fence
),
549 DBG("timeout waiting for fence: %u (completed: %u)",
550 fence
, priv
->completed_fence
);
552 } else if (ret
!= -ERESTARTSYS
) {
560 /* called from workqueue */
561 void msm_update_fence(struct drm_device
*dev
, uint32_t fence
)
563 struct msm_drm_private
*priv
= dev
->dev_private
;
565 mutex_lock(&dev
->struct_mutex
);
566 priv
->completed_fence
= max(fence
, priv
->completed_fence
);
568 while (!list_empty(&priv
->fence_cbs
)) {
569 struct msm_fence_cb
*cb
;
571 cb
= list_first_entry(&priv
->fence_cbs
,
572 struct msm_fence_cb
, work
.entry
);
574 if (cb
->fence
> priv
->completed_fence
)
577 list_del_init(&cb
->work
.entry
);
578 queue_work(priv
->wq
, &cb
->work
);
581 mutex_unlock(&dev
->struct_mutex
);
583 wake_up_all(&priv
->fence_event
);
586 void __msm_fence_worker(struct work_struct
*work
)
588 struct msm_fence_cb
*cb
= container_of(work
, struct msm_fence_cb
, work
);
596 static int msm_ioctl_get_param(struct drm_device
*dev
, void *data
,
597 struct drm_file
*file
)
599 struct msm_drm_private
*priv
= dev
->dev_private
;
600 struct drm_msm_param
*args
= data
;
603 /* for now, we just have 3d pipe.. eventually this would need to
604 * be more clever to dispatch to appropriate gpu module:
606 if (args
->pipe
!= MSM_PIPE_3D0
)
614 return gpu
->funcs
->get_param(gpu
, args
->param
, &args
->value
);
617 static int msm_ioctl_gem_new(struct drm_device
*dev
, void *data
,
618 struct drm_file
*file
)
620 struct drm_msm_gem_new
*args
= data
;
621 return msm_gem_new_handle(dev
, file
, args
->size
,
622 args
->flags
, &args
->handle
);
625 #define TS(t) ((struct timespec){ .tv_sec = (t).tv_sec, .tv_nsec = (t).tv_nsec })
627 static int msm_ioctl_gem_cpu_prep(struct drm_device
*dev
, void *data
,
628 struct drm_file
*file
)
630 struct drm_msm_gem_cpu_prep
*args
= data
;
631 struct drm_gem_object
*obj
;
634 obj
= drm_gem_object_lookup(dev
, file
, args
->handle
);
638 ret
= msm_gem_cpu_prep(obj
, args
->op
, &TS(args
->timeout
));
640 drm_gem_object_unreference_unlocked(obj
);
645 static int msm_ioctl_gem_cpu_fini(struct drm_device
*dev
, void *data
,
646 struct drm_file
*file
)
648 struct drm_msm_gem_cpu_fini
*args
= data
;
649 struct drm_gem_object
*obj
;
652 obj
= drm_gem_object_lookup(dev
, file
, args
->handle
);
656 ret
= msm_gem_cpu_fini(obj
);
658 drm_gem_object_unreference_unlocked(obj
);
663 static int msm_ioctl_gem_info(struct drm_device
*dev
, void *data
,
664 struct drm_file
*file
)
666 struct drm_msm_gem_info
*args
= data
;
667 struct drm_gem_object
*obj
;
673 obj
= drm_gem_object_lookup(dev
, file
, args
->handle
);
677 args
->offset
= msm_gem_mmap_offset(obj
);
679 drm_gem_object_unreference_unlocked(obj
);
684 static int msm_ioctl_wait_fence(struct drm_device
*dev
, void *data
,
685 struct drm_file
*file
)
687 struct drm_msm_wait_fence
*args
= data
;
688 return msm_wait_fence_interruptable(dev
, args
->fence
, &TS(args
->timeout
));
691 static const struct drm_ioctl_desc msm_ioctls
[] = {
692 DRM_IOCTL_DEF_DRV(MSM_GET_PARAM
, msm_ioctl_get_param
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
693 DRM_IOCTL_DEF_DRV(MSM_GEM_NEW
, msm_ioctl_gem_new
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
694 DRM_IOCTL_DEF_DRV(MSM_GEM_INFO
, msm_ioctl_gem_info
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
695 DRM_IOCTL_DEF_DRV(MSM_GEM_CPU_PREP
, msm_ioctl_gem_cpu_prep
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
696 DRM_IOCTL_DEF_DRV(MSM_GEM_CPU_FINI
, msm_ioctl_gem_cpu_fini
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
697 DRM_IOCTL_DEF_DRV(MSM_GEM_SUBMIT
, msm_ioctl_gem_submit
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
698 DRM_IOCTL_DEF_DRV(MSM_WAIT_FENCE
, msm_ioctl_wait_fence
, DRM_UNLOCKED
|DRM_AUTH
|DRM_RENDER_ALLOW
),
701 static const struct vm_operations_struct vm_ops
= {
702 .fault
= msm_gem_fault
,
703 .open
= drm_gem_vm_open
,
704 .close
= drm_gem_vm_close
,
707 static const struct file_operations fops
= {
708 .owner
= THIS_MODULE
,
710 .release
= drm_release
,
711 .unlocked_ioctl
= drm_ioctl
,
713 .compat_ioctl
= drm_compat_ioctl
,
718 .mmap
= msm_gem_mmap
,
721 static struct drm_driver msm_driver
= {
722 .driver_features
= DRIVER_HAVE_IRQ
|
728 .unload
= msm_unload
,
730 .preclose
= msm_preclose
,
731 .lastclose
= msm_lastclose
,
732 .irq_handler
= msm_irq
,
733 .irq_preinstall
= msm_irq_preinstall
,
734 .irq_postinstall
= msm_irq_postinstall
,
735 .irq_uninstall
= msm_irq_uninstall
,
736 .get_vblank_counter
= drm_vblank_count
,
737 .enable_vblank
= msm_enable_vblank
,
738 .disable_vblank
= msm_disable_vblank
,
739 .gem_free_object
= msm_gem_free_object
,
740 .gem_vm_ops
= &vm_ops
,
741 .dumb_create
= msm_gem_dumb_create
,
742 .dumb_map_offset
= msm_gem_dumb_map_offset
,
743 .dumb_destroy
= drm_gem_dumb_destroy
,
744 .prime_handle_to_fd
= drm_gem_prime_handle_to_fd
,
745 .prime_fd_to_handle
= drm_gem_prime_fd_to_handle
,
746 .gem_prime_export
= drm_gem_prime_export
,
747 .gem_prime_import
= drm_gem_prime_import
,
748 .gem_prime_pin
= msm_gem_prime_pin
,
749 .gem_prime_unpin
= msm_gem_prime_unpin
,
750 .gem_prime_get_sg_table
= msm_gem_prime_get_sg_table
,
751 .gem_prime_import_sg_table
= msm_gem_prime_import_sg_table
,
752 .gem_prime_vmap
= msm_gem_prime_vmap
,
753 .gem_prime_vunmap
= msm_gem_prime_vunmap
,
754 #ifdef CONFIG_DEBUG_FS
755 .debugfs_init
= msm_debugfs_init
,
756 .debugfs_cleanup
= msm_debugfs_cleanup
,
758 .ioctls
= msm_ioctls
,
759 .num_ioctls
= DRM_MSM_NUM_IOCTLS
,
762 .desc
= "MSM Snapdragon DRM",
768 #ifdef CONFIG_PM_SLEEP
769 static int msm_pm_suspend(struct device
*dev
)
771 struct drm_device
*ddev
= dev_get_drvdata(dev
);
773 drm_kms_helper_poll_disable(ddev
);
778 static int msm_pm_resume(struct device
*dev
)
780 struct drm_device
*ddev
= dev_get_drvdata(dev
);
782 drm_kms_helper_poll_enable(ddev
);
788 static const struct dev_pm_ops msm_pm_ops
= {
789 SET_SYSTEM_SLEEP_PM_OPS(msm_pm_suspend
, msm_pm_resume
)
796 static int msm_pdev_probe(struct platform_device
*pdev
)
798 pdev
->dev
.coherent_dma_mask
= DMA_BIT_MASK(32);
799 return drm_platform_init(&msm_driver
, pdev
);
802 static int msm_pdev_remove(struct platform_device
*pdev
)
804 drm_put_dev(platform_get_drvdata(pdev
));
809 static const struct platform_device_id msm_id
[] = {
814 static struct platform_driver msm_platform_driver
= {
815 .probe
= msm_pdev_probe
,
816 .remove
= msm_pdev_remove
,
818 .owner
= THIS_MODULE
,
825 static int __init
msm_drm_register(void)
830 return platform_driver_register(&msm_platform_driver
);
833 static void __exit
msm_drm_unregister(void)
836 platform_driver_unregister(&msm_platform_driver
);
841 module_init(msm_drm_register
);
842 module_exit(msm_drm_unregister
);
844 MODULE_AUTHOR("Rob Clark <robdclark@gmail.com");
845 MODULE_DESCRIPTION("MSM DRM Driver");
846 MODULE_LICENSE("GPL");