Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5725713rwb; Tue, 9 Aug 2022 03:05:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ywWy6KoDLoHNRs0usMF+MXoSosssdy7DmVftqa5uamsgi+LOgGfhoDC/HNEwMXGVll7D5 X-Received: by 2002:a05:6402:4441:b0:43d:5bcf:afa0 with SMTP id o1-20020a056402444100b0043d5bcfafa0mr20915723edb.91.1660039508605; Tue, 09 Aug 2022 03:05:08 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn20-20020a17090794d400b007316cc27ab0si1687269ejc.980.2022.08.09.03.04.42; Tue, 09 Aug 2022 03:05:08 -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=gsMCa2Od; 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 S234467AbiHIJzg (ORCPT + 99 others); Tue, 9 Aug 2022 05:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbiHIJzb (ORCPT ); Tue, 9 Aug 2022 05:55:31 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5888644E for ; Tue, 9 Aug 2022 02:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660038928; x=1691574928; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=Ngy2Hs0iIAM0/RJBxq+PRFzbSHSSKnVL1SBz+/JmSEU=; b=gsMCa2OdDNqxeI7PfgGGtBQHZQurcBHcWpB9OZ86AQJT+YdTANr2Mgbh L9NVKXt13HCqyuiGERvAASNeAXiq5AXKCKCJ6s/tmdiMj+7dR8vjiCfqL wzup9c+6anRfZpGMf6S/zTDaOXIg5saIp1CV9vFvasK2Dkem/vsTPLjG7 3k+apPqxamG3GeQHF9jwpiUdPg72TOhrih3bfCXE/2rnXUqsJnP/XTOex TXYY5EHFKixgRcoQvHdMQ9tanrnOFRNU/OeOzumYY4bZ7gLtnAdmoOqv7 Ptb3EAGMBx7sZ+v488wxJJvsdFVObB3dPMGlbezL03J3NJbcnSv/pw1lG g==; X-IronPort-AV: E=McAfee;i="6400,9594,10433"; a="377089016" X-IronPort-AV: E=Sophos;i="5.93,224,1654585200"; d="scan'208";a="377089016" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2022 02:55:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,224,1654585200"; d="scan'208";a="731075507" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 09 Aug 2022 02:55:17 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 9 Aug 2022 02:55:17 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 9 Aug 2022 02:55:17 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Tue, 9 Aug 2022 02:55:17 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) 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.2375.28; Tue, 9 Aug 2022 02:55:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M/x2JR+oBlikRu0CPWa7pYFZOcsrxNmM/tFyOf1NDvFCgOllVCqdv4StMwk1AYiR+8qwH6/NtX8Ba7HO7an2WnDL2WYHF1G1s9vy9gWhfpEslyB5uAwdZMM8oywvqZlDUstzn9BMspjSYzuWmi62gYL0izlyBJJj/WuuZvdKdOb8SUpbb2VI7Y3mBE9x97nvDlu5FH9mNiwfiZLp9prxsqF6CGxMPA3iDHQcpHBENkymXBIZA7Si/Pm71KbQcS6XsAqiO1YbxQrE5TSglu+SA+f8zt88mi2UpW2jJG7NlrkU+U4N95aXe55EcuSqwWg3rxRIAIX9kJf9rvTQw7xyEA== 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=8NgoBPAA1s4ffzBJLNO/75NTKEDAhC07Y6lOhrYOcAI=; b=HKGaDlWxvDRXIzZkZhl2Cn0NilHBJvQ0olTRXyMxiVSyYMiMI1icMUFH7b2UMIUseIDvNywGYEQZWZnlMPiKTEtx0dLpoCar4lSJOazc3wblx4q1yPZdia/bLO8z1ONyEn+WjKRrXke1iRn7f8PlOmfs7+cXUk3NcqC1Sck1nCTb8CUlGSI85rbFnl83/b0p/rsEXGdTs8ewUneGv4KNYvE+o7Y+4LR1nIrpmG+/jLGQiN8InUsqzOKyFhbH7X+A6Nga8x05rwKaYo34nvBM/SwgXbV06W/HH8NeKgXLsWtkhjYaIYeOaCoJjsrDPaAt30ovVfNiy+L8ZKHYwmc6iA== 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 SJ0PR11MB4958.namprd11.prod.outlook.com (2603:10b6:a03:2ae::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Tue, 9 Aug 2022 09:55:15 +0000 Received: from MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::a968:40aa:6163:5c79]) by MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::a968:40aa:6163:5c79%6]) with mapi id 15.20.5504.014; Tue, 9 Aug 2022 09:55:15 +0000 Date: Tue, 9 Aug 2022 05:55:10 -0400 From: Rodrigo Vivi To: Mauro Carvalho Chehab CC: David Airlie , , , Subject: Re: [Intel-gfx] [PATCH v2 18/39] drm/i915: intel_pm.c: fix some ascii artwork at kernel-doc Message-ID: References: Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SJ0PR03CA0368.namprd03.prod.outlook.com (2603:10b6:a03:3a1::13) 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: 8b20fa71-fd72-496f-d929-08da79ed41e4 X-MS-TrafficTypeDiagnostic: SJ0PR11MB4958:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kLFWTeEFizsE3T6p4v2cOf/rdmjGrCvuVm0P8UqADvutNJMuTNYHiYbie+l1OjJX40dZwm7Ptvh1MjzY+lm7JboeuP0r/d5bYblj6uJ8IocWyXulsvwy3nMvZghHJb4nfY3R+7Fg1Pg+/MFr/5PZi4DbGN69praY97opM6NLnt7cC3poY6u5MXKWJfbAoRyOaVXkzoU7mkERtFiOxq8qFdPK3RMHMJ53x8O9nnvzy7bVLppMM7aW1sJ8bgOMzuU1KUc+JOtqZdpuzj6RcHCVtTRlnAqBRbD/i7Oz/AXQjpH/NAsEjAAKZ89qiYROt1612SxqqVebV6LtoUGW+vPmgIT357hCkaoIfSxNy+XT6d1V84rmhUnOm6i+KQsFI+Lci09iWrNkPA3woboajjmM/XVkhZo0kq/vuo0BssbOab9n3cWwQyK/Za0WLFOmBAzNpiqn+wxfYQP/3NQZqCrqyOlJqOYlYmzbrQCEw01LQQC8UaFifZelVTvdTeltYBWPpCe8L0ykMTMHZNNlTtpLH5UlVSQQKYJDz2Xn6qD0K3383t1AhsirmdTgMmztu0k759VMZp4AhQ/CTOsKgycLJAYEFyVt+qBTH57UREwKLb1jlrD6991VPt1bFdwXRmCxTJKFMq8+DDPFhFU/tHTkqasVEtz1c4G7Hamu4Ut9gYCDJ8M0WhtJE6fcovV7NIf/tUilnJi/0IrOZ7LKTIIA1gj56hCgH12ECOU12EMBE0Pi2kA+NzraYgiG2eM0IoORXL1fCH6HOezl15rhl2dvig== 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)(39860400002)(396003)(136003)(376002)(366004)(346002)(36756003)(26005)(6512007)(6506007)(41300700001)(38100700002)(6666004)(966005)(6486002)(478600001)(83380400001)(86362001)(186003)(2616005)(82960400001)(8936002)(8676002)(2906002)(4326008)(66476007)(44832011)(66946007)(316002)(5660300002)(66556008)(6916009);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?91YRN0UbT493bRknOyLGzz2iFJXd8QnPtWgS2jrmM7YxKp6DwKOZVHVYFewE?= =?us-ascii?Q?t55/16S5bwB2UtHU2Nt0wfB+x3URzNfzkcyMGapFeYfGGOZJ9gfPV0hdq/yK?= =?us-ascii?Q?1xLjgy+PD34pM/l0hJiFj2I9T7/foa+P8sB77/ajDU5mSn3g0e08wOb5XAFv?= =?us-ascii?Q?bTvYJRyfTVFjEb1+NpVD/0Vh1xHjFI/7Ij+8AYWGFab54y8oKJB2AuQlOZVY?= =?us-ascii?Q?m27+7UI3Aa/FacyPsIezlFryMCFCigR0qp/abK6jlGGclsrb25aj62ZYT0/M?= =?us-ascii?Q?JVpPPnvR6unubOt9t053EeGZ9TpFBzUFSH0DsbKOWAENUZVC4knds7zO9MPV?= =?us-ascii?Q?KBb+h6UTo6LVKi3uxHWHFPJyvMvVKl0cgMnuxIOalpBuCTsJZQEsBx1Bf6vr?= =?us-ascii?Q?D/wL02qsnIay2EO0oksBF6G0cQWsr3seurwSRaap0hXl496jwN+gzBnVZnEM?= =?us-ascii?Q?YEWkDUUcqNvi07XPYPfQuxe8HOuRvG1jszSGU9/1qlAkQwDxEeDGQaCaX6RG?= =?us-ascii?Q?fox0VcTREi1IRlyODZzOu8Lc9Y/nbqPoR0psAit3dZn3BsuDivDuL8DE2L3R?= =?us-ascii?Q?9AAuUjStMInL8UlA5wTMlxlUGNreqdheVRZtcRb/Sf7a95AyKusY831Ns+YA?= =?us-ascii?Q?j8XKxVrKfVct366EBI6AKIkmIpka+mjCznkr4EfMjofDT8QQ7RD5qPAYBAsD?= =?us-ascii?Q?EvNBWOvgA6nKEsewWdqhJUR2sSui6T5MOKRGV+wZSYd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exchange-CrossTenant-Network-Message-Id: 8b20fa71-fd72-496f-d929-08da79ed41e4 X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6059.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2022 09:55:14.9812 (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: b4jqHGLIhD+V+O2BZCcbVcoEmiP0zNcbVPk7k1c5+rCzhsYROkCXCnPnvphmeaMtOaU46p+2S/clSnf2JfpL/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4958 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Wed, Jul 13, 2022 at 09:12:06AM +0100, Mauro Carvalho Chehab wrote: > Preserving ascii artwork on kernel-docs is tricky, as it needs > to respect both the Sphinx rules and be properly parsed by > kernel-doc script. > > The Sphinx syntax require code-blocks, which is: > > :: > > followed by a blank line and indented lines. > > But kernel-doc only works fine if the first and the last line > are indented with the same amount of spaces. > > Also, a "\" at the end means that the next line should be merged > with the first one. my first reaction was: "do we really need those new empty ( ) blocks?" Then I read this ;) Reviewed-by: Rodrigo Vivi > > Change the ascii artwork to be on code-blocks, starting all > lines at the same characters and not ending with a backslash. > > Signed-off-by: Mauro Carvalho Chehab > --- > > 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/intel_pm.c | 33 ++++++++++++++++++--------------- > 1 file changed, 18 insertions(+), 15 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index f06babdb3a8c..d3393752b04b 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -684,18 +684,20 @@ static const struct intel_watermark_params i845_wm_info = { > * FIFO is relatively small compared to the amount of data > * fetched. > * > - * The FIFO level vs. time graph might look something like: > + * The FIFO level vs. time graph might look something like:: > * > - * |\ |\ > - * | \ | \ > - * __---__---__ (- plane active, _ blanking) > - * -> time > + * ^ > + * | |\ |\ ( ) > + * | | \ | \ ( ) > + * | __---__---__ (- plane active, _ blanking) > + * +-------------------> time > * > - * or perhaps like this: > + * or perhaps like this:: > * > - * |\|\ |\|\ > - * __----__----__ (- plane active, _ blanking) > - * -> time > + * ^ > + * | |\|\ |\|\ ( ) > + * | __----__----__ (- plane active, _ blanking) > + * +-------------------> time > * > * Returns: > * The watermark in bytes > @@ -731,13 +733,14 @@ static unsigned int intel_wm_method1(unsigned int pixel_rate, > * FIFO is relatively large compared to the amount of data > * fetched. > * > - * The FIFO level vs. time graph might look something like: > + * The FIFO level vs. time graph might look something like:: > * > - * |\___ |\___ > - * | \___ | \___ > - * | \ | \ > - * __ --__--__--__--__--__--__ (- plane active, _ blanking) > - * -> time > + * ^ > + * | |\___ |\___ ( ) > + * | | \___ | \___ ( ) > + * | | \ | \ ( ) > + * | __ --__--__--__--__--__--__ (- plane active, _ blanking) > + * +---------------------------------> time > * > * Returns: > * The watermark in bytes > -- > 2.36.1 >