[PATCH 4.8 45/96] scsi: zfcp: fix use-after-"free" in FC ingress path after TMF

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Block commit dac37e15b7d511e026a9313c8c46794c144103cd upstream. When SCSI EH invokes zFCP's callbacks for eh_device_reset_handler() and

[PATCH 4.8 22/96] drm/amd/amdgpu: enable GUI idle INT after enabling CGCG

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Arindam Nath commit dd31ae9ac933636c3712b7dd0f6152c1d71f81fe upstream. GUI idle interrupts should be enabled only after we have enabled coarse grain clock gating (CGCG).

[PATCH 4.8 33/96] drm/radeon/si: load the proper firmware on 0x87 oland boards

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit abb2e3c1ce64c8bba678973800c34ea1dc97c42c upstream. New variant. Signed-off-by: Alex Deucher Signed-off-by: Greg

[PATCH 4.8 22/96] drm/amd/amdgpu: enable GUI idle INT after enabling CGCG

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Arindam Nath commit dd31ae9ac933636c3712b7dd0f6152c1d71f81fe upstream. GUI idle interrupts should be enabled only after we have enabled coarse grain clock gating (CGCG). This prevents GFX

[PATCH 4.8 33/96] drm/radeon/si: load the proper firmware on 0x87 oland boards

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit abb2e3c1ce64c8bba678973800c34ea1dc97c42c upstream. New variant. Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/si.c |1 +

[PATCH 4.8 45/96] scsi: zfcp: fix use-after-"free" in FC ingress path after TMF

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Block commit dac37e15b7d511e026a9313c8c46794c144103cd upstream. When SCSI EH invokes zFCP's callbacks for eh_device_reset_handler() and eh_target_reset_handler(), it expects us to

[PATCH 4.8 29/96] drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit b27add13f500469127afdf011dbcc9c649e16e54 upstream. This avoids an issue that occurs when we're attempting to preempt multiple channels simultaneously. HW

[PATCH 4.8 24/96] drm/nouveau/kms: lvds panel strap moved again on maxwell

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit 768e847759d551c96e129e194588dbfb11a1d576 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman

[PATCH 4.8 24/96] drm/nouveau/kms: lvds panel strap moved again on maxwell

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit 768e847759d551c96e129e194588dbfb11a1d576 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nouveau_bios.c |3 +++ 1

[PATCH 4.8 29/96] drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit b27add13f500469127afdf011dbcc9c649e16e54 upstream. This avoids an issue that occurs when we're attempting to preempt multiple channels simultaneously. HW seems to ignore

[PATCH 4.8 21/96] ACPI / video: Add force_native quirk for HP Pavilion dv6

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 6276e53fa8c06a3a5cf7b95b77b079966de9ad66 upstream. The HP Pavilion dv6 has a non-working acpi_video0 backlight interface and an intel_backlight

[PATCH 4.8 11/96] timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 9c1645727b8fa90d07256fdfcc45bf831242a3ab upstream. The clocksource delta to nanoseconds conversion is using signed math, but the delta is unsigned.

[PATCH 4.8 13/96] arm64: tegra: Add VDD_GPU regulator to Jetson TX1

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Alexandre Courbot commit 5e6b9a89afceadb1ee45472098f7d20af260335c upstream. Add the VDD_GPU regulator (a GPIO-enabled PWM regulator) to the Jetson TX1 board. This addition

[PATCH 4.8 21/96] ACPI / video: Add force_native quirk for HP Pavilion dv6

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 6276e53fa8c06a3a5cf7b95b77b079966de9ad66 upstream. The HP Pavilion dv6 has a non-working acpi_video0 backlight interface and an intel_backlight interface which works fine.

[PATCH 4.8 11/96] timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 9c1645727b8fa90d07256fdfcc45bf831242a3ab upstream. The clocksource delta to nanoseconds conversion is using signed math, but the delta is unsigned. This makes the

[PATCH 4.8 13/96] arm64: tegra: Add VDD_GPU regulator to Jetson TX1

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Alexandre Courbot commit 5e6b9a89afceadb1ee45472098f7d20af260335c upstream. Add the VDD_GPU regulator (a GPIO-enabled PWM regulator) to the Jetson TX1 board. This addition allows the GPU to be

[PATCH 4.8 10/96] regulator: stw481x-vmmc: fix ages old enable error

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit 295070e9aa015abb9b92cccfbb1e43954e938133 upstream. The regulator has never been properly enabled, it has been dormant all the time. It's strange

[PATCH 4.8 18/96] staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit 655c4d442d1213b617926cc6d54e2a9a793fb46b upstream. For NI M Series cards, the Comedi `insn_read` handler for the AI subdevice is broken due to ANDing the

[PATCH 4.8 16/96] docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Shachnev commit 217e2bfab22e740227df09f22165e834cddd8a3b upstream. In docutils 0.13, the return type of get_column_widths method of the Table directive has changed

[PATCH 4.8 01/96] ssb: Fix error routine when fallback SPROM fails

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 8052d7245b6089992343c80b38b14dbbd8354651 upstream. When there is a CRC error in the SPROM read from the device, the code attempts to handle a

[PATCH 4.8 15/96] thermal: hwmon: Properly report critical temperature in sysfs

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Krzysztof Kozlowski commit f37fabb8643eaf8e3b61a72f683770c85eca upstream. In the critical sysfs entry the thermal hwmon was returning wrong temperature to the user-space.

[PATCH 4.8 18/96] staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit 655c4d442d1213b617926cc6d54e2a9a793fb46b upstream. For NI M Series cards, the Comedi `insn_read` handler for the AI subdevice is broken due to ANDing the value read from the

[PATCH 4.8 16/96] docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Shachnev commit 217e2bfab22e740227df09f22165e834cddd8a3b upstream. In docutils 0.13, the return type of get_column_widths method of the Table directive has changed [1], which breaks our

[PATCH 4.8 01/96] ssb: Fix error routine when fallback SPROM fails

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 8052d7245b6089992343c80b38b14dbbd8354651 upstream. When there is a CRC error in the SPROM read from the device, the code attempts to handle a fallback SPROM. When this also

[PATCH 4.8 15/96] thermal: hwmon: Properly report critical temperature in sysfs

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Krzysztof Kozlowski commit f37fabb8643eaf8e3b61a72f683770c85eca upstream. In the critical sysfs entry the thermal hwmon was returning wrong temperature to the user-space. It was reporting

[PATCH 4.8 10/96] regulator: stw481x-vmmc: fix ages old enable error

2017-01-06 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit 295070e9aa015abb9b92cccfbb1e43954e938133 upstream. The regulator has never been properly enabled, it has been dormant all the time. It's strange that MMC was working at

Re: [PATCH] i2c: core: helper function to detect slave mode

2017-01-06 Thread Vladimir Zapolskiy
Hello Luis, On 01/05/2017 07:24 PM, Luis Oliveira wrote: > This function has the purpose of mode detection by checking the > device nodes for a reg matching with the I2C_OWN_SLAVE_ADDREESS flag. > Currently only checks using OF functions (ACPI slave not supported yet). > > Signed-off-by: Luis

Re: [PATCH] i2c: core: helper function to detect slave mode

2017-01-06 Thread Vladimir Zapolskiy
Hello Luis, On 01/05/2017 07:24 PM, Luis Oliveira wrote: > This function has the purpose of mode detection by checking the > device nodes for a reg matching with the I2C_OWN_SLAVE_ADDREESS flag. > Currently only checks using OF functions (ACPI slave not supported yet). > > Signed-off-by: Luis

[PATCH net-next] net: dsa: move HWMON support to its own file

2017-01-06 Thread Vivien Didelot
Isolate the HWMON support in DSA in its own file. Currently only the legacy DSA code is concerned. Signed-off-by: Vivien Didelot --- net/dsa/Makefile | 1 + net/dsa/dsa.c | 131 +-- net/dsa/dsa_priv.h |

[PATCH net-next] net: dsa: move HWMON support to its own file

2017-01-06 Thread Vivien Didelot
Isolate the HWMON support in DSA in its own file. Currently only the legacy DSA code is concerned. Signed-off-by: Vivien Didelot --- net/dsa/Makefile | 1 + net/dsa/dsa.c | 131 +-- net/dsa/dsa_priv.h | 9 net/dsa/hwmon.c| 147

Re: [PATCH] Fix SLAB freelist randomization duplicate entries

2017-01-06 Thread Thomas Garnier
On Fri, Jan 6, 2017 at 12:42 PM, Andrew Morton wrote: > On Fri, 6 Jan 2017 09:58:48 -0800 Thomas Garnier wrote: > >> On Thu, Jan 5, 2017 at 4:35 PM, Andrew Morton >> wrote: >> > On Tue, 3 Jan 2017 10:19:08 -0800 Thomas

Re: [PATCH] Fix SLAB freelist randomization duplicate entries

2017-01-06 Thread Thomas Garnier
On Fri, Jan 6, 2017 at 12:42 PM, Andrew Morton wrote: > On Fri, 6 Jan 2017 09:58:48 -0800 Thomas Garnier wrote: > >> On Thu, Jan 5, 2017 at 4:35 PM, Andrew Morton >> wrote: >> > On Tue, 3 Jan 2017 10:19:08 -0800 Thomas Garnier >> > wrote: >> > >> >> This patch fixes a bug in the freelist

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Jerome Glisse
On Fri, Jan 06, 2017 at 04:16:20PM -0500, Jerome Glisse wrote: > On Fri, Jan 06, 2017 at 12:54:41PM -0800, Dave Hansen wrote: > > On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > > > I think it is ready for next or at least i would like to know any > > > reasons to not accept this patchset. > > > >

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Jerome Glisse
On Fri, Jan 06, 2017 at 04:16:20PM -0500, Jerome Glisse wrote: > On Fri, Jan 06, 2017 at 12:54:41PM -0800, Dave Hansen wrote: > > On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > > > I think it is ready for next or at least i would like to know any > > > reasons to not accept this patchset. > > > >

Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation

2017-01-06 Thread John Stultz
On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan wrote: > When use configfs to configure USB port as as ethernet gadget, the > kernel has panic with below backtrace; it clearly indicates the > coherent memory allocation is happened in the interrupt context, > but the function

Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation

2017-01-06 Thread John Stultz
On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan wrote: > When use configfs to configure USB port as as ethernet gadget, the > kernel has panic with below backtrace; it clearly indicates the > coherent memory allocation is happened in the interrupt context, > but the function __get_vm_area_node() is

Re: [PATCH v5 3/5] input: Add support for the tm2 touchkey device driver

2017-01-06 Thread Chanwoo Choi
Hi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > From: Jaechul Lee > > This patch adds the binding description of the tm2 touchkey > device driver. > > Signed-off-by: Jaechul Lee > Reviewed-by: Javier Martinez Canillas

Re: [PATCH v5 3/5] input: Add support for the tm2 touchkey device driver

2017-01-06 Thread Chanwoo Choi
Hi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > From: Jaechul Lee > > This patch adds the binding description of the tm2 touchkey > device driver. > > Signed-off-by: Jaechul Lee > Reviewed-by: Javier Martinez Canillas > Reviewed-by: Andi Shyti > Acked-by: Rob Herring > Acked-by: Krzysztof

Re: [PATCH] i2c: i2c-cadence: Don't register the adapter until it's ready

2017-01-06 Thread Vladimir Zapolskiy
Hello Mike, On 01/05/2017 12:47 PM, Mike Looijmans wrote: > The driver calls i2c_add_adapter before writing to config registers, > resulting in dmesg output like this, where devices fail to initialize: > > cdns-i2c ff03.i2c: timeout waiting on completion > pca953x 1-0041: failed reading

Re: [PATCH] i2c: i2c-cadence: Don't register the adapter until it's ready

2017-01-06 Thread Vladimir Zapolskiy
Hello Mike, On 01/05/2017 12:47 PM, Mike Looijmans wrote: > The driver calls i2c_add_adapter before writing to config registers, > resulting in dmesg output like this, where devices fail to initialize: > > cdns-i2c ff03.i2c: timeout waiting on completion > pca953x 1-0041: failed reading

Re: [PATCH] samples/seccomp: fix 64-bit comparison macros

2017-01-06 Thread Kees Cook
On Fri, Jan 6, 2017 at 1:32 PM, Kees Cook wrote: > There were some bugs in the JNE64 and JLT64 comparision macros. This fixes > them, improves comments, and cleans up the file while we are at it. > > Reported-by: Stephen Röttger > Signed-off-by:

Re: [PATCH] samples/seccomp: fix 64-bit comparison macros

2017-01-06 Thread Kees Cook
On Fri, Jan 6, 2017 at 1:32 PM, Kees Cook wrote: > There were some bugs in the JNE64 and JLT64 comparision macros. This fixes > them, improves comments, and cleans up the file while we are at it. > > Reported-by: Stephen Röttger > Signed-off-by: Mathias Svensson > Signed-off-by: Kees Cook >

[PATCH] samples/seccomp: fix 64-bit comparison macros

2017-01-06 Thread Kees Cook
There were some bugs in the JNE64 and JLT64 comparision macros. This fixes them, improves comments, and cleans up the file while we are at it. Reported-by: Stephen Röttger Signed-off-by: Mathias Svensson Signed-off-by: Kees Cook

[PATCH] samples/seccomp: fix 64-bit comparison macros

2017-01-06 Thread Kees Cook
There were some bugs in the JNE64 and JLT64 comparision macros. This fixes them, improves comments, and cleans up the file while we are at it. Reported-by: Stephen Röttger Signed-off-by: Mathias Svensson Signed-off-by: Kees Cook Cc: sta...@vger.kernel.org --- James, can you apply this to your

Re: [PATCH] i2c: core: helper function to detect slave mode

2017-01-06 Thread Andy Shevchenko
On Fri, Jan 6, 2017 at 7:46 PM, Luis Oliveira wrote: > On 06-Jan-17 17:17, Andy Shevchenko wrote: >> On Fri, Jan 6, 2017 at 7:15 PM, Luis Oliveira >> wrote: >>> On 06-Jan-17 16:29, Andy Shevchenko wrote: On Thu, Jan 5, 2017 at 7:24 PM,

Re: [PATCH] i2c: core: helper function to detect slave mode

2017-01-06 Thread Andy Shevchenko
On Fri, Jan 6, 2017 at 7:46 PM, Luis Oliveira wrote: > On 06-Jan-17 17:17, Andy Shevchenko wrote: >> On Fri, Jan 6, 2017 at 7:15 PM, Luis Oliveira >> wrote: >>> On 06-Jan-17 16:29, Andy Shevchenko wrote: On Thu, Jan 5, 2017 at 7:24 PM, Luis Oliveira >> Please, add kernel doc

Re: [PATCH v5 5/5] arm64: dts: exynos: Add tm2 touchkey node

2017-01-06 Thread Chanwoo Choi
Hi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > From: Jaechul Lee > > Add DT node support for TM2 touchkey device. > > Signed-off-by: Beomho Seo > Signed-off-by: Jaechul Lee > Signed-off-by: Andi

Re: [PATCH v5 5/5] arm64: dts: exynos: Add tm2 touchkey node

2017-01-06 Thread Chanwoo Choi
Hi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > From: Jaechul Lee > > Add DT node support for TM2 touchkey device. > > Signed-off-by: Beomho Seo > Signed-off-by: Jaechul Lee > Signed-off-by: Andi Shyti > Reviewed-by: Javier Martinez Canillas > --- >

[GIT PULL] sound fixes for 4.10-rc3

2017-01-06 Thread Takashi Iwai
Linus, please pull sound fixes for v4.10-rc3 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.10-rc3 The topmost commit is e4f34cf6d59160818dcdcf41f4116cc88093ece3 sound fixes for 4.10-rc3

[GIT PULL] sound fixes for 4.10-rc3

2017-01-06 Thread Takashi Iwai
Linus, please pull sound fixes for v4.10-rc3 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.10-rc3 The topmost commit is e4f34cf6d59160818dcdcf41f4116cc88093ece3 sound fixes for 4.10-rc3

Re: [PATCH v5 2/5] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-06 Thread Chanwoo Choi
Hi Andi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > Currently tm2e dts includes tm2 but there are some differences > between the two boards and tm2 has some properties that tm2e > doesn't have. > > That's why it's important to keep the two dts files independent > and put

Re: [PATCH v5 2/5] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-06 Thread Chanwoo Choi
Hi Andi, 2017-01-06 22:43 GMT+09:00 Andi Shyti : > Currently tm2e dts includes tm2 but there are some differences > between the two boards and tm2 has some properties that tm2e > doesn't have. > > That's why it's important to keep the two dts files independent > and put all the commonalities in a

Re: imx: RS-485 problems during TX, maybe DMA related

2017-01-06 Thread Fabio Estevam
Hi Clemens, On Wed, Jan 4, 2017 at 2:00 PM, Clemens Gruber wrote: > Hi, > > I observed odd behavior of the current tty/serial/imx.c driver in RS-485 > mode. > > RX works fine, but TX does not: When sending data, it arrives multiple I am also trying to get rs485 in

Re: imx: RS-485 problems during TX, maybe DMA related

2017-01-06 Thread Fabio Estevam
Hi Clemens, On Wed, Jan 4, 2017 at 2:00 PM, Clemens Gruber wrote: > Hi, > > I observed odd behavior of the current tty/serial/imx.c driver in RS-485 > mode. > > RX works fine, but TX does not: When sending data, it arrives multiple I am also trying to get rs485 in half-duplex mode to work on

Re: [PATCH] solo6x10: use designated initializers

2017-01-06 Thread Kees Cook
On Mon, Dec 19, 2016 at 11:56 AM, Andrey Utkin wrote: > On Fri, Dec 16, 2016 at 05:05:36PM -0800, Kees Cook wrote: >> Prepare to mark sensitive kernel structures for randomization by making >> sure they're using designated initializers. These were identified

Re: [PATCH] solo6x10: use designated initializers

2017-01-06 Thread Kees Cook
On Mon, Dec 19, 2016 at 11:56 AM, Andrey Utkin wrote: > On Fri, Dec 16, 2016 at 05:05:36PM -0800, Kees Cook wrote: >> Prepare to mark sensitive kernel structures for randomization by making >> sure they're using designated initializers. These were identified during >> allyesconfig builds of x86,

Re: [PATCH v3 4/4] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2017-01-06 Thread Bjorn Andersson
On Fri 06 Jan 01:47 PST 2017, Vivek Gautam wrote: > > > +static int qcom_qmp_phy_com_init(struct qcom_qmp_phy *qphy) > > > +{ > > > + const struct qmp_phy_cfg *cfg = qphy->cfg; > > > + void __iomem *serdes = qphy->serdes; > > > + int ret; > > > + > > > + mutex_lock(>phy_mutex); > > > + if

Re: [PATCH v3 4/4] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2017-01-06 Thread Bjorn Andersson
On Fri 06 Jan 01:47 PST 2017, Vivek Gautam wrote: > > > +static int qcom_qmp_phy_com_init(struct qcom_qmp_phy *qphy) > > > +{ > > > + const struct qmp_phy_cfg *cfg = qphy->cfg; > > > + void __iomem *serdes = qphy->serdes; > > > + int ret; > > > + > > > + mutex_lock(>phy_mutex); > > > + if

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Jerome Glisse
On Fri, Jan 06, 2017 at 12:54:41PM -0800, Dave Hansen wrote: > On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > > I think it is ready for next or at least i would like to know any > > reasons to not accept this patchset. > > Do you have a real in-tree user for this yet? Nouvau would be the first

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Jerome Glisse
On Fri, Jan 06, 2017 at 12:54:41PM -0800, Dave Hansen wrote: > On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > > I think it is ready for next or at least i would like to know any > > reasons to not accept this patchset. > > Do you have a real in-tree user for this yet? Nouvau would be the first

Re: [PATCH v5] x86: fix kaslr and memmap collision

2017-01-06 Thread Kees Cook
On Thu, Jan 5, 2017 at 6:44 PM, Baoquan He wrote: > Add Kees to let him have a look at this too. > > On 01/05/17 at 05:21pm, Baoquan He wrote: >> On 01/04/17 at 11:29am, Dave Jiang wrote: >> > CONFIG_RANDOMIZE_BASE relocates the kernel to a random base address. >> > However it

Re: [PATCH v5] x86: fix kaslr and memmap collision

2017-01-06 Thread Kees Cook
On Thu, Jan 5, 2017 at 6:44 PM, Baoquan He wrote: > Add Kees to let him have a look at this too. > > On 01/05/17 at 05:21pm, Baoquan He wrote: >> On 01/04/17 at 11:29am, Dave Jiang wrote: >> > CONFIG_RANDOMIZE_BASE relocates the kernel to a random base address. >> > However it does not take into

[PATCH v3 fpga 4/4] fpga zynq: Use the scatterlist interface

2017-01-06 Thread Jason Gunthorpe
This allows the driver to avoid a high order coherent DMA allocation and memory copy. With this patch it can DMA directly from the kernel pages that the bitfile is stored in. Since this is now a gather DMA operation the driver uses the ISR to feed the chips DMA queue with each entry from the SGL.

[PATCH v3 fpga 4/4] fpga zynq: Use the scatterlist interface

2017-01-06 Thread Jason Gunthorpe
This allows the driver to avoid a high order coherent DMA allocation and memory copy. With this patch it can DMA directly from the kernel pages that the bitfile is stored in. Since this is now a gather DMA operation the driver uses the ISR to feed the chips DMA queue with each entry from the SGL.

[PATCH v3 fpga 3/4] fpga: Add scatterlist based programming

2017-01-06 Thread Jason Gunthorpe
Requiring contiguous kernel memory is not a good idea, this is a limited resource and allocation can fail under normal work loads. This introduces a .write_sg op that supporting drivers can provide to DMA directly from dis-contiguous memory and a new entry point fpga_mgr_buf_load_sg that users

[PATCH v3 fpga 2/4] fpga zynq: Check the bitstream for validity

2017-01-06 Thread Jason Gunthorpe
There is no sense in sending a bitstream we know will not work, and with the variety of options for bitstream generation in Xilinx tools it is not terribly clear what the correct input should be. This is particularly important for Zynq since auto-correction was removed from the driver and the

[PATCH v3 fpga 3/4] fpga: Add scatterlist based programming

2017-01-06 Thread Jason Gunthorpe
Requiring contiguous kernel memory is not a good idea, this is a limited resource and allocation can fail under normal work loads. This introduces a .write_sg op that supporting drivers can provide to DMA directly from dis-contiguous memory and a new entry point fpga_mgr_buf_load_sg that users

[PATCH v3 fpga 2/4] fpga zynq: Check the bitstream for validity

2017-01-06 Thread Jason Gunthorpe
There is no sense in sending a bitstream we know will not work, and with the variety of options for bitstream generation in Xilinx tools it is not terribly clear what the correct input should be. This is particularly important for Zynq since auto-correction was removed from the driver and the

[PATCH v3 fpga 1/4] fpga zynq: Check for errors after completing DMA

2017-01-06 Thread Jason Gunthorpe
The completion did not check the interrupt status to see if any error bits were asserted, check error bits and dump some registers if things went wrong. A few fixes are needed to make this work, the IXR_ERROR_FLAGS_MASK was wrong, it included the done bits, which shows a bug in mask/unmask_irqs

[PATCH v3 fpga 1/4] fpga zynq: Check for errors after completing DMA

2017-01-06 Thread Jason Gunthorpe
The completion did not check the interrupt status to see if any error bits were asserted, check error bits and dump some registers if things went wrong. A few fixes are needed to make this work, the IXR_ERROR_FLAGS_MASK was wrong, it included the done bits, which shows a bug in mask/unmask_irqs

[PATCH v3 fpga 0/4] Zynq FPGA dma patches

2017-01-06 Thread Jason Gunthorpe
Here is the respin with comments addressed and retested on 4.10-rc2. The first two patches are already acked, resending for convenience since the others in the series require them. v3: - Minor coding style changes and comments - Alternate documentation text Jason Gunthorpe (4): fpga zynq:

[PATCH v3 fpga 0/4] Zynq FPGA dma patches

2017-01-06 Thread Jason Gunthorpe
Here is the respin with comments addressed and retested on 4.10-rc2. The first two patches are already acked, resending for convenience since the others in the series require them. v3: - Minor coding style changes and comments - Alternate documentation text Jason Gunthorpe (4): fpga zynq:

[PATCHv3] HID: i2c-hid: Add sleep between POWER ON and RESET

2017-01-06 Thread Brendan McGrath
Support for the Asus Touchpad was recently added. It turns out this device can fail initialisation (and become unusable) when the RESET command is sent too soon after the POWER ON command. Unfortunately the i2c-hid specification does not specify the need for a delay between these two commands.

[PATCHv3] HID: i2c-hid: Add sleep between POWER ON and RESET

2017-01-06 Thread Brendan McGrath
Support for the Asus Touchpad was recently added. It turns out this device can fail initialisation (and become unusable) when the RESET command is sent too soon after the POWER ON command. Unfortunately the i2c-hid specification does not specify the need for a delay between these two commands.

Re: [PATCH v3 15/15] livepatch: allow removal of a disabled patch

2017-01-06 Thread Josh Poimboeuf
On Wed, Jan 04, 2017 at 03:57:09PM +0100, Miroslav Benes wrote: > > > diff --git a/samples/livepatch/livepatch-sample.c > > b/samples/livepatch/livepatch-sample.c > > index bb61c65..0625f38 100644 > > --- a/samples/livepatch/livepatch-sample.c > > +++ b/samples/livepatch/livepatch-sample.c > >

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-06 Thread Josh Poimboeuf
On Thu, Jan 05, 2017 at 10:34:57AM +0100, Miroslav Benes wrote: > > > @@ -740,6 +809,14 @@ int klp_register_patch(struct klp_patch *patch) > > return -ENODEV; > > > > /* > > +* Architectures without reliable stack traces have to set > > +* patch->immediate because

Re: [PATCH v3 15/15] livepatch: allow removal of a disabled patch

2017-01-06 Thread Josh Poimboeuf
On Wed, Jan 04, 2017 at 03:57:09PM +0100, Miroslav Benes wrote: > > > diff --git a/samples/livepatch/livepatch-sample.c > > b/samples/livepatch/livepatch-sample.c > > index bb61c65..0625f38 100644 > > --- a/samples/livepatch/livepatch-sample.c > > +++ b/samples/livepatch/livepatch-sample.c > >

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-06 Thread Josh Poimboeuf
On Thu, Jan 05, 2017 at 10:34:57AM +0100, Miroslav Benes wrote: > > > @@ -740,6 +809,14 @@ int klp_register_patch(struct klp_patch *patch) > > return -ENODEV; > > > > /* > > +* Architectures without reliable stack traces have to set > > +* patch->immediate because

Re: kmod: add a sanity check on module loading

2017-01-06 Thread Jessica Yu
+++ Rusty Russell [03/01/17 10:34 +1030]: "Luis R. Rodriguez" writes: Maybe a similar hack for try_then_request_module(), but many places seem to open-code request_module() so it's not as trivial... Hi Luis, Jessica (who is the main module maintainer now), Back

Re: kmod: add a sanity check on module loading

2017-01-06 Thread Jessica Yu
+++ Rusty Russell [03/01/17 10:34 +1030]: "Luis R. Rodriguez" writes: Maybe a similar hack for try_then_request_module(), but many places seem to open-code request_module() so it's not as trivial... Hi Luis, Jessica (who is the main module maintainer now), Back from break, sorry

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-06 Thread Josh Poimboeuf
On Wed, Jan 04, 2017 at 02:44:47PM +0100, Miroslav Benes wrote: > On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > > > +void klp_start_transition(void) > > +{ > > + struct task_struct *g, *task; > > + unsigned int cpu; > > + > > + WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); > > + > > +

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-06 Thread Josh Poimboeuf
On Wed, Jan 04, 2017 at 02:44:47PM +0100, Miroslav Benes wrote: > On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > > > +void klp_start_transition(void) > > +{ > > + struct task_struct *g, *task; > > + unsigned int cpu; > > + > > + WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); > > + > > +

[PATCH 05/12 linux-next] udf: remove empty condition

2017-01-06 Thread Fabian Frederick
loc & 0x02 is empty since first git version in 2005 in udf_add_extendedattr() Signed-off-by: Fabian Frederick --- fs/udf/misc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/udf/misc.c b/fs/udf/misc.c index 71d1c25..3949c4b 100644 --- a/fs/udf/misc.c +++

[PATCH 06/12 linux-next] udf: add udf_ajust_time

2017-01-06 Thread Fabian Frederick
Merge timespec affectations Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index b5893f4..f563e97 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c

[PATCH 05/12 linux-next] udf: remove empty condition

2017-01-06 Thread Fabian Frederick
loc & 0x02 is empty since first git version in 2005 in udf_add_extendedattr() Signed-off-by: Fabian Frederick --- fs/udf/misc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/udf/misc.c b/fs/udf/misc.c index 71d1c25..3949c4b 100644 --- a/fs/udf/misc.c +++ b/fs/udf/misc.c @@ -141,8

[PATCH 06/12 linux-next] udf: add udf_ajust_time

2017-01-06 Thread Fabian Frederick
Merge timespec affectations Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index b5893f4..f563e97 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -1612,6

[PATCH 09/12 linux-next] udf: merge module informations in super.c

2017-01-06 Thread Fabian Frederick
Move all module attributes at the end of one file like other FS. Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 4 fs/udf/super.c | 9 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 2327f72..47638eb

[PATCH 09/12 linux-next] udf: merge module informations in super.c

2017-01-06 Thread Fabian Frederick
Move all module attributes at the end of one file like other FS. Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 4 fs/udf/super.c | 9 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 2327f72..47638eb 100644 ---

[PATCH 01/12 linux-next] udf: use __packed instead of __attribute__ ((packed))

2017-01-06 Thread Fabian Frederick
defined in linux/compiler-gcc.h Signed-off-by: Fabian Frederick --- fs/udf/ecma_167.h | 98 +++ fs/udf/osta_udf.h | 34 +-- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/fs/udf/ecma_167.h

Re: kmod: provide wrappers for kmod_concurrent inc/dec

2017-01-06 Thread Luis R. Rodriguez
On Wed, Dec 21, 2016 at 08:48:06PM -0800, Jessica Yu wrote: > +++ Luis R. Rodriguez [16/12/16 09:05 +0100]: > > On Thu, Dec 15, 2016 at 01:46:25PM +0100, Petr Mladek wrote: > > > On Thu 2016-12-08 22:08:59, Luis R. Rodriguez wrote: > > > > On Thu, Dec 08, 2016 at 12:29:42PM -0800, Kees Cook wrote:

[PATCH 10/12 linux-next] udf: atomically read inode size

2017-01-06 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/udf/lowlevel.c | 2 +- fs/udf/super.c| 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/udf/lowlevel.c b/fs/udf/lowlevel.c index 6ad5a45..5c7ec12 100644 ---

[PATCH 12/12 linux-next] udf: check partition reference in udf_read_inode()

2017-01-06 Thread Fabian Frederick
We were checking block number without checking partition. sbi->s_partmaps[iloc->partitionReferenceNum] could lead to bad memory access. See udf_nfs_get_inode() path for instance. Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH 04/12 linux-next] udf: remove unneeded line break

2017-01-06 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 5cac1c3..b5893f4 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -2271,8 +2271,7 @@ int8_t inode_bmap(struct inode

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Dave Hansen
On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > I think it is ready for next or at least i would like to know any > reasons to not accept this patchset. Do you have a real in-tree user for this yet?

[PATCH 12/12 linux-next] udf: check partition reference in udf_read_inode()

2017-01-06 Thread Fabian Frederick
We were checking block number without checking partition. sbi->s_partmaps[iloc->partitionReferenceNum] could lead to bad memory access. See udf_nfs_get_inode() path for instance. Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 04/12 linux-next] udf: remove unneeded line break

2017-01-06 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- fs/udf/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 5cac1c3..b5893f4 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -2271,8 +2271,7 @@ int8_t inode_bmap(struct inode *inode, sector_t

Re: [HMM v15 00/16] HMM (Heterogeneous Memory Management) v15

2017-01-06 Thread Dave Hansen
On 01/06/2017 08:46 AM, Jérôme Glisse wrote: > I think it is ready for next or at least i would like to know any > reasons to not accept this patchset. Do you have a real in-tree user for this yet?

[PATCH 01/12 linux-next] udf: use __packed instead of __attribute__ ((packed))

2017-01-06 Thread Fabian Frederick
defined in linux/compiler-gcc.h Signed-off-by: Fabian Frederick --- fs/udf/ecma_167.h | 98 +++ fs/udf/osta_udf.h | 34 +-- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/fs/udf/ecma_167.h b/fs/udf/ecma_167.h

Re: kmod: provide wrappers for kmod_concurrent inc/dec

2017-01-06 Thread Luis R. Rodriguez
On Wed, Dec 21, 2016 at 08:48:06PM -0800, Jessica Yu wrote: > +++ Luis R. Rodriguez [16/12/16 09:05 +0100]: > > On Thu, Dec 15, 2016 at 01:46:25PM +0100, Petr Mladek wrote: > > > On Thu 2016-12-08 22:08:59, Luis R. Rodriguez wrote: > > > > On Thu, Dec 08, 2016 at 12:29:42PM -0800, Kees Cook wrote:

[PATCH 10/12 linux-next] udf: atomically read inode size

2017-01-06 Thread Fabian Frederick
See i_size_read() comments in include/linux/fs.h Signed-off-by: Fabian Frederick --- fs/udf/lowlevel.c | 2 +- fs/udf/super.c| 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/udf/lowlevel.c b/fs/udf/lowlevel.c index 6ad5a45..5c7ec12 100644 ---

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