Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp868540imw; Fri, 15 Jul 2022 14:34:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vo7B3oDYNWwPN3xYhstmlPSnloYDr7G6YGLF5it0cG61g5nGGlXEcTF5bcmj1iV49eV51I X-Received: by 2002:a17:90b:1bc1:b0:1f0:3830:8c99 with SMTP id oa1-20020a17090b1bc100b001f038308c99mr24755624pjb.1.1657920866801; Fri, 15 Jul 2022 14:34:26 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k70-20020a638449000000b00412b171b6b4si6515007pgd.197.2022.07.15.14.34.11; Fri, 15 Jul 2022 14:34:26 -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=@intel.com header.s=Intel header.b="bDlw/yc6"; arc=fail (signature failed); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbiGOVZz (ORCPT + 99 others); Fri, 15 Jul 2022 17:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbiGOVZv (ORCPT ); Fri, 15 Jul 2022 17:25:51 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4159874786 for ; Fri, 15 Jul 2022 14:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657920350; x=1689456350; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=nDJDCMrjdqb5BI+MmektbysLrixDvNhh7fj2E4gi5uM=; b=bDlw/yc6M/Lgy2P+cxclNqCyZzxIvdGdTSVsMUqXEWJHqjpNY2AZzEnr j8MZYUDcHIeZqjRjCnVKHgZZ8MpRsVcHEVi3mUlI6g7sHWU1Gf9Zrs7iU /uKKMLPNJGPvpbPtfaJbURAAIRqgWqrz13VOC2/BmZSiRCox6LGoyWu1q yRQAmQZt7fUrPEAnXbhTISTH0UBBMQn+7MG9RRYZT2BrJRBCkU/x6BN+J etog+ZEqkWC9ttpC9V1BBY6LjGXDlvMSwguWZE0vMciQg2YGNVMgQDtxc 75D5GuUrfV8FyOvxqnQhSQj43klGnmKRsFBmLCADdz5VuqkHrMqTnRUcQ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10409"; a="285929834" X-IronPort-AV: E=Sophos;i="5.92,275,1650956400"; d="scan'208";a="285929834" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 14:25:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,275,1650956400"; d="scan'208";a="738810614" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga001.fm.intel.com with ESMTP; 15 Jul 2022 14:25:48 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 15 Jul 2022 14:25:48 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 15 Jul 2022 14:25:47 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Fri, 15 Jul 2022 14:25:47 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Fri, 15 Jul 2022 14:25:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NxziHyYyHSw9I/9OLZGfUwwL4mFD6Qbbih8YaKjCsA3lRB01WvOowIPI1g3pk+UNzNsWvltFuSTg8dQemodWB7/VG4Jic2zm2rBUFusADQ0xWKZ6WFBgfLCO9x902mnhKR88Wjxb0KRJ5GuImXgv60jcwtsDccd5DRJR8t6IQLhVQAhz5+xMQ3YmAkjVAvV3ebUAA2PlMAiWRZ7u0WDs/MO6oZCvEYVFMUHsjlSSXEBPA5aU33OMAdJeVZ8JHiKXcOyuWH0vmDSF2BwLZ5p8ZkGaO7MbvzSFn2TpAaV1QyggbHP2VnjnpBPgaFUW9qr2SO4FHjBqyTA6G5GMpAxoZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4C5RFaMMAQolrCN91TSpR0J7R9DYN+quU2+Kw3igQ3s=; b=n8Is95RHSg0S+gJiPiiIASflvEIlpulQzjouBccCdThNofi6ZG7xm9VpyimTjQZZJQGJS7gZDNcO9nhktXHyN91ZGLqlScnEAKx6lWPNrIh1TWhzuTUQwZpCi9rg/zkjcFHfEEV+egiuf9XuKIyt4xetae8/TlDY2k6ZOJzeGSNw646QZroNmuz74KIQlnkW11Bsfzk5hSlHXob0nkRjGK/iWIo6QU3qs5zE21sTTLjyUykIZwpZFPiRwNZx1gFW35exevfWKPIDmVrCRbQ2j9ZI2BMDh5ojNF7TICj5BKUe3fbIZl0CCx0CRQS2IFj8ByY0NoztUdAsEbMSfia9sQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN0PR11MB6059.namprd11.prod.outlook.com (2603:10b6:208:377::9) by DM5PR11MB2028.namprd11.prod.outlook.com (2603:10b6:3:d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Fri, 15 Jul 2022 21:25:45 +0000 Received: from MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::8053:3c59:9f5d:b615]) by MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::8053:3c59:9f5d:b615%9]) with mapi id 15.20.5417.026; Fri, 15 Jul 2022 21:25:44 +0000 Date: Fri, 15 Jul 2022 17:25:40 -0400 From: Rodrigo Vivi To: Mauro Carvalho Chehab CC: Thomas =?iso-8859-1?Q?Hellstr=F6m?= , David Airlie , , , Chris Wilson , Matthew Auld , , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [Intel-gfx] [PATCH v2 20/39] drm/i915: i915_gem_wait.c: fix a kernel-doc markup Message-ID: References: <7506a4fc57d2bf064f6a35d70c8cd7885082863e.1657699522.git.mchehab@kernel.org> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7506a4fc57d2bf064f6a35d70c8cd7885082863e.1657699522.git.mchehab@kernel.org> X-ClientProxiedBy: SJ0PR13CA0199.namprd13.prod.outlook.com (2603:10b6:a03:2c3::24) To MN0PR11MB6059.namprd11.prod.outlook.com (2603:10b6:208:377::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0fb68bd2-2458-4554-16b0-08da66a893d1 X-MS-TrafficTypeDiagnostic: DM5PR11MB2028:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zlc9OiJQnkkkbKZDMNEHHEY3fnUAYc3zeFsutfIY8SrLHFaaOSzZ7XuQVyIfmFBpFx8bxEoTPCs2OQ6F/xbB5kxXuIRG+hBuFpDwGKq7eLo8/g4nSnPGUThcNHHwsFWi6QBDtYZBOucCoZ5E3RuoWpN6mxRkkgK5qQnuH1MKJg8JVrYHR6gyhKP46oY7N1gaLrAfBkxlNL9E+vK/5duoUv+hxki+3NyDZrEY6iUNJ2qR7ah4lE4qNJcseMqi7GgHO/hXPBA9cMqVFxpG7DPfnyb6mufFGTQqjEacFEU+SGqVaYhh1QQZyapLiOhTlGjWTs1M7rlP8ubavOIi1IxtwQgy7IZSIhwTjMn1QkVuWBT3M4U/2F9K1IQp1QMEabZ56EDhmHCaQ6H42ZZyDkVzarpYLfBIZHXhL7wilGm0QGR/Raz7assYzaFIipxZ+qKetNPsoXJx4EtRmZzvrODdFyoRl3qnx9UOzviyRhY9mSOmhlFI5IXZFzzU+P0DvJfsDDJ4Oynrf4eD2638REQ+KAXAUw7MFIbAdM9Q2avOS1fCRs/wjBZqCN2k9Olb0YCjDGCBEuCY5slgk/TP8c547eHUc0oYUgl0n53q1PAEatyRwXEghNYs7GpeRyWH2BVc8AVlszpouEeMuICil7Nb0Y9gnPig4ioYtGZFQC/pK5DZ12kaW+D7Uxb4d8Lt1OVWBr6X3yM5F29EOHf8Yn9LDtXrJTwgyd85TmhUigMZWZarCzYwzCcQXY+LkDh/XGrovjms6ChbFY5iws/9ggstE+vaNtHAozrOW3M/1zA9seA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6059.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(136003)(376002)(366004)(39860400002)(346002)(396003)(4326008)(66556008)(8676002)(66946007)(66476007)(8936002)(36756003)(6916009)(54906003)(316002)(86362001)(82960400001)(38100700002)(83380400001)(186003)(6512007)(26005)(6666004)(6506007)(41300700001)(966005)(478600001)(44832011)(2616005)(6486002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?KsuUfPDHlVuR5Q8h9JeIoYbSx8LsCNuPGBvsneiV6nN5cceLROFshbRUqYjd?= =?us-ascii?Q?Wf09gtT2SF48KfCd80yTV+XOM3/eO1HlL8vrV7tga7JxApFJtNmUNsw0wJKA?= =?us-ascii?Q?QTGf+IFJrOdFjhyUh66qA5M1MQW/0/gM5F2WHIbsNbxNcpfBXlHEvkTPax2s?= =?us-ascii?Q?J5vTcwrvGlg1pewRfV2ORk5C/ZiugSCqdmypoobw87Xhq/Z9bBWf/53XCgBN?= =?us-ascii?Q?h54pevoCkvWCXbSy+nQOMfn11ORgduiRE0JNuJ4Wb9I67mfQWy+c1MyZwmpi?= =?us-ascii?Q?BBhs6a7ZUC1d465EeCbqyUqmt6Oaw6CRDokSgTDNJKfIbo04o/U67OK28Ffk?= =?us-ascii?Q?3ERCn20Ma+Wtk3RR6aK4o4nUl457KzbHyAA6/V9cF8KLkBuACK/tSz+L+DEz?= =?us-ascii?Q?ElnUZL81h+RaWkh/Uga9dNUg6cwEt3Btu+igzbEY2hLyVYLF3snBA6A38iwj?= =?us-ascii?Q?sCikrDHNY38sWzrdjmFw0x4vQvzviFNbK7ezqO0V3+Cmx7AE+PEnzsIjTuco?= =?us-ascii?Q?JKmjMVEC2+pxzsmzF4SRgL5H/teR6eTfl2iH1naM+/P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M8MZaHKNG9VNDeZ0wGir/NeHhAuozWFa87huC895LSQ?= =?us-ascii?Q?GJ+3eThGJZhTpYEwd9GijD31SkE5+kRBlIqCBMI1T3E0KMe9IqnsNZmZ5/eb?= =?us-ascii?Q?V82V2Z9szQIv0LCG45HZAsU182SvwACLean5I4YXcjveMmnYDOpAhYGnykjO?= =?us-ascii?Q?9g=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 0fb68bd2-2458-4554-16b0-08da66a893d1 X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6059.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 21:25:44.9494 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l+WfxEZ0KlZ29uF/Ih147Af5yPN6IE5J1rkA2t+4MjEbu8XhYYRbBhuRgwWOMl8DgFJG+pKJC6Nqk95DuqHFcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB2028 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 On Wed, Jul 13, 2022 at 09:12:08AM +0100, Mauro Carvalho Chehab wrote: > The return codes for i915_gem_wait_ioctl() have identation issues, > and will be displayed on a very confusing way. Use lists to improve > its output. > > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Rodrigo Vivi > --- > > To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. > See [PATCH v2 00/39] at: https://lore.kernel.org/all/cover.1657699522.git.mchehab@kernel.org/ > > drivers/gpu/drm/i915/gem/i915_gem_wait.c | 24 +++++++++++++----------- > 1 file changed, 13 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/drm/i915/gem/i915_gem_wait.c > index 4a33ad2d122b..1fd5cff552ed 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_wait.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_wait.c > @@ -210,23 +210,25 @@ static unsigned long to_wait_timeout(s64 timeout_ns) > * @data: ioctl data blob > * @file: drm file pointer > * > - * Returns 0 if successful, else an error is returned with the remaining time in > - * the timeout parameter. > - * -ETIME: object is still busy after timeout > - * -ERESTARTSYS: signal interrupted the wait > - * -ENONENT: object doesn't exist > - * Also possible, but rare: > - * -EAGAIN: incomplete, restart syscall > - * -ENOMEM: damn > - * -ENODEV: Internal IRQ fail > - * -E?: The add request failed > - * > * The wait ioctl with a timeout of 0 reimplements the busy ioctl. With any > * non-zero timeout parameter the wait ioctl will wait for the given number of > * nanoseconds on an object becoming unbusy. Since the wait itself does so > * without holding struct_mutex the object may become re-busied before this > * function completes. A similar but shorter * race condition exists in the busy > * ioctl > + * > + * Returns: > + * 0 if successful, else an error is returned with the remaining time in > + * the timeout parameter. > + * * -ETIME: object is still busy after timeout > + * * -ERESTARTSYS: signal interrupted the wait > + * * -ENONENT: object doesn't exist > + * > + * Also possible, but rare: > + * * -EAGAIN: incomplete, restart syscall > + * * -ENOMEM: damn > + * * -ENODEV: Internal IRQ fail > + * * -E?: The add request failed > */ > int > i915_gem_wait_ioctl(struct drm_device *dev, void *data, struct drm_file *file) > -- > 2.36.1 >