From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 479012F2C for ; Tue, 8 Feb 2022 17:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644343015; x=1675879015; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9dmonQbDr5LE4vMviRVOwFGOpE224EqHaooR6zwTOpc=; b=epxzr8i6A0PxUyi4UnyDKsnkKKfPby/KQdzosBukAG14d6/LAZBRa4ri QMEk+x98mTJsA5B5m5EHk0lpVVXe6vJvy3hKzBmjlG/eFsYEv1oaKPAGq 6xdHGlcnsQVwV/xbCX2oOld6mSENRVW1MfKwzCcTifSg8wtnp5UY66ewX IgaCIJwOdFK5xxx938FvDbJmvISkfHWHXcQ6m2h+oMYnPFA9wSyMhpQ97 ScwnwMePw2EyWCC8G8S3J1QwVH7KO8coL69PrwflPxpBCIsLvfUcIa/PR Voneat4kUJ97lCCGfLSsySBgS2CJavd9y3V1JKgiqH+SpLam9gVhQQFr3 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="232574886" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="232574886" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 09:56:54 -0800 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="536643700" Received: from alison-desk.jf.intel.com (HELO alison-desk) ([10.54.74.41]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 09:56:54 -0800 Date: Tue, 8 Feb 2022 10:00:59 -0800 From: Alison Schofield To: Dan Williams Cc: Ben Widawsky , Ira Weiny , Vishal Verma , Linux NVDIMM , linux-cxl@vger.kernel.org Subject: Re: [ndctl PATCH v4 0/6] Add partitioning support for CXL memdevs Message-ID: <20220208180059.GA949880@alison-desk> References: Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 08, 2022 at 09:23:54AM -0800, Dan Williams wrote: > On Mon, Feb 7, 2022 at 3:06 PM wrote: > > > > From: Alison Schofield > > > > Users may want to view and change partition layouts of CXL memory > > devices that support partitioning. Provide userspace access to > > the device partitioning capabilities as defined in the CXL 2.0 > > specification. > > This is minor feedback if these end up being re-spun, but "Users may > want..." is too passive for what this is, which is a critical building > block in the provisioning model for PMEM over CXL. So, consider > rewriting in active voice, and avoid underselling the importance of > this capability. Yes! I have some words you gave me in another commit I will draw upon. > > > The first 4 patches add accessors for all the information needed > > to formulate a new partition layout. This info is accessible via > > the libcxl API and a new option in the cxl list command: > > > > "partition_info":{ > > "active_volatile_bytes":273535729664, > > "active_persistent_bytes":0, > > "next_volatile_bytes":268435456, > > "next_persistent_bytes":273267294208, > > "total_bytes":273535729664, > > "volatile_only_bytes":0, > > "persistent_only_bytes":0, > > "partition_alignment_bytes":268435456 > > } > > Is this stale? I.e. we discussed aligning the names to other > 'size'-like values in 'ndctl list' and 'cxl list'. > Yes - that is STALE. The cxl-list patch commit msg has it right. Will fix here. "partition_info":{ "active_volatile_size":273535729664, "active_persistent_size":0, "next_volatile_size":0, "next_persistent_size":0, "total_size":273535729664, "volatile_only_size":0, "persistent_only_size":0, "partition_alignment_size":268435456 } > > > > Patch 5 introduces the libcxl interfaces for the SET_PARTITION_INFO > > mailbox command and Patch 6 adds the new CXL command: > > > > Synopsis: > > cxl set-partition [..] [] > > > > -t, --type= 'pmem' or 'volatile' (Default: 'pmem') > > -s, --size= size in bytes (Default: all partitionable capacity) > > Spell-check does not like "partitionable" > > s/partitionable/available/ hmm... passes my spell check, but alas, it is overuse of the root word. I like available. Will change. > > > -a, --align allow alignment correction > > How about: > > "Auto-align --size per device's requirement." > So much better. Thanks. > > -v, --verbose turn on debug > > > > The CXL command does not offer the IMMEDIATE mode option defined > > s/CXL/'cxl set-parition'/ > > This is a general problem caused by the tool 'cxl' being the same name > as the specification CXL. When it is ambiguous, go ahead and spell out > 'cxl '. > Got it. snip...