Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1198583pxb; Thu, 15 Apr 2021 17:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVTwONV10jERJpxJ0izZC6A35hPQbU4ptWgtTxc4SbuI5kYf+Kjn5ztLWDmh4AlPBH1Ds+ X-Received: by 2002:a63:530d:: with SMTP id h13mr5673853pgb.120.1618531779818; Thu, 15 Apr 2021 17:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618531779; cv=none; d=google.com; s=arc-20160816; b=hYCGKlTusmKnHfQBf/tSPq1qkzmZ2jtJUTfJpqbabeD8rLjoU0XLdsoua8W1oa0wZ4 uXAXSxZv6SZ02PMEk5WldWU4aG+idsc+xtP5DvlWqzl5fCUnv7shYXuWR2m6e4p3Kujc 7buhL2vj1gxq8NlRjGkZ5UXC4lv8pKdRG6a+3OI+Y6Mb67BnE+pjHN3bZGjMs0oS9QXv UmvLFygXAmCO+d0OaGAjJ0iBteJqGl+s9LYv+VVYxifXys6wRKP+JZpX7yHxsgL+hIa3 q5c0i9nTBt95ApTUJihZZmPUSZpt6EjYTIG+IfZlCP3ZnxxIY0j4VifmIBUNRt5UWihG HGmg== 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=pGidP8K8cuyAS6Q1LC1AgxsN6EIg2nAxLmOiggBdjC0=; b=qXSfjZf668pAm/AN5GEodueJVO7rj3pO1S7FeZMVQaWjNhbJbjJfil04gJfEbbZ8gZ qu+bV0FExTE7UsccQTX0Fi+43yU7MLzdJc0K6XYkGrnjua9/Vjo581y0MzxQ3ldp72OG hUvk8+GQbKw/aw2wiZsK3+pw5NFeX+eh4S7AGCW6iHc6dc3O7opHCht/Pq0MzDHasrTV 2WvyCiWDJVX2D3+Fd89jz6FDJs7SR2SslMBheY6lEWZVJxRQOdQJYab7BMqeegXgMM6E SI2VONFUFJesv1RvPAOFfKINAdddHXDrc7mYzgiyhRqgK0Llpef1AkX2EUw4LjamvDIn nhBQ== 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 j16si5450622pfi.107.2021.04.15.17.09.26; Thu, 15 Apr 2021 17:09:39 -0700 (PDT) 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 S235871AbhDOXvJ (ORCPT + 99 others); Thu, 15 Apr 2021 19:51:09 -0400 Received: from mga04.intel.com ([192.55.52.120]:33031 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234865AbhDOXvI (ORCPT ); Thu, 15 Apr 2021 19:51:08 -0400 IronPort-SDR: KmwtaRebBo2bdqPswYdYZ1/Pyb9DRWMH57WfrWk00tmDEQjBBNIG2o0ET6cBXwHksMEl+yevMX 6N4XN6qhLSlw== X-IronPort-AV: E=McAfee;i="6200,9189,9955"; a="192837295" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="192837295" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 16:50:44 -0700 IronPort-SDR: 1mWxw8Rnkx3kT7ECOBmUb+AGl708AnhCVQ/PJ97ZYiX4sav8dKW5dGOB/4utFcOWgx3oHvh2wO x3nAMtB1AKlg== X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="384168737" Received: from oamoninu-mobl1.amr.corp.intel.com (HELO intel.com) ([10.252.130.91]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 16:50:44 -0700 Date: Thu, 15 Apr 2021 16:50:43 -0700 From: Ben Widawsky To: "Verma, Vishal L" Cc: "linux-cxl@vger.kernel.org" , "Williams, Dan J" , "linux-pci@vger.kernel.org" , "Schofield, Alison" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "Weiny, Ira" Subject: Re: [PATCH 3/3] cxl/mem: Demarcate vendor specific capability IDs Message-ID: <20210415235043.xo7hkxftrxkzhix5@intel.com> References: <20210415232610.603273-3-ben.widawsky@intel.com> <20210415232750.604112-1-ben.widawsky@intel.com> <2e570a62f540557d4dda66d90ff73fa841362b45.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e570a62f540557d4dda66d90ff73fa841362b45.camel@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-04-15 16:37:01, Verma, Vishal L wrote: > On Thu, 2021-04-15 at 16:27 -0700, Ben Widawsky wrote: > > Vendor capabilities occupy 0x8000 to 0xFFFF according to CXL 2.0 spec > > 8.2.8.2.1 CXL Device Capabilities. While they are not defined by the > > spec, they are allowed and not "unknown". Call this detail out in the > > logs to let users easily distinguish the difference. > > > > v2: Should be greater than or equal to (Ben) > > If there's a v3, drop this to below the '---'. Otherwise note for Dan to > drop when applying I guess :) > Thanks... This one is an old habit. I'll point out too I messed up the subject here. > > > > Fixes: 8adaf747c9f0b ("cxl/mem: Find device capabilities") > > Signed-off-by: Ben Widawsky > > --- > > drivers/cxl/mem.c | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c > > index c05617b0ba4b..28c7c29567b3 100644 > > --- a/drivers/cxl/mem.c > > +++ b/drivers/cxl/mem.c > > @@ -939,7 +939,10 @@ static int cxl_mem_setup_regs(struct cxl_mem *cxlm) > > cxlm->memdev_regs = register_block; > > break; > > default: > > -dev_dbg(dev, "Unknown cap ID: %x (0x%x)\n", cap_id, offset); > > +if (cap_id >= 0x8000) > > +dev_dbg(dev, "Vendor cap ID: %x (0x%x)\n", cap_id, offset); > > +else > > +dev_dbg(dev, "Unknown cap ID: %x (0x%x)\n", cap_id, offset); > > break; > > } > > } >