[PATCH] tsl2550: fix lux1_input error in low light

2018-06-08 Thread Matt Ranostay
ADC channel 0 photodiode detects both infrared + visible light, but ADC channel 1 just detects infrared. However, the latter is a bit more sensitive in that range so complete darkness or low light causes a error condition in which the chan0 - chan1 is negative that results in a -EAGAIN. This patch

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Boris Brezillon
On Sat, 9 Jun 2018 08:46:15 +0200 Boris Brezillon wrote: > On Sat, 9 Jun 2018 08:41:57 +0200 > Boris Brezillon wrote: > > > On Sat, 09 Jun 2018 08:23:51 +0200 > > Stefan Agner wrote: > > > > > On 09.06.2018 07:52, Boris Brezillon wrote: > > > > On Fri, 08 Jun 2018 23:51:01 +0200 > > > > S

Re: [GIT PULL] overlayfs update for 4.18

2018-06-08 Thread Christoph Hellwig
On Fri, Jun 08, 2018 at 02:13:30PM +0200, Miklos Szeredi wrote: > Hi Linus, > > Please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git > tags/ovl-update-4.18 > > This contains two new features: > > 1) Stack file operations: this allows removal of several hacks

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Stefan Agner
On 09.06.2018 08:41, Boris Brezillon wrote: > On Sat, 09 Jun 2018 08:23:51 +0200 > Stefan Agner wrote: > >> On 09.06.2018 07:52, Boris Brezillon wrote: >> > On Fri, 08 Jun 2018 23:51:01 +0200 >> > Stefan Agner wrote: >> > >> > >> >> > >> >> > void tegra_nand_controller_reset(struct tegra_nand_co

Re: [PATCH] ipc: Limit sysctl value to IPCMNI

2018-06-08 Thread Takashi Iwai
On Fri, 08 Jun 2018 23:16:59 +0200, Andrew Morton wrote: > > On Fri, 8 Jun 2018 15:49:49 +0200 Takashi Iwai wrote: > > > Currently shmmni proc entry accepts all entered integer values, but > > the practical limit is IPCMNI (32768). This confuses user as if a > > bigger value were accepted but

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Boris Brezillon
On Sat, 9 Jun 2018 08:41:57 +0200 Boris Brezillon wrote: > On Sat, 09 Jun 2018 08:23:51 +0200 > Stefan Agner wrote: > > > On 09.06.2018 07:52, Boris Brezillon wrote: > > > On Fri, 08 Jun 2018 23:51:01 +0200 > > > Stefan Agner wrote: > > > > > > > > >> > > > >> > void tegra_nand_controller_

Re: [PATCH 2/2] staging: rtl8192e: fix line over 80 characters

2018-06-08 Thread Joe Perches
On Sat, 2018-06-09 at 15:07 +0900, thtlwlsmsgk...@gmail.com wrote: > *fix checkpatch.pl warnings: > WARNING: line over 80 characters Consider using a temporary for these ieee->current_network. dereferences. > diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c > b/drivers/staging/rtl8192e/rt

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Boris Brezillon
On Sat, 09 Jun 2018 08:23:51 +0200 Stefan Agner wrote: > On 09.06.2018 07:52, Boris Brezillon wrote: > > On Fri, 08 Jun 2018 23:51:01 +0200 > > Stefan Agner wrote: > > > > > >> > > >> > void tegra_nand_controller_reset(struct tegra_nand_controller *ctrl) > >> > { > >> > int err; > >> > > >>

Re: what trees/branches to test on syzbot

2018-06-08 Thread Tetsuo Handa
On 2018/01/22 22:32, Dmitry Vyukov wrote: > On Tue, Jan 16, 2018 at 6:34 PM, Greg Kroah-Hartman > wrote: >>> The problem is testing linux-next and then using get-maintainer.pl to >>> report the problem. >>> >>> If you are resource limited I would start by testing Linus's tree to >>> find the exist

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Stefan Agner
On 09.06.2018 07:52, Boris Brezillon wrote: > On Fri, 08 Jun 2018 23:51:01 +0200 > Stefan Agner wrote: > > >> > >> > void tegra_nand_controller_reset(struct tegra_nand_controller *ctrl) >> > { >> >int err; >> > >> >disable_irq(ctrl->irq); >> > >> >err = reset_control_reset(ctrl->rst)

Re: [rcu:rcu/dev 114/116] drivers/iommu/amd_iommu.c:3566:21: sparse: symbol 'stupid_workaround' was not declared. Should it be static?

2018-06-08 Thread Paul E. McKenney
On Sat, Jun 09, 2018 at 04:11:26AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > rcu/dev > head: f20dfe840ba05efdc4071106cffa31cb67cf6bc8 > commit: 814ee31d1f906ad00daccb58944ab16fa279690c [114/116] fixup! EXP iommu: > Placehol

[PATCH 2/2] staging: rtl8192e: fix line over 80 characters

2018-06-08 Thread thtlwlsmsgkfla
*fix checkpatch.pl warnings: WARNING: line over 80 characters Signed-off-by: Hyunil Kim --- drivers/staging/rtl8192e/rtllib_softmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c inde

[PATCH 1/2] staging: rtl8192e: remove brace for single statement

2018-06-08 Thread thtlwlsmsgkfla
* fix checkpatch.pl warning: WARNING: braces { are not necessary for single statement blocks Signed-off-by: Hyunil Kim --- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/stagin

[PATCH 2/2] staging: mt7621-spi: fix indentation for switch statement

2018-06-08 Thread JoonHwan.Kim
* fix checkpatch.pl error: ERROR: switch and case should be at the same indent Signed-off-by: Joonhwan Kim --- drivers/staging/mt7621-spi/spi-mt7621.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers

[PATCH 1/2] staging: mt7621-spi: change indentation from space to tab

2018-06-08 Thread JoonHwan.Kim
* fix checkpatch.pl error: ERROR: code indent should use tabs where possible Signed-off-by: Joonhwan Kim --- drivers/staging/mt7621-spi/spi-mt7621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Boris Brezillon
On Fri, 1 Jun 2018 00:16:35 +0200 Stefan Agner wrote: > + > +static const struct of_device_id tegra_nand_of_match[] = { > + { .compatible = "nvidia,tegra20-nand" }, > + { /* sentinel */ } > +}; > + > +static struct platform_driver tegra_nand_driver = { > + .driver = { > +

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Boris Brezillon
On Fri, 08 Jun 2018 23:51:01 +0200 Stefan Agner wrote: > > > > void tegra_nand_controller_reset(struct tegra_nand_controller *ctrl) > > { > > int err; > > > > disable_irq(ctrl->irq); > > > > err = reset_control_reset(ctrl->rst); > > if (err) { > > dev_err(ctrl->dev

Re: [RFC][PATCHES] getting rid of int *open in ->atomic_open() and friends

2018-06-08 Thread Al Viro
On Fri, Jun 08, 2018 at 11:57:06AM -0700, Linus Torvalds wrote: > I'm obviously biased since I asked for this, but: > > On Fri, Jun 8, 2018 at 11:48 AM Al Viro wrote: > > > > 33 files changed, 135 insertions(+), 180 deletions(-) > > this already looks nice. > > I'll go through the individual p

Self repairing Linux

2018-06-08 Thread bengvald8080
Hi everyone, my name is Beng. I'm new to Linux kernel development but one of the things I've decided to do is research on how Linux can be self repaired, like the Unbreakable Linux kernel Sun has. For example, if someone does 'rm -rf /' as root, it should process the command and fix itself. I know

Re: [PATCH v2 09/11] misc: throttler: Add core support for non-thermal throttling

2018-06-08 Thread kbuild test robot
Hi Matthias, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17 next-20180608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH v2 05/11] PM / devfreg: Add support for policy notifiers

2018-06-08 Thread kbuild test robot
Hi Matthias, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17 next-20180608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
On Thu, Jun 07, 2018 at 08:11:41PM +0300, Andy Shevchenko wrote: > On Thu, Jun 7, 2018 at 6:59 PM, Stuart Hayes wrote: > > If the WSMT ACPI table is present and indicates that a fixed communication > > buffer should be used, use the firmware-specified buffer instead of > > allocating a buffer in m

Re: [RFC v4 1/1] i-search functionality for mconf

2018-06-08 Thread Randy Dunlap
On 06/08/2018 11:46 AM, Dirk Gouders wrote: > This patch prototypes isearch functionality for mconf based on an idea of > Sam Ravnborg: > > * mconf now distinguishes if the focus is on the menu items or the > buttons below it. > > * At startup focus is on the menu items and alphanumeric > cha

[PATCH] riscv: split the declaration of __copy_user

2018-06-08 Thread Luc Van Oostenryck
We use a single __copy_user assembly function to copy memory both from and to userspace. While this works, it triggers sparse errors because we're implicitly casting between the kernel and user address spaces by calling __copy_user. This patch splits the C declaration into a pair of functions, __a

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-08 Thread Darren Hart
On Wed, Jun 06, 2018 at 05:32:52PM +0200, Hans de Goede wrote: > > > > > If we are adding hwdb entries anyway to control the userspace > > > > > interpretation of the TOGGLE key, then we could also add the new CYCLE > > > > > key and explicitly re-map it to TOGGLE. That requires slightly more > >

Re: [linus:master] BUILD REGRESSION 68abbe729567cef128b2c2141f2ed2567f3b8372

2018-06-08 Thread Philip Li
On Fri, Jun 08, 2018 at 08:48:29AM -0700, Linus Torvalds wrote: > On Fri, Jun 8, 2018 at 8:12 AM kbuild test robot wrote: > > > > arch/sh/include/asm/io.h:246:32: warning: cast to pointer from integer of > > different size [-Wint-to-pointer-cast] > > arch/x86/net/bpf_jit_comp32.c:2449 do_jit() wa

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-08 Thread Luc Van Oostenryck
On Fri, Jun 08, 2018 at 03:33:36PM -0700, Palmer Dabbelt wrote: > On Thu, 07 Jun 2018 09:51:33 PDT (-0700), luc.vanoostenr...@gmail.com wrote: > > On Thu, Jun 07, 2018 at 09:30:19AM -0700, Palmer Dabbelt wrote: > > > diff --git a/arch/riscv/lib/uaccess.S b/arch/riscv/lib/uaccess.S > > > index 58fb2

[PATCH 6/8] NTB: perf: Fix support for hardware that doesn't have port numbers

2018-06-08 Thread Logan Gunthorpe
Legacy drivers do not have port numbers (but is reliably only two ports) and was broken by the recent commit that added mult-port support to ntb_perf. This is especially important to support the cross link topology which is perfectly symmetric and cannot assign unique port numbers easily. Hardware

Re: [PATCH 5/8] NTB: perf: Don't require one more memory window than peer

2018-06-08 Thread Logan Gunthorpe
Oops, sorry, I double posted patch 5. Please disregard the second one. Logan On 08/06/18 06:08 PM, Logan Gunthorpe wrote: > NTB Perf should not require more than one memory window per peer. This > was probably an off-by-one error. > > Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB

[PATCH 5/8] NTB: perf: Don't require one more memory window than number of peers

2018-06-08 Thread Logan Gunthorpe
ntb_perf should not require more than one memory window per peer. This was probably an off-by-one error. Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe --- drivers/ntb/test/ntb_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 1/8] NTB: ntb_tool: reading the link file should not end in a NULL byte

2018-06-08 Thread Logan Gunthorpe
When running ntb_test this warning is issued: ./ntb_test.sh: line 200: warning: command substitution: ignored null byte in input This is caused by the kernel returning one more byte than is necessary when reading the link file. Reduce the number of bytes read back to 2 as it was before the commi

[PATCH 5/8] NTB: perf: Don't require one more memory window than peer

2018-06-08 Thread Logan Gunthorpe
NTB Perf should not require more than one memory window per peer. This was probably an off-by-one error. Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe --- drivers/ntb/test/ntb_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/8] NTB: Fix the default port and peer numbers for legacy drivers

2018-06-08 Thread Logan Gunthorpe
When the commit adding ntb_default_port_number() and ntb_default_peer_port_number() entered the kernel there was no users of it so it was impossible to tell what the API needed. When a user finally landed a year later (ntb_pingpong) there were more NTB topologies were created and no consideration

[PATCH 7/8] NTB: perf: Fix race condition when run with ntb_test

2018-06-08 Thread Logan Gunthorpe
When running ntb_test, the script tries to run the ntb_perf test immediately after probing the modules. Since adding multi-port support, this fails seeing the new initialization procedure in ntb_perf can not complete instantly. To fix this we add a completion which is waited on when a test is star

[PATCH 2/8] NTB: Setup the DMA mask globally for all drivers

2018-06-08 Thread Logan Gunthorpe
Commit 417cf39cfea9 ("NTB: Set dma mask and dma coherent mask to NTB devices") added code to set the DMA mask for the NTB device to each driver individually. However, it neglected to set it for the Switchtec driver. So when the monolithic commit 7f46c8b3a552 ("NTB: ntb_tool: Add full multi-port NT

[PATCH 8/8] NTB: ntb_test: Fix bug when counting remote files

2018-06-08 Thread Logan Gunthorpe
When remote files are counted in get_files_count, without using SSH, the code returns 0 because there is a colon prepended to $LOC. $VPATH should have been used instead of $LOC. Fixes: 06bd0407d06c ("NTB: ntb_test: Update ntb_tool Scratchpad tests") Signed-off-by: Logan Gunthorpe --- tools/testi

[PATCH 0/8] Fix breakage caused by the NTB multi-port patchset

2018-06-08 Thread Logan Gunthorpe
Hey, Here are all the fixes required to get ntb_test on switchtec working again after the multi-port test patches were merged. I'd appreciate it if future changes can be a) more careful about not breaking things, b) communicated more clearly so that better review can be done, and c) not merged un

[PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-08 Thread Logan Gunthorpe
This commit fixes pingpong support for existing drivers that do not implement ntb_default_port_number() and ntb_default_peer_port_number(). This is required for hardware (like the crosslink topology of switchtec) which cannot assign reasonable port numbers to each port due to its perfect symmetry.

Re: [PATCH v5 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-08 Thread Darren Hart
On Tue, Jun 05, 2018 at 12:58:21PM +, Vadim Pasternak wrote: > Add documentation for mlxreg-io platform driver sysfs interfaces to allow > user space access for system resets control, reset causes monitoring, > programmable devices version reading and device selection control. > > Signed-off-b

[V3] platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers

2018-06-08 Thread Box, David E
Adds debugfs access to registers in the Cannon Point PCH PMC that are useful for debugging #SLP_S0 signal assertion and other low power relate activities. Device pm states are latched in these registers whenever the package enters C10 and can be read from slp_s0_debug_status. The pm states may also

Re: [PATCH v5 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-08 Thread Darren Hart
On Tue, Jun 05, 2018 at 12:58:19PM +, Vadim Pasternak wrote: > Introduce new Mellanox platform driver to allow access to Mellanox > programmable device register space trough sysfs interface. > The driver purpose is to provide sysfs interface for user space for the > registers essential for syst

Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0

2018-06-08 Thread Kevin Hilman
Martin Blumenstingl writes: > On Tue, Jun 5, 2018 at 10:52 AM, Neil Armstrong > wrote: >> Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the >> devices on the P212 Reference Design based boards. >> >> Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the

[PATCH v7 0/2] regulator: add QCOM RPMh regulator driver

2018-06-08 Thread David Collins
This patch series adds a driver and device tree binding documentation for PMIC regulator control via Resource Power Manager-hardened (RPMh) on some Qualcomm Technologies, Inc. SoCs such as SDM845. RPMh is a hardware block which contains several accelerators which are used to manage various hardwar

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

2018-06-08 Thread David Collins
Introduce bindings for RPMh regulator devices found on some Qualcomm Technlogies, Inc. SoCs. These devices allow a given processor within the SoC to make PMIC regulator requests which are aggregated within the RPMh hardware block along with requests from other processors in the SoC to determine th

[PATCH v7 2/2] regulator: add QCOM RPMh regulator driver

2018-06-08 Thread David Collins
Add the QCOM RPMh regulator driver to manage PMIC regulators which are controlled via RPMh on some Qualcomm Technologies, Inc. SoCs. RPMh is a hardware block which contains several accelerators which are used to manage various hardware resources that are shared between the processors of the SoC.

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-06-08 Thread Matthias Kaehlcke
On Thu, May 03, 2018 at 03:34:43PM -0600, Girish Mahadevan wrote: > This driver supports GENI based SPI Controller in the Qualcomm SOCs. The > Qualcomm Generic Interface (GENI) is a programmable module supporting a > wide range of serial interfaces including SPI. This driver supports SPI > operatio

Re: [PATCH] IB/mlx5: Fix memory leak in mlx5_ib_create_flow

2018-06-08 Thread Gustavo A. R. Silva
Sure thing. I'll send v2 shortly. I made the adjustment for you, if it is wrong let me know.. https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?h=wip/jgg-for-rc&id=2cc82dd58712888758c2d2b405d012f2cd580dd7 Jason Seems correct. That's exactly what I was about to send.

Re: [PATCH v2 05/11] PM / devfreg: Add support for policy notifiers

2018-06-08 Thread kbuild test robot
Hi Matthias, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17 next-20180608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] IB/mlx5: Fix memory leak in mlx5_ib_create_flow

2018-06-08 Thread Jason Gunthorpe
On Fri, Jun 08, 2018 at 06:11:49PM -0500, Gustavo A. R. Silva wrote: > > >>mutex_lock(&dev->flow_db->lock); > >>@@ -3640,6 +3646,9 @@ static struct ib_flow *mlx5_ib_create_flow(struct > >>ib_qp *qp, > >>kfree(ucmd); > >>kfree(handler); > >>return ERR_PTR(err); > >>+free_ucmd: > >>

Re: [PATCH] IB/mlx5: Fix memory leak in mlx5_ib_create_flow

2018-06-08 Thread Gustavo A. R. Silva
mutex_lock(&dev->flow_db->lock); @@ -3640,6 +3646,9 @@ static struct ib_flow *mlx5_ib_create_flow(struct ib_qp *qp, kfree(ucmd); kfree(handler); return ERR_PTR(err); +free_ucmd: + kfree(ucmd); + return ERR_PTR(err); } This hunk is a bit wonky, ca

Re: [PATCH] IB/mlx5: Fix memory leak in mlx5_ib_create_flow

2018-06-08 Thread Jason Gunthorpe
On Thu, Jun 07, 2018 at 02:19:15PM -0500, Gustavo A. R. Silva wrote: > In case memory resources for *ucmd* were allocated, release them > before return. > > Addresses-Coverity-ID: 1469857 ("Resource leak") > Fixes: 3b3233fbf02e ("IB/mlx5: Add flow counters binding support") > Signed-off-by: Gustav

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
On Thu, Jun 07, 2018 at 04:07:50PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Stuart Hayes [mailto:stuart.w.ha...@gmail.com] > > Sent: Thursday, June 7, 2018 11:00 AM > > To: Warzecha, Douglas > > Cc: Limonciello, Mario; Dominguez, Jared; linux-kernel@vger.ker

[PATCH] perf: Sharing PMU counters across compatible events

2018-06-08 Thread Song Liu
This patch tries to enable PMU sharing. To make perf event scheduling fast, we use special data structures. An array of "struct perf_event_dup" is added to the perf_event_context, to remember all the duplicated events under this ctx. All the events under this ctx has a "dup_id" pointing to its per

[PATCH] perf: Sharing PMU counters across compatible events

2018-06-08 Thread Song Liu
This is to follow up earlier discussion on sharing hardware PMU counters across compatible events: https://marc.info/?t=151213803600016 https://marc.info/?t=15254756921 This version limits PMU sharing to events within same ctx. As a result, compatible events are not evaluated during task

[PATCH v4 1/2] power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats

2018-06-08 Thread Brian Norris
This driver was originally submitted for the TI BQ20Z75 battery IC (commit a7640bfa10c5 ("power_supply: Add driver for TI BQ20Z75 gas gauge IC")) and later renamed to express generic SBS support. While it's mostly true that this driver implemented a standard SBS command set, it takes liberties with

[PATCH v4 2/2] dt-bindings: power: sbs-battery: re-document "ti,bq20z75"

2018-06-08 Thread Brian Norris
This compatible property was documented before the driver was renamed to "SBS" (see commit e57f1b68c406 ("devicetree-bindings: Propagate bq20z75->sbs rename to dt bindings")). The driver has continued to support this property as an alternative to "sbs,sbs-battery", and because we've noticed there a

Re: [PATCH NEXT 6/6] PCI/PORTDRV: Remove ERR_FATAL handling from pcie_portdrv_slot_reset()

2018-06-08 Thread Keith Busch
On Thu, Jun 07, 2018 at 09:47:42PM -0700, p...@codeaurora.org wrote: > Keith, > > do you know why in ERR_FATAL case following was done ? > have a look at pcie_portdrv_slot_reset() handling (for bridges, switches > etc..) Not sure, but I was looking into some issues in this area anyway. I'm find

systemtap 3.3 release

2018-06-08 Thread Frank Ch. Eigler
The SystemTap team announces release 3.3! eBPF backend extensions, easier access to examples, adapting to meltdown/spectre complications, real-time / high-cpu-count concurrency fixes = Where to get it https://sourceware.org/systemtap/ - our project page https://sourceware.org/systemta

Re: [PATCH] RISC-V: Handle R_RISCV_32 in modules

2018-06-08 Thread Palmer Dabbelt
On Thu, 07 Jun 2018 03:27:27 PDT (-0700), sch...@suse.de wrote: With CONFIG_MODVERSIONS=y the R_RISCV_32 relocation is used by the __kcrctab section. Signed-off-by: Andreas Schwab --- arch/riscv/kernel/module.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/riscv/kernel

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-08 Thread Palmer Dabbelt
On Thu, 07 Jun 2018 09:51:33 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Thu, Jun 07, 2018 at 09:30:19AM -0700, Palmer Dabbelt wrote: I haven't compiled this, but I think it should work. It's on the fix-sparse branch of kernel.org/palmer/linux.git . It's essentially what I was thinkin

Re: [Bug 199965] New: Memory management: BUG in kernel_restart

2018-06-08 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Thu, 07 Jun 2018 18:21:24 + bugzilla-dae...@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=199965 > > Bug ID: 199965 >Summary: Memory mana

Re: [PATCH] Fixed coding style problems.

2018-06-08 Thread Dan Carpenter
The subject should be: [PATCH] staging: comedi: shorten a long line or something. You need the subsystem prefix. Try not to be vague. On Fri, Jun 08, 2018 at 08:52:37PM +0200, Chris Opperman wrote: > This patch fixes a coding style problem in drivers/staging/comedi/drivers.c > and is submitte

Re: [PATCH] trace: fix SKIP_STACK_VALIDATION=1 build

2018-06-08 Thread Andi Kleen
On Fri, Jun 08, 2018 at 02:47:46PM -0700, Greg Thelen wrote: > Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and > SKIP_STACK_VALIDATION=1 fail. > Example output: > /bin/sh: init/.tmp_main.o: Permission denied > > commit 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace"), > added a

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-06-08 Thread Tony Krowiak
On 06/07/2018 01:15 PM, Pierre Morel wrote: We have internal structures like the ap_matrix and kvm_ap_matrix which look like the bus/devices we had previously but are differently or not at all integrated with the LDD. What is LDD? Are you talking about dependencies between the vfio_ap devi

Re: [PATCH] kernel/hung_task.c: allow to set period separately from timeout

2018-06-08 Thread Andrew Morton
On Fri, 8 Jun 2018 15:30:43 +0200 Dmitry Vyukov wrote: > Currently task hung checking period is equal to timeout, > as the result hung is detected anywhere between timeout and 2*timeout. > This is fine for most interactive environments, but this hurts automated > testing setups (syzbot). In an a

Re: [RFC v4 0/1] i-search functionality for mconf

2018-06-08 Thread Sam Ravnborg
Hi Dirk. On Fri, Jun 08, 2018 at 08:46:05PM +0200, Dirk Gouders wrote: > Hello, > > this version is a prototype of the idea, Sam suggested -- I hope I > undestood it correctly. > > This is a remarkable change to mconf in it's behavior; mainly it now > differentiates two focuses and operates diff

Re: [PATCH 10/20] dts: juno: Update coresight bindings for hw port

2018-06-08 Thread Mathieu Poirier
On 8 June 2018 at 15:49, Mathieu Poirier wrote: > On Tue, Jun 05, 2018 at 10:43:21PM +0100, Suzuki K Poulose wrote: >> Switch to updated coresight bindings for hw ports. >> >> Cc: Sudeep Holla >> Cc: Liviu Dudau >> Cc: Mathieu Poirier >> Signed-off-by: Suzuki K Poulose >> --- >> Changes since

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Stefan Agner
On 01.06.2018 11:20, Dmitry Osipenko wrote: > On 01.06.2018 01:16, Stefan Agner wrote: >> Add support for the NAND flash controller found on NVIDIA >> Tegra 2 SoCs. This implementation does not make use of the >> command queue feature. Regular operations/data transfers are >> done in PIO mode. Page

Re: [PATCH 10/20] dts: juno: Update coresight bindings for hw port

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:21PM +0100, Suzuki K Poulose wrote: > Switch to updated coresight bindings for hw ports. > > Cc: Sudeep Holla > Cc: Liviu Dudau > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > Changes since V1: > - Add support Juno for r1 & r2. > --- Reviewed-by

[PATCH] trace: fix SKIP_STACK_VALIDATION=1 build

2018-06-08 Thread Greg Thelen
Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and SKIP_STACK_VALIDATION=1 fail. Example output: /bin/sh: init/.tmp_main.o: Permission denied commit 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace"), added a mismatched endif. This causes cmd_objtool to get mistakenly set. Relocate

[PATCH v2 3/4] platform/x86: silead_dmi: Add touchscreen info for the Chuwi Vi10 tablet

2018-06-08 Thread Hans de Goede
Add touchscreen info for the 10" Chuwi Vi10 (CWI505) tablet. Signed-off-by: Hans de Goede --- drivers/platform/x86/silead_dmi.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c index e466e6d8226

[PATCH v2 1/4] platform/x86: silead_dmi: Rename trekstor entries

2018-06-08 Thread Hans de Goede
Prefix the entries for trekstor tablets with trekstor_ and drop the detailed model version (still available as comment in the dmi table) to keep things within 80 chars. This is a preparation patch for sorting all the entries alphabetically. Signed-off-by: Hans de Goede --- drivers/platform/x86/

[PATCH v2 2/4] platform/x86: silead_dmi: Sort entries alphabetically

2018-06-08 Thread Hans de Goede
We have so much entries now that it is good to bring some form of order to them. This should also reduce conflicts when multiple patches make changes at the same time (compared to tagging all new entries at the end). Note this commit purely moves stuff around and adds 2 comments about keeping the

[PATCH v2 4/4] platform/x86: Rename silead_dmi to touchscreen_dmi

2018-06-08 Thread Hans de Goede
Not only silead touchscreens need some extra info not available in the ACPI tables to work properly. X86 devices with a Chipone ICN8505 chip also need some DMI based extra configuration. There is no reason to have separate dmi config code per touchscreen controller vendor. This commit renames sile

Re: [PATCH 09/20] coresight: dts: Define new bindings for direction of data flow

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:20PM +0100, Suzuki K Poulose wrote: > So far we have relied on an undocumented property "slave-mode", > to indicate if the given port is input or not. Since we are > redefining the coresight bindings, define new property for the > "direction" of data flow for a given c

Re: [PATCH v1 3/3] x86/bugs: Switch the selection of mitigation from CPU vendor to CPU features

2018-06-08 Thread Tom Lendacky
On 6/1/2018 9:59 AM, Konrad Rzeszutek Wilk wrote: > Both AMD and Intel can have SPEC CTRL MSR for SSBD. > > However AMD also has two more other ways of doing it - which > are !SPEC_CTRL MSR ways. > > Signed-off-by: Konrad Rzeszutek Wilk > > --- > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H

RFC : Hyplets - User Space Interrupts for ARM

2018-06-08 Thread raz
We would like to present ARM hyplets. Hyplets are a novel way to code interrupt service routines under ARM. Hyplets provide high performance, security, running time predictability ,an RPC mechanism and a possible solution for the priority inversion problem. Hyplets uses special features of ARM h

Re: [PATCH 08/20] coresight: dts: Cleanup device tree graph bindings

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:19PM +0100, Suzuki K Poulose wrote: > The coresight drivers relied on default bindings for graph > in DT, while reusing the "reg" field of the "ports" to indicate > the actual hardware port number for the connections. However, > with the rules getting stricter w.r.t to

Re: [PATCH] ipc: Limit sysctl value to IPCMNI

2018-06-08 Thread Andrew Morton
On Fri, 8 Jun 2018 15:49:49 +0200 Takashi Iwai wrote: > Currently shmmni proc entry accepts all entered integer values, but > the practical limit is IPCMNI (32768). This confuses user as if a > bigger value were accepted but not applied correctly. > > This patch changes the proc entry to use *

Re: [PATCH v3 0/4] seccomp trap to userspace

2018-06-08 Thread Tycho Andersen
Hi Kees, On Fri, Jun 08, 2018 at 09:29:42AM -0700, Kees Cook wrote: > On Thu, May 31, 2018 at 7:49 AM, Tycho Andersen wrote: > > Hi all, > > > > Here's a v3 of the seccomp trap to userspace, with all the nits from v2 > > fixed. Open questions from v2 are still: > > > > 1. is it ok not to use netl

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-08 Thread Jason Baron
On 06/08/2018 03:57 PM, Andrew Morton wrote: > On Fri, 8 Jun 2018 14:56:52 -0400 Jason Baron wrote: > >> In order to free memory that is marked MLOCK_ONFAULT, the memory region >> needs to be first unlocked, before calling MADV_DONTNEED. And if the region >> is to be reused as MLOCK_ONFAULT, we

Re: [PATCH] uapi: Make generic uapi headers compile standalone.

2018-06-08 Thread Randy Dunlap
On 06/08/2018 11:36 AM, Jayant Chowdhary wrote: > Hi Randy, > > On 06/07/2018 05:07 PM, Randy Dunlap wrote: >> On 06/06/2018 04:16 PM, Jayant Chowdhary wrote: >>> In order for static analysis tools to analyze each of the uapi headers, >>> we need to enable them to compile stand-alone. Some uapi he

Re: [PATCH v3] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-08 Thread Andrew Morton
On Tue, 29 May 2018 17:12:04 -0700 Shakeel Butt wrote: > The memcg kmem cache creation and deactivation (SLUB only) is > asynchronous. If a root kmem cache is destroyed whose memcg cache is in > the process of creation or deactivation, the kernel may crash. > > Example of one such crash: >

Re: [PATCH v1 09/13] PCI/AER: Move aer_irq() declaration to portdrv.h

2018-06-08 Thread Bjorn Helgaas
On Fri, Jun 08, 2018 at 02:17:13PM -0600, Keith Busch wrote: > On Fri, Jun 08, 2018 at 03:05:41PM -0500, Bjorn Helgaas wrote: > > The aer_irq() declaration is the only thing needed by aer_inject.c. Move > > it to portdrv.h so we eventually get rid of aerdrv.h completely. No > > functional change

Re: [PATCH 07/20] coresight: dts: Document usage of graph bindings

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:18PM +0100, Suzuki K Poulose wrote: > Before we update the bindings, document the current graph bindings > and usage of additional properties. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier > --- > .../devicetree/bindings/

Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-08 Thread Andy Shevchenko
On Fri, Jun 8, 2018 at 2:54 PM, Yogesh Narayan Gaur wrote: Hi Frieder, > +#define QUADSPI_MCR_RESERVED_MASK (0xF << 16) GENMASK() > +#define QUADSPI_MCR_END_CFG_MASK (0x3 << 2) > +#define QUADSPI_BUF3CR_ADATSZ_MASK (0xFF << QUADSPI_BUF3CR_ADATSZ_SHIFT) > +#define QUADSPI_SMPR_

Re: [PATCH 06/20] coresight: Handle errors in finding input/output ports

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:17PM +0100, Suzuki K Poulose wrote: > If we fail to find the input / output port for a LINK component > while enabling a path, we should fail gracefully rather than > assuming port "0". > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtra

Re: [RFC PATCH v1 00/13] PCI/AER: Squash into one file

2018-06-08 Thread Keith Busch
On Fri, Jun 08, 2018 at 03:04:45PM -0500, Bjorn Helgaas wrote: > The AER code is scattered across several files and buried a little too deep > in the hierarchy, which makes it a bit of a hassle to browse. Consolidate > it all in a single file (plus the optional aer_inject module) and move it > up

Re: [PATCH 05/20] coresight: platform: Cleanup coresight connection handling

2018-06-08 Thread Mathieu Poirier
On Tue, Jun 05, 2018 at 10:43:16PM +0100, Suzuki K Poulose wrote: > The platform code parses the component connections and populates > a platform-description of the output connections in arrays of fields > (which is never freed). This is later copied in the coresight_register > to a newly allocated

Re: [PATCH v1 09/13] PCI/AER: Move aer_irq() declaration to portdrv.h

2018-06-08 Thread Keith Busch
On Fri, Jun 08, 2018 at 03:05:41PM -0500, Bjorn Helgaas wrote: > The aer_irq() declaration is the only thing needed by aer_inject.c. Move > it to portdrv.h so we eventually get rid of aerdrv.h completely. No > functional change intended. Nothing against what you're doing here, but it does seem o

[rcu:rcu/dev 114/116] drivers/iommu/amd_iommu.c:3566:21: sparse: symbol 'stupid_workaround' was not declared. Should it be static?

2018-06-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/dev head: f20dfe840ba05efdc4071106cffa31cb67cf6bc8 commit: 814ee31d1f906ad00daccb58944ab16fa279690c [114/116] fixup! EXP iommu: Placeholder for fix in mainline reproduce: # apt-get install sparse g

[PATCH v1 6/9] PCI/portdrv: Squash service driver registration into portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Squash service driver registration into portdrv_pci.c. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/Makefile |2 - drivers/pci/pcie/portdrv_core.c | 116 --- drivers/pci/pcie/portdrv_pci.c

[PATCH v1 7/9] PCI/portdrv: Move private definitions to portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Move private definitions to portdrv_pci.c. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv.h |9 - drivers/pci/pcie/portdrv_pci.c |9 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drive

[PATCH v1 8/9] PCI/portdrv: Clean up whitespace

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Clean up trivial whitespace issues. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv_pci.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_p

[RFC PATCH rcu] fixup! EXP iommu: stupid_workaround() can be static

2018-06-08 Thread kbuild test robot
Fixes: 814ee31d1f90 ("fixup! EXP iommu: Placeholder for fix in mainline") Signed-off-by: kbuild test robot --- amd_iommu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 46519d0..00dcafe 100644 --- a/drivers/iom

[PATCH v1 9/9] PCI/portdrv: Rename portdrv_pci.c to portdrv.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Rename portdrv_pci.c to portdrv.c. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/Makefile |6 drivers/pci/pcie/portdrv.c | 822 drivers/pci/pcie/portdrv_pci.c | 822

[PATCH v1 5/9] PCI/portdrv: Squash lookup interfaces into portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Squash lookup interfaces into portdrv_pci.c. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv_core.c | 69 --- drivers/pci/pcie/portdrv_pci.c | 68 ++ 2 fil

[PATCH v1 3/9] PCI/portdrv: Squash PM-related code into portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas pcie_port_device_suspend() and pcie_port_device_resume() were defined in portdrv_core.c and only used in portdrv_pci.c. Move them there and make them static. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv.h |4 --- driver

[PATCH v1 4/9] PCI/portdrv: Squash device removal code into portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas Move device removal code next to its caller in portdrv_pci.c. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv.h |1 - drivers/pci/pcie/portdrv_core.c | 21 - drivers/pci/pcie/portdrv_pci.c | 21

[PATCH v1 2/9] PCI/portdrv: Squash pieces of portdrv_core.c into portdrv_pci.c

2018-06-08 Thread Bjorn Helgaas
From: Bjorn Helgaas No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv.h |1 drivers/pci/pcie/portdrv_core.c | 327 --- drivers/pci/pcie/portdrv_pci.c | 328 +++ 3 files c

  1   2   3   4   >