Re: [PATCH v2] net: Add Qualcomm IPC router

2016-04-27 Thread Bjorn Andersson
On Wed 27 Apr 09:22 PDT 2016, David Miller wrote: > From: Bjorn Andersson > Date: Tue, 26 Apr 2016 22:48:05 -0700 > > > + rc = qcom_smd_send(qdev->channel, skb->data, skb->len); > > I truly dislike adding networking protocols that depend upon some > piece of infrastructure that only some plat

Re: [PATCH 1/3] DRA7: Fix clock data for gmac_gmii_ref_clk_div

2016-04-27 Thread Tony Lindgren
* Tony Lindgren [160427 09:39]: > * Tero Kristo [160427 04:22]: > > On 26/04/16 20:54, J.D. Schroeder wrote: > > >From: "J.D. Schroeder" > > > > > >This commit fixes the clock data inside the DRA7xx clocks device tree > > >structure for the gmac_gmii_ref_clk_div clock. This clock is actually > >

[PULL REQUEST] i2c for 4.6

2016-04-27 Thread Wolfram Sang
Linus, I2C has one buildfix, one ABBA deadlock fix and three simple 'add ID' patches for you. Please pull. Thanks, Wolfram The following changes since commit bf16200689118d19de1b8d2a3c314fc21f5dc7bb: Linux 4.6-rc3 (2016-04-10 17:58:30 -0700) are available in the git repository at: gi

Re: [PATCH] mm/zswap: use workqueue to destroy pool

2016-04-27 Thread Dan Streetman
On Tue, Apr 26, 2016 at 8:58 PM, Sergey Senozhatsky wrote: > Hello, > > On (04/26/16 17:08), Dan Streetman wrote: > [..] >> -static void __zswap_pool_release(struct rcu_head *head) >> +static void __zswap_pool_release(struct work_struct *work) >> { >> - struct zswap_pool *pool = container_of(

[PATCH v5] mm: SLAB freelist randomization

2016-04-27 Thread Thomas Garnier
Provides an optional config (CONFIG_SLAB_FREELIST_RANDOM) to randomize the SLAB freelist. The list is randomized during initialization of a new set of pages. The order on different freelist sizes is pre-computed at boot for performance. Each kmem_cache has its own randomized freelist. Before pre-co

Re: [PATCH V4 16/18] coresight: tmc: implementing TMC-ETF AUX space API

2016-04-27 Thread Mathieu Poirier
On 27 April 2016 at 05:21, Suzuki K Poulose wrote: > On 26/04/16 23:10, Mathieu Poirier wrote: >> >> This patch implement the AUX area interfaces required to >> use the TMC (configured as an ETF) from the Perf sub-system. >> >> The heuristic is heavily borrowed from the ETB10 implementation. >> >>

Re: [PATCH] x86/efi-bgrt: Switch all pr_err() to pr_debug() for invalid BGRT

2016-04-27 Thread Josh Boyer
On Wed, Apr 27, 2016 at 1:05 PM, Josh Triplett wrote: > On Wed, Apr 27, 2016 at 11:20:26AM -0400, Josh Boyer wrote: >> On Wed, Apr 27, 2016 at 10:57 AM, Môshe van der Sterre wrote: >> > >> > On 04/27/2016 03:56 PM, Josh Boyer wrote: >> >> >> >> On Wed, Apr 27, 2016 at 9:26 AM, Môshe van der Sterr

Re: [PATCH V4 16/18] coresight: tmc: implementing TMC-ETF AUX space API

2016-04-27 Thread Suzuki K Poulose
On 27/04/16 18:22, Mathieu Poirier wrote: On 27 April 2016 at 05:21, Suzuki K Poulose wrote: On 26/04/16 23:10, Mathieu Poirier wrote: This patch implement the AUX area interfaces required to use the TMC (configured as an ETF) from the Perf sub-system. The heuristic is heavily borrowed from

Re: [PATCH] tty: provide tty_name() even without CONFIG_TTY

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 12:20:02 Paul Moore wrote: > > diff --git a/include/linux/tty.h b/include/linux/tty.h > > index 3b09f235db66..17b247c94440 100644 > > --- a/include/linux/tty.h > > +++ b/include/linux/tty.h > > @@ -371,6 +371,7 @@ extern void proc_clear_tty(struct task_struct *p); > > ex

Linux 3.12.59

2016-04-27 Thread Jiri Slaby
I'm announcing the release of the 3.12.59 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 3.16 098/217] s390/pci: enforce fmb page boundary rule

2016-04-27 Thread Sebastian Ott
On Wed, 27 Apr 2016, Ben Hutchings wrote: > 3.16.35-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Sebastian Ott > > commit 80c544ded25ac14d7cc3e555abb8ed2c2da99b84 upstream. > > The function measurement block must not cross a page boundar

[PATCH 1/3] lightnvm: do not free unused metadata on rrpc

2016-04-27 Thread Javier González
rrpc does not save any metadata on a given request. Thus, do not attempt to free the metadata dma region. Signed-off-by: Javier González --- drivers/lightnvm/rrpc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index c7fef71..ffcfee6 10064

[PATCH 2/3] lightnvm: enable metadata to be sent to device

2016-04-27 Thread Javier González
Enable metadata to be sent to the device through the metadata field on the physical rw nvme command. When a single ppa is sent to the device, a 64-bit integer can be sent as metadata; when a ppa list is sent, a 64-bit integer list mapping to the ppa list can be used to send metadata. Signed-off-by

[PATCH 3/3] lightnvm: rename dma helper functions

2016-04-27 Thread Javier González
Until now, the dma pool have been exclusively used to allocate the ppa list being sent to the device. In pblk (upcoming), we use these pools to allocate metadata too. Thus, we generalize the names of some variables on the dma helper functions to make the code more readable. Signed-off-by: Javier G

Re: [PATCH V6 02/13] pci, acpi: Provide generic way to assign bus domain number.

2016-04-27 Thread Lorenzo Pieralisi
On Wed, Apr 27, 2016 at 11:44:53AM -0500, Bjorn Helgaas wrote: > On Wed, Apr 27, 2016 at 12:17:58PM +0100, Lorenzo Pieralisi wrote: > > On Tue, Apr 26, 2016 at 09:26:49PM -0500, Bjorn Helgaas wrote: > > > On Fri, Apr 15, 2016 at 07:06:37PM +0200, Tomasz Nowicki wrote: > > > > As we now have valid P

Re: [PATCH 2/2 v6] ASoC: dwc: Update DOCUMENTATION for I2S Driver

2016-04-27 Thread Jose Abreu
Hi Mark, Sorry. Follows bellow. On 27-04-2016 11:05, Jose Abreu wrote: > This patch updates documentation for the Designware I2S > driver. > > Signed-off-by: Jose Abreu > Acked-by: Rob Herring > Cc: Rob Herring > Cc: Carlos Palminha > Cc: Alexey Brodkin > Cc: devicet...@vger.kernel.org > Cc:

[PATCH] drm/i915: Fix enc_to_dig_port() for MST encoders

2016-04-27 Thread Lyude
For MST encoders, the encoder struct is stored in the intel_dp_mst struct, not a intel_digital_port struct. This fixes issues with hotplugging MST displays that support MST audio, where hotplugging had a surprisingly good chance of accidentally overwriting other parts of the kernel leading to seem

[RFC PATCH] lightnvm: expose configuration through sysfs

2016-04-27 Thread Simon A. F. Lund
Hi, Follow up on preparation patches, here is a patch exporting hardware attributes of open-channel SSDs and LightNVM configuration to user-space through sysfs. Thanks, Simon A. F. Lund (1): lightnvm: expose configuration through sysfs Documentation/ABI/testing/sysfs-lightnvm | 244 +++

Re: [PATCH 2/2 v6] ASoC: dwc: Update DOCUMENTATION for I2S Driver

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 06:32:42PM +0100, Jose Abreu wrote: > Hi Mark, > > Sorry. Follows bellow. > > On 27-04-2016 11:05, Jose Abreu wrote: I can't apply a quote of a patch, please resend. signature.asc Description: PGP signature

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-04-27 Thread Mark Rutland
On Wed, Apr 27, 2016 at 04:34:53PM +0100, Jon Hunter wrote: > > On 22/04/16 12:22, Mark Rutland wrote: > > [snip] > > I am not sure if it will be popular to add Tegra specific clock names > to the GIC DT docs. However, in that case, then possibly the only > alternative is to move

Re: [f2fs-dev] [PATCH 7/7] f2fs: should check the remaining dentry bits

2016-04-27 Thread Jaegeuk Kim
Looks better. Merged. :) Thanks, On Wed, Apr 27, 2016 at 10:22:20PM +0800, Chao Yu wrote: > Hi Jaegeuk, Yunlei, > > On 2016/4/26 8:07, Jaegeuk Kim wrote: > > Let's consider a race condition between f2fs_add_regular_entry and > > find_target_dentry. > > > > 1. > > - f2fs_add_regular_entry update

Re: [RFC PATCH] lightnvm: expose configuration through sysfs

2016-04-27 Thread Greg KH
On Wed, Apr 27, 2016 at 10:18:57AM -0700, Simon A. F. Lund wrote: > --- a/include/linux/lightnvm.h > +++ b/include/linux/lightnvm.h > @@ -174,6 +174,7 @@ struct nvm_id_group { > u16 cpar; > > struct nvm_id_lp_tbl lptbl; > + struct kobject kobj; > }; > > struct nvm_addr_for

Re: [PATCH 1.1/2] xfs: abstract PF_FSTRANS to PF_MEMALLOC_NOFS

2016-04-27 Thread Andreas Dilger
On Apr 27, 2016, at 5:54 AM, Michal Hocko wrote: > > From: Michal Hocko > > xfs has defined PF_FSTRANS to declare a scope GFP_NOFS semantic quite > some time ago. We would like to make this concept more generic and use > it for other filesystems as well. Let's start by giving the flag a > more

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 19:53:51 Felipe Balbi wrote: > Arnd Bergmann writes: > > On Wednesday 27 April 2016 16:50:19 Catalin Marinas wrote: > >> On Wed, Apr 27, 2016 at 04:11:17PM +0200, Arnd Bergmann wrote: > >> > On Wednesday 27 April 2016 14:59:00 Catalin Marinas wrote: > >> > > > >> > > I

[PATCH v2] lib/mpi: Fix kernel unaligned access in mpi_write_to_sgl

2016-04-27 Thread Sowmini Varadhan
Commit 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers") added mpi_write_to_sgl() which generates traps due to unaligned access on some platforms like sparc. Fix this by using the get_unaligned* and put_unaligned* functions. Fixes: 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers") Signed-off-by: Sowmini

Re: random(4) changes

2016-04-27 Thread Stephan Mueller
Am Montag, 25. April 2016, 12:35:32 schrieb Andi Kleen: Hi Andi, > > > > If it is the latter, can you explain where the scalability issue comes > > > > in? > > > > > > A single pool which is locked/written to does not scale. Larger systems > > > need multiple pools > > > > That would imply that

[PATCH] mfd: vexpress: add !ARCH_USES_GETTIMEOFFSET dependency

2016-04-27 Thread Arnd Bergmann
The MFD_VEXPRESS_SYSREG driver selects CLKSRC_MMIO, which in turn conflicts with ARCH_USES_GETTIMEOFFSET, causing a harmless Kconfig warning when it is set: warning: (ARCH_MVEBU && ARCH_DIGICOLOR && ARCH_GEMINI && ARCH_KEYSTONE && ARCH_MOXART && ARCH_MXS && PLAT_SPEAR && ARCH_SUNXI && ARCH_TEGRA

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-04-27 Thread Alan Stern
On Wed, 27 Apr 2016, Arnd Bergmann wrote: > I've looked at the usb HCD code now and see this: > > struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver, > struct device *dev, const char *bus_name, > struct usb_hcd *primary_hcd) > { > ... >

[RFC PATCH] lightnvm: expose configuration through sysfs

2016-04-27 Thread Simon A. F. Lund
An open-channel SSD exposes its geometry to the host. Allowing the host to know the boundaries of the LUNs, flash blocks, and flags pages, enabling the host to write to its physical media. The configuration information is kept within the kernel, and not exported to user-space for consumption. This

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-04-27 Thread Jan Kara
Hi, On Tue 26-04-16 09:55:23, Jens Axboe wrote: > Since the dawn of time, our background buffered writeback has sucked. > When we do background buffered writeback, it should have little impact > on foreground activity. That's the definition of background activity... > But for as long as I can reme

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-04-27 Thread Geert Uytterhoeven
On Wed, Apr 27, 2016 at 7:38 PM, Mark Rutland wrote: > On Wed, Apr 27, 2016 at 04:34:53PM +0100, Jon Hunter wrote: >> On 22/04/16 12:22, Mark Rutland wrote: >> [snip] >> >> I am not sure if it will be popular to add Tegra specific clock names >> to the GIC DT docs. However, in that case,

Re: random(4) changes

2016-04-27 Thread George Spelvin
Andi Kleen wrote: > There is also the third problem of horrible scalability of /dev/random > output on larger systems, for which patches are getting ignored. I came up with some very pretty code to fix this, which tried to copy_to_user with a lock held. After all my attempts to fix that fatal fla

[PATCH V4.1 16/17] coresight: tmc: implementing TMC-ETF AUX space API

2016-04-27 Thread Mathieu Poirier
This patch implement the AUX area interfaces required to use the TMC (configured as an ETF) from the Perf sub-system. The heuristic is heavily borrowed from the ETB10 implementation. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 199 +++

[PATCH v6 06/14] arm64, numa: rework numa_add_memblk()

2016-04-27 Thread David Daney
From: Hanjun Guo Rework numa_add_memblk() to update the parameter "u64 size" to "u64 end", this will make it consistent with x86 and simplifies the arm64 ACPI NUMA code to be added later. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- arch/arm64/mm/num

[PATCH v6 11/14] acpi, numa: Move acpi_numa_memory_affinity_init() to drivers/acpi/numa.c

2016-04-27 Thread David Daney
From: Hanjun Guo acpi_numa_memory_affinity_init() will be reused by arm64. Move it to drivers/acpi/numa.c to facilitate reuse. No code change. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- arch/x86/mm/srat.c | 57 ---

[PATCH v6 14/14] acpi, numa: Enable ACPI based NUMA on ARM64

2016-04-27 Thread David Daney
From: Hanjun Guo Add function needed for cpu to node mapping, and enable ACPI based NUMA for ARM64 in Kconfig Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter [david.da...@cavium.com added ACPI_NUMA default to y for ARM64] Signed-off-by: David Daney --- drivers/acpi/Kconfig | 4 ++--

[PATCH v6 12/14] acpi, numa, srat: Improve SRAT error detection and add messages.

2016-04-27 Thread David Daney
From: David Daney Loosely based on code from Robert Richter and Hanjun Guo. Improve out of range node detection as well as allow for Larger SRAT entities. Add printing of nice messages. Signed-off-by: David Daney --- drivers/acpi/numa.c | 15 +++ 1 file changed, 11 insertions(+),

Re: [PATCH 3.2 085/115] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2016-04-27 Thread Ben Hutchings
On Wed, 2016-04-27 at 08:59 -0700, Ben Greear wrote: > On 04/26/2016 04:02 PM, Ben Hutchings wrote: > > > > 3.2.80-rc1 review patch.  If anyone has any objections, please let me know. > I would be careful about this.  It causes regressions when sending > PACKET_SOCKET buffers from user-space to ve

[PATCH v6 10/14] acpi, numa: remove unneeded acpi_numa=1

2016-04-27 Thread David Daney
From: Hanjun Guo acpi_numa is default to 0, it's set to -1 when disable acpi numa or when a bad SRAT is parsed, and it's only consumed in srat_disabled() (compare it with 0) to continue parse the SRAT or not, so we don't need to set acpi_numa to 1 when we get a valid SRAT entry. Signed-off-by: H

[PATCH v6 13/14] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-04-27 Thread David Daney
From: Hanjun Guo Introduce a new file to hold ACPI based NUMA information parsing from SRAT and SLIT. SRAT includes the CPU ACPI ID to Proximity Domain mappings and memory ranges to Proximity Domain mapping. SLIT has the information of inter node distances(relative number for access latency).

[PATCH v6 08/14] x86, acpi, numa: cleanup acpi_numa_processor_affinity_init()

2016-04-27 Thread David Daney
From: Hanjun Guo Cleanup acpi_numa_processor_affinity_init() in preparation for its move to drivers/acpi/numa.c. It will be reused by arm64, this has no functional change. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- arch/x86/mm/srat.c | 21 +---

Re: [PATCH v2 0/5] x86 switch_mm uninlining and IRQ improvements

2016-04-27 Thread Borislav Petkov
On Tue, Apr 26, 2016 at 09:39:04AM -0700, Andy Lutomirski wrote: > Hi all- > > I've been playing with context switching lately, and I'm going to start > sending out some of the patches that should be mostly self-contained and > ready for -tip. > > Here's a little batch to start improving switch_m

[PATCH v6 07/14] arm64, numa: Cleanup NUMA disabled messages.

2016-04-27 Thread David Daney
From: David Daney As noted by Dennis Chen, we don't want to print "No NUMA configuration found" if NUMA was forced off from the command line. Change the type of numa_off to bool, and clean up printing code. Print "NUMA disabled" if forced off on command line and "No NUMA configuration found" if

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-04-27 Thread Arnd Bergmann
On Wednesday 27 April 2016 13:59:13 Alan Stern wrote: > On Wed, 27 Apr 2016, Arnd Bergmann wrote: > > > I've looked at the usb HCD code now and see this: > > > > struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver, > > struct device *dev, const char *bus_name, > >

[PATCH v6 01/14] acpi, numa: Use pr_fmt() instead of printk

2016-04-27 Thread David Daney
From: Hanjun Guo Just do some cleanups to replace printk with pr_fmt(). Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- drivers/acpi/numa.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/numa.c b/driv

[PATCH v6 09/14] acpi, numa: move bad_srat() and srat_disabled() to drivers/acpi/numa.c

2016-04-27 Thread David Daney
From: Hanjun Guo bad_srat() and srat_disabled() are shared by x86 and follow-on arm64 patches. Move them to drivers/acpi/numa.c in preparation for arm64 support. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter [david.da...@cavium.com moved definitions to drivers/acpi/numa.c] Signed-of

Re: [PATCH RESEND 2/2] f2fs: disable preemption when waiting on all pages writeback

2016-04-27 Thread Jaegeuk Kim
Hi Chao, On Wed, Apr 27, 2016 at 09:41:48PM +0800, Chao Yu wrote: > From: Chao Yu > > The following condition can happen in a preemptible kernel, it may cause > checkpointer hunging. > > CPU0: CPU1: > - write_checkpoint > - do_checkpoint >- wait_on_all_pag

[PATCH v6 02/14] acpi, numa: Replace ACPI_DEBUG_PRINT() with pr_debug()

2016-04-27 Thread David Daney
From: Hanjun Guo ACPI_DEBUG_PRINT is a bit fragile in acpi/numa.c, the first thing is that component ACPI_NUMA(0x8000) is not described in the Documentation/acpi/debug.txt, and even not defined in the struct acpi_dlayer acpi_debug_layers which we can not dynamically enable/disable it with /sy

[PATCH v6 05/14] acpi, numa: move acpi_numa_slit_init() to drivers/acpi/numa.c

2016-04-27 Thread David Daney
From: Hanjun Guo Identical implementations of acpi_numa_slit_init() are used by both x86 and follow-on arm64 support. Move it to drivers/acpi/numa.c, and guard with CONFIG_X86 || CONFIG_ARM64 because ia64 has its own architecture specific implementation. No code change. Signed-off-by: Hanjun G

[PATCH] i2c: Raise SDA for each received bit, if necessary

2016-04-27 Thread Thomas Zimmermann
Some I2C adapters don't raise SDA by themselves when sending a bit. This behavior can be seen with the DDC channel of SiS 300 graphics cards. This patch adds the flag |set_sdahi| to |struct i2c_algo_bit_data|. With the flags set to true, the I2C bit algo will raise SDA before reading each bit from

[PATCH v6 04/14] acpi, numa: Move acpi_numa_arch_fixup() to ia64 only

2016-04-27 Thread David Daney
From: Robert Richter Since acpi_numa_arch_fixup() is only used in arch ia64, move it there to make a generic interface easier. This avoids empty function stubs or some complex kconfig options for x86 and arm64. Signed-off-by: Robert Richter Reviewed-by: Hanjun Guo Signed-off-by: David Daney -

[PATCH v6 03/14] acpi, numa: remove duplicate NULL check

2016-04-27 Thread David Daney
From: Hanjun Guo The argument "header" for acpi_table_print_srat_entry() is always checked before the function is called, it's duplicate to check it again, remove it. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- drivers/acpi/numa.c | 3 --- 1 file ch

[PATCH v6 00/14] ACPI NUMA support for ARM64

2016-04-27 Thread David Daney
From: David Daney Based on git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core branch at commit 643d703d2d2d ("arm64: compat: Check for AArch32 state") ACPI 5.1 already introduced NUMA support for ARM64, which can get the NUMA domain information from SRAT and SLIT table,

Re: [PATCH 3.16 098/217] s390/pci: enforce fmb page boundary rule

2016-04-27 Thread Ben Hutchings
On Wed, 2016-04-27 at 19:27 +0200, Sebastian Ott wrote: > On Wed, 27 Apr 2016, Ben Hutchings wrote: > > > > 3.16.35-rc1 review patch.  If anyone has any objections, please let me know. > > > > -- > > > > From: Sebastian Ott > > > > commit 80c544ded25ac14d7cc3e555abb8ed2c2da99b8

Re: [RFC/PATCHv2 v2 2/4] dma-mapping: Add dma_remap() APIs

2016-04-27 Thread Laura Abbott
On 04/27/2016 08:25 AM, Catalin Marinas wrote: On Fri, Apr 22, 2016 at 05:35:16PM -0700, Stephen Boyd wrote: Quoting Catalin Marinas (2016-04-21 03:35:12) On Tue, Apr 19, 2016 at 06:04:27PM -0700, Stephen Boyd wrote: From: Laura Abbott Some systems are memory constrained but they need to loa

[PATCH v3 5/7] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
This adds fbdev deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The driver has to provide a (struct drm_framebuffer_funcs *)->dirty() callback to get notification of fbdev framebuffer changes. If the dirty() hook is set, then fb_deferred_io is set up automatically by the helper. Two funct

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-04-27 Thread Jens Axboe
On 04/27/2016 12:01 PM, Jan Kara wrote: Hi, On Tue 26-04-16 09:55:23, Jens Axboe wrote: Since the dawn of time, our background buffered writeback has sucked. When we do background buffered writeback, it should have little impact on foreground activity. That's the definition of background activi

[PATCH v3 7/7] drm/udl: Use drm_fb_helper deferred_io support

2016-04-27 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Noralf Trønn

[PATCH v3 1/7] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule a worker that will call the (struct drm_framebuffer *)->funcs->dirty() function. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly.

[PATCH v3 2/7] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule a worker that will call the (struct drm_framebuffer *)->funcs->dirty() function. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly.

[PATCH v3 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes --- Changes since v2: - FB_DEFERRED_IO is n

[PATCH v3 4/7] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-27 Thread Noralf Trønnes
Export fb_deferred_io_mmap so drivers can change vma->vm_page_prot. When the framebuffer memory is allocated using dma_alloc_writecombine() instead of vmalloc(), I get cache syncing problems on ARM. This solves it: static int drm_fbdev_cma_deferred_io_mmap(struct fb_info *info,

[PATCH v3 0/7] drm: Add fbdev deferred io support to helpers

2016-04-27 Thread Noralf Trønnes
This patchset adds fbdev deferred io support to drm_fb_helper and drm_fb_cma_helper. It channels fbdev mmap and fb_{write,fillrect,copyarea,imageblit} damage through the (struct drm_framebuffer_funcs)->dirty callback on the fb_helper framebuffer which will always run in process context. I have al

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 04:15:35PM +0100, David Woodhouse wrote: > On Wed, 2016-04-27 at 18:05 +0300, Michael S. Tsirkin wrote: > > > > I really don't get it. > > > > There's exactly one device that works now and needs the work-around and > > so that we need to support, and that is virtio. It hap

[PATCH v3 6/7] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-27 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper which mirrors the one qxl has had. This patch has only been compile tested. Signed-off-by: Noralf Trønnes --- Changes since v2: - The drm_clip_rect_{width/height} functions are dropped, so open code it Changes since v1: - Add FIXME about specia

Re: [RFC PATCH] lightnvm: expose configuration through sysfs

2016-04-27 Thread Matias Bjørling
On 04/27/2016 07:41 PM, Greg KH wrote: On Wed, Apr 27, 2016 at 10:18:57AM -0700, Simon A. F. Lund wrote: --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -174,6 +174,7 @@ struct nvm_id_group { u16 cpar; struct nvm_id_lp_tbl lptbl; + struct kobject kob

Re: [PATCH] tty: provide tty_name() even without CONFIG_TTY

2016-04-27 Thread Peter Hurley
On 04/27/2016 10:24 AM, Arnd Bergmann wrote: > On Wednesday 27 April 2016 12:20:02 Paul Moore wrote: >>> diff --git a/include/linux/tty.h b/include/linux/tty.h >>> index 3b09f235db66..17b247c94440 100644 >>> --- a/include/linux/tty.h >>> +++ b/include/linux/tty.h >>> @@ -371,6 +371,7 @@ extern void

Re: [BUG] x86/efi: MMRs no longer properly mapped after switch to isolated page table

2016-04-27 Thread Alex Thorlton
On Wed, Apr 27, 2016 at 10:41:32AM -0500, Alex Thorlton wrote: Adding Boris to Cc. > Hey guys, > > We've hit an issue that we haven't seen before on recent community > kernels. Hoping that you can provide some insight. > > Late last week I hit this bad paging request in uv_system_init on one o

[PATCH] coresight: etb10: adjust read pointer only when needed

2016-04-27 Thread Mathieu Poirier
The read pointer (read_ptr) needs to be adjusted only if its value has gone beyond the length of the memory buffer. Reported-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-04-27 Thread Maxim Uvarov
2016-04-27 18:46 GMT+03:00 Bin Liu : > Hi, > > On Wed, Apr 27, 2016 at 09:51:58AM +0300, Max Uvarov wrote: >> Fix soft lockup when resetting remote device attached >> to usb host. Configuration: >> pppd -> musb hub -> usb-serial -> gsm modem > > I have heard a few reports similar to this symptom, b

[PATCH] locking/rwsem: Add reader-owned state to the owner field

2016-04-27 Thread Waiman Long
This patch adds a new state RWSEM_READER_OWNED to the owner field to indicate that readers currently own the lock. This enables us to address the following 2 issues in the rwsem optimistic spinning code: 1) rwsem_can_spin_on_owner() will disallow optimistic spinning if the owner field is NULL

Re: [PATCH] xfs: idle aild if the AIL is pushed up to the target LSN

2016-04-27 Thread Lucas Stach
Am Dienstag, den 26.04.2016, 09:08 +1000 schrieb Dave Chinner: [...] > > > > > > > > That said, I'm not sure whether there's a notable benefit of > > > idling > > > for > > > 50ms over just scheduling out when we've hit the target lsn. It > > > seems > > > like that anybody who pushes the target

Re: [PATCH v2 3/3] regulator: axp20x: Fix axp22x ldo_io registration error on cold boot

2016-04-27 Thread Hans de Goede
Hi, On 27-04-16 18:30, Mark Brown wrote: On Wed, Apr 27, 2016 at 06:04:53PM +0200, Hans de Goede wrote: On 27-04-16 17:48, Mark Brown wrote: Well, I guess someone can just measure what happens? What happens will likely depend on the pmic input voltage, which can be either 5V from a charge

[PATCH perf/core v5 00/15] perf-probe --cache and SDT support

2016-04-27 Thread Masami Hiramatsu
Hi, Here is the 5th version of the patchset for probe-cache and initial SDT support which are going to be perf-cache finally. The previous version is here; https://lkml.org/lkml/2016/4/26/179 This version fixes a build bug on "make build-test", removed accepted patches, and fold buildid-cache s

[PATCH perf/core v5 01/15] perf probe: Use strbuf for making strings

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Replace many fixed-length char array with strbuf to stringify perf_probe_event and probe_trace_event etc. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v4: - Update for the latest kernel. - Remove "probe-event.c" from title and body, b

[PATCH perf/core v5 04/15] perf probe: Add --cache option to cache the probe definitions

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v5: - Move probe_cache* definitions. (code cleanup) Changes in v4: -

[PATCH perf/core v5 08/15] perf/sdt: ELF support for SDT

2016-04-27 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find these markers from the bina

[PATCH perf/core v5 07/15] perf probe: Remove caches when --cache is given

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In tha

[PATCH perf/core v5 06/15] perf probe: Show all cached probes

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

[PATCH perf/core v5 03/15] perf-buildid-cache: Use lsdir for looking up buildid caches

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Use new lsdir() for looking up buildid caches. This changes logic a bit to ignore all dot files, since the build-id cache must not start with dot. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- tools/perf/util/build-id.c | 30 +

[PATCH perf/core v5 02/15] perf-buildid-cache: Use path/to/bin/buildid/elf instead of path/to/bin/buildid

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Use path/to/bin/buildid/elf instead of path/to/bin/buildid to store corresponding elf binary. This also stores vdso in buildid/vdso, kallsyms in buildid/kallsyms. Note that the existing caches are not updated until user adds or updates the cache. Anyway, if there is the ol

[PATCH perf/core v5 05/15] perf probe: Use cache entry if possible

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

[PATCH perf/core v5 11/15] perf probe: Accept %sdt and %cached event name

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in /usr/lib/libc

[PATCH perf/core v5 12/15] perf-list: Show SDT and pre-cached events

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined events (to be used in -e): sdt_l

[PATCH v3] regulator: axp20x: Fix axp22x ldo_io registration error on cold boot

2016-04-27 Thread Hans de Goede
The maximum supported voltage for ldo_io# is 3.3V, but on cold boot the selector comes up at 0x1f, which maps to 3.8V. This causes _regulator_get_voltage() to fail with -EINVAL which causes regulator registration to fail when constrains are used: [1.467788] vcc-touchscreen: failed to get the

[PATCH perf/core v5 13/15] perf-list: Skip SDTs placed in invalid binaries

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v4

[PATCH perf/core v5 09/15] perf probe: Add group name support

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can h

[PATCH perf/core v5 15/15] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-04-27 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on sdt_libstdcxx

[PATCH perf/core v5 14/15] perf probe: Allow wildcard for cached events

2016-04-27 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. This also automatically find the target binaries, e.g. # perf probe -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- tools/perf/

[PATCH perf/core v5 10/15] perf buildid-cache: Scan and import user SDT events to probe cache

2016-04-27 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as other cached events, via perf probe --

Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024

2016-04-27 Thread Laxman Dewangan
On Wednesday 27 April 2016 08:49 PM, Lee Jones wrote: On Wed, 30 Mar 2016, Laxman Dewangan wrote: +#define MAX77620_MFD_CELL_RES(_name, _res) \ + { \ + .name = (_name),

Re: livepatch: Add some basic LivePatch documentation

2016-04-27 Thread Jessica Yu
+++ Petr Mladek [25/04/16 17:14 +0200]: LivePatch framework deserves some documentation, definitely. This is an attempt to provide some basic info. I hope that it will be useful for both LivePatch producers and also potential developers of the framework itself. Signed-off-by: Petr Mladek Nice

Re: [PATCH perf/core v5 14/15] perf probe: Allow wildcard for cached events

2016-04-27 Thread Masami Hiramatsu
Oops, I missed to fix the SEGV bug. I'll fix it and resend as 5.1. Thanks, On Thu, 28 Apr 2016 03:39:17 +0900 Masami Hiramatsu wrote: > Allo glob wildcard for reusing cached/SDT events. This also > automatically find the target binaries, e.g. > > # perf probe -a %sdt_libc:\* > > This exam

Re: [PATCH perf/core v4 01/19] perf probe: Use strbuf for making strings

2016-04-27 Thread Masami Hiramatsu
On Tue, 26 Apr 2016 11:59:34 -0300 Arnaldo Carvalho de Melo wrote: > Em Tue, Apr 26, 2016 at 11:40:47PM +0900, Masami Hiramatsu escreveu: > > On Tue, 26 Apr 2016 10:36:57 -0300 > > Arnaldo Carvalho de Melo wrote: > > > > > Em Tue, Apr 26, 2016 at 06:02:11PM +0900, Masami Hiramatsu escreveu: > >

Re: [GIT PULL] workqueue fixes for v4.6-rc5

2016-04-27 Thread Linus Torvalds
On Wed, Apr 27, 2016 at 9:11 AM, Tejun Heo wrote: > > Unfortunately, we were missing a smp_rmb() after clearing PENDING for > execution, so nothing guaranteed visibility of the changes that a > queueing loser has made, which manifested as a reproducible blk-mq > stall. That explanation makes no s

Re: [PATCH perf/core v4 18/19] perf probe: Allow wildcard for cached events

2016-04-27 Thread Masami Hiramatsu
On Wed, 27 Apr 2016 21:04:53 +0530 Hemant Kumar wrote: > > > On 04/26/2016 02:34 PM, Masami Hiramatsu wrote: > > Allo glob wildcard for reusing cached/SDT events. This also > > automatically find the target binaries, e.g. > > > ># perf probe -a %sdt_libc:\* > > > > This example adds probes

Re: Regression of v4.6-rc vs. v4.5: hangs after a few minutes after boot

2016-04-27 Thread Stefan Richter
On Apr 26 Stefan Richter wrote: > v4.6-rc solidly hangs after a short while after boot, login to X11, and > doing nothing much remarkable on the just brought up X desktop. > > Hardware: x86-64, E3-1245 v3 (Haswell), > mainboard Supermicro X10SAE, > using integrated Intel graphi

[PATCH v12 03/10] arm64: add conditional instruction simulation support

2016-04-27 Thread David Long
From: "David A. Long" Cease using the arm32 arm_check_condition() function and replace it with a local version for use in deprecated instruction support on arm64. Also make the function table used by this available for future use by kprobes and/or uprobes. This function is dervied from code writ

[PATCH v12 08/10] arm64: Add trampoline code for kretprobes

2016-04-27 Thread David Long
From: William Cohen The trampoline code is used by kretprobes to capture a return from a probed function. This is done by saving the registers, calling the handler, and restoring the registers. The code then returns to the original saved caller return address. It is necessary to do this directly

[PATCH v12 10/10] kprobes: Add arm64 case in kprobe example module

2016-04-27 Thread David Long
From: Sandeepa Prabhu Add info prints in sample kprobe handlers for ARM64 Signed-off-by: Sandeepa Prabhu --- samples/kprobes/kprobe_example.c | 8 1 file changed, 8 insertions(+) diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index 727eb21..0c72b8a 1

<    3   4   5   6   7   8   9   10   11   12   >