Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1190741pxb; Thu, 15 Apr 2021 16:56:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycUuk829umTbg3sT11hClD/ZM1JBdErNbW4M1Ea+AwWjqKaIRgVhSe5bM+ehdJ9Rgk5ZUc X-Received: by 2002:a05:6402:2054:: with SMTP id bc20mr6918123edb.334.1618530980170; Thu, 15 Apr 2021 16:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618530980; cv=none; d=google.com; s=arc-20160816; b=ahR71d5vY8S8TgRi+jBwfYBNJ7PV55bPObHPsWS+1oo0s7ni9BL3F1JKrDRjumdDel W7jrg9ebYNLePqDdLgVaEWmWQHgSC3Rh2IBkVft5Y1ZNZ/J+mcaj0MvNMtH94DA5obbY tUuw9gIcPOQRIeo/jZqfPSesqo/OB3lkFx7AAs2CzVtH1ZIhTBUMBJqwL+8TMx7cQe/6 J47vfhsrtvPyHPdhh9X3rKIycZz4tyPPuN50gEjr/EeGjLNZmWmtFjcD3u3D+p8mIfay CBc5/laQwr4zn9GBppeVDOFFcmmCqWp2liZ3FNAaT7lRIdpRmuANpmQvghiNsjVgsVTw w/3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=xsZuhMhZBxJf83mRUfwlPujGdOFeuDrpPzuCp65R6/s=; b=O8MEcO4UYO+JhSKcIwhpHCzzh7dfr0vfW2MR11gcyKhU3wjNiqo6/2YmzaL+eOUc/H Uj0dKSnFsSXF1KWOomDENZvhtLA3CHM0H6N1I3VWdtWILwCz1iXmhnQVy5AOQEf/AguZ YwOtsdMr9KqXFNenNidehYyfdOu0AzHzlBYvql/BuxFBbmKrsDFS/YvWRhdRv3INxHIe 6d7QfNfuTpJqTSb8kYV0ZcSi/vF1vFBXtT6mL2LexUO/flXNm3MDbBsNi8qcBKvFm3ft QIlnu3hCWI8+JqLpvHctKN+Aj6EZpyDTKNwzbEnPUCumZdgo3u8cTaw+UUoWZIgCqHal +hyw== 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 kq12si3673345ejb.371.2021.04.15.16.55.57; Thu, 15 Apr 2021 16:56:20 -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 S237800AbhDOX0s (ORCPT + 99 others); Thu, 15 Apr 2021 19:26:48 -0400 Received: from mga05.intel.com ([192.55.52.43]:7828 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236674AbhDOX0q (ORCPT ); Thu, 15 Apr 2021 19:26:46 -0400 IronPort-SDR: 6w+CmnceWvY+qgU9OHYOP2QMyKEbKJwuDXs1s3m0jGb2s0cJgVEsUqSlek/Ss9Boh9fNbqljCG c4zCY3oajL1g== X-IronPort-AV: E=McAfee;i="6200,9189,9955"; a="280279117" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="280279117" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 16:26:20 -0700 IronPort-SDR: vBd27/QSGH/VbkxNXnXmPcAJGrONBrIKlgbJfWxWtHiuaMGq0QBrc2L7/v2PwkHCyEKGjueFDo wcL47sPimiPA== X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="522540100" Received: from oamoninu-mobl1.amr.corp.intel.com (HELO bwidawsk-mobl5.local) ([10.252.130.91]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 16:26:20 -0700 From: Ben Widawsky To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, ira.weiny@intel.com, vishal.l.verma@intel.com, alison.schofield@intel.com, dan.j.williams@intel.com, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] cxl/mem: Demarcate vendor specific capability IDs Date: Thu, 15 Apr 2021 16:26:10 -0700 Message-Id: <20210415232610.603273-3-ben.widawsky@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210415232610.603273-1-ben.widawsky@intel.com> References: <20210415232610.603273-1-ben.widawsky@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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..0909f73db994 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; } } -- 2.31.1