* [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked declaration
@ 2020-10-07 8:52 Christian König
2020-10-07 11:43 ` Ruhl, Michael J
0 siblings, 1 reply; 3+ messages in thread
From: Christian König @ 2020-10-07 8:52 UTC (permalink / raw)
To: dri-devel, airlied, ray.huang, michael.j.ruhl
That was missed during the cleanup.
Signed-off-by: Christian König <christian.koenig@amd.com>
---
include/drm/ttm/ttm_bo_driver.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index 9897a16c0a9d..b58dedce7079 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -449,15 +449,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
*/
void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo);
-/**
- * ttm_bo_unmap_virtual
- *
- * @bo: tear down the virtual mappings for this BO
- *
- * The caller must take ttm_mem_io_lock before calling this function.
- */
-void ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo);
-
/**
* ttm_bo_reserve:
*
--
2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked declaration
2020-10-07 8:52 [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked declaration Christian König
@ 2020-10-07 11:43 ` Ruhl, Michael J
2020-10-07 11:44 ` Christian König
0 siblings, 1 reply; 3+ messages in thread
From: Ruhl, Michael J @ 2020-10-07 11:43 UTC (permalink / raw)
To: Christian König, dri-devel@lists.freedesktop.org,
airlied@gmail.com, ray.huang@amd.com
>-----Original Message-----
>From: Christian König <ckoenig.leichtzumerken@gmail.com>
>Sent: Wednesday, October 7, 2020 4:52 AM
>To: dri-devel@lists.freedesktop.org; airlied@gmail.com;
>ray.huang@amd.com; Ruhl, Michael J <michael.j.ruhl@intel.com>
>Subject: [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked
>declaration
>
>That was missed during the cleanup.
>
>Signed-off-by: Christian König <christian.koenig@amd.com>
>---
> include/drm/ttm/ttm_bo_driver.h | 9 ---------
> 1 file changed, 9 deletions(-)
>
>diff --git a/include/drm/ttm/ttm_bo_driver.h
>b/include/drm/ttm/ttm_bo_driver.h
>index 9897a16c0a9d..b58dedce7079 100644
>--- a/include/drm/ttm/ttm_bo_driver.h
>+++ b/include/drm/ttm/ttm_bo_driver.h
>@@ -449,15 +449,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
> */
> void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo);
>
>-/**
>- * ttm_bo_unmap_virtual
>- *
>- * @bo: tear down the virtual mappings for this BO
>- *
>- * The caller must take ttm_mem_io_lock before calling this function.
>- */
>-void ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo);
greping for ttm_bo_unmap_virtual_locked revealed this:
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c: * This is similar to ttm_bo_unmap_virtual_locked() except it takes a subrange.
include/drm/ttm/ttm_bo_driver.h:void ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo);
Should you clean up the vmwgvx comment to avoid confusion? 😊
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
m
>-
> /**
> * ttm_bo_reserve:
> *
>--
>2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked declaration
2020-10-07 11:43 ` Ruhl, Michael J
@ 2020-10-07 11:44 ` Christian König
0 siblings, 0 replies; 3+ messages in thread
From: Christian König @ 2020-10-07 11:44 UTC (permalink / raw)
To: Ruhl, Michael J, dri-devel@lists.freedesktop.org,
airlied@gmail.com, ray.huang@amd.com
Am 07.10.20 um 13:43 schrieb Ruhl, Michael J:
>> -----Original Message-----
>> From: Christian König <ckoenig.leichtzumerken@gmail.com>
>> Sent: Wednesday, October 7, 2020 4:52 AM
>> To: dri-devel@lists.freedesktop.org; airlied@gmail.com;
>> ray.huang@amd.com; Ruhl, Michael J <michael.j.ruhl@intel.com>
>> Subject: [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked
>> declaration
>>
>> That was missed during the cleanup.
>>
>> Signed-off-by: Christian König <christian.koenig@amd.com>
>> ---
>> include/drm/ttm/ttm_bo_driver.h | 9 ---------
>> 1 file changed, 9 deletions(-)
>>
>> diff --git a/include/drm/ttm/ttm_bo_driver.h
>> b/include/drm/ttm/ttm_bo_driver.h
>> index 9897a16c0a9d..b58dedce7079 100644
>> --- a/include/drm/ttm/ttm_bo_driver.h
>> +++ b/include/drm/ttm/ttm_bo_driver.h
>> @@ -449,15 +449,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
>> */
>> void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo);
>>
>> -/**
>> - * ttm_bo_unmap_virtual
>> - *
>> - * @bo: tear down the virtual mappings for this BO
>> - *
>> - * The caller must take ttm_mem_io_lock before calling this function.
>> - */
>> -void ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo);
> greping for ttm_bo_unmap_virtual_locked revealed this:
>
> drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c: * This is similar to ttm_bo_unmap_virtual_locked() except it takes a subrange.
> include/drm/ttm/ttm_bo_driver.h:void ttm_bo_unmap_virtual_locked(struct ttm_buffer_object *bo);
>
> Should you clean up the vmwgvx comment to avoid confusion? 😊
Oh good point, thanks. Didn't know that the function was referenced
outside of TTM anywhere anymore.
Christian.
>
> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>
> m
>
>> -
>> /**
>> * ttm_bo_reserve:
>> *
>> --
>> 2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-07 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-07 8:52 [PATCH] drm/ttm: remove ttm_bo_unmap_virtual_locked declaration Christian König
2020-10-07 11:43 ` Ruhl, Michael J
2020-10-07 11:44 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox