Re: [PATCH] Documentation/networking/af_xdp: Inhibit reference to struct socket

2019-08-11 Thread Jonathan Neuschäfer
On Sat, Aug 10, 2019 at 08:58:21AM -0600, Jonathan Corbet wrote: > On Sat, 10 Aug 2019 14:17:37 +0200 > Jonathan Neuschäfer wrote: > > > With the recent change to auto-detect function names, Sphinx parses > > socket() as a reference to the in-kernel definition of socket. It then > > decides that

[PATCH 1/3] workqueue: Convert for_each_wq to use built-in list check (v2)

2019-08-11 Thread Joel Fernandes (Google)
list_for_each_entry_rcu now has support to check for RCU reader sections as well as lock. Just use the support in it, instead of explicitly checking in the caller. Signed-off-by: Joel Fernandes (Google) --- kernel/workqueue.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff

[PATCH 3/3] driver/core: Fix build error when SRCU and lockdep disabled

2019-08-11 Thread Joel Fernandes (Google)
Properly check if lockdep lock checking is disabled at config time. If so, then lock_is_held() is undefined so don't do any checking. This fix is similar to the pattern used in srcu_read_lock_held(). Link: https://lore.kernel.org/lkml/201908080026.wsafx14k%25...@intel.com/ Fixes: c9e4d3a2fee8 ("a

[PATCH 2/3] doc: Update documentation about list_for_each_entry_rcu (v1)

2019-08-11 Thread Joel Fernandes (Google)
This patch updates the documentation with information about usage of lockdep with list_for_each_entry_rcu(). Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/lockdep.txt | 15 +++ Documentation/RCU/whatisRCU.txt | 9 - 2 files changed, 19 insertions(+), 5 delet

Re: [PATCH 1/3] workqueue: Convert for_each_wq to use built-in list check (v2)

2019-08-11 Thread Joel Fernandes
On Sun, Aug 11, 2019 at 6:11 PM Joel Fernandes (Google) wrote: > > list_for_each_entry_rcu now has support to check for RCU reader sections > as well as lock. Just use the support in it, instead of explicitly > checking in the caller. > > Signed-off-by: Joel Fernandes (Google) Tejun, Could you p

Re: [PATCH v2 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-11 Thread Milton Miller II
Around 08/10/2019 04:55AM in some time zone, John Wang wrote: > >Add the driver to monitor Inspur Power System power supplies >with hwmon over pmbus. > >This driver adds sysfs attributes for additional power supply data, >including vendor, model, part_number, serial number, >firmware revision, hard

Re: [PATCH] mailmap: add entry for Jaegeuk Kim

2019-08-11 Thread Chao Yu
On 2019/8/10 0:28, Jonathan Corbet wrote: > On Thu, 8 Aug 2019 22:37:41 +0800 > Chao Yu wrote: > >>> IMO, when we use git-blame to find out who is response for specified code, >>> w/o >>> mailmap we may just found old obsolete email address in the related commit; >>> even >>> we can search full

[PATCH v3 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-11 Thread John Wang
Add the driver to monitor Inspur Power System power supplies with hwmon over pmbus. This driver adds sysfs attributes for additional power supply data, including vendor, model, part_number, serial number, firmware revision, hardware revision, and psu mode(active/standby). Signed-off-by: John Wang

[PATCH v5 2/9] fpga: dfl: fme: convert platform_driver to use dev_groups

2019-08-11 Thread Wu Hao
This patch takes advantage of driver core which helps to create and remove sysfs attribute files, so there is no need to register sysfs entries manually in dfl-fme platform river code. Signed-off-by: Wu Hao --- drivers/fpga/dfl-fme-main.c | 29 ++--- 1 file changed, 2 ins

[PATCH v5 6/9] fpga: dfl: afu: add error reporting support.

2019-08-11 Thread Wu Hao
Error reporting is one important private feature, it reports error detected on port and accelerated function unit (AFU). It introduces several sysfs interfaces to allow userspace to check and clear errors detected by hardware. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Si

[PATCH v5 9/9] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-08-11 Thread Wu Hao
This patch adds virtualization support description for DFL based FPGA devices (based on PCIe SRIOV), and introductions to new interfaces added by new dfl private feature drivers. [m...@kernel.org: Fixed up to make it work with new reStructuredText docs] Signed-off-by: Xu Yilun Signed-off-by: Wu H

[PATCH v5 1/9] fpga: dfl: make init callback optional

2019-08-11 Thread Wu Hao
This patch makes init callback of sub features optional. With this change, people don't need to prepare any empty init callback. Signed-off-by: Wu Hao --- drivers/fpga/dfl.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/fpga/dfl.c b/drivers/fpga/dfl.c ind

[PATCH v5 7/9] fpga: dfl: afu: add STP (SignalTap) support

2019-08-11 Thread Wu Hao
STP (SignalTap) is one of the private features under the port for debugging. This patch adds private feature driver support for it to allow userspace applications to mmap related mmio region and provide STP service. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by

[PATCH v5 3/9] fpga: dfl: afu: convert platform_driver to use dev_groups

2019-08-11 Thread Wu Hao
This patch takes advantage of driver core which helps to create and remove sysfs attribute files, so there is no need to register sysfs entries manually in dfl-afu platform river code. Signed-off-by: Wu Hao --- drivers/fpga/dfl-afu-main.c | 69 +++-- 1 fil

[PATCH v5 8/9] fpga: dfl: fme: add global error reporting support

2019-08-11 Thread Wu Hao
This patch adds support for global error reporting for FPGA Management Engine (FME), it introduces sysfs interfaces to report different error detected by the hardware, and allow user to clear errors or inject error for testing purpose. Signed-off-by: Luwei Kang Signed-off-by: Ananda Ravuri Signe

[PATCH v5 5/9] fpga: dfl: afu: expose __afu_port_enable/disable function.

2019-08-11 Thread Wu Hao
As these two functions are used by other private features within the same driver module but different driver files. e.g. in error reporting private feature, it requires to clear errors when port is in reset. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan T

[PATCH v5 0/9] FPGA DFL updates

2019-08-11 Thread Wu Hao
Hi Greg, This is v5 patchset which adds more features to FPGA DFL. Marjor changes against v4 are sysfs related code rework to address comments on v4. Please help to take a look. Thanks! Main changes from v4: - convert code to use dev_groups for sysfs entries (#2, #3, #4, #6, #8). - clean up

[PATCH v5 4/9] fpga: dfl: afu: add userclock sysfs interfaces.

2019-08-11 Thread Wu Hao
This patch introduces userclock sysfs interfaces for AFU, user could use these interfaces for clock setting to AFU. Please note that, this is only working for port header feature with revision 0, for later revisions, userclock setting is moved to a separated private feature, so one revision sysfs

Re: [PATCH v3 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-11 Thread Guenter Roeck
On 8/11/19 7:53 PM, John Wang wrote: Add the driver to monitor Inspur Power System power supplies with hwmon over pmbus. This driver adds sysfs attributes for additional power supply data, including vendor, model, part_number, serial number, firmware revision, hardware revision, and psu mode(act

Re: [PATCH v3 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-11 Thread John Wang
On Mon, Aug 12, 2019 at 12:21 PM Guenter Roeck wrote: > > On 8/11/19 7:53 PM, John Wang wrote: > > Add the driver to monitor Inspur Power System power supplies > > with hwmon over pmbus. > > > > This driver adds sysfs attributes for additional power supply data, > > including vendor, model, part_n

Re: [PATCH 3/3] driver/core: Fix build error when SRCU and lockdep disabled

2019-08-11 Thread Greg Kroah-Hartman
On Sun, Aug 11, 2019 at 06:11:11PM -0400, Joel Fernandes (Google) wrote: > Properly check if lockdep lock checking is disabled at config time. If > so, then lock_is_held() is undefined so don't do any checking. > > This fix is similar to the pattern used in srcu_read_lock_held(). > > Link: https: