Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2219399pxb; Thu, 3 Feb 2022 01:52:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJylCIxkWz4tl+wNwrnN4QIbcWMGrBIJs7FpH1pcpu/0xH/n1lIsSyphSd9lW5aAD+LDlERJ X-Received: by 2002:a17:907:160c:: with SMTP id hb12mr9843791ejc.46.1643881928304; Thu, 03 Feb 2022 01:52:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643881928; cv=pass; d=google.com; s=arc-20160816; b=TdIWw33BJjKgYHkpPzIZH7TYbslzvn/mi5VeOc5m7MeSdksIOfIjd2fe5LdUFRNyG/ CyXM7aXVNq3yyvfIBuG4cR7p8oFJUPVDYWgQWYkppdSt/5EhpfoiqybHRgsoupEW8uYA 9rXlBri68U04LjBHNQ0Xc5qKI+44oN+R9lkATfrLB47oO2zfR5fYYhPNaWuFSJPQzIe+ 23FP9kD2pK3kTfYNxgV6qGKgg1GJXVDvcBXtOuNLJZa+8hokr/R+USyIGr1MsUYJ5nAb TTIqaxrItvQgmYt916FR2ryy32wfwQlLi+Qrup8Atq5G7lffF+1B8CKIvxWkYHKp+pZP owZg== 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 :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=An2J9PO9XQyHlctkfCvk135EHSRiMUaO9EweLUYFZhE=; b=wIR/x1/4+6EQgaQVR00KciqPN5DJNbFEdjfcXWfQAKWV+KnWarOXtnzcV0GDs7o5C+ L4HE0sobLlFPLwTIaD5Q4F+ftTz+hYcYLka7PvSy+5TpeaZIR9giWMNj334gFj37Ukfc 35Hh3HlsVsPPhfdJut9EhcOJTtutKz3FgwHVw1CVZuj6sn3PTIkvBam7SaYmN8YtUItB kkwUkRrev2kttPBbpuM4kAZ2gTuTx6nZAFguHaxzEUb7CZqmHJpAWUZ44DiAqcuxKAU8 O0ZUderx+7EtKnsxJN//qasBRF6BPctzlVE7sI6QwLpuLHMFTzNVh4Xfud9SM2OiAUsN JLkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=vPZN3P9+; arc=pass (i=1); 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=vmware.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb18si685198ejc.473.2022.02.03.01.51.43; Thu, 03 Feb 2022 01:52:08 -0800 (PST) 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=@vmware.com header.s=selector2 header.b=vPZN3P9+; arc=pass (i=1); 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=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236616AbiBCFwg (ORCPT + 99 others); Thu, 3 Feb 2022 00:52:36 -0500 Received: from mail-bn8nam11on2046.outbound.protection.outlook.com ([40.107.236.46]:7905 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229954AbiBCFwe (ORCPT ); Thu, 3 Feb 2022 00:52:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XN6IVAYDUT5FoeHDw35/vPqEBNPkmXmbX2od6WDWnuxX6xP5vIb2WiO2byxs3LP8lMRGyDSN91HUCqxkIX0U0oHs9FlEAHy0XQGCx2+ElnNEHKENeOEoIdNdRd3qZKQL7RQvXuKOtLQIiLJYtdnfChWnCaGRBOJq/lYjjjA348DQziKBtukmdAIlkGjVHUn+33k/l26axK11f6SZ/j2v008Cb8DbG5nVWaotiVtuzaLZgBWw112xPZV3w2u96oKGpibA2Y0Uym3pMckT432qIKh9b8e2hmm75aV4iD0p6q3E2PV6ipXn3kMTt8lXj7WSBYG2/Fq4AEhfQmpk59lytw== 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=An2J9PO9XQyHlctkfCvk135EHSRiMUaO9EweLUYFZhE=; b=JU1XqRXGAxnFQ+BGjp/ZdWFI/Rk2Sf70FLjnDam4vDxIGATEOvG8gofMIGeCrH6RWK69N5d2kdbrCmLUbx4pyK4zuwtfWNvkX5AIdykz211cKm4dukgY2scODrBGQ6X01C1s92FcvJRhtOOAVjLAAmYWLlN0y49D8Uhep1ZQWiQon1bOix/qYmOobHT86jnvWsPhl39MZ7KgnuhPuu1RXWQ3EBejymm3LAerzSv9ABBR65M4ghR5EFcyATSHe9FhNG7uDa4gWbE5OXs+rkfhCQuvt6vps3X8irMEE+lqkLge9HcrHt02g+JZkoNFnHAeyZfAIfHcVTD1u5YF2406rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=An2J9PO9XQyHlctkfCvk135EHSRiMUaO9EweLUYFZhE=; b=vPZN3P9+5NYOerGesJC+kNRoVCXkPl/ZTpalOHX4FKbVmxGIY0r6lAo9Ot+kJGEP7oWdsCAmmM7bbHRjaolh2CHeUD43v4qZUBzvoUWO3pjqgcB0hPKrbP9I9+S9GfUiQB5zSTcnKcp4edrC5snV6/br5hMNy9IHXZUfrM8iwZQ= Received: from PH0PR05MB8510.namprd05.prod.outlook.com (2603:10b6:510:a7::23) by SN6PR05MB5040.namprd05.prod.outlook.com (2603:10b6:805:ee::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.11; Thu, 3 Feb 2022 05:52:30 +0000 Received: from PH0PR05MB8510.namprd05.prod.outlook.com ([fe80::58ce:6e93:260c:4337]) by PH0PR05MB8510.namprd05.prod.outlook.com ([fe80::58ce:6e93:260c:4337%6]) with mapi id 15.20.4951.012; Thu, 3 Feb 2022 05:52:30 +0000 From: Vikash Bansal To: Bjorn Helgaas CC: "bhelgaas@google.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gregkh@linuxfoundation.org" , Srivatsa Bhat , "srivatsa@csail.mit.edu" , Alexey Makhalov , Srinidhi Rao , Anish Swaminathan , Vasavi Sirnapalli , Ajay Kaher , "ymcavikas@gmail.com" Subject: Re: [PATCH v2] PCI: Speed up device init by parsing capabilities all at once Thread-Topic: [PATCH v2] PCI: Speed up device init by parsing capabilities all at once Thread-Index: AQHYFAK+oPrtukqCvUK9dsIHNG2zPKyA0awAgADm9oA= Date: Thu, 3 Feb 2022 05:52:30 +0000 Message-ID: <6827AF44-4412-4ABA-A66B-562D7E86C847@vmware.com> References: <2A631B59-B3BD-4B3C-9DDD-795B7843333B@vmware.com> <20220202213550.GA44337@bhelgaas> In-Reply-To: <20220202213550.GA44337@bhelgaas> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.57.22011101 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 65021c2b-7f0b-4ec9-7f78-08d9e6d95dac x-ms-traffictypediagnostic: SN6PR05MB5040:EE_ x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-ms-exchange-atpmessageproperties: SA|SL x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: djDpsIKx+R7EEL1wGxxRzPQdioTeqdfQ/JqtzUaxlbtsThquHzhEKShnqoW6BmH8o/JGCVYP9pNTR4cK8TYwO07mvpO3yB2K9zE31IdIDS9Z0qyqTDAsRXf7nb2b2zkhg5oZzXJ1bOzjBc+9pT8Uvjcy0KGiuaxQGGdfjWX9u/julGrDaiznHbb9AsUYOO5xq9vnANyRHahYUMw5JG09NNNjoQ+HqbxVIjGJYi1CYJ+DqSyuhzaSQvUbb9+fTHtMKGaC1RaZrjUeWcsr6s4rXm6qWWhcVJfXxO5GmklMTdWRSz0D//F+uGXGMz0pTMvVyVWr1B8lN5nmoy6EPSZGNjNkkxjjAiHLmwq7sKutmMbyeCNa/epbZpJa65WQ0/HFhGKptDxqpwTFxKLngqAxSLD3SUpSVDmNP+OcA0tMkSgSITlFIDI+spcgfk0NEi9sR7XQvQX0JOSyvJO0fwzXDregWbae+iymBp4qGTBfSd/QLOV7sSkwbmMY4U0qtBO1j6jXW88T4pQso4Rr9ve/mZmjcnLqJDk4rWouY8zE8OD4wj4Iixlx+FW8Lqs9n0UZWeqlFen+McGAFUsOGqHlGq/eA0HHhDwrUSZ7qb6gFxmIMMCkyz+Eu3Bfz6PWUj/1QgsrFHPH1YE+RN+VvRMQ8XigtAmp6H3mNOSaGHixyn+4Iy32l7r5/iEHDYbly/axCis3hSSTuem5k6NQFUpsG+b9gkZg9LYa1tXxtlzzpNgxCCOpz1EuQuu/0yBRg+9IrhSo1wysnJewIy3iiDKa+GWISwUfS1PmDEKTtHzszmBB32oFX8l/Bg8LxfmC2ZpHPz4+7Kdp3wrY4L8Lh81vng== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR05MB8510.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(64756008)(8936002)(36756003)(2616005)(8676002)(26005)(5660300002)(71200400001)(122000001)(4326008)(66556008)(66476007)(38070700005)(66446008)(2906002)(66946007)(76116006)(186003)(91956017)(6916009)(38100700002)(6506007)(86362001)(508600001)(6486002)(33656002)(55236004)(54906003)(316002)(83380400001)(6512007)(94990200002)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ZlpRVDhEWnA1azl1VjFtR1RSL1J2M0NibnVTUk4xYWJIdUJDS1QybWVoQ1NI?= =?utf-8?B?clRhYUlESmgreXVhcG1lYy96dWg1SGFJK1NtRWpzRmM3YlplellZQnRTR1lN?= =?utf-8?B?UUppQ256SUlpM2VvZDZqWnJpM2FvUjVldTNycHN6OHU3SFFtVGViWWhNMWcw?= =?utf-8?B?TkhEaW9mdG1sbjV1YjR5WUdZNC9xbVF2R29CVms2YmQ1YlNsZHlGV3JicXBZ?= =?utf-8?B?MjV0Ly9MZkV6cW5PcUI5OVNNdS9vRlkzdWxNcWRzZzdoMjVhL0Z6UldUREhn?= =?utf-8?B?MUVjcmp0TXBINkUwY1hmWHNLREpZcVlBM3prZVBLdjJZYVJOSlhpeUVua1RH?= =?utf-8?B?WURhTGVCOVBYaE53VHN2cmFLbEtmTEFzVjVuVU1pbFU0a2FEYzZ2dytaOG9T?= =?utf-8?B?ZzVGV3lHUXhmZmxOaWZBT1dSZlBtdFdWbTcyK2l3YzF1cjVKb3NZd2lJS2xT?= =?utf-8?B?V3ZLSm5JYmJBMEhDV2ZEbHpwMkU3UlBaZUpFZ01KQW5HZExSbVpRbWRZK21B?= =?utf-8?B?a2Zoc0Y1RHFMZ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?eFArV2JrV0pzcWNzcGZHWkI3UldPemJ5anIyc2s0M0QvYXhwdEsrS0piOTI0?= =?utf-8?B?UHY3cE1WQlR2OHllNkk1RzdwNnhqZVZIdkNGSVlna1BmUTRUMFNzanh0cmoy?= =?utf-8?B?bzBxMjZmYm9la2lYQVREaHhhMGM0WlFwdlgwSm1nWXNIWkN3ZEJ0S0NKYm9H?= =?utf-8?B?VW9FQURxOHBnNGVaWnRRMHFhZVpneWlsd0VXMVZsK2h4ZGlyTzdUVzV3Y1gv?= =?utf-8?B?cVdNem1yakZEYzFKWUR6bmJsZUM5OUpJZW01ZEYwcVBiT1V4SGhDTDM2REhD?= =?utf-8?B?VndCZHk5cTJCR1pxY3pJZ2NWZjYvbXlKOXRlVzVxK2VlaVFFcTVYV1VNdERD?= =?utf-8?B?TE1HMU03SFZZSFJGMGRBdXU2eGlOWlEvbElPWDVtRE9aM2toU3F6bWgwSWZs?= =?utf-8?B?L1ZETkFNRjBueURPaER6SlpsUlE2NFhZRFk0UzM4VHNDd1JacmN2ZmFvSXE1?= =?utf-8?B?RVZwS3lONXI3OTRpaksxVng4Y0xKd0ZLSjM2OStLeTB4NWlXZGZUMEFTbEZU?= =?utf-8?B?Y1QrUmJxUU9ZcDF0cGlUclhkWnZRWllyeFNXRzNJdWlPVUZxa0RKQUsxdnpa?= =?utf-8?B?aHpjSmw2cEQvOHM0Nzc4UW4wMzZBVGRDN0VRdFJhWUdXdE1kMU00RmNYM1ov?= =?utf-8?B?eFh6dkFWTi9LbFdMdVRtVEp3NkhDamkyY0xFK3BTZGl2UWV3OE03U2krOXdR?= =?utf-8?Q?Eqr6STjRfcUvrA2hFGS/vaQ=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <9BAAF576A919FA4A8A2FA60658E1A213@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR05MB8510.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65021c2b-7f0b-4ec9-7f78-08d9e6d95dac X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2022 05:52:30.1795 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /1BmIFbcLiw+0oZWq34h29a1r5mV8UoTbQF2LUh/kA59pmPERxsZz32nATUzTbGUMUl5WQhVlIhr9g/jjvwTeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR05MB5040 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQrvu79PbiAwMy8wMi8yMiwgMzowNSBBTSwgIkJqb3JuIEhlbGdhYXMiIDxoZWxnYWFzQGtlcm5l bC5vcmc+IHdyb3RlOg0KDQogICAgPiBPbiBGcmksIEphbiAyOCwgMjAyMiBhdCAwNDo1MTo0M0FN ICswMDAwLCBWaWthc2ggQmFuc2FsIHdyb3RlOg0KDQogICAgTm90ZTogSSBhbSBzd2l0Y2hpbmcg ZW1wbG95ZXIgc28gZnJvbSB0b21vcnJvdyBvbndhcmRzIG15IFZNV2FyZSBJRA0KICAgICJidmlr YXNAdm13YXJlLmNvbSIgd2lsbCBub3QgYmUgcmVhY2hhYmxlLiBJIHdpbGwgYmUgcmVhY2hhYmxl IG9uIG15DQogICAgUGVyc29uYWwgaWQgInltY2F2aWthc0BnbWFpbC5jb20iLiBZb3UgbWF5IHNl ZSBuZXcgcGF0Y2hlcyBvbiB0aGlzIHRocmVhZA0KICAgIEZyb20gb25lIG9mIG15IGNvbGxlYWd1 ZSBmcm9tIGluIFZNV2FyZS4NCiAgICANCiAgICBNb3JlIGNvbW1lbnRzIGJlbG93Lg0KDQogICAg Pj4gSW4gdGhlIGN1cnJlbnQgaW1wbGVtZW50Y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