Re: [PATCH v3 tip/core/rcu 40/40] rcu: Make non-preemptive schedule be Tasks RCU quiescent state

2017-09-29 Thread Paul E. McKenney
On Fri, Sep 29, 2017 at 01:44:56PM +0200, Paolo Bonzini wrote: > On 29/09/2017 12:34, Peter Zijlstra wrote: > > On Fri, Sep 29, 2017 at 12:01:24PM +0200, Paolo Bonzini wrote: > >>> Does this mean whenever we get a page fault in a RCU read-side critical > >>> section, we may hit this? > >>> > >>> Co

Re: [PATCH] x86/mm: Disable branch profiling in mem_encrypt.c

2017-09-29 Thread Borislav Petkov
On Fri, Sep 29, 2017 at 11:24:19AM -0500, Tom Lendacky wrote: > Some routines in mem_encrypt.c are called very early in the boot process, > e.g. sme_encrypt_kernel(). When CONFIG_TRACE_BRANCH_PROFILING is defined > the resulting branch profiling associated with the check to see if SME is > active r

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-29 Thread Marcelo Tosatti
On Fri, Sep 29, 2017 at 10:18:25AM +0200, Paolo Bonzini wrote: > On 28/09/2017 23:35, Marcelo Tosatti wrote: > > On Thu, Sep 28, 2017 at 09:22:02AM +0200, Paolo Bonzini wrote: > >> On 28/09/2017 02:44, Marcelo Tosatti wrote: > Again: if you have many interruptions, it's not a flaw in KVM or QE

Re: KVM PV (was: Re: [PATCH v2 2/2] x86/lguest: remove lguest support)

2017-09-29 Thread Paolo Bonzini
On 29/09/2017 17:47, Lai Jiangshan wrote: > Hello, all > > An interesting (at least to me) thinking came up to me when I found > that the lguest was removed. But I don't have enough knowledge > to find out the answer nor energy to implement it in some time. > > Is it possible to implement kvm-pv

Re: [PATCH -v2 04/18] sched/fair: Remove se->load.weight from se->avg.load_sum

2017-09-29 Thread Peter Zijlstra
On Fri, Sep 29, 2017 at 04:26:10PM +0100, Morten Rasmussen wrote: > On Fri, Sep 01, 2017 at 03:21:03PM +0200, Peter Zijlstra wrote: > > +/* > > + * sched_entity: > > + * > > + * load_sum := runnable_sum > > + * load_avg = se_weight(se) * runnable_avg > > + * > > + * cfq_rs: > > I think this sh

Re: [RFC PATCH 1/2] arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables

2017-09-29 Thread Will Deacon
On Fri, Sep 29, 2017 at 09:29:39AM -0700, Paul E. McKenney wrote: > On Fri, Sep 29, 2017 at 10:08:43AM +0100, Will Deacon wrote: > > On Thu, Sep 28, 2017 at 05:58:30PM -0700, Paul E. McKenney wrote: > > > On Fri, Sep 29, 2017 at 07:59:09AM +1300, Michael Cree wrote: > > > > On Thu, Sep 28, 2017 at

Re: [RFC PATCH 1/2] arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables

2017-09-29 Thread Paul E. McKenney
On Fri, Sep 29, 2017 at 10:08:43AM +0100, Will Deacon wrote: > On Thu, Sep 28, 2017 at 05:58:30PM -0700, Paul E. McKenney wrote: > > On Fri, Sep 29, 2017 at 07:59:09AM +1300, Michael Cree wrote: > > > On Thu, Sep 28, 2017 at 08:43:54AM -0700, Paul E. McKenney wrote: > > > > On Thu, Sep 28, 2017 at

[PATCH] x86/mm: Disable branch profiling in mem_encrypt.c

2017-09-29 Thread Tom Lendacky
Some routines in mem_encrypt.c are called very early in the boot process, e.g. sme_encrypt_kernel(). When CONFIG_TRACE_BRANCH_PROFILING is defined the resulting branch profiling associated with the check to see if SME is active results in a kernel crash. Disable branch profiling for mem_encrypt.c b

Re: [PATCH 0/4] x86/platform/UV: Update TSC support

2017-09-29 Thread Peter Zijlstra
On Fri, Sep 29, 2017 at 08:19:22AM -0700, Mike Travis wrote: > > So I would still like to get clarification on how ART works (or likely > > doesn't) on your systems. I think for now its fairly prudent to kill > > detect_art() on UV. > > I tested with both detect_art enabled and disabled and didn't

[Part2 PATCH v4.1 05/30] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-29 Thread Brijesh Singh
The Platform Security Processor (PSP) is part of AMD Secure Processor (AMD-SP), PSP is a dedicated processor that provides the support for key management commands in a Secure Encrypted Virtualization (SEV) mode, along with software-based Trusted Execution Environment (TEE) to enable the third-party

Re: [PATCH 4/4] lockdep: make MAX_LOCK_DEPTH configurable from Kconfig

2017-09-29 Thread Bjorn Helgaas
On Thu, Sep 28, 2017 at 04:51:46PM -0700, Govindarajulu Varadarajan wrote: > On Thu, 28 Sep 2017, Peter Zijlstra wrote: > > >On Wed, Sep 27, 2017 at 02:42:20PM -0700, Govindarajulu Varadarajan wrote: > >>Make MAX_LOCK_DEPTH configurable. It is set to 48 right now. Number of > >>VFs under a PCI pf

Re: [PATCH v1 06/14] tee: optee: add page list manipulation functions

2017-09-29 Thread Yury Norov
On Fri, Sep 29, 2017 at 01:34:13PM +0300, Volodymyr Babchuk wrote: > > > On 29.09.17 03:23, Yury Norov wrote: > > On Thu, Sep 28, 2017 at 09:04:03PM +0300, Volodymyr Babchuk wrote: > > > From: Volodymyr Babchuk > > > > > > These functions will be used to pass information about shared > > > buff

Re: [PATCH V2 for-next 0/8] Bug fixes & Code improvements in hip06 and hip08 RoCE driver

2017-09-29 Thread Doug Ledford
On Fri, 2017-09-29 at 23:10 +0800, Wei Hu (Xavier) wrote: > This patch-set introduces some bug fixes and code improvements > for hip06 and hip08 RoCE driver. It includes a patch for fixing > the assign algorithm of qp_attr->max_rd_atomic and > qp_attr->max_dest_rd_atomic, three patches for static c

Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-09-29 Thread Casey Leedom
| From: Harsh Jain | Sent: Friday, September 29, 2017 1:14:45 AM | | Robin, | | I tried running patch on our test setup. | | With "intel_iommu=on" : I can see single occurrence of DMAR Write failure | on perf traffic with 10 thread. | | [ 749.616480] perf: interrupt took too long (3203 >

Re: [PATCH v3 0/4] Update TMDSEVM3530 support for omap3-evm

2017-09-29 Thread Tony Lindgren
* Derald D. Woods [170928 19:05]: > On Tue, Sep 12, 2017 at 06:48:20PM -0500, Derald D. Woods wrote: > > This patch set allows TMDSEVM3530(omap3-evm.dts) to boot using common > > processor module data that is shared with 'omap3-evm-37xx.dts'. A new > > common file for processor module data is intr

[PATCH v2] kcov: remove pointless current != NULL check

2017-09-29 Thread Andrey Ryabinin
__sanitizer_cov_trace_pc() is a hot code, so it's worth to remove pointless '!current' check. Current is never NULL. Signed-off-by: Andrey Ryabinin Acked-by: Dmitry Vyukov Acked-by: Mark Rutland --- Changes since v1: - Collect acks and drop other patches. kernel/kcov.c | 2 +- 1 file change

Re: [PATCH 1/3] kcov: remove #ifdef CONFIG_RANDOMIZE_BASE

2017-09-29 Thread Andrey Ryabinin
On 09/19/2017 04:47 PM, Dmitry Vyukov wrote: > On Tue, Sep 19, 2017 at 3:30 PM, Mark Rutland wrote: >> Hi, >> >> On Tue, Sep 19, 2017 at 03:46:46PM +0300, Andrey Ryabinin wrote: >>> There is no need to surround kaslr_offset() with CONFIG_RANDOMIZE_BASE >>> ifdef. >>> kaslr_offset() will just retu

RE: [RESEND PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-29 Thread Florian Fainelli
On September 29, 2017 6:59:18 AM PDT, Razvan Stefanescu wrote: > > >> -Original Message- >> From: Bogdan Purcareata >> Sent: Friday, September 29, 2017 16:36 >> To: Razvan Stefanescu ; >> gre...@linuxfoundation.org >> Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; >> net...

[PATCH REBASED 2/6] ia64: Add __down_read_killable()

2017-09-29 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/ia64/include/asm/rwsem.h | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/ia64/include/asm/rwsem.h b/arch/ia64/include/asm/rwsem.h index 8fa98dd

Re: Kernel panic - not syncing: Fatal exception in interrupt (file_free_rcu+0x14)

2017-09-29 Thread Paul E. McKenney
On Thu, Sep 28, 2017 at 09:00:52PM -0700, Linus Torvalds wrote: > On Thu, Sep 28, 2017 at 8:32 PM, Kyle Sanderson wrote: > > Not sure if the stack is crap or not, but this looks like an RCU crash? > > > > https://i.imgur.com/sBnNe1p.jpg > > Hmm. Not the clearest picture, and the "Code:" line in p

[PATCH REBASED 6/6] fs: Use killable down_read() in iterate_dir()

2017-09-29 Thread Kirill Tkhai
There was mutex_lock_interruptible() initially, and it was changed to rwsem, but there were not killable rwsem primitives that time. >From commit 9902af79c01a: "The main issue is the lack of down_write_killable(), so the places like readdir.c switched to plain inode_lock(); once killable

[PATCH REBASED 4/6] x86: Add __down_read_killable()

2017-09-29 Thread Kirill Tkhai
Similar to __down_write_killable(), add read killable primitive: extract current __down_read() code to macros and teach it to get different functions as slow_path argument: store ax register to ret, and add sp register and preserve its value. Add call_rwsem_down_read_failed_killable() assembly ent

[PATCH REBASED 5/6] rwsem: Add down_read_killable()

2017-09-29 Thread Kirill Tkhai
Similar to down_read() and down_write_killable(), add killable version of down_read(), based on __down_read_killable() function, added in previous patches. Signed-off-by: Kirill Tkhai --- include/asm-generic/rwsem.h |8 include/linux/rwsem.h |1 + kernel/locking/rwsem.c

[PATCH REBASED 0/6] rwsem: Implement down_read_killable()

2017-09-29 Thread Kirill Tkhai
Hi, this is resending of the series, I previously sent. There are no changes in separate patches except of [4/6], which is rebased on recent tip.git. Two patches from the previous sending are already applied by Peter, so they are not in this series. They are: 83ced169d9a0 "locking/rwsem-xadd: Add

[PATCH REBASED 1/6] alpha: Add __down_read_killable()

2017-09-29 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/alpha/include/asm/rwsem.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/alpha/include/asm/rwsem.h b/arch/alpha/include/asm/rwsem.h index 77873d0a

[PATCH REBASED 3/6] s390: Add __down_read_killable()

2017-09-29 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/s390/include/asm/rwsem.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/rwsem.h b/arch/s390/include/asm/rwsem.h index 597e7e96b59

Re: [PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment

2017-09-29 Thread Doug Ledford
On Fri, 2017-09-29 at 23:10 +0800, Wei Hu (Xavier) wrote: > From: Lijun Ou > > When only set IB_QP_DEST_QPN flag for attr_mask, the operation of > assigning the dest_qp_num for dest_qp field of qp context is valid. This commit message reads poorly. I reworded it. -- Doug Ledford GPG KeyI

[PATCH] mtd: spi-nor: Allow Cadence QSPI support for ARM64

2017-09-29 Thread thor . thayer
From: Thor Thayer Allow ARM64 support for the Cadence QSPI interface by adding ARM64 as a dependency. Signed-off-by: Thor Thayer --- drivers/mtd/spi-nor/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index 6

[GIT PULL 0/7] perf/urgent fixes

2017-09-29 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit b130a699c07155a1d6ef7d971a5f3bf0e3818d5a: Merge tag 'perf-urgent-for-mingo-4.14-20170912' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux int

[PATCH 3/7] perf evsel: Fix attr.exclude_kernel setting for default cycles:p

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Yet another fix for probing the max attr.precise_ip setting: it is not enough settting attr.exclude_kernel for !root users, as they _can_ profile the kernel if the kernel.perf_event_paranoid sysctl is set to -1, so check that as well. Testing it: As non root: $

[PATCH 4/7] perf report: Fix debug messages with --call-graph option

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Mengting Zhang With --call-graph option, perf report can display call chains using type, min percent threshold, optional print limit and order. And the default call-graph parameter is 'graph,0.5,caller,function,percent'. Before this patch, 'perf report --call-graph' shows incorrect debug m

[PATCH 2/7] tools include: Sync kernel ABI headers with tooling headers

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Time for a sync with ABI/uapi headers with the upcoming v4.14 kernel. None of the ABI changes require any source code level changes to our existing in-kernel tooling code: - tools/arch/s390/include/uapi/asm/kvm.h: New KVM_S390_VM_TOD_EXT ABI, not used by in-kernel too

[PATCH 6/7] perf test: Fix vmlinux failure on s390x

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Thomas Richter On s390x perf test 1 failed. It turned out that commit 4a084ecfc821 ("perf report: Fix module symbol adjustment for s390x") was incorrect. The previous implementation in dso__load_sym() is also suitable for s390x. Therefore this patch undoes commit 4a084ecfc821. Signed-off-

[PATCH 5/7] perf tools: Fix syscalltbl build failure

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Akemi Yagi The build of kernel v4.14-rc1 for i686 fails on RHEL 6 with the error in tools/perf: util/syscalltbl.c:157: error: expected ';', ',' or ')' before '__maybe_unused' mv: cannot stat `util/.syscalltbl.o.tmp': No such file or directory Fix it by placing/moving: #include

[PATCH 7/7] perf test: Fix vmlinux failure on s390x part 2

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Thomas Richter On s390x perf test 1 failed. It turned out that commit cf6383f73cf2 ("perf report: Fix kernel symbol adjustment for s390x") was incorrect. The previous implementation in dso__load_sym() is also suitable for s390x. Therefore this patch undoes commit cf6383f73cf2 Signed-off-

[PATCH 1/7] perf tools: Get all of tools/{arch,include}/ in the MANIFEST

2017-09-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now that I'm switching the container builds from using a local volume pointing to the kernel repository with the perf sources, instead getting a detached tarball to be able to use a container cluster, some places broke because I forgot to put some of the required fi

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Lorenzo Pieralisi
On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > > possible to define IRQ mapping functions on a per PCI host bridge basis. > > > > Actual IRQ a

Re: [PATCH v2] x86, stacktrace: avoid recording save_stack_trace wrappers

2017-09-29 Thread Josh Poimboeuf
On Fri, Sep 29, 2017 at 11:23:35AM +0200, Vlastimil Babka wrote: > The save_stack_trace() and save_stack_trace_tsk() wrappers of > __save_stack_trace() add themselves to the call stack, and thus appear in the > recorded stacktraces. This is redundant and wasteful when we have limited > space > to

Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-29 Thread Borislav Petkov
On Fri, Sep 29, 2017 at 10:54:39AM -0500, Brijesh Singh wrote: > In production, you do not want to run encrypted guest on an unencrypted > hypervisor -- I was thinking about the debug environment. We can start > with mem_encrypt=sme and if we see the need for 'sev' arg then we can > extend it later

Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-29 Thread Brijesh Singh
On 09/29/2017 09:41 AM, Borislav Petkov wrote: On Fri, Sep 29, 2017 at 07:28:47AM -0500, Brijesh Singh wrote: if we are adding a chicken bits then I think we should do it for both "smeonly" and "sevonly". We can boot host OS with SME disabled and SEV enabled, and still be able to create the SE

Re: [PATCH V2 for-next 3/8] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Doug Ledford
On Fri, 2017-09-29 at 23:10 +0800, Wei Hu (Xavier) wrote: > When lp_qp_work is NULL, it should be returned ENOMEM. This patch > mainly adds the error checking branch, modifies the return value of > the function named hns_roce_v1_set_mac that calling > hns_roce_v1_recreate_lp_qp. > > Ihis patch fix

KVM PV (was: Re: [PATCH v2 2/2] x86/lguest: remove lguest support)

2017-09-29 Thread Lai Jiangshan
Hello, all An interesting (at least to me) thinking came up to me when I found that the lguest was removed. But I don't have enough knowledge to find out the answer nor energy to implement it in some time. Is it possible to implement kvm-pv which allows kvm to run on the boxes without hardware vi

Re: How to verify linux-next

2017-09-29 Thread valdis . kletnieks
On Fri, 29 Sep 2017 19:56:41 +0530, Pintu Kumar said: > 1) If you have pointers on how to setup ssh/net connection on QEMU > with busybox, do let me know. Busybox doesn't do that as far as I know, as it's intended as a single-user /sbin/init replacement. You'll need a full-featured userspace with

RE: [PATCH net-next RFC 2/9] net: dsa: mv88e6xxx: expose switch time as a PTP hardware clock

2017-09-29 Thread Brandon Streiff
> From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, September 28, 2017 11:57 AM > > It is the MAC which is doing the time stamping, not they PHY? > So why NETWORK_PHY_TIMESTAMPING? NETWORK_PHY_TIMESTAMPING implies NET_PTP_CLASSIFY (which I do use) and net/core/timestamping.c (which I d

Re: [PATCH v1 07/14] tee: optee: add shared buffer registration functions

2017-09-29 Thread Volodymyr Babchuk
On 29.09.17 16:06, Mark Rutland wrote: On Thu, Sep 28, 2017 at 09:04:04PM +0300, Volodymyr Babchuk wrote: From: Volodymyr Babchuk This change adds ops for shm_(un)register functions in tee interface. Client application can use these functions to (un)register an own shared buffer in OP-TEE ad

Re: [PATCH] x86: use register variable to get stack pointer value

2017-09-29 Thread Josh Poimboeuf
On Fri, Sep 29, 2017 at 05:15:36PM +0300, Andrey Ryabinin wrote: > Currently we use current_stack_pointer() function to get the value > of the stack pointer register. Since commit f5caf621ee35 > ("x86/asm: Fix inline asm call constraints for Clang") we have stack > register variable declared. It ca

RE: [PATCH net-next RFC 0/9] net: dsa: PTP timestamping for mv88e6xxx

2017-09-29 Thread Brandon Streiff
> From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, September 28, 2017 12:36 PM > > I assume ptp already has the core code to use pinctrl and Linux > standard GPIOs? What does the device tree binding look like? How do > you specify the GPIOs to use? > > What we want to avoid is defining

[LTP] [ANNOUNCE] The Linux Test Project has been released for SEPTEMBER 2017

2017-09-29 Thread Cyril Hrubis
Good news everyone, the Linux Test Project test suite stable release for *September 2017* has been released. Since the last release 290 patches by 39 authors were merged. Notable changes for this release include: - * New tests for: - copy_file_range()

Re: [PATCH v2 09/14] platform/x86: dell-smbios: rename to dell-wmi-smbios

2017-09-29 Thread kbuild test robot
Hi Mario, [auto build test ERROR on platform-drivers-x86/for-next] [also build test ERROR on v4.14-rc2 next-20170929] [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/Mario-Limonciello/Introduce

RE: [PATCH net-next RFC 6/9] net: dsa: forward timestamping callbacks to switch drivers

2017-09-29 Thread Brandon Streiff
> From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Thursday, September 28, 2017 12:40 PM > > Can we also have a fast-path bypass in case time stamping is not > supported by the switch so we don't have to even try to classify this > packet only to realize we don't have a port_rxtsamp() o

RE: [PATCH net-next RFC 3/9] net: dsa: mv88e6xxx: add support for GPIO configuration

2017-09-29 Thread Brandon Streiff
> From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, September 28, 2017 1:01 PM > > > With the write and read acquiring and then releasing the lock > > immediately, is no there room for this sequence to be interrupted in the > > middle and end-up returning inconsistent reads? > > The gene

Re: [PATCH] x86/asm: Fix inline asm call constraints for GCC 4.4

2017-09-29 Thread Arnd Bergmann
On Fri, Sep 29, 2017 at 12:51 AM, Ingo Molnar wrote: > > * Linus Torvalds wrote: > >> On Thu, Sep 28, 2017 at 2:58 PM, Josh Poimboeuf wrote: >> The kernel test robot report looked to be ignored as a "gcc-4.4 is too >> old to worry about" thing. [...] > > No, and sorry if my first reply grumbling

Re: [PATCH][rdma-next] RDMA/hns: remove redundant assignment to variable j

2017-09-29 Thread Doug Ledford
On Fri, 2017-09-29 at 14:52 +0100, Colin King wrote: > From: Colin Ian King > > Variable j is being assigned to loop_j and then later being > assigned to a new value in for loops. The first initialization > is therefore redundant and can be removed. > > Cleans up clang warning: > warning: Value

Re: [PATCH v3 00/20] Speculative page faults

2017-09-29 Thread Laurent Dufour
Hi Andrew, On 28/09/2017 22:38, Andrew Morton wrote: On Thu, 28 Sep 2017 14:29:02 +0200 Laurent Dufour wrote: Laurent's [0/n] provides some nice-looking performance benefits for workloads which are chosen to show performance benefits(!) but, alas, no quantitative testing results for workload

Re: [PATCH][rdma-next] RDMA/hns: make various function static, fixes warnings

2017-09-29 Thread Doug Ledford
On Fri, 2017-09-29 at 14:16 +0100, Colin King wrote: > From: Colin Ian King > > The functions hns_roce_table_mhop_get, hns_roce_table_mhop_put, > hns_roce_cleanup_mhop_hem_table, hns_roce_v1_post_mbox, > hns_roce_cmq_setup_basic_desc, hns_roce_cmq_send, > hns_roce_cmq_query_hw_info are all local

Re: [PATCH -v2 04/18] sched/fair: Remove se->load.weight from se->avg.load_sum

2017-09-29 Thread Morten Rasmussen
On Fri, Sep 01, 2017 at 03:21:03PM +0200, Peter Zijlstra wrote: > +/* > + * sched_entity: > + * > + * load_sum := runnable_sum > + * load_avg = se_weight(se) * runnable_avg > + * > + * cfq_rs: I think this should be "cfs_rq" instead. > + * > + * load_sum = \Sum se_weight(se) * se->avg.load_

Re: [PATCH] drm/arm: Replace instances of drm_dev_unref with drm_dev_put.

2017-09-29 Thread Liviu Dudau
Hi Srishti, On Fri, Sep 29, 2017 at 03:30:40PM +0530, Srishti Sharma wrote: > Replace drm_dev_unref with drm_dev_put as it is more consistent > with kernel coding style. Done using the following semantic > patch by coccinelle. Thanks for the patch! Acked-by: Liviu Dudau I'm going to pull this

Re: netlink backwards compatibility in userspace tools

2017-09-29 Thread Stephen Hemminger
On Fri, 29 Sep 2017 12:22:42 +0200 "Jason A. Donenfeld" wrote: > Hi guys, > > One handy aspect of Netlink is that it's backwards compatible. This > means that you can run old userspace utilities on new kernels, even if > the new kernel supports new features and netlink attributes. The wire > for

[GIT PULL] xen: fixes for 4.14-rc3

2017-09-29 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.14c-rc3-tag xen: fixes for 4.14-rc3 It contains 3 fixes: - avoid a warning when compiling with clang - consider read-only bits in xen-pciback when writing to a BAR - fix a boot cra

Re: [PATCH] IB/qib: Use setup_timer and mod_timer

2017-09-29 Thread Doug Ledford
On Sun, 2017-09-24 at 17:21 +0530, Himanshu Jha wrote: > Use setup_timer and mod_timer API instead of structure assignments. > > This is done using Coccinelle and semantic patch used > for this as follows: > > @@ > expression x,y,z,a,b; > @@ > > -init_timer (&x); > +setup_timer (&x, y, z); > +mo

Re: [PATCH 3/3] pipe: add proc_dopipe_max_size() to safely assign pipe_max_size

2017-09-29 Thread kbuild test robot
Hi Joe, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc2 next-20170929] [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/Joe-Lawrence/A-few-round_pipe_size-and-pipe-max

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-29 Thread Andy Shevchenko
On Fri, Sep 29, 2017 at 5:11 PM, Pali Rohár wrote: > Yes, that would fix problem for you and break other machines... I dunno what happened to you guys to use top-posting... >> FYI, latest update and info relating to >> https://bugzilla.kernel.org/show_bug.cgi?id=196913 Quick solution is to appl

Re: [PATCH 0/4] x86/platform/UV: Update TSC support

2017-09-29 Thread Mike Travis
On 9/29/2017 1:46 AM, Peter Zijlstra wrote: On Thu, Sep 28, 2017 at 01:03:39PM -0500, mike.tra...@hpe.com wrote: The UV BIOS goes to considerable effort to get the TSC synchronization accurate across the entire system. Included in that are multiple chassis that can have 32+ sockets. The arc

Re: [PATCH v1 02/14] tee: add register user memory

2017-09-29 Thread Volodymyr Babchuk
On 29.09.17 13:53, Mark Rutland wrote: On Thu, Sep 28, 2017 at 09:03:59PM +0300, Volodymyr Babchuk wrote: +static int +tee_ioctl_shm_register(struct tee_context *ctx, + struct tee_ioctl_shm_register_data __user *udata) +{ + long ret; + struct tee_ioctl_shm_regi

[GIT PULL] KVM fixes for Linux 4.14-rc3

2017-09-29 Thread Paolo Bonzini
Linus, The following changes since commit 5753743fa5108b8f98bd61e40dc63f641b26c768: KVM: VMX: remove WARN_ON_ONCE in kvm_vcpu_trigger_posted_interrupt (2017-09-19 15:09:16 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you t

RE: [PATCH net-next RFC 2/9] net: dsa: mv88e6xxx: expose switch time as a PTP hardware clock

2017-09-29 Thread Brandon Streiff
> From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, September 28, 2017 12:03 PM > > > + bool timeout = time_is_before_jiffies(chip->last_overflow_check + > > + MV88E6XXX_TAI_OVERFLOW_PERIOD); > > + > > + if (timeout) { > > Why do you need this

[PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-29 Thread Alexandru Moise
If hugepage_migration_supported() returns true, this renders the hugepages_treat_as_movable sysctl completely pointless. Let's keep this behavior optional by switching the if() condition from || to &&. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- mm/hugetlb.c | 2 +- 1 file

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-29 Thread Borislav Petkov
On Tue, Sep 19, 2017 at 03:46:03PM -0500, Brijesh Singh wrote: > Platform Security Processor (PSP) is part of AMD Secure Processor (AMD-SP), The Platform... > PSP is a dedicated processor that provides the support for key management > commands in a Secure Encrypted Virtualiztion (SEV) mode, along

[PATCH] ARM: configs: stm32: Update default configuration for v4.14-rc1

2017-09-29 Thread Alexandre Torgue
Regenerate the default configuration on top of v4.14-rc1. Signed-off-by: Alexandre Torgue diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 90e5c46..3ed3158 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/configs/stm32_defconfig @@ -18,7 +18,6 @@

Re: [PATCHSET REPOST for-4.15] cgroup, sched: cgroup2 interface for CPU controller (on basic acct)

2017-09-29 Thread Tejun Heo
On Mon, Sep 25, 2017 at 09:00:17AM -0700, Tejun Heo wrote: > These are two patches to implement the cgroup2 CPU controller > interface. Changes from the last revision[L]. Peter, Ping. Thanks. -- tejun

[GIT PULL] Btrfs fixes for 4.14-rc3

2017-09-29 Thread David Sterba
Hi, we've collected a bunch of isolated fixes, for crashes, user-visible behaviour or missing bits from other subsystem cleanups from the past. The overall number is not small but I was not able to make it significantly smaller. Most of the patches are supposed to go to stable. There are no merge

Re: [PATCH 0/3] Simplify panel bridge cleanup

2017-09-29 Thread Philippe CORNU
Hi Benjamin, and many thanks for this cleanup patchset. Reviewed-by: Philippe Cornu Tested-by: Philippe Cornu Philippe :-) On 09/29/2017 02:59 PM, Benjamin Gaignard wrote: > The goal of this series is to simplify driver code when they need to clean up > a previously allocated panel bridge. > F

Re: [PATCH v6 1/4] sched/clock: interface to allow timestamps early in boot

2017-09-29 Thread Dou Liyang
Hi, Pasha At 09/28/2017 09:11 PM, Pasha Tatashin wrote: It will be best if we can support TSC sync capability in x86, but seems is not easy. Sure, your hardware achieving sync would be best, but even if it does not, we can still use TSC. Using notsc simple because you fail to sync TSCs is quit

Re: [PATCH v2 02/14] platform/x86: dell-smbios: drop needless includes

2017-09-29 Thread kbuild test robot
-support-for-Dell-SMBIOS-over-WMI/20170929-221513 base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next config: i386-randconfig-x013-201739 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux

Re: [PATCH] firmware: tegra: add BPMP debugfs support

2017-09-29 Thread Jon Hunter
On 29/09/17 14:41, Timo Alho wrote:> On 21.09.2017 14:10, Jonathan Hunter wrote: >>> --- a/drivers/firmware/tegra/bpmp.c >>> +++ b/drivers/firmware/tegra/bpmp.c >>> @@ -824,6 +824,8 @@ static int tegra_bpmp_probe(struct >>> platform_device *pdev) >>>   if (err < 0) >>>   goto free_mrq;

Re: [PATCH 2/4] clk: tegra: check BPMP response return code

2017-09-29 Thread Jon Hunter
On 29/09/17 14:46, Timo Alho wrote: > Hi Jon, > > On 21.09.2017 14:21, Jonathan Hunter wrote: >> >> >> On 07/09/17 10:31, Timo Alho wrote: >>> Check return code in BPMP response message(s). The typical error case >>> is when clock operation is attempted with invalid clock identifier. >>> >>> Also

Re: [PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-29 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 04:55:54PM +0300, Kirill A. Shutemov wrote: > On Wed, Sep 13, 2017 at 12:10:47PM +0200, Alexandru Moise wrote: > > since 94310cb we've been able to soft offline 1G hugepages at the PGD > > level, however x86_64 gigantic hugepages are at the PUD level so we > > should add an

[PATCH] mm/hugetlbfs: Remove the redundant -ENIVAL return from hugetlbfs_setattr()

2017-09-29 Thread Anshuman Khandual
There is no need to have a local return code set with -EINVAL when both the conditions following it return error codes appropriately. Just remove the redundant one. Signed-off-by: Anshuman Khandual --- fs/hugetlbfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/hugetlbfs/inode.c b

Re: [PATCH v2 09/14] platform/x86: dell-smbios: rename to dell-wmi-smbios

2017-09-29 Thread kbuild test robot
/Introduce-support-for-Dell-SMBIOS-over-WMI/20170929-221513 base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next config: x86_64-randconfig-x001-201739 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to

Re: [PATCH] kvm/x86: Handle async PF in RCU read-side critical sections

2017-09-29 Thread Paolo Bonzini
On 29/09/2017 13:01, Boqun Feng wrote: > Sasha Levin reported a WARNING: > > | WARNING: CPU: 0 PID: 6974 at kernel/rcu/tree_plugin.h:329 > | rcu_preempt_note_context_switch kernel/rcu/tree_plugin.h:329 [inline] > | WARNING: CPU: 0 PID: 6974 at kernel/rcu/tree_plugin.h:329 > | rcu_note_context_swit

Re: [PATCH v2] iio: dummy: evgen: use irq_sim

2017-09-29 Thread Bartosz Golaszewski
2017-09-29 15:15 GMT+02:00 Lars-Peter Clausen : > On 09/28/2017 12:56 PM, Bartosz Golaszewski wrote: >> Switch to using the recently added interrupt simulator for dummy irqs. >> >> Signed-off-by: Bartosz Golaszewski > > Reviewed-by: Lars-Peter Clausen > Tested-by: Lars-Peter Clausen > > I've bac

[PATCH RFC V4 2/6] perf tools: lock to protect comm_str rb tree

2017-09-29 Thread kan . liang
From: Kan Liang Add comm_str_lock to protect comm_str rb tree. The lock is only needed for multithreaded code, so using mutex wrappers provided by perf tool. Signed-off-by: Kan Liang --- tools/perf/util/comm.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --gi

[PATCH RFC V4 1/6] perf tools: lock to protect namespaces and comm list

2017-09-29 Thread kan . liang
From: Kan Liang Add two locks to protect namespaces_list and comm_list. The lock is only needed for multithreaded code, so using mutex wrappers provided by perf tool. Not all the comm_list/namespaces_list accessing are protected, e.g. thread__exec_comm. Because the multithread code for perf top

[PATCH RFC V4 3/6] perf top: implement multithreading for perf_event__synthesize_threads

2017-09-29 Thread kan . liang
From: Kan Liang The proc files which is sorted with alphabetical order are evenly assigned to several synthesize threads to be processed in parallel. For perf top, the threads number hard code to online CPU number. The following patch will introduce an option to set it. For other perf tools, the

[PATCH RFC V4 5/6] perf top: switch to backward overwrite mode

2017-09-29 Thread kan . liang
From: Kan Liang perf_top__mmap_read has severe performance issue in Knights Landing/Mill, when monitoring in heavy load system. It costs several minutes to finish, which is unacceptable. perf top was overwrite mode. But it is changed to non overwrite mode since commit 93fc64f14472 ("perf top: Sw

[PATCH RFC V4 4/6] perf top: add option to set the number of thread for event synthesize

2017-09-29 Thread kan . liang
From: Kan Liang Using UINT_MAX to indicate the default thread#, which is the max number of online CPU. Signed-off-by: Kan Liang --- tools/perf/Documentation/perf-top.txt | 3 +++ tools/perf/builtin-top.c | 11 --- tools/perf/util/event.c | 5 - tools/pe

[PATCH RFC V4 0/6] perf top optimization

2017-09-29 Thread kan . liang
From: Kan Liang The patch series intends to fix the severe performance issue in Knights Landing/Mill, when monitoring in heavy load system. perf top costs a few minutes to show the result, which is unacceptable. With the patch series applied, the latency will reduces to several seconds. machine_

[PATCH RFC V4 6/6] perf top: check the cost of perf_top__mmap_read

2017-09-29 Thread kan . liang
From: Kan Liang The latency of perf_top__mmap_read should be lower than refresh time. If not, give some hints to reduce the overhead. Signed-off-by: Kan Liang --- tools/perf/builtin-top.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin

Re: [PATCH v5 1/2] dax: introduce CONFIG_DAX_DRIVER

2017-09-29 Thread Dan Williams
On Thu, Sep 28, 2017 at 11:11 PM, Michael Ellerman wrote: > Dan Williams writes: > >> In support of allowing device-mapper to compile out idle/dead code when >> there are no dax providers in the system, introduce the DAX_DRIVER >> symbol. This is selected by all leaf drivers that device-mapper mi

Re: [PATCH -tip v3 7/7] kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT

2017-09-29 Thread Masami Hiramatsu
On Fri, 29 Sep 2017 09:37:55 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > On Thu, 28 Sep 2017 09:22:20 +0200 > > Ingo Molnar wrote: > > > > > > > > * Masami Hiramatsu wrote: > > > > > > > To enable jump optimized probe with CONFIG_PREEMPT, use > > > > synchronize_rcu_tasks

[PATCH V2 for-next 8/8] RDMA/hns: Replace usleep_range with udelay when checking command status

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou It replaces usleep_range with udelay to avoid using usleep_range function in spin_lock_bh spin region, because it probably cause calltrace. BUG: scheduling while atomic: insmod/1428/0x0002 Modules linked in: hns-roce-hw-v2(+) hns_roce rdma_ucm rdma_cm iw_cm ib_uverbs ib_cm ib

[PATCH V2 for-next 1/8] RDMA/hns: Modify the value with rd&dest_rd of qp_attr

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou The value of max_rd_atomic and max_dest_rd_atomic in query_qp are incorrect. It should be assigned by left shifting of the bit in hip06 SoC. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 4 ++-- 1 file changed, 2 inserti

[PATCH V2 for-next 5/8] RDMA/hns: Set rdma_ah_attr type for querying qp

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou When querying qp, It needs to return RoCE device ah_attr type that may be specific to RoCE devices. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) Signed-off-by: Shaobo Xu --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 2 ++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Re: [PATCH] nvme-pci: Use PCI bus address for data/queues in CMB

2017-09-29 Thread Keith Busch
On Fri, Sep 29, 2017 at 10:59:26AM +0530, Abhishek Shah wrote: > Currently, NVMe PCI host driver is programming CMB dma address as > I/O SQs addresses. This results in failures on systems where 1:1 > outbound mapping is not used (example Broadcom iProc SOCs) because > CMB BAR will be progammed with

[PATCH V2 for-next 7/8] RDMA/hns: Remove unnecessarily calling unregister_inetaddr_notifier function

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou When the driver doesn't call register_inetaddr_notifier function, it need not call unregister_inetaddr_notifier to unregister inet addr. This patch fixes it. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) Signed-off-by: Shaobo Xu --- drivers/infiniband/hw/hns/hns_roce_

[PATCH V2 for-next 6/8] RDMA/hns: Add return statement when checking error in hns_roce_v1_mr_free_work_fn

2017-09-29 Thread Wei Hu (Xavier)
After the loop in hns_roce_v1_mr_free_work_fn function, it is possible that the local variable named hr_qp is NULL, the operation "hr_qp->qpn" will result in the exception. As a result, we add return statement when checking error. This patch fixes the smatch error as below: drivers/infiniband/hw/h

[PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou When only set IB_QP_DEST_QPN flag for attr_mask, the operation of assigning the dest_qp_num for dest_qp field of qp context is valid. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) Signed-off-by: Shaobo Xu --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 9 + 1

[PATCH V2 for-next 3/8] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Wei Hu (Xavier)
When lp_qp_work is NULL, it should be returned ENOMEM. This patch mainly adds the error checking branch, modifies the return value of the function named hns_roce_v1_set_mac that calling hns_roce_v1_recreate_lp_qp. Ihis patch fixes the smatch error as below: drivers/infiniband/hw/hns/hns_roce_hw_v1

[PATCH V2 for-next 2/8] RDMA/hns: Factor out the code for checking sdb status into a new function

2017-09-29 Thread Wei Hu (Xavier)
From: Lijun Ou It mainly places the lines for checking send doorbell status into a special functions. As a result, we can directly call it in check_qp_db_process_status function and keep consistent indenting style. It fixes the warning from static checker: drivers/infiniband/hw/hns/hns_roce_hw_v

Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-29 Thread Borislav Petkov
On Fri, Sep 29, 2017 at 07:28:47AM -0500, Brijesh Singh wrote: > if we are adding a chicken bits then I think we should do it for both > "smeonly" and "sevonly". We can boot host OS with SME disabled and SEV > enabled, and still be able to create the SEV guest from the hypervisor. Sure, but is tha

<    1   2   3   4   5   6   7   >