* Re: [PATCH v6 0/3] PCIe Enclosure LED Management
[not found] <20240814122900.13525-1-mariusz.tkaczyk@linux.intel.com>
@ 2024-08-14 20:27 ` Bjorn Helgaas
2024-08-21 14:02 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2024-08-14 20:27 UTC (permalink / raw)
To: Mariusz Tkaczyk
Cc: linux-pci, Lukas Wunner, Christoph Hellwig, Ilpo Järvinen,
Stuart Hayes, Arnd Bergmann, Bjorn Helgaas, Dan Williams,
Greg Kroah-Hartman, Keith Busch, Marek Behun, Pavel Machek,
Randy Dunlap, Andy Shevchenko, Lee Jones, linux-leds,
linux-kernel
[+cc Lee, linux-leds for comment on using the LED subsystem as
described in patch 2/3; would be nice to have a reviewed-by or ack for
this. Thread at
https://lore.kernel.org/r/20240814122900.13525-4-mariusz.tkaczyk@linux.intel.com]
On Wed, Aug 14, 2024 at 02:28:57PM +0200, Mariusz Tkaczyk wrote:
> Patchset is named as PCIe Enclosure LED Management because it adds two
> features:
> - Native PCIe Enclosure Management (NPEM)
> - PCIe SSD Status LED Management (DSM)
>
> Both are pattern oriented standards, they tell which "indication"
> should blink. It doesn't control physical LED or pattern visualization.
>
> Overall, driver is simple but it was not simple to fit it into interfaces
> we have in kernel (We considered leds and enclosure interfaces). It reuses
> leds interface, this approach seems to be the best because:
> - leds are actively maintained, no new interface added.
> - leds do not require any extensions, enclosure needs to be adjusted first.
>
> There are trade-offs:
> - "brightness" is the name of sysfs file to control led. It is not
> natural to use brightness to set patterns, that is why multiple led
> devices are created (one per indication);
> - Update of one led may affect other leds, led triggers may not work
> as expected.
v1 at https://lore.kernel.org/r/20240215142345.6073-1-mariusz.tkaczyk@linux.intel.com
> Changes from v1:
> - Renamed "pattern" to indication.
> - DSM support added.
> - fixed nits reported by Bjorn.
v2 at https://lore.kernel.org/r/20240528131940.16924-1-mariusz.tkaczyk@linux.intel.com
> Changes from v2:
> - Introduce lazy loading to allow DELL _DSM quirks to work, reported by
> Stuart.
> - leds class initcall moved up in Makefile, proposed by Dan.
> - fix other nits reported by Dan and Iipo.
v3 at https://lore.kernel.org/r/20240705125436.26057-1-mariusz.tkaczyk@linux.intel.com
> Changes from v3:
> - Remove unnecessary packed attr.
> - Fix doc issue reported by lkp.
> - Fix read_poll_timeout() error handling reported by Iipo.
> - Minor fixes reported by Christoph.
v4 at https://lore.kernel.org/r/20240711083009.5580-1-mariusz.tkaczyk@linux.intel.com
> Changes from v4:
> - Use 0 / 1 instead of LED_OFF/LED_ON, suggested by Marek.
> - Documentation added, suggested by Bjorn.
v5 at https://lore.kernel.org/r/20240813113024.17938-1-mariusz.tkaczyk@linux.intel.com
> Change from v5:
> - Remove unnecessary _packed, reported by Christoph.
> - Changed "led" to "LED" and other typos suggested by Randy.
>
> Suggested-by: Lukas Wunner <lukas@wunner.de>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> Tested-by: Stuart Hayes <stuart.w.hayes@gmail.com>
Evidently you intend these tags to be applied to each patch, but b4
doesn't distribute tags from the cover letter across each individual
patch.
You included Christoph's Reviewed-by directly in patches 1 and 2, but
not Ilpo's. I didn't dig through the previous postings to verify all
this.
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Bjorn Helgaas <bhelgaas@google.com>
> Cc: Dan Williams <dan.j.williams@intel.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>
> Cc: Lukas Wunner <lukas@wunner.de>
> Cc: Keith Busch <kbusch@kernel.org>
> Cc: Marek Behun <marek.behun@nic.cz>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Stuart Hayes <stuart.w.hayes@gmail.com>
> Link: https://lore.kernel.org/linux-pci/20240813113024.17938-1-mariusz.tkaczyk@linux.intel.com
>
> Mariusz Tkaczyk (3):
> leds: Init leds class earlier
> PCI/NPEM: Add Native PCIe Enclosure Management support
> PCI/NPEM: Add _DSM PCIe SSD status LED management
>
> Documentation/ABI/testing/sysfs-bus-pci | 72 +++
> drivers/Makefile | 4 +-
> drivers/pci/Kconfig | 9 +
> drivers/pci/Makefile | 1 +
> drivers/pci/npem.c | 590 ++++++++++++++++++++++++
> drivers/pci/pci.h | 8 +
> drivers/pci/probe.c | 2 +
> drivers/pci/remove.c | 2 +
> include/linux/pci.h | 3 +
> include/uapi/linux/pci_regs.h | 35 ++
> 10 files changed, 725 insertions(+), 1 deletion(-)
> create mode 100644 drivers/pci/npem.c
>
> --
> 2.35.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v6 0/3] PCIe Enclosure LED Management
2024-08-14 20:27 ` [PATCH v6 0/3] PCIe Enclosure LED Management Bjorn Helgaas
@ 2024-08-21 14:02 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2024-08-21 14:02 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Mariusz Tkaczyk, linux-pci, Lukas Wunner, Christoph Hellwig,
Ilpo Järvinen, Stuart Hayes, Arnd Bergmann, Bjorn Helgaas,
Dan Williams, Greg Kroah-Hartman, Keith Busch, Marek Behun,
Pavel Machek, Randy Dunlap, Andy Shevchenko, linux-leds,
linux-kernel
On Wed, 14 Aug 2024, Bjorn Helgaas wrote:
> [+cc Lee, linux-leds for comment on using the LED subsystem as
> described in patch 2/3; would be nice to have a reviewed-by or ack for
> this. Thread at
> https://lore.kernel.org/r/20240814122900.13525-4-mariusz.tkaczyk@linux.intel.com]
I usually say things like "if you want to act as an X-device, author an
X-driver and put it in X-subsystem". However it looks like the LED
class is already heavily abused in similar ways as this, so there's not
a great deal I can say about it.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-21 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240814122900.13525-1-mariusz.tkaczyk@linux.intel.com>
2024-08-14 20:27 ` [PATCH v6 0/3] PCIe Enclosure LED Management Bjorn Helgaas
2024-08-21 14:02 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).