Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1934518lqm; Fri, 3 May 2024 10:23:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWStnOwtpp3nWwMplvYD7pEG0+bJTEH3rUCQiAbIudBLQUzOamcU2avrJrW/9c88qnCwp3q4AUBEkUApTDDix26Og+uOvUDzdQsDxt1kQ== X-Google-Smtp-Source: AGHT+IFOVMEIaXuDBF14kxUeN0F9URrzsfCQ+G55GVSirY7maZVptY3KlDbctxMTXVeKuHHHcdi2 X-Received: by 2002:a50:8d13:0:b0:572:9b20:fd with SMTP id s19-20020a508d13000000b005729b2000fdmr1942352eds.31.1714756996914; Fri, 03 May 2024 10:23:16 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z8-20020aa7cf88000000b00572a19bb6dbsi485525edx.332.2024.05.03.10.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 10:23:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NS3uGtWd; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-167973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7CA771F24FC2 for ; Fri, 3 May 2024 17:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E99C3158200; Fri, 3 May 2024 17:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NS3uGtWd" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 0E2C1157E87; Fri, 3 May 2024 17:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714756888; cv=fail; b=u22YvDhdobd6tLFT1C26BYsuCE8Yuh1re3r1GbQEPqkQetdvV0bspdXZd/BHUWxrwtf3aCPvpQUQsgVMswUd5i4lZuKYQi/iqjwm69K6ibKDCdBJGt+7Q39GWn1g+fb6++1kBXM04uNg6FStsFrr4+Jg6rjTSsBNwi66eMMJwdw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714756888; c=relaxed/simple; bh=FIvrSrVNYVl6cVayn8kzxHiJmO1TnayTAynatr0IVr0=; h=Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=bYMoPfR2dMco5U/ZGfbI70J02RRQjdLQH4v2gjPVKmzk5izRii2+YaVO1aZVhK7bgQ0+5IE2gxrtwX1MkDhd3LybaBqlIe0i906j2BPMOZlk+NAB1nvk3rDZBy0b/5iUtAKvY7e9IuLOxVWtxcslDpAbimP1aRYcEOkN5TbpV/E= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NS3uGtWd; arc=fail smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714756887; x=1746292887; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=FIvrSrVNYVl6cVayn8kzxHiJmO1TnayTAynatr0IVr0=; b=NS3uGtWdsKvUMXLyRdZNsbDAZ+0KhYTxslenkJfwdY9CyQBNcwuNAAmB KHXB22k6zk1s7wz07avlL1h5VhAysRpok9c8ax7xUGhT+2EcMqZL2oO9p yeHBpfiwi6TGiDjA3eVCqOZQeFl80HWSahqPS482ISC2oQYNd524QH1xB 7SWXdQ7ix7xt8/8wOzhtKABjGzi993cxym9L2VET5ECjtc2ONYk80xyYq 5gNScAlQAMAkkX0yJ+WgvaPWzMbRxtqkER4g1xFXcssSlS0ppBxRIUrA8 Lzy6//acnuJ54vUWnNMC8tjNSQLnghy8qaIdTke/oBJ9y0NRUTidlrPDl Q==; X-CSE-ConnectionGUID: PCAaByFtT+yPXZxp5BbPIA== X-CSE-MsgGUID: NM2Miyz5SyipEELjepMVvQ== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10500327" X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="10500327" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 10:21:26 -0700 X-CSE-ConnectionGUID: dOyewa/YQAGRixL0XdntdA== X-CSE-MsgGUID: xSRrK+vjQL2rbpWjPRro8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="27597599" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 03 May 2024 10:21:26 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 3 May 2024 10:21:25 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2507.35 via Frontend Transport; Fri, 3 May 2024 10:21:25 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) 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.2507.35; Fri, 3 May 2024 10:21:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mm9PmvLoQGNWsCwPUkmpxcGdsLbpdgGSU8wXtDu936lmb5u3qP24lsTvJ9PRqN99Y3s8TlCnOFxJ77mYlIGBOOBZYhMcQzBw5RTRh0Ceq3QqF5aYKgKZ7gQIq5gs3DZV+ps4Bb8sXb9FL0QFtNm8L03GhI7L5XFUG2BXigB4+RsIVdSqhY05F5hkP+QkaK6iuCXIsM0SZClzk2VLVZgOEaR9RYHabN4z+YPIf6iG3iQw2AXnsT/3IbrHfVfGlzrPauE9Y7ROt5SFtHwYJ+iEwvKGx1eAr4+j7e9wn+pf02LA9QdiBsRHiVImo+uSuqqda7AOWhsaRhafhGZcN7kROw== 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=WMpxDIZMcJnjAGD4BNjzMVjXCNpNKlSxXgQgnRy8DSw=; b=XcQe6RAQEeTuwxvcJpNB0rt69sGSi2vl9u5XqHJVFT9yTp7Y1A+Am/kW5bbtjwSBzQsQuY+ZQuwZqSBt5IZBXhuAlfwyanWi6Wx4O4sdVkVhmcb6DCBRODBLkNTcmGQlCm5NOd7tbxDn6oHcG0JtQp/+MQoj2f8ev1DPW6LA0nCHkKvvsJVCkDt1rT8ZU+wukf0e27F6ap2AcSGoywj+3eIbzvKZj5H0D3d6lG7gEey822ZFE5P6FR5qlMIhDHYY+JmC6sHn78XUNC9WGGtUQZCk9R/+Oinq4lnIQ46Dwia7OS/Ix18NVuzyNtKW6takAwl1pjVZwS8jbDxwWlHdDg== 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 PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by CO1PR11MB4963.namprd11.prod.outlook.com (2603:10b6:303:91::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.34; Fri, 3 May 2024 17:21:22 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::6b05:74cf:a304:ecd8]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::6b05:74cf:a304:ecd8%5]) with mapi id 15.20.7519.031; Fri, 3 May 2024 17:21:22 +0000 Date: Fri, 3 May 2024 10:21:19 -0700 From: Dan Williams To: Ira Weiny , Jonathan Cameron CC: Dave Jiang , Fan Ni , "Navneet Singh" , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , , , Subject: Re: [PATCH 07/26] cxl/port: Add dynamic capacity size support to endpoint decoders Message-ID: <66351d0f9ac2e_1aefb29492@dwillia2-mobl3.amr.corp.intel.com.notmuch> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> <20240324-dcd-type2-upstream-v1-7-b7b00d623625@intel.com> <20240405145444.0000437f@Huawei.com> <66351a55a38db_e1f58294ce@iweiny-mobl.notmuch> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <66351a55a38db_e1f58294ce@iweiny-mobl.notmuch> X-ClientProxiedBy: MW4PR03CA0326.namprd03.prod.outlook.com (2603:10b6:303:dd::31) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) 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: PH8PR11MB8107:EE_|CO1PR11MB4963:EE_ X-MS-Office365-Filtering-Correlation-Id: 588b478e-997f-4d8f-f814-08dc6b9573f0 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?3ccDIWMAXfTkLzerh3IZ+hI3e6wRZcGYeiGIl5zgetLkLT+Osr4C0BFzG9BY?= =?us-ascii?Q?4GhJ6ArihkO/uFqWJtUkruanFfNgRxyt2cuwkTqOw0/qyr9FeSxguKlNx+jW?= =?us-ascii?Q?dphTK7+nsz+Wi/5IqfaMmY/LYMP6oAzLV6iA3rt3rSiB9dTt+xo4vJ7354er?= =?us-ascii?Q?zAjLk3+0p3RDqqk6+Heo1ykiD343X20f4y0EyPMzLMugEz62+K+OB4mcKydO?= =?us-ascii?Q?gaHdVabYAa6hgh2u87Iks1b7u1k1MCxWB3HLuyLDQahFAO/ZElPLZu0+5Wrn?= =?us-ascii?Q?CO/KlP0yFuYAFMvsf67FJnRT92C19wPpxDgIS3Fzc6jJxbuTu26K8eTqVTxu?=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weML0lAajEsKU2xbGHUKgoSyhBBK?= =?us-ascii?Q?VaybNsNiHAs5KJBGn4uWbzP4Hs8Rmrj/mF7EB8csSw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?CywmPnOejuC1+hGC95U6T6eKPcO5wqaxT6Uhk8H5TknaTy5iT5OVRDL1D/nM?= =?us-ascii?Q?PWBG0SqKrqUy1vAEdFJHmJDu12AgNrve/zk//rcccUTGLW9MS8SbGen20eUJ?= =?us-ascii?Q?ey9OOYeruhtePv951LBucKqCHh4Ugu9wJXMRHVtBa8/sAToxy86BrGPZ8D2A?= =?us-ascii?Q?SNCOdn/pGFfHsNV2ddL6hUq/pzNzTH1WEf9hJWwrjev+jX7ZYf9UrzX79Oaz?= =?us-ascii?Q?v2RdjHpgdPErpJ//x/PkazhJEVYIkx4Yi/yMI/qdZYYPX0FiPgvFNRzKBWLT?= =?us-ascii?Q?YE3QeNypiORCLd1hK0Kq/OyanGmGyPxyJU7NoaiynCnYE8wYueO3MXCsC1Yv?= =?us-ascii?Q?LJMUUxrhyyatGu1fwVEySukA5QvXLtJYR/04EZS65raoilgEaS4JR5gct5pS?= =?us-ascii?Q?GGh9r78AP6GdxAbI3upPJfhcAr9npwVxFzkoWDhL5LW6PSzUVaePUeK5tOKs?= =?us-ascii?Q?2u/4o3kpyfYLd0fPJdvwUR+PNUmSSpD8po8yc/OYuxuc6a0IZDzkSdvG82Tz?= =?us-ascii?Q?Kbtz0kJO8zzYLgL0PDl0y7SSVD5dJdwFMgv9V/GBm/mMd6Gjh6/3w9WfqDmy?= =?us-ascii?Q?C/M/CFiWVL774JCZ/M2Jl3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?us-ascii?Q?3krFssCUoh3ZX2iU/HN+b23J8rMqiRClFPX0q2ZqDhTMKE5w4wE28gxnhTkz?= =?us-ascii?Q?lU8DwRvh+0EZU10PlX+PXpspgeu2Xm+ofzUSyarBnTvndQiDJMqmeVsg60cU?= =?us-ascii?Q?bg=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 588b478e-997f-4d8f-f814-08dc6b9573f0 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2024 17:21:22.0539 (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: V/gqzDelLpPF1UKCxMKxW9xyy8BjPvOkcp0EKdhzBitE7jngEXA00tEstg5Di5Icn8MeQrJRnBZ3eguKRu5O3+ftNaLMhY/7eZJHZ7/PNLA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4963 X-OriginatorOrg: intel.com Ira Weiny wrote: > > > else > > > free_pmem_start = cxlds->pmem_res.start; > > > > > > + /* > > > + * Limit each decoder to a single DC region to map memory with > > > + * different DSMAS entry. > > This prevents more than 1 region per DC partition (region). Why? Multiple regions per partition is the current status quo for other partition types. > > I notice in the pmem equivalent there is a case for part of the region already mapped. > > Can that not happen for a DC region as well? > > See above check. Each DC region (partition) was to be associated with a > single DSMAS entry. I'm unclear now why that decision was made. The limitation of one DSMAS per partition makes sense otherwise that would indicate performance across different spans of the partition. > It does not seem hard to add this though. Do we really need that ability > considering dax devices are likely going to be the main boundry for users > of a DC region? It seems like extra work to make DCD a special case compared to the other partition types, so the burden of proof is the other way. Why tolerate DCD divergence from the status quo?