Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1169030lqh; Sun, 5 May 2024 21:08:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyjfiSrLOqUrqHwWTgY6uFsN2xddRCISFkNPhT5C84WQubv49TecXCeQPtkkDCWO8FyVxmg81SSFDYZb7xiGpbMOIY3aJbQjYzsZfmbw== X-Google-Smtp-Source: AGHT+IGVTiqgAdC74zrAcRvpstqGOSRYdHWrU+hGodMprIWAZBXgesP58zwDJn8WvqwlJPs6dWIy X-Received: by 2002:ac8:7fcf:0:b0:43c:7504:32ba with SMTP id b15-20020ac87fcf000000b0043c750432bamr10965030qtk.10.1714968484940; Sun, 05 May 2024 21:08:04 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v3-20020a05622a144300b0043aef3b0943si8416619qtx.272.2024.05.05.21.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 21:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n2iaCZHM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-169292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169292-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 613A91C20CEA for ; Mon, 6 May 2024 04:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81EA144C7C; Mon, 6 May 2024 04:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="n2iaCZHM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 710A43E462; Mon, 6 May 2024 04:07:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.13 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714968472; cv=fail; b=H9g8U4foqy+HkWcFmh6dxGpr1pV6GUd1LDMi8t+db79pvs+FMwcleq86P7gv2jvsa2zM3DAlFMcStHNUBimCJ+hUhMMky67VibDOPwFAGCwVSdqDv/QN1RBkrgFvVqTZXxtmnWqV47x2bytpVuWJ6dIVidkMPMExQAX7tTGqg8E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714968472; c=relaxed/simple; bh=C4zLONW9DVaaHZTlLf46saRncqG9DeeWZOBTLhBCZyA=; h=Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=YvAI4S+oV/AjRasEXR9cjMOATQS42Hh7KEHsTP6w/hjFmvaoaNhCwToXBrnOigyGCJDVUBxG+zZzJika1Pmm7i9UYzo1K29OzO4XDjMtkZfcxEpbj1xfJzR0qf9wfppABpCPUuiNn84/5XcVyhZ62C7oc19q9Q4HWDCGeCaqPoQ= 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=n2iaCZHM; arc=fail smtp.client-ip=192.198.163.13 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=1714968470; x=1746504470; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=C4zLONW9DVaaHZTlLf46saRncqG9DeeWZOBTLhBCZyA=; b=n2iaCZHMardpopBFokw59SCNBkTwdjLklZre7+l82jgiCMRS4aK94Qjv IZm6nqXObbxCpX0ZO5INs6SNgKlPH57lFUMZkYo3KpWO2bhc/XONknT85 bB8nCevd350zkHjLciaLRlMVBa1LEvlnJBLj7Ms6CRi6+rXKXYNTWyTQa tKmo6Q7rP0LhNsLCxrGD68zE4FGJeMv2iMjHg8+yRqxbDNQEPGHlOjtlE 23aFyHd28z3VDpjY4Vlz/JPchoB+93/NoGNxm8joUU5zViRhJfN28aihG dQJrMkSt/XWagGG1kL1QTLzMOnc0WyFSrf8SzzOR2gD5sg7xoUFr+tV+A w==; X-CSE-ConnectionGUID: ++boTB1wQzmboS1HnPFTXw== X-CSE-MsgGUID: LchX2XdjR7WnqMc5tn0b6A== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="13643549" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="13643549" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2024 21:07:49 -0700 X-CSE-ConnectionGUID: le7qhsERQKGUN1nNK4c//g== X-CSE-MsgGUID: CDecEVtQTD6xqCb9px7PcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="32707671" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 May 2024 21:07:49 -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; Sun, 5 May 2024 21:07:48 -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; Sun, 5 May 2024 21:07:48 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.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; Sun, 5 May 2024 21:07:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N+yLXIF1AUZZEfCTyqdniJL+2YPX+zW5GsoGBa+W44wcIfJXo6e6JeSW1iOgo9u3Rmz9cBK1YU0NmJYwECLFH61bdc3gZBSyCJWRdNXVh7pfiO9NqRRxOZwg1xCL3JBdELSKjS07kWaxp3htd3UGnDGfumwzwCz1imrziac31NdO8gONTlDya3J7gT35uIoFdZPkIvhP2/fgmmxjc4bhRiXs22q9dlj1pH80pEec6ncpAi3avNjoI6fhqKCF4J7SpxlBk1Xcubf+jNAgq0sQXaFLH09GgWaCuqjeMdSPMHw5v29VwQgW1kUcIVcEKztWcC0zZV7j1bzlDMi9yFACgA== 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=ZcaImz/6a8oI3I8omYxA0juWJMEmbrvboRjUrZt97gE=; b=SDyHdDrw22QNlL81bwdL0N5A8autNY3hP6v5xccSAfeRPbwzVtz4fpnT+qS56lyZP+VElwuopPrl46sWIYGVCXFy8V8faxicNDCDXZpIZ60h5xrCgG5pXRHhXuiNOf/PKDp+0STp/MUD6xH+SO3J+Jg8GJqvlOf8f7ejoU4i2fb5PicSEeTMBDGCLiC3LwIixKgAAjOUf72UISOX+rYJWUPG8Jk9sW2WZkzv5YkolSzMH7xDwYAUM/Zt1v7ZE2JyahyPvEThoRFIis+mX7QKgWgJ1WcvOz+UTkaNbHVxNhMOayNIjYryieA9V8eCHNGXzMcPzDP/CW8U1uapdSEKPA== 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 SA1PR11MB6733.namprd11.prod.outlook.com (2603:10b6:806:25c::17) by CH3PR11MB7867.namprd11.prod.outlook.com (2603:10b6:610:12a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 04:07:45 +0000 Received: from SA1PR11MB6733.namprd11.prod.outlook.com ([fe80::cf7d:9363:38f4:8c57]) by SA1PR11MB6733.namprd11.prod.outlook.com ([fe80::cf7d:9363:38f4:8c57%4]) with mapi id 15.20.7544.041; Mon, 6 May 2024 04:07:45 +0000 Date: Sun, 5 May 2024 21:07:42 -0700 From: Ira Weiny To: Dan Williams , 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: <6638578e2d7ed_258421294f@iweiny-mobl.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> <66351d0f9ac2e_1aefb29492@dwillia2-mobl3.amr.corp.intel.com.notmuch> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <66351d0f9ac2e_1aefb29492@dwillia2-mobl3.amr.corp.intel.com.notmuch> X-ClientProxiedBy: BY5PR04CA0030.namprd04.prod.outlook.com (2603:10b6:a03:1d0::40) To SA1PR11MB6733.namprd11.prod.outlook.com (2603:10b6:806:25c::17) 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: SA1PR11MB6733:EE_|CH3PR11MB7867:EE_ X-MS-Office365-Filtering-Correlation-Id: f438d348-c21d-4dfd-7ca1-08dc6d821550 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|376005|366007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2LNhq7A/mzL0sE7+lDldAau2ppd8hQirlyRM86MxYG3p00FNiJ8y8NnSfA3w?= =?us-ascii?Q?Btu2WcjblKqgkI5C4UTzW5DdomXzarvUYAu5TxFaZfucjqMq/nYj4r/EdJVQ?= =?us-ascii?Q?5rifgQrzMGBX3Bo17/MUq/+W4m8SxeWV5ZnCR9fduQo6JBx8x4GuUxJX4U+l?= =?us-ascii?Q?5W3I7oNhkbezHVpe/lqLyUc+QaTn6xssbdoejJu6BVB+LiVDI4FZjbtnkUtr?= =?us-ascii?Q?LDjSIgzZWe0ODcof+SpCPZ3LkCrzkYNzbFTo8MtnI0oX7yl0XTkh9c05hHe4?= =?us-ascii?Q?hmplCC68aN7A6Dc0UyjyASKfdxY7GfrwN2R38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0zNyxhg9+dhtFi6FllmJy2K7LPf7NlvhRfz5osGkPKOW4MePT?= =?us-ascii?Q?JPXYlXNYp4Qp2jDcdmDMegjzSx8+suhCpdf2aYGXlg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR11MB6733.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xBbcKnQvGICUMtMlP+seQXA/LfzVvbR1uSKq16g/pY60m046pIUrjiTfpJW+?= =?us-ascii?Q?khiwrypf5zW87v0hytqz9dLSn6XvmCtvqDgg6VtsYxPC0DLSjfCTg1Gw/Y2t?= =?us-ascii?Q?HKEtzimcXqtWF7MaKz93ueTR3Rs4hCaP5HroxY42sTRW+6BRAg6tlrDnpQ+U?= =?us-ascii?Q?9Ni1lOz2VvUhlrVtG3wcNOC+Mn1P8ud/nrBbuFMmmWac1R9z01iOPpG3HcvI?= =?us-ascii?Q?V/2Q/HQpeMV1wLXM8C2KK5rVjlaKGBOpQZoqn1xy3/sij6WwHNH1B6Bq2px8?= =?us-ascii?Q?217S5CkFVv7TbFRzFq1WSlD0VbwZsNs9wyc+S9Jnd2Rp2HJEtah61lMpOTkW?= =?us-ascii?Q?fE7MMfwuP5HJ4MCn3812MAcxh4ve7nnd/rCrAfdgQzHYeKLMF15iZNghqDHA?= =?us-ascii?Q?gxN7qu8nj2qRKd93krsoj6ANNA2KI/Y+U1Nay8Wdl2lIn53apa5/2UOhJUha?= =?us-ascii?Q?6uH8weKqjpA1JpegRijIqZ0Clfjf3nC56B/XqFAA6/j0aLihIALGIDS10lQ2?= =?us-ascii?Q?KTheTpouZI5xjJRawzA+yyzZXygPSlSkXZG/P++jyn7xkge1+Y5ftZ+DjEqz?= =?us-ascii?Q?i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3/?= =?us-ascii?Q?ABnf0H93iGYAbkp6GSr6g0SUpe0OmfRgVoPTrrabh1feMb+4D7rOq60nqlqp?= =?us-ascii?Q?pV6/v1fjGNO4tryyAevlcv4nTN0UloiOEB59NGtI?= X-MS-Exchange-CrossTenant-Network-Message-Id: f438d348-c21d-4dfd-7ca1-08dc6d821550 X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB6733.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 04:07:45.1734 (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: VODxQLe9x8GKZkw8Vq8fPbEgz165v8avaFA90S9+OTZlh4q70SmEa7QGuT3ykQm0dIO8TDytWByzUfNtnTdyzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7867 X-OriginatorOrg: intel.com Dan Williams wrote: > 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? I don't remember the details. But this was discussed before in a call. I'm ok adding this support. I have a test for it now. Just need to tweek a couple of things. Ira