Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp46982pxu; Tue, 24 Nov 2020 18:10:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJz63XeHRvhPAJ/VGJQKv6gP+vXT6LG53ut8pizIy4xfF9FkHT4xmnrXzcEb1Of0BiCEZHFI X-Received: by 2002:aa7:dccd:: with SMTP id w13mr1410000edu.385.1606270225899; Tue, 24 Nov 2020 18:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270225; cv=none; d=google.com; s=arc-20160816; b=K4KYxdrxc7UVbSZAQOw1ATvLN5NLLDyKOpYO6baugs3ZFHbr0687laBpgpHPshu/el htfXpqPAag0uYoXxjdiIYlbuG4tJv+tS9ZbOIyI0QpbOmWLgnNtp0uATcxmmsvL0h7Fm VJx14qorXRvHxWptYJFBFIgq1piGAJEosjShY+O5a3Mf8OpS7D4nvwvO6BwnRT0umFzF FJHroAym+F/1NCniP+c4g22zONlSFEoyCxi+/Oze1tm9ISD1HnVFSvY0izyUi5Dl1rCQ zz5AXvVkaY6y7AJQIsQo6iX8djbnC19s+EntAs7DaBkHoVHm7TdrSouSbMhf0IlIrwxj pJSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ge9h/mtxkI31lIiz0Hna6pKHgTbT6SelL7loWpKAIng=; b=OxyMMXPdcZT7K1P0J63LkXyWxJhvaBxa0EaClv9wNikZV97UURIABK2Zl+NC/i5J5h wg8nIE06S1vclW3tHE7wnfUoay/H3TSN4KpKsduIkHodwP9NeuRTHg718HpElwGXszl/ +JjNrrfS8cSWhOyaRy1HSaikoaDzYoYbLud2RkZV0fT5X6OclXwy7Y7iF9R2zyvu6vKA 1VntRfyc5QkgSorf1dA10qDKMF8tbnEnvQAE+DGwLiomS141+fidWTnigx+TIjIYkfIx UOlRrnI3fiqxQIqr5TnAE0TbXK44I05ZITWOqw9ZUEfH1fdtYrGFTUTtUsLpGcSGjBAa /6FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UOlchSB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si485760ejd.397.2020.11.24.18.10.02; Tue, 24 Nov 2020 18:10:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UOlchSB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390149AbgKXQHF (ORCPT + 99 others); Tue, 24 Nov 2020 11:07:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728480AbgKXQHE (ORCPT ); Tue, 24 Nov 2020 11:07:04 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A92AC0613D6; Tue, 24 Nov 2020 08:07:04 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id w24so3436234wmi.0; Tue, 24 Nov 2020 08:07:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ge9h/mtxkI31lIiz0Hna6pKHgTbT6SelL7loWpKAIng=; b=UOlchSB/uXHMRDXoi/KN4SsZplSYz103+AAZ5kJTN0gk+TYQIjauMjXQGLRdajKTtt XlRlGVKC8I5dn9lCWwayPYXw0g5rGdVRf6YX7wSbH3cHk/IcIL/kXFjLdt0OXrQjPpTB Xc63+C3sw67u0UMES+R9p6iypR/WXnBut194Q5Wj+7B8Pbd329GWG/0qV7KyQ+JeTE1A Bij90rxCdRl47viF8bNTaGNkWoZwPOIkv6lt8VeQKm6zG3Tkuhv0zVnmzCz7qmfWM4rv 3Xx0KMcpFSC8Ib7K8HQqK2OK3TBoR+1U/XsZD7+wK3+hXC/I1rJoupjjfo4daVl/vEAg CYmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ge9h/mtxkI31lIiz0Hna6pKHgTbT6SelL7loWpKAIng=; b=TYcqPRY0MKwaMZ5h2tVlgJsciKHy7Ty6eEwvKvt7W6GPssEkBnYMSepu1L53D9Lvoy rWZFDdWK/itjStuCRtwwn6mJ25JTea4ShaSFAyGhlrTyjNiEPx0xkhFIWCxajSurnq5i OQ2YP0jDTfXRrWPe1SdgoY9NGgfGphnKVcImj4Gj/gNtzwmF/uN/Ew+F4N+CJCZiIhks UpVeMERfp07JQ3dvomJWRWlm2ernhCoiOnndd7+YsVj1QzFhN+bd9Yeyacs0PAm1QgpE fTPI+FEzCoObD6tAupwZJhNpF0Xf4bDaEwze7W+Q5fa0ip5Z9hLqsVemtku4GlaOjreN LsFA== X-Gm-Message-State: AOAM531FFIWq2jnAqhpUj8cpxJXoTuFBNhB+5v7yieDTl4OyLyMnqp2T RwbURx8kPOG5Uasvh8UtfkNCkIqKndquo0yjMWs= X-Received: by 2002:a7b:c015:: with SMTP id c21mr5256561wmb.79.1606234022988; Tue, 24 Nov 2020 08:07:02 -0800 (PST) MIME-Version: 1.0 References: <20201123111919.233376-1-lee.jones@linaro.org> <20201123111919.233376-17-lee.jones@linaro.org> In-Reply-To: <20201123111919.233376-17-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 24 Nov 2020 11:06:51 -0500 Message-ID: Subject: Re: [PATCH 16/40] drm/amd/amdgpu/si_dma: Fix a bunch of function documentation issues To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , =?UTF-8?Q?Christian_K=C3=B6nig?= , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Maling list - DRI developers , Alex Deucher , linux-media Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Function parameter or m= ember 'addr' not described in 'si_dma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Function parameter or m= ember 'seq' not described in 'si_dma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Function parameter or m= ember 'flags' not described in 'si_dma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Excess function paramet= er 'fence' description in 'si_dma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/si_dma.c:252: warning: Function parameter or = member 'timeout' not described in 'si_dma_ring_test_ib' > drivers/gpu/drm/amd/amdgpu/si_dma.c:408: warning: Function parameter or = member 'ring' not described in 'si_dma_ring_pad_ib' > drivers/gpu/drm/amd/amdgpu/si_dma.c:446: warning: Function parameter or = member 'vmid' not described in 'si_dma_ring_emit_vm_flush' > drivers/gpu/drm/amd/amdgpu/si_dma.c:446: warning: Function parameter or = member 'pd_addr' not described in 'si_dma_ring_emit_vm_flush' > drivers/gpu/drm/amd/amdgpu/si_dma.c:446: warning: Excess function parame= ter 'vm' description in 'si_dma_ring_emit_vm_flush' > drivers/gpu/drm/amd/amdgpu/si_dma.c:781: warning: Function parameter or = member 'ib' not described in 'si_dma_emit_copy_buffer' > drivers/gpu/drm/amd/amdgpu/si_dma.c:781: warning: Function parameter or = member 'tmz' not described in 'si_dma_emit_copy_buffer' > drivers/gpu/drm/amd/amdgpu/si_dma.c:781: warning: Excess function parame= ter 'ring' description in 'si_dma_emit_copy_buffer' > drivers/gpu/drm/amd/amdgpu/si_dma.c:804: warning: Function parameter or = member 'ib' not described in 'si_dma_emit_fill_buffer' > drivers/gpu/drm/amd/amdgpu/si_dma.c:804: warning: Excess function parame= ter 'ring' description in 'si_dma_emit_fill_buffer' > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Sumit Semwal > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Cc: linux-media@vger.kernel.org > Cc: linaro-mm-sig@lists.linaro.org > Signed-off-by: Lee Jones Applied with minor changes. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/si_dma.c | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/am= dgpu/si_dma.c > index 7d2bbcbe547b2..540dced190f33 100644 > --- a/drivers/gpu/drm/amd/amdgpu/si_dma.c > +++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c > @@ -81,7 +81,9 @@ static void si_dma_ring_emit_ib(struct amdgpu_ring *rin= g, > * si_dma_ring_emit_fence - emit a fence on the DMA ring > * > * @ring: amdgpu ring pointer > - * @fence: amdgpu fence object > + * @addr: address > + * @seq: sequence number > + * @flags: fence related flags > * > * Add a DMA fence packet to the ring to write > * the fence seq number and DMA trap packet to generate > @@ -244,6 +246,7 @@ static int si_dma_ring_test_ring(struct amdgpu_ring *= ring) > * si_dma_ring_test_ib - test an IB on the DMA engine > * > * @ring: amdgpu_ring structure holding ring information > + * @timeout: timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT > * > * Test a simple IB in the DMA ring (VI). > * Returns 0 on success, error on failure. > @@ -401,6 +404,7 @@ static void si_dma_vm_set_pte_pde(struct amdgpu_ib *i= b, > /** > * si_dma_pad_ib - pad the IB to the required number of dw > * > + * @ring: amdgpu_ring pointer > * @ib: indirect buffer to fill with padding > * > */ > @@ -436,7 +440,8 @@ static void si_dma_ring_emit_pipeline_sync(struct amd= gpu_ring *ring) > * si_dma_ring_emit_vm_flush - cik vm flush using sDMA > * > * @ring: amdgpu_ring pointer > - * @vm: amdgpu_vm pointer > + * @vmid: vmid number to use > + * @pd_addr: address > * > * Update the page table base and flush the VM TLB > * using sDMA (VI). > @@ -764,10 +769,11 @@ static void si_dma_set_irq_funcs(struct amdgpu_devi= ce *adev) > /** > * si_dma_emit_copy_buffer - copy buffer using the sDMA engine > * > - * @ring: amdgpu_ring structure holding ring information > + * @ib: indirect buffer to copy to > * @src_offset: src GPU address > * @dst_offset: dst GPU address > * @byte_count: number of bytes to xfer > + * @tmz: unused > * > * Copy GPU buffers using the DMA engine (VI). > * Used by the amdgpu ttm implementation to move pages if > @@ -790,7 +796,7 @@ static void si_dma_emit_copy_buffer(struct amdgpu_ib = *ib, > /** > * si_dma_emit_fill_buffer - fill buffer using the sDMA engine > * > - * @ring: amdgpu_ring structure holding ring information > + * @ib: indirect buffer to copy to > * @src_data: value to write to buffer > * @dst_offset: dst GPU address > * @byte_count: number of bytes to xfer > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel