Re: [PATCH v6 0/5] (mostly) Arch-independent livepatch

2016-03-23 Thread Josh Poimboeuf
On Tue, Mar 22, 2016 at 08:03:14PM -0400, Jessica Yu wrote: > Patches based on linux-next. > > Previous patchset (v5) found here: > http://lkml.kernel.org/g/1458157628-8264-1-git-send-email-j...@redhat.com > > v6: > - Since we hard-code the field widths for the objname and symbol name >for t

[PATCH v2 4/6] powerpc: mm: Use hugetlb_bad_size

2016-03-23 Thread Vaishali Thakkar
Update the setup_hugepagesz function to call the routine hugetlb_bad_size when unsupported hugepage size is found. Misc: - Silent checkpatch.pl's 80 characters and printk warning Signed-off-by: Vaishali Thakkar Reviewed-by: Mike Kravetz Reviewed-by: Naoya Horiguchi Cc: Hillf Danton Cc: Mic

[PATCH] [media] media: i2c: ths7303: remove redundant assignment on bt

2016-03-23 Thread Colin King
From: Colin Ian King The extraneous assignment on bt is redundant and can be removed. Signed-off-by: Colin Ian King --- drivers/media/i2c/ths7303.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c index 5bbfcab..71a31

Crypto Fixes for 4.6

2016-03-23 Thread Herbert Xu
Hi Linus: This push fixes the following issues: API: * Fix kzalloc error path crash in ecryptfs added by skcipher conversion. Note the subject of the commit is screwed up and the correct subject is actually in the body. Drivers: * A number of fixes to the marvell cesa hashing code. * Remove b

[PATCH] regmap: mmio: Fix value endianness selection

2016-03-23 Thread Mark Brown
Currently when selecting value endianness we check the register endiannes, not the value endianness. Reported-by: Alexander Stein Signed-off-by: Mark Brown --- drivers/base/regmap/regmap-mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regmap-mmio.c

Re: [RFC][PATCH v6 1/2] printk: Make printk() completely async

2016-03-23 Thread Jan Kara
On Wed 23-03-16 10:25:41, Petr Mladek wrote: > On Wed 2016-03-23 10:24:43, Sergey Senozhatsky wrote: > > On (03/22/16 17:36), Petr Mladek wrote: > > > > - /* cpu currently holding logbuf_lock in this function */ > > > > - static unsigned int logbuf_cpu = UINT_MAX; > > > > + bool i

Re: [Y2038] [PATCH v2] prism54: isl_38xx: Replace 'struct timeval'

2016-03-23 Thread Arnd Bergmann
On Tuesday 22 March 2016 15:16:15 Tina Ruchandani wrote: > 'struct timeval' uses a 32-bit seconds field which will overflow in > year 2038 and beyond. This patch is part of a larger effort to remove > all instances of 'struct timeval' from the kernel and replace them > with 64-bit timekeeping varia

Re: [PATCH v2 0/6] mm/hugetlb: Fix commandline parsing behavior for invalid hugepagesize

2016-03-23 Thread Michal Hocko
On Wed 23-03-16 17:37:18, Vaishali Thakkar wrote: > Current code fails to ignore the 'hugepages=' parameters when unsupported > hugepagesize is specified. With this patchset, introduce new architecture > independent routine hugetlb_bad_size to handle such command line options. > And then call it in

Applied "regulator: core: Always flag voltage constraints as appliable" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: core: Always flag voltage constraints as appliable has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the nex

Applied "regmap: mmio: Fix value endianness selection" to the regmap tree

2016-03-23 Thread Mark Brown
The patch regmap: mmio: Fix value endianness selection has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Applied "regulator: add missing descriptions in regulator_desc" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: add missing descriptions in regulator_desc has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hou

Applied "regulator: core: Ensure we are at least in bounds for our constraints" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: core: Ensure we are at least in bounds for our constraints has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

[PATCH] net: Fix typos and whitespace.

2016-03-23 Thread Bjorn Helgaas
Fix typos. Capitalize CPU, NAPI, RCU consistently. Align structure indentation. No functional change intended; only comment and whitespace changes. Signed-off-by: Bjorn Helgaas --- include/linux/netdevice.h | 215 ++--- 1 file changed, 106 insertions(+

[PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-03-23 Thread Purna Chandra Mandal
The PIC32 SPI driver is capable of performing SPI transfers using PIO or external DMA engine. GPIO controlled /CS support is made default in the driver for correct operation of the controller. This can be enabled by adding "cs-gpios" property of the SPI node in board dts file. Signed-off-by: Purna

[PATCH v4 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-03-23 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring --- Changes in v4: None Changes in v3: None Changes in v2: - fix indentation - add space after comma - moved 'cs-gpios' section under 're

Applied "regulator: act8865: Remove redundant dev lookups" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: act8865: Remove redundant dev lookups has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Re: [PATCH v4] tty: serial: meson: Implement earlycon support

2016-03-23 Thread Greg Kroah-Hartman
On Wed, Mar 23, 2016 at 11:39:36AM +0100, Andreas Färber wrote: > Am 06.03.2016 um 12:21 schrieb Andreas Färber: > > Split off the bulk of the existing meson_serial_console_write() > > implementation into meson_serial_port_write() for implementing > > meson_serial_early_console_write(). > > > > Us

Re: [PATCH] regmap: mmio: Fix value endianness selection

2016-03-23 Thread Alexander Stein
On Wednesday 23 March 2016 13:17:59, Mark Brown wrote: > Currently when selecting value endianness we check the register > endiannes, not the value endianness. > > Reported-by: Alexander Stein > Signed-off-by: Mark Brown > --- Tested-by: Alexander Stein Thanks and best regards, Alexander

[PATCH v2] fs: add file_dentry()

2016-03-23 Thread Miklos Szeredi
This series fixes bugs in nfs and ext4 due to 4bacc9c9234c ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay"). Regular files opened on overlayfs will result in the file being opened on the underlying filesystem, while f_path points to the overlayfs mount/dentry. Th

Re: [lustre-devel] [PATCH] Revert "Staging: lustre: o2iblnd: Use sizeof type *pointer instead of sizeof type."

2016-03-23 Thread Greg Kroah-Hartman
On Wed, Mar 23, 2016 at 05:39:36AM +, Dilger, Andreas wrote: > On 2016/03/22, 19:49, "lustre-devel on behalf of Greg Kroah-Hartman" > gre...@linuxfoundation.org> wrote: > > >On Tue, Mar 22, 2016 at 06:21:04PM -0400, James Simmons wrote: > >> Latest testing fails when using ko2iblnd. It was tr

Re: [PATCH 2/4 v3] drm: Introduce drm_connector_register_all() helper

2016-03-23 Thread Alexey Brodkin
Hi David, On Wed, 2016-03-23 at 12:13 +0100, David Herrmann wrote: > Hi > > On Wed, Mar 23, 2016 at 9:42 AM, Alexey Brodkin > wrote: > > > > As a pair to already existing drm_connector_unregister_all() we're adding > > generic implementation of what is already done in some drivers. > > > > Onc

Applied "regulator: act8865: Remove "too many regulators" error handler" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: act8865: Remove "too many regulators" error handler has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Applied "regulator: add missing description for set_over_current_protection" to the regulator tree

2016-03-23 Thread Mark Brown
The patch regulator: add missing description for set_over_current_protection has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Re: [PATCH v6 0/5] (mostly) Arch-independent livepatch

2016-03-23 Thread Miroslav Benes
On Tue, 22 Mar 2016, Jessica Yu wrote: > v6: > - Since we hard-code the field widths for the objname and symbol name >for the sscanf() calls, which are supposed to correspond to the values >of MODULE_NAME_LEN and KSYM_NAME_LEN, use BUILD_BUG_ON() to detect when >the values of these co

Re: [PATCH 1/3] ARM: at91: use chipid device for soc detection

2016-03-23 Thread Alexandre Belloni
On 23/03/2016 at 12:22:49 +0100, Nicolas Ferre wrote : > Le 18/03/2016 11:34, Alexandre Belloni a écrit : > > On 18/03/2016 at 08:21:19 +0100, Ludovic Desroches wrote : > >> So far, the CIDR and EXID registers were in the DBGU interface. This device > >> has disappeared with the SAMA5D2 family. The

Re: [PATCH] net: Fix typos and whitespace.

2016-03-23 Thread Bjorn Helgaas
[+cc Vlad] On Wed, Mar 23, 2016 at 08:45:30AM -0500, Bjorn Helgaas wrote: > Fix typos. Capitalize CPU, NAPI, RCU consistently. Align structure > indentation. No functional change intended; only comment and whitespace > changes. > > Signed-off-by: Bjorn Helgaas > --- > include/linux/netdevice

Re: [PATCH] PKCS#7: pkcs7_validate_trust(): initialize the _trusted output argument

2016-03-23 Thread Nicolai Stange
Herbert Xu writes: > On Sun, Mar 20, 2016 at 11:23:46PM +0100, Nicolai Stange wrote: >> Despite what the DocBook comment to pkcs7_validate_trust() says, the >> *_trusted argument is never set to false. >> >> pkcs7_validate_trust() only positively sets *_trusted upon encountering >> a trusted PKC

Re: [PATCH 02/23] ARM: dts: n950: add display support

2016-03-23 Thread Sebastian Reichel
Hi, On Wed, Mar 23, 2016 at 02:40:53PM +0200, Jani Nikula wrote: > On Thu, 17 Mar 2016, Sebastian Reichel wrote: > > On Thu, Mar 17, 2016 at 02:14:26PM +0200, Laurent Pinchart wrote: > >> [...] > >> > + > >> > +/* panel is 480x464 with top and bottom 5 lines not > >> > visible */

Re: [PATCH v2] fs: add file_dentry()

2016-03-23 Thread William Dauchy
Hello Miklos, On Wed, Mar 23, 2016 at 2:36 PM, Miklos Szeredi wrote: > This series fixes bugs in nfs and ext4 due to 4bacc9c9234c ("overlayfs: > Make f_path always point to the overlay and f_inode to the underlay"). > > Regular files opened on overlayfs will result in the file being opened on > t

[PATCH] arm64: defconfig: Fix warning override MMC_BLOCK_MINORS

2016-03-23 Thread Phong Tran
Remove the duplicate of defination of CONFIG_MMC_BLOCK_MINORS. Fixes 22b0898 ("arm64: add defconfig options for Allwinner SoCs") Signed-off-by: Phong Tran --- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconf

Re: Question regarding ptrace work for LInux v3.1

2016-03-23 Thread Patrick Donnelly
On Mon, Mar 21, 2016 at 3:35 PM, Oleg Nesterov wrote: > On 03/21, Patrick Donnelly wrote: >> On Mon, Mar 21, 2016 at 3:07 PM, Oleg Nesterov wrote: >> > case SIGSTOP: >> > /* Black magic to get threads working on old Linux kernels... */ >> > >> > if(p->nsyscalls == 0) { /*

Re: [for-next][PATCH 1/2] tracing: Fix trace_printk() to print when not using bprintk()

2016-03-23 Thread Vlastimil Babka
On 03/23/2016 01:24 PM, Steven Rostedt wrote: From: "Steven Rostedt (Red Hat)" The trace_printk() code will allocate extra buffers if the compile detects that a trace_printk() is used. To do this, the format of the trace_printk() is saved to the __trace_printk_fmt section, and if that section i

Re: [PATCH v2] fs: add file_dentry()

2016-03-23 Thread Miklos Szeredi
On Wed, Mar 23, 2016 at 3:06 PM, William Dauchy wrote: > 4bacc9c9234c ("overlayfs: Make f_path always point to the overlay and > f_inode to the underlay"). > This commit is from v4.1 if I am not wrong. So the stable tag might be wrong. > > Am I missing something? Use "--contains", otherwise "git

[Patch V3 4/4] iommu/vt-d: refine dmar_acpi_dev_scope_init() with dmar_walk_dmar_table()

2016-03-23 Thread Wei Yang
dmar_acpi_dev_scope_init() iterates on the remapping structure and just do proper job for ANDD structure. This is the what dmar_walk_dmar_table() does. This patch improves the code with dmar_walk_dmar_table(). Signed-off-by: Wei Yang --- drivers/iommu/dmar.c | 56 -

tools lib traceevent: Remove redundant CPU output

2016-03-23 Thread Steven Rostedt
Commit a6745330789f "tools lib traceevent: Split pevent_print_event() into specific functionality functions" Broke apart the function pevent_print_event() into three functions. The first function prints the comm, pid and CPU, the second prints the timestamp. But that commit added the printing of th

[Patch V3 3/4] iommu/vt-d: check Register Base Address at the beginning of dmar_parse_one_drhd()

2016-03-23 Thread Wei Yang
A NULL value of Register Base Address in a Hardware Unit Definition means it is an invalid dmar. Current implementation checks this value in alloc_iommu(), by when it has already allocated memory to store itself and device scope. This patch moves the check at the beginning of dmar_parse_one_drhd()

[Patch V3 2/4] iommu/vt-d: use zero-sized array in DMAR related ACPI structures

2016-03-23 Thread Wei Yang
1. DMAR table has variable number of remapping entries 2. DMAR hardware unit has variable number of device scope 3. DMAR device scope has variable number of pci path In current implementation, we use (head + 1) to access these variable number elements, which may not be obvious for audience. Zero-s

[Patch V3 1/4] iommu/vt-d: replace *hdr with drhd[0] in struct dmar_drhd_unit

2016-03-23 Thread Wei Yang
Before commit <6b1972493a84> ("iommu/vt-d: Implement DMAR unit hotplug framework"),dmaru->hdr just points to the memory region of DMA remapping hardware definition. In this case, it would have no difference to where we put hdr. After this commit, DMA remapping hardware definition is copied and att

Re: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-23 Thread Mathias Nyman
On 23.03.2016 05:53, Rajesh Bhagat wrote: IMO, The assumption that "xhci_abort_cmd_ring would always generate an event and handle_cmd_completion would be called" will not be always be true if HW is in bad state. Please share your opinion. writing the CA (command abort) bit in CRCR (comman

[Patch V3 0/4] Code refine for Intel IOMMU

2016-03-23 Thread Wei Yang
These four patches try to refine the Intel IOMMU. Patch 1/2 tries to make it

Re: [PATCH] regmap: mmio: Fix value endianness selection

2016-03-23 Thread Alexander Stein
On Wednesday 23 March 2016 13:17:59, Mark Brown wrote: > Currently when selecting value endianness we check the register > endiannes, not the value endianness. > > Reported-by: Alexander Stein > Signed-off-by: Mark Brown Mh, while this _does_ fix the problem regarding accessing SCFG peripheral

Re: [PATCHv3 6/9] Documentation: dt: socfpga: Add Altera Arria10 L2 cache binding

2016-03-23 Thread Rob Herring
On Mon, Mar 21, 2016 at 11:01:43AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera L2 > cache on the Arria10 chip. Since all the peripherals share > IRQs, the IRQ fields are now in the ecc_manager. > > Signed-off-by: T

Re: [PATCH v2] fs: add file_dentry()

2016-03-23 Thread William Dauchy
On Wed, Mar 23, 2016 at 3:14 PM, Miklos Szeredi wrote: > Use "--contains", otherwise "git describe" will just say which kernel > the patch has been committed to, not which release it appears in. > > git describe --contains 4bacc9c9234c > v4.2-rc1~2^2~27 Indeed; I saw the patch in v4.1.x stable ht

Re: [PATCH 3/5] ftrace perf: Use ftrace_ops::private to store event pointer

2016-03-23 Thread Peter Zijlstra
On Wed, Mar 16, 2016 at 03:34:31PM +0100, Jiri Olsa wrote: > Fixing this by using ftrace_ops::private value to keep > the perf_event pointer. This way we don't need to search > for triggered event (as tracepoint handler does) and > directly store sample. container_of(ops, struct perf_event, ftrace

[PATCH] regmap: cache: Fix typo in cache_bypass parameter description

2016-03-23 Thread Andrew F. Davis
Setting the flag 'cache_bypass' will bypass the cache not the hardware. Fix this comment here. Fixes: 0eef6b0415f5 ("regmap: Fix doc comment") Signed-off-by: Andrew F. Davis --- drivers/base/regmap/regcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap

Re: [RFC][PATCH v6 1/2] printk: Make printk() completely async

2016-03-23 Thread Sergey Senozhatsky
Hello, On (03/23/16 14:20), Jan Kara wrote: [..] > > I though that it actually could be an advantage. console_verbore() is > > called also by oops_begin() and it does not need to be fatal. But you > > are right that it does not need to be the righ approach. > > If we oops, I want printk to be syn

Re: N900 sleep mode (in 4.5-rc0, if that matters)

2016-03-23 Thread Pavel Machek
On Wed 2016-02-10 17:08:18, Tony Lindgren wrote: > * Tony Lindgren [160209 09:26]: > > * Pavel Machek [160207 13:24]: > > > > > ffdffebd 48004a20 (fa004a20) cm_idlest1_core blocking bits: 00200042 > > > 000d 48004a28 (fa004a28) cm_idlest3_core > > > > Bit 21 in cm_idlest1_core is for MCSPI4

[PATCH 2/2] drivers: net: ethernet: dlink: dl2k: fix indent

2016-03-23 Thread Maxim Zhukov
This commit fixed indent in file. Labels must be start of the line Signed-off-by: Maxim Zhukov --- drivers/net/ethernet/dlink/dl2k.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index d

[PATCH 1/2] net: ethernet: dlink: dl2k: fix code style

2016-03-23 Thread Maxim Zhukov
This commit fixed spacing errors and warnings. Signed-off-by: Maxim Zhukov --- drivers/net/ethernet/dlink/dl2k.c | 491 +++--- 1 file changed, 245 insertions(+), 246 deletions(-) diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c

Re: [PATCH 2/6] mm/hugetlb: add same zone check in pfn_range_valid_gigantic()

2016-03-23 Thread Vlastimil Babka
On 03/14/2016 08:31 AM, js1...@gmail.com wrote: From: Joonsoo Kim alloc_gigantic_page() uses alloc_contig_range() and this requires that requested range is in a single zone. To satisfy that requirement, add this check to pfn_range_valid_gigantic(). Signed-off-by: Joonsoo Kim Acked-by: Vlast

Re: [PATCH 3/6] mm/memory_hotplug: add comment to some functions related to memory hotplug

2016-03-23 Thread Vlastimil Babka
On 03/14/2016 08:31 AM, js1...@gmail.com wrote: From: Joonsoo Kim __offline_isolated_pages() and test_pages_isolated() are used by memory hotplug. These functions require that range is in a single zone but there is no code about it because memory hotplug checks it before calling these functions

Re: [RFC][PATCH v6 1/2] printk: Make printk() completely async

2016-03-23 Thread Jan Kara
On Wed 23-03-16 23:30:20, Sergey Senozhatsky wrote: > Hello, > > On (03/23/16 14:20), Jan Kara wrote: > [..] > > > I though that it actually could be an advantage. console_verbore() is > > > called also by oops_begin() and it does not need to be fatal. But you > > > are right that it does not need

[PATCH v2 0/5] mailbox: A few fixes due for the v4.6 -rcs

2016-03-23 Thread Lee Jones
Hi Jassi, Resending these with patches 1 and 2 merged, as requested. Kind regards, Lee v1 => v2: - Patch 2 merged into patch - No functional changes Lee Jones (5): ARM: STi: stih407-family: Add nodes for Mailbox ARM: STi: DT: STiH407: Enable Mailbox testing facility mailbox: mailbox-

[PATCH v2 2/5] ARM: STi: DT: STiH407: Enable Mailbox testing facility

2016-03-23 Thread Lee Jones
This patch supplies a Client node to enable the Mailbox testing facility. It will be used to send and receive messages from any given co-processor in order to test the STi Mailbox Controller driver. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 6 ++ 1 file changed, 6

[PATCH v2 1/5] ARM: STi: stih407-family: Add nodes for Mailbox

2016-03-23 Thread Lee Jones
This patch supplies the Mailbox Controller nodes. In order to request channels, these nodes will be referenced by Mailbox Client nodes. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/

[PATCH v2 5/5] mailbox: Stop using ENOSYS for anything other than unimplemented syscalls

2016-03-23 Thread Lee Jones
In accordance with e15f431fe2d5 ("errno.h: Improve ENOSYS's comment") and 91c9afaf97ee ("checkpatch.pl: new instances of ENOSYS are errors") we're converting from the old meaning of: ENOSYS "Function not implemented" to a more standard EINVAL. Reported-by: Seraphin Bonnaffe Signed-off-by: Lee Jon

[PATCH v2 3/5] mailbox: mailbox-test: Use more consistent format for calling copy_from_user()

2016-03-23 Thread Lee Jones
While we're at it, ensure copy-to location is NULL'ed in the error path. Suggested-by: Dan Carpenter Signed-off-by: Lee Jones --- drivers/mailbox/mailbox-test.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-te

[PATCH v2 4/5] mailbox: mailbox-test: Prevent memory leak

2016-03-23 Thread Lee Jones
If we set the Signal twice or more, without using it as part of a message, memory will be re-allocated and the pointer over-written. Prevent this potential leak by only allocating memory when there isn't any already. Reported-by: Dan Carpenter Signed-off-by: Lee Jones --- drivers/mailbox/mailb

Re: [PATCH 4/6] mm/vmstat: add zone range overlapping check

2016-03-23 Thread Vlastimil Babka
On 03/14/2016 08:31 AM, js1...@gmail.com wrote: From: Joonsoo Kim There is a system that node's pfn are overlapped like as following. -pfn> N0 N1 N2 N0 N1 N2 Therefore, we need to care this overlapping when iterating pfn range. There are two places in vmstat.c that iterates pfn r

Re: [PATCH 1/2] net: ethernet: dlink: dl2k: fix code style

2016-03-23 Thread Joe Perches
On Wed, 2016-03-23 at 17:36 +0300, Maxim Zhukov wrote: > This commit fixed spacing errors and warnings. This commit log should show that you've tested this by stating something like: "git diff -w shows no difference" and "objdiff shows no changes" If objdiff shows changes, you nee

Re: [PATCH v2 1/6] x86/mm/pat: Change PAT to support non-default PAT MSR

2016-03-23 Thread Toshi Kani
On Wed, 2016-03-23 at 09:43 +0100, Borislav Petkov wrote: > On Tue, Mar 22, 2016 at 12:35:19PM -0600, Toshi Kani wrote: > > Right.  Will change to "Add support of non-default PAT MSR setting at > > handoff". > > Please remove this "handoff" notion from the text. Every hw register is > being handed

Re: [PATCH v2 1/2] ASoC: codecs: add TA5720 digital amplifier DT bindings

2016-03-23 Thread Rob Herring
On Mon, Mar 21, 2016 at 12:08:26PM -0500, Andreas Dannenberg wrote: > The Texas Instruments TAS5720L/M device is a high-efficiency mono > Class-D audio power amplifier optimized for high transient power > capability to use the dynamic power headroom of small loudspeakers. > Its digital time divisio

Re: [PATCH v2 2/6] x86/mm/pat: Add pat_disable() interface

2016-03-23 Thread Toshi Kani
On Wed, 2016-03-23 at 09:51 +0100, Borislav Petkov wrote: > On Tue, Mar 22, 2016 at 03:40:45PM -0600, Toshi Kani wrote: > > Will change to "Prevent the OS from initializing the PAT MSR". > > > > I wanted to clarify that "disable" does not mean to disable PAT MSR. > > How do you "disable PAT MSR"

Re: [PATCH] dma-buf/sync_file: de-stage sync_file

2016-03-23 Thread Gustavo Padovan
Hi Sumit, 2016-03-21 Sumit Semwal : > Thanks for the patch, Gustavo! > > On 18 March 2016 at 19:49, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > sync_file is useful to connect one or more fences to the file. The file is > > used by userspace to track fences. > > > I think it is wor

[RFC PATCH] ARM: exynos_defconfig: Enable Samsung media platform drivers as modules

2016-03-23 Thread Javier Martinez Canillas
There are a bunch of media platform drivers under drivers/media/platform/ that are for Samsung SoCs but are not being built with exynos_defconfig. This patch enables them as a module to improve build coverage for these drivers and also to allow people use them with proper hardware if modules are i

Re: [PATCH v2 3/6] x86/mtrr: Fix Xorg crashes in Qemu sessions

2016-03-23 Thread Toshi Kani
On Wed, 2016-03-23 at 09:44 +0100, Borislav Petkov wrote: > On Tue, Mar 22, 2016 at 03:53:30PM -0600, Toshi Kani wrote: > > Yes. I had to remove this number since checkpatch complained that I > > needed to quote the whole patch tile again.  I will ignore this > > checkpatch error and add this commi

[PATCH net-next,1/2] hv_netvsc: Fix accessing freed memory in netvsc_change_mtu()

2016-03-23 Thread Haiyang Zhang
struct netvsc_device is freed in rndis_filter_device_remove(). So we save the nvdev->num_chn into a temp variable for later usage. (Please also include this patch into stable branch.) Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c |5 -

Re: [RFC 00/29] De-stage android's sync framework

2016-03-23 Thread Tomeu Vizoso
On 19 January 2016 at 17:12, John Harrison wrote: > On 19/01/2016 15:23, Gustavo Padovan wrote: >> >> Hi Daniel, >> >> 2016-01-19 Daniel Vetter : >> >>> On Fri, Jan 15, 2016 at 12:55:10PM -0200, Gustavo Padovan wrote: From: Gustavo Padovan This patch series de-stage the sync f

Re: [PATCH] dt-bindings: input: add Raydium I2C touch driver bindings

2016-03-23 Thread Rob Herring
On Tue, Mar 22, 2016 at 02:38:53PM +0800, jeffrey.lin wrote: > Document the device tree binfings of Raydium I2C touch driver. Is there a driver too? > Signed-off-by: jeffrey.lin > --- > .../devicetree/bindings/input/raydium_i2c_ts.txt| 21 > + > .../devicetree/bindings/

Re: [PATCH 2/2] dmaengine: qcom_bam_dma: Bypass BAM init if not managed locally

2016-03-23 Thread Rob Herring
On Tue, Mar 22, 2016 at 03:19:11PM +0530, Pramod Gurav wrote: > On some QOCM platforms BAM control registers are managed remotely s/QOCM/QCOM/ > hence can not be accessed by application processor for writes. Pass > a DT property qcom,bam_ctrl_remote to declare the same to skip bam_init. Is this

Re: [PATCH v2 2/2] doc: dt: mtd: add a DT property to enable the use of 4byte-address op codes

2016-03-23 Thread Cyrille Pitchen
Hi Rob, sorry I've sent v3 at the same time as you answered to v2. I'll take your comments into account for v4. Brian, any preference between 4byte-opcodes or m25p-4byte-opcodes? Best regards, Cyrille Le 23/03/2016 13:49, Rob Herring a écrit : > On Tue, Mar 22, 2016 at 10:13 AM, Cyrille Pitche

Re: [PATCH next 1/2] PCI: keystone: add pci error irq handler

2016-03-23 Thread Rob Herring
On Tue, Mar 22, 2016 at 03:52:57PM -0400, Murali Karicheri wrote: > Keystone PCI hardware generates error interrupts at RC using platform > irq instead of standard msi/legacy irq. Add a simple error handler that > logs the fatal interrupt status to the console. > > Signed-off-by: Murali Karicheri

[PATCH RESEND] crypto: sun4i-ss: Replace spinlock_bh by spin_lock_irq{save|restore}

2016-03-23 Thread LABBE Corentin
The current sun4i-ss driver could generate data corruption when ciphering/deciphering. It occurs randomly on end of handled data. No root cause have been found and the only way to remove it is to replace all spin_lock_bh by their irq counterparts. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allw

[PATCH net-next,2/2] hv_netvsc: Fix the array sizes to be max supported channels

2016-03-23 Thread Haiyang Zhang
The VRSS_CHANNEL_MAX is the max number of channels supported by Hyper-V hosts. We use it for the related array sizes instead of using NR_CPUS, which may be set to several thousands. This patch reduces possible memory allocation failures. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan

[PATCH] rcu: Remove superfluous versions of rcu_read_lock_sched_held()

2016-03-23 Thread Boqun Feng
Currently, we have four versions of rcu_read_lock_sched_held(), depending on the combined choices on PREEMPT_COUNT and DEBUG_LOCK_ALLOC. But we actually don't need to specialize those for PREEMPT_COUNT=n kernel. Because: 1. For the implementations in DEBUG_LOCK_ALLOC=n kernel, we can use

Re: [PATCH v2] iommu/arm-smmu: Make use of phandle iterators in device-tree device-tree parsing

2016-03-23 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on iommu/next] [also build test ERROR on v4.5 next-20160323] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-arm-smmu-Make-use-of-phandle

Re: [PATCH 1/2 v6] dt/bindings: Add bindings for Layerscape SCFG MSI

2016-03-23 Thread Rob Herring
On Wed, Mar 23, 2016 at 07:08:19PM +0800, Minghuan Lian wrote: > Some Layerscape SoCs use a simple MSI controller implementation. > It contains only two SCFG register to trigger and describe a > group 32 MSI interrupts. The patch adds bindings to describe > the controller. > > Signed-off-by: Mingh

[PATCH] [media] s5p-tv: Fix path in Makefile comment

2016-03-23 Thread Javier Martinez Canillas
The path mentioned in the driver's Makefile is not correct, fix it. Signed-off-by: Javier Martinez Canillas --- drivers/media/platform/s5p-tv/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-tv/Makefile b/drivers/media/platform/s5p-tv/Mak

[PATCH 8/8] writeback: throttle buffered writeback

2016-03-23 Thread Jens Axboe
Test patch that throttles buffered writeback to make it a lot more smooth, and has way less impact on other system activity. Background writeback should be, by definition, background activity. The fact that we flush huge bundles of it at the time means that it potentially has heavy impacts on foreg

[PATCH 7/8] NVMe: inform block layer of write cache state

2016-03-23 Thread Jens Axboe
This isn't quite correct, since the VWC merely states if a potential write back cache is volatile or not. But for the purpose of write absortion, it's good enough. Signed-off-by: Jens Axboe --- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/core.c

[PATCH 3/8] writeback: use WRITE_SYNC for reclaim or sync writeback

2016-03-23 Thread Jens Axboe
If we're doing reclaim or sync IO, use WRITE_SYNC to inform the lower levels of the importance of this IO. Signed-off-by: Jens Axboe --- include/linux/writeback.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 719c2

[PATCH 6/8] sd: inform block layer of write cache state

2016-03-23 Thread Jens Axboe
Signed-off-by: Jens Axboe --- drivers/scsi/sd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 5a5457ac9cdb..049f424fb4ad 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -192,6 +192,7 @@ cache_type_store(struct device

[PATCH 5/8] block: add ability to flag write back caching on a device

2016-03-23 Thread Jens Axboe
Add an internal helper and flag for setting whether a queue has write back caching, or write through (or none). Add a sysfs file to show this as well, and make it changeable from user space. Signed-off-by: Jens Axboe --- block/blk-settings.c | 11 +++ block/blk-sysfs.c | 39 ++

[PATCH 4/8] writeback: track if we're sleeping on progress in balance_dirty_pages()

2016-03-23 Thread Jens Axboe
Note in the bdi_writeback structure if a task is currently being limited in balance_dirty_pages(), waiting for writeback to proceed. Signed-off-by: Jens Axboe --- include/linux/backing-dev-defs.h | 2 ++ mm/page-writeback.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/incl

[no subject]

2016-03-23 Thread Jens Axboe
This patchset isn't as much a final solution, as it's demonstration of what I believe is a huge issue. 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 backgr

[PATCH 1/8] writeback: propagate the various reasons for writeback

2016-03-23 Thread Jens Axboe
Avoid losing context by propagating the various reason why we initiate writeback. Signed-off-by: Jens Axboe --- fs/fs-writeback.c | 17 + 1 file changed, 17 insertions(+) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 5c46ed9f3e14..387610cf4f7f 100644 --- a/fs/fs-write

[PATCH 2/8] writeback: add wbc_to_write()

2016-03-23 Thread Jens Axboe
Add wbc_to_write(), which returns the write type to use, based on a struct writeback_control. No functional changes in this patch, but it prepares us for factoring other wbc fields for write type. Signed-off-by: Jens Axboe --- fs/block_dev.c| 2 +- fs/buffer.c | 2 +- f

[RFC][PATCH v7 1/2] printk: Make printk() completely async

2016-03-23 Thread Sergey Senozhatsky
From: Jan Kara Currently, printk() sometimes waits for message to be printed to console and sometimes it does not (when console_sem is held by some other process). In case printk() grabs console_sem and starts printing to console, it prints messages from kernel printk buffer until the buffer is e

[RFC][PATCH v7 0/2] printk: Make printk() completely async

2016-03-23 Thread Sergey Senozhatsky
ntage that printing always happens from a schedulable context and thus we don't lockup any particular CPU or even interrupts. Rebased against next-20160323 v7: -- do not set global printk_sync in panic in vrintk_emit() (Petr) -- simplify vprintk_emit(). drop some of local variables (Petr) -- m

[RFC][PATCH v7 2/2] printk: Make wake_up_klogd_work_func() async

2016-03-23 Thread Sergey Senozhatsky
From: Jan Kara Offload printing of scheduler deferred messages from IRQ context to a schedulable printing kthread, when possible (the same way we do it in vprintk_emit()). Otherwise, the CPU can spend unbounded amount of time doing printing in console_unlock() from IRQ. Signed-off-by: Jan Kara

Re: rcu stalls and soft lockups with recent kernels

2016-03-23 Thread Paul E. McKenney
On Wed, Mar 23, 2016 at 05:50:14AM +0100, Mike Galbraith wrote: > (cc) > > On Tue, 2016-03-22 at 16:22 -0400, Ion Badulescu wrote: > > On 03/17/2016 10:28 PM, Mike Galbraith wrote: > > > On Wed, 2016-03-16 at 12:15 -0400, Ion Badulescu wrote: > > > > Just following up to my own email: > > > > > >

[PATCHSET v2][RFC] Make background writeback not suck

2016-03-23 Thread Jens Axboe
Hi, Apparently I dropped the subject on this one, it's of course v2 of the writeback not sucking patchset... -- Jens Axboe

Re: Who is going to merge it [Was: Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver]

2016-03-23 Thread Thierry Reding
On Wed, Mar 23, 2016 at 10:41:58AM +1000, Dave Airlie wrote: > > > >> So although it's small framework or just subdirectory, we would need > >> someone who can manage the framework to avoid further confusion if > >> necessary. > > > > So maybe it just doesn't need a maintainer, and maybe those the

[PATCH] i2c: Prevent endless uevent loop with dev_dbg

2016-03-23 Thread Jan Glauber
After enabling CONFIG_I2C_DEBUG_CORE my system was broken (no network, console login not possible). System log was flooded with the this message: ... [ 608.052077] rtc-ds1307 0-0068: uevent [ 608.052500] rtc-ds1307 0-0068: uevent [ 608.052925] rtc-ds1307 0-0068: uevent ... The culprit is the

Re: b43: Fix memory leaks in b43_bus_dev_ssb_init andb43_bus_dev_bcma_init

2016-03-23 Thread Kalle Valo
> From: Jia-Ju Bai > > The memory allocated by kzalloc in b43_bus_dev_ssb_init and > b43_bus_dev_bcma_init is not freed. > This patch fixes the bug by adding kfree in b43_ssb_remove, > b43_bcma_remove and error handling code of b43_bcma_probe. > > Thanks Michael for his suggestion. > > Signed-

Re: [1/2] bcma: fix building without OF_IRQ

2016-03-23 Thread Kalle Valo
> The bcma driver core can be built with or without DT support, but > it fails to build when CONFIG_OF=y and CONFIG_OF_IRQ=n, which > can happen on platforms that do not support IRQ domains. > > ERROR: "irq_create_of_mapping" [drivers/bcma/bcma.ko] undefined! > ERROR: "of_irq_parse_raw" [drivers/

Re: rtlwifi: fix gcc-6 indentation warning

2016-03-23 Thread Kalle Valo
> The rtl8821ae_dm_txpower_tracking_callback_thermalmeter function > contains a call to RT_TRACE() that is indented in a misleading > way, as pointed out by a gcc-6 warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c: In function > 'rtl8821ae_dm_txpower_tracking_callback_thermalmete

Re: [PATCH v3] drm/radeon: don't include RADEON_HPD_NONE in HPD IRQ enable bitsets

2016-03-23 Thread Alex Deucher
On Tue, Mar 22, 2016 at 5:05 PM, Nicolai Stange wrote: > The values of all but the RADEON_HPD_NONE members of the radeon_hpd_id > enum transform 1:1 into bit positions within the 'enabled' bitset as > assembled by evergreen_hpd_init(): > > enabled |= 1 << radeon_connector->hpd.hpd; > > However,

[PATCH 2/2] drivers: net: ethernet: dlink: dl2k: fix indent

2016-03-23 Thread Maxim Zhukov
This commit fixed indent in file. Labels must be start of the line Signed-off-by: Maxim Zhukov --- drivers/net/ethernet/dlink/dl2k.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index d

[PATCH 1/2] net: ethernet: dlink: dl2k: fix code style

2016-03-23 Thread Maxim Zhukov
This commit fixed spacing errors and warnings. this output command git diff origin/master -w drivers/net/ethernet/dlink diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index f92b6d9..e635b1e 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethern

<    1   2   3   4   5   6   7   8   >