[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210415235043.xo7hkxftrxkzhix5@intel.com>
Date: Thu, 15 Apr 2021 16:50:43 -0700
From: Ben Widawsky <ben.widawsky@...el.com>
To: "Verma, Vishal L" <vishal.l.verma@...el.com>
Cc: "linux-cxl@...r.kernel.org" <linux-cxl@...r.kernel.org>,
"Williams, Dan J" <dan.j.williams@...el.com>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"Schofield, Alison" <alison.schofield@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"Weiny, Ira" <ira.weiny@...el.com>
Subject: Re: [PATCH 3/3] cxl/mem: Demarcate vendor specific capability IDs
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 <ben.widawsky@...el.com>
> > ---
> > 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;
> > }
> > }
>
Powered by blists - more mailing lists