[PATCH 0/2] arm64/drivers: avoid alloc memory on offline node

2018-05-31 Thread Xie XiuQi
A numa system may return node which is not online. For example, a numa node: 1) without memory 2) NR_CPUS is very small, and the cpus on the node are not brought up In this situation, we use NUMA_NO_NODE to avoid oops. [ 25.732905] Unable to handle kernel NULL pointer dereference at virtual

[PATCH 2/2] drivers: check numa node's online status in dev_to_node

2018-05-31 Thread Xie XiuQi
If dev->numa_node is not available (or offline), we should return NUMA_NO_NODE to prevent alloc memory on offline nodes, which could cause oops. For example, a numa node: 1) without memory 2) NR_CPUS is very small, and the cpus on the node are not brought up [ 27.851041] Unable to handle

[PATCH 1/2] arm64: avoid alloc memory on offline node

2018-05-31 Thread Xie XiuQi
A numa system may return node which is not online. For example, a numa node: 1) without memory 2) NR_CPUS is very small, and the cpus on the node are not brought up In this situation, we use NUMA_NO_NODE to avoid oops. [ 25.732905] Unable to handle kernel NULL pointer dereference at virtual

[PATCH 1/2] arm64: avoid alloc memory on offline node

2018-05-31 Thread Xie XiuQi
A numa system may return node which is not online. For example, a numa node: 1) without memory 2) NR_CPUS is very small, and the cpus on the node are not brought up In this situation, we use NUMA_NO_NODE to avoid oops. [ 25.732905] Unable to handle kernel NULL pointer dereference at virtual

Re: [PATCH] platform/x86: ideapad-laptop: Fix rfkill invert

2018-05-31 Thread Andy Shevchenko
On Thu, May 24, 2018 at 4:32 PM, Oleg Keri wrote: > There are a lot of reports on the Internet about rfkill lock on > modern Yoga Ideapad laptops while loading ideapad_laptop platform module. > This patch offers the fix. Obviously it's impossible for me > to test this patch on all ideapad

Re: [PATCH] platform/x86: ideapad-laptop: Fix rfkill invert

2018-05-31 Thread Andy Shevchenko
On Thu, May 24, 2018 at 4:32 PM, Oleg Keri wrote: > There are a lot of reports on the Internet about rfkill lock on > modern Yoga Ideapad laptops while loading ideapad_laptop platform module. > This patch offers the fix. Obviously it's impossible for me > to test this patch on all ideapad

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Timur Tabi
On 5/31/18 6:53 AM, Sebastian Gottschall wrote: i checked initially 4.9 with latest patches and 4.14 and reverted this line to get back to the old behaviour but a which view in the current 4.17 tree shows that the same patch has been included in 4.17. it was introduced in the kernel mainline 

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Timur Tabi
On 5/31/18 6:53 AM, Sebastian Gottschall wrote: i checked initially 4.9 with latest patches and 4.14 and reverted this line to get back to the old behaviour but a which view in the current 4.17 tree shows that the same patch has been included in 4.17. it was introduced in the kernel mainline 

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Sebastian Gottschall
Am 31.05.2018 um 13:45 schrieb Greg Kroah-Hartman: On Thu, May 31, 2018 at 01:21:56PM +0200, Sebastian Gottschall wrote: Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: 4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Sebastian Gottschall
Am 31.05.2018 um 13:45 schrieb Greg Kroah-Hartman: On Thu, May 31, 2018 at 01:21:56PM +0200, Sebastian Gottschall wrote: Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: 4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson

Re: [PATCH] autofs: small cleanup in autofs_getpath()

2018-05-31 Thread Eric W. Biederman
Dan Carpenter writes: > We don't set "*name" so it's slightly nicer to just pass "name" instead > of "". > > Signed-off-by: Dan Carpenter Acked-by: "Eric W. Biederman" This seems like an obvious and reasonable cleanup. > diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c > index

Re: [PATCH] autofs: small cleanup in autofs_getpath()

2018-05-31 Thread Eric W. Biederman
Dan Carpenter writes: > We don't set "*name" so it's slightly nicer to just pass "name" instead > of "". > > Signed-off-by: Dan Carpenter Acked-by: "Eric W. Biederman" This seems like an obvious and reasonable cleanup. > diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c > index

Re: [PATCH] lib/bch: Remove VLA usage

2018-05-31 Thread kbuild test robot
/commits/Kees-Cook/lib-bch-Remove-VLA-usage/20180531-055540 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> lib/bch.c:237:26: sparse: restricted __be32 degrades to

Re: [PATCH] lib/bch: Remove VLA usage

2018-05-31 Thread kbuild test robot
/commits/Kees-Cook/lib-bch-Remove-VLA-usage/20180531-055540 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> lib/bch.c:237:26: sparse: restricted __be32 degrades to

[PATCH] HID: core: allow concurrent registration of drivers

2018-05-31 Thread Benjamin Tissoires
Detected on the Dell XPS 9365. The laptop has 2 devices that benefit from the hid-generic auto-unbinding. When those 2 devices are presented to the userspace, udev loads both wacom and hid-multitouch. When this happens, the code in __hid_bus_reprobe_drivers() is called concurrently and the second

[PATCH] HID: core: allow concurrent registration of drivers

2018-05-31 Thread Benjamin Tissoires
Detected on the Dell XPS 9365. The laptop has 2 devices that benefit from the hid-generic auto-unbinding. When those 2 devices are presented to the userspace, udev loads both wacom and hid-multitouch. When this happens, the code in __hid_bus_reprobe_drivers() is called concurrently and the second

Re: [PATCH v2 16/21] ASoC: max98088: use match_string() helper

2018-05-31 Thread Mark Brown
On Thu, May 31, 2018 at 07:11:21PM +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. I don't have either the cover letter or the rest of the series here so I've no context - what is the story here

Re: [PATCH v2 16/21] ASoC: max98088: use match_string() helper

2018-05-31 Thread Mark Brown
On Thu, May 31, 2018 at 07:11:21PM +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. I don't have either the cover letter or the rest of the series here so I've no context - what is the story here

Re: [PATCH v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-31 Thread Mark Brown
On Wed, May 30, 2018 at 04:39:10PM -0700, David Collins wrote: > The DRMS modes to use and max allowed current per mode need to be > specified at the board level in device tree instead of hard-coded per > regulator type in the driver. There are at least two use cases driving > this need: LDOs

Re: [PATCH v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-31 Thread Mark Brown
On Wed, May 30, 2018 at 04:39:10PM -0700, David Collins wrote: > The DRMS modes to use and max allowed current per mode need to be > specified at the board level in device tree instead of hard-coded per > regulator type in the driver. There are at least two use cases driving > this need: LDOs

Re: [PATCH v2 0/8] gnss: add new GNSS subsystem

2018-05-31 Thread Johan Hovold
On Thu, May 31, 2018 at 11:52:18AM +0200, H. Nikolaus Schaller wrote: > > > Am 31.05.2018 um 10:52 schrieb Johan Hovold : > > > > On Wed, May 30, 2018 at 07:38:22AM -0700, Richard Cochran wrote: > >> On Wed, May 30, 2018 at 12:32:34PM +0200, Johan Hovold wrote: > >>> Another possible extension

Re: [PATCH v2 0/8] gnss: add new GNSS subsystem

2018-05-31 Thread Johan Hovold
On Thu, May 31, 2018 at 11:52:18AM +0200, H. Nikolaus Schaller wrote: > > > Am 31.05.2018 um 10:52 schrieb Johan Hovold : > > > > On Wed, May 30, 2018 at 07:38:22AM -0700, Richard Cochran wrote: > >> On Wed, May 30, 2018 at 12:32:34PM +0200, Johan Hovold wrote: > >>> Another possible extension

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Greg Kroah-Hartman
On Thu, May 31, 2018 at 01:21:56PM +0200, Sebastian Gottschall wrote: > Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: > > 4.16-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Bjorn Andersson > > > > [ Upstream commit

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Greg Kroah-Hartman
On Thu, May 31, 2018 at 01:21:56PM +0200, Sebastian Gottschall wrote: > Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: > > 4.16-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Bjorn Andersson > > > > [ Upstream commit

Re: [PATCH v2 03/21] Staging: gdm724x: use match_string() helper

2018-05-31 Thread Greg Kroah-Hartman
On Thu, May 31, 2018 at 07:11:08PM +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. > > Cc: Greg Kroah-Hartman > Cc: Quytelda Kahja > Cc: de...@driverdev.osuosl.org > Signed-off-by: Yisheng Xie >

Re: [PATCH v2 03/21] Staging: gdm724x: use match_string() helper

2018-05-31 Thread Greg Kroah-Hartman
On Thu, May 31, 2018 at 07:11:08PM +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. > > Cc: Greg Kroah-Hartman > Cc: Quytelda Kahja > Cc: de...@driverdev.osuosl.org > Signed-off-by: Yisheng Xie >

Re: [PATCH v3 4/5] PM / Domains: Add support for multi PM domains per device to genpd

2018-05-31 Thread Lucas Stach
Hi Ulf, Am Donnerstag, den 31.05.2018, 12:59 +0200 schrieb Ulf Hansson: > To support devices being partitioned across multiple PM domains, let's > begin with extending genpd to cope with these kind of configurations. > > Therefore, add a new exported function genpd_dev_pm_attach_by_id(), which >

Re: [PATCH v3 4/5] PM / Domains: Add support for multi PM domains per device to genpd

2018-05-31 Thread Lucas Stach
Hi Ulf, Am Donnerstag, den 31.05.2018, 12:59 +0200 schrieb Ulf Hansson: > To support devices being partitioned across multiple PM domains, let's > begin with extending genpd to cope with these kind of configurations. > > Therefore, add a new exported function genpd_dev_pm_attach_by_id(), which >

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Sebastian Gottschall
Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: 4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson [ Upstream commit a7aa75a2a7dba32594291a71c3704000a2fd7089 ] The base of the TLMM gpiochip should not be statically

Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering

2018-05-31 Thread Sebastian Gottschall
Am 28.05.2018 um 12:05 schrieb Greg Kroah-Hartman: 4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson [ Upstream commit a7aa75a2a7dba32594291a71c3704000a2fd7089 ] The base of the TLMM gpiochip should not be statically

Re: [PATCH -next] nvmet: fix error return code in nvmet_file_ns_enable()

2018-05-31 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH -next] nvmet: fix error return code in nvmet_file_ns_enable()

2018-05-31 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

[PATCH -next] nvmet: fix error return code in nvmet_file_ns_enable()

2018-05-31 Thread Wei Yongjun
Fix to return error code -ENOMEM from the memory alloc fail error handling case instead of 0, as done elsewhere in this function. Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support") Signed-off-by: Wei Yongjun --- drivers/nvme/target/io-cmd-file.c | 8 ++-- 1 file changed, 6

[PATCH -next] nvmet: fix error return code in nvmet_file_ns_enable()

2018-05-31 Thread Wei Yongjun
Fix to return error code -ENOMEM from the memory alloc fail error handling case instead of 0, as done elsewhere in this function. Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support") Signed-off-by: Wei Yongjun --- drivers/nvme/target/io-cmd-file.c | 8 ++-- 1 file changed, 6

[PATCH v2 1/5] vfs: push __sync_blockdev calls down into sync_fs routines

2018-05-31 Thread Jeff Layton
From: Jeff Layton Currently, we always call __sync_blockdev after sync_fs, though very few filesystems actually need it these days. Note that many older filesystems still rely on flushing out the bd_inode cache to ensure that it's safely written to the backing store, so when sync_fs is not

[PATCH v2 1/5] vfs: push __sync_blockdev calls down into sync_fs routines

2018-05-31 Thread Jeff Layton
From: Jeff Layton Currently, we always call __sync_blockdev after sync_fs, though very few filesystems actually need it these days. Note that many older filesystems still rely on flushing out the bd_inode cache to ensure that it's safely written to the backing store, so when sync_fs is not

[PATCH v2 4/5] buffer: record blockdev write errors in super_block that backs them

2018-05-31 Thread Jeff Layton
From: Jeff Layton When syncing out a block device (a'la __sync_blockdev), any error encountered will only be recorded in the bd_inode's mapping. When the blockdev contains a filesystem however, we'd like to also record the error in the super_block that's stored there. Make

[PATCH v2 4/5] buffer: record blockdev write errors in super_block that backs them

2018-05-31 Thread Jeff Layton
From: Jeff Layton When syncing out a block device (a'la __sync_blockdev), any error encountered will only be recorded in the bd_inode's mapping. When the blockdev contains a filesystem however, we'd like to also record the error in the super_block that's stored there. Make

[PATCH v2 5/5] vfs: add a new ioctl for fetching the superblock's errseq_t

2018-05-31 Thread Jeff Layton
From: Jeff Layton The postgres developers recently mentioned that they'd like a way to tell whether there have been any writeback errors on a given filesystem without having to forcibly sync out all buffered writes. Now that we have a per-sb errseq_t that tracks whether any inode on the

[PATCH v2 5/5] vfs: add a new ioctl for fetching the superblock's errseq_t

2018-05-31 Thread Jeff Layton
From: Jeff Layton The postgres developers recently mentioned that they'd like a way to tell whether there have been any writeback errors on a given filesystem without having to forcibly sync out all buffered writes. Now that we have a per-sb errseq_t that tracks whether any inode on the

[PATCH v2 2/5] vfs: add an errseq_t pointer arg to sync_filesystem and __sync_filesystem

2018-05-31 Thread Jeff Layton
From: Jeff Layton Allow sync_filesystem and __sync_filesystem to take an errseq_t pointer for the purposes of error reporting. For now, everything passes in NULL and the field is ignored, but a later patch will change that. Signed-off-by: Jeff Layton --- drivers/staging/ncpfs/inode.c | 2 +-

[PATCH v2 2/5] vfs: add an errseq_t pointer arg to sync_filesystem and __sync_filesystem

2018-05-31 Thread Jeff Layton
From: Jeff Layton Allow sync_filesystem and __sync_filesystem to take an errseq_t pointer for the purposes of error reporting. For now, everything passes in NULL and the field is ignored, but a later patch will change that. Signed-off-by: Jeff Layton --- drivers/staging/ncpfs/inode.c | 2 +-

[PATCH v2 3/5] vfs: track per-sb writeback errors and report them to syncfs

2018-05-31 Thread Jeff Layton
From: Jeff Layton Usually we suggest that applications call fsync when they want to ensure that all data written to the file has made it to the backing store, but that can be inefficient when there are a lot of open files. Calling syncfs on the filesystem can be more efficient in some

[PATCH v2 3/5] vfs: track per-sb writeback errors and report them to syncfs

2018-05-31 Thread Jeff Layton
From: Jeff Layton Usually we suggest that applications call fsync when they want to ensure that all data written to the file has made it to the backing store, but that can be inefficient when there are a lot of open files. Calling syncfs on the filesystem can be more efficient in some

[PATCH v2 0/5] vfs: allow syncfs to return an error when inode writeback fails

2018-05-31 Thread Jeff Layton
From: Jeff Layton v2: don't modify sync_fs op prototype, handle errors at vfs layer The syncfs system call returns an int error code, but in general it does not return errors when an inode fails writeback. It will return an error if __sync_blockdev fails, but that's not useful on non-block

[PATCH v2 0/5] vfs: allow syncfs to return an error when inode writeback fails

2018-05-31 Thread Jeff Layton
From: Jeff Layton v2: don't modify sync_fs op prototype, handle errors at vfs layer The syncfs system call returns an int error code, but in general it does not return errors when an inode fails writeback. It will return an error if __sync_blockdev fails, but that's not useful on non-block

[PATCH v2 03/21] Staging: gdm724x: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Greg Kroah-Hartman Cc: Quytelda Kahja Cc: de...@driverdev.osuosl.org Signed-off-by: Yisheng Xie --- v2: - const DRIVER_STRING instead - per Andy

[PATCH v2 03/21] Staging: gdm724x: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Greg Kroah-Hartman Cc: Quytelda Kahja Cc: de...@driverdev.osuosl.org Signed-off-by: Yisheng Xie --- v2: - const DRIVER_STRING instead - per Andy

[PATCH v2 02/21] mfd: omap-usb-host: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Acked-by: Tony Lindgren Reviewed-by: Andy Shevchenko Cc: Tony Lindgren Cc: Lee Jones Cc: linux-o...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - add Acked-by and

[PATCH v2 02/21] mfd: omap-usb-host: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Acked-by: Tony Lindgren Reviewed-by: Andy Shevchenko Cc: Tony Lindgren Cc: Lee Jones Cc: linux-o...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - add Acked-by and

[PATCH v2 00/21] use match_string() helper

2018-05-31 Thread Yisheng Xie
Andy introduce helper function match_string() which can be used to return the index of array for a matching string. so we can use it in many places instead of open coded variant. I just try to make this API be used more commonly, sorry if this makes too much big patchset. v2: - Remove the

[PATCH v2 09/21] clk: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - leave second parameter on the first line - per Andy

[PATCH v2 09/21] clk: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - leave second parameter on the first line - per Andy

[PATCH v2 00/21] use match_string() helper

2018-05-31 Thread Yisheng Xie
Andy introduce helper function match_string() which can be used to return the index of array for a matching string. so we can use it in many places instead of open coded variant. I just try to make this API be used more commonly, sorry if this makes too much big patchset. v2: - Remove the

[PATCH v2 13/21] ima: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Mimi Zohar Reviewed-by: Andy Shevchenko Cc: Mimi Zohar Cc: Dmitry Kasatkin Cc: James Morris Cc: "Serge E. Hallyn" Cc: linux-integr...@vger.kernel.org Cc:

[PATCH v2 13/21] ima: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Mimi Zohar Reviewed-by: Andy Shevchenko Cc: Mimi Zohar Cc: Dmitry Kasatkin Cc: James Morris Cc: "Serge E. Hallyn" Cc: linux-integr...@vger.kernel.org Cc:

[PATCH v2 08/21] clk: bcm2835: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Eric Anholt Cc: Michael Turquette Cc: Stephen Boyd Cc: Eric Anholt Cc: Stefan Wahren Cc: linux-...@vger.kernel.org Cc: linux-rpi-ker...@lists.infradead.org Cc:

[PATCH v2 08/21] clk: bcm2835: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Eric Anholt Cc: Michael Turquette Cc: Stephen Boyd Cc: Eric Anholt Cc: Stefan Wahren Cc: linux-...@vger.kernel.org Cc: linux-rpi-ker...@lists.infradead.org Cc:

Re: [PATCH v2 5/6] ARM: dts: Add generic interconnect target module node for MCAN

2018-05-31 Thread Faiz Abbas
Hi, On Thursday 31 May 2018 09:36 AM, Rob Herring wrote: > On Wed, May 30, 2018 at 07:41:32PM +0530, Faiz Abbas wrote: >> The ti-sysc driver provides support for manipulating the idlemodes >> and interconnect level resets. >> >> Add the generic interconnect target module node for MCAN to support

Re: [PATCH v2 5/6] ARM: dts: Add generic interconnect target module node for MCAN

2018-05-31 Thread Faiz Abbas
Hi, On Thursday 31 May 2018 09:36 AM, Rob Herring wrote: > On Wed, May 30, 2018 at 07:41:32PM +0530, Faiz Abbas wrote: >> The ti-sysc driver provides support for manipulating the idlemodes >> and interconnect level resets. >> >> Add the generic interconnect target module node for MCAN to support

[PATCH v2 10/21] cpufreq: intel_pstate: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Srinivas Pandruvada Cc: Len Brown Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: -

[PATCH v2 04/21] cxgb4: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Ganesh Goudar Cc: net...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - no change from v1. drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 14 -- 1 file

[PATCH v2 14/21] sched/debug: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Yisheng Xie --- v2: - rename i to ret to show the change in returned value meaning - per Andy kernel/sched/debug.c | 31

[PATCH v2 10/21] cpufreq: intel_pstate: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Srinivas Pandruvada Cc: Len Brown Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: -

[PATCH v2 04/21] cxgb4: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Ganesh Goudar Cc: net...@vger.kernel.org Signed-off-by: Yisheng Xie --- v2: - no change from v1. drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 14 -- 1 file

[PATCH v2 14/21] sched/debug: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Yisheng Xie --- v2: - rename i to ret to show the change in returned value meaning - per Andy kernel/sched/debug.c | 31

[PATCH v2 07/21] bus: fsl-mc: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Stuart Yoder Cc: Laurentiu Tudor Signed-off-by: Yisheng Xie --- v2: - add Reviewed-by tag. drivers/bus/fsl-mc/fsl-mc-allocator.c | 24

[PATCH v2 07/21] bus: fsl-mc: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Stuart Yoder Cc: Laurentiu Tudor Signed-off-by: Yisheng Xie --- v2: - add Reviewed-by tag. drivers/bus/fsl-mc/fsl-mc-allocator.c | 24

[PATCH v2 21/21] sparc64: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: "David S. Miller" Cc: Anthony Yznaga Cc: Pavel Tatashin Cc: sparcli...@vger.kernel.org Signed-off-by: Yisheng Xie --- arch/sparc/kernel/setup_64.c | 7 +++ 1 file

Re: [PATCH 0/7] add non-strict mode support for arm-smmu-v3

2018-05-31 Thread Robin Murphy
On 31/05/18 08:42, Zhen Lei wrote: In common, a IOMMU unmap operation follow the below steps: 1. remove the mapping in page table of the specified iova range 2. execute tlbi command to invalid the mapping which is cached in TLB 3. wait for the above tlbi operation to be finished 4. free the IOVA

[PATCH v2 21/21] sparc64: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: "David S. Miller" Cc: Anthony Yznaga Cc: Pavel Tatashin Cc: sparcli...@vger.kernel.org Signed-off-by: Yisheng Xie --- arch/sparc/kernel/setup_64.c | 7 +++ 1 file

Re: [PATCH 0/7] add non-strict mode support for arm-smmu-v3

2018-05-31 Thread Robin Murphy
On 31/05/18 08:42, Zhen Lei wrote: In common, a IOMMU unmap operation follow the below steps: 1. remove the mapping in page table of the specified iova range 2. execute tlbi command to invalid the mapping which is cached in TLB 3. wait for the above tlbi operation to be finished 4. free the IOVA

[PATCH v2 15/21] ALSA: oxygen: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Clemens Ladisch Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - do not change the type of i - per Andy

[PATCH v2 18/21] ASoC: dapm: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - add

[PATCH v2 17/21] ASoC: max98095: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - split ret= and move assignment

[PATCH v2 15/21] ALSA: oxygen: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Clemens Ladisch Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - do not change the type of i - per Andy

[PATCH v2 18/21] ASoC: dapm: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Reviewed-by: Andy Shevchenko Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - add

[PATCH v2 17/21] ASoC: max98095: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - split ret= and move assignment

[PATCH v2 19/21] bcache: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Kent Overstreet Cc: linux-bca...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/md/bcache/util.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-)

[PATCH v2 19/21] bcache: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Kent Overstreet Cc: linux-bca...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/md/bcache/util.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-)

[PATCH v2 16/21] ASoC: max98088: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - split ret=xxx and move assignment

[PATCH v2 20/21] powerpc/xmon: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Yisheng Xie --- arch/powerpc/xmon/xmon.c | 23

[PATCH v2 16/21] ASoC: max98088: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-de...@alsa-project.org Signed-off-by: Yisheng Xie --- v2: - split ret=xxx and move assignment

[PATCH v2 20/21] powerpc/xmon: use match_string() helper

2018-05-31 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used instead of open coded variant. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Yisheng Xie --- arch/powerpc/xmon/xmon.c | 23

[PATCH v2] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased idle power consumption on their laptops.

[PATCH v2] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased idle power consumption on their laptops.

Re: [PATCH] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
HI, On 31-05-18 13:16, Hans de Goede wrote: Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased

Re: [PATCH] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
HI, On 31-05-18 13:16, Hans de Goede wrote: Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased

[PATCH] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased idle power consumption on their laptops.

[PATCH] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-05-31 Thread Hans de Goede
Commit 184add2ca23c ("libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs") disabled LPM for SanDisk SD7UB3Q*G1001 SSDs. This has lead to several reports of users of that SSD where LPM was working fine and who know have a significantly increased idle power consumption on their laptops.

Re: [RFC] rcu: Check the range of jiffies_till_xxx_fqs on setting them

2018-05-31 Thread Paul E. McKenney
On Thu, May 31, 2018 at 11:51:40AM +0900, Byungchul Park wrote: > On 2018-05-31 11:18, Byungchul Park wrote: > >On 2018-05-29 21:01, Paul E. McKenney wrote: > > > >>One approach would be to embed the kernel_params_ops structure inside > >>another structure containing the limits, then just have two

Re: [RFC] rcu: Check the range of jiffies_till_xxx_fqs on setting them

2018-05-31 Thread Paul E. McKenney
On Thu, May 31, 2018 at 11:51:40AM +0900, Byungchul Park wrote: > On 2018-05-31 11:18, Byungchul Park wrote: > >On 2018-05-29 21:01, Paul E. McKenney wrote: > > > >>One approach would be to embed the kernel_params_ops structure inside > >>another structure containing the limits, then just have two

[NOMERGE] [RFC PATCH 12/12] erofs: introduce VLE decompression support (experimental)

2018-05-31 Thread Gao Xiang
This implements the experimental VLE decompression support, used for the compressed on-disk layout and prototype verification. This implementation works and has the nearly expected random read improvements. On the one hand, it has some good parts that are unnecessary to change, eg. fast path

[NOMERGE] [RFC PATCH 12/12] erofs: introduce VLE decompression support (experimental)

2018-05-31 Thread Gao Xiang
This implements the experimental VLE decompression support, used for the compressed on-disk layout and prototype verification. This implementation works and has the nearly expected random read improvements. On the one hand, it has some good parts that are unnecessary to change, eg. fast path

[NOMERGE] [RFC PATCH 11/12] erofs: introduce a customized LZ4 decompression

2018-05-31 Thread Gao Xiang
We have to reduce the memory cost as much as possible, so we don't want to decompress more data beyond the output buffer size, yet "LZ4_decompress_safe_partial" doesn't guarantee to stop at the arbitary end position, but complete its current LZ4 "sequence". Refer to:

[NOMERGE] [RFC PATCH 11/12] erofs: introduce a customized LZ4 decompression

2018-05-31 Thread Gao Xiang
We have to reduce the memory cost as much as possible, so we don't want to decompress more data beyond the output buffer size, yet "LZ4_decompress_safe_partial" doesn't guarantee to stop at the arbitary end position, but complete its current LZ4 "sequence". Refer to:

[NOMERGE] [RFC PATCH 10/12] erofs: introduce xattr & acl support

2018-05-31 Thread Gao Xiang
This implements xattr and acl functionalities. Inline and shared xattrs are introduced for flexibility, In detail, if the same xattr occurs for many times on numbers of inodes or the value of xattr is so large that it isn't suitable for the xattr inline, shared xattr kept in the xattr meta will

[NOMERGE] [RFC PATCH 10/12] erofs: introduce xattr & acl support

2018-05-31 Thread Gao Xiang
This implements xattr and acl functionalities. Inline and shared xattrs are introduced for flexibility, In detail, if the same xattr occurs for many times on numbers of inodes or the value of xattr is so large that it isn't suitable for the xattr inline, shared xattr kept in the xattr meta will

[NOMERGE] [RFC PATCH 09/12] erofs: update Kconfig and Makefile

2018-05-31 Thread Gao Xiang
This commit adds Makefile and Kconfig for erofs, and updates Makefile and Kconfig files in the fs directory. Signed-off-by: Miao Xie Signed-off-by: Chao Yu Signed-off-by: Gao Xiang --- fs/Kconfig| 1 + fs/Makefile | 1 + fs/erofs/Kconfig | 34

[NOMERGE] [RFC PATCH 09/12] erofs: update Kconfig and Makefile

2018-05-31 Thread Gao Xiang
This commit adds Makefile and Kconfig for erofs, and updates Makefile and Kconfig files in the fs directory. Signed-off-by: Miao Xie Signed-off-by: Chao Yu Signed-off-by: Gao Xiang --- fs/Kconfig| 1 + fs/Makefile | 1 + fs/erofs/Kconfig | 34

<    4   5   6   7   8   9   10   11   12   13   >