Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp799892rdb; Tue, 19 Sep 2023 10:26:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH7WEmr21BCs4ShYYFI1o8vjCCzWt+jNWxmNrU8KNxdr0Tvqv0CRrSPShIcTcoXLHrqwHs X-Received: by 2002:a17:902:ced1:b0:1bc:7001:6e5e with SMTP id d17-20020a170902ced100b001bc70016e5emr85168plg.32.1695144381654; Tue, 19 Sep 2023 10:26:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695144381; cv=pass; d=google.com; s=arc-20160816; b=RYesE8WUEhMhFvSwlYvOf6jQmYB+w1w8UvtPiM+hij0wDFKQy5ZZbHEUHaiEI7K8WL JK7zbMd1nkf6apTU/KsU3SDF1P986zUK6sEi01myOqjC1qf2SqJWmv9CfMQzY5Swg6iv 5FrASwycD0YL6rbOQ8PHygw91Ubfa8r9h0JuVp3AQi/NmVTRJN+9EpoadCZWKhNFizPC uKKObRb/sbWTdrgTwiNrCq/3/FxpKerheQ9EbRc3LvSttvazd3TxKUMIimgK5EX5EKfE Xjf1R0aoeH1mrY/s3KOX11WKijUZMi86QLzH2JF2J0Wk3ZoZYVtrXTczG5S9VLd44cbO z6Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :date:message-id:dkim-signature; bh=rtBZkabdS3xUF0vOnQ6ZRg+4B1ZjlpwaL/vkLZM0lpk=; fh=V9eM2uMnC9DV0mw8+ZA+fnQwtrD0YTHooWMSBEV8G40=; b=X7ya21IeyJon7XJ16WYR6D8mcXB2/nkbGo4xMHJrGqOr56mh3/KF2oacg54JVXXUg7 yN/BQpJ/wjRV9EI5aAcBGZxTB4QICGSEqXwxkc921N1DhvlIJ5P8SRJ61b0tFLkedrMU 9mBksPf19xazp36u49SuDoy6zPqSoHTiR9BBgE/gfJN5U7hmusePE81vokm+T3KHTba+ 2MZq30WbnF4yJvv+8JdU1aES+Zt90MNK1EAnvBbGOdIbDs1qhBTRuecPIyGBxuPrBQUY 3BSiyZVRcNi92uau7nTcIpJOYxoZZDJEGF3dCMGjjrkC2xSqz+VFRePb6GBwFNvuvjkg b3mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cornelisnetworks.com header.s=selector1 header.b=RjPATQiQ; arc=pass (i=1 spf=pass spfdomain=cornelisnetworks.com dkim=pass dkdomain=cornelisnetworks.com dmarc=pass fromdomain=cornelisnetworks.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i17-20020a170902c95100b001c3ae631b83si10628078pla.606.2023.09.19.10.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 10:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@cornelisnetworks.com header.s=selector1 header.b=RjPATQiQ; arc=pass (i=1 spf=pass spfdomain=cornelisnetworks.com dkim=pass dkdomain=cornelisnetworks.com dmarc=pass fromdomain=cornelisnetworks.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 13F68806AFC7; Tue, 19 Sep 2023 06:11:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231968AbjISNLo (ORCPT + 99 others); Tue, 19 Sep 2023 09:11:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbjISNLm (ORCPT ); Tue, 19 Sep 2023 09:11:42 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2120.outbound.protection.outlook.com [40.107.244.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82842F4; Tue, 19 Sep 2023 06:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mbYZ4bjm9UY3gzIXyQMsWcMNILoxzmRUYjnDY462+czMEMU4OoK4jp5QraraWRyyjWwpEi5lQNyawnvBO4QBf96kC8/TVKjORIs87lboCTCHDAEo2OZgtyhTHy+QEwRfWZk+tuAVMiU6IwCyg0aeUT91N8+pNUvyoxdAXJnnX95EIU1Df1tUOecm5v3BbEFyrOnxXEMIeewWrdS6fmMfMAIUuSRwJHEUjIY1mFhb/qUMGnekFBiewrEQN1j6nHmscxMgqn2wDhTbzP7U2SanB7gGOE/sv6m9DGxn2uVWc72iuogfMvvFHeY3NGYgsWIuUpKSe6by17+fhmFqfSpHKQ== 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=rtBZkabdS3xUF0vOnQ6ZRg+4B1ZjlpwaL/vkLZM0lpk=; b=PvQAgkrRSvfcYnKEC6uN0UxQ7jLR/nhN1gGK/vxY+bveqyMCVfcaRc96vaNPVRZ1e+kLwfUa4cmmVFLK8NfoTEDXv6d7dDd3IUwDSCTH/3jrV0dscy0fdseLGksNqfoqFBt5gFSFqLbNuIEUAkrmwU3GGVGgHYKy+xJdOE5MOnOnWIZNdKL/UfUb6n3udGk08GJ3f4yMrhezFdEQ2MI+QNbER8TRwRw+olhouky6Inae9LcoHtHbaWk/MN1czxcpVY0zrKSwhKZ+TNOZ+sGj0HRru8oD/vP8dCldeQaAk6C5qoWoN9YsL1aPICiu3eJCtoShU69dzSoUzZA5/b0/+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornelisnetworks.com; dmarc=pass action=none header.from=cornelisnetworks.com; dkim=pass header.d=cornelisnetworks.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornelisnetworks.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rtBZkabdS3xUF0vOnQ6ZRg+4B1ZjlpwaL/vkLZM0lpk=; b=RjPATQiQYa+/qGJoxedVQXe16sERIMmJasK7ZgMZYCs1TYZFF7ZGGG+rn5D4Hg9fzfcq3AV2pmmiqgqJWwsBEHgx63RD4gdPs358eA+AJTwSZrt2OAYm/rB2pMoO5KTtsTM2719M4iR8tf/nuU8GRB/5Ua80NoHBkb07oEALlQL7lbxgcDcrXtKcPcCwqBTJa3V8N1oyPJJ9L38An0FeRF3ZPtxgSnqG5jk4xGffyAixQg6PvfgZ44FhZrmkMHSQiKY8KBOO0AsXqOfh8TR1tcxaScCq5jUswh6a8vt9k/mwnFlyPWwknThHmknnVlis7WyoYx20IHSP/Rd+3i0gWw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornelisnetworks.com; Received: from BL0PR01MB4131.prod.exchangelabs.com (2603:10b6:208:42::20) by SJ0PR01MB7495.prod.exchangelabs.com (2603:10b6:a03:3db::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Tue, 19 Sep 2023 13:11:30 +0000 Received: from BL0PR01MB4131.prod.exchangelabs.com ([fe80::386c:b0e1:bf68:cf1]) by BL0PR01MB4131.prod.exchangelabs.com ([fe80::386c:b0e1:bf68:cf1%6]) with mapi id 15.20.6792.026; Tue, 19 Sep 2023 13:11:30 +0000 Message-ID: Date: Tue, 19 Sep 2023 08:11:27 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/8] RDMA/hfi1: Use FIELD_GET() to extract Link Width To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Bjorn Helgaas , linux-pci@vger.kernel.org, Jonathan Cameron , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230919125648.1920-1-ilpo.jarvinen@linux.intel.com> <20230919125648.1920-2-ilpo.jarvinen@linux.intel.com> Content-Language: en-US From: Dean Luick In-Reply-To: <20230919125648.1920-2-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: DS7PR06CA0047.namprd06.prod.outlook.com (2603:10b6:8:54::27) To BL0PR01MB4131.prod.exchangelabs.com (2603:10b6:208:42::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR01MB4131:EE_|SJ0PR01MB7495:EE_ X-MS-Office365-Filtering-Correlation-Id: 97bf9bfd-724a-4b52-24a4-08dbb911f083 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hgx3bUmWHthNg/sxdLlEy6bWdMF/4V/+QzJt8rOlxVykd0AUJXbefeoQMrafCNn888hMvjpn/Qzpvjy4i+fXP3lom2KfclKVVa7WnO2POtyKd2Tppng0vs0xGCjq3ecejr1Bw+9evyCATsZWpLDpHYCyzW8uZ7fBC9yBdZxT70IUgzLzFYlZRkUoQCwnx8i8Yvc0jRBdDe44JvkfFRcOAddTVCZ8MkHYsbTHSDl0ayqc7yiJ2YiJlU2r3H2Zy/YaUuh2McrDU+plZfFG6DzeQl6z7A43VGSz7Wo264iSEnbHBjX1638awWk+JucXAkjTMqWoMcS5ILeHOHL8rRIESjuZV8Ajlu24liR/xKquneS2erTolNDrbGqDOv9nTkGR5zjipDkZspZkvxhOOMJcm7RJ6MlNp2WqF8H4/Gn4O1ktOfMfswbVp9zqCwD+Crc4sF2WptoewF4RNgiL5kzJsp9NLosH6SoBbrEiqBJqeAyUwF/fq3g3Pt03eqdcky8YTa+AwYGBAqMcq1wL1TwJUYS9rr7xlGz0eohWqwrnkN5LCmmrIfvYcJs/4hOKRwctv6+a3O/v4skc48e05YGFB8Bl3xxd+7dXBiMykrs6OANo1mN/UDoRZmUUxxmxU/K0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR01MB4131.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(346002)(376002)(396003)(39850400004)(1800799009)(186009)(451199024)(86362001)(36756003)(31696002)(31686004)(478600001)(5660300002)(6666004)(6512007)(6506007)(6486002)(110136005)(53546011)(44832011)(8936002)(316002)(8676002)(41300700001)(2616005)(66946007)(26005)(66476007)(66556008)(4744005)(2906002)(38100700002)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WXc5dTBxMXlYNjBtTVJpRnlJYTkxa0d4djdWeFQ1VWI2S3JBb2hheWJlSkQ1?= =?utf-8?B?Q2xsMkFJcWdrZkRKQ3c2dm16Y2QwTlgrVXJMclBzTjFad1FtMXFwQ2JVQ1h1?= =?utf-8?B?UXdvYzJic0kxdEhVTWtyZW40OFVDRzF0QkRhZ3NZZ2FZNVdkVGtqNllOU1BR?= =?utf-8?B?Y0I2d21hZnEyV3ZXaFh5YnNIUCtJdU16QVNhY08wbmFkTm5TOFR1M1dUZ1RK?= =?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wa2l4TnIveDVIQ1oreGp2dGxMekNyb2g3?= =?utf-8?B?NWxkMTltcHFIdHhNdFFtcVV3RUVLVG9zbTZ2U05RR1hkc2VmQWpGZnVNWGZm?= =?utf-8?B?bFJjYTJnLzVRVXVXSWhmcTg1cWRkYkpoNGovVXBjVE9vaGdMZ3NtQUw4cEY2?= =?utf-8?B?VkE9PQ==?= X-OriginatorOrg: cornelisnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97bf9bfd-724a-4b52-24a4-08dbb911f083 X-MS-Exchange-CrossTenant-AuthSource: BL0PR01MB4131.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2023 13:11:30.5144 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4dbdb7da-74ee-4b45-8747-ef5ce5ebe68a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L9nJ37vFKZvuc5n479djOItpSNBU3ywgRAoOvMq21M7C/Z3CoZpcrxGxjhQ315JYhEDy/yPirNWfG1pGgslRtQLb6YQFFlJWmDaDmfqZvrA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR01MB7495 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 19 Sep 2023 06:11:48 -0700 (PDT) On 9/19/2023 7:56 AM, Ilpo J=C3=A4rvinen wrote: > Use FIELD_GET() to extract PCIe Negotiated Link Width field instead of > custom masking and shifting, and remove extract_width() which only > wraps that FIELD_GET(). > > Signed-off-by: Ilpo J=C3=A4rvinen > Reviewed-by: Jonathan Cameron > --- > drivers/infiniband/hw/hfi1/pcie.c | 9 ++------- Reviewed-by: Dean Luick External recipient