Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3974373pxb; Mon, 1 Feb 2021 09:13:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd+ih14xZLErL3FyUtdmFXQZZE9wWneb4R6PXRA71xf8idyK3lIStTg6FOc9H1aso3YSWI X-Received: by 2002:a05:6402:26c7:: with SMTP id x7mr1361259edd.24.1612199621517; Mon, 01 Feb 2021 09:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612199621; cv=none; d=google.com; s=arc-20160816; b=MM+ypa4I1WNttbYaKN9rXO0TCt8SbAnwFwX8Yb7iFly1XGBAkAqZqBuIq4jAG3X1Fe WKvcsrgLRNLeNfpcRe5gX3iJK7L1C9mS0HWzC3+XGq1TTB0hBi2ZDvWaVbrD2rbduKkx qRBJImPZBmo+E0BkbFyDV41BreQ/1gpoW3AqaScR/S8Ir0kQa6WMO5v57SB9ThbSi0q2 sL2QbF/+nbnuSNZtNXr7u5gJwZJolcqSksEzrW7oIanWipGrBMKADGXpTAB1Uff+avc1 43sf4AVi4bvqk4TRZ1iH4OZaIv2S2V5fharxEae6JVYsHDyMLCYB4xV5HJKhDbAU8KHq EFlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=CVrKBB5hpBRM2iLwOrlTAbVZ7k6081pZGCfLjhIYdMg=; b=AxNibHxZgmO9G+m7j+pYsbkmHiZZmkb0oYkeo5QxoccPyLCAIcGN2CxjWz50bCKxhq T3+roF3DxBUHupl2ph82GNnNVVeWnopZVHnUQfcb9WObqgRkPWrMCpLjdQPrPwfdGPVR E+iTEa+nHI1JySYzbnr5rEv3p1kF19o+9dk549WNZKlZKteKj+4wy9ARUx5Gb4O18tbo RXD6FkhdWINj/zbuxkdOZONLBrgTNn7gRQ8RLUovbHM+/XIa/qMGl72vOZerVsRgiPFW biz7nDf3/sGXQ6S6Qr4e+Qd9BTMKAsVVa+x8JRtCPvaFzwcpA/1xoxdJcyZDt9SAG002 3Ygw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si11577102edw.334.2021.02.01.09.13.13; Mon, 01 Feb 2021 09:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbhBARLi (ORCPT + 99 others); Mon, 1 Feb 2021 12:11:38 -0500 Received: from mga04.intel.com ([192.55.52.120]:58996 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbhBARLe (ORCPT ); Mon, 1 Feb 2021 12:11:34 -0500 IronPort-SDR: QgyF0Z6EBtn3RwR8+WhIQw5DjW+pGNhuuz3EbZoP8aQDa+JqIVk0tTnbBtxNOCbRZ/SrMXj+j2 UAuM2KXcPpTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="178155859" X-IronPort-AV: E=Sophos;i="5.79,393,1602572400"; d="scan'208";a="178155859" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 09:10:53 -0800 IronPort-SDR: HBYH405ROlMEXT03PmawXS4NPL/f9eJXfesa31754JNg5yULll9HHRdK5HY/0W32JLDR6YU/lE D8fqecKtWQ/Q== X-IronPort-AV: E=Sophos;i="5.79,393,1602572400"; d="scan'208";a="432430624" Received: from jambrizm-mobl1.amr.corp.intel.com (HELO intel.com) ([10.252.133.15]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 09:10:52 -0800 Date: Mon, 1 Feb 2021 09:10:51 -0800 From: Ben Widawsky To: David Rientjes Cc: linux-cxl@vger.kernel.org, Dan Williams , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Chris Browy , Christoph Hellwig , Ira Weiny , Jon Masters , Jonathan Cameron , Rafael Wysocki , Randy Dunlap , Vishal Verma , daniel.lll@alibaba-inc.com, "John Groves (jgroves)" , "Kelley, Sean V" Subject: Re: [PATCH 05/14] cxl/mem: Register CXL memX devices Message-ID: <20210201171051.m3cbr3udczxwghqh@intel.com> References: <20210130002438.1872527-1-ben.widawsky@intel.com> <20210130002438.1872527-6-ben.widawsky@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-01-30 15:52:01, David Rientjes wrote: > On Fri, 29 Jan 2021, Ben Widawsky wrote: > > > diff --git a/Documentation/ABI/testing/sysfs-bus-cxl b/Documentation/ABI/testing/sysfs-bus-cxl > > new file mode 100644 > > index 000000000000..fe7b87eba988 > > --- /dev/null > > +++ b/Documentation/ABI/testing/sysfs-bus-cxl > > @@ -0,0 +1,26 @@ > > +What: /sys/bus/cxl/devices/memX/firmware_version > > +Date: December, 2020 > > +KernelVersion: v5.12 > > +Contact: linux-cxl@vger.kernel.org > > +Description: > > + (RO) "FW Revision" string as reported by the Identify > > + Memory Device Output Payload in the CXL-2.0 > > + specification. > > + > > +What: /sys/bus/cxl/devices/memX/ram/size > > +Date: December, 2020 > > +KernelVersion: v5.12 > > +Contact: linux-cxl@vger.kernel.org > > +Description: > > + (RO) "Volatile Only Capacity" as reported by the > > + Identify Memory Device Output Payload in the CXL-2.0 > > + specification. > > + > > +What: /sys/bus/cxl/devices/memX/pmem/size > > +Date: December, 2020 > > +KernelVersion: v5.12 > > +Contact: linux-cxl@vger.kernel.org > > +Description: > > + (RO) "Persistent Only Capacity" as reported by the > > + Identify Memory Device Output Payload in the CXL-2.0 > > + specification. > > Aren't volatile and persistent capacities expressed in multiples of 256MB? As of the spec today, volatile and persistent capacities are required to be in multiples of 256MB, however, future specs may not have such a requirement and I think keeping sysfs ABI easily forward portable makes sense.