2009-06-05 20:42:42 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Advanced Micro Devices, Inc.
|
|
|
|
* Copyright 2008 Red Hat Inc.
|
|
|
|
* Copyright 2009 Jerome Glisse.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Authors: Dave Airlie
|
|
|
|
* Alex Deucher
|
|
|
|
* Jerome Glisse
|
|
|
|
*/
|
|
|
|
#include "drmP.h"
|
|
|
|
#include "drm.h"
|
|
|
|
#include "radeon_drm.h"
|
|
|
|
#include "radeon.h"
|
|
|
|
|
|
|
|
int radeon_gem_object_init(struct drm_gem_object *obj)
|
|
|
|
{
|
2011-02-19 00:59:16 +08:00
|
|
|
BUG();
|
|
|
|
|
2009-06-05 20:42:42 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void radeon_gem_object_free(struct drm_gem_object *gobj)
|
|
|
|
{
|
2011-02-19 00:59:17 +08:00
|
|
|
struct radeon_bo *robj = gem_to_radeon_bo(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
|
|
|
|
if (robj) {
|
2009-11-20 21:29:23 +08:00
|
|
|
radeon_bo_unref(&robj);
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_object_create(struct radeon_device *rdev, int size,
|
2009-11-20 21:29:23 +08:00
|
|
|
int alignment, int initial_domain,
|
|
|
|
bool discardable, bool kernel,
|
|
|
|
struct drm_gem_object **obj)
|
2009-06-05 20:42:42 +08:00
|
|
|
{
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-05 20:42:42 +08:00
|
|
|
int r;
|
|
|
|
|
|
|
|
*obj = NULL;
|
|
|
|
/* At least align on page size */
|
|
|
|
if (alignment < PAGE_SIZE) {
|
|
|
|
alignment = PAGE_SIZE;
|
|
|
|
}
|
2011-02-19 00:59:16 +08:00
|
|
|
r = radeon_bo_create(rdev, size, alignment, kernel, initial_domain, &robj);
|
2009-06-05 20:42:42 +08:00
|
|
|
if (r) {
|
2009-12-15 08:39:48 +08:00
|
|
|
if (r != -ERESTARTSYS)
|
|
|
|
DRM_ERROR("Failed to allocate GEM object (%d, %d, %u, %d)\n",
|
|
|
|
size, initial_domain, alignment, r);
|
2009-06-05 20:42:42 +08:00
|
|
|
return r;
|
|
|
|
}
|
2011-02-19 00:59:16 +08:00
|
|
|
*obj = &robj->gem_base;
|
|
|
|
|
|
|
|
mutex_lock(&rdev->gem.mutex);
|
|
|
|
list_add_tail(&robj->list, &rdev->gem.objects);
|
|
|
|
mutex_unlock(&rdev->gem.mutex);
|
|
|
|
|
2009-06-05 20:42:42 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_object_pin(struct drm_gem_object *obj, uint32_t pin_domain,
|
|
|
|
uint64_t *gpu_addr)
|
|
|
|
{
|
2011-02-19 00:59:17 +08:00
|
|
|
struct radeon_bo *robj = gem_to_radeon_bo(obj);
|
2009-11-20 21:29:23 +08:00
|
|
|
int r;
|
2009-06-05 20:42:42 +08:00
|
|
|
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_reserve(robj, false);
|
|
|
|
if (unlikely(r != 0))
|
|
|
|
return r;
|
|
|
|
r = radeon_bo_pin(robj, pin_domain, gpu_addr);
|
|
|
|
radeon_bo_unreserve(robj);
|
|
|
|
return r;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void radeon_gem_object_unpin(struct drm_gem_object *obj)
|
|
|
|
{
|
2011-02-19 00:59:17 +08:00
|
|
|
struct radeon_bo *robj = gem_to_radeon_bo(obj);
|
2009-11-20 21:29:23 +08:00
|
|
|
int r;
|
|
|
|
|
|
|
|
r = radeon_bo_reserve(robj, false);
|
|
|
|
if (likely(r == 0)) {
|
|
|
|
radeon_bo_unpin(robj);
|
|
|
|
radeon_bo_unreserve(robj);
|
|
|
|
}
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_set_domain(struct drm_gem_object *gobj,
|
|
|
|
uint32_t rdomain, uint32_t wdomain)
|
|
|
|
{
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-05 20:42:42 +08:00
|
|
|
uint32_t domain;
|
|
|
|
int r;
|
|
|
|
|
|
|
|
/* FIXME: reeimplement */
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
/* work out where to validate the buffer to */
|
|
|
|
domain = wdomain;
|
|
|
|
if (!domain) {
|
|
|
|
domain = rdomain;
|
|
|
|
}
|
|
|
|
if (!domain) {
|
|
|
|
/* Do nothings */
|
|
|
|
printk(KERN_WARNING "Set domain withou domain !\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (domain == RADEON_GEM_DOMAIN_CPU) {
|
|
|
|
/* Asking for cpu access wait for object idle */
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_wait(robj, NULL, false);
|
2009-06-05 20:42:42 +08:00
|
|
|
if (r) {
|
|
|
|
printk(KERN_ERR "Failed to wait for object !\n");
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_init(struct radeon_device *rdev)
|
|
|
|
{
|
|
|
|
INIT_LIST_HEAD(&rdev->gem.objects);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void radeon_gem_fini(struct radeon_device *rdev)
|
|
|
|
{
|
2009-11-20 21:29:23 +08:00
|
|
|
radeon_bo_force_delete(rdev);
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* GEM ioctls.
|
|
|
|
*/
|
|
|
|
int radeon_gem_info_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct radeon_device *rdev = dev->dev_private;
|
|
|
|
struct drm_radeon_gem_info *args = data;
|
2011-03-14 07:47:24 +08:00
|
|
|
struct ttm_mem_type_manager *man;
|
|
|
|
|
|
|
|
man = &rdev->mman.bdev.man[TTM_PL_VRAM];
|
2009-06-05 20:42:42 +08:00
|
|
|
|
2009-07-21 18:39:30 +08:00
|
|
|
args->vram_size = rdev->mc.real_vram_size;
|
2011-03-14 07:47:24 +08:00
|
|
|
args->vram_visible = (u64)man->size << PAGE_SHIFT;
|
2009-08-05 06:19:51 +08:00
|
|
|
if (rdev->stollen_vga_memory)
|
2009-11-20 21:29:23 +08:00
|
|
|
args->vram_visible -= radeon_bo_size(rdev->stollen_vga_memory);
|
2010-03-30 13:34:13 +08:00
|
|
|
args->vram_visible -= radeon_fbdev_total_size(rdev);
|
2009-08-05 06:19:51 +08:00
|
|
|
args->gart_size = rdev->mc.gtt_size - rdev->cp.ring_size - 4096 -
|
|
|
|
RADEON_IB_POOL_SIZE*64*1024;
|
2009-06-05 20:42:42 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_pread_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
/* TODO: implement */
|
|
|
|
DRM_ERROR("unimplemented %s\n", __func__);
|
|
|
|
return -ENOSYS;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_pwrite_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
/* TODO: implement */
|
|
|
|
DRM_ERROR("unimplemented %s\n", __func__);
|
|
|
|
return -ENOSYS;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_create_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct radeon_device *rdev = dev->dev_private;
|
|
|
|
struct drm_radeon_gem_create *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
|
|
|
uint32_t handle;
|
|
|
|
int r;
|
|
|
|
|
|
|
|
/* create a gem object to contain this object in */
|
|
|
|
args->size = roundup(args->size, PAGE_SIZE);
|
|
|
|
r = radeon_gem_object_create(rdev, args->size, args->alignment,
|
2009-11-20 21:29:23 +08:00
|
|
|
args->initial_domain, false,
|
|
|
|
false, &gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
if (r) {
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
r = drm_gem_handle_create(filp, gobj, &handle);
|
2010-09-27 14:17:17 +08:00
|
|
|
/* drop reference from allocate - handle holds it now */
|
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
if (r) {
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
args->handle = handle;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_set_domain_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
/* transition the BO to a domain -
|
|
|
|
* just validate the BO into a certain domain */
|
|
|
|
struct drm_radeon_gem_set_domain *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-05 20:42:42 +08:00
|
|
|
int r;
|
|
|
|
|
|
|
|
/* for now if someone requests domain CPU -
|
|
|
|
* just make sure the buffer is finished with */
|
|
|
|
|
|
|
|
/* just do a BO wait for now */
|
|
|
|
gobj = drm_gem_object_lookup(dev, filp, args->handle);
|
|
|
|
if (gobj == NULL) {
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
|
|
|
|
r = radeon_gem_set_domain(gobj, args->read_domains, args->write_domain);
|
|
|
|
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2011-02-07 10:16:14 +08:00
|
|
|
int radeon_mode_dumb_mmap(struct drm_file *filp,
|
|
|
|
struct drm_device *dev,
|
|
|
|
uint32_t handle, uint64_t *offset_p)
|
2009-06-05 20:42:42 +08:00
|
|
|
{
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-05 20:42:42 +08:00
|
|
|
|
2011-02-07 10:16:14 +08:00
|
|
|
gobj = drm_gem_object_lookup(dev, filp, handle);
|
2009-06-05 20:42:42 +08:00
|
|
|
if (gobj == NULL) {
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2011-02-07 10:16:14 +08:00
|
|
|
*offset_p = radeon_bo_mmap_offset(robj);
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-11-20 21:29:23 +08:00
|
|
|
return 0;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
|
2011-02-07 10:16:14 +08:00
|
|
|
int radeon_gem_mmap_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct drm_radeon_gem_mmap *args = data;
|
|
|
|
|
|
|
|
return radeon_mode_dumb_mmap(filp, dev, args->handle, &args->addr_ptr);
|
|
|
|
}
|
|
|
|
|
2009-06-05 20:42:42 +08:00
|
|
|
int radeon_gem_busy_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
2009-08-16 19:05:45 +08:00
|
|
|
struct drm_radeon_gem_busy *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-08-16 19:05:45 +08:00
|
|
|
int r;
|
2009-12-10 13:59:32 +08:00
|
|
|
uint32_t cur_placement = 0;
|
2009-08-16 19:05:45 +08:00
|
|
|
|
|
|
|
gobj = drm_gem_object_lookup(dev, filp, args->handle);
|
|
|
|
if (gobj == NULL) {
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2009-08-16 19:05:45 +08:00
|
|
|
}
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_wait(robj, &cur_placement, true);
|
2009-08-22 23:38:23 +08:00
|
|
|
switch (cur_placement) {
|
|
|
|
case TTM_PL_VRAM:
|
2009-08-16 19:05:45 +08:00
|
|
|
args->domain = RADEON_GEM_DOMAIN_VRAM;
|
2009-08-22 23:38:23 +08:00
|
|
|
break;
|
|
|
|
case TTM_PL_TT:
|
2009-08-16 19:05:45 +08:00
|
|
|
args->domain = RADEON_GEM_DOMAIN_GTT;
|
2009-08-22 23:38:23 +08:00
|
|
|
break;
|
|
|
|
case TTM_PL_SYSTEM:
|
2009-08-16 19:05:45 +08:00
|
|
|
args->domain = RADEON_GEM_DOMAIN_CPU;
|
2009-08-22 23:38:23 +08:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-08-21 07:47:45 +08:00
|
|
|
return r;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_wait_idle_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct drm_radeon_gem_wait_idle *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-05 20:42:42 +08:00
|
|
|
int r;
|
|
|
|
|
|
|
|
gobj = drm_gem_object_lookup(dev, filp, args->handle);
|
|
|
|
if (gobj == NULL) {
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2009-06-05 20:42:42 +08:00
|
|
|
}
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_wait(robj, NULL, false);
|
2010-02-05 03:36:39 +08:00
|
|
|
/* callback hw specific functions if any */
|
|
|
|
if (robj->rdev->asic->ioctl_wait_idle)
|
|
|
|
robj->rdev->asic->ioctl_wait_idle(robj->rdev, robj);
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-06-05 20:42:42 +08:00
|
|
|
return r;
|
|
|
|
}
|
2009-06-24 07:48:08 +08:00
|
|
|
|
|
|
|
int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct drm_radeon_gem_set_tiling *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *robj;
|
2009-06-24 07:48:08 +08:00
|
|
|
int r = 0;
|
|
|
|
|
|
|
|
DRM_DEBUG("%d \n", args->handle);
|
|
|
|
gobj = drm_gem_object_lookup(dev, filp, args->handle);
|
|
|
|
if (gobj == NULL)
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2011-02-19 00:59:17 +08:00
|
|
|
robj = gem_to_radeon_bo(gobj);
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_set_tiling_flags(robj, args->tiling_flags, args->pitch);
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-06-24 07:48:08 +08:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_gem_get_tiling_ioctl(struct drm_device *dev, void *data,
|
|
|
|
struct drm_file *filp)
|
|
|
|
{
|
|
|
|
struct drm_radeon_gem_get_tiling *args = data;
|
|
|
|
struct drm_gem_object *gobj;
|
2009-11-20 21:29:23 +08:00
|
|
|
struct radeon_bo *rbo;
|
2009-06-24 07:48:08 +08:00
|
|
|
int r = 0;
|
|
|
|
|
|
|
|
DRM_DEBUG("\n");
|
|
|
|
gobj = drm_gem_object_lookup(dev, filp, args->handle);
|
|
|
|
if (gobj == NULL)
|
2010-08-04 21:19:46 +08:00
|
|
|
return -ENOENT;
|
2011-02-19 00:59:17 +08:00
|
|
|
rbo = gem_to_radeon_bo(gobj);
|
2009-11-20 21:29:23 +08:00
|
|
|
r = radeon_bo_reserve(rbo, false);
|
|
|
|
if (unlikely(r != 0))
|
2009-12-16 11:10:43 +08:00
|
|
|
goto out;
|
2009-11-20 21:29:23 +08:00
|
|
|
radeon_bo_get_tiling_flags(rbo, &args->tiling_flags, &args->pitch);
|
|
|
|
radeon_bo_unreserve(rbo);
|
2009-12-16 11:10:43 +08:00
|
|
|
out:
|
2010-02-09 13:49:12 +08:00
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2009-06-24 07:48:08 +08:00
|
|
|
return r;
|
|
|
|
}
|
2011-02-07 10:16:14 +08:00
|
|
|
|
|
|
|
int radeon_mode_dumb_create(struct drm_file *file_priv,
|
|
|
|
struct drm_device *dev,
|
|
|
|
struct drm_mode_create_dumb *args)
|
|
|
|
{
|
|
|
|
struct radeon_device *rdev = dev->dev_private;
|
|
|
|
struct drm_gem_object *gobj;
|
2011-03-17 11:58:34 +08:00
|
|
|
uint32_t handle;
|
2011-02-07 10:16:14 +08:00
|
|
|
int r;
|
|
|
|
|
|
|
|
args->pitch = radeon_align_pitch(rdev, args->width, args->bpp, 0) * ((args->bpp + 1) / 8);
|
|
|
|
args->size = args->pitch * args->height;
|
|
|
|
args->size = ALIGN(args->size, PAGE_SIZE);
|
|
|
|
|
|
|
|
r = radeon_gem_object_create(rdev, args->size, 0,
|
|
|
|
RADEON_GEM_DOMAIN_VRAM,
|
|
|
|
false, ttm_bo_type_device,
|
|
|
|
&gobj);
|
|
|
|
if (r)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
2011-03-17 11:58:34 +08:00
|
|
|
r = drm_gem_handle_create(file_priv, gobj, &handle);
|
|
|
|
/* drop reference from allocate - handle holds it now */
|
|
|
|
drm_gem_object_unreference_unlocked(gobj);
|
2011-02-07 10:16:14 +08:00
|
|
|
if (r) {
|
|
|
|
return r;
|
|
|
|
}
|
2011-03-17 11:58:34 +08:00
|
|
|
args->handle = handle;
|
2011-02-07 10:16:14 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int radeon_mode_dumb_destroy(struct drm_file *file_priv,
|
|
|
|
struct drm_device *dev,
|
|
|
|
uint32_t handle)
|
|
|
|
{
|
|
|
|
return drm_gem_handle_delete(file_priv, handle);
|
|
|
|
}
|