From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AAE6B211CD9BC for ; Sun, 24 Feb 2019 10:25:01 -0800 (PST) Received: by mail-ot1-x343.google.com with SMTP id z19so6032296otm.2 for ; Sun, 24 Feb 2019 10:25:00 -0800 (PST) MIME-Version: 1.0 References: <20190222235854.18927-1-vishal.l.verma@intel.com> <00540b00898a544b38a989b0b3b6c005fd50bef4.camel@kernel.org> In-Reply-To: <00540b00898a544b38a989b0b3b6c005fd50bef4.camel@kernel.org> From: Dan Williams Date: Sun, 24 Feb 2019 10:24:48 -0800 Message-ID: Subject: Re: [PATCH] dax: add a 'modalias' attribute to DAX 'bus' devices List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Vishal Verma Cc: Dave Hansen , linux-nvdimm List-ID: On Sat, Feb 23, 2019 at 5:29 PM Vishal Verma wrote: > > On Fri, 2019-02-22 at 16:24 -0800, Dan Williams wrote: > > Looks ok, but I think the changelog could be more accurate. > > > > On Fri, Feb 22, 2019 at 3:59 PM Vishal Verma wrote: > > > Add a 'modalias' attribute to devices under the DAX bus so that userspace > > > is able to dynamically load modules as needed. > > > > The modalias is already published in the uevent which is how udev > > identifies the module. This patch would allow "modalias to module > > lookups" *outside* of the typical uevent used for dynamically loading > > modules. > > > > Care to fix up the changelog with that detail and why userspace needs > > to do these lookups in addition to the typical uevent lookups? > > > > Yes, thanks for the feedback, I think this reads better: > > 8<---- > > From 1e399f52f21c22e4c4bd5d48b26f539e12342beb Mon Sep 17 00:00:00 2001 > From: Vishal Verma > Date: Fri, 22 Feb 2019 16:58:54 -0700 > Subject: [PATCH v2] dax: add a 'modalias' attribute to DAX 'bus' devices > > Add a 'modalias' attribute to devices under the DAX bus so that userspace > is able to dynamically load modules as needed. > > Normally, udev can get the modalias from 'uevent', and that is correctly > set up by the DAX bus. However other tooling such as 'libndctl' for > interacting with drivers/nvdimm/, and 'libdaxctl' for drivers/dax/ can > also use the modalias to dynamically load modules via libkmod lookups. > > The 'nd' bus set up by the libnvdimm subsystem exports a modalias > attribute. Imitate this to export the same for the 'dax' bus. > > Cc: Dan Williams > Cc: Dave Hansen > Signed-off-by: Vishal Verma Looks good, Reviewed-by: Dan Williams _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm