From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FCAAA00C4; Fri, 1 Jul 2022 11:38:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 981274069D; Fri, 1 Jul 2022 11:38:47 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id D25BF40150 for ; Fri, 1 Jul 2022 11:38:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656668326; x=1688204326; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=9lZ0u+ejAYXR9C+3RRzXa+RSZXtdZBu8dg1+fQ4emdo=; b=XKkEFMG31QAlv3gP01gLdze1C5SDsjusmwc0HOjY+va5vSv4lN6vyhaD y7qbPR0qDLem1w22BefmO1hOHW9OgPaekOIyyAySznyfpJbNJ8ZTGh7P3 xLI8Z0MoAcqoz8swlZA67vwEkfQiRqly8HmQK2ZsES1VMYJndNLIiCG4N 7Xa5gNuh4rATW0lX9gjRMobk9XOlmYHqbP/klV587LhdgCblcRPbKT4ZQ 504c0+VW9YdgTXQdfc/qZogUpBUKnPUMkUwZ2GTzxV+32lKCrHK6dDJj7 MfgjxagSBCK/z4PdqFb/jGSeRntDXxo/RFrwbslhJo05OW4C3nilcYF3u A==; X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="280159722" X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="280159722" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2022 02:38:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="624129270" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 01 Jul 2022 02:38:34 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2308.27; Fri, 1 Jul 2022 02:38:34 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 1 Jul 2022 02:38:34 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.2308.27 via Frontend Transport; Fri, 1 Jul 2022 02:38:34 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Fri, 1 Jul 2022 02:38:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RLvQATY/a5frzN/ip1CxT02vWpHZP/SjnqEj3yVXYhpF56Ay5R8HL6GSPcr8zgV/vpfBF5EA64ntAGKz4xw+LDrAwVDMuLBHkEkBshe0JrHtXxhoXB6Y51af4InbMHxze8SnVJQpkS8dWtN2Oame4C1e4kgcIwg+03QrrhJpjyVHMJg7Nvph2VXzzavwVSpbwSE2orTvCvGwTb+aHTFvD2YX+bioYajFwuPysALdj6YSkHK/9cwFNAtwvPLtkqp0sr56vlQKmSbGF0j4oRwrLkGHxFgozw1tmRHz8tHTmps3VBr5Cln4KfxvQGSqksCbbqp3umJIZ+VPTvCl7qQtUA== 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=t004UZcAB3M9ElYOqXPGEnsa0BQfllU8m33rVxDb5ho=; b=dqoG54XiaF0ty2EWi8SJfKhOn9z3/PeeBTmTH38nkqpSCWKvrKmTA4AE7/EjU0xelUFynG3Blxt3q6jYaJUzcsO6mI9A0acsSM9D338q95y4JM6vCPK343IElrBgYY3LoNIFIOBajedMwbhbcs23J8cce3Wh2P0DxAkmN0M7VlhShPmLsDZNi67E7b1W0bLOsZC/LvYYacWO7tQrMYA6eSovYrFT64p6SEML5RKtF3dz//i5/2ssxgFpnka/amSvek8P3H02mull+BLZWa6GRafptN2Ar4fmfY+6LPQ0biP9FiBfDntmiap8KzJAA/81TrTDaam5vMtaTrVGMuOKeQ== 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 Received: from DM6PR11MB4578.namprd11.prod.outlook.com (2603:10b6:5:2a7::15) by SA1PR11MB5897.namprd11.prod.outlook.com (2603:10b6:806:228::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16; Fri, 1 Jul 2022 09:38:27 +0000 Received: from DM6PR11MB4578.namprd11.prod.outlook.com ([fe80::402a:294c:3165:de07]) by DM6PR11MB4578.namprd11.prod.outlook.com ([fe80::402a:294c:3165:de07%3]) with mapi id 15.20.5395.017; Fri, 1 Jul 2022 09:38:27 +0000 From: "Wu, Jingjing" To: "Guo, Junfeng" CC: "dev@dpdk.org" Subject: RE: [PATCH v2] raw/ntb: add PPD status check for SPR Thread-Topic: [PATCH v2] raw/ntb: add PPD status check for SPR Thread-Index: AQHYjF9M7m+HWR3sWEafhNZWwsPl6K1pQ7kg Date: Fri, 1 Jul 2022 09:38:27 +0000 Message-ID: References: <20220630083924.175373-1-junfeng.guo@intel.com> <20220630085616.183562-1-junfeng.guo@intel.com> In-Reply-To: <20220630085616.183562-1-junfeng.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 36dfe644-c8ef-4010-77a4-08da5b457368 x-ms-traffictypediagnostic: SA1PR11MB5897:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S72v9DgX2iD7lm7c0/Gy1JI0DqCrsIaggJIZKbMMWp0xPSGIf7vDWGngqiPo4kx7R0Y3TBVlgVL0jVn8p6ZUD637EAsjou6S8bwCJqqOAqzywWlEpKYsFoo/E+zlzvcLi9OZh/yPFXZOzErk53v1kEi4gxZ+z+2jd065UgBykZI0L7V+5J75UbBEoAuqciLOeGSw4pi201TABARioBNeseoDZ92omeRGmDs/ryi1tZ8i+pU5dtbtDS+Bq7kkE/+gP4Jq48cs8WuA9SkF2lEySga/npdOJ+13awYxsDYT2iLYliiFxS+eXO74er5CaUNYY91XkSF85ZBH2lTumYRcyu0jhT1OnGoSAaRgi+Tjt0cm0zXoEtJrx/+f1SzVAmV5zAfsgSqYgODoshPmbbpiIAvl6W5Zat1BG5nd0Rqi57sxhaBPnvUmvvhcKsTUdfCvqRBA27m5/9LJ5s8kOUl2JkNPb3oTBaPATHYipryNSJNKNc/Ekw3XCoR6jcWQAt6/XHC8hbTGkNLUiV7QMfs9NGFTNGfiqsO0DQPunRef6Gz4BJy9wKOu+iwXPEO5F1RtqdcVVuNVJlnpX+ew/mQ5c9GFZHMh9gRWz2lBC7bSC+E6QGTZpnf2vRbMr2q2HtPLApOIqH2rMw9OBR8alCHVYvm29VUlls6WTBzY8yTal6Y/uq7soqDimQQb60SfDlnqdcUNUjXGjqqx+iYAlA/NCEwNzmw3tnQKD+oWUy4PhwelrSvKw4mR6tAN1o8lxGL/B+5nFpjj4f+tJwUJ5meWAlHMFnTNgW4oQljYKopK2je9SIZXp+cOD4a5AGjJ5mZlhAtBs7+8Xud+V6PQoi/umc96m4+lDyc9cO9hQDulSXE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4578.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(39860400002)(376002)(366004)(136003)(346002)(53546011)(66476007)(64756008)(122000001)(82960400001)(6506007)(66946007)(55016003)(33656002)(186003)(83380400001)(5660300002)(76116006)(8936002)(86362001)(2906002)(4326008)(41300700001)(66556008)(38070700005)(66446008)(316002)(7696005)(9686003)(6636002)(6862004)(52536014)(8676002)(38100700002)(26005)(71200400001)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mw33sdG9c5r04r1TQUAva+gCiHzBr6o5GOCFD2GLXvngClr75E1C0Jj02Ifb?= =?us-ascii?Q?Edj0b+4LCQVnGKsZw3ceoEcwycJzacLJC6aJLwUlhtNULw6fAcsmhGvlNiCh?= =?us-ascii?Q?SNUoYtM4YlbhZjV0s3CGUVEC9HlhbrJv7PPpavVT0xrjv4Z7erKaqSYAZJCv?= =?us-ascii?Q?Wyq/f24KFJ6c6XfytaKhFCJyeNn2FDLyk6X5+vVuc/NyMx/Ekl6adtZnkZkD?= =?us-ascii?Q?7f9qX+Cc6ArsUx2xnmhcQXcpyXcTMfBrvZnlspV1PD3a3d4ZEso1rArTTeQZ?= =?us-ascii?Q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PuMCmuW0amfxDPbFG7oH6j?= =?us-ascii?Q?W6SGFD6aJ5WTeAbXAiEQx859IJJfxa10voBM3ns0VkU/XW3Ds0B3wRZPbQAR?= =?us-ascii?Q?bTEqjBQ9yzDdMdSxOYW0vTWuLhHnHw6UMKx8kPIv1uX1kSVZrMbIzbPMGHCu?= =?us-ascii?Q?igUmf/kdM/uVwYz5pp2VOh31PxE2lNioQcLLu1nl8gMaAedA73F2vqIBMJR5?= =?us-ascii?Q?nq/8A7DJA/iQ/2b8fcIZOHPDz/MBTmGiQlmldy3tpbMx+f+Hi+qaSh5jAL+W?= =?us-ascii?Q?I32m8i3se/tUZ8iA1rqNMz1lBjG430mPTYmdWrmRD0MGtyrOEP7ztx+8kBNi?= =?us-ascii?Q?Pdfhg3IdnP0wk6YVH4nTfeUVS7eIg3hOnQSE+L3aQXXnjwTUkTU07n4Io6Qs?= =?us-ascii?Q?cBr52GmY0kcyDEm34MHimFgSaA+WM7au52vfRegg?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4578.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36dfe644-c8ef-4010-77a4-08da5b457368 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2022 09:38:27.3287 (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: lE3xQ4gDlVSw7hDKQgFPM0rIKVjV8ujxEFLvib+BAVoGADkmCY6/mlKLL60zdUK1Tx8Ix4+iEaW1FdtzFozg0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB5897 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Guo, Junfeng > Sent: Thursday, June 30, 2022 4:56 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Guo, Junfeng > Subject: [PATCH v2] raw/ntb: add PPD status check for SPR >=20 > Add PPD (PCIe Port Definition) status check for SPR (Sapphire Rapids). >=20 > Note that NTB on SPR has the same device id with that on ICX, while > the field offsets of PPD Control Register are different. Here, we use > the PCI device revision id to distinguish the HW platform (ICX/SPR) > and check the Port Config Status and Port Definition accordingly. >=20 > +---------------------------+--------------------+--------------------+ > | Fields | Bit Range (on ICX) | Bit Range (on SPR) | > +---------------------------+--------------------+--------------------+ > | Port Configuration Status | 12 | 14 | > | Port Definition | 9:8 | 10:8 | > +---------------------------+--------------------+--------------------+ >=20 > v2: > fix revision id value check logic. >=20 > Signed-off-by: Junfeng Guo Acked-by: Jingjing Wu