Re: [regression] Bug 217037 - cmb attributes missing from the nvme class under sysfs

From: Keith Busch
Date: Thu Feb 16 2023 - 10:19:26 EST


On Thu, Feb 16, 2023 at 10:28:55AM +0100, Linux regression tracking (Thorsten Leemhuis) wrote:
> Hi, this is your Linux kernel regression tracker.
>
> I noticed a regression report in bugzilla.kernel.org. As many (most?)
> kernel developer don't keep an eye on it, I decided to forward it by
> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=217037 :
>
> > michallinuxstuff@xxxxxxxxx 2023-02-14 14:16:26 UTC
> >
> > For the CMB-capable nvme ctrls, kernel was exposing couple of related attributes under the sysfs. E.g.
> >
> >
> > # grep . /sys/class/nvme/nvme0/cmb*
> > /sys/class/nvme/nvme0/cmb:cmbloc : x00000062
> > /sys/class/nvme/nvme0/cmb:cmbsz : x0008021d
> > /sys/class/nvme/nvme0/cmbloc:98
> > /sys/class/nvme/nvme0/cmbsz:524829

The breakage is that the attributes are decided before we've setup the cmb
regions. I'll send a fix shortly.