Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4149249pxb; Mon, 1 Feb 2021 13:55:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9FMPtLFcboRtNyReWZWhMvzRkeVRXdVCG99OV1nfION2Nl8m/wnN/bnlHp4fEnlV9YQ7C X-Received: by 2002:aa7:c804:: with SMTP id a4mr20664275edt.297.1612216519854; Mon, 01 Feb 2021 13:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612216519; cv=none; d=google.com; s=arc-20160816; b=JehOLM8VThHfwuk/F4OD/nLZlngmDVDaEqu3KppOsnJ6CgG+rPH02MEvCbh6+aetiT GsGhU7W+KXAdSLjcSFXQLVfs3Qm3CLOkdq6g1z6wcwGfjAgT4SxrpS+D6vo0MuiuZOiC mOndBuAqWCzd2uA58/JNj8/KmcMdIkHgGLu3BSReNo52dCLs7YMHLSHt6ZR3f7JDFVaQ VdolDwBLSyI6sZr4tUTzpWHnTSJPgTUyQUXO6SbfC/Q1xhCrNcV76JWZ4x9Wui0pJ6Fi y23Tof9kWUB1mHOG/YgOm7a4v5N8LwmN1mJ7fUVuE0fxI365o1cI6sN+7vh+iVQh1nio H2Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=N6tU/hkqNUMYsHM0IUqTnCXIZDB8nb2QJ5YhEZMP+tE=; b=udipzrep6a9aTeYXWhanPdyhv0dzZRdml4ExQ51l+VqJymcy0iVnRCF2ROfxjTEKJR S528TJJ86QInx4dGuBuaNHAZpeUaFFzfFE/ssDYcLz7dqMYuAq13MbWsLMxyHtnPUPSw QHZJnjk2t9tKyW8ldwe2Sdl9jBm5cVRB0C/pXyHT7qyet3LEnsYjESiXPBAB2gX+qhDK 7w5H0r2NyFF4CDJp+k0z/cJrHoD2uOlOsSepNSqxGZqWrRdg51deDrWrA1uRzLAjCzOY O9Vh1N52xgUoyJPO2GoBY//DymKIE6yWnVFPBPQO6RQXPukZSFfrrxd8lrTOFsCx8QON gACQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WZi+UCs9; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si11203989ejc.406.2021.02.01.13.54.55; Mon, 01 Feb 2021 13:55:19 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=WZi+UCs9; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbhBAVxt (ORCPT + 99 others); Mon, 1 Feb 2021 16:53:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbhBAVxr (ORCPT ); Mon, 1 Feb 2021 16:53:47 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03A55C0613D6 for ; Mon, 1 Feb 2021 13:53:07 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id nm1so448664pjb.3 for ; Mon, 01 Feb 2021 13:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=N6tU/hkqNUMYsHM0IUqTnCXIZDB8nb2QJ5YhEZMP+tE=; b=WZi+UCs9TIbCUorANOZIg1lacKJyrLAcxNgjqYv2hNfd0YCcWVUr7BGsWFb1LJIeln UelOikGZSyHtnr85jilxjPtGr9ZrM138I2fxLqj7VzG8BUYH/s6nx67rVjthtycndIQX L3fGAZD1a7UEf5TUkzE8WDjRzAznsbPZomOWfxve4P0qqnIX7Kb2xvvbK6O5gtVEHUqw vBxXHHfsMMe0vFxzNCHdspQP6sYm6XDirkDgPU/KcOLz+prvZoNhzG2Py/aSLNALyU/E 3RqDEnEBvUa0+i2+s4SRsa3p3nhYWglPsFE5vBFTZtM/lOExGpoLoTxaNVZstQlDpviD 6EFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=N6tU/hkqNUMYsHM0IUqTnCXIZDB8nb2QJ5YhEZMP+tE=; b=DV1aNbLVzI/88fcLLRkH4Bgh8JlOKYGxtH2gIOz3zQCl0zOSqE7imKtt/3KI0fqPLI edfnCL1D8HxcY8tsggxN/Iqvt/SBew0QrZv/oltZig9fcbZiF8/in9p0fRSpMsbyIF59 BewepvA6hSLZY8N/WsNWtY3RwUFswIZeiW0HzdvNnXyPb8NH32vnub7SybzQ8qGGCk6I SR7IFCgwfAX5RDQbQUM/gaV/HHwrKxtXQAV/0zrsq4jX+FaAaXEeQaIAhIcCaktHigaV nojFDw7e1/kZaMM2NLx1korGlRCKrS9bKEy1VbK/UQO2xMALx68dyQlaLhd7Wda6TTNc MFLA== X-Gm-Message-State: AOAM530vnpPpNyDZw4FTh317+eZ4SGiD8UhMbDvUN8uajGr8J+3xvWEM kt/813/nNOJKc+2QW/ByF5ZP1w== X-Received: by 2002:a17:902:c106:b029:de:af88:80ed with SMTP id 6-20020a170902c106b02900deaf8880edmr19001691pli.35.1612216386313; Mon, 01 Feb 2021 13:53:06 -0800 (PST) Received: from [2620:15c:17:3:4a0f:cfff:fe51:6667] ([2620:15c:17:3:4a0f:cfff:fe51:6667]) by smtp.gmail.com with ESMTPSA id k128sm18715106pfd.137.2021.02.01.13.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 13:53:05 -0800 (PST) Date: Mon, 1 Feb 2021 13:53:03 -0800 (PST) From: David Rientjes To: Ben Widawsky 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 In-Reply-To: <20210201171051.m3cbr3udczxwghqh@intel.com> Message-ID: <4d62a125-91e1-d32-66d3-1216d751f9b8@google.com> References: <20210130002438.1872527-1-ben.widawsky@intel.com> <20210130002438.1872527-6-ben.widawsky@intel.com> <20210201171051.m3cbr3udczxwghqh@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Feb 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. > Makes sense, can we add that these are expressed in bytes or is that already implied?