<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
How would we handle that? Having a revert on amd-kfd-staging? We can ensure that amd-staging-dkms doesn't cherrypick it in, but since KFD merges, it would be more complicated.<br>
<br>
Kent<br>
<br>
KENT RUSSELL<br>
Sr. Software Engineer | Linux Compute Kernel<br>
1 Commerce Valley Drive East<br>
Markham, ON L3T 7X6<br>
O +(1) 289-695-2122 | Ext 72122<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Kuehling, Felix <Felix.Kuehling@amd.com><br>
<b>Sent:</b> Friday, July 5, 2019 2:59:31 PM<br>
<b>To:</b> Alex Deucher; amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Deucher, Alexander<br>
<b>Subject:</b> Re: [PATCH] drm/amdgpu/ttm: make some functions static</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 2019-07-05 1:12 p.m., Alex Deucher wrote:<br>
> Noticed while reviewing the code.<br>
><br>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com><br>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com><br>
<br>
We'll need to be careful not to merge this change on amd-kfd-staging and <br>
amd-staging-dkms. On those branches, this function is called from <br>
amdgpu_amdkfd_gpuvm.c.<br>
<br>
Regards,<br>
Felix<br>
<br>
<br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 14 +++++++-------<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 6 ------<br>
> 2 files changed, 7 insertions(+), 13 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c<br>
> index c9faa69cd677..d090106ef23b 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c<br>
> @@ -299,12 +299,12 @@ static struct drm_mm_node *amdgpu_find_mm_node(struct ttm_mem_reg *mem,<br>
> *<br>
> * @f: Returns the last fence if multiple jobs are submitted.<br>
> */<br>
> -int amdgpu_ttm_copy_mem_to_mem(struct amdgpu_device *adev,<br>
> - struct amdgpu_copy_mem *src,<br>
> - struct amdgpu_copy_mem *dst,<br>
> - uint64_t size,<br>
> - struct reservation_object *resv,<br>
> - struct dma_fence **f)<br>
> +static int amdgpu_ttm_copy_mem_to_mem(struct amdgpu_device *adev,<br>
> + struct amdgpu_copy_mem *src,<br>
> + struct amdgpu_copy_mem *dst,<br>
> + uint64_t size,<br>
> + struct reservation_object *resv,<br>
> + struct dma_fence **f)<br>
> {<br>
> struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring;<br>
> struct drm_mm_node *src_mm, *dst_mm;<br>
> @@ -949,7 +949,7 @@ static void amdgpu_ttm_tt_unpin_userptr(struct ttm_tt *ttm)<br>
> #endif<br>
> }<br>
> <br>
> -int amdgpu_ttm_gart_bind(struct amdgpu_device *adev,<br>
> +static int amdgpu_ttm_gart_bind(struct amdgpu_device *adev,<br>
> struct ttm_buffer_object *tbo,<br>
> uint64_t flags)<br>
> {<br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h<br>
> index c2b7669004ba..de89c218db26 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h<br>
> @@ -86,12 +86,6 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset,<br>
> struct reservation_object *resv,<br>
> struct dma_fence **fence, bool direct_submit,<br>
> bool vm_needs_flush);<br>
> -int amdgpu_ttm_copy_mem_to_mem(struct amdgpu_device *adev,<br>
> - struct amdgpu_copy_mem *src,<br>
> - struct amdgpu_copy_mem *dst,<br>
> - uint64_t size,<br>
> - struct reservation_object *resv,<br>
> - struct dma_fence **f);<br>
> int amdgpu_fill_buffer(struct amdgpu_bo *bo,<br>
> uint32_t src_data,<br>
> struct reservation_object *resv,<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>