Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4101498pxb; Tue, 17 Nov 2020 11:16:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEfy2XdfKA7QA9pVN6ThEV2MYuRuSXIslhEGaU+410NSFVjNF5z4S4qAojyMVIkIkbvXbA X-Received: by 2002:a17:906:5a96:: with SMTP id l22mr20599578ejq.303.1605640607558; Tue, 17 Nov 2020 11:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605640607; cv=none; d=google.com; s=arc-20160816; b=OuLG8kWbD20HXXYvjKvycYTlI6LW22AEHT491t1kLvz6xxlaYJWVdLcIWlFTYYjm19 TCdvZsv7GLS7o/RiejhxklBuywiD0A87XUnxlGFNXBr9Lo+E1GWHXLWXkiKPdj62TbX/ DTgm3LqWfiP9uXbrNm9vK+UJiqPNu49j59Q/h2N0F3G3vJoHr+WSMDqq7A7NWMlNpzoh w+osk5ObTJO58o6v7BXjWR3W9/KM0C5bjkicuqhg1JMmj+dIwYUwVVbqQvOOHYks0/VB KE9qh+LIXBpqHs4h0voMHfDAhW+sft0WYU10MAQyY3W61VdLXtGYnoH/SA0Z86rD0i9c 47MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=hu7bOYUgtnFLMBiA1U9xKBu85h7yzSk1KLbNCN463rI=; b=Uv6akrX3DuVvsCmW4RAcxIJNjmulPytdLXXL87eDw7JULTfBf31uSIUUzp90ZTPJs1 DtORkbMbuHQppBppmW6RBoLl8teTL+sh3GIlFOW8T9wip/GgmeUh1+ogewsvuftiuIKp iZSnC3iGFBkvJUrmmb1y36zWM7rRNp+VUJBvqGcGuO9PxZgDFadPqEZZfXahrsqH9ZKJ X2peAb6FCAubpOw4XraDMQq7YPD5kcftW8Nps2YA41Qfe2+0nVCGSitLHHNeOOX96wku uaTudGQSbop5BAJHgFSTwxxYeMoXvD5OCU0rklhjbK/s/aevqCow8NNabOMJkx8BpHd/ IaBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=X5xkpEln; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si13404639ejx.101.2020.11.17.11.16.23; Tue, 17 Nov 2020 11:16:47 -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=@ffwll.ch header.s=google header.b=X5xkpEln; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727641AbgKQTLk (ORCPT + 99 others); Tue, 17 Nov 2020 14:11:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725771AbgKQTLi (ORCPT ); Tue, 17 Nov 2020 14:11:38 -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 9E285C0613CF for ; Tue, 17 Nov 2020 11:11:38 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id a3so4261272wmb.5 for ; Tue, 17 Nov 2020 11:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=hu7bOYUgtnFLMBiA1U9xKBu85h7yzSk1KLbNCN463rI=; b=X5xkpElnuKlOphb7oubo5uykS6+OI+php6jhCFtFcZhmtzzwWArV8Df6/gG5zzJ117 AYrkJBx9rLECsYAk6+Z/lS3xFE5GUhpCTUDLmj4v406RilyJDbUB9Uyu+0VSDGYgvm2l jukkd1AGe1UjqosgfxOcW7pjmYpNky0Zfc6wQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=hu7bOYUgtnFLMBiA1U9xKBu85h7yzSk1KLbNCN463rI=; b=aK1tiDTi0G1J106RwViV90fe8tdt+cpj8EssA73Y07++r+ak6mQwMJi4C9SLS2gS8/ QMsBVhWoUUvpbUm8xfMJibGev1GLKGQZw/dKyXx/RYJYO3jq8M8mA/WgV8QNaV9+zpFm Pif6q9/Sglntxv41CGGxQXdCFAdo4eCY654w1Zv9gonSapWuXPALLB9lDUWt9KCz0s73 IjXh3NEEG9DlXISVC0x4WFX6kLAtDyScpmbNDM03QHsVH3gG2q/kKzR/Ae2D3Dsz/Kc/ s8okxjaU4nGQfrXXmRa4z/M+njG392DimYaDRpFOuHfWl+HdhgdIS5k82pcATC2Pygr4 FVEg== X-Gm-Message-State: AOAM5306ka3wPLJ751+5UYnMuN4wYVSAq4B/NQ9ZJJMJ/9Dwz+WEEZuO EPn192AWUxDi/7JtU/eQEv++HQ== X-Received: by 2002:a7b:c1d2:: with SMTP id a18mr604240wmj.41.1605640297385; Tue, 17 Nov 2020 11:11:37 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id a14sm4774135wmj.40.2020.11.17.11.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 11:11:36 -0800 (PST) Date: Tue, 17 Nov 2020 20:11:34 +0100 From: Daniel Vetter To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Lee Jones , linux-kernel@vger.kernel.org, Huang Rui , David Airlie , Daniel Vetter , Sumit Semwal , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH 31/42] drm/ttm/ttm_bo: Fix one function header - demote lots of kernel-doc abuses Message-ID: <20201117191134.GR401619@phenom.ffwll.local> Mail-Followup-To: Christian =?iso-8859-1?Q?K=F6nig?= , Lee Jones , linux-kernel@vger.kernel.org, Huang Rui , David Airlie , Sumit Semwal , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org References: <20201116174112.1833368-1-lee.jones@linaro.org> <20201116174112.1833368-32-lee.jones@linaro.org> <7745c8a0-12ad-8dcd-3740-51c640ea4ef2@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7745c8a0-12ad-8dcd-3740-51c640ea4ef2@amd.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 09:33:48PM +0100, Christian K?nig wrote: > Am 16.11.20 um 18:41 schrieb Lee Jones: > > Fixes the following W=1 kernel build warning(s): > > > > drivers/gpu/drm/ttm/ttm_bo.c:51: warning: Function parameter or member 'ttm_global_mutex' not described in 'DEFINE_MUTEX' > > drivers/gpu/drm/ttm/ttm_bo.c:286: warning: Function parameter or member 'bo' not described in 'ttm_bo_cleanup_memtype_use' > > drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'bo' not described in 'ttm_bo_cleanup_refs' > > drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'interruptible' not described in 'ttm_bo_cleanup_refs' > > drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'no_wait_gpu' not described in 'ttm_bo_cleanup_refs' > > drivers/gpu/drm/ttm/ttm_bo.c:359: warning: Function parameter or member 'unlock_resv' not described in 'ttm_bo_cleanup_refs' > > drivers/gpu/drm/ttm/ttm_bo.c:424: warning: Function parameter or member 'bdev' not described in 'ttm_bo_delayed_delete' > > drivers/gpu/drm/ttm/ttm_bo.c:424: warning: Function parameter or member 'remove_all' not described in 'ttm_bo_delayed_delete' > > drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'bo' not described in 'ttm_bo_evict_swapout_allowable' > > drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'ctx' not described in 'ttm_bo_evict_swapout_allowable' > > drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'locked' not described in 'ttm_bo_evict_swapout_allowable' > > drivers/gpu/drm/ttm/ttm_bo.c:635: warning: Function parameter or member 'busy' not described in 'ttm_bo_evict_swapout_allowable' > > drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'bo' not described in 'ttm_bo_add_move_fence' > > drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'man' not described in 'ttm_bo_add_move_fence' > > drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'mem' not described in 'ttm_bo_add_move_fence' > > drivers/gpu/drm/ttm/ttm_bo.c:769: warning: Function parameter or member 'no_wait_gpu' not described in 'ttm_bo_add_move_fence' > > drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'bo' not described in 'ttm_bo_mem_force_space' > > drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'place' not described in 'ttm_bo_mem_force_space' > > drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'mem' not described in 'ttm_bo_mem_force_space' > > drivers/gpu/drm/ttm/ttm_bo.c:806: warning: Function parameter or member 'ctx' not described in 'ttm_bo_mem_force_space' > > drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'bo' not described in 'ttm_bo_mem_space' > > drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'placement' not described in 'ttm_bo_mem_space' > > drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'mem' not described in 'ttm_bo_mem_space' > > drivers/gpu/drm/ttm/ttm_bo.c:872: warning: Function parameter or member 'ctx' not described in 'ttm_bo_mem_space' > > drivers/gpu/drm/ttm/ttm_bo.c:1387: warning: Function parameter or member 'ctx' not described in 'ttm_bo_swapout' > > > > Cc: Christian Koenig > > Cc: Huang Rui > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: Sumit Semwal > > Cc: dri-devel@lists.freedesktop.org > > Cc: linux-media@vger.kernel.org > > Cc: linaro-mm-sig@lists.linaro.org > > Signed-off-by: Lee Jones > > Reviewed-by: Christian K?nig > > Going to pick that one up for upstreaming. I mass applied this pile, so also this one. Thanks for patch&review. -Daniel > > Thanks, > Christian. > > > --- > > drivers/gpu/drm/ttm/ttm_bo.c | 23 ++++++++++++----------- > > 1 file changed, 12 insertions(+), 11 deletions(-) > > > > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c > > index e6bcbfe530ecc..9a03c7834b1ed 100644 > > --- a/drivers/gpu/drm/ttm/ttm_bo.c > > +++ b/drivers/gpu/drm/ttm/ttm_bo.c > > @@ -45,7 +45,7 @@ > > static void ttm_bo_global_kobj_release(struct kobject *kobj); > > -/** > > +/* > > * ttm_global_mutex - protecting the global BO state > > */ > > DEFINE_MUTEX(ttm_global_mutex); > > @@ -278,7 +278,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, > > return ret; > > } > > -/** > > +/* > > * Call bo::reserved. > > * Will release GPU memory type usage on destruction. > > * This is the place to put in driver specific hooks to release > > @@ -352,9 +352,10 @@ static void ttm_bo_flush_all_fences(struct ttm_buffer_object *bo) > > * Must be called with lru_lock and reservation held, this function > > * will drop the lru lock and optionally the reservation lock before returning. > > * > > - * @interruptible Any sleeps should occur interruptibly. > > - * @no_wait_gpu Never wait for gpu. Return -EBUSY instead. > > - * @unlock_resv Unlock the reservation lock as well. > > + * @bo: The buffer object to clean-up > > + * @interruptible: Any sleeps should occur interruptibly. > > + * @no_wait_gpu: Never wait for gpu. Return -EBUSY instead. > > + * @unlock_resv: Unlock the reservation lock as well. > > */ > > static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, > > @@ -420,7 +421,7 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, > > return 0; > > } > > -/** > > +/* > > * Traverse the delayed list, and call ttm_bo_cleanup_refs on all > > * encountered buffers. > > */ > > @@ -628,7 +629,7 @@ bool ttm_bo_eviction_valuable(struct ttm_buffer_object *bo, > > } > > EXPORT_SYMBOL(ttm_bo_eviction_valuable); > > -/** > > +/* > > * Check the target bo is allowable to be evicted or swapout, including cases: > > * > > * a. if share same reservation object with ctx->resv, have assumption > > @@ -767,7 +768,7 @@ int ttm_mem_evict_first(struct ttm_bo_device *bdev, > > return ret; > > } > > -/** > > +/* > > * Add the last move fence to the BO and reserve a new shared slot. > > */ > > static int ttm_bo_add_move_fence(struct ttm_buffer_object *bo, > > @@ -803,7 +804,7 @@ static int ttm_bo_add_move_fence(struct ttm_buffer_object *bo, > > return 0; > > } > > -/** > > +/* > > * Repeatedly evict memory from the LRU for @mem_type until we create enough > > * space, or we've evicted everything and there isn't enough space. > > */ > > @@ -865,7 +866,7 @@ static int ttm_bo_mem_placement(struct ttm_buffer_object *bo, > > return 0; > > } > > -/** > > +/* > > * Creates space for memory region @mem according to its type. > > * > > * This function first searches for free space in compatible memory types in > > @@ -1430,7 +1431,7 @@ int ttm_bo_wait(struct ttm_buffer_object *bo, > > } > > EXPORT_SYMBOL(ttm_bo_wait); > > -/** > > +/* > > * A buffer object shrink method that tries to swap out the first > > * buffer object on the bo_global::swap_lru list. > > */ > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch