Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1836180lqe; Tue, 9 Apr 2024 01:33:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIxQGwye1vM0VZobCYbyvJMbBNCLOZv1l8GOGzuTfb8GvX0+IvdvsTU8xrWnkuJvPW92kajaFhpOVqhhwfP1CQNaQjisfptcTRPSUe3A== X-Google-Smtp-Source: AGHT+IGNJLiaRO4QAoKm1UoVY2tMZquLtaME+ZAZStJqZrZGM108lzic05pAnbSg9HBmC6zSx/wV X-Received: by 2002:a05:6359:5144:b0:183:f3d1:e0ef with SMTP id oc4-20020a056359514400b00183f3d1e0efmr13353971rwb.14.1712651586626; Tue, 09 Apr 2024 01:33:06 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o18-20020a17090ac09200b002a2a12b2db3si7942239pjs.23.2024.04.09.01.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 01:33:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Kvoe1xRP; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-136450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136450-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 55AF6B2421B for ; Tue, 9 Apr 2024 08:26:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0E1C7E777; Tue, 9 Apr 2024 08:26:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Kvoe1xRP" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2115.outbound.protection.outlook.com [40.107.220.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5BAE56454; Tue, 9 Apr 2024 08:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.115 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651160; cv=fail; b=M+jtGkl2rqZY8zLKYHdpqo+24BE/9FEf95cr9bPDI/7SFMlBzdro/HnlzFAejzCm7WGCNcb0m8S60WQLJWJmnO9oE9olUC0iHK+IkhrZ5COp3Lffzlo1WxBDF6M9LANn+jSt8GP8wUOCUXwte7tswlSuQ8AW23+QE0uEyLCmuH0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651160; c=relaxed/simple; bh=xMZUHm3GFMsv+Mp8CLQbCvcOTTpcz8uggVke0Fu3QvY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=EwFG3tlozP+iJ6OVpOMrvpTRDv5CAmAANDaWfrpnBNyy+Hq+s/ARCJ8tRhd29hlBFL5aHZ9uR/rLy09DKzSHzSJEaeEOYpVQspE2+nQrei2LenR2wC6OQDEe6dTLKUdQ725l4/z1/oFd3xf9H3kVLKWYesxy8VHHdyM2Dvz7YAk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Kvoe1xRP; arc=fail smtp.client-ip=40.107.220.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xs/3Hxk8Uud+KPOTm8tmIuBcHibFZeegesJA4aFCP0+0ugYkwJO/iKAFyM53WZK+8C4PH4w7M2BGysPIxkbWoVCoHGggVuP6WIUo3yk8Pee9F1YlbWH4qlOoHzwmz6JXrkgJo2G3R9pfLC71owxpeQvdIiwrTC3mRcvQZOUt+vlCHWHNbGlDOQvfSoXu1XCVX+iGd2801SMEqGe382Wv5QB8uZsZGyIYsygX4F2UbaoD6m4vrZ8W7FHg/CgOUrUn7KWwGX+VtqqKI9MUz4/UJKTqmgJ/o+wF3TM/CPWQgaHYsECMOzl2joExatKEOYbHlI06s6heYNEAIA6iWc5HsQ== 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=ACFsbx+A8IiYYmnLmek1nGSNzkH6uiy5AzzFOyqbKJg=; b=gXyMWCJaX8Ely3oSANtOM/HC9lfZ3rsm7QwBASmRImpCuWwIMsTvUW4DzOUGTuQ0ZmNQIceyS67Z2ZDIsLmgJb1iLpY+m2vv7eUcz777jmA2Ib3QnbIyqHSb5zN2PGMTuxqqYuxxC6L1CDZReVKN1DxgB+GKKWF8z51r4XncbuQCnwETZ4AIRBU+j1tknt3rCW/1XqVyETOuMRSQbpzaM6pHDo9FjHHVyI6QL0z46H44zSIuNQz8I4xqG+tEAoXdOJnnLMWNgkRrEbPFmTDKCRBZ8b7SeL/xZr/tjS7Uce32S+TZniZmjLEk4icA7hpHkuqdZb0PyOyf2uOcXj5BVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ACFsbx+A8IiYYmnLmek1nGSNzkH6uiy5AzzFOyqbKJg=; b=Kvoe1xRPUJ51rFMArQ7X5OEIu4+GFtGIeMs/xBTnlOgSrFc5plppeRcb+wxMvH6uCHRyf+/dVryFpnc3XYG2/kxFnliYR79SY72Q1a+ms7DsnUedIbpnORgxrprvjfKVjyvUZDOOdJE8rAxu1xXdfKt2TzvOVsORmeZ8CaAuCN0= Received: from CH3PR12MB9194.namprd12.prod.outlook.com (2603:10b6:610:19f::7) by CH3PR12MB8904.namprd12.prod.outlook.com (2603:10b6:610:167::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 9 Apr 2024 08:25:56 +0000 Received: from CH3PR12MB9194.namprd12.prod.outlook.com ([fe80::ed15:6173:2f14:f539]) by CH3PR12MB9194.namprd12.prod.outlook.com ([fe80::ed15:6173:2f14:f539%5]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 08:25:56 +0000 Message-ID: <56a5734a-076c-4274-9d54-7da8a11fce89@amd.com> Date: Tue, 9 Apr 2024 18:25:48 +1000 User-Agent: Mozilla Thunderbird Beta Subject: Re: [PATCH kernel v3] PCI/DOE: Support discovery version 2 Content-Language: en-US To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Ira Weiny , Dan Williams , Jonathan Cameron , Lukas Wunner , Kuppuswamy Sathyanarayanan , Sathyanarayanan Kuppuswamy Natarajan References: <20240307022006.3657433-1-aik@amd.com> <32ac2ee6-26b1-4f37-bd88-db1ef2a31267@linux.intel.com> <16120a31-c3d6-48a8-9355-7b063e28d242@amd.com> <8d542410-d8e1-4243-939c-6ce7743a66f1@amd.com> <8d076ed4-5c3c-499a-bca0-9bd51d5454cc@linux.intel.com> From: Alexey Kardashevskiy In-Reply-To: <8d076ed4-5c3c-499a-bca0-9bd51d5454cc@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SY5P282CA0087.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:201::20) To CH3PR12MB9194.namprd12.prod.outlook.com (2603:10b6:610:19f::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB9194:EE_|CH3PR12MB8904:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ajSUsMRe1/Lpvlzm+OVHJqRLCsFWecSZGhFFzAubW01G8xsq1Ghr8YSPgNHyVJPmMidcwrx4fiCwbkbwuorf0OmHDxGDYCsa4VcyoX4IFlFdUA3D1YEFEMwAkv6cdOLABZoDsC53IPcr1r8Dw6A1VBQ7IY/ZPp1GO7gFfjRtKqxrJcQzGSwpGP+KY+BR4iFyLZRWtwCOd2Wd0OPA0CS2PTIwKEhYEArhPEOEIZn0EwqpV70VHmSQHJb8VqUBdXuTobqPKhbLBU14Kh99PfyDmVwopziOJPkxp8WnZZczX4uWoZ88vqdl4yKNMC8cR+t51Sez3f/c+5Rf7CMjs+vXnUM+Z9emOmRgFY2QwaIlOAeLISd1bAltkStjGIC/Mu0WpkzXQqPJz2IIH10ykPK+ovkpKN72NLPN2SOx+WxJg4suCccRjbvHqSteWK1xUuN1u8ZRyNd9ChuKRkaUy+wCB4Y84d0LihG6UndjeEoP/rCu6NjF3pNW0m80jqTJ1OXtLNr2SZrXU+NF0+zjm01AccSAn2UIZbmKXitbOR2VJYWJ75uiTujLS4PrIwsQKz40eMpUYYGE3LmKBj1TVxj4usl3wfbRvBAXMymEbROgs/0b/RmZBwqBSzeL+D0+O+AOUxfi8LZAW1rZ5jEqc3zI8ncJxHiSxUlyIO7MWDt7GKU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR12MB9194.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VGdacHpGRU9YNVJ0OXg1OUc4cTlld093Z2o4bnRWem1GYjNzUS9odkpYcGtp?= =?utf-8?B?WUw0MnNIWVZBd2Z4ckZJU2xrNjhJUkRMNXpNbVpXUGRwaFF4NUl1cHNWV1NB?= =?utf-8?B?QTZCd3BIZGs2cktQK3dJWE5PeFNNYmxuSEhoeWd4UnNOM2lMOTZWZ1F1VkZT?= =?utf-8?B?SnBkQ0w5UExuZjFXZzR6WW54bWZuL1QzaFFuK010THZxNmZTV0swRVY5MXow?= =?utf-8?B?bnBaMmV2RTBEeFJ2eks3STZNa3BjcSsvK25pMEpqVkxDc2hNRHNJaXVmdisz?= =?utf-8?B?a0JtTGd5dW9JMHYyS0VSNUlzL2VQNGF6Q0s2N2N1dTVCTmxxZTNwRnh6SlVV?= =?utf-8?B?b04wK0pSNnBndDBoTVU4dTlPQitTbXZJdFQxYm1oamJsK3NWRVJjS0I2NzZM?= =?utf-8?B?MzlHWnhiMVphSkV6VmJveUN1QUUzSzJNcktHZkk3RklMZkovbzdSbkZPUGtr?= =?utf-8?B?SDEzaUN1UlZld0JGcWhqUnVuTlZVSXhIbWw5bVRMUktCOTcwcjNSazlwbXFF?= =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VUmRaVDcwRXdTQmdVTUt3VTNPY3M2?= =?utf-8?B?NklWeU40ekZ6RkNUcldKZmNGUGFSOFVTUXFqS0VkMWxUUm9PT3Z5QzkwUG1z?= =?utf-8?B?cmVZb2ZvazZmNG5UZ3BPTDNCVGFrUG5kaXEwd1JmeEFjL2k1UHVndXBROUpz?= =?utf-8?B?ZjNRN0E1eWZZVThXR1lWeDNVY2k1bktDRnFFMjhpQndDZHpZS2ZCa2xia0Jo?= =?utf-8?B?L0ZwMXY5aWprblJtRW54aDFqUnVyZlNab3NBYTRPTDh3dW1DRlFPd0RWTHp0?= =?utf-8?B?YitkTVJ5elF5d012RzdiYUswVFdsZG5Mc2tsejJ6ZG4rbVhVc1JwTU52dlNy?= =?utf-8?B?L2p1WEtZcGMwSVAvaVVTS1hXdDBzSlBVREVkVld1YXFxYWpkSmxxNXcxWUdX?= =?utf-8?B?ZFN0RC9CVjVUQWh6REgyTm1EcGo4cmtQWjFQMUlESU5vN2xhVGpwYUFJS2hY?= =?utf-8?B?NU5DK0RrazErcTROQ2dEMi8xMTBwdkVPQnNqcGRTejV0cEI5MUE2Q21XYTIz?= =?utf-8?B?dThsWE1yczVpOWZ4U2o4bEtsY0phYldzSXJlb08yWi9BdE5WN0wxTTBKNVBD?= =?utf-8?B?QktJZWhFZ1dlYXBvaXcrSk9DMzRRQm83M290cDhiUGIzdlZ5V3FIOUhGQk0r?= =?utf-8?B?K2xTWHJBbVlxWVdleVIwWmtxb1Mxam9jWmFvM0RHaTA0VU5rcUNyL2kxdWUr?= =?utf-8?Q?/2PpTtQn69MeJT4WTuNK9jneB?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54565b2f-eb1a-4cc0-b253-08dc586ead71 X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB9194.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 08:25:56.2813 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wTMx2EHW6IRUGlvLohkBh1A2k+1fDhxbo5NCnV/HcKAB/wn1hbuuCS/BRfeHfsGT82qdydBAhpRALFRMwZoCyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8904 Ping? Is this going anywhere? Thanks, On 14/3/24 17:49, Kuppuswamy Sathyanarayanan wrote: > > On 3/13/24 5:59 PM, Alexey Kardashevskiy wrote: >> >> >> On 7/3/24 17:22, Sathyanarayanan Kuppuswamy Natarajan wrote: >>> On Wed, Mar 6, 2024 at 10:09 PM Alexey Kardashevskiy wrote: >>>> >>>> >>>> >>>> On 7/3/24 16:06, Kuppuswamy Sathyanarayanan wrote: >>>>> >>>>> On 3/6/24 6:20 PM, Alexey Kardashevskiy wrote: >>>>>> PCIe r6.1, sec 6.30.1.1 defines a "DOE Discovery Version" field in >>>>>> the DOE Discovery Request Data Object Contents (3rd DW) as: >>>>>> >>>>>> 15:8 DOE Discovery Version – must be 02h if the Capability Version in >>>>>> the Data Object Exchange Extended Capability is 02h or greater. >>>>> >>>>> Does this change fix any functional issue? If yes, please add Fixes: >>>>> tag and probably CC stable? >>>> >>>> The issue is that before this patch the DOE driver was following PCIe >>>> r6.0 and it was not working on a device with DOE cap v2 added in r6.1. >>>> Is it "fixes"? >>>> >>> >>> Since you are enabling support for the newer spec version, I think it will not >>> fall under bug fix. But it might be qualified for the stable branch. >>> It depends on >>> whether you want to support this device in older(stable) kernels. >> >> >> I am going to need lot more stuff (TSM, IDE, TDISP) in addition to this but it is coming much later so there is no point in pushing this alone to older kernels. Thanks, >> >> > Got it. > > Reviewed-by: Kuppuswamy Sathyanarayanan > > -- Alexey