[PATCH 0/2] Clean-up TTM BOref-counting interface

2018-07-30 Thread Thomas Zimmermann
This patchset replaces ttm_bo_{reference/unref} with ttm_bo_{get,put}, which follow Linux' conventions for ref-counting functions. Thomas Zimmermann (2): drm/virtio: Replace ttm_bo_reference with ttm_bo_get drm/virtio: Replace ttm_bo_unref with ttm_bo_put drivers/gpu/drm/virtio/virtgpu_drv.h

[PATCH 1/2] drm/virtio: Replace ttm_bo_reference with ttm_bo_get

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_get acquires a reference on a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 0/2] Clean-up TTM BO ref-counting interface

2018-07-30 Thread Thomas Zimmermann
This patchset replaces ttm_bo_{reference/unref} with ttm_bo_{get,put}, which follow Linux' conventions for ref-counting functions. Thomas Zimmermann (2): Replace ttm_bo_reference with ttm_bo_get drm/vmwgfx: Replace ttm_bo_unref with ttm_bo_put drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 11 ++

[PATCH 2/2] drm/vmwgfx: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH 1/2] Replace ttm_bo_reference with ttm_bo_get

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_get acquires a reference on a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 5 +++-- drivers/gpu/drm/vmwgfx/v

[PATCH] drm/bochs: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH] drm/cirrus: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH] drm/hisilicon: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH] drm/mgag200: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH] drm/qxl: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

[PATCH] staging/vboxvideo: Replace ttm_bo_unref with ttm_bo_put

2018-07-30 Thread Thomas Zimmermann
The function ttm_bo_put releases a reference to a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. A call to ttm_bo_unref takes the address of the TTM BO object's pointer and clears the pointer's value to NULL. Thi

Re: [PATCH 1/2] drm/amd: Replace ttm_bo_reference with ttm_bo_get

2018-07-30 Thread Christian König
Am 31.07.2018 um 08:11 schrieb Thomas Zimmermann: The function ttm_bo_get acquires a reference on a TTM buffer object. The function's name is more aligned to the Linux kernel convention of naming ref-counting function _get and _put. Signed-off-by: Thomas Zimmermann amdgpu patches should actua

Re: [PATCH] drm/amdgpu/pm: Fix potential Spectre v1

2018-07-30 Thread Christian König
Am 30.07.2018 um 22:14 schrieb Alex Deucher: On Mon, Jul 30, 2018 at 5:55 AM, Michel Dänzer wrote: On 2018-07-24 10:53 PM, Alex Deucher wrote: On Mon, Jul 23, 2018 at 12:32 PM, Gustavo A. R. Silva wrote: idx can be indirectly controlled by user-space, hence leading to a potential exploitatio

Re: [PATCH 2/2] drm/scheduler: stop setting rq to NULL

2018-07-30 Thread Christian König
Am 30.07.2018 um 22:51 schrieb Andrey Grodzovsky: On 07/30/2018 09:30 AM, Nayan Deshmukh wrote: On Mon, Jul 30, 2018 at 4:33 PM Christian König > wrote: We removed the redundancy of having an extra scheduler field, so we can't set the rq t

<    1   2