Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4123861pxu; Mon, 30 Nov 2020 18:39:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpm6L0hwo0fjGRhVfJyjkEE5rR6kXfIlbO5Npv3ZH0ZieYgM3ZCuFbPptbnM3juCXTnRVS X-Received: by 2002:aa7:c603:: with SMTP id h3mr878055edq.254.1606790389430; Mon, 30 Nov 2020 18:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606790389; cv=none; d=google.com; s=arc-20160816; b=0VMsHXMO8WglccnTzG/gQEY2DilgARjMEJFtR+WJqkHFKFPPgkORJ1BdLzxOxPg4ru 7+n5SKjljFAK4mXLolL/ltssHfZVYJLQf5OssNdRzjBZVXWEAESVKfDPuylhLCh/RMSz YS5QIuXEqk6KCV3sBwoOg3nSXSm6tD8DGPqGu5tl426Vv2OCeq0UQfhxaVrlWeP7yGls gdDU70w/AGo/hv1R4Xbhr18ctBpKvO8cVr2buWbOqKcPZtETqaI0DEiidSDcAJpf5YIl XJFjCuzlIsAyyYviLZVqSeeoh7GoFzQl0quryKDNiFUVeOKXYDF03XyrAnK/D+FQ2AN9 O+Zw== 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=2hkKSZ7MgTmpR98LdQFBKc6bH1HMiPPL7sx2H+5Kgc0=; b=Mt2pmSw8sTBRbfnK37rfqCQA3Rlbw4z8ZnzETtBOP7AArjzHClo7bp0nbi5sXO8ZEC JymXF8xETVFKyvdJZMbiNd2fJlc8WizoauObXbER7q47GJwZITdSV1RuxMTuja811qbi irKilqKG0yumOqDDCXJhsbiNj8jAZjb5TPYlKN9ZRtA4Cy6tO9ckqKdhCNCNnotlLPrv vVyBzPKFk7BlzItA1ZRytx3afM2eI+67zsohQ3X4pGFbHf4IDeis0tu6n77mMjsG4HRc xSY1gKidEvcr9gbQY9jw5F/g/GsuzekI68ScE9LUqK8bBXFgMVDAGbwG3ZED7fRgLgLu 1Rmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dItdnB4n; 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 o90si262603eda.435.2020.11.30.18.39.26; Mon, 30 Nov 2020 18:39:49 -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=dItdnB4n; 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 S1730726AbgK3Wgz (ORCPT + 99 others); Mon, 30 Nov 2020 17:36:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgK3Wgy (ORCPT ); Mon, 30 Nov 2020 17:36:54 -0500 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5820FC0613CF; Mon, 30 Nov 2020 14:36:14 -0800 (PST) Received: by mail-oo1-xc42.google.com with SMTP id z13so3070064ooa.5; Mon, 30 Nov 2020 14:36:14 -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=2hkKSZ7MgTmpR98LdQFBKc6bH1HMiPPL7sx2H+5Kgc0=; b=dItdnB4nCK4SKp6j5TDLCJ7A0YFRrhbaSql4ME2c88F4qFesT3c+QwwWb8ubQCo7Ym KI2tCmzYCUDdDBZFdW8ZhW54+Tawo4P4YvZCGzBGEEE0qiYv5yfMho3hoJ0P6tw6oKhR 95wugzX7jULn/hof5tvQ27xudGeCAF96foFHBAMCXuiTNSuu2OKO5NHmIwUY7Kp+zuVj CwnF68LP4fB5h5+yvi/Nxt6gyS2NQAOb7/xgkymieQQo7lNfG/CJpOmtHADTRwaSJjWj 80eWhJoHg4De80h7FYkN8jYRmY9oT3co97ajbvhGLvmjW1imRySmxWdLoiw5uiRb3oSd Hryw== 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=2hkKSZ7MgTmpR98LdQFBKc6bH1HMiPPL7sx2H+5Kgc0=; b=khoXQAkWyTiQQ8p0hTTA03Z32u5b1zGtiClcDYxQGrmJ2KhgEuoWdu8p1irSIFxAIo b6u1LXLemEMnCOghBK2g8W2EAiAnzi4nVL3EMnidH3yFfbUAx+mx7Gloo79/Jv4Yz+IK cjSCnDKHqAzsPBySZj1SaYJyZUIbQo9vH2MjJjVgrTc7h7gCQkTsN8Pmdvq4A2EO8amJ Bw+DT2b9l+pbySKju7RXTXajv5Np1yat9wf7Wea+e+EMP//hbueDIc8+LgAmeP9fs/WL vxw5p6gekvm8yUbGaPbrukTdB4uDDRdjix357zUy/A2+rE9LjjmL8jC/v51bT2JNUyxH 6PRw== X-Gm-Message-State: AOAM5331lIA8dkFPFRqPdSrB+nK65Xv4fl+aH83a9vjQV5RKRAn4ULzS +W37ITX1NTpVBzi2WgfSGcne4GIQU8Wm6eTZkus= X-Received: by 2002:a4a:d5d3:: with SMTP id a19mr17136481oot.61.1606775773775; Mon, 30 Nov 2020 14:36:13 -0800 (PST) MIME-Version: 1.0 References: <20201124193824.1118741-1-lee.jones@linaro.org> <20201124193824.1118741-26-lee.jones@linaro.org> In-Reply-To: <20201124193824.1118741-26-lee.jones@linaro.org> From: Alex Deucher Date: Mon, 30 Nov 2020 17:36:02 -0500 Message-ID: Subject: Re: [PATCH 25/40] drm/amd/amdgpu/amdgpu_vce: Provide some missing and repair other function params 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 Tue, Nov 24, 2020 at 2:45 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:97: warning: Function parameter = or member 'size' not described in 'amdgpu_vce_sw_init' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:441: warning: Function parameter= or member 'bo' not described in 'amdgpu_vce_get_create_msg' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:441: warning: Excess function pa= rameter 'adev' description in 'amdgpu_vce_get_create_msg' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:521: warning: Function parameter= or member 'direct' not described in 'amdgpu_vce_get_destroy_msg' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:521: warning: Excess function pa= rameter 'adev' description in 'amdgpu_vce_get_destroy_msg' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:588: warning: Function parameter= or member 'ib_idx' not described in 'amdgpu_vce_validate_bo' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:636: warning: Function parameter= or member 'ib_idx' not described in 'amdgpu_vce_cs_reloc' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:636: warning: Function parameter= or member 'index' not described in 'amdgpu_vce_cs_reloc' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:720: warning: Function parameter= or member 'ib_idx' not described in 'amdgpu_vce_ring_parse_cs' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:956: warning: Function parameter= or member 'ib_idx' not described in 'amdgpu_vce_ring_parse_cs_vm' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1050: warning: Function paramete= r or member 'job' not described in 'amdgpu_vce_ring_emit_ib' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1050: warning: Function paramete= r or member 'flags' not described in 'amdgpu_vce_ring_emit_ib' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1066: warning: Function paramete= r or member 'addr' not described in 'amdgpu_vce_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1066: warning: Function paramete= r or member 'seq' not described in 'amdgpu_vce_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1066: warning: Function paramete= r or member 'flags' not described in 'amdgpu_vce_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1066: warning: Excess function p= arameter 'fence' description in 'amdgpu_vce_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:1122: warning: Function paramete= r or member 'timeout' not described in 'amdgpu_vce_ring_test_ib' > > 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 fixes. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_vce.c > index ecaa2d7483b20..1d8db318b0758 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c > @@ -90,6 +90,7 @@ static int amdgpu_vce_get_destroy_msg(struct amdgpu_rin= g *ring, uint32_t handle, > * amdgpu_vce_init - allocate memory, load vce firmware > * > * @adev: amdgpu_device pointer > + * @size: size for the new BO > * > * First step to get VCE online, allocate memory and load the firmware > */ > @@ -428,9 +429,9 @@ void amdgpu_vce_free_handles(struct amdgpu_device *ad= ev, struct drm_file *filp) > /** > * amdgpu_vce_get_create_msg - generate a VCE create msg > * > - * @adev: amdgpu_device pointer > * @ring: ring we should submit the msg to > * @handle: VCE session handle to use > + * @bo: amdgpu object for which we query the offset > * @fence: optional fence to return > * > * Open up a stream for HW test > @@ -509,9 +510,9 @@ static int amdgpu_vce_get_create_msg(struct amdgpu_ri= ng *ring, uint32_t handle, > /** > * amdgpu_vce_get_destroy_msg - generate a VCE destroy msg > * > - * @adev: amdgpu_device pointer > * @ring: ring we should submit the msg to > * @handle: VCE session handle to use > + * @direct: direct or delayed pool > * @fence: optional fence to return > * > * Close up a stream for HW test or if userspace failed to do so > @@ -576,6 +577,7 @@ static int amdgpu_vce_get_destroy_msg(struct amdgpu_r= ing *ring, uint32_t handle, > * amdgpu_vce_cs_validate_bo - make sure not to cross 4GB boundary > * > * @p: parser context > + * @ib_idx: indirect buffer to use > * @lo: address of lower dword > * @hi: address of higher dword > * @size: minimum size > @@ -625,9 +627,11 @@ static int amdgpu_vce_validate_bo(struct amdgpu_cs_p= arser *p, uint32_t ib_idx, > * amdgpu_vce_cs_reloc - command submission relocation > * > * @p: parser context > + * @ib_idx: indirect buffer to use > * @lo: address of lower dword > * @hi: address of higher dword > * @size: minimum size > + * @index: bs/fb index > * > * Patch relocation inside command stream with real buffer address > */ > @@ -714,7 +718,7 @@ static int amdgpu_vce_validate_handle(struct amdgpu_c= s_parser *p, > * amdgpu_vce_cs_parse - parse and validate the command stream > * > * @p: parser context > - * > + * @ib_idx: indirect buffer to use > */ > int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx= ) > { > @@ -950,7 +954,7 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser = *p, uint32_t ib_idx) > * amdgpu_vce_cs_parse_vm - parse the command stream in VM mode > * > * @p: parser context > - * > + * @ib_idx: indirect buffer to use > */ > int amdgpu_vce_ring_parse_cs_vm(struct amdgpu_cs_parser *p, uint32_t ib_= idx) > { > @@ -1040,7 +1044,9 @@ int amdgpu_vce_ring_parse_cs_vm(struct amdgpu_cs_pa= rser *p, uint32_t ib_idx) > * amdgpu_vce_ring_emit_ib - execute indirect buffer > * > * @ring: engine to use > + * @job: job to retrive vmid from > * @ib: the IB to execute > + * @flags: unused > * > */ > void amdgpu_vce_ring_emit_ib(struct amdgpu_ring *ring, > @@ -1058,7 +1064,9 @@ void amdgpu_vce_ring_emit_ib(struct amdgpu_ring *ri= ng, > * amdgpu_vce_ring_emit_fence - add a fence command to the ring > * > * @ring: engine to use > - * @fence: the fence > + * @addr: address > + * @seq: sequence number > + * @flags: fence related flags > * > */ > void amdgpu_vce_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 = seq, > @@ -1116,6 +1124,7 @@ int amdgpu_vce_ring_test_ring(struct amdgpu_ring *r= ing) > * amdgpu_vce_ring_test_ib - test if VCE IBs are working > * > * @ring: the engine to test on > + * @timeout: timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT > * > */ > int amdgpu_vce_ring_test_ib(struct amdgpu_ring *ring, long timeout) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel