[PATCH 17/18] net, netrom: convert nr_neigh.refcount from atomic_t to refcount_t

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

[PATCH 18/18] net, netrom: convert nr_node.refcount from atomic_t to refcount_t

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

[PATCH 04/18] net, vxlan: convert vxlan_sock.refcnt from atomic_t to refcount_t

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

[PATCH 02/18] net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t

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

[PATCH 00/18] net subsystem various refcounter conversions

2017-03-17 Thread Elena Reshetova
This series, for various network subsystem components, replaces atomic_t reference counters with the new refcount_t type and API (see include/linux/refcount.h). By doing this we prevent intentional or accidental underflows or overflows that can led to use-after-free vulnerabilities. The patches a

RE: [PATCH net-next] r8152: simply the arguments

2017-03-17 Thread David Laight
From: Hayes Wang > Sent: 17 March 2017 03:00 > To: David Laight; net...@vger.kernel.org > Cc: nic_swsd; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org > Subject: RE: [PATCH net-next] r8152: simply the arguments > > David Laight [mailto:david.lai...@aculab.com] > > Sent: Thursday, March 16

RE: [RFC PATCH] iommu/dma: account pci host bridge dma_mask for IOVA allocation

2017-03-17 Thread Oza Oza
Hi Robin, Currently this patch involves multiple framework. I have coalesced the patch into one to present it as a whole as one RFC. it involves 1) pcie of framework changes 2) iommu ops 3) pci dma-ranges discussion. 4) also it talks about the bug in device tree framework (dma-ranges) (just in t

Re: [PATCH v2 2/4] platform/x86: intel_pmc_ipc: Add pmc gcr read/write api's

2017-03-17 Thread Rajneesh Bhardwaj
On Thu, Mar 16, 2017 at 05:41:34PM -0700, Kuppuswamy Sathyanarayanan wrote: > This patch adds API's to read/write PMC GC registers. > PMC dependent devices like iTCO_WDT, Telemetry has requirement > to acces GCR registers. These API's can be used for this > purpose. > > Signed-off-by: Kuppuswamy S

Re: [RESEND PATCH v6 5/6] i2c: designware: add SLAVE mode functions

2017-03-17 Thread Luis Oliveira
On 02-Mar-17 15:17, Luis Oliveira wrote: > On 02-Mar-17 14:33, Jarkko Nikula wrote: >> On 03/01/17 17:59, Luis Oliveira wrote: >>> - Changes in Kconfig to enable I2C_DESIGNWARE_SLAVE support >>> - Slave functions added to core library file >>> - Slave abort sources added to common source file >>> -

Re: [PATCH v2 2/2] fpga: Add support for Xilinx LogiCORE PR Decoupler

2017-03-17 Thread Michal Simek
On 17.3.2017 01:51, Moritz Fischer wrote: > This adds support for the Xilinx LogiCORE PR Decoupler > soft-ip that does decoupling of PR regions in the FPGA > fabric during partial reconfiguration. > > Signed-off-by: Moritz Fischer > Cc: Michal Simek > Cc: Sören Brinkmann > Cc: linux-kernel@vger

Re: [PATCH v2 1/3] arm64: dts: rockchip: add amba node support for RK3368 SoCs

2017-03-17 Thread Heiko Stuebner
Am Freitag, 17. März 2017, 11:32:42 CET schrieb Jianqun Xu: > There are two dmacs found on RK3368 SoCs, peripher dmac and bus dmac, > and the dmacs are same as previous SoCs' dmac. > > Signed-off-by: Jianqun Xu I've picked the identical patch from Huibin Hong instead, as he was here first. Hei

Re: [PATCH v12 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-03-17 Thread Ulf Hansson
On 10 March 2017 at 14:25, Jan Glauber wrote: > This core driver will be used by a MIPS platform driver > or by an ARM64 PCI driver. The core driver implements the > mmc_host_ops and slot probe & remove functions. > Callbacks are provided to allow platform specific interrupt > enable and bus locki

Re: [PATCH 3/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-03-17 Thread Patrick Bellasi
On 16-Mar 00:32, Rafael J. Wysocki wrote: > On Wed, Mar 15, 2017 at 3:40 PM, Patrick Bellasi > wrote: > > On 15-Mar 12:52, Rafael J. Wysocki wrote: > >> On Friday, March 03, 2017 12:38:30 PM Patrick Bellasi wrote: > >> > On 03-Mar 14:01, Viresh Kumar wrote: > >> > > On 02-03-17, 15:45, Patrick Bel

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

2017-03-17 Thread Russell King - ARM Linux
On Tue, Mar 14, 2017 at 08:55:36AM +0100, Hans Verkuil wrote: > We're all very driver-development-driven, and userspace gets very little > attention in general. So before just throwing in the towel we should take > a good look at the reasons why there has been little or no development: is > it beca

Re: [PATCH v2 3/4] watchdog: iTCO_wdt: Fix PMC GCR memory mapping failure

2017-03-17 Thread Rajneesh Bhardwaj
On Thu, Mar 16, 2017 at 05:41:35PM -0700, Kuppuswamy Sathyanarayanan wrote: > Currently, iTCO watchdog driver uses memory map to access > PMC_CFG GCR register. But the entire GCR address space is > already mapped in intel_scu_ipc driver. So remapping the intel_pmc_ipc driver. > GCR register in th

Re: [PATCH 4/5] mm, swap: Try kzalloc before vzalloc

2017-03-17 Thread Michal Hocko
On Fri 17-03-17 14:46:22, Huang, Ying wrote: > +void *swap_kvzalloc(size_t size) > +{ > + void *p; > + > + p = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); > + if (!p) > + p = vzalloc(size); > + > + return p; > +} please do not invent your own kvmalloc implementation when

[PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. The root cause is that the code traverses the list of specified consoles (the `console_cmdline` array) and stops at the first match. B

Re: [PATCH v2 4/4] platform/x86: intel_pmc_ipc: remove iTCO GCR mem resource

2017-03-17 Thread Rajneesh Bhardwaj
On Thu, Mar 16, 2017 at 05:41:36PM -0700, Kuppuswamy Sathyanarayanan wrote: > This patch removes the unused iTCO GCR memory resource > Looks fine to me. > Signed-off-by: Kuppuswamy Sathyanarayanan > > --- > drivers/platform/x86/intel_pmc_ipc.c | 10 -- > 1 file changed, 10 deletions(-

Re: [PATCH 0/8] Droid4 DTS update

2017-03-17 Thread Pavel Machek
Hi! > The mounting-matrix for the sensors and the touchscreen's > rotation assume, that the phone's default rotation is vertical. > I think that's sensible, because > > * Android on the phone uses this as default rotation >(like almost? all other phones) > * volume buttons make sense (in h

Re: [PATCH] net, netfilter: refcounter conversions

2017-03-17 Thread Pablo Neira Ayuso
On Thu, Mar 16, 2017 at 10:03:34AM +0200, Elena Reshetova wrote: > refcount_t type and corresponding API (see include/linux/refcount.h) > 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

Re: [PATCH 0/7] net, netfilter refcounter conversions

2017-03-17 Thread Pablo Neira Ayuso
On Thu, Mar 16, 2017 at 07:52:19AM +, Reshetova, Elena wrote: > > > On Wed, Mar 15, 2017 at 01:10:38PM +0200, Elena Reshetova wrote: > > > This series, for the netfilter subsystem, replaces atomic_t reference > > > counters with the new refcount_t type and API (see > > > include/linux/refcoun

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

2017-03-17 Thread Sakari Ailus
Hi Russell, On 03/17/17 13:42, Russell King - ARM Linux wrote: > On Tue, Mar 14, 2017 at 08:55:36AM +0100, Hans Verkuil wrote: >> We're all very driver-development-driven, and userspace gets very little >> attention in general. So before just throwing in the towel we should take >> a good look at

Re: [PATCH] pata_pcmcia: add EBSA110's PCMCIA slot support

2017-03-17 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, March 16, 2017 05:26:54 PM Tejun Heo wrote: > Hello, > > On Tue, Mar 14, 2017 at 06:50:43PM +0100, Bartlomiej Zolnierkiewicz wrote: > > +static struct ata_port_operations pcmcia_ebsa110_port_ops = { > > + .inherits = &ata_sff_port_ops, > > + .sff_dev_select

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

2017-03-17 Thread Geert Uytterhoeven
Hi Jason, On Mon, Mar 13, 2017 at 2:01 PM, Jason Cooper wrote: > On Sun, Mar 12, 2017 at 02:16:49PM +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 >> Cc:

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

2017-03-17 Thread Philipp Zabel
On Fri, 2017-03-17 at 11:42 +, Russell King - ARM Linux wrote: > On Tue, Mar 14, 2017 at 08:55:36AM +0100, Hans Verkuil wrote: > > We're all very driver-development-driven, and userspace gets very little > > attention in general. So before just throwing in the towel we should take > > a good lo

Re: [PATCH 6/7] md/raid10, LLVM: get rid of variable length array

2017-03-17 Thread Peter Zijlstra
On Thu, Mar 16, 2017 at 05:15:19PM -0700, Michael Davidson wrote: > Replace a variable length array in a struct by allocating > the memory for the entire struct in a char array on the stack. > > Signed-off-by: Michael Davidson > --- > drivers/md/raid10.c | 9 - > 1 file changed, 4 insert

Re: [PATCH 5/7] x86, boot, LLVM: Use regparm=0 for memcpy and memset

2017-03-17 Thread Peter Zijlstra
On Thu, Mar 16, 2017 at 05:15:18PM -0700, Michael Davidson wrote: > Use the standard regparm=0 calling convention for memcpy and > memset when building with clang. > > This is a work around for a long standing clang bug > (see https://llvm.org/bugs/show_bug.cgi?id=3997) where > clang always uses t

[PATCH 00/23] various networking refcount conversions, part 2

2017-03-17 Thread Elena Reshetova
This series, for the rest of network subsystem components, replaces atomic_t reference counters with the new refcount_t type and API (see include/linux/refcount.h). By doing this we prevent intentional or accidental underflows or overflows that can led to use-after-free vulnerabilities. The patch

[PATCH 01/23] net, sunrpc: convert rpc_cred.cr_count from atomic_t to refcount_t

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

[PATCH 02/23] net, sunrpc: convert gss_cl_ctx.count from atomic_t to refcount_t

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

[PATCH 03/23] net, sunrpc: convert gss_upcall_msg.count from atomic_t to refcount_t

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

[PATCH 05/23] net, ceph: convert ceph_osd.o_ref from atomic_t to refcount_t

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

[PATCH 07/23] net, rds: convert rds_ib_device.refcount from atomic_t to refcount_t

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

[PATCH 06/23] net, ceph: convert ceph_pagelist.refcnt from atomic_t to refcount_t

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

[PATCH 04/23] net, ceph: convert ceph_snap_context.nref from atomic_t to refcount_t

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

[PATCH 08/23] net, rds: convert rds_incoming.i_refcount from atomic_t to refcount_t

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

[PATCH 17/23] net, sctp: convert sctp_datamsg.refcnt from atomic_t to refcount_t

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

[PATCH 14/23] net, xfrm: convert xfrm_policy.refcnt from atomic_t to refcount_t

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

[PATCH 16/23] net, sctp: convert sctp_auth_bytes.refcnt from atomic_t to refcount_t

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

[PATCH 22/23] net, ax25: convert ax25_route.refcount from atomic_t to refcount_t

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

[PATCH 20/23] net, sctp: convert sctp_ep_common.refcnt from atomic_t to refcount_t

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

[PATCH 19/23] net, sctp: convert sctp_transport.refcnt from atomic_t to refcount_t

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

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

2017-03-17 Thread Russell King - ARM Linux
On Fri, Mar 17, 2017 at 01:02:07PM +0100, Philipp Zabel wrote: > I think most of the simple, fixed pipeline use cases could be handled by > libv4l2, by allowing to pass a v4l2 subdevice path to v4l2_open. If that > function internally would set up the media links to the > nearest /dev/video interfa

[PATCH 18/23] net, sctp: convert sctp_chunk.refcnt from atomic_t to refcount_t

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

[PATCH 21/23] net, ax25: convert ax25_uid_assoc.refcount from atomic_t to refcount_t

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

Re: [RFC][PATCH 2/4] printk: offload printing from wake_up_klogd_work_func()

2017-03-17 Thread Petr Mladek
On Mon 2017-03-06 21:45:52, Sergey Senozhatsky wrote: > Offload printing of printk_deferred() messages from IRQ context > to a schedulable printing kthread, when possible (the same way > we do it in vprintk_emit()). Otherwise, console_unlock() can > force the printing CPU to spend unbound amount of

[PATCH 23/23] net, ax25: convert ax25_cb.refcount from atomic_t to refcount_t

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

[PATCH 12/23] net, x25: convert x25_neigh.refcnt from atomic_t to refcount_t

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

[PATCH 11/23] net, x25: convert x25_route.refcnt from atomic_t to refcount_t

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

[PATCH 13/23] net, xfrm: convert xfrm_state.refcnt from atomic_t to refcount_t

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

[PATCH 15/23] net, xfrm: convert sec_path.refcnt from atomic_t to refcount_t

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

[PATCH 09/23] net, rds: convert rds_mr.r_refcount from atomic_t to refcount_t

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

[PATCH 10/23] net, rds: convert rds_message.m_refcount from atomic_t to refcount_t

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

Expected behavior of set_termios() w.r.t. TX FIFO?

2017-03-17 Thread Geert Uytterhoeven
Hi Greg, Jiri, Peter, I'm wondering what is the expected behavior of calling uart_ops.set_termios() w.r.t. characters that are already queued in the UART's TX FIFO. - Should it wait (block) until all queued characters have been transmitted, before changing the UART's settings? - Should it

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-17 Thread Aaron Lu
On Fri, Mar 17, 2017 at 08:47:08AM +0100, Michal Hocko wrote: > On Thu 16-03-17 11:36:21, Tim Chen wrote: > [...] > > Perhaps we can only do this expedited exit only when there are idle cpus > > around. > > We can use the root sched domain's overload indicator for such a quick > > check. > > Thi

Re: [PATCH 6/7] md/raid10, LLVM: get rid of variable length array

2017-03-17 Thread Alexander Potapenko
On Fri, Mar 17, 2017 at 1:08 PM, Peter Zijlstra wrote: > On Thu, Mar 16, 2017 at 05:15:19PM -0700, Michael Davidson wrote: >> Replace a variable length array in a struct by allocating >> the memory for the entire struct in a char array on the stack. >> >> Signed-off-by: Michael Davidson >> --- >>

Re: [PATCH 02/20] PCI: fix pci_remap_iospace() remap attribute

2017-03-17 Thread Liviu Dudau
On Fri, Mar 17, 2017 at 01:33:21AM +0100, Luis R. Rodriguez wrote: > On Thu, Mar 16, 2017 at 04:48:44PM -0500, Bjorn Helgaas wrote: > > [+cc Luis] > > > > On Mon, Feb 27, 2017 at 03:14:13PM +, Lorenzo Pieralisi wrote: > > > According to the PCI local bus specifications (Revision 3.0, 3.2.5), >

Re: [PATCH 6/7] md/raid10, LLVM: get rid of variable length array

2017-03-17 Thread Alexander Potapenko
On Fri, Mar 17, 2017 at 1:31 PM, Alexander Potapenko wrote: > On Fri, Mar 17, 2017 at 1:08 PM, Peter Zijlstra wrote: >> On Thu, Mar 16, 2017 at 05:15:19PM -0700, Michael Davidson wrote: >>> Replace a variable length array in a struct by allocating >>> the memory for the entire struct in a char ar

[v3 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-17 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka --- Changes for v2: - fix indent --- Changes for v3: - none --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci

Re: [PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-17 Thread Rafael Aquini
On Fri, Mar 17, 2017 at 02:46:19PM +0800, Huang, Ying wrote: > From: Huang Ying > > The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to > deadlock while waiting on discard I/O completion") fixed a deadlock in > read_swap_cache_async(). Because at that time, in swap allocation >

Re: [PATCH 6/7] md/raid10, LLVM: get rid of variable length array

2017-03-17 Thread Peter Zijlstra
On Fri, Mar 17, 2017 at 01:31:23PM +0100, Alexander Potapenko wrote: > On Fri, Mar 17, 2017 at 1:08 PM, Peter Zijlstra wrote: > > On Thu, Mar 16, 2017 at 05:15:19PM -0700, Michael Davidson wrote: > >> Replace a variable length array in a struct by allocating > >> the memory for the entire struct i

[RFC 0/6] Add user OTP support in SPI-NOR

2017-03-17 Thread Rahul Bedarkar
Many NOR flash chips comes with One-Time-Programmable area a.k.a security registers. This RFC patchset aims at adding generic OTP support in SPI-NOR to read/write user OTP area. In SPI-NOR framework, OTP specific read/write methods will use read_xfer/write_xfer hooks. So PATCH 1, reverts "unused r

[RFC 1/6] Revert "mtd: spi-nor: remove unused read_xfer/write_xfer hooks"

2017-03-17 Thread Rahul Bedarkar
This reverts commit 79c452adb159dc9abc507ea13faec8d115a78758. This was removed because hooks were never used by any driver. But with upcoming OTP support in SPI-NOR, m25p80 driver will implement it and will be used for reading/writing OTP area. Signed-off-by: Rahul Bedarkar Cc: David Woodhouse

[RFC 2/6] mtd: spi-nor: change return value of read_xfer and write_xfer

2017-03-17 Thread Rahul Bedarkar
Change return value of read_xfer and write_xfer to allow returning amount of data transferred and errors as read(2)/write(2) does. This makes read_xfer/write_xfer inline with read/write hooks. Inspired-from: Commit 59451e1233bd ("mtd: spi-nor: change return value of read/write") Signed-off-by: R

[RFC 4/6] mtd: m25p80: implement read_xfer and write_xfer

2017-03-17 Thread Rahul Bedarkar
Implement read_xfer and write_xfer interfaces provided by SPI-NOR. These will be used in upcoming OTP support in SPI-NOR to read/write OTP area. Signed-off-by: Rahul Bedarkar Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen

[RFC 3/6] mtd: m25p80: don't pass spi_nor to helper methods

2017-03-17 Thread Rahul Bedarkar
Helper methods m25p_addr2cmd, m25p80_rx_nbits and m25p_cmdsz accepts spi_nor. But with upcoming implementation of read_xfer and write_xfer, we need to pass addr_width and flash_read from cfg. Signed-off-by: Rahul Bedarkar Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut

[RFC 6/6] mtd: spi-nor: enable OTP support for s25fl016k

2017-03-17 Thread Rahul Bedarkar
s25fl016k has 3 OTP areas of 256 bytes each. First bank starts at 0x1000, second at 0x2000 and third at 0x3000. When OTP area is unlocked, it can be rewritten. Lock bit for first, second and third area is bit 3, 4, 5 of Status Register 2. Signed-off-by: Rahul Bedarkar Cc: David Woodhouse Cc: Br

[RFC 5/6] mtd: spi-nor: add support to read/write user OTP

2017-03-17 Thread Rahul Bedarkar
Many NOR flash chips have One-Time-Programmable area a.k.a security registers. This patch adds generic support to read/write user OTP. OTP specific read/write methods will use interfaces read_xfer/ write_xfer. Based on manufacturer, specific details like read, write, erase opcode can be set. SPI_

Re: [PATCH 01/23] net, sunrpc: convert rpc_cred.cr_count from atomic_t to refcount_t

2017-03-17 Thread Trond Myklebust
On Fri, 2017-03-17 at 14:10 +0200, Elena Reshetova wrote: > 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. > > Sign

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-17 Thread Peter Zijlstra
On Fri, Mar 17, 2017 at 08:47:08AM +0100, Michal Hocko wrote: > On Thu 16-03-17 11:36:21, Tim Chen wrote: > [...] > > Perhaps we can only do this expedited exit only when there are idle cpus > > around. > > We can use the root sched domain's overload indicator for such a quick > > check. > > Thi

Re: [PATCH 1/2] irqchip/gic-v3-its: bail out on already enabled LPIs

2017-03-17 Thread Marc Zyngier
On 17/03/17 10:43, Shanker Donthineni wrote: > Hi Marc, > > > On 03/17/2017 04:46 AM, Marc Zyngier wrote: >> Hi Shanker, >> >> On 16/03/17 17:25, Shanker Donthineni wrote: >>> Hi Andre, >>> >>> >>> On 03/16/2017 12:05 PM, Andre Przywara wrote: The GICv3 spec says that once LPIs have been ena

Re: [PATCH 1/2] selftests: keep consistency for uname -m usage

2017-03-17 Thread Fathi Boudra
On 15 March 2017 at 17:56, Shuah Khan wrote: > Hi Fathi, > > On 03/15/2017 07:15 AM, Fathi Boudra wrote: >> powerpc selftests allow to override ARCH for cross-compilation by making >> the first ARCH assignment weak. >> Use the same approach in breakpoints, ipc and prctl tests to: >> - keep uname

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-17 Thread Michal Hocko
On Fri 17-03-17 20:33:15, Aaron Lu wrote: > On Fri, Mar 17, 2017 at 08:47:08AM +0100, Michal Hocko wrote: > > On Thu 16-03-17 11:36:21, Tim Chen wrote: > > [...] > > > Perhaps we can only do this expedited exit only when there are idle cpus > > > around. > > > We can use the root sched domain's ov

[PATCH] arc: Keep D$ enabled to work-around incomplete SLC flushing

2017-03-17 Thread Alexey Brodkin
As reported in STAR 9001165532 if D$ is disabled SLC is not flushed correctly which leads to loses of some data that were set before the flush. That causes unexpected behavior after the flush. For now just keep D$ enabled, only flush-invalidate it before IOC setup. Signed-off-by: Alexey Brodkin

Console stops with calltrace on cavium octeon2 68XX EVB

2017-03-17 Thread Arun Chandran
Hi, I got this on my cavium octeon2 68XX EVB console when booting the latest kernel(4.11.0-rc2-00235-gd528ae0). [ cut here ] WARNING: CPU: 0 PID: 1 at drivers/tty/serial/serial_core.c:442 uart_get_baud_rate+0x114/0x1e8 Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not t

Re: [PATCH 01/23] net, sunrpc: convert rpc_cred.cr_count from atomic_t to refcount_t

2017-03-17 Thread Jeff Layton
On Fri, 2017-03-17 at 12:50 +, Trond Myklebust wrote: > On Fri, 2017-03-17 at 14:10 +0200, Elena Reshetova wrote: > > 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

Re: [sched/core] 8a8c69c327: WARNING: CPU: 0 PID: 8 at kernel/locking/lockdep.c:3548 lock_release

2017-03-17 Thread Wanpeng Li
2017-03-17 4:02 GMT+08:00 kernel test robot : > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core > > commit 8a8c69c32778865affcedc2111bb5d938b50516f > Author: Peter Zijlstra > Aut

Re: Does braille console work?

2017-03-17 Thread Steven Rostedt
On Fri, 17 Mar 2017 10:40:51 +0100 Samuel Thibault wrote: > Petr Mladek, on ven. 17 mars 2017 10:35:44 +0100, wrote: > > Anyway, the feature is not usable at the moment. Samuel, would > > you be able to fix and test it, please? > > Sure, it's already on my TODO list, I will do when I get the t

Re: [f2fs-dev] [PATCH 2/2] f2fs: don't allow atomic writes for not regular files

2017-03-17 Thread Jaegeuk Kim
On 03/17, Chao Yu wrote: > On 2017/3/17 10:09, Jaegeuk Kim wrote: > > The atomic writes only supports regular files for database. > > > > Signed-off-by: Jaegeuk Kim > > --- > > fs/f2fs/file.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c > > i

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

2017-03-17 Thread Jason Cooper
Hi Geert, On Fri, Mar 17, 2017 at 01:02:26PM +0100, Geert Uytterhoeven wrote: > In this particular case both maintainers are the same, but this is not true in > general. Hence deriving a platform maintainer from a Linux subsystem specific > binding document is the wrong way around. Ack. thx, J

Re: [PATCH net] bridge: ebtables: fix reception of frames DNAT-ed to bridge device

2017-03-17 Thread Pablo Neira Ayuso
On Wed, Mar 15, 2017 at 11:06:05PM +0100, Pablo Neira Ayuso wrote: > On Wed, Mar 15, 2017 at 10:16:19PM +0100, Linus Lüssing wrote: > > On Wed, Mar 15, 2017 at 07:15:39PM +0100, Pablo Neira Ayuso wrote: > > > Could you update ebtables dnat to check if the ethernet address > > > matches the one of t

[v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with an SoC specific compatible - remo

[v3 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka --- Changes for v2: - file was created in v2. It was a part of driver source file patch. - most delays were moved from

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-17 Thread Peter Zijlstra
On Fri, Mar 17, 2017 at 08:33:15PM +0800, Aaron Lu wrote: > On Fri, Mar 17, 2017 at 08:47:08AM +0100, Michal Hocko wrote: > > On Thu 16-03-17 11:36:21, Tim Chen wrote: > > [...] > > > Perhaps we can only do this expedited exit only when there are idle cpus > > > around. > > > We can use the root s

Re: Console stops with calltrace on cavium octeon2 68XX EVB

2017-03-17 Thread Andy Shevchenko
On Fri, 2017-03-17 at 18:30 +0530, Arun Chandran wrote: > Hi, > > I got this on my cavium octeon2 68XX EVB console when booting the > latest kernel(4.11.0-rc2-00235-gd528ae0). > And I bisected and reached at this commit > "6a171b2 serial: 8250_dw: Allow hardware flow control to be used" > > When

Re: Schedule affinity_notify work while migrating IRQs during hot plug

2017-03-17 Thread Thomas Gleixner
On Fri, 17 Mar 2017, Sodagudi Prasad wrote: > On 2017-03-13 13:19, Thomas Gleixner wrote: > > Can you actually see the difference between these functions? There is a > > damned good reason WHY this calls irq_do_set_affinity(). > > Other option is that, adding an argument to irq_do_set_affinity() a

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-17 Thread Michal Hocko
On Fri 17-03-17 13:53:33, Peter Zijlstra wrote: > On Fri, Mar 17, 2017 at 08:47:08AM +0100, Michal Hocko wrote: > > On Thu 16-03-17 11:36:21, Tim Chen wrote: > > [...] > > > Perhaps we can only do this expedited exit only when there are idle cpus > > > around. > > > We can use the root sched domai

Re: kexec regression since 4.9 caused by efi

2017-03-17 Thread Ard Biesheuvel
On 17 March 2017 at 02:09, Dave Young wrote: > On 03/16/17 at 12:41pm, Matt Fleming wrote: >> On Mon, 13 Mar, at 03:37:48PM, Dave Young wrote: >> > >> > Omar, could you try below patch? Looking at the efi_mem_desc_lookup, it is >> > not >> > correct to be used in efi_arch_mem_reserve, if it passe

Re: [RESEND PATCH v6 5/6] i2c: designware: add SLAVE mode functions

2017-03-17 Thread Jarkko Nikula
On 03/17/17 13:24, Luis Oliveira wrote: On 02-Mar-17 15:17, Luis Oliveira wrote: On 02-Mar-17 14:33, Jarkko Nikula wrote: On 03/01/17 17:59, Luis Oliveira wrote: - Changes in Kconfig to enable I2C_DESIGNWARE_SLAVE support - Slave functions added to core library file - Slave abort sources added

Re: [sched/core] 8a8c69c327: WARNING: CPU: 0 PID: 8 at kernel/locking/lockdep.c:3548 lock_release

2017-03-17 Thread Wanpeng Li
2017-03-17 21:02 GMT+08:00 Wanpeng Li : > 2017-03-17 4:02 GMT+08:00 kernel test robot : >> Greetings, >> >> 0day kernel testing robot got the below dmesg and the first bad commit is >> >> https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core >> >> commit 8a8c69c32778865affcedc2111b

Re: [PATCH 2/5 v2] ftrace/x86-32: Move the ftrace specific code out of entry_32.S

2017-03-17 Thread Steven Rostedt
On Thu, 16 Mar 2017 13:20:10 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The function tracing hook code for ftrace is not an entry point from > userspace and does not belong in the entry_*.S files. It has already been > moved out of entry_64.S. This moves it out of entry_3

Re: [PATCH v5 untested] kvm: better MWAIT emulation for guests

2017-03-17 Thread Gabriel L. Somlo
On Fri, Mar 17, 2017 at 04:03:59AM +0200, Michael S. Tsirkin wrote: > On Thu, Mar 16, 2017 at 05:14:15PM -0400, Gabriel L. Somlo wrote: > > On Thu, Mar 16, 2017 at 04:17:11PM -0400, Gabriel L. Somlo wrote: > > > On Thu, Mar 16, 2017 at 09:27:56PM +0200, Michael S. Tsirkin wrote: > > > > On Thu, Mar

Re: kexec regression since 4.9 caused by efi

2017-03-17 Thread Matt Fleming
On Fri, 17 Mar, at 10:09:51AM, Dave Young wrote: > > Matt, I think it should be fine although I think the md type checking in > efi_mem_desc_lookup() is causing confusion and not easy to understand.. Could you make that a separate patch if you think of improvements there? > How about move the i

Re: [RFC PATCH] rework memory hotplug onlining

2017-03-17 Thread Michal Hocko
On Wed 15-03-17 10:13:47, Michal Hocko wrote: [...] > It seems that all this is just started by the semantic introduced by > 9d99aaa31f59 ("[PATCH] x86_64: Support memory hotadd without sparsemem") > quite some time ago. When the movable onlinining has been introduced it > just built on top of this

Re: [PATCH 1/2] serdev: Add serdev_device_write subroutine

2017-03-17 Thread Andrey Smirnov
On Thu, Mar 16, 2017 at 8:09 AM, Andy Shevchenko wrote: > On Thu, Mar 16, 2017 at 4:23 PM, Andrey Smirnov > wrote: >> On Tue, Mar 14, 2017 at 4:17 PM, Andy Shevchenko >> wrote: >>> On Tue, Mar 14, 2017 at 3:48 PM, Andrey Smirnov >>> wrote: > +int serdev_device_write(struct serdev_device *s

Re: [PATCH v12 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-03-17 Thread Jan Glauber
On Fri, Mar 17, 2017 at 12:24:57PM +0100, Ulf Hansson wrote: > On 10 March 2017 at 14:25, Jan Glauber wrote: > > This core driver will be used by a MIPS platform driver > > or by an ARM64 PCI driver. The core driver implements the > > mmc_host_ops and slot probe & remove functions. > > Callbacks a

Re: [PATCH v12 3/9] mmc: cavium: Add MMC platform driver for Octeon SOCs

2017-03-17 Thread Ulf Hansson
On 10 March 2017 at 14:25, Jan Glauber wrote: > Add a platform driver for Octeon MIPS SOCs. > > Signed-off-by: Jan Glauber > Signed-off-by: David Daney > Signed-off-by: Steven J. Hill > --- > drivers/mmc/host/Kconfig | 10 ++ > drivers/mmc/host/Makefile | 2 + > d

[PATCH] Fix style warnings in drivers/staging/most/aim-v4l2

2017-03-17 Thread Chandra Annamaneni
Enclosed is a patch to the file video.c. It only fixes style warning flagged by checkpatch.pl. Please let me know if anything else needs to be done. Signed-off-by: Chandra Annamaneni Thanks. Chandra diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.

Re: [PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
On 03/17/2017 02:43 PM, Aleksey Makarov wrote: [..] > @@ -2457,40 +2491,50 @@ void register_console(struct console *newcon) > } > > /* > - * See if this console matches one we selected on > - * the command line. > + * See if this console matches one we sel

Re: [PATCH] pata_pcmcia: add EBSA110's PCMCIA slot support

2017-03-17 Thread Tejun Heo
Hello, On Fri, Mar 17, 2017 at 12:59:56PM +0100, Bartlomiej Zolnierkiewicz wrote: > There is no support for this device in the upstream ide driver but > Russell has a hacky patch to make it work by redefining inb()/outb() > operations globally for the whole ide subsystem, please see: > > https://

  1   2   3   4   5   6   7   >