[PATCH v1] tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

2017-01-19 Thread Arvind Yadav
Here, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- drivers/tty/serial/8250/8250_gsc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/tty/se

Re: [PATCH] drm/bochs: Implement nomodeset

2017-01-19 Thread Gerd Hoffmann
On Mi, 2017-01-18 at 19:10 +0100, Max Staudt wrote: > Up until now, the bochsdrm driver didn't handle the nomodeset option > at boot, and didn't provide a "modeset" module option either. > > This patch implements both. > > The new parameter can be used by specifying bochs-drm.modeset=0 > at boot

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-19 Thread Hanjun Guo
Hi Fuwei, One comments below. On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei The counter frequency detection call(arch_timer_detect_rate) combines two ways to get counter frequency: system coprocessor register and MMIO timer. But in a specific timer init code, we only need one way

Re: [PATCH v9 2/5] i2c: Add STM32F4 I2C driver

2017-01-19 Thread Uwe Kleine-König
Hello Cedric, On Wed, Jan 18, 2017 at 09:55:39PM +0100, M'boumba Cedric Madianga wrote: > 2017-01-18 19:42 GMT+01:00 Uwe Kleine-König : > > Hello Cedric, > > > > On Wed, Jan 18, 2017 at 04:21:17PM +0100, M'boumba Cedric Madianga wrote: > >> >> + * In standard mode, the maximum allowed SCL ris

Re: [BISSECTED]: BUG: usb: dwc3: usb ports not working anymore on odroid-XU4

2017-01-19 Thread Felipe Balbi
Hi, Richard Genoud writes: > Hi, > Since commit c499ff71ff2a2 ("usb: dwc3: core: re-factor init and exit paths") > (merged in 4.8), the usb ports on odroid-XU4 don't work anymore. > > [ Actually, it's commit 2164a476205ccc ("usb: dwc3: set SUSPHY bit for all > cores"), cf below ] > > Inserting

[PATCH 0/1] add multiple clock handling for dwc2 driver

2017-01-19 Thread Frank Wang
The Current default dwc2 just handle one clock named otg, however, it may have two or more clock need to manage for some new SoCs(such as RK3328), so this adds change clk to clk's array of dwc2_hsotg to handle more clocks operation. Frank Wang (1): usb: dwc2: add multiple clock handling driver

[PATCH 1/1] usb: dwc2: add multiple clock handling

2017-01-19 Thread Frank Wang
Originally, dwc2 just handle one clock named otg, however, it may have two or more clock need to manage for some new SoCs, so this adds change clk to clk's array of dwc2_hsotg to handle more clocks operation. Signed-off-by: Frank Wang --- drivers/usb/dwc2/core.h | 5 - drivers/usb/dwc2/

Re: [PATCH 1/2] ARM64: dts: meson-gxm: Add R-Box Pro

2017-01-19 Thread Neil Armstrong
Hi Andreas, Kevin, On 01/18/2017 11:27 PM, Kevin Hilman wrote: > Andreas Färber writes: > >> Am 17.01.2017 um 04:06 schrieb Andreas Färber: >>> diff --git a/arch/arm64/boot/dts/amlogic/Makefile >>> b/arch/arm64/boot/dts/amlogic/Makefile >>> index 0d7bfbf7d922..66bc809a5eae 100644 >>> --- a/arch

Re: [PATCH 2/3] ARM64: dts: meson-gxbb: Add support for WeTek Hub and Play

2017-01-19 Thread Neil Armstrong
On 01/18/2017 11:53 PM, Kevin Hilman wrote: > Neil Armstrong writes: > >> Adds support for the WeTek Hub and Play2 boards. >> The Hub is an extremely small IPTv Set-Top-Box and the Play2 is a more >> traditionnal Satellite or Terrestrial and IPTv Set-Top-Box. >> >> Both are based on the p200 Refe

Re: [PATCH V7 1/4] Documentation/devicetree/bindings: b850v3_lvds_dp

2017-01-19 Thread Peter Senna Tschudin
On Wed, Jan 18, 2017 at 11:10:58PM +0200, Laurent Pinchart wrote: > Hi Peter, > > On Monday 16 Jan 2017 09:37:11 Peter Senna Tschudin wrote: > > On Tue, Jan 10, 2017 at 11:04:58PM +0200, Laurent Pinchart wrote: > > > On Saturday 07 Jan 2017 01:29:52 Peter Senna Tschudin wrote: > > >> On 04 January

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-19 Thread Boris Brezillon
Hi Rob, On Wed, 18 Jan 2017 20:51:08 -0600 Rob Herring wrote: > On Wed, Jan 18, 2017 at 5:38 PM, Thomas Petazzoni > wrote: > > Hello, > > > > On Wed, 18 Jan 2017 16:20:10 -0600, Rob Herring wrote: > > > >> > > Rob, Mark, any opinion? > >> > > >> > >> Sigh, is how to do compatibles really

Re: [PATCH V7 1/4] Documentation/devicetree/bindings: b850v3_lvds_dp

2017-01-19 Thread Laurent Pinchart
Hi Peter, On Thursday 19 Jan 2017 09:12:14 Peter Senna Tschudin wrote: > On Wed, Jan 18, 2017 at 11:10:58PM +0200, Laurent Pinchart wrote: > > On Monday 16 Jan 2017 09:37:11 Peter Senna Tschudin wrote: > >> On Tue, Jan 10, 2017 at 11:04:58PM +0200, Laurent Pinchart wrote: > >>> On Saturday 07 Jan

Re: [PATCH v2 2/3] cpu: expose pm_qos_resume_latency for each cpu

2017-01-19 Thread Alex Shi
On 01/17/2017 06:23 PM, Daniel Lezcano wrote: >> > >> > @@ -376,6 +377,7 @@ int register_cpu(struct cpu *cpu, int num) >> > >> >per_cpu(cpu_sys_devices, num) = &cpu->dev; >> >register_cpu_under_node(num, cpu_to_node(num)); >> > + dev_pm_qos_expose_latency_limit(&cpu->dev, 0); > This

[PATCH] ARM64: dts: meson-gxm: Rename q200 and q201 DT files for consistency

2017-01-19 Thread Neil Armstrong
In order to keep consistency naming with the Nexbox A1 DTS file, remove the S912 SoC name in the GXM DT files. Suggested-by: Andreas Färber Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 4 ++-- .../boot/dts/amlogic/{meson-gxm-s912-q200

Re: [PATCH 0/5] UM: Fine-tuning for some function implementations

2017-01-19 Thread Richard Weinberger
Markus, Am 18.01.2017 um 22:55 schrieb SF Markus Elfring: > From: Markus Elfring > Date: Wed, 18 Jan 2017 22:48:02 +0100 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (5): > port: Move an assignment for the variable "fd" in port_wa

Re: [PATCH 13/33] Input: bfin_rotary - Use 'dev' instead of dereferencing it and other changes

2017-01-19 Thread Guenter Roeck
On 01/18/2017 08:58 PM, Joe Perches wrote: On Wed, 2017-01-18 at 12:35 -0800, Guenter Roeck wrote: On Wed, Jan 18, 2017 at 11:39:52AM -0800, Dmitry Torokhov wrote: On Wed, Jan 18, 2017 at 09:46:34AM -0800, Guenter Roeck wrote: [] diff --git a/drivers/input/misc/bfin_rotary.c b/drivers/input/m

Re: linux-next: build warning after merge of the net tree

2017-01-19 Thread Tariq Toukan
Hi Stephen, On 19/01/2017 12:56 AM, Stephen Rothwell wrote: Hi all, After merging the net tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c: In function 'mlx5e_set_channels': drivers/net/ethernet/mellanox/mlx5/core

Re: [PATCH v20 11/17] clocksource/drivers/arm_arch_timer: Introduce some new structs to prepare for GTDT

2017-01-19 Thread Hanjun Guo
On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei The patch introduce two new structs: arch_timer_mem, arch_timer_mem_frame. And also introduce a new define: ARCH_TIMER_MEM_MAX_FRAMES These will be used for refactoring the memory-mapped timer init code to prepare for GTDT Signed-off-b

Re: [PATCH -next] init/main: Init jump_labels before they are used to build zonelists

2017-01-19 Thread Vlastimil Babka
On 01/17/2017 09:49 PM, Vlastimil Babka wrote: > On 17.1.2017 21:34, Andrew Morton wrote: Will you be able to look into that? Openrisc doesnt have jump_label support, so its no issue at the moment. Archs that do have it: arch/arm64/Kconfig: select HAVE_ARCH_JU

Re: [PATCH v9 2/5] i2c: Add STM32F4 I2C driver

2017-01-19 Thread M'boumba Cedric Madianga
ok fine 2017-01-19 9:02 GMT+01:00 Uwe Kleine-König : > Hello Cedric, > > On Wed, Jan 18, 2017 at 09:55:39PM +0100, M'boumba Cedric Madianga wrote: >> 2017-01-18 19:42 GMT+01:00 Uwe Kleine-König : >> > Hello Cedric, >> > >> > On Wed, Jan 18, 2017 at 04:21:17PM +0100, M'boumba Cedric Madianga wrote:

[PATCH] ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock

2017-01-19 Thread Kefeng Wang
Just like commit 4acd4945cd1e ("ipv6: addrconf: Avoid calling netdevice notifiers with RCU read-side lock"), it is unnecessary to make addrconf_disable_change() use RCU iteration over the netdev list, since it already holds the RTNL lock, or we may meet Illegal context switch in RCU read-side criti

Re: [PATCH 1/6] mm: introduce kv[mz]alloc helpers

2017-01-19 Thread John Hubbard
On 01/18/2017 12:21 AM, Michal Hocko wrote: On Tue 17-01-17 21:59:13, John Hubbard wrote: On 01/16/2017 11:51 PM, Michal Hocko wrote: On Mon 16-01-17 13:57:43, John Hubbard wrote: On 01/16/2017 01:48 PM, Michal Hocko wrote: On Mon 16-01-17 13:15:08, John Hubbard wrote: On 01/16/2017 1

[GIT PULL] two bug fixes for 4.10-rc5

2017-01-19 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: Two changes, the first is a fix to add a missing memory clobber to the inline assembly to load control registers. This has not ca

Re: [PATCH v8 0/8] Add PWM and IIO timer drivers for STM32

2017-01-19 Thread Lee Jones
On Wed, 18 Jan 2017, Benjamin Gaignard wrote: > version 8: > - rebase on v4.10-rc4 > - fix comments done by Thierry on PWM > - reword "reg" parameter description > - change kernel kernel in IIO ABI documentation > > version 7: > - rebase on v4.10-rc2 > - remove iio_device code from driver and kee

Re: [PATCH 8/8] Revert "ext4: fix wrong gfp type under transaction"

2017-01-19 Thread Michal Hocko
On Tue 17-01-17 18:29:25, Jan Kara wrote: > On Tue 17-01-17 17:16:19, Michal Hocko wrote: > > > > But before going to play with that I am really wondering whether we need > > > > all this with no journal at all. AFAIU what Jack told me it is the > > > > journal lock(s) which is the biggest problem

Re: [PATCH 1/7] scsi: hisi_sas: workaround v2 hw SATA IO timeout issue

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:47AM +0800, John Garry wrote: > From: Xiang Chen > > The v2 SAS controller needs more time to detect channel idle > and send setup link request than SATA disk does, so it is > difficult for SAS controller to setup an STP link. Therefore it > may cause some IO timeout

Re: [PATCH 2/7] scsi: hisi_sas: modify some values of ITCT table

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:48AM +0800, John Garry wrote: > From: Xiang Chen > > Set SMP connection timeout and continue AWT timer; > Clear ITCT table when dev gone. > > Signed-off-by: Xiang Chen > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 11 +++ >

Re: [PATCH 3/7] scsi: hisi_sas: downgrade refclk message

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:49AM +0800, John Garry wrote: > The message to inform that the controller has no refclk > is currently at warning level, which is unnecessary, so > downgrade to debug. > > Signed-off-by: John Garry > Reviewed-by: Xiang Chen > --- Looks good, Reviewed-by: Johannes T

Re: [PATCH 6/7] scsi: hisi_sas: fix probe ordering problem

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:52AM +0800, John Garry wrote: > From: Xiang Chen > > There is a potential probe issue in how we trigger the hw initialisation. > Although we use 1s timer to delay hw initialisation, there is still a > potential that sas_register_ha() is not be finished before we star

Re: [PATCH v3] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-19 Thread Tomasz Nowicki
Hi Aleksey, On 17.01.2017 16:14, Aleksey Makarov wrote: Enable the Extended Stream ID feature when available. This patch on top of series "KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions" by Eric Auger [1] allows to passthrough an external PCIe network card on a ThunderX server

Re: [PATCH 2/7] scsi: hisi_sas: modify some values of ITCT table

2017-01-19 Thread John Garry
On 19/01/2017 08:44, Johannes Thumshirn wrote: On Thu, Jan 19, 2017 at 12:32:48AM +0800, John Garry wrote: From: Xiang Chen Set SMP connection timeout and continue AWT timer; Clear ITCT table when dev gone. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_

Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Chris Wilson
On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > Chris, > > My branch tracer flagged the unlikely in __mutex_lock_common() as > always hit. That's the: > > if (use_ww_ctx) { > [...] > if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) >

Re: [patch -mm] mm, page_alloc: warn_alloc nodemask is NULL when cpusets are disabled

2017-01-19 Thread Michal Hocko
On Thu 19-01-17 08:29:45, Vlastimil Babka wrote: > On 01/18/2017 10:51 PM, David Rientjes wrote: > > The patch "mm, page_alloc: warn_alloc print nodemask" implicitly sets the > > allocation nodemask to cpuset_current_mems_allowed when there is no > > effective mempolicy. cpuset_current_mems_allo

Re: [PATCH 7/7] scsi: hisi_sas: decrease running_req in hisi_sas_slot_task_free()

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:53AM +0800, John Garry wrote: > From: Xiang Chen > > There is an issue that hisi_sas_dev.running_req is not > decremented properly for internal abort and TMF. > > To resolve, only decrease running_req in hisi_sas_slot_task_free() > > Signed-off-by: Xiang Chen > Si

Re: [PATCH v3] EDAC: expose per-dimm error counts in sysfs

2017-01-19 Thread Aaron Miller
On 11/4/16, 4:21 AM, "Borislav Petkov" wrote: LGTM. Acked-by: Borislav Petkov Mauro, I'm assuming you're picking up this. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply. Did this ever get p

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2017-01-19 Thread Michal Hocko
On Wed 18-01-17 14:18:50, Tejun Heo wrote: > Hello, Michal. > > On Tue, Jan 17, 2017 at 02:58:30PM +0100, Michal Hocko wrote: > > This would require using hierarchical cgroup iterators to iterate over > > It does behave hierarchically. > > > tasks. As per Andy's testing this doesn't seem to be t

Re: [PATCH v2 3/3] gpio: Support gpio nexus dt bindings

2017-01-19 Thread Linus Walleij
On Wed, Jan 18, 2017 at 1:50 AM, Stephen Boyd wrote: > Platforms like 96boards have a standardized connector/expansion > slot that exposes signals like GPIOs to expansion boards in an > SoC agnostic way. We'd like the DT overlays for the expansion > boards to be written once without knowledge of

Re: [PATCH 1/6] mm: introduce kv[mz]alloc helpers

2017-01-19 Thread Michal Hocko
On Thu 19-01-17 00:37:08, John Hubbard wrote: > > > On 01/18/2017 12:21 AM, Michal Hocko wrote: > > On Tue 17-01-17 21:59:13, John Hubbard wrote: [...] > > > * Reclaim modifiers - __GFP_NORETRY and __GFP_NOFAIL should not be > > > passed in. > > > * Passing in __GFP_REPEAT is supported, but no

Re: [PATCH 5/7] scsi: hisi_sas: downgrade internal abort exit print

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:51AM +0800, John Garry wrote: > Downgrade the exit print in hisi_sas_internal_task_abort() > to dbg level, as info is not required. > > Signed-off-by: John Garry > Reviewed-by: Xiang Chen > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: [PATCH 4/7] scsi: hisi_sas: modify hard reset for directed-attached disk

2017-01-19 Thread Johannes Thumshirn
On Thu, Jan 19, 2017 at 12:32:50AM +0800, John Garry wrote: > From: Xiang Chen > > Correctly set registers in v2 for root PHY hardreset for directly > attached disk. > > Signed-off-by: Xiang Chen > Signed-off-by: John Garry > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thum

Re: [PATCH 13/13] MIPS: jz4740: Remove custom GPIO code

2017-01-19 Thread Linus Walleij
On Wed, Jan 18, 2017 at 12:14 AM, Paul Cercueil wrote: > All the drivers for the various hardware elements of the jz4740 SoC have > been modified to use the pinctrl framework for their pin configuration > needs. > As such, this platform code is now unused and can be deleted. > > Signed-off-by: Pa

Re: [PATCH v3 00/18] FSI device driver introduction

2017-01-19 Thread Greg KH
On Tue, Jan 17, 2017 at 04:00:41PM -0600, Christopher Bostic wrote: > On Tue, Jan 17, 2017 at 1:42 AM, Greg KH wrote: > > On Mon, Jan 16, 2017 at 03:22:48PM -0600, christopher.lee.bos...@gmail.com > > wrote: > >> From: Chris Bostic > > > > > > > > Only this, and patch 02/18 came through, did so

Re: [PATCH v20 13/17] acpi/arm64: Add GTDT table parse driver

2017-01-19 Thread Hanjun Guo
On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei This patch adds support for parsing arch timer info in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT

Re: [PATCH v5 0/4] usb: early: add support for early printk through USB3 debug port

2017-01-19 Thread Ingo Molnar
* Greg Kroah-Hartman wrote: > On Wed, Jan 18, 2017 at 02:20:30PM +0800, Lu Baolu wrote: > > Hi Greg, > > > > This patch series has been there for 2 months without > > further comments. Will you consider it for usb-next? > > I needed acks from the x86 maintainers before I could take those > pat

Re: [PATCH v5 0/4] usb: early: add support for early printk through USB3 debug port

2017-01-19 Thread Ingo Molnar
* Lu Baolu wrote: > xHCI debug capability (DbC) is an optional but standalone > functionality provided by an xHCI host controller. With DbC > hardware initialized, the system will present a debug device > through the USB3 debug port (normally the first USB3 port). > The debug device is fully com

[PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Valentin Rothberg
Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not supported anymore)") removed the Kconfig option SOC_EXYNOS4415. Thus, we are safe to remove the last reference in the Makefile. Signed-off-by: Valentin Rothberg --- Detected by using ./scripts/checkkconfigsymbols.py driver

Re: [PATCH v8 3/8] PWM: add pwm-stm32 DT bindings

2017-01-19 Thread Thierry Reding
On Wed, Jan 18, 2017 at 03:20:46PM +0100, Benjamin Gaignard wrote: > Define bindings for pwm-stm32 > > version 8: > - reword st,breakinput description. > > version 6: > - change st,breakinput parameter format to make it usuable on stm32f7 too. > > version 2: > - use parameters instead of compati

Re: [PATCH v5 0/4] usb: early: add support for early printk through USB3 debug port

2017-01-19 Thread Greg Kroah-Hartman
On Wed, Jan 18, 2017 at 02:20:30PM +0800, Lu Baolu wrote: > Hi Greg, > > This patch series has been there for 2 months without > further comments. Will you consider it for usb-next? I needed acks from the x86 maintainers before I could take those patches. Can you resend the series and hopefully

Re: [PATCH v5 01/13] lockdep: Refactor lookup_chain_cache()

2017-01-19 Thread Boqun Feng
On Wed, Jan 18, 2017 at 10:17:27PM +0900, Byungchul Park wrote: > Currently, lookup_chain_cache() provides both 'lookup' and 'add' > functionalities in a function. However, each is useful. So this > patch makes lookup_chain_cache() only do 'lookup' functionality and > makes add_chain_cahce() only d

Re: [PATCH 1/6] mm: introduce kv[mz]alloc helpers

2017-01-19 Thread John Hubbard
On 01/19/2017 12:45 AM, Michal Hocko wrote: On Thu 19-01-17 00:37:08, John Hubbard wrote: On 01/18/2017 12:21 AM, Michal Hocko wrote: On Tue 17-01-17 21:59:13, John Hubbard wrote: [...] * Reclaim modifiers - __GFP_NORETRY and __GFP_NOFAIL should not be passed in. * Passing in __GFP_REPEAT

[PATCH v5 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-19 Thread Nayna Jain
This patch implements the TPM 2.0 capability TPM_CAP_PCRS to retrieve the active PCR banks from the TPM. This is needed to enable extending all active banks as recommended by TPM 2.0 TCG Specification. Signed-off-by: Nayna Jain Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm.h | 4 +

Re: [PATCH 00/33] Input: Automated coccinelle cleanup

2017-01-19 Thread Guenter Roeck
On 01/18/2017 09:06 PM, Joe Perches wrote: On Wed, 2017-01-18 at 21:04 -0800, Guenter Roeck wrote: On 01/18/2017 05:42 PM, Joe Perches wrote: On Wed, 2017-01-18 at 09:46 -0800, Guenter Roeck wrote: The conversion was done automatically with coccinelle using several semantic patches. The semant

[PATCH v5 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2017-01-19 Thread Nayna Jain
The current TPM 2.0 device driver extends only the SHA1 PCR bank but the TCG Specification[1] recommends extending all active PCR banks, to prevent malicious users from setting unused PCR banks with fake measurements and quoting them. The existing in-kernel interface(tpm_pcr_extend()) expects only

[PATCH v5 0/2] enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-19 Thread Nayna Jain
IMA extends its hash measurements in the TPM PCRs, based on policy. The existing in-kernel TPM extend function extends only the SHA1 PCR bank. TPM 2.0 defines multiple PCR banks, to support different hash algorithms. The TCG TPM 2.0 Specification[1] recommends extending all active PCR banks to prev

Re: [PATCH v20 16/17] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2017-01-19 Thread Hanjun Guo
On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 35 --- 1 file chang

Re: [PATCH v8 4/8] PWM: add PWM driver for STM32 plaftorm

2017-01-19 Thread Thierry Reding
On Wed, Jan 18, 2017 at 03:20:47PM +0100, Benjamin Gaignard wrote: > This driver adds support for PWM driver on STM32 platform. > The SoC have multiple instances of the hardware IP and each > of them could have small differences: number of channels, > complementary output, auto reload register size

Re: [PATCH v2 02/26] treewide: Move dma_ops from struct dev_archdata into struct device

2017-01-19 Thread Greg Kroah-Hartman
On Thu, Jan 12, 2017 at 11:06:54AM -0800, Bart Van Assche wrote: > Some but not all architectures provide set_dma_ops(). Move dma_ops > from struct dev_archdata into struct device such that it becomes > possible on all architectures to configure dma_ops per device. > > Signed-off-by: Bart Van Assc

Re: [PATCH v4 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2017-01-19 Thread Nayna
On 01/18/2017 07:28 PM, Jarkko Sakkinen wrote: On Wed, Jan 18, 2017 at 03:44:50AM -0500, Nayna Jain wrote: The current TPM 2.0 device driver extends only the SHA1 PCR bank but the TCG Specification[1] recommends extending all active PCR banks, to prevent malicious users from setting unused PCR

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Krzysztof Kozlowski
On Thu, Jan 19, 2017 at 11:11 AM, Valentin Rothberg wrote: > Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not > supported anymore)") removed the Kconfig option SOC_EXYNOS4415. Thus, > we are safe to remove the last reference in the Makefile. > > Signed-off-by: Valentin Roth

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Krzysztof Kozlowski
On Thu, Jan 19, 2017 at 11:18 AM, Krzysztof Kozlowski wrote: > On Thu, Jan 19, 2017 at 11:11 AM, Valentin Rothberg > wrote: >> Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not >> supported anymore)") removed the Kconfig option SOC_EXYNOS4415. Thus, >> we are safe to remove

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Chanwoo Choi
Hi, On 2017년 01월 19일 18:11, Valentin Rothberg wrote: > Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not > supported anymore)") removed the Kconfig option SOC_EXYNOS4415. Thus, > we are safe to remove the last reference in the Makefile. > > Signed-off-by: Valentin Rothberg

Re: kvm: use-after-free in process_srcu

2017-01-19 Thread Paolo Bonzini
On 18/01/2017 23:15, Paul E. McKenney wrote: > On Wed, Jan 18, 2017 at 09:53:19AM +0100, Paolo Bonzini wrote: >> >> >> On 17/01/2017 21:34, Paul E. McKenney wrote: >>> Do any of your callback functions invoke call_srcu()? (Hey, I have to ask!) >> >> No, we only use synchronize_srcu and synchroni

Re: [PATCH V7 1/4] Documentation/devicetree/bindings: b850v3_lvds_dp

2017-01-19 Thread Peter Senna Tschudin
On Thu, Jan 19, 2017 at 10:17:45AM +0200, Laurent Pinchart wrote: > Hi Peter, > > On Thursday 19 Jan 2017 09:12:14 Peter Senna Tschudin wrote: > > On Wed, Jan 18, 2017 at 11:10:58PM +0200, Laurent Pinchart wrote: > > > On Monday 16 Jan 2017 09:37:11 Peter Senna Tschudin wrote: > > >> On Tue, Jan 1

Re: [PATCH v20 00/17] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-01-19 Thread Hanjun Guo
Hi Fuwei, On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Clean up printk() usage 2. Rename the type macros 3. Rename the PPI enum & enum values 4. Move the type macro and

Re: [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2017-01-19 Thread Greg KH
On Wed, Jan 18, 2017 at 01:58:28PM +0200, Mathias Nyman wrote: > On 12.01.2017 10:38, Roger Quadros wrote: > > Mathias, > > > > On 11/01/17 17:08, Alan Stern wrote: > > > On Wed, 11 Jan 2017, Mathias Nyman wrote: > > > > > > > On 17.11.2016 13:43, Sriram Dash wrote: > > > > > From: Arnd Bergmann

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Krzysztof Kozlowski
On Thu, Jan 19, 2017 at 11:25 AM, Valentin Rothberg wrote: > Hi Krzysztof, > > On 19/01/2017 10:20, Krzysztof Kozlowski wrote: >> On Thu, Jan 19, 2017 at 11:18 AM, Krzysztof Kozlowski >> wrote: >>> On Thu, Jan 19, 2017 at 11:11 AM, Valentin Rothberg >>> wrote: Commit 22dfab102cfa ("ARM: EX

Re: [PATCH 3/3] cpuidle/menu: add per cpu pm_qos_resume_latency consideration

2017-01-19 Thread Alex Shi
> That said, I have the feeling that is taking the wrong direction. Each time we > are entering idle, we check the latencies. Entering idle can be done thousand > of times per second. Wouldn't make sense to disable the states not fulfilling > the constraints at the moment the latencies are changed

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Chanwoo Choi
Dear all, On 2017년 01월 19일 18:14, Chanwoo Choi wrote: > Hi, > > On 2017년 01월 19일 18:11, Valentin Rothberg wrote: >> Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not >> supported anymore)") removed the Kconfig option SOC_EXYNOS4415. Thus, >> we are safe to remove the last r

Re: [PATCH] procfs: change the owner of non-dumpable and writeable files

2017-01-19 Thread Michal Hocko
Cc Eric On Wed 18-01-17 15:01:59, Aleksa Sarai wrote: > In order to protect against ptrace(2) and similar attacks on container > runtimes when they join namespaces, many runtimes set mm->dumpable to > SUID_DUMP_DISABLE. However, doing this means that attempting to set up > an unprivileged user nam

[PATCH] VME: add again remove entry point

2017-01-19 Thread Stefano Babic
Commit 050c3d52cc7 dropped the remove entry point. However, vme_bus_remove() is called when a VME device is removed from the bus and not when the bus is removed and it calls the VME device driver's cleanup function. Without this function, the remove() in VME device driver is never called and VME de

Re: [PATCH v3] EDAC: expose per-dimm error counts in sysfs

2017-01-19 Thread Borislav Petkov
On Thu, Jan 19, 2017 at 08:56:23AM +, Aaron Miller wrote: > Did this ever get picked up? It is now. Thanks for the reminder! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH v4 3/3] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2017-01-19 Thread Ard Biesheuvel
On 19 January 2017 at 00:15, Linus Torvalds wrote: > On Wed, Jan 18, 2017 at 2:37 PM, Ard Biesheuvel > wrote: >> >> For a ballpark number of 10,000 CRCs in the core kernel, this would >> increase the size of the image by 40 KB for 32-bit architectures (and >> if saving 40 KB is essential, chances

[PATCH] net/mlx5e: Remove unused variable

2017-01-19 Thread Arnd Bergmann
A cleanup removed the only user of this variable mlx5/core/en_ethtool.c: In function 'mlx5e_set_channels': mlx5/core/en_ethtool.c:546:6: error: unused variable 'ncv' [-Werror=unused-variable] Let's remove the declaration as well. Fixes: 639e9e94160e ("net/mlx5e: Remove unnecessary checks when s

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Valentin Rothberg
Hi Krzysztof, On 19/01/2017 10:20, Krzysztof Kozlowski wrote: > On Thu, Jan 19, 2017 at 11:18 AM, Krzysztof Kozlowski wrote: >> On Thu, Jan 19, 2017 at 11:11 AM, Valentin Rothberg >> wrote: >>> Commit 22dfab102cfa ("ARM: EXYNOS: Remove Exynos4415 arch code (SoC not >>> supported anymore)") remov

Re: [linux-sunxi] [PATCH 1/2] drivers: pinctrl: add driver for Allwinner H5 SoC

2017-01-19 Thread Linus Walleij
On Wed, Jan 18, 2017 at 10:44 AM, Andre Przywara wrote: > Any future SoCs could then just use that compatible and would describe > the SoC details in the DT, like it's meant to be and like we do already, > but extended by putting the mux value in there as well. > So the only kernel contribution w

Re: [PATCH] tools: usb usbip - update README USB/IP driver location

2017-01-19 Thread Greg KH
On Fri, Jan 13, 2017 at 04:38:32PM -0700, Shuah Khan wrote: > Update USB/IP driver location in README. > > Signed-off-by: Shuah Khan > Reviewed-by: Krzysztof Opasiak > --- > tools/usb/usbip/README | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/usb/usbip/README b

Business Proposal

2017-01-19 Thread Quatif Group of Companies
-- Dear Friend, I would like to discuss a very important issue with you. I am writing to find out if this is your valid email. Please, let me know if this email is valid Kind regards Adrien Saif Attorney to Quatif Group of Companies

Re: [BISSECTED]: BUG: usb: dwc3: usb ports not working anymore on odroid-XU4

2017-01-19 Thread Richard Genoud
On 19/01/2017 09:03, Felipe Balbi wrote: > > Hi, > > Richard Genoud writes: >> Hi, >> Since commit c499ff71ff2a2 ("usb: dwc3: core: re-factor init and exit paths") >> (merged in 4.8), the usb ports on odroid-XU4 don't work anymore. >> >> [ Actually, it's commit 2164a476205ccc ("usb: dwc3: set SU

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-19 Thread Ingo Molnar
* Lu Baolu wrote: > xHCI debug capability (DbC) is an optional but standalone > functionality provided by an xHCI host controller. Software > learns this capability by walking through the extended > capability list of the host. xHCI specification describes > DbC in section 7.6. > > This patch i

Re: [PATCH v5 2/4] x86: add support for earlyprintk via USB3 debug port

2017-01-19 Thread Ingo Molnar
* Lu Baolu wrote: > index 8a12199..c4031b9 100644 > --- a/arch/x86/kernel/early_printk.c > +++ b/arch/x86/kernel/early_printk.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -381,6 +382,10 @@ static int __init setup_early_prin

Re: [PATCH] ARM: Exynos4415: remove dead build rule

2017-01-19 Thread Sylwester Nawrocki
On 01/19/2017 10:28 AM, Krzysztof Kozlowski wrote: > Is your tree included in linux-next? I see my patch here: > https://git.linuxtv.org/snawrocki/samsung.git/log/?h=for-v4.11/clk/next > so maybe something in linux-next is missing? No, it's not included. I will be sending a pull request to the clk

[PATCH net-next] net/sched: cls_flower: reduce fl_change stack size

2017-01-19 Thread Arnd Bergmann
The new ARP support has pushed the stack size over the edge on ARM, as there are two large objects on the stack in this function (mask and tb) and both have now grown a bit more: net/sched/cls_flower.c: In function 'fl_change': net/sched/cls_flower.c:928:1: error: the frame size of 1072 bytes is l

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-19 Thread Fu Wei
Hi Hanjun, On 19 January 2017 at 16:02, Hanjun Guo wrote: > Hi Fuwei, > > One comments below. > > > On 2017/1/18 21:25, fu@linaro.org wrote: >> >> From: Fu Wei >> >> The counter frequency detection call(arch_timer_detect_rate) combines two >> ways to get counter frequency: system coprocessor

Re: [PATCH 8/8] Revert "ext4: fix wrong gfp type under transaction"

2017-01-19 Thread Jan Kara
On Thu 19-01-17 09:39:56, Michal Hocko wrote: > On Tue 17-01-17 18:29:25, Jan Kara wrote: > > On Tue 17-01-17 17:16:19, Michal Hocko wrote: > > > > > But before going to play with that I am really wondering whether we > > > > > need > > > > > all this with no journal at all. AFAIU what Jack told m

Re: [PATCH] net/mlx5e: Remove unused variable

2017-01-19 Thread Tariq Toukan
Hi Arnd, On 19/01/2017 11:33 AM, Arnd Bergmann wrote: A cleanup removed the only user of this variable mlx5/core/en_ethtool.c: In function 'mlx5e_set_channels': mlx5/core/en_ethtool.c:546:6: error: unused variable 'ncv' [-Werror=unused-variable] Let's remove the declaration as well. Fixes: 6

Re: [PATCH v3 1/5] staging: fbtft: convert fbtft_reset() to be non-atomic

2017-01-19 Thread Greg Kroah-Hartman
On Tue, Jan 03, 2017 at 08:29:45PM +0200, Andy Shevchenko wrote: > First of all, fbtft in current state doesn't allow to override GPIOs to be > optional, like "reset" one. It might be a bug somewhere, but rather out of > scope of this fix. > > Second, not all GPIOs available on the board would be

[PATCH 2/3] pinctrl: Allow configuration of pins from gpiolib based drivers

2017-01-19 Thread Mika Westerberg
When a GPIO driver is backed by a pinctrl driver the GPIO driver sometimes needs to call the pinctrl driver to configure certain things, like whether the pin is used as input or output. In addition to this there are other configurations applicable to GPIOs such as setting debounce time of the GPIO.

Re: mm, vmscan: commit makes PAE kernel crash nightly (bisected)

2017-01-19 Thread Trevor Cordes
On 2017-01-17 Michal Hocko wrote: > On Tue 17-01-17 14:21:14, Mel Gorman wrote: > > On Tue, Jan 17, 2017 at 02:52:28PM +0100, Michal Hocko wrote: > > > On Mon 16-01-17 11:09:34, Mel Gorman wrote: > > > [...] > > > > diff --git a/mm/vmscan.c b/mm/vmscan.c > > > > index 532a2a750952..46aac487b89a

Re: [PATCH] drivers: staging: Fix "space required after that ','" errors

2017-01-19 Thread Greg KH
On Tue, Jan 17, 2017 at 10:56:31PM +0530, simran singhal wrote: > Fix checkpatch.pl "space required after that ','" errors > > Signed-off-by: simran singhal > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c > b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c > index

[PATCH 3/3] pinctrl / gpio: Introduce .set_config() callback for GPIO chips

2017-01-19 Thread Mika Westerberg
Currently we already have two pin configuration related callbacks available for GPIO chips .set_single_ended() and .set_debounce(). In future we expect to have even more, which does not scale well if we need to add yet another callback to the GPIO chip structure for each possible configuration para

[PATCH 1/3] pinctrl: Widen the generic pinconf argument from 16 to 24 bits

2017-01-19 Thread Mika Westerberg
The current pinconf packed format allows only 16-bit argument limiting the maximum value 65535. For most types this is enough. However, debounce time can be in range of hundreths of milliseconds in case of mechanical switches so we cannot represent the worst case using the current format. In order

Re: [PATCH v5 4/4] usb: doc: add document for USB3 debug port usage

2017-01-19 Thread Ingo Molnar
* Lu Baolu wrote: > Add Documentation/usb/usb3-debug-port.rst. This document includes > the user guide for USB3 debug port. > > Cc: linux-...@vger.kernel.org > Signed-off-by: Lu Baolu > --- > Documentation/usb/usb3-debug-port.rst | 95 > +++ > 1 file changed,

Re: [PATCH] MIPS: KVM: Return directly after a failed copy_from_user() in kvm_arch_vcpu_ioctl()

2017-01-19 Thread Paolo Bonzini
On 18/01/2017 20:52, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 18 Jan 2017 20:43:41 +0100 > > Return directly after a call of the function "copy_from_user" failed > in a case block. > > Signed-off-by: Markus Elfring The "out" label is now unused, so you should remove it.

Re: [PATCH 4/6] arm64: dts: mt8173: add reference clock for usb

2017-01-19 Thread Greg Kroah-Hartman
On Wed, Jan 18, 2017 at 02:08:25PM +0800, Chunfeng Yun wrote: > add 26M reference clock for ssusb and xhci nodes > > Signed-off-by: Chunfeng Yun > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi |6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) This patch doesn't apply to my tree

[PATCH 0/3] pinctrl / gpio: Allow GPIO chips to use generic pinconfig

2017-01-19 Thread Mika Westerberg
This series makes it possible to configure pins from GPIO chip drivers by implementing a new callback .set_config(). This callback replaces the existing .set_single_ended() and .set_debounce() simply because adding new callbacks for each possible configuration type does not scale. So instead we re-

Re: [PATCH 1/2] perf symbols: use .gnu_debuglink as gdb does

2017-01-19 Thread Uwe Kleine-König
On Thu, Jul 21, 2016 at 11:48:31AM +0200, Uwe Kleine-König wrote: > As documented in the comment gdb looks for debug files not only relative > to the binary's directory, but also in .debug and /usr/lib/debug/. > Let perf do the same thing. > > Signed-off-by: Uwe Kleine-König ping. Best regards

Re: [PATCH] drivers: staging: rtl8188eu: include: statements using pointers enclosed in parantheses

2017-01-19 Thread Greg KH
On Wed, Jan 18, 2017 at 07:28:04AM +0530, Kartikey Singh wrote: > Macros with complex values enclosed in parentheses That does not make sense to me, does it to you? Please write changelogs that can be understood. thanks, greg k-h

Re: [PATCH net-next] net/sched: cls_flower: reduce fl_change stack size

2017-01-19 Thread Jiri Pirko
Thu, Jan 19, 2017 at 10:45:31AM CET, a...@arndb.de wrote: >The new ARP support has pushed the stack size over the edge on ARM, >as there are two large objects on the stack in this function (mask >and tb) and both have now grown a bit more: > >net/sched/cls_flower.c: In function 'fl_change': >net/sc

Re: [PATCH net-next v4] bridge: multicast to unicast

2017-01-19 Thread Nikolay Aleksandrov
On 19/01/17 03:45, Linus Lüssing wrote: > From: Felix Fietkau > > Implements an optional, per bridge port flag and feature to deliver > multicast packets to any host on the according port via unicast > individually. This is done by copying the packet per host and > changing the multicast destinat

[PATCH -improve] tools lib bpf: Fix map offsets in relocation

2017-01-19 Thread Wang Nan
From: Joe Stringer Commit 4708bbda5cb2 ("tools lib bpf: Fix maps resolution") attempted to fix map resolution by identifying the number of symbols that point to maps, and using this number to resolve each of the maps. However, during relocation the original definition of the map size was still i

  1   2   3   4   5   6   7   8   9   10   >