Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp845914rwe; Wed, 31 Aug 2022 12:05:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Nt/T5IJx3Ei6eFtqSboq+PiJNsnKqboc6DnLVmNPHMRQ+cf8sTDnwqBR6gOcJPmBvD30E X-Received: by 2002:a63:2ccb:0:b0:42a:49be:938f with SMTP id s194-20020a632ccb000000b0042a49be938fmr22838320pgs.561.1661972735792; Wed, 31 Aug 2022 12:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661972735; cv=none; d=google.com; s=arc-20160816; b=MU925ktG+aII5MHZyhRjTQOkhEbRZkcCQ5SEqESjD+9MJm7Hlf2UNgTrWRvgtAqx8r OBkdWlf2TRz3Au7UACIxgq0YyNUMYMLkgCLiwgclyQkyp0gLB0YJb6QHhbh3RU0OEmu2 hdSz5U/+U/R2MG8pm8ohVfpfY9LwObU6/RSP4n2qI0ehELVhZ7+z/tggSkhMx+l+K/6Q NITRX+0f4RxqUFE8N9mqpMH1OS/+F9BhuI6ut/ARnkbheJKtXzhGeQ92Zg4mqnLoVh3w 7ofoz8dCNdAYEmLgqrrcebFtejoyQzTGThexMtG4QZUSKMHEsRSRhnaQ88IJI1REaR+P GMfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qXmrCnpitzVik2ZwdtpGRAJ60eJb5DPfzzZ5ouE/xSM=; b=PG5of96lNWjkJv4dvzK1I+ZYxlTPDsUthUy1B42ijSVNi4GAKshK4e1B0UZd9AvJ1M WvjFH+HmYXuuSDJxxHXHCw6Jk1ZaMpPggbtpiH9F0WfN68BU62IXPmn3VTjtGmbBkGN+ PWQhqJqna1lXOx7kCZ6LDSUUTh1aYf2MSSbTEdF9uXAW5vm28dCs8tHidkvcosW15RwZ LJEVRwUD+ASUTroCqx47Tr5MGU+JBhQH3ZkJeol5TxbjUT9rTrMjcMf50Y+pNpcfaY+q TyTp5EdzMCqarbukv1NVwlgMAtDPxuO/zZGWfCyXrm+sAPXunXR0nMNOpsy3PO05ZWjq 6Ugg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=F1HPRY50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq9-20020a056a00330900b0053806c0f12bsi11027822pfb.129.2022.08.31.12.05.23; Wed, 31 Aug 2022 12:05:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=F1HPRY50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231755AbiHaSi3 (ORCPT + 99 others); Wed, 31 Aug 2022 14:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233037AbiHaSiA (ORCPT ); Wed, 31 Aug 2022 14:38:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37D1213D3C for ; Wed, 31 Aug 2022 11:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=qXmrCnpitzVik2ZwdtpGRAJ60eJb5DPfzzZ5ouE/xSM=; b=F1HPRY50KyFQ1m4Fm249FFJryG HdFlbL6Subz/RRlIK6Sn8ZJlMTVBHCcULdA/W9QKh5LDaNqtOI7yWHEM4E+fiPmtK9QL0fBO3doAa UeBy/73QQ9C5vYDWaTCYyL90q2EakS/dJqkY6OTB9Yk19OkgigiXManT588KhsjrNPcwyc/mv+FMv ebVIoMZft/Zyo0mzE7KnDoqaixblffjcBxlgGx+5RhSaaDjr/Zlq3UaTKEVgUcwfEpxPMFIIY5PT5 y0tDH/Q8msYyuT5BTmqO6Xj67zWnmiCL/jyYS+L3HWaS5TKwlHf4YTjmZ1HsLMjoH/XKNAS0U7UmZ 9oVVDGSA==; Received: from [2601:1c0:6280:3f0::a6b3] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTSYD-007csW-Ts; Wed, 31 Aug 2022 18:34:57 +0000 Message-ID: Date: Wed, 31 Aug 2022 11:34:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2] drm/scheduler: quieten kernel-doc warnings To: Andrey Grodzovsky , linux-kernel@vger.kernel.org Cc: David Airlie , Daniel Vetter , Nayan Deshmukh , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , Jiawei Gu , dri-devel@lists.freedesktop.org, airlied@gmail.com References: <20220404213040.12912-1-rdunlap@infradead.org> <68961bab-6448-9a98-8916-9c3cb0c5d020@amd.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <68961bab-6448-9a98-8916-9c3cb0c5d020@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? On 4/4/22 14:58, Andrey Grodzovsky wrote: > Reviewed-by: Andrey Grodzovsky > Andrey > > On 2022-04-04 17:30, Randy Dunlap wrote: >> Fix kernel-doc warnings in gpu_scheduler.h and sched_main.c. >> >> Quashes these warnings: >> >> include/drm/gpu_scheduler.h:332: warning: missing initial short description on line: >>   * struct drm_sched_backend_ops >> include/drm/gpu_scheduler.h:412: warning: missing initial short description on line: >>   * struct drm_gpu_scheduler >> include/drm/gpu_scheduler.h:461: warning: Function parameter or member 'dev' not described in 'drm_gpu_scheduler' >> >> drivers/gpu/drm/scheduler/sched_main.c:201: warning: missing initial short description on line: >>   * drm_sched_dependency_optimized >> drivers/gpu/drm/scheduler/sched_main.c:995: warning: Function parameter or member 'dev' not described in 'drm_sched_init' >> >> Fixes: 2d33948e4e00 ("drm/scheduler: add documentation") >> Fixes: 8ab62eda177b ("drm/sched: Add device pointer to drm_gpu_scheduler") >> Fixes: 542cff7893a3 ("drm/sched: Avoid lockdep spalt on killing a processes") >> Signed-off-by: Randy Dunlap >> Cc: David Airlie >> Cc: Daniel Vetter >> Cc: Andrey Grodzovsky >> Cc: Nayan Deshmukh >> Cc: Alex Deucher >> Cc: Christian König >> Cc: Jiawei Gu >> Cc: dri-devel@lists.freedesktop.org >> Acked-by: Christian König >> --- >> Feel free to make changes or suggest changes... >> >> v2: drop @work description (already done by Andrey) >> >>   drivers/gpu/drm/scheduler/sched_main.c |    3 ++- >>   include/drm/gpu_scheduler.h            |    9 +++++---- >>   2 files changed, 7 insertions(+), 5 deletions(-) >> >> --- linux-next-20220404.orig/drivers/gpu/drm/scheduler/sched_main.c >> +++ linux-next-20220404/drivers/gpu/drm/scheduler/sched_main.c >> @@ -198,7 +198,7 @@ static void drm_sched_job_done_cb(struct >>   } >>     /** >> - * drm_sched_dependency_optimized >> + * drm_sched_dependency_optimized - test if the dependency can be optimized >>    * >>    * @fence: the dependency fence >>    * @entity: the entity which depends on the above fence >> @@ -984,6 +984,7 @@ static int drm_sched_main(void *param) >>    *        used >>    * @score: optional score atomic shared with other schedulers >>    * @name: name used for debugging >> + * @dev: target &struct device >>    * >>    * Return 0 on success, otherwise error code. >>    */ >> --- linux-next-20220404.orig/include/drm/gpu_scheduler.h >> +++ linux-next-20220404/include/drm/gpu_scheduler.h >> @@ -328,10 +328,10 @@ enum drm_gpu_sched_stat { >>   }; >>     /** >> - * struct drm_sched_backend_ops >> + * struct drm_sched_backend_ops - Define the backend operations >> + *    called by the scheduler >>    * >> - * Define the backend operations called by the scheduler, >> - * these functions should be implemented in driver side. >> + * These functions should be implemented in the driver side. >>    */ >>   struct drm_sched_backend_ops { >>       /** >> @@ -408,7 +408,7 @@ struct drm_sched_backend_ops { >>   }; >>     /** >> - * struct drm_gpu_scheduler >> + * struct drm_gpu_scheduler - scheduler instance-specific data >>    * >>    * @ops: backend operations provided by the driver. >>    * @hw_submission_limit: the max size of the hardware queue. >> @@ -434,6 +434,7 @@ struct drm_sched_backend_ops { >>    * @_score: score used when the driver doesn't provide one >>    * @ready: marks if the underlying HW is ready to work >>    * @free_guilty: A hit to time out handler to free the guilty job. >> + * @dev: system &struct device >>    * >>    * One scheduler is implemented for each hardware ring. >>    */ -- ~Randy