[PATCH 01/15] kernel: convert sighand_struct.count from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 04/15] kernel: convert task_struct.usage from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 06/15] kernel: convert perf_event_context.refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 03/15] kernel: convert user_struct.__count from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 02/15] kernel: convert signal_struct.sigcnt from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 07/15] kernel: convert ring_buffer.refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 10/15] kernel: convert nsproxy.count from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 09/15] kernel: convert uprobe.ref from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 12/15] kernel: convert cred.usage from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

Re: [PATCH] mfd: rtsx: make arrays depth and cd_mask static const

2017-07-17 Thread Lee Jones
Please start the commit subject description with an uppercase char. > From: Colin Ian King This is odd. How are you sending this patch Colin? > Don't populate the arrays depath and cd_mask on the stack but make > them static const. Makes the object code smaller: > >textdata bss

[PATCH 15/15] kernel: convert kcov.refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 14/15] kernel: convert futex_pi_state.refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 13/15] sched: convert numa_group.refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH] perf/x86/intel/cstate: Enable C-state residency events for Apollo Lake

2017-07-17 Thread Harry Pan
Goldmont microarchitecture supports C1/C3/C6, PC2/PC3/PC6/PC10 state residency counters, the patch enables them for Apollo Lake platform. The MSR information is based on Intel Software Developers' Manual, Vol. 4, Order No. 335592, Table 2-6 and 2-12. Signed-off-by: Harry Pan --- arch/x86/events

[PATCH 11/15] kernel: convert group_info.usage from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

[PATCH 08/15] kernel: convert ring_buffer.aux_refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

Re: [PATCHv4 1/4] mfd: da9052: fix manual ADC read after timed out read

2017-07-17 Thread Lee Jones
On Fri, 30 Jun 2017, Sebastian Reichel wrote: > It is possible that under heavy system load, the counter in the completion > struct, used for waiting for end of AD conversion, gets incremented twice. > To make sure the driver recovers from this situation, the completion struct > should be reinitia

Re: [PATCHv4 3/4] dt-bindings: mfd: da9052: support TSI as ADC

2017-07-17 Thread Lee Jones
On Fri, 30 Jun 2017, Sebastian Reichel wrote: > DA9052 allows using the touchscreen input pins as general purpose > analogue input pin by wiring analogue inputs to X+, X-, Y+ and Y- > and providing a reference voltage at TSIREF pin. > > Signed-off-by: Sebastian Reichel > --- > Documentation/dev

[PATCH 05/15] kernel: convert task_struct.stack_refcount from atomic_t to refcount_t

2017-07-17 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Reviewed-by: David Windsor Reviewed-by: Hans Lilje

Re: [PATCH] mfd: rtsx: make arrays depth and cd_mask static const

2017-07-17 Thread Colin Ian King
On 17/07/17 11:46, Lee Jones wrote: > Please start the commit subject description with an uppercase char. > >> From: Colin Ian King > > This is odd. How are you sending this patch Colin? git send-patch. Hrm. I'll check it out for next time. Colin > >> Don't populate the arrays depath and cd

Re: [PATCH 1/2] tee.txt: standardize document format

2017-07-17 Thread Jens Wiklander
On Wed, Jul 12, 2017 at 10:35:04AM -0300, Mauro Carvalho Chehab wrote: > Each text file under Documentation follows a different format. Some > doesn't even have titles! > > Change its representation to follow the adopted standard, > using ReST markups for it to be parseable by Sphinx: > > - adjus

Re: [PATCH 0/5] Add a script to check for Sphinx install requirements

2017-07-17 Thread Mauro Carvalho Chehab
Em Mon, 17 Jul 2017 07:09:46 -0300 Mauro Carvalho Chehab escreveu: > Em Mon, 17 Jul 2017 06:33:03 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Mon, 17 Jul 2017 10:15:26 +0200 > > Markus Heiser escreveu: > > > > > > Am 17.07.2017 um 00:08 schrieb Mauro Carvalho Chehab > > > > : > > > >

Re: [PATCH 2/2] mfd: intel_soc_pmic: Differentiate between Bay and Cherry Trail CRC variants

2017-07-17 Thread Lee Jones
On Sat, 01 Jul 2017, Hans de Goede wrote: > Both Bay and Cherry Trail devices may be used together with a Crystal Cove > PMIC. Each platform has its own variant of the PMIC, which both use the > same ACPI HID, but they are not 100% compatible. > > This commits makes the intel_soc_pmic_core code c

Re: [PATCH 1/2] mfd: intel_soc_pmic: Export separate mfd-cell configs for BYT and CHT

2017-07-17 Thread Lee Jones
On Sat, 01 Jul 2017, Hans de Goede wrote: > Both Bay and Cherry Trail devices may be used together with a Crystal Cove > PMIC. Each platform has its own variant of the PMIC, which both use the > same ACPI HID, but they are not 100% compatible. > > Looking at the android x86 kernel sources where m

Re: [PATCH 1/2] thermal: int340x: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
Hi Andy, On Monday 17 July 2017 04:11 PM, Andy Shevchenko wrote: On Mon, 2017-07-17 at 16:04 +0530, Arvind Yadav wrote: attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const struct

Re: [PATCH 9/9] mfd: max8925-i2c: Drop unnecessary static

2017-07-17 Thread Lee Jones
On Thu, 04 May 2017, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any use, on every possible execution path through the function. The static > has no benefit, and dropping it reduces the code size. > > The semantic patch that fixes this problem

Re: [PATCH 5/9] mfd: Drop unnecessary static

2017-07-17 Thread Lee Jones
On Thu, 04 May 2017, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any use, on every possible execution path through the function. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @bad exists

[RFC PATCH] ARM: dts: stm32: change pinctrl bindings definition

2017-07-17 Thread Alexandre TORGUE
Initially each pin was declared in "include/dt-bindings/stm32f429-pinfunc.h" and each definition contained SOC names (ex: STM32F429_PA9_FUNC_USART1_TX). Since this approach was approved, the number of supported MCU has increased (STM32F429/STM32F469/STM32f746/STM32H743). To avoid to add a new file

[RFC PATCH] ARM: dts: stm32: change pinctrl bindings definition

2017-07-17 Thread Alexandre TORGUE
blabla Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index a8113dc..4bb2b4f 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -47,7 +47,7 @@ #include "skeleton.dtsi" #include "armv7-m.dts

[RESEND PATCH v1] i2c: mediatek: send i2c master code at 400k

2017-07-17 Thread Jun Gao
From: Jun Gao The speed of sending i2c master code in high-speed mode depends on source clock, clock-div and TIMING register. The source clock and clock-div of different SoC are not all the same. In order to send i2c master code at 400k in high-speed mode, a appropriate value should be set to TIM

Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation

2017-07-17 Thread Gerd Hoffmann
Hi, > No need of flag here. If vGPU driver is not loaded in the guest, > there > is no surface being managed by vGPU, in that case this size will be > zero. Ok, we certainly have the same situation with intel. When the guest driver is not loaded (yet) there is no valid surface. We should clea

Re: [PATCH] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-07-17 Thread Lee Jones
On Fri, 23 Jun 2017, Hans de Goede wrote: > The PMIC provides ACPI OpRegions which must be available for other > drivers' PS0 / PS3 methods early-on as such it must be builtin as the > Kconfig help text already states. > > Somehow its Kconfig option ended up being a tristate though, this fixes >

Re: [PATCH] printk: modify console_unlock with printk-safe macros

2017-07-17 Thread pierre kuo
hi Sergey and Andy: > On (07/15/17 18:36), Pierre Kuo wrote: > [..] >> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c >> index fc47863..21557cc 100644 >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -2194,8 +2194,7 @@ void console_unlock(void) >> si

Re: [PATCH v2] kbuild: trivial cleanups on the comments

2017-07-17 Thread Masahiro Yamada
Hi Cao, 2017-07-16 19:12 GMT+09:00 Cao jin : > index 61f87a9..f0a4ada 100644 > --- a/scripts/Kbuild.include > +++ b/scripts/Kbuild.include > @@ -85,8 +85,8 @@ TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword > $(KBUILD_EXTMOD))/) > > # try-run > # Usage: option = $(call try-run, $(CC)...-o "$$TMP",

Re: [RFC PATCH] ARM: dts: stm32: change pinctrl bindings definition

2017-07-17 Thread Arnd Bergmann
On Mon, Jul 17, 2017 at 1:00 PM, Alexandre TORGUE wrote: > blabla > > Signed-off-by: Alexandre TORGUE You may want to provide a little more detail here ;-) Arnd

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-17 Thread Quentin Schulz
Hi all, On 17/07/2017 11:53, Quentin Schulz wrote: > According to their datasheets, the AXP221, AXP223, AXP288, AXP803, > AXP809 and AXP813 PEK have different values for startup time bits from > the AXP20X PEK (which are currently used for all the aforementioned PMICs). > > This patch series adds

Re: Droid 4 boot failure due to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events)

2017-07-17 Thread Sebastian Reichel
[dropping people from Cc] Hi, On Mon, Jul 17, 2017 at 03:19:28AM -0700, Tony Lindgren wrote: > * Sebastian Reichel [170717 02:52]: > > On Sun, Jul 16, 2017 at 10:59:42PM -0700, Tony Lindgren wrote: > > > Sebastian, for me droid 4 boots just fine with v4.13-rc1 + > > > 19d39a3810e if that helps.

Re: [PATCH 1/3] PCI: dwc: Handle host_init failures

2017-07-17 Thread Joao Pinto
Hi Bjorn Andersson, Às 7:39 AM de 7/16/2017, Bjorn Andersson escreveu: > In several dwc based drivers host_init can fail, so make sure to > propagate and handle this to avoid continuing operation of a driver or > hardware in an invalid state. > > Signed-off-by: Bjorn Andersson > --- > drivers/

Re: [RFC PATCH] ARM: dts: stm32: change pinctrl bindings definition

2017-07-17 Thread Alexandre Torgue
Hi On 07/17/2017 01:15 PM, Arnd Bergmann wrote: On Mon, Jul 17, 2017 at 1:00 PM, Alexandre TORGUE wrote: blabla Signed-off-by: Alexandre TORGUE You may want to provide a little more detail here ;-) Oh!! Sorry, I changed it but no sent the good commit :). Please translate blablable by:

Re: [PATCH] ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check()

2017-07-17 Thread Alexander Potapenko
On Mon, Jul 17, 2017 at 12:35 PM, Alexander Potapenko wrote: > KMSAN reported use of uninitialized memory in skb_set_hash_from_sk(), > which originated from the TCP request socket created in > cookie_v6_check(): > > == > BUG: KMSAN:

Re: [PATCHv4 3/4] dt-bindings: mfd: da9052: support TSI as ADC

2017-07-17 Thread Sebastian Reichel
Hi Lee, On Mon, Jul 17, 2017 at 11:49:45AM +0100, Lee Jones wrote: > On Fri, 30 Jun 2017, Sebastian Reichel wrote: > > > DA9052 allows using the touchscreen input pins as general purpose > > analogue input pin by wiring analogue inputs to X+, X-, Y+ and Y- > > and providing a reference voltage at

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-17 Thread Maxime Ripard
Hi, On Mon, Jul 17, 2017 at 11:53:06AM +0200, Quentin Schulz wrote: > The AXP221 has different values for startup time bits from the AXP20X. > > This patch introduces a different platform_device_id to the driver and > adds the necessary code to handle the different platform_device_ids. > > Signe

Re: [netfilter-core] [PATCH v2] netfilter: nfnetlink: Improve input length sanitization in nfnetlink_rcv

2017-07-17 Thread Pablo Neira Ayuso
On Thu, Jun 29, 2017 at 06:22:40PM +0200, Pablo Neira Ayuso wrote: > On Tue, Jun 27, 2017 at 07:05:27PM +0200, Pablo Neira Ayuso wrote: > > On Tue, Jun 27, 2017 at 05:58:25PM +0200, Pablo Neira Ayuso wrote: > > > On Wed, Jun 07, 2017 at 03:50:38PM +0200, Mateusz Jurczyk wrote: > > > > Verify that t

Re: [Patch v5 05/12] [media] videodev2.h: Add v4l2 definition for HEVC

2017-07-17 Thread Smitha T Murthy
On Fri, 2017-07-07 at 17:56 +0300, Stanimir Varbanov wrote: > Hi Smitha, > > On 06/19/2017 08:10 AM, Smitha T Murthy wrote: > > Add V4L2 definition for HEVC compressed format > > > > Signed-off-by: Smitha T Murthy > > Reviewed-by: Andrzej Hajda > > --- > > include/uapi/linux/videodev2.h | 1 +

Re: [Customers.Eckelmann] [PATCH] serial: imx: disable DMA for RS-485 on i.MX6 SMP

2017-07-17 Thread Fabio Estevam
Hi Gavin, On Fri, Jun 23, 2017 at 6:26 AM, Schenk, Gavin wrote: > Uwe Kleine-König had the idea to disable DMA on the i.MX6dl based platform > via dts and this is our current workaround. Please test Ian's patch: http://marc.info/?l=linux-serial&m=150005865213531&w=2 It should fix this DMA pro

Re: [PATCH] perf/x86/intel: Fix debug_store reset field for freq events

2017-07-17 Thread Jiri Olsa
On Fri, Jul 14, 2017 at 10:22:49AM -0700, Andi Kleen wrote: > Jiri Olsa writes: > > > > Setting the reset field to 0 for freq events. > > Looks good to me. > > Reviewed-by: Andi Kleen > > BTW I suspect there's a related bug that > > perf record -e '{cycles:pp,branches}:S' .. > > would enable

[PATCH] sphinx-pre-install: check for the need of graphviz-gd

2017-07-17 Thread Mauro Carvalho Chehab
On newer versions of graphviz, it is needed to install a separate package for PDF support. Signed-off-by: Mauro Carvalho Chehab --- This patch depends on a previous patch series I sent yesterday. This, together with the other pending patches are available at: https://git.linuxtv.org/mc

Re: [PATCH v4 0/3] some fixups for MediaTek cpufreq driver

2017-07-17 Thread Rafael J. Wysocki
On Monday, July 17, 2017 01:05:43 PM Viresh Kumar wrote: > On 17-07-17, 14:16, Sean Wang wrote: > > Hi, Viresh > > > > I missed to add Acks from Rob for patch 2 and 3 since we sent out almost > > at the same time. Do I need to resend again for this or the series is > > okay for you? > > Looks lik

Re: [Patch v5 12/12] Documention: v4l: Documentation for HEVC CIDs

2017-07-17 Thread Smitha T Murthy
On Fri, 2017-07-07 at 17:59 +0300, Stanimir Varbanov wrote: > Hi, > > On 06/19/2017 08:10 AM, Smitha T Murthy wrote: > > Added V4l2 controls for HEVC encoder > > > > Signed-off-by: Smitha T Murthy > > --- > > Documentation/media/uapi/v4l/extended-controls.rst | 364 > > + >

[PATCH v2] Input: adxl34x - fix gcc-7 -Wint-in-bool-context warning

2017-07-17 Thread Arnd Bergmann
FIFO_MODE is an macro expression with a '<<' operator, which gcc points out could be misread as a '<': drivers/input/misc/adxl34x.c: In function 'adxl34x_probe': drivers/input/misc/adxl34x.c:799:36: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context] This converts th

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-17 Thread Sricharan R
Hi, On 7/15/2017 1:09 AM, Rob Clark wrote: > On Fri, Jul 14, 2017 at 3:36 PM, Will Deacon wrote: >> On Fri, Jul 14, 2017 at 03:34:42PM -0400, Rob Clark wrote: >>> On Fri, Jul 14, 2017 at 3:01 PM, Will Deacon wrote: On Fri, Jul 14, 2017 at 02:25:45PM -0400, Rob Clark wrote: > On Fri, Jul

Re: [PATCH 4/6] ARM: vexpress_defconfig: Cleanup from non-existing options

2017-07-17 Thread Liviu Dudau
On Mon, Jul 17, 2017 at 07:49:54AM +0200, Krzysztof Kozlowski wrote: > ARCH_VEXPRESS_CA9X4 is gone since commit 81cc3f868d30 ("ARM: vexpress: > Remove non-DT code"). > > Signed-off-by: Krzysztof Kozlowski Acked-by: Liviu Dudau Thanks for the cleanup! Best regards, Liviu > --- > arch/arm/con

Re: Droid 4 boot failure due to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events)

2017-07-17 Thread Sebastian Reichel
Hi, On Mon, Jul 17, 2017 at 01:17:13PM +0200, Sebastian Reichel wrote: > [dropping people from Cc] > > Hi, > > On Mon, Jul 17, 2017 at 03:19:28AM -0700, Tony Lindgren wrote: > > * Sebastian Reichel [170717 02:52]: > > > On Sun, Jul 16, 2017 at 10:59:42PM -0700, Tony Lindgren wrote: > > > > Seba

Re: [PATCH] Documentation: dt: chosen property for kaslr-seed

2017-07-17 Thread Mark Rutland
On Sun, Jul 16, 2017 at 05:42:25PM +0100, Ard Biesheuvel wrote: > On 16 July 2017 at 03:13, Kees Cook wrote: > > On Sat, Jul 15, 2017 at 5:42 AM, Ard Biesheuvel > > wrote: > >> (+ Mark, Will, Catalin) > >> > >> On 15 July 2017 at 01:38, Kees Cook wrote: > >>> Document then /chosen/kaslr-seed pro

Re: What differences and relations between SVM, HSA, HMM and Unified Memory?

2017-07-17 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/6/12 19:37, Jean-Philippe Brucker wrote: > Hello, > > On 10/06/17 05:06, Wuzongyong (Cordius Wu, Euler Dept) wrote: >> Hi, >> >> Could someone explain differences and relations between the SVM(Shared >> Virtual Memory, by Intel), HSA(Heterogeneous System Architecture, by

Re: [PATCH v2 0/5] ACPI / boot: Few amendments

2017-07-17 Thread Rafael J. Wysocki
On Monday, July 17, 2017 01:23:59 PM Andy Shevchenko wrote: > This series does few amendments to architectural ACPI code related to > boot, in particularly to arch/x86/kernel/acpi/boot.c. > > First two patches are amendments to satisfy compiler and static analyzer > (the order is changed from firs

Re: [RFC V2 1/6] cpufreq: Replace "max_transition_latency" with "dynamic_switching"

2017-07-17 Thread Viresh Kumar
On 15-07-17, 14:26, Rafael J. Wysocki wrote: > On Saturday, July 15, 2017 07:08:28 AM Dominik Brodowski wrote: > > Exactly. But lets take a quick look at the drivers ussing CPUFREQ_ETERNAL: > > > > Using CPUFREQ_ETERNAL, as policy-setting drivers: > > > > - intel_pstate.c - for the intel_pstate

Re: [PATCH] mfd: intel_soc_pmic_crc: Uniquify device name

2017-07-17 Thread Lee Jones
The commit log should not be empty. Please provide information as to why this change is required, etc. > --- > drivers/mfd/intel_soc_pmic_crc.c | 2 +- One of the Intel guys should take a look at this too. > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/intel_soc_

Re: [PATCH 2/2] usb: host: pci_quirks: Force hard reset of Renesas uPD72020x USB controller

2017-07-17 Thread Mathias Nyman
On 10.07.2017 18:52, Marc Zyngier wrote: The Renesas uPD72020x XHCI controller seems to suffer from a really annoying bug, where it may retain some of its DMA programming across a XHCI reset, and despite the driver correctly programming new DMA addresses. This is visible if the device has been us

Re: [PATCH 04/22] scsi: fusion: fix string overflow warning

2017-07-17 Thread Arnd Bergmann
On Mon, Jul 17, 2017 at 11:17 AM, David Laight wrote: > From: Arnd Bergmann >> Sent: 14 July 2017 13:07 >> gcc points out a theorerical string overflow: >> >> drivers/message/fusion/mptbase.c: In function 'mpt_detach': >> drivers/message/fusion/mptbase.c:2103:17: error: '%s' directive writing up

[PATCH] [v2] scsi: fusion: fix string overflow warning

2017-07-17 Thread Arnd Bergmann
gcc points out a theorerical string overflow: drivers/message/fusion/mptbase.c: In function 'mpt_detach': drivers/message/fusion/mptbase.c:2103:17: error: '%s' directive writing up to 31 bytes into a region of size 28 [-Werror=format-overflow=] sprintf(pname, MPT_PROCFS_MPTBASEDIR "/%s/summary",

[PATCH 1/7] dt-bindings: phy: qmp: Add output-clock-names

2017-07-17 Thread Varadarajan Narayanan
The phy outputs a clock that will act as the parent for the phy's pipe clock. Add the name of this clock to the lane's DT node. Signed-off-by: Varadarajan Narayanan --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/dev

[PATCH 0/7] Add support for IPQ8074 PCIe phy and controller

2017-07-17 Thread Varadarajan Narayanan
Add definitions required to enable QMP phy support for IPQ8074. Add support for the IPQ8074 PCIe controller. IPQ8074 supports Gen 1/2, one lane, two PCIe root complex with support for MSI and legacy interrupts, and it conforms to PCI Express Base 2.1 specification. Varadarajan Narayanan (7): d

[PATCH 2/7] dt-bindings: phy: qmp: Add support for QMP phy in IPQ8074

2017-07-17 Thread Varadarajan Narayanan
IPQ8074 uses QMP phy controller that provides support to PCIe and USB. Adding dt binding information for the same. Signed-off-by: Varadarajan Narayanan --- .../devicetree/bindings/phy/qcom-qmp-phy.txt | 28 ++ 1 file changed, 28 insertions(+) diff --git a/Documentation

[PATCH 6/7] dt-bindings: pci: qcom: Add support for IPQ8074

2017-07-17 Thread Varadarajan Narayanan
Add support for the IPQ8074 PCIe controller. IPQ8074 supports Gen 1/2, one lane, two PCIe root complex with support for MSI and legacy interrupts, and it conforms to PCI Express Base 2.1 specification. Signed-off-by: Varadarajan Narayanan --- .../devicetree/bindings/pci/qcom,pcie.txt |

[PATCH 7/7] PCI: dwc: qcom: Add support for IPQ8074 PCIe controller

2017-07-17 Thread Varadarajan Narayanan
Add support for the IPQ8074 PCIe controller. IPQ8074 supports Gen 1/2, one lane, two PCIe root complex with support for MSI and legacy interrupts, and it conforms to PCI Express Base 2.1 specification. The core init is the similar to the existing SoC, however the clocks and reset lines differ. S

[PATCH 3/7] phy: qcom-qmp: Fix phy pipe clock name

2017-07-17 Thread Varadarajan Narayanan
Presently, the phy pipe clock's name is assumed to be either usb3_phy_pipe_clk_src or pcie_XX_pipe_clk_src (where XX is the phy lane's number). However, this will not work if an SoC has more than one instance of the phy. Hence, instead of assuming the name of the clock, fetch it from the DT. Signe

[PATCH 5/7] phy: qcom-qmp: Add support for IPQ8074

2017-07-17 Thread Varadarajan Narayanan
Add definitions required to enable QMP phy support for IPQ8074. Signed-off-by: smuthayy Signed-off-by: Varadarajan Narayanan --- drivers/phy/qualcomm/phy-qcom-qmp.c | 135 1 file changed, 135 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b

[PATCH 4/7] phy: qcom-qmp: Handle unavailable registers

2017-07-17 Thread Varadarajan Narayanan
In some implementations of the QMP phy, some registers might not be present. Provide a way identify such registers and not access those registers. Signed-off-by: Varadarajan Narayanan --- drivers/phy/qualcomm/phy-qcom-qmp.c | 23 ++- 1 file changed, 14 insertions(+), 9 deleti

Re: [PATCH] mfd: max8925-i2c: remove unnecessary static in max8925_probe()

2017-07-17 Thread Lee Jones
On Tue, 04 Jul 2017, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable _chip_. > Such variable is initialized before being used, > on every execution path throughout the function. > The static has no benefit and, removing it reduces > the code size. > > This issue was detec

Re: [PATCH 2/2] iio: adc: Allow setting Shunt Voltage PGA gain and Bus Voltage range

2017-07-17 Thread Jonathan Cameron
On Mon, 17 Jul 2017 00:08:32 +0200 Stefan Bruens wrote: > On Sonntag, 30. April 2017 18:19:39 CEST Jonathan Cameron wrote: > > On 29/04/17 21:37, Stefan Bruens wrote: > > > On Mittwoch, 26. April 2017 08:59:47 CEST Jonathan Cameron wrote: > > >> On 26/04/17 07:19, Jonathan Cameron wrote: >

[PATCH 2/3] drm: arcpgu: Fix module unload

2017-07-17 Thread Jose Abreu
At module unload we are expecting a struct drm_device but at probing we are not setting it right. Fix this and correct the arcpgu module unload. Signed-off-by: Jose Abreu Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller") Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Daniel Vet

[PATCH 0/3] arcpgu: Fixes and improvements

2017-07-17 Thread Jose Abreu
Hi all, Two fixes and an improvement for arcpgu. I've sent this patches in separate but I've now collected them all to ease the review. Best regards, Jose Miguel Abreu Jose Abreu (3): drm: arcpgu: Fix mmap() callback drm: arcpgu: Fix module unload drm: arcpgu: Allow some clock deviation in

[PATCH 1/3] drm: arcpgu: Fix mmap() callback

2017-07-17 Thread Jose Abreu
Now that ARC properly supports DMA mmap() we can use the standard CMA helper to map dumb buffers. This makes ARC PGU works with standard DRM consumer applications like, for example, mpv/mplayer via DRM. While at it, use the DEFINE_DRM_GEM_CMA_FOPS() helper. This fixes the use of dumb buffers. Sig

[PATCH 3/3] drm: arcpgu: Allow some clock deviation in crtc->mode_valid() callback

2017-07-17 Thread Jose Abreu
Currently we expect that clock driver produces the exact same value as we are requiring. There can, and will, be some deviation however so we need to take that into account instead of just rejecting the mode. According to the HDMI spec we have a max of +-0.5% for the pixel clock frequency deviatio

Re: [PATCH] staging: unisys: visorbus: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
Hi Greg, On Monday 17 July 2017 04:15 PM, Greg KH wrote: On Mon, Jul 17, 2017 at 02:55:37PM +0530, Arvind Yadav wrote: attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs

[PATCH] staging: iio: adc: add missing of_node references to iio_dev

2017-07-17 Thread Hari Prasath
From: Hari Prasath Adding missing indio_dev->dev.of_node references to allow iio consumers to access the device channels. Signed-off-by: Hari Prasath --- drivers/staging/iio/adc/ad7192.c | 1 + drivers/staging/iio/adc/ad7780.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/stagi

Re: [PATCH 00/15] perf tools: Fix attr tests

2017-07-17 Thread Jiri Olsa
On Mon, Jul 03, 2017 at 04:50:15PM +0200, Jiri Olsa wrote: > hi, > attr tests have been broken for some time now. Updating > the data files plus some other processing fixes. > > It's also available in here: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/attr_test hi, ju

RE: [PATCH V2] kernel/watchdog: fix spurious hard lockups

2017-07-17 Thread Liang, Kan
> > On Mon, 17 Jul 2017, Liang, Kan wrote: > > There are three proposed patches so far. > > Patch 1: The patch as above which speed up the hrtimer. > > Patch 2: Thomas's first proposal. > > https://patchwork.kernel.org/patch/9803033/ > > https://patchwork.kernel.org/patch/9805903/ > > Patch 3: my

[PATCH v2] staging: iio: adc: add missing of_node references to iio_dev

2017-07-17 Thread Hari Prasath
Adding missing indio_dev->dev.of_node references to allow iio consumers to access the device channels. Signed-off-by: Hari Prasath --- v2: Wrong from email ID in first version of patch --- drivers/staging/iio/adc/ad7192.c | 1 + drivers/staging/iio/adc/ad7780.c | 1 + 2 files changed, 2

Re: [PATCH] backlight: pwm_bl: make of_device_ids const

2017-07-17 Thread Lee Jones
On Tue, 20 Jun 2017, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > drivers/video/backlight/pwm_bl

Re: [PATCH] mfd: Fix potential NULL pointer dereference

2017-07-17 Thread Lee Jones
On Wed, 05 Jul 2017, Christophe JAILLET wrote: > if 'max8998_i2c_parse_dt_pdata() fails (when out of memory), a NULL > pointer dereference will occur in the error handling code. > > Return directly instead. > > Fixes: ee999fb3f17f("mfd: max8998: Add support for Device Tree") > Signed-off-by: Chr

Re: [PATCH] staging: gs_fpgaboot: add buffer overflow checks

2017-07-17 Thread Greg Kroah-Hartman
On Sun, Jul 16, 2017 at 08:38:41PM -0400, Jacob von Chorus wrote: > Four fields in struct fpgaimage are char arrays of length MAX_STR (256). > The amount of data read into these buffers is controlled by a length > field in the bitstream file read from userspace. If a corrupt or > malicious firmware

Re: [PATCH] net/unix: drop obsolete fd-recursion limits

2017-07-17 Thread Tom Gundersen
On Mon, Jul 17, 2017 at 11:35 AM, David Herrmann wrote: > All unix sockets now account inflight FDs to the respective sender. > This was introduced in: > > commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 > Author: willy tarreau > Date: Sun Jan 10 07:54:56 2016 +0100 > > unix

Re: [RFC V2 1/6] cpufreq: Replace "max_transition_latency" with "dynamic_switching"

2017-07-17 Thread Rafael J. Wysocki
On Monday, July 17, 2017 05:28:51 PM Viresh Kumar wrote: > On 15-07-17, 14:26, Rafael J. Wysocki wrote: > > On Saturday, July 15, 2017 07:08:28 AM Dominik Brodowski wrote: > > > > Exactly. But lets take a quick look at the drivers ussing CPUFREQ_ETERNAL: > > > > > > Using CPUFREQ_ETERNAL, as poli

Re: [PATCH] Staging:vc04_services:vchiq_util.c: kzalloc call changed to kcalloc

2017-07-17 Thread Greg KH
On Sun, Jul 16, 2017 at 07:39:08PM +0300, AndyS wrote: > From: Andrey Severin > > kzalloc call was changed to kcalloc by checkpatch.pl recommendation > > --- > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] staging: lustre: lustre: fix all braces issues reported by checkpatch

2017-07-17 Thread Greg Kroah-Hartman
On Sat, Jul 15, 2017 at 11:39:22AM -0400, James Simmons wrote: > Cleanup all braces that was reported by checkpatch. The only > issue not fixed up is in mdc_lock.c. Removing the braces in > the case of mdc_lock.c will break the build. > > Signed-off-by: James Simmons > ---

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-17 Thread Sricharan R
Hi, On 7/17/2017 5:16 PM, Sricharan R wrote: > Hi, > > On 7/15/2017 1:09 AM, Rob Clark wrote: >> On Fri, Jul 14, 2017 at 3:36 PM, Will Deacon wrote: >>> On Fri, Jul 14, 2017 at 03:34:42PM -0400, Rob Clark wrote: On Fri, Jul 14, 2017 at 3:01 PM, Will Deacon wrote: > On Fri, Jul 14, 2017

Re: [PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-17 Thread Greg KH
On Fri, Jul 14, 2017 at 07:38:43PM +0530, Gaurav Pathak wrote: > staging: rts5208: Refactored code to avoid few defects. That's the subject line, why repeat it here? Please put a "real" description of the patch here. > > Signed-off-by: Gaurav Pathak > --- > Hi, Gaurav hope this text appaers in

Re: [patch 0/3] Re: tty contention resulting from tty_open_by_device export

2017-07-17 Thread Greg Kroah-Hartman
On Thu, Jul 13, 2017 at 12:29:54PM +0100, Okash Khawaja wrote: > On Wed, Jul 12, 2017 at 07:20:28PM +0100, Alan Cox wrote: > > > > > When opening from kernel, we don't use file pointer. The count mismatch > > > is between tty->count and #fd's. So opening from kernel leads to #fd's > > > being less

Re: [PATCH 1/3] staging: ccree: Replace kzalloc with devm_kzalloc

2017-07-17 Thread Greg KH
On Sat, Jul 15, 2017 at 01:21:54PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > It is recommended to use managed function devm_kzalloc, which > simplifies driver cleanup paths and driver code. > This patch does the following: > (a) replace kzalloc with devm_kzalloc. > (b) drop kfr

Re: [PATCH v2] staging: iio: adc: add missing of_node references to iio_dev

2017-07-17 Thread hari prasath
Kindly discard this patch versions. I will send a new one. On 17 July 2017 at 17:49, Hari Prasath wrote: > Adding missing indio_dev->dev.of_node references to allow iio consumers > to access the device channels. > > Signed-off-by: Hari Prasath > --- > v2: Wrong from email ID in first ver

Re: [PATCH 2/5] mtd: block2mtd: Add support for specifying MTD write size and subpage shift

2017-07-17 Thread Pali Rohár
On Sunday 18 June 2017 12:11:40 Richard Weinberger wrote: > Pavel, > > Am 18.06.2017 um 12:06 schrieb Pavel Machek: > > Hi! > > > >> Am 02.06.2017 um 17:43 schrieb Pali Rohár: > >>> It is needed for creating emulated devices suitable for using in UBI > >>> layer > >>> and with UB

[PATCHv2] staging: iio: adc: add missing of_node references to iio_dev

2017-07-17 Thread Hari Prasath
Adding missing indio_dev->dev.of_node references to allow iio consumers to access the device channels. Signed-off-by: Hari Prasath --- v2: Wrong from mail ID in first version of patch --- drivers/staging/iio/adc/ad7192.c | 1 - drivers/staging/iio/adc/ad7780.c | 1 - 2 files changed, 2 d

Re: [PATCH] staging: unisys: visorbus: constify attribute_group structures.

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 05:43:14PM +0530, Arvind Yadav wrote: > Hi Greg, > > > On Monday 17 July 2017 04:15 PM, Greg KH wrote: > > On Mon, Jul 17, 2017 at 02:55:37PM +0530, Arvind Yadav wrote: > > > attribute_groups are not supposed to change at runtime. All functions > > > working with attribute

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-07-17 Thread Ulf Hansson
On 21 June 2017 at 09:10, Viresh Kumar wrote: > Some platforms have the capability to configure the performance state of > their Power Domains. The performance levels are identified by positive > integer values, a lower value represents lower performance state. > > This patch adds a new genpd API:

Re: Regression with suspicious RCU usage splats with cpu_pm change

2017-07-17 Thread Paul E. McKenney
On Sun, Jul 16, 2017 at 11:08:07PM -0700, Tony Lindgren wrote: > * Alex Shi [170716 16:25]: > > I reused the rcu_irq_enter_irqson() from RCU_NONIDLE to avoid this issue. > > It works fine. > > > > Tony, Could you like to give a tested-by if this patch works for you. > > Yeah that keeps things b

[PATCH net-next 0/5] refine virtio-net XDP

2017-07-17 Thread Jason Wang
Hi: This series brings two optimizations for virtio-net XDP: - avoid reset during XDP set - turn off offloads on demand Please review. Thanks Jason Wang (5): virtio_ring: allow to store zero as the ctx virtio-net: pack headroom into ctx for mergeable buffer virtio-net: switch to use new

[PATCH net-next 1/5] virtio_ring: allow to store zero as the ctx

2017-07-17 Thread Jason Wang
Allow zero to be store as a ctx, with this we could store e.g zero value which could be meaningful for the case of storing headroom through ctx. Signed-off-by: Jason Wang --- drivers/virtio/virtio_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_ri

[PATCH net-next 4/5] virtio-net: do not reset during XDP set

2017-07-17 Thread Jason Wang
We used to reset during XDP set, the main reason is we need allocate extra headroom for header adjustment but there's no way to know the headroom of exist receive buffer. This works buy maybe complex and may cause the network down for a while which is bad for user experience. So this patch tries to

<    1   2   3   4   5   6   7   8   9   10   >