[PATCH] drivers, md: convert stripe_head.count from atomic_t to refcount_t

2017-03-13 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. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)

2017-03-13 Thread Michal Hocko
On Mon 13-03-17 11:31:10, Igor Mammedov wrote: > On Fri, 10 Mar 2017 14:58:07 +0100 [...] > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x-0x0009] > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x0010-0x3fff] > > [0.00] ACPI: SRAT: Node 1 PXM 1 [mem 0x4000-0x7ff

Re: Bad DT binding (hisi-pcie-almost-ecam)

2017-03-13 Thread Mark Rutland
Hi, On Mon, Mar 13, 2017 at 08:14:19AM +, Gabriele Paoloni wrote: > > -Original Message- > > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > The commit adds the "hisilicon,pcie-almost-ecam", which goes against > > the > > usual DT conventions, and is non-sensical in that it descr

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-13 Thread Hans Verkuil
On 03/12/2017 06:56 PM, Steve Longerbeam wrote: > > > On 03/11/2017 11:37 PM, Russell King - ARM Linux wrote: >> On Sat, Mar 11, 2017 at 07:31:18PM -0800, Steve Longerbeam wrote: >>> >>> >>> On 03/11/2017 10:59 AM, Russell King - ARM Linux wrote: On Sat, Mar 11, 2017 at 10:54:55AM -0800, Ste

Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on

2017-03-13 Thread Peter De Schrijver
On Wed, Mar 08, 2017 at 11:48:21AM +, Jon Hunter wrote: > > On 08/03/17 11:38, Geert Uytterhoeven wrote: > > Hi Jon, > > > > On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter wrote: > >>> I had a similar issue with SH-Mobile AG5, where the power domain > >>> containing > >>> the JTAG interface is

Re: [RFC v3 1/5] sched/core: add capacity constraints to CPU controller

2017-03-13 Thread Joel Fernandes (Google)
On Tue, Feb 28, 2017 at 6:38 AM, Patrick Bellasi wrote: > The CPU CGroup controller allows to assign a specified (maximum) > bandwidth to tasks within a group, however it does not enforce any > constraint on how such bandwidth can be consumed. > With the integration of schedutil, the scheduler has

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 11:02:34AM +0100, Hans Verkuil wrote: > On 03/11/2017 07:14 PM, Steve Longerbeam wrote: > > The event must be user visible, otherwise the user has no indication > > the error, and can't correct it by stream restart. > > In that case the driver can detect this and call vb2_q

Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on

2017-03-13 Thread Peter De Schrijver
On Mon, Mar 06, 2017 at 04:53:48PM +0100, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver > wrote: > > On Mon, Mar 06, 2017 at 09:58:29AM +, Jon Hunter wrote: > >> On 06/03/17 08:38, Peter De Schrijver wrote: > >> > On Thu, Mar 02, 2017 at 05:56:49

[PATCH v1] KVM: s390: use defines for execution controls

2017-03-13 Thread David Hildenbrand
Let's replace the bitmasks by defines. Reconstructed from code, comments and commit messages. Tried to keep the defines short and map them to feature names. In case they don't completely map to features, keep them in the stye of ICTL defines. This effectively drops all "U" from the existing numbe

Re: [PATCH v2] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Hans de Goede
Hi, On 13-03-17 11:30, Chanwoo Choi wrote: Hi, On 2017년 03월 13일 17:40, Hans de Goede wrote: With the new more strict ACPI gpio code the dsdt's IoRestriction flags are honored on gpiod_get, but in some dsdt's it is wrong, so explicitly call gpiod_direction_input on the id gpio if necessary. Th

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-13 Thread Hans Verkuil
On 03/13/2017 11:45 AM, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 11:02:34AM +0100, Hans Verkuil wrote: >> On 03/11/2017 07:14 PM, Steve Longerbeam wrote: >>> The event must be user visible, otherwise the user has no indication >>> the error, and can't correct it by stream restart.

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Brian Starkey
On Sun, Mar 12, 2017 at 02:34:14PM +0100, Benjamin Gaignard wrote: 2017-03-09 18:38 GMT+01:00 Laura Abbott : On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: 2017-03-06 17:04 GMT+01:00 Daniel Vetter : On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote: On Mon, Mar 06, 2017 at 11:40:41

RE: [PATCH 00/17] fs, btrfs refcount conversions

2017-03-13 Thread Reshetova, Elena
> On Fri, Mar 03, 2017 at 10:55:09AM +0200, Elena Reshetova wrote: > > Now when new refcount_t type and API are finally merged > > (see include/linux/refcount.h), the following > > patches convert various refcounters in the btrfs filesystem from atomic_t > > to refcount_t. By doing this we prevent

Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-03-13 Thread Igor Mammedov
On Thu, 9 Mar 2017 13:54:00 +0100 Michal Hocko wrote: [...] > > It's major regression if you remove auto online in kernels that > > run on top of x86 kvm/vmware hypervisors, making API cleanups > > while breaking useful functionality doesn't make sense. > > > > I would ACK config option removal

Re: [PATCH] MIPS: BPF: Add support for SKF_AD_HATYPE

2017-03-13 Thread James Hogan
On Fri, Mar 10, 2017 at 02:14:05PM -0800, David Daney wrote: > This let's us pass some additional "modprobe test-bpf" tests. > > Reuse the code for SKF_AD_IFINDEX, but substitute the offset and size > of the "type" field. > > Signed-off-by: David Daney I think the BPF maintainers should probabl

[PATCH] staging: atomisp: use k{v}zalloc instead of k{v}alloc and memset

2017-03-13 Thread Daeseok Youn
If the atomisp_kernel_zalloc() has "true" as a second parameter, it tries to allocate zeroing memory from kmalloc(vmalloc) and memset. But using kzalloc is rather than kmalloc followed by memset with 0. (vzalloc is for same reason with kzalloc) And also atomisp_kernel_malloc() can be used with ato

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 11:44:50AM +0100, Hans Verkuil wrote: > On 03/12/2017 06:56 PM, Steve Longerbeam wrote: > > In summary, I do like the media framework, it's a good abstraction of > > hardware pipelines. It does require a lot of system level knowledge to > > configure, but as I said that is a

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 11:28:45AM +0100, Radoslaw Pietrzyk wrote: > Allows bpp to be set from dt > Who does this affect in real life? You haven't tested it apparently so it's hard to say why you are doing this. regards, dan carpenter

[PATCH] tty: n_gsm: Use net_device_stats from struct net_device

2017-03-13 Thread Tobias Klauser
Instead of using a private copy of struct net_device_stats in struct gsm_mux_net, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Signed-off-by: Tobias Klauser --- drivers/tty/n_gsm.c | 21 ++--- 1 file changed, 6 insertions(+), 15 delet

Re: [i2c-tools PATCH v2] i2ctransfer: add new tool

2017-03-13 Thread Wolfram Sang
Hi Uwe, thanks for the review! > > +.RI [ data ] > > +.RI [ desc > > +.RI [ data ]] > > You could join the previous two lines. Try it. You will miss some spaces, then. > > +Also, you cannot be interrupted by another I2C master during one transfer, > > but it might happen between multiple tran

Re: [PATCH v2 6/9] Input: psmouse - add support for SMBus companions

2017-03-13 Thread Benjamin Tissoires
On Mar 10 2017 or thereabouts, Dmitry Torokhov wrote: > From: Benjamin Tissoires > > This provides glue between PS/2 devices that enumerate the RMI4 devices > and Elan touchpads to the RMI4 (or Elan) SMBus driver. > > The SMBus devices keep their PS/2 connection alive. If the initialization > pr

Re: [PATCH 3/4] arm: dts: imx: Add iMX6Q-based Kontron SMARC-sAMX6i module

2017-03-13 Thread Shawn Guo
On Sun, Feb 19, 2017 at 10:28:00PM +0200, Priit Laes wrote: > SMARC-sAMX6i is a SMARC (Smart Mobility Architecture) compliant > module. > > Signed-off-by: Priit Laes For sake of consistency, we use 'ARM: ...' instead of 'arm: ...' in subject prefix for all i.MX patches. > --- > arch/arm/boot/d

Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on

2017-03-13 Thread Jon Hunter
On 13/03/17 10:45, Peter De Schrijver wrote: > On Wed, Mar 08, 2017 at 11:48:21AM +, Jon Hunter wrote: >> >> On 08/03/17 11:38, Geert Uytterhoeven wrote: >>> Hi Jon, >>> >>> On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter wrote: > I had a similar issue with SH-Mobile AG5, where the power doma

Re: [PATCH v2] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Chanwoo Choi
On 2017년 03월 13일 19:51, Hans de Goede wrote: > Hi, > > On 13-03-17 11:30, Chanwoo Choi wrote: >> Hi, >> >> On 2017년 03월 13일 17:40, Hans de Goede wrote: >>> With the new more strict ACPI gpio code the dsdt's IoRestriction >>> flags are honored on gpiod_get, but in some dsdt's it is wrong, >>> so ex

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Radosław Pietrzyk
I have and used with stm32 and fb_ili9341. First patch was shitty, my bad. 2017-03-13 12:00 GMT+01:00 Dan Carpenter : > On Mon, Mar 13, 2017 at 11:28:45AM +0100, Radoslaw Pietrzyk wrote: >> Allows bpp to be set from dt >> > > Who does this affect in real life? You haven't tested it apparently so

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-13 Thread Hans Verkuil
On 03/13/2017 11:58 AM, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 11:44:50AM +0100, Hans Verkuil wrote: >> On 03/12/2017 06:56 PM, Steve Longerbeam wrote: >>> In summary, I do like the media framework, it's a good abstraction of >>> hardware pipelines. It does require a lot of syste

Re: [PATCH v2] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 10:40 AM, Hans de Goede wrote: > With the new more strict ACPI gpio code the dsdt's IoRestriction > flags are honored on gpiod_get, but in some dsdt's it is wrong, > so explicitly call gpiod_direction_input on the id gpio if > necessary. > > This fixes the following errors

[PATCH 0/4] iio: accel: adxl345: Add support for buffered readings

2017-03-13 Thread Eva Rachel Retuya
Introduce the DATA_READY trigger and enable triggered buffering. Additional changes include introduction of functions set_mode, drdy and get_triple, allow either INT1/INT2 pin be used by specifying interrupt-names. Triggered buffer was tested on both DATA_READY trigger and the hrtimer software tri

[PATCH 1/4] dt-bindings: iio: accel: adxl345: Add optional interrupt-names support

2017-03-13 Thread Eva Rachel Retuya
Add interrupt-names property in order to specify interrupt pin in use. Signed-off-by: Eva Rachel Retuya --- Documentation/devicetree/bindings/iio/accel/adxl345.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/accel/adxl345.txt b/Documentation/dev

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 12:07:20PM +0100, Radosław Pietrzyk wrote: > I have and used with stm32 and fb_ili9341. First patch was shitty, my bad. > Could you resend with a patch description which says why you are doing this? "With stm32 and fb_ili9341 the monitor just sits there blinking because b

[PATCH 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-03-13 Thread Eva Rachel Retuya
Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/adxl345.h | 4 +- drivers/iio/accel/adxl345_core.c | 113 +-- drivers/iio/accel/adxl345_i2c.c | 10 +++- drivers/iio/accel/adxl345_spi.c | 10 +++- 4 files changed, 130 insertions(+), 7 deletions

[PATCH 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-03-13 Thread Eva Rachel Retuya
Provide an all-axes read for triggered buffering. Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/Kconfig| 2 + drivers/iio/accel/adxl345_core.c | 124 +++ drivers/iio/accel/adxl345_i2c.c | 4 ++ 3 files changed, 119 insertions(+), 11 delet

[PATCH 2/4] iio: accel: adxl345_core: Introduce set_mode, drdy & get_triple functions

2017-03-13 Thread Eva Rachel Retuya
Move code that enables measurement/standby mode into its own function and call that function when appropriate. Previously, we set the sensor to measurement in probe and back to standby during remove. Change it here to only enter measurement mode when request for data is initiated. The DATA_READY b

Re: [PATCH] serial: 8250_dw: Fix breakage when HAVE_CLK=n

2017-03-13 Thread James Hogan
Hi Greg, On Sat, Mar 04, 2017 at 01:09:58PM +, James Hogan wrote: > Commit 6a171b299379 ("serial: 8250_dw: Allow hardware flow control to be > used") recently broke the 8250_dw driver on platforms which don't select > HAVE_CLK, as dw8250_set_termios() gets confused by the behaviour of the > fa

Re: [PATCH 00/14] cpufreq: intel_pstate: Fixes, cleanups and optimizations

2017-03-13 Thread Rafael J. Wysocki
On Mon, Mar 13, 2017 at 7:29 AM, Doug Smythies wrote: > On 2017.03.12 10:12 Rafael J. Wysocki wrote: > >> This patch series fixes a couple of bugs in intel_pstate, cleans up the code >> in >> it somewhat and makes some changes targeted at overhead reductions. >> > > If clean up and overhead reduc

Re: [PATCH v2 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src

2017-03-13 Thread Madhavan Srinivasan
On Tuesday 07 March 2017 03:53 PM, Peter Zijlstra wrote: On Tue, Mar 07, 2017 at 03:28:17PM +0530, Madhavan Srinivasan wrote: On Monday 06 March 2017 04:52 PM, Peter Zijlstra wrote: On Mon, Mar 06, 2017 at 04:13:08PM +0530, Madhavan Srinivasan wrote: From: Sukadev Bhattiprolu perf_mem_dat

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Radosław Pietrzyk
Ok I will. I just have thought that in general it might be helpful to have this possibility as DT is parsed for this option anyway. If you think it is not needed at all that why to bother parsing DT for this option in the first place ? 2017-03-13 12:11 GMT+01:00 Dan Carpenter : > On Mon, Mar 13, 2

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 12:16:13PM +0100, Radosław Pietrzyk wrote: > Ok I will. I just have thought that in general it might be helpful to > have this possibility as DT is parsed for this option anyway. If you > think it is not needed at all that why to bother parsing DT for this > option in the fi

Re: [PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Radosław Pietrzyk
Understood 2017-03-13 12:19 GMT+01:00 Dan Carpenter : > On Mon, Mar 13, 2017 at 12:16:13PM +0100, Radosław Pietrzyk wrote: >> Ok I will. I just have thought that in general it might be helpful to >> have this possibility as DT is parsed for this option anyway. If you >> think it is not needed at a

Re: 5-level pagetable patches break ppc64le

2017-03-13 Thread Kirill A. Shutemov
On Mon, Mar 13, 2017 at 09:05:50PM +1100, Anton Blanchard wrote: > Hi, > > My ppc64le boot tests stopped working as of commit c2febafc6773 ("mm: > convert generic code to 5-level paging") > > We hang part way during boot, just before bringing up the network. I > haven't had a chance to narrow it

Re: [PATCH 1/4] uapi glibc compat: add libc compat code when not build for kernel

2017-03-13 Thread Mikko Rapeli
On Sun, Mar 12, 2017 at 11:00:36PM +0100, Hauke Mehrtens wrote: > Instead of checking if this header file is used in the glibc, check if > iti is not used in kernel context, this way it will also work with > other libc implementations like musl. > > Signed-off-by: Hauke Mehrtens Accked-by: Mikko

[PATCH v3] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Hans de Goede
With the new more strict ACPI gpio code the dsdt's IoRestriction flags are honored on gpiod_get, but in some dsdt's it is wrong, so explicitly call gpiod_direction_input on the id gpio if necessary. This fixes the following errors when the int3496 code is used together with the new more strict ACP

Re: [PATCH 2/4] uapi glibc compat: fix build if libc defines IFF_ECHO

2017-03-13 Thread Mikko Rapeli
On Sun, Mar 12, 2017 at 11:00:37PM +0100, Hauke Mehrtens wrote: > musl 1.1.15 defines IFF_ECHO and the other net_device_flags options. > When a user application includes linux/if.h and net/if.h the compile > will fail. > > Activate __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO only when > i

Re: [PATCH 3/4] uapi glibc compat: Do not check for __USE_MISC

2017-03-13 Thread Mikko Rapeli
On Sun, Mar 12, 2017 at 11:00:38PM +0100, Hauke Mehrtens wrote: > __USE_MISC is glibc specific and not available in musl libc. Only do > this check when glibc is used. This fixes a problem with musl libc. > Signed-off-by: Hauke Mehrtens Acked-by: Mikko Rapeli > --- > include/uapi/linux/libc-c

Re: [PATCH 4/4] uapi/if_ether.h: prevent redefinition of struct ethhdr

2017-03-13 Thread Mikko Rapeli
On Sun, Mar 12, 2017 at 11:00:39PM +0100, Hauke Mehrtens wrote: > From: David Heidelberger > > Musl provides its own ethhdr struct definition. Add a guard to prevent > its definition of the appropriate musl header has already been included. > > Signed-off-by: John Spencer > Tested-by: David Hei

Re: [PATCH 00/39] mtd: nand: denali: 2nd round of Denali NAND IP patch bomb

2017-03-13 Thread Boris Brezillon
Hi Masahiro, On Fri, 10 Mar 2017 20:00:03 +0900 Masahiro Yamada wrote: > Hi Boris, > > I am almost getting v2 done, > and now I am testing it. > > I am having one problem. Please teach me. > > > 2016-11-30 17:17 GMT+09:00 Boris Brezillon > : > >> [2] > >> Remove driver-internal bounce buff

Re: [PATCH V3 0/5] thermal: minor cleanup/fixes

2017-03-13 Thread Zhang Rui
On Mon, 2017-03-13 at 15:37 +0530, Viresh Kumar wrote: > Hi, > > This series contains minor fixes/cleanups for thermal cooling > drivers. > > V2->V3: > - Added Acks from Rui > - Resending as it was getting ignored until now :( I just applied V2 this morning, and has not pushed to kernel.org yet.

[PATCH v3] i2c-tools: add new tool 'i2ctransfer'

2017-03-13 Thread Wolfram Sang
From: Wolfram Sang This tool allows to construct and concat multiple I2C messages into one single transfer. Its aim is to test I2C master controllers, and so there is no SMBus fallback. I've been missing such a tool a number of times now, so I finally got around to writing it myself. As with all

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-13 Thread Mauro Carvalho Chehab
Em Mon, 13 Mar 2017 10:58:42 + Russell King - ARM Linux escreveu: > On Mon, Mar 13, 2017 at 11:44:50AM +0100, Hans Verkuil wrote: > > On 03/12/2017 06:56 PM, Steve Longerbeam wrote: > > > In summary, I do like the media framework, it's a good abstraction of > > > hardware pipelines. It does

Re: [PATCH v3] i2c-tools: add new tool 'i2ctransfer'

2017-03-13 Thread Wolfram Sang
On Mon, Mar 13, 2017 at 12:41:35PM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > This tool allows to construct and concat multiple I2C messages into one > single transfer. Its aim is to test I2C master controllers, and so there > is no SMBus fallback. > > I've been missing such a tool a nu

Re: [PATCH v3 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-13 Thread Jose Abreu
Hi Neil, On 09-03-2017 14:27, Jose Abreu wrote: > Hi Neil, > > > On 08-03-2017 12:12, Neil Armstrong wrote: >> Hi Jose, >> >> It seems here that we only have the RGB444<->YUV444 8bit tables, from the >> Amlogic >> source I have the following for 10bit, 12bit and 16bit for itu601 : >> >> static c

Re: [PATCH v3] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 1:28 PM, Hans de Goede wrote: > With the new more strict ACPI gpio code the dsdt's IoRestriction > flags are honored on gpiod_get, but in some dsdt's it is wrong, > so explicitly call gpiod_direction_input on the id gpio if > necessary. > > This fixes the following errors w

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Ulf Hansson
+Björn On 13 March 2017 at 10:37, Jon Hunter wrote: > Hi Rafael, Kevin, Ulf, > > Looks like there is still some interest/needs in/for this. Any thoughts > on how we can move this forward? At the Linaro Connect last week, I was talking to Björn, Rajendra and Stephen more about these related issue

Re: [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-13 Thread Jarkko Sakkinen
On Mon, Mar 13, 2017 at 01:21:57PM +0800, meng...@windriver.com wrote: > From: Limeng > > So far, there is not a sysfs interface for user space code to > check the TPM hardware version(TPM1.x or TPM2). So, add a > file named description in /sys/class/tpm/tpmX/ to show it. > > Signed-off-by: Meng

[PATCH] perf: fix typo in function switch_data_file

2017-03-13 Thread changbin . du
From: Changbin Du Should clear buf abs_path, not options. Signed-off-by: Changbin Du --- tools/perf/ui/browsers/hists.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index a6dae80..6fafe02 100644 --- a/tools/

Re: [PATCH] staging: atomisp: use k{v}zalloc instead of k{v}alloc and memset

2017-03-13 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 07:54:21PM +0900, Daeseok Youn wrote: > If the atomisp_kernel_zalloc() has "true" as a second parameter, it > tries to allocate zeroing memory from kmalloc(vmalloc) and memset. > But using kzalloc is rather than kmalloc followed by memset with 0. > (vzalloc is for same reaso

[PATCH 0/4] ARM: DRA7: Fix DCAN1 stuck-in-transition

2017-03-13 Thread Roger Quadros
Hi, On DRA7 platform, DCAN1 module has an issue when it's clockdomain (WKUPAON) is configured in HW_AUTO. After DCAN1 is enabled and disabled the module remains stuck in transition. Suggested workaround by Silicon team is to disable HW_AUTO for WKUPAON clockdomain when DCAN1 module is active. Th

[PATCH 3/4] ARM: DRA7: hwmod: Fix DCAN1 stuck in transition

2017-03-13 Thread Roger Quadros
Add HWMOD_CLKDM_NOAUTO flag to DCAN1 module. Without this DCAN1 module remains stuck in transition after the CAN interface is brought down. This is also suggested in Errata i893 "DCAN Initialization Sequence". Add the HWMOD_CLKDM_NOAUTO to DCAN2 module as well as it is mentioned in Errata i893.

[PATCH 1/4] ARM: OMAP2+: omap_hwmod: provide space for more hwmod flags

2017-03-13 Thread Roger Quadros
From: Sekhar Nori 'flags' member of omap_hwmod structure is fast running out of space with 16 different flags already defined. Make flags a 32-bit entity so as to allow for more flags. This results is a ~2.3K data section size increase with TI config fragments. before: textdata bss

[PATCH 4/4] ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss

2017-03-13 Thread Roger Quadros
It seems that if L3_INIT clkdomain is kept in HW_AUTO while usb_otg_ss is in use then there are random chances that the usb_otg_ss module will fail to completely idle. i.e. IDLEST = 0x2 instead of 0x3. Preventing L3_INIT from HW_AUTO while usb_otg_ss module is in use fixes this issue. We don't kn

[PATCH 2/4] ARM: OMAP2+ hwmod: Allow modules to disable HW_AUTO

2017-03-13 Thread Roger Quadros
Introduce HWMOD_CLKDM_NOAUTO flag that allows the hwmod's clockdomain to be prevented from HW_AUTO while the hwmod is active. This is needed to workaround some modules which don't function correctly with HW_AUTO. e.g. DCAN on DRA7. Signed-off-by: Roger Quadros [nsek...@ti.com: rebased to v4.9 ke

Re: [PATCH] tpm: Add sysfs interface to show TPM family version

2017-03-13 Thread Jarkko Sakkinen
On Mon, Mar 13, 2017 at 05:20:17PM +0800, meng...@windriver.com wrote: > From: Limeng > > So far, there is not a sysfs interface for user space code to > check the TPM family version(TPM1.x or TPM2). So, add a > file named description in /sys/class/tpm/tpmX/ to show it. > > Signed-off-by: Meng L

Re: [PATCH v2 20/23] MAINTAINERS: Add file patterns for tpm device tree bindings

2017-03-13 Thread Jarkko Sakkinen
On Sun, Mar 12, 2017 at 02:17:04PM +0100, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Acked-by: Jarkko Sakkinen > Cc: Peter Huewe > Cc: Marcel Selhorst > Cc:

Re: [PATCH 0/4] ARM: DRA7: Fix DCAN1 stuck-in-transition

2017-03-13 Thread Roger Quadros
On 13/03/17 13:53, Roger Quadros wrote: > Hi, > > On DRA7 platform, DCAN1 module has an issue when it's clockdomain > (WKUPAON) is configured in HW_AUTO. After DCAN1 is enabled and disabled > the module remains stuck in transition. > > Suggested workaround by Silicon team is to disable HW_AUTO fo

Re: [PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD

2017-03-13 Thread Richard Genoud
On 12/03/2017 15:17, Rob Herring wrote: > On Fri, Mar 03, 2017 at 04:21:56PM +0100, Richard Genoud wrote: >> This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT >> LCD panel, which can be supported by the simple panel driver. >> >> Signed-off-by: Richard Genoud >> --- >> .../bi

Re: [PATCH v2] phy: rcar-gen3-usb2: fix implementation for runtime PM

2017-03-13 Thread Sergei Shtylyov
On 03/13/2017 12:39 PM, Yoshihiro Shimoda wrote: This patch fixes an issue that this driver doesn't take care of the runtime PM. This code assumed that devm_phy_create() called pm_runtime_enable(dev), but it misunderstood the dev_phy_create()'s specification. This driver should call its own pm_r

Re: [PATCH 2/4] iio: accel: adxl345_core: Introduce set_mode, drdy & get_triple functions

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 1:11 PM, Eva Rachel Retuya wrote: > Move code that enables measurement/standby mode into its own function > and call that function when appropriate. Previously, we set the sensor > to measurement in probe and back to standby during remove. Change it > here to only enter mea

Re: [PATCH v2] tpm_crb: request and relinquish locality 0

2017-03-13 Thread Jarkko Sakkinen
On Sun, Mar 12, 2017 at 12:47:58PM -0700, Jerry Snitselaar wrote: > > Jarkko Sakkinen @ 2017-03-11 13:02 GMT: > > > Added two new callbacks to struct tpm_class_ops: > > > > - request_locality > > - relinquish_locality > > > > These are called before sending and receiving data from the TPM. We >

Re: [PATCH v4 1/7] arm: dts: imx6qdl-icore: Add backlight support for lvds

2017-03-13 Thread Shawn Guo
On Wed, Mar 08, 2017 at 12:47:51PM +0530, Jagan Teki wrote: > From: Jagan Teki > > This patch add support for lvds backlight on i.CoreM6 QDL > variant boards. > > Cc: Domenico Acri > Cc: Matteo Lisi > Cc: Michael Trimarchi > Cc: Shawn Guo > Signed-off-by: Jagan Teki For sake of consistency

Re: [PATCH v5 2/4] dt-bindings: mfd: Add LED subnode binding for MT6323 PMIC

2017-03-13 Thread Matthias Brugger
On 03/03/17 14:56, sean.w...@mediatek.com wrote: From: Sean Wang This patch adds documentation for devicetree bindings for LED support as the subnode of MT6323 PMIC Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/mfd/mt6397.txt | 5 + 1 file changed, 5 insertions(+) dif

Re: [PATCH v3 RFC] mm/vmscan: more restrictive condition for retry of shrink_zones

2017-03-13 Thread Yisheng Xie
Hi Michal, Thanks for reviewing. On 2017/3/13 16:33, Michal Hocko wrote: > Please do not post new version after a single feedback and try to wait > for more review to accumulate. This is in the 3rd version and it is not > clear why it is still an RFC. Get it, thanks for pointing out these. > > O

Re: [PATCH] staging: iio: ade7753: replace mlock with driver private lock

2017-03-13 Thread Lars-Peter Clausen
On 03/12/2017 02:32 PM, simran singhal wrote: > The IIO subsystem is redefining iio_dev->mlock to be used by > the IIO core only for protecting device operating mode changes. > ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. > > In this driver, mlock was being used to protect hardware

[PATCH] arm64: enable ARCH_WANT_RELAX_ORDER for aarch64

2017-03-13 Thread Ding Tianhong
The ARCH_WANT_RELAX_ORDER will enable Relaxed Ordering (RO) which allows transactions that do not have any order of completion requirements to complete more efficiently compare to the Stricted Ordering (SO) for ixbge nic card. The system will see high write-to-memory performance when RO is enabled

Re: [i2c-tools PATCH v2] i2ctransfer: add new tool

2017-03-13 Thread Uwe Kleine-König
Hello, On Mon, Mar 13, 2017 at 12:01:40PM +0100, Wolfram Sang wrote: > Hi Uwe, > > thanks for the review! > > > > +.RI [ data ] > > > +.RI [ desc > > > +.RI [ data ]] > > > > You could join the previous two lines. > > Try it. You will miss some spaces, then. It works fine with quoting:

Re: [f2fs-dev] [PATCH] f2fs: skip scanning free nid bitmap of full NAT blocks

2017-03-13 Thread Chao Yu
On 2017/3/11 2:40, Jaegeuk Kim wrote: > On 03/10, Kinglong Mee wrote: >> On 3/1/2017 17:09, Chao Yu wrote: >>> This patch adds to account free nids for each NAT blocks, and while >>> scanning all free nid bitmap, do check count and skip lookuping in >>> full NAT block. >>> >>> Signed-off-by: Chao Y

[PATCH] f2fs: cover update_free_nid_bitmap with free_list_lock

2017-03-13 Thread Chao Yu
free_nid_bitmap and free_nid_count in update_free_nid_bitmap should be updated atomically, use free_list_lock cover them to avoid race in concurrent scenario. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 1 - fs/f2fs/node.c | 27 +++ 2 files changed, 11 insertions(+), 17

Re: [PATCH] staging: lustre fix constant comparision style issue in lu_object.h

2017-03-13 Thread Dan Carpenter
On Sun, Mar 12, 2017 at 02:37:22PM +0100, Greg KH wrote: > On Sat, Mar 11, 2017 at 01:07:40PM +, Craig Inches wrote: > > This patch resolves the "Comparisons should place the constant on > > the right side of the test" found with checkpatch tool. > > Both are constants, I think checkpatch is t

Re: [PATCH 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 1:11 PM, Eva Rachel Retuya wrote: Missed commit message is no-no! > Signed-off-by: Eva Rachel Retuya > -int adxl345_core_probe(struct device *dev, struct regmap *regmap, > - const char *name); > +int adxl345_core_probe(struct device *dev, struct reg

Re: [PATCH] iommu/arm-smmu: Print message when Cavium erratum 27704 was detected

2017-03-13 Thread Robin Murphy
On 13/03/17 10:39, Robert Richter wrote: > Firmware is responsible for properly enabling smmu workarounds. Print > a message for better diagnostics when Cavium erratum 27704 was > detected. The wording there could possibly be misinterpreted as the firmware actively having to do something to the ha

Re: [PATCH 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 1:11 PM, Eva Rachel Retuya wrote: > Provide an all-axes read for triggered buffering. Better description is needed. > -static int adxl345_get_triple(struct adxl345_data *data, void *buf) > +static int adxl345_get_triple(struct adxl345_data *data) Ping-ponging again. This

Re: [RFC] mm/compaction: ignore block suitable after check large free page

2017-03-13 Thread Yisheng Xie
Hi Vlastimil, Thanks for comment. On 2017/3/13 17:51, Vlastimil Babka wrote: > On 03/10/2017 10:53 AM, Yisheng Xie wrote: >> Hi Vlastimil, >> >> Thanks for comment. >> On 2017/3/10 15:30, Vlastimil Babka wrote: >>> On 03/10/2017 05:20 AM, Yisheng Xie wrote: If the migrate target is a large fr

Re: [f2fs-dev] [PATCH] f2fs: cover update_free_nid_bitmap with free_list_lock

2017-03-13 Thread Kinglong Mee
On 3/13/2017 20:10, Chao Yu wrote: > free_nid_bitmap and free_nid_count in update_free_nid_bitmap should be > updated atomically, use free_list_lock cover them to avoid race in nid_list_lock? Reviewed-by: Kinglong Mee > concurrent scenario. > > Signed-off-by: Chao Yu > --- > fs/f2fs/f2fs.h |

Re: [PATCH v4 5/7] arm: dts: imx6q-icore: Add touchscreen node

2017-03-13 Thread Shawn Guo
On Wed, Mar 08, 2017 at 12:47:55PM +0530, Jagan Teki wrote: > From: Jagan Teki > > max11801 touchscreen on Engicam iCoreM6 Quad module is > connected via i2c1, so add tc: max11801@48 on i2c1. > > Cc: Domenico Acri > Cc: Matteo Lisi > Cc: Michael Trimarchi > Cc: Shawn Guo > Signed-off-by: Jag

Re: [PATCH] f2fs: restrict write IO alignment condition

2017-03-13 Thread Chao Yu
On 2017/3/11 2:50, Jaegeuk Kim wrote: > On 03/10, Chao Yu wrote: >> We should only align start offset of bio with defined IO_SIZE for below >> conditions: >> a. write IOs >> b. Out-place-update >> c. non-meta page >> >> Signed-off-by: Chao Yu >> --- >> fs/f2fs/data.c | 4 +++- >> 1 file changed,

Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-03-13 Thread Michal Hocko
On Mon 13-03-17 11:55:54, Igor Mammedov wrote: > On Thu, 9 Mar 2017 13:54:00 +0100 > Michal Hocko wrote: > > [...] > > > It's major regression if you remove auto online in kernels that > > > run on top of x86 kvm/vmware hypervisors, making API cleanups > > > while breaking useful functionality do

Re: [i2c-tools PATCH v2] i2ctransfer: add new tool

2017-03-13 Thread Wolfram Sang
> > > > +.RI [ data ] > > > > +.RI [ desc > > > > +.RI [ data ]] > > > > > > You could join the previous two lines. > > > > Try it. You will miss some spaces, then. > > It works fine with quoting: > > .RI [ "desc " [ data "]] ..." > > . But ok, it's at least arguable if this is better t

Re: [Outreachy kernel] [PATCH] staging: adis16060_core: Use private driver lock instead of mlock

2017-03-13 Thread SIMRAN SINGHAL
On Mon, Mar 13, 2017 at 12:01 AM, Alison Schofield wrote: > On Sun, Mar 12, 2017 at 06:40:52PM +0530, simran singhal wrote: >> The IIO subsystem is redefining iio_dev->mlock to be used by >> the IIO core only for protecting device operating mode changes. >> ie. Changes between INDIO_DIRECT_MODE, I

Re: [PATCH] staging: adis16060_core: Use private driver lock instead of mlock

2017-03-13 Thread Lars-Peter Clausen
On 03/12/2017 02:10 PM, simran singhal wrote: > The IIO subsystem is redefining iio_dev->mlock to be used by > the IIO core only for protecting device operating mode changes. > ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. > > In this driver, mlock was being used to protect hardware

Re: [PATCH] staging: iio: ade7753: replace mlock with driver private lock

2017-03-13 Thread SIMRAN SINGHAL
On Mon, Mar 13, 2017 at 5:30 PM, Lars-Peter Clausen wrote: > On 03/12/2017 02:32 PM, simran singhal wrote: >> The IIO subsystem is redefining iio_dev->mlock to be used by >> the IIO core only for protecting device operating mode changes. >> ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* mod

Re: [PATCH] netfilter: Force fake conntrack entry to be at least 8 bytes aligned

2017-03-13 Thread Pablo Neira Ayuso
On Sat, Mar 11, 2017 at 10:12:22AM +0100, Florian Westphal wrote: > Steven Rostedt (VMware) wrote: > > Since the nfct and nfctinfo have been combined, the nf_conn structure > > must be at least 8 bytes aligned, as the 3 LSB bits are used for the > > nfctinfo. But there's a fake nf_conn structure t

[PATCH 0/7] Input: fix NULL-derefs at probe

2017-03-13 Thread Johan Hovold
This series fixes a number of NULL-pointer dereferences due to missing endpoint sanity checks that can be triggered by a malicious USB device. Johan Johan Hovold (7): Input: iforce - fix NULL-deref at probe Input: cm109 - fix NULL-deref at probe Input: ims-pcu - fix NULL-deref at probe I

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 08:42:15AM -0300, Mauro Carvalho Chehab wrote: > I don't have myself any hardware with i.MX6. Yet, I believe that > a low cost board like SolidRun Hummingboard - with comes with a > CSI interface compatible with RPi camera modules - will likely > attract users who need to r

[PATCH 4/7] Input: yealink - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: aca951a22a1d ("[PATCH] input-driver-yealink-P1K-usb-phone") Cc: stable # 2.6.14 Cc: Henk Signed-off-by: Johan Hovold --- drivers/input/misc/yealink.c | 4

[PATCH 6/7] Input: kbtab - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable Signed-off-by: Johan Hovold --- drivers/input/tablet/kbtab.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driv

[PATCH 3/7] Input: ims-pcu - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack control-interface endpoints. Fixes: 628329d52474 ("Input: add IMS Passenger Control Unit driver") Cc: stable # 3.10 Cc: Dmitry Torokhov Signed-off-by: Johan Hovold --- drivers/in

[PATCH 2/7] Input: cm109 - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: c04148f915e5 ("Input: add driver for USB VoIP phones with CM109 chipset") Cc: stable # 2.6.28 Cc: Alfred E. Heggestad Signed-off-by: Johan Hovold --- drivers/i

Re: Linux 4.10.2

2017-03-13 Thread Jiri Slaby
On 03/12/2017, 09:11 PM, Ilia Mirkin wrote: > The link shows v4.10.1 for me and says that the v4.10.2 tag is > unknown. Fetching from > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git, > I don't see a v4.10.2 tag. The head of linux-4.10.y is v4.10.1. I guess your mirror only

[PATCH 7/7] Input: sur40 - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory that lie beyond the end of the endpoint array should a malicious device lack the expected endpoints. Fixes: bdb5c57f209c ("Input: add sur40 driver for Samsung SUR40 (aka MS Surface 2.0/Pixelsense)"

[PATCH 5/7] Input: hanwang - fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: bba5394ad3bd ("Input: add support for Hanwang tablets") Cc: stable # 2.6.37 Cc: Xing Wei Cc: Jiri Kosina Signed-off-by: Johan Hovold --- drivers/input/tablet/h

RE: [PATCH] tpm: Add sysfs interface to show TPM hardware version

2017-03-13 Thread Li, Meng
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Monday, March 13, 2017 7:49 PM > To: Li, Meng > Cc: linux-kernel@vger.kernel.org; peterhu...@gmx.de; > tp...@selhorst.net; jguntho...@obsidianresearch.com; tpmdd- > de...@lists.sourceforge.net >

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