Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2170454pxu; Sun, 6 Dec 2020 22:15:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh9YR7+9yM7yZVJStKtTfdqAKxKyJi/VPN14jUCJr3G7uRClpjyotPhcTd0fh4zrl6Qqhu X-Received: by 2002:a50:d888:: with SMTP id p8mr18565852edj.147.1607321725104; Sun, 06 Dec 2020 22:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607321725; cv=none; d=google.com; s=arc-20160816; b=iIJoWW2PL9+tvbbEFDdotmJcWTT+hC8mFwa9M8dhnQzOhFF92u1MO4PQqlfMif9vh/ 8l6Z01TglRS/C7QitwZ+VTOMuQR/jnTzWSDqWK/WTmbtHLmft9cOvNDc/4SL+NCagwwj nE3wzG8VVG5aoaioO3IcMhebmpTATHVkqn29pODw67hQP3ZQyJ64mzV0suCeLYBP9sVA yp94mgJx3jci48YU5tJRaOdA3B9tLpQkOGFOiLTh053mCZPyq0B6daJ+0EsUSMvIGU88 wxdnOzbGZ+KLJPPgwl+TwW0n/63GLaaJPaPxGBb02frXLNtXqtePBTBcFJfTAtzYGIG1 ceYw== 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=Qw06i3dai3CBo7ODOuVjRIIqzSNKliYnHqAHo9TAzwg=; b=yghZdFGHk+izyM3lst2RqdF1krVQxpAU2xr/D5FZL/k4vOK8Xvf2yqOi7CLA1ze7fc FFkokuvLtF+k132DIjnd6wgUmlQof2xEzlNc6uFhqKrq85/Iy3NyGvdMJLYp/eUnYChP o3j+6B5gsy2YHorxVWYQjIv7Fbw1KDT0qy4fwFVie1JEX7IO2H1xIdwvkkabp4Xj5tUO smV1OPQPNRg5bt0K1qCKxv2uRgkZDKoUE+pV1SF0sibtO2vxLQdJhRQ0PVoy+fO/24EI Xujx5trDzTn34zhDdeqHIJE/lfAYArElY3h+X/oQ6QRQg1o82Q2KvDmn3oNCUl4ju4Mu 6jkg== 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 e10si3538513edk.554.2020.12.06.22.15.01; Sun, 06 Dec 2020 22:15:25 -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 S1725903AbgLGGNG (ORCPT + 99 others); Mon, 7 Dec 2020 01:13:06 -0500 Received: from mga02.intel.com ([134.134.136.20]:34823 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbgLGGNG (ORCPT ); Mon, 7 Dec 2020 01:13:06 -0500 IronPort-SDR: bGnUaM47eR5x1usXJ+AEXFErgaiaiIpu1TWZnvFEMwML6I1Ijdy8hhTKuItn9Uucd8VpiHZBRh ImB40vjNQN0w== X-IronPort-AV: E=McAfee;i="6000,8403,9827"; a="160695450" X-IronPort-AV: E=Sophos;i="5.78,398,1599548400"; d="scan'208";a="160695450" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2020 22:12:23 -0800 IronPort-SDR: IJbJuU7sjkkWHOn7e7i+gAP84ShePSd9DUEedrnq5OJwzMsXADC4OnJhnuRToW1V33ojPEU+co wPlib+C5B6bA== X-IronPort-AV: E=Sophos;i="5.78,398,1599548400"; d="scan'208";a="316974454" Received: from ghgarci1-mobl.amr.corp.intel.com (HELO intel.com) ([10.252.136.94]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2020 22:12:21 -0800 Date: Sun, 6 Dec 2020 22:12:20 -0800 From: Ben Widawsky To: Dan Williams Cc: linux-cxl@vger.kernel.org, Linux Kernel Mailing List , Linux PCI , Linux ACPI , Ira Weiny , Vishal Verma , "Kelley, Sean V" , Bjorn Helgaas , "Rafael J . Wysocki" Subject: Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities Message-ID: <20201207061220.a5tia24yn3x7putm@intel.com> References: <20201111054356.793390-1-ben.widawsky@intel.com> <20201111054356.793390-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 20-12-03 23:41:16, Dan Williams wrote: > On Tue, Nov 10, 2020 at 9:44 PM Ben Widawsky wrote: > > > > CXL devices contain an array of capabilities that describe the > > interactions software can interact with the device, or firmware running > > on the device. A CXL compliant device must implement the device status > > and the mailbox capability. A CXL compliant memory device must implement > > the memory device capability. > > > > Each of the capabilities can [will] provide an offset within the MMIO > > region for interacting with the CXL device. > > > > Signed-off-by: Ben Widawsky > > --- > > drivers/cxl/cxl.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++ > > drivers/cxl/mem.c | 58 +++++++++++++++++++++++++++--- > > 2 files changed, 143 insertions(+), 4 deletions(-) > > create mode 100644 drivers/cxl/cxl.h > > > > diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h > > new file mode 100644 > > index 000000000000..02858ae63d6d > > --- /dev/null > > +++ b/drivers/cxl/cxl.h > [..] > > +static inline u32 __cxl_raw_read_reg32(struct cxl_mem *cxlm, u32 reg) > > Going through my reworks and the "raw" jumped out at me. My typical > interpretation of "raw" in respect to register access macros is the > difference between readl() and __raw_readl() which means "don't do > bus endian swizzling, and don't do a memory clobber barrier". Any > heartburn to drop the "raw"? > > ...is it only me that reacts that way? I will drop "raw". Especially given that I intend to reuse the word in v2 for something entirely different, it makes sense. My idea of "raw" was that it's just unfettered access to the device's MMIO space. No offsets, no checks. I'm not sure of a better adjective to describe that, but if you have any in mind, I'd like to add it.