[PATCH] KVM: hyperv: split lock to protect struct kvm_hv

2016-12-09 Thread Paolo Bonzini
Otherwise, there is an AB-BA deadlock between kvm->lock and vcpu->mutex. Reported-by: Dmitry Vyukov Signed-off-by: Paolo Bonzini --- Compile-tested only. Documentation/virtual/kvm/locking.txt | 2 ++ arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/hyperv.c |

Re: netlink: GPF in sock_sndtimeo

2016-12-09 Thread Cong Wang
On Fri, Dec 9, 2016 at 8:13 PM, Cong Wang wrote: > On Fri, Dec 9, 2016 at 3:01 AM, Richard Guy Briggs wrote: >> On 2016-12-08 22:57, Cong Wang wrote: >>> On Thu, Dec 8, 2016 at 10:02 PM, Richard Guy Briggs wrote: >>> > I also tried to extend Cong Wang's idea to attempt to proactively respond >>

Re: [PATCH] f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack

2016-12-09 Thread Chao Yu
Hi Jaegeuk, Let me try to understand this, in some cases, we can write a checkpoint pack which has wrong cp_ver, like in 1st cp pack which has even version number or 2nd cp pack which has odd version number, so if we load that kind of cp pack during fill_super, we may load wrong summary data from

Re: [PATCH] driver core: flush async calls before testing driver removal

2016-12-09 Thread Greg Kroah-Hartman
On Sat, Dec 10, 2016 at 02:15:19AM +0200, Vladimir Zapolskiy wrote: > If CONFIG_DEBUG_TEST_DRIVER_REMOVE option is enabled a number of false > positives are reported for ATA controller drivers, because ATA port > probes are done asynchronously, and the same problem may also touch > other asynchrono

Re: [regression ?] kbuild: fix building bzImage with CONFIG_TRIM_UNUSED_KSYMS enabled

2016-12-09 Thread Sergey Senozhatsky
On (12/09/16 13:07), Nicolas Pitre wrote: [..] > > build: > > make -j4 > build_log 2>&1 > > > > package: > > make -j4 INSTALL_MOD_PATH="${pkgdir}" modules_install >> build_log 2>&1 > > Weird. it is. sorry for long reply, it took me some time to track it down. turned out, the script also does `pr

[RFC PATCH] arm64: change from CONT_PMD_SHIFT to CONT_PTE_SHIFT

2016-12-09 Thread zhongjiang
From: zhong jiang I think that CONT_PTE_SHIFT is more reasonable even if they are some value. and the patch is not any functional change. Signed-off-by: zhong jiang --- arch/arm64/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/hugetlbpage.c b

[PATCH 1/1 linux-next] xfs: remove unnecessary return

2016-12-09 Thread Fabian Frederick
Commit f7a136aee3c1 ("xfs: several xattr functions can be void") updated 2 end of function return 0 to return in void functions. Remove it. Signed-off-by: Fabian Frederick --- fs/xfs/xfs_attr_list.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_li

Re: [kernel-hardening] Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Eric Biggers
On Sat, Dec 10, 2016 at 01:37:12PM +0800, Herbert Xu wrote: > On Fri, Dec 09, 2016 at 09:25:38PM -0800, Andy Lutomirski wrote: > > > > Herbert, how hard would it be to teach the crypto code to use a more > > sensible data structure than scatterlist and to use coccinelle fix > > this stuff for real?

Re: [kernel-hardening] Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Eric Biggers
On Sat, Dec 10, 2016 at 01:32:08PM +0800, Herbert Xu wrote: > On Fri, Dec 09, 2016 at 09:25:38PM -0800, Andy Lutomirski wrote: > > > > > The following crypto drivers initialize a scatterlist to point into an > > > ablkcipher_request, which may have been allocated on the stack with > > > SKCIPHER_RE

Crypto Fixes for 4.9

2016-12-09 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - Fix pointer size when caam is used with AArch64 boot loader on AArch32 kernel. - Fix ahash state corruption in marvell driver. - Fix buggy algif_aed tag handling. - Prevent mcryptd from being used with incompatible algorithms which can cause c

Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Eric Biggers
On Fri, Dec 09, 2016 at 09:25:38PM -0800, Andy Lutomirski wrote: > > The following crypto drivers initialize a scatterlist to point into an > > ahash_request, which may have been allocated on the stack with > > AHASH_REQUEST_ON_STACK(): > > > > drivers/crypto/bfin_crc.c:351 > > driv

Re: [PATCH] scsi/qla2xxx: label endian-ness for many fields

2016-12-09 Thread Joe Perches
On Fri, 2016-12-09 at 22:45 +0200, Michael S. Tsirkin wrote: > This adds endian-ness labels for lots of qla structs. > Doing this cuts down number of sparse warnings from ~1700 to ~1400. > Will help find and resolve some of real issues down the road. > > Signed-off-by: Michael S. Tsirkin > > ---

Re: [PATCH v3 00/15] livepatch: hybrid consistency model

2016-12-09 Thread Balbir Singh
On Thu, 2016-12-08 at 12:08 -0600, Josh Poimboeuf wrote: > Dusting the cobwebs off the consistency model again.  This is based on > linux-next/master. >  > v1 was posted on 2015-02-09: >  >   https://lkml.kernel.org/r/cover.1423499826.git.jpoim...@redhat.com >  > v2 was posted on 2016-04-28: >  >  

Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Herbert Xu
On Fri, Dec 09, 2016 at 09:25:38PM -0800, Andy Lutomirski wrote: > > Herbert, how hard would it be to teach the crypto code to use a more > sensible data structure than scatterlist and to use coccinelle fix > this stuff for real? First of all we already have a sync non-SG hash interface, it's call

Re: [PATCH 7/7] hwrng: core: Remove two unused include

2016-12-09 Thread kbuild test robot
Hi Corentin, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.9-rc8 next-20161209] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do

Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Herbert Xu
On Fri, Dec 09, 2016 at 09:25:38PM -0800, Andy Lutomirski wrote: > > > The following crypto drivers initialize a scatterlist to point into an > > ablkcipher_request, which may have been allocated on the stack with > > SKCIPHER_REQUEST_ON_STACK(): > > > > drivers/crypto/ccp/ccp-crypto-aes-xt

Re: Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Andy Lutomirski
On Fri, Dec 9, 2016 at 3:08 PM, Eric Biggers wrote: > In the 4.9 kernel, virtually-mapped stacks will be supported and enabled by > default on x86_64. This has been exposing a number of problems in which > on-stack buffers are being passed into the crypto API, which to support crypto > accelerato

Re: [bug report] perf jit: add source line info support

2016-12-09 Thread Stephane Eranian
On Fri, Dec 9, 2016 at 9:16 PM, Stephane Eranian wrote: > Hi Dan, > > On Wed, Nov 30, 2016 at 10:48 AM, Dan Carpenter > wrote: >> Hello Stephane Eranian, >> >> The patch 598b7c6919c7: "perf jit: add source line info support" from >> Nov 30, 2015, leads to the following static checker warning: >>

Re: [PATCH] x86/tsc: RFC: re-synchronize TSCs to boot cpu TSC

2016-12-09 Thread Roland Scheidegger
Am 10.12.2016 um 02:55 schrieb Roland Scheidegger: > Am 09.12.2016 um 23:59 schrieb Thomas Gleixner: >> On Fri, 9 Dec 2016, Roland Scheidegger wrote: >> >> Cc'ed someone from Dell. >> >>> Am 09.12.2016 um 18:33 schrieb Thomas Gleixner: Can you add the patch below to gather more information? T

Re: [PATCH] Add +~800M crashkernel explaination

2016-12-09 Thread Robert LeBlanc
On Fri, Dec 9, 2016 at 7:49 PM, Baoquan He wrote: > On 12/09/16 at 05:22pm, Robert LeBlanc wrote: >> When trying to configure crashkernel greater than about 800 MB, the >> kernel fails to allocate memory on x86 and x86_64. This is due to an >> undocumented limit that the crashkernel and other low

Re: [PATCH 1/1] arm64: mm: add config options for page table configuration

2016-12-09 Thread Scott Branden
Hi Will, On 16-12-09 02:57 AM, Will Deacon wrote: On Thu, Dec 08, 2016 at 11:33:39AM -0800, Scott Branden wrote: Since I currently have your attention: I do think there is fundamental bug in the ARM64 mm implementation. If you look at /sys/devices/system/memory it only shows the last memoryX

Re: [bug report] perf jit: add source line info support

2016-12-09 Thread Stephane Eranian
Hi Dan, On Wed, Nov 30, 2016 at 10:48 AM, Dan Carpenter wrote: > Hello Stephane Eranian, > > The patch 598b7c6919c7: "perf jit: add source line info support" from > Nov 30, 2015, leads to the following static checker warning: > > ./tools/perf/util/genelf_debug.c:211 emit_signed_LEB128() >

perf/jit doesn't cope well with mprotect() to jit containing pages

2016-12-09 Thread Andres Freund
000) @ 0x7efd3866d000 00:00 0 0]: ---p //anon postgres 4107 595444.868140: PERF_RECORD_MMAP2 4107/4107: [0x7efd3866e000(0x45) @ 0x40 fd:02 33434534 1]: --xs /home/andres/.debug/jit/llvm-IR-jit-20161209.XXfN0K3O/jitted-4107-1.so postgres 4107 595444.884090: PERF_RECORD_MMAP2 4107/4107: [0x

[GIT] Networking

2016-12-09 Thread David Miller
1) Limit the number of can filters to avoid > MAX_ORDER allocations. Fix from Marc Kleine-Budde. 2) Limit GSO max size in netvsc driver to avoid problems with NVGRE configurations. From Stephen Hemminger. 3) Return proper error when memory allocation fails in ser_gigaset_init(), from D

Re: [PATCH 1/1] of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory

2016-12-09 Thread Jason Liu
2016-11-23 19:37 GMT+08:00 Jason Liu : > Need ensure the cma reserved region not cross the low/high memory boundary > when using the dynamic allocation methond through device-tree, otherwise, > kernel will fail to boot up when cma reserved region cross how/high mem. > > Signed-off-by: Jason Liu >

Re: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Paul E. McKenney
On Sat, Dec 10, 2016 at 08:45:38AM +0800, Boqun Feng wrote: > On Fri, Dec 09, 2016 at 03:49:45PM -0800, Paul E. McKenney wrote: > > On Fri, Dec 09, 2016 at 04:48:22PM +0800, Boqun Feng wrote: > > > Hi Paul, > > > > > > While reading the discussion at: > > > > > > https://marc.info/?l=linux-kernel

Re: netlink: GPF in sock_sndtimeo

2016-12-09 Thread Cong Wang
On Fri, Dec 9, 2016 at 3:01 AM, Richard Guy Briggs wrote: > On 2016-12-08 22:57, Cong Wang wrote: >> On Thu, Dec 8, 2016 at 10:02 PM, Richard Guy Briggs wrote: >> > I also tried to extend Cong Wang's idea to attempt to proactively respond >> > to a >> > NETLINK_URELEASE on the audit_sock and res

[PATCH] llist: Clarify comments about when locking is needed

2016-12-09 Thread Joel Fernandes
llist.h comments are a bit confusing about when locking is needed versus when it isn't. Clarify these comments a bit more and be a bit more descriptive about why locking is needed for llist_del_first. Cc: Huang Ying Cc: Ingo Molnar Cc: Will Deacon Cc: Paul McKenney Cc: Mathieu Desnoyers Signe

Re: [PATCH] net: mlx5: Fix Kconfig help text

2016-12-09 Thread David Miller
From: Christopher Covington Date: Fri, 9 Dec 2016 16:53:05 -0500 > Since the following commit, Infiniband and Ethernet have not been > mutually exclusive. > > Fixes: 4aa17b28 mlx5: Enable mutual support for IB and Ethernet > > Signed-off-by: Christopher Covington Applied.

Re: [PATCH net-next] net: macb: Added PCI wrapper for Platform Driver.

2016-12-09 Thread David Miller
From: Bartosz Folta Date: Fri, 9 Dec 2016 10:05:46 + > There are hardware PCI implementations of Cadence GEM network controller. > This patch will allow to use such hardware with reuse of existing Platform > Driver. Please properly format your commit message text to 80 columns. > > Signe

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Boris Ostrovsky
On 12/09/2016 06:00 PM, Thomas Gleixner wrote: On Fri, 9 Dec 2016, Boris Ostrovsky wrote: On 12/09/2016 05:06 PM, Thomas Gleixner wrote: On Thu, 8 Dec 2016, Thomas Gleixner wrote: Boris, can you please verify if that makes the topology_update_package_map() call which you placed into the Xen

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Boris Ostrovsky
On 12/09/2016 06:02 PM, Boris Ostrovsky wrote: On 12/09/2016 05:06 PM, Thomas Gleixner wrote: On Thu, 8 Dec 2016, Thomas Gleixner wrote: Boris, can you please verify if that makes the topology_update_package_map() call which you placed into the Xen cpu starting code obsolete ? Will do. I di

Re: [RFC][PATCHv5 3/7] printk: introduce per-cpu safe_print seq buffer

2016-12-09 Thread Sergey Senozhatsky
On (12/09/16 17:46), Petr Mladek wrote: > > -/* > > - * Safe printk() for NMI context. It uses a per-CPU buffer to > > - * store the message. NMIs are not nested, so there is always only > > - * one writer running. But the buffer might get flushed from another > > - * CPU, so we need to be careful.

[PATCH] drm/bridge: analogix_dp: set the DPCD600 during disabling the psr

2016-12-09 Thread Caesar Wang
Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode. Signed-off-by: Caesar Wan

Re: [PATCH] Add +~800M crashkernel explaination

2016-12-09 Thread Baoquan He
On 12/09/16 at 05:22pm, Robert LeBlanc wrote: > When trying to configure crashkernel greater than about 800 MB, the > kernel fails to allocate memory on x86 and x86_64. This is due to an > undocumented limit that the crashkernel and other low memory items must > be allocated below 896 MB unless the

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-09 Thread Lino Sanfilippo
Hi, On 09.12.2016 12:21, Pavel Machek wrote: > On Fri 2016-12-09 00:19:43, Francois Romieu wrote: >> Lino Sanfilippo : >> [...] >> > OTOH Pavel said that he actually could produce a deadlock. Now I wonder if >> > this is caused by that locking scheme (in a way I have not figured out yet) >> > or

Re: [PATCH net-next 1/2] net: phy: add extension of phy-mode for XLGMII

2016-12-09 Thread Jie Deng
On 2016/12/10 0:39, Andrew Lunn wrote: > On Fri, Dec 09, 2016 at 01:19:07PM +0800, Jie Deng wrote: >> >> On 2016/12/9 6:15, Florian Fainelli wrote: >>> On 12/06/2016 07:57 PM, Jie Deng wrote: This patch adds phy-mode support for Synopsys XLGMAC >>> The functional changes look good, but I wou

Re: [PATCH v2 2/2] staging: iio: ad7606: move out of staging

2016-12-09 Thread kbuild test robot
Hi Eva, [auto build test WARNING on iio/togreg] [also build test WARNING on next-20161209] [cannot apply to v4.9-rc8] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Eva-Rachel-Retuya/staging

Re: [PATCH] Input: i8042-x86ia64io.h - Comment else/endif of CONFIG_PNP

2016-12-09 Thread Dmitry Torokhov
On Fri, Dec 09, 2016 at 09:55:09PM -0200, Marcos Paulo de Souza wrote: > As this define check if huge, this makes easier to read the code. > > Signed-off-by: Marcos Paulo de Souza Applied, thank you. > --- > While reviewing patches from Dmitry about presence of 8042, it makes it > much easier

Re: [PATCH] driver core: flush async calls before testing driver removal

2016-12-09 Thread Dmitry Torokhov
On Fri, Dec 9, 2016 at 4:15 PM, Vladimir Zapolskiy wrote: > If CONFIG_DEBUG_TEST_DRIVER_REMOVE option is enabled a number of false > positives are reported for ATA controller drivers, because ATA port > probes are done asynchronously, and the same problem may also touch > other asynchronously prob

Re: [PATCH] x86/tsc: RFC: re-synchronize TSCs to boot cpu TSC

2016-12-09 Thread Roland Scheidegger
Am 09.12.2016 um 23:59 schrieb Thomas Gleixner: > On Fri, 9 Dec 2016, Roland Scheidegger wrote: > > Cc'ed someone from Dell. > >> Am 09.12.2016 um 18:33 schrieb Thomas Gleixner: >>> Can you add the patch below to gather more information? There is a hunk in >>> there with an '#if 0' which sets th

Re: [PATCH 4/5] 9p: introduce async read requests

2016-12-09 Thread Al Viro
On Thu, Dec 08, 2016 at 12:59:05PM -0800, Stefano Stabellini wrote: > + } else { > + req = p9_client_get_req(clnt, P9_TREAD, "dqd", > fid->fid, offset, rsize); > + if (IS_ERR(req)) { > + *err = PTR_ERR(req); > +

Re: [PATCH 09/10] s390/cputime: delayed accounting of system time

2016-12-09 Thread Frederic Weisbecker
On Tue, Dec 06, 2016 at 03:32:22AM +0100, Frederic Weisbecker wrote: > From: Martin Schwidefsky > > The account_system_time() function is called with a cputime that > occurred while running in the kernel. The function detects which > context the CPU is currently running in and accounts the time t

Re: [PATCH 0/2] Determine kernel text mapping size at runtime for x86_64

2016-12-09 Thread Baoquan He
On 12/08/16 at 02:00pm, Dave Anderson wrote: > > > - Original Message - > > On Wed, Dec 7, 2016 at 11:56 PM, Baoquan He wrote: > > > Dave Anderson ever told in Crash utility he makes judgement whether it's > > > a kaslr kernel by size of KERNEL_IMAGE_SIZE. As long as it's 1G, it's > > >

Re: [PATCH 7/7] hwrng: core: Remove two unused include

2016-12-09 Thread kbuild test robot
Hi Corentin, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.9-rc8 next-20161209] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do

[PATCH] jump label: pass kbuild_cflags when checking for asm goto support

2016-12-09 Thread David Lin
Some versions of ARM GCC compiler such as Android toolchain throws in a '-fpic' flag by default. This causes the gcc-goto check script to fail although some config would have '-fno-pic' flag in the KBUILD_CFLAGS. This patch passes the KBUILD_CFLAGS to the check script so that the script does not r

Re: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Boqun Feng
On Fri, Dec 09, 2016 at 03:49:45PM -0800, Paul E. McKenney wrote: > On Fri, Dec 09, 2016 at 04:48:22PM +0800, Boqun Feng wrote: > > Hi Paul, > > > > While reading the discussion at: > > > > https://marc.info/?l=linux-kernel&m=148044253400769 > > This discussion was for stalls specifically, rathe

Re: [PATCH 01/22] m68k/atari: Modernize printing of kernel messages

2016-12-09 Thread Michael Schmitz
Hi Geert, Am 09.12.2016 um 01:22 schrieb Geert Uytterhoeven: > On Wed, Dec 7, 2016 at 11:36 PM, Finn Thain > wrote: >> On Wed, 7 Dec 2016, Geert Uytterhoeven wrote: >>> - Convert from printk() to pr_*(), >>> - Add missing continuations, to fix user-visible breakage, >>> - Drop useless WARN

Re: [PATCH] PCI: pciehp: Optimize PCIe root resume time

2016-12-09 Thread Bjorn Helgaas
[+cc Yinghai, author of 2f5d8e4ff947] On Fri, Dec 09, 2016 at 02:43:26PM -0800, Vaibhav Shankar wrote: > On Apollolake platforms, PCIe rootport takes a long time to resume > from S3. With 100ms delay before read pci conf, rootport takes > ~200ms during resume. > > commit 2f5d8e4ff947 ("PCI: pcieh

Should xhci_irq() call usb_hc_died()?

2016-12-09 Thread Bjorn Helgaas
Hi Mathias, ehci_irq(), ohci_irq(), fotg210_irq(), and oxu210_hcd_irq() contain code equivalent to this: status = ehci_readl(...); if (status == ~(u32) 0) { ... usb_hc_died(hcd); ... return IRQ_HANDLED; } xhci_irq() has a similar check, but does not call usb_hc_died(): s

[PATCH] Add +~800M crashkernel explaination

2016-12-09 Thread Robert LeBlanc
When trying to configure crashkernel greater than about 800 MB, the kernel fails to allocate memory on x86 and x86_64. This is due to an undocumented limit that the crashkernel and other low memory items must be allocated below 896 MB unless the ",high" option is given. This updates the documentati

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Stephen Hemminger
On Fri, 9 Dec 2016 22:35:05 + Haiyang Zhang wrote: > > > > > > > > Emulated NIC is already excluded in start of netvc notifier handler. > > > > > > > > static int netvsc_netdev_event(struct notifier_block *this, > > > >unsigned long event, void *ptr) > > > > {

[PATCH] driver core: flush async calls before testing driver removal

2016-12-09 Thread Vladimir Zapolskiy
If CONFIG_DEBUG_TEST_DRIVER_REMOVE option is enabled a number of false positives are reported for ATA controller drivers, because ATA port probes are done asynchronously, and the same problem may also touch other asynchronously probed drivers. To reduce the rate of false reports on boot call async

[GIT PULL] drm-vc4-next-2016-12-09

2016-12-09 Thread Eric Anholt
I just got the ack on the DT bindings for VEC, so I'd like to get it pulled if we can. If it's too late for 4.10, I'm fine waiting. Adding VEC support should have a low chance of regressions because it doesn't get a mode configured by default. This is due to it reporting unknown connector state

Re: [PATCH] perf annotate: check that objdump correctly works

2016-12-09 Thread Alexis Berlemont
Arnaldo Carvalho de Melo wrote: > Em Thu, Dec 01, 2016 at 01:04:36AM +0100, Alexis Berlemont escreveu: > > Before disassembling, the tool objdump is called just to be sure: > > * objdump is available in the path; > > * objdump is an executable binary; > > * objdump has no dependency issue or anythi

[PATCH] ACPI / CPPC: Fix per-CPU pointers management

2016-12-09 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Enabling ACPI CPPC on x86 causes a NULL pointer dereference to occur (on boot on a "default" KVM setup) in acpi_cppc_processor_exit() due to a missing check against NULL in there: |BUG: unable to handle kernel NULL pointer dereference at (null) |IP: [] acpi_cppc

Re: [PATCH 1/2] of: base: add support to get machine model name

2016-12-09 Thread Frank Rowand
On 12/09/16 08:03, Rob Herring wrote: > On Wed, Nov 23, 2016 at 4:25 AM, Sudeep Holla wrote: >> >> >> On 22/11/16 21:35, Rob Herring wrote: >>> >>> On Tue, Nov 22, 2016 at 12:44 PM, Frank Rowand >>> wrote: >> >> >> [...] >> This patch adds a function that leads to conflating the "model"

[PATCH] Input: i8042-x86ia64io.h - Comment else/endif of CONFIG_PNP

2016-12-09 Thread Marcos Paulo de Souza
As this define check if huge, this makes easier to read the code. Signed-off-by: Marcos Paulo de Souza --- While reviewing patches from Dmitry about presence of 8042, it makes it much easier to understand the ifdefs... drivers/input/serio/i8042-x86ia64io.h | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH 0/4] x86: Trust firmware a bit more about presence of 8042

2016-12-09 Thread Marcos Paulo de Souza
Hi Dmitry, On Fri, Dec 09, 2016 at 12:57:37PM -0800, Dmitry Torokhov wrote: > Hi, > > Historically we did not trust PNP data regarding keyboard controllers on > X86, but more and more boards get upset with us if they try to tell us that > there is no keyboard controller and we still go and try to

Re: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Paul E. McKenney
On Fri, Dec 09, 2016 at 04:48:22PM +0800, Boqun Feng wrote: > Hi Paul, > > While reading the discussion at: > > https://marc.info/?l=linux-kernel&m=148044253400769 This discussion was for stalls specifically, rather than for routine scans of the bitmasks. But it does look to save some code, so

[PATCH v3 4/4] ARM: treewide: Replace uses of virt_to_phys with __pa_symbol

2016-12-09 Thread Florian Fainelli
All low-level PM/SMP code using virt_to_phys() should actually use __pa_symbol() against kernel symbols. Update code where relevant to move away from virt_to_phys(). Signed-off-by: Florian Fainelli --- arch/arm/common/mcpm_entry.c | 12 ++-- arch/arm/mach-alpine/platsmp.c

[PATCH v3 3/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-09 Thread Florian Fainelli
x86 has an option: CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This includes caller using __virt_to_phys() on image addresses instead of __pa_symbol(). This is a generally useful deb

[PATCH v3 1/4] mtd: lart: Rename partition defines to be prefixed with PART_

2016-12-09 Thread Florian Fainelli
In preparation for defining KERNEL_START on ARM, rename KERNEL_START to PART_KERNEL_START, and to be consistent, do this for all partition-related constants. Signed-off-by: Florian Fainelli --- drivers/mtd/devices/lart.c | 24 1 file changed, 12 insertions(+), 12 deletio

[PATCH v3 2/4] ARM: Define KERNEL_START and KERNEL_END

2016-12-09 Thread Florian Fainelli
In preparation for adding CONFIG_DEBUG_VIRTUAL support, define a set of common constants: KERNEL_START and KERNEL_END which abstract CONFIG_XIP_KERNEL vs. !CONFIG_XIP_KERNEL. Update the code where relevant. Signed-off-by: Florian Fainelli --- arch/arm/include/asm/memory.h | 7 +++ arch/arm/m

[PATCH v3 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-09 Thread Florian Fainelli
This patch series builds on top of Laura's [PATCHv5 00/10] CONFIG_DEBUG_VIRTUAL for arm64 to add support for CONFIG_DEBUG_VIRTUAL for ARM. This was tested on a Brahma B15 platform (ARMv7 + HIGHMEM + LPAE). Note that the treewide changes would involve a huge CC list, which is why it has been purpo

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-09 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > "Serge E. Hallyn" writes: > >> Quoting Eric W. Biederman (ebied...@xmission.com): >>> "Serge E. Hallyn" writes: >>> >>> > On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: >>> >> "Serge E. Hallyn" writes: >>> >>> >> Any chan

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-12-09 Thread Grygorii Strashko
On 12/08/2016 06:47 PM, Stephen Boyd wrote: > On 12/06, Grygorii Strashko wrote: >> Subject: [PATCH] cpts refclk sel >> >> Signed-off-by: Grygorii Strashko >> --- >> arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 10 +- >> drivers/net/ethernet/ti/cpts.c| 52 >>

Re: [V9fs-developer] [PATCH 2/5] 9p: store req details and callback in struct p9_req_t

2016-12-09 Thread Stefano Stabellini
On Fri, 9 Dec 2016, Dominique Martinet wrote: > Nice. I like the idea of async I/Os :) > > Stefano Stabellini wrote on Thu, Dec 08, 2016: > > Add a few fields to struct p9_req_t. Callback is the function which will > > be called upon requestion completion. offset, rsize, pagevec and kiocb > > stor

Re: [PATCH 1/1] dri: vc4: set error code on failure

2016-12-09 Thread Eric Anholt
Pan Bian writes: > Function vc4_cl_lookup_bos() does not set the error code when > drm_malloc_ab() returns a NULL pointer, and will return 0 (indicates > success). This patch fixes the bug, assigning "-ENOMEM" to the return > variable ret on the path that memory allocation fails. > > Bugzilla: ht

Re: [PATCH] proc: mm: export PTE sizes directly in smaps (v3)

2016-12-09 Thread Dave Hansen
On 12/01/2016 06:50 AM, Andy Shevchenko wrote: >> > +static int size_shift(unsigned long long nr) >> > +{ >> > + if (nr < (1ULL<<10)) >> > + return 0; >> > + if (nr < (1ULL<<20)) >> > + return 10; >> > + if (nr < (1ULL<<30)) >> > + return

Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Eric Biggers
In the 4.9 kernel, virtually-mapped stacks will be supported and enabled by default on x86_64. This has been exposing a number of problems in which on-stack buffers are being passed into the crypto API, which to support crypto accelerators operates on 'struct page' rather than on virtual memory.

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Boris Ostrovsky wrote: > On 12/09/2016 05:06 PM, Thomas Gleixner wrote: > > On Thu, 8 Dec 2016, Thomas Gleixner wrote: > > > > Boris, can you please verify if that makes the > > topology_update_package_map() call which you placed into the Xen cpu > > starting code obsolete ? >

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Boris Ostrovsky
On 12/09/2016 05:06 PM, Thomas Gleixner wrote: > On Thu, 8 Dec 2016, Thomas Gleixner wrote: > > Boris, can you please verify if that makes the > topology_update_package_map() call which you placed into the Xen cpu > starting code obsolete ? Will do. I did test your patch but without removing topol

Re: [PATCH] x86/tsc: RFC: re-synchronize TSCs to boot cpu TSC

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Roland Scheidegger wrote: Cc'ed someone from Dell. > Am 09.12.2016 um 18:33 schrieb Thomas Gleixner: > > Can you add the patch below to gather more information? There is a hunk in > > there with an '#if 0' which sets the TSC ADJUST to 0 on boot, which you can > > turn on as s

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-09 Thread Dodji Seketeli
Hello, Nicholas Piggin a écrit: [...] > That said, a dwarf based checker tool should be able to do as good a job > (maybe a bit better because report is very informative and it may pick up > compiler alignments or padding options). So, Nicholas was kind enough to send me the two Linux Kernel b

Re: [PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties

2016-12-09 Thread Andrew Jeffery
On Fri, 2016-12-09 at 16:49 -0600, Rob Herring wrote: > On Tue, Dec 06, 2016 at 01:53:17PM +1100, Andrew Jeffery wrote: > > Whilst describing a device and not a bus, simple-mfd is modelled on > > simple-bus where child nodes are iterated and registered as platform > > devices. Some complex devices,

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 5:05 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

Re: [PATCH 18/22] m68k/mm: kmap - Modernize printing of kernel messages

2016-12-09 Thread Finn Thain
On Thu, 8 Dec 2016, I wrote: > > On Wed, 7 Dec 2016, Geert Uytterhoeven wrote: > > > - Convert from printk() to pr_*(), > > - Add missing continuations, > > - Remove #undef DEBUG. > > > > Note that "#ifdef DEBUG" is sometimes retained because pr_cont() is > > not optimized away when deb

Re: [PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties

2016-12-09 Thread Rob Herring
On Tue, Dec 06, 2016 at 01:53:17PM +1100, Andrew Jeffery wrote: > Whilst describing a device and not a bus, simple-mfd is modelled on > simple-bus where child nodes are iterated and registered as platform > devices. Some complex devices, e.g. the Aspeed LPC controller, can > benefit from address sp

[PATCH] PCI: pciehp: Optimize PCIe root resume time

2016-12-09 Thread Vaibhav Shankar
On Apollolake platforms, PCIe rootport takes a long time to resume from S3. With 100ms delay before read pci conf, rootport takes ~200ms during resume. commit 2f5d8e4ff947 ("PCI: pciehp: replace unconditional sleep with config space access check") is the one that added the 100ms delay before readi

Re: [PATCH v3 1/6] mfd: dt: Fix "indicates" typo in mfd bindings document

2016-12-09 Thread Rob Herring
On Tue, Dec 06, 2016 at 01:53:16PM +1100, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery > --- > Documentation/devicetree/bindings/mfd/mfd.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Rob Herring

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 1:21 PM > To: Greg KH > Cc: KY Srinivasan ; o...@aepfle.de; Haiyang Zhang > ; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

Re: [PATCH 4.8 00/45] 4.8.14-stable review

2016-12-09 Thread Guenter Roeck
On Fri, Dec 09, 2016 at 05:20:29PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.14 release. > There are 45 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH v2 1/4] net: hix5hd2_gmac: add generic compatible string

2016-12-09 Thread Rob Herring
On Mon, Dec 05, 2016 at 09:27:58PM +0800, Dongpo Li wrote: > The "hix5hd2" is SoC name, add the generic ethernet driver name. > The "hisi-gemac-v1" is the basic version and "hisi-gemac-v2" adds > the SG/TXCSUM/TSO/UFO features. > > Signed-off-by: Dongpo Li > --- > .../devicetree/bindings/net/his

Re: [PATCH 4.4 00/28] 4.4.38-stable review

2016-12-09 Thread Guenter Roeck
On Fri, Dec 09, 2016 at 05:17:42PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.38 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

[PATCH] tty: serial: fsl_lpuart: potential NULL dereference

2016-12-09 Thread Alexey Khoroshilov
tty_port_tty_get() might return a tty which is NULL if the port is not associated with a tty (e.g. due to close or hangup). But lpuart_start_rx_dma() dereferences tty without any check. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/

Re: [PATCH] sched/pid fix use-after free in task_tgid_vnr

2016-12-09 Thread Eric W. Biederman
Oleg Nesterov writes: > On 12/09, EunTaik Lee wrote: >> >> There is a use-after-free case with below call stack. >> >> pid_nr_ns+0x10/0x38 >> cgroup_pidlist_start+0x144/0x400 >> cgroup_seqfile_start+0x1c/0x24 >> kernfs_seq_start+0x54/0x90 >> seq_read+0x15c/0x3a8 >> kernfs_fop_read+0x38/0x160 >> _

[GIT PULL] VFIO updates for v4.10-rc1

2016-12-09 Thread Alex Williamson
/vfio-mdev/mtty.c --- Merge note: Stephen Rothwell has identified an API change conflict in linux-next for get_user_pages_remote(). Depending on the ordering of merges versus akpm's branches, a fixup may be necessary as Stephen has provided in linux-next 20161

Re: [V9fs-developer] [PATCH 4/5] 9p: introduce async read requests

2016-12-09 Thread Stefano Stabellini
On Fri, 9 Dec 2016, Dominique Martinet wrote: > Stefano Stabellini wrote on Thu, Dec 08, 2016: > > If the read is an async operation, send a 9p request and return > > EIOCBQUEUED. Do not wait for completion. > > > > Complete the read operation from a callback instead. > > > > Signed-off-by: Stefa

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Thomas Gleixner
On Thu, 8 Dec 2016, Thomas Gleixner wrote: Boris, can you please verify if that makes the topology_update_package_map() call which you placed into the Xen cpu starting code obsolete ? Thanks, tglx

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 4:45 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Stephen Hemminger
On Fri, 9 Dec 2016 21:53:49 + Haiyang Zhang wrote: > > -Original Message- > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Friday, December 9, 2016 4:45 PM > > To: Haiyang Zhang > > Cc: Greg KH ; KY Srinivasan > > ; o...@aepfle.de; linux-kernel@vger.kernel.or

Re: md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Bernd Schubert
On 09.12.2016 22:58, SF Markus Elfring wrote: Irrelevant, the variable is not used before checking it. * Will it be more appropriate to attempt another memory allocation only if the previous one succeeded already? * Can it be a bit more efficient to duplicate only the required data in a

Re: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-09 Thread Andrew Morton
On Thu, 8 Dec 2016 02:22:55 +0100 Rasmus Villemoes wrote: > TL;DR: these patches save 250 KB of memory, with more low-hanging > fruit ready to pick. > > While browsing through the lib/idr.c code, I noticed that the code at > the end of ida_get_new_above() probably doesn't work as intended: Mos

Re: [PATCH v6 1/2] sparc: fix a building error reported by kbuild

2016-12-09 Thread Sam Ravnborg
Hi Gonglei. On Thu, Dec 08, 2016 at 12:37:08PM +0800, Gonglei wrote: > >> arch/sparc/include/asm/topology_64.h:44:44: > error: implicit declaration of function 'cpu_data' > [-Werror=implicit-function-declaration] > > #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) >

Re: md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread SF Markus Elfring
> Irrelevant, the variable is not used before checking it. * Will it be more appropriate to attempt another memory allocation only if the previous one succeeded already? * Can it be a bit more efficient to duplicate only the required data in a single function call before? Regards, Markus

Re: [PATCH] md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Joe Perches
On Fri, 2016-12-09 at 21:30 +, Al Viro wrote: > On Fri, Dec 09, 2016 at 11:05:14AM -0800, Joe Perches wrote: > > On Fri, 2016-12-09 at 19:30 +0100, SF Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Fri, 9 Dec 2016 19:09:13 +0100 > > > > > > The function "kmalloc" was called in o

[PATCH] net: mlx5: Fix Kconfig help text

2016-12-09 Thread Christopher Covington
Since the following commit, Infiniband and Ethernet have not been mutually exclusive. Fixes: 4aa17b28 mlx5: Enable mutual support for IB and Ethernet Signed-off-by: Christopher Covington --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/dri

Re: [PATCH v2 2/2] staging: iio: ad7606: move out of staging

2016-12-09 Thread kbuild test robot
Hi Eva, [auto build test WARNING on iio/togreg] [also build test WARNING on next-20161209] [cannot apply to v4.9-rc8] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Eva-Rachel-Retuya/staging

[PATCH v2] drivers: Update drv260x driver

2016-12-09 Thread Jingkui Wang
Update driver drv260x to use generic device properties Remove platform data and corresponding header file Signed-off-by: Jingkui Wang --- Changes in v2: - Delete unused header file drivers/input/misc/drv260x.c| 43 ++--- include/linux/platform_data/drv260

  1   2   3   4   5   6   7   >