Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-05 Thread Ulf Magnusson
On Thu, Oct 4, 2018 at 10:03 PM Luis Chamberlain wrote: > > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to

Re: [PATCH 7/7] Documentation: devicetree: Add Xilinx R5 rproc binding

2018-10-05 Thread Bjorn Andersson
On Thu 16 Aug 00:06 PDT 2018, Wendy Liang wrote: > Add device tree binding for Xilinx Cortex-r5 remoteproc. > > Signed-off-by: Wendy Liang > --- > .../remoteproc/xlnx,zynqmp-r5-remoteproc.txt | 81 > ++ > 1 file changed, 81 insertions(+) > create mode 100644 >

Re: [PATCH 6/7] remoteproc: Add Xilinx ZynqMP R5 remoteproc

2018-10-05 Thread Bjorn Andersson
On Thu 16 Aug 00:06 PDT 2018, Wendy Liang wrote: > diff --git a/drivers/remoteproc/zynqmp_r5_remoteproc.c > b/drivers/remoteproc/zynqmp_r5_remoteproc.c > new file mode 100644 > index 000..7fc3718 > --- /dev/null > +++ b/drivers/remoteproc/zynqmp_r5_remoteproc.c > @@ -0,0 +1,692 @@ > +//

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-05 Thread Michael Schmitz
Am 05.10.2018 um 15:16 schrieb Leonardo Bras: Well it's not really that persuasive. Most people simply let the build run to completion, but if you have a problem with a job control 3h timelimit, then create a job that kills itself at 2:59 and then resubmits itself. That will produce a

Re: [PATCH 1/2] mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings

2018-10-05 Thread Andrea Arcangeli
Hello, On Thu, Oct 04, 2018 at 04:05:26PM -0700, David Rientjes wrote: > The source of the problem needs to be addressed: memory compaction. We > regress because we lose __GFP_NORETRY and pointlessly try reclaim, but I commented in detail about the __GFP_NORETRY topic in the other email so I

Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications

2018-10-05 Thread Joel Fernandes
On Fri, Oct 05, 2018 at 05:22:35PM -0700, Greg KH wrote: > On Fri, Oct 05, 2018 at 05:04:16PM -0700, Kees Cook wrote: > > On Fri, Oct 5, 2018 at 4:51 PM, Greg KH wrote: > > > On Fri, Oct 05, 2018 at 04:35:59PM -0700, Kees Cook wrote: > > >> As done treewide earlier, this catches several more

[PATCH v3 0/3] get_user_pages*() and RDMA: first steps

2018-10-05 Thread john . hubbard
From: John Hubbard Changes since v2: -- Absorbed more dirty page handling logic into the put_user_page*(), and handled some page releasing loops in infiniband more thoroughly, as per Jason Gunthorpe's feedback. -- Fixed a bug in the put_user_pages*() routines' loops (thanks to Ralph

[PATCH v3 3/3] infiniband/mm: convert put_page() to put_user_page*()

2018-10-05 Thread john . hubbard
From: John Hubbard For code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), or put_user_pages*(), instead of put_page() This prepares for eventually fixing the problem described in [1], and is following a plan listed in [2], [3], [4]. [1]

[PATCH v3 1/3] mm: get_user_pages: consolidate error handling

2018-10-05 Thread john . hubbard
From: John Hubbard An upcoming patch requires a way to operate on each page that any of the get_user_pages_*() variants returns. In preparation for that, consolidate the error handling for __get_user_pages(). This provides a single location (the "out:" label) for operating on the collected set

[PATCH v3 2/3] mm: introduce put_user_page*(), placeholder versions

2018-10-05 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for

Re: [PATCH] kvm/x86 : avoid shifting signed 32-bit value by 31 bits

2018-10-05 Thread Wei Yang
On Thu, Oct 04, 2018 at 01:47:18PM -0400, Peng Hao wrote: > >From: Peng Hao > > modify AVIC_LOGICAL_ID_ENTRY_VALID_MASK to unsigned > >Signed-off-by: Peng Hao >--- > arch/x86/kvm/svm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c

Re: [PATCH 2/3] namei: implement AT_THIS_ROOT chroot-like path resolution

2018-10-05 Thread Aleksa Sarai
On 2018-10-05, Jann Horn wrote: > > What if we took rename_lock (call it nd->r_seq) at the start of the > > resolution, and then only tried the __d_path-style check > > > > if (read_seqretry(_lock, nd->r_seq) || > > read_seqretry(_lock, nd->m_seq)) > > /* do the __d_path lookup.

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-05 Thread Steven Rostedt
On Fri, 05 Oct 2018 21:51:11 -0400 Steven Rostedt wrote: > +#ifndef PARAMS > +#define PARAMS(x...) x > +#endif > + > +#ifndef ARGS > +#define ARGS(x...) x > +#endif > + This is also leftover from the first attempt and can be nuked. Yeah, yeah, I should have reviewed my patches better before

linux-next: Signed-off-by missing for commit in the usb-gadget tree

2018-10-05 Thread Stephen Rothwell
Hi Felipe, Commit 89969a842e72 ("usb: gadget: uvc: configfs: Sort frame intervals upon writing") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpfRrjX7qdXu.pgp Description: OpenPGP digital signature

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-05 Thread Steven Rostedt
On Fri, 05 Oct 2018 21:51:11 -0400 Steven Rostedt wrote: > +#define arch_dynfunc_trampoline(name, def) \ > + asm volatile ( \ > + ".globl dynfunc_" #name "; \n\t"\ > + "dynfunc_" #name ": \n\t" \ > + "jmp " #def " \n\t"

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-05 Thread Steven Rostedt
On Fri, 05 Oct 2018 21:51:11 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Signed-off-by: Steven Rostedt (VMware) > --- > include/asm-generic/vmlinux.lds.h | 4 + > include/linux/jump_function.h | 93 > kernel/Makefile | 2 +- >

linux-next: Signed-off-by missing for commit in the integrity tree

2018-10-05 Thread Stephen Rothwell
Hi all, Commit 3dcee2d9c069 ("ima: fix showing large 'violations' or 'runtime_measurements_count'") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgp4cZbLWM5sN.pgp Description: OpenPGP digital signature

[POC][RFC][PATCH 0/2] PROOF OF CONCEPT: Dynamic Functions (jump functions)

2018-10-05 Thread Steven Rostedt
This is just a Proof Of Concept (POC), as I have done some "no no"s like having x86 asm code in generic code paths, and it also needs a way of working when an arch does not support this feature. Not to mention, I didn't add proper change logs (that will come later). Background: During David

[POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-05 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Signed-off-by: Steven Rostedt (VMware) --- include/asm-generic/vmlinux.lds.h | 4 + include/linux/jump_function.h | 93 kernel/Makefile | 2 +- kernel/jump_function.c| 368 ++ 4 files

[POC][RFC][PATCH 2/2] tracepoints: Implement it with dynamic functions

2018-10-05 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Signed-off-by: Steven Rostedt (VMware) --- include/linux/tracepoint-defs.h | 3 ++ include/linux/tracepoint.h | 65 ++--- include/trace/define_trace.h| 14 +++ kernel/tracepoint.c | 29 +-- 4

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-05 Thread Rasmus Villemoes
On 2018-10-04 21:33, H. Peter Anvin wrote: > Here is the horrible code I mentioned yesterday. This is about > implementing the immediate-patching framework that Linus and others have > discussed (it helps both performance and kernel hardening): Heh, I did a POC in userspace some years ago for

[PATCH] staging: iio: ad2s1210: fix 'assignment operator' style checks

2018-10-05 Thread Matheus Tavares Bernardino
This patch fixes all "Assignment operator '=' should be on the previous line" checks found in ad2s1210.c by checkpatch.pl. Signed-off-by: Matheus Tavares --- drivers/staging/iio/resolver/ad2s1210.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] staging/rtlwifi: Fixing formatting warnings from checkpatch.pl.

2018-10-05 Thread Scott Tracy
On Fri, Oct 5, 2018 at 6:37 PM Joe Perches wrote: > > On Fri, 2018-10-05 at 16:58 -0600, Scott Tracy wrote: > > Fixing formatting warnings in rtlwifi found by checkpatch.pl > > Changes include breaking up functions calls into multi line calls. > > No functional/logical changes. > > I believe the

Re: [PATCH] staging/rtlwifi: Fixing formatting warnings from checkpatch.pl.

2018-10-05 Thread Joe Perches
On Fri, 2018-10-05 at 16:58 -0600, Scott Tracy wrote: > Fixing formatting warnings in rtlwifi found by checkpatch.pl > Changes include breaking up functions calls into multi line calls. > No functional/logical changes. I believe the code is better before most of these changes. There are various

Re: [PATCH] fs/cifs: fix uninitialised variable warnings

2018-10-05 Thread Steve French
merged into cifs-2.6.git for-next On Thu, Oct 4, 2018 at 3:16 AM Aurélien Aptel wrote: > > Reviewed-by: Aurelien Aptel > -- > Aurélien Aptel / SUSE Labs Samba Team > GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 > SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany > GF: Felix

Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications

2018-10-05 Thread Greg KH
On Fri, Oct 05, 2018 at 05:04:16PM -0700, Kees Cook wrote: > On Fri, Oct 5, 2018 at 4:51 PM, Greg KH wrote: > > On Fri, Oct 05, 2018 at 04:35:59PM -0700, Kees Cook wrote: > >> As done treewide earlier, this catches several more open-coded > >> allocation size calculations that were added to the

[PATCH v1 1/2] x86/cpufeature: Add facility to match microcode revisions

2018-10-05 Thread Andi Kleen
From: Andi Kleen For bug workarounds or checks it is useful to check for specific microcode versions. Add a new table format to check for steppings with min/max microcode revisions. This does not change the existing x86_cpu_id because it's an ABI shared with modutils, and also has quite

Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications

2018-10-05 Thread Kees Cook
On Fri, Oct 5, 2018 at 4:51 PM, Greg KH wrote: > On Fri, Oct 05, 2018 at 04:35:59PM -0700, Kees Cook wrote: >> As done treewide earlier, this catches several more open-coded >> allocation size calculations that were added to the kernel during the >> merge window. This performs the following

Re: [PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-05 Thread John Hubbard
On 10/5/18 2:48 PM, Jason Gunthorpe wrote: > On Fri, Oct 05, 2018 at 12:49:06PM -0700, John Hubbard wrote: >> On 10/5/18 8:17 AM, Jason Gunthorpe wrote: >>> On Thu, Oct 04, 2018 at 09:02:24PM -0700, john.hubb...@gmail.com wrote: From: John Hubbard Introduces put_user_page(), which

Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications

2018-10-05 Thread Greg KH
On Fri, Oct 05, 2018 at 04:35:59PM -0700, Kees Cook wrote: > As done treewide earlier, this catches several more open-coded > allocation size calculations that were added to the kernel during the > merge window. This performs the following mechanical transformations > using Coccinelle: > >

Re: [PATCH v2 05/11] arch/x86: Introduce a new config parameter PLATFORM_QOS

2018-10-05 Thread Fenghua Yu
On Fri, Oct 05, 2018 at 08:55:52PM +, Moger, Babu wrote: > Introduces a new config parameter PLATFORM_QOS. > > This will be used as a common config parameter for both Intel and AMD. > Each vendor will have their own config parameter to enable RDT feature. > One for Intel(INTEL_RDT) and one

Re: [PATCH] writeback: fix range_cyclic writeback vs writepages deadlock

2018-10-05 Thread Dave Chinner
On Fri, Oct 05, 2018 at 12:46:40PM -0700, Andrew Morton wrote: > On Fri, 5 Oct 2018 15:45:26 +1000 Dave Chinner wrote: > > > From: Dave Chinner > > > > We've recently seen a workload on XFS filesystems with a repeatable > > deadlock between background writeback and a multi-process > >

[PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications

2018-10-05 Thread Kees Cook
As done treewide earlier, this catches several more open-coded allocation size calculations that were added to the kernel during the merge window. This performs the following mechanical transformations using Coccinelle: kvmalloc(a * b, ...) -> kvmalloc_array(a, b, ...) kvzalloc(a

Re: [GIT PULL] PCI fixes for v4.19

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 03:47:30PM -0500, Bjorn Helgaas wrote: > PCI fixes: > > - Reprogram bridge prefetch registers to fix NVIDIA and Radeon issues > after suspend/resume (Daniel Drake) > > - Fix mvebu I/O mapping creation sequence (Thomas Petazzoni) > > - Fix minor MAINTAINERS file

Re: [GIT PULL] GPIO fix for v4.19

2018-10-05 Thread Greg KH
On Fri, Oct 05, 2018 at 01:05:59PM +0200, Linus Walleij wrote: > Hi Greg, > > here is a single and hopefully final GPIO fix for the v4.19 series. > Details in the signed tag. > > Please pull it in! Now merged, thanks. greg k-h

Re: [GIT PULL] Power management fix for v4.19-rc7

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:59:09AM +0200, Rafael J. Wysocki wrote: > Hi Greg, > > Please pull from the tag > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ > pm-4.19-rc7 Now merged, thanks. greg k-h

Re: [GIT PULL] perf fixes

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:55:24AM +0200, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > Linus, > > ... and Greg as well!! ;-) Heh, not a big deal :) Now merged, thanks. greg k-h

Re: [PATCH 1/2] mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings

2018-10-05 Thread Andrea Arcangeli
Hi, On Fri, Oct 05, 2018 at 01:35:15PM -0700, David Rientjes wrote: > Why is it ever appropriate to do heavy reclaim and swap activity to > allocate a transparent hugepage? This is exactly what the __GFP_NORETRY > check for high-order allocations is attempting to avoid, and it explicitly >

Re: [GIT PULL] scheduler fixes

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:50:17AM +0200, Ingo Molnar wrote: > Greg, > > Please pull the latest sched-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-urgent-for-linus Now merged, thanks. greg k-h

Re: [GIT PULL] x86 fixes

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:53:54AM +0200, Ingo Molnar wrote: > Greg, > > Please pull the latest x86-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86-urgent-for-linus Now merged, thanks. greg k-h

Re: [GIT PULL] sound fixes for 4.19-rc7

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:51:17AM +0200, Takashi Iwai wrote: > Greg, > > please pull sound fixes for v4.19-rc7 from: > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-4.19-rc7 Now merged, thanks. greg k-h

Re: [GIT PULL] locking fixes

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 11:36:47AM +0200, Ingo Molnar wrote: > Greg, > > Please pull the latest locking-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking-urgent-for-linus Now merged, thanks. greg k-h

[PATCH] staging/rtlwifi: Fixing formatting warnings from checkpatch.pl.

2018-10-05 Thread Scott Tracy
Fixing formatting warnings in rtlwifi found by checkpatch.pl Changes include breaking up functions calls into multi line calls. No functional/logical changes. Signed-off-by: Scott Tracy --- drivers/staging/rtlwifi/core.c | 5 +++-- drivers/staging/rtlwifi/efuse.c | 5 +++-- 2 files changed, 6

Re: [PATCH RFC] mm: Add an fs-write seal to memfd

2018-10-05 Thread Joel Fernandes
On Fri, Oct 5, 2018 at 3:28 PM, Greg KH wrote: > On Fri, Oct 05, 2018 at 02:10:58PM -0700, Joel Fernandes wrote: >> On Fri, Oct 05, 2018 at 12:53:39PM -0700, Andrew Morton wrote: >> > On Fri, 5 Oct 2018 12:27:27 -0700 "Joel Fernandes (Google)" >> > wrote: >> > >> > > To support the usecase,

Re: [PATCH] staging/rtlwifi: Fixing formatting warnings.

2018-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 05, 2018 at 02:58:15PM -0600, Scott Tracy wrote: > Signed-off-by: Scott Tracy > --- > drivers/staging/rtlwifi/core.c | 5 +++-- > drivers/staging/rtlwifi/efuse.c | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman.

Re: [PATCH RFC] mm: Add an fs-write seal to memfd

2018-10-05 Thread Greg KH
On Fri, Oct 05, 2018 at 02:10:58PM -0700, Joel Fernandes wrote: > On Fri, Oct 05, 2018 at 12:53:39PM -0700, Andrew Morton wrote: > > On Fri, 5 Oct 2018 12:27:27 -0700 "Joel Fernandes (Google)" > > wrote: > > > > > To support the usecase, this patch adds a new F_SEAL_FS_WRITE seal which > > >

Re: [PATCH] KVM: X86: Add missing KVM_AMD dependency

2018-10-05 Thread Paolo Bonzini
On 06/10/2018 00:03, Guenter Roeck wrote: >> This should be handled by >> >> config KVM_AMD_SEV >> def_bool y >> bool "AMD Secure Encrypted Virtualization (SEV) support" >> depends on KVM_AMD && X86_64 >> depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y &&

Re: [RFC] x86/cpu_entry_area: move part of it back to fixmap

2018-10-05 Thread Nadav Amit
at 3:10 PM, Andy Lutomirski wrote: > On Fri, Oct 5, 2018 at 3:08 PM Nadav Amit wrote: >> at 10:02 AM, Andy Lutomirski wrote: >> >>> On Thu, Oct 4, 2018 at 9:31 AM Nadav Amit wrote: at 7:11 AM, Andy Lutomirski wrote: > On Oct 3, 2018, at 9:59 PM, Nadav Amit wrote: >

Re: [RFC] x86/cpu_entry_area: move part of it back to fixmap

2018-10-05 Thread Andy Lutomirski
On Fri, Oct 5, 2018 at 3:08 PM Nadav Amit wrote: > > at 10:02 AM, Andy Lutomirski wrote: > > > On Thu, Oct 4, 2018 at 9:31 AM Nadav Amit wrote: > >> at 7:11 AM, Andy Lutomirski wrote: > >> > >>> On Oct 3, 2018, at 9:59 PM, Nadav Amit wrote: > >>> > This RFC proposes to return part of the

Re: [PATCH] KVM: X86: Add missing KVM_AMD dependency

2018-10-05 Thread Guenter Roeck
On Fri, Oct 05, 2018 at 10:41:55PM +0200, Paolo Bonzini wrote: > On 05/10/2018 20:46, Guenter Roeck wrote: > > Analysis shows that commit 59414c9892208 ("KVM: SVM: Add support for > > KVM_SEV_LAUNCH_START command") added a dependency of KVM_AMD on > > CRYPTO_DEV_CCP_DD if CRYPTO_DEV_SP_PSP is

Re: hung task in 4.14 (syzbot bug from 2018 April 17)

2018-10-05 Thread Sebastian Kuzminsky
Another instance of the same problem (also on 4.14.67), this time with the hung task timeout restored to its 120 second default: [ 980.954129] INFO: task systemd:1 blocked for more than 120 seconds. [ 980.954132] Tainted: G OE 4.14.67-solidfire1 #1 [ 980.954133] "echo 0 >

[PATCH][next] ath10k: fix out of bound read on array ath10k_rates

2018-10-05 Thread Colin King
From: Colin Ian King An out-of-bounds read on array ath10k_rates is occurring because the maximum number of elements is currently based on the size of the array and not the number of elements in the array. Fix this by using ARRAY_SIZE instead of sizeof. Detected by CoverityScan, CID#1473918

Re: [PATCH] apparmor: add #ifdef checks for secmark filtering

2018-10-05 Thread John Johansen
On 10/05/2018 09:11 AM, Arnd Bergmann wrote: > The newly added code fails to build when either SECMARK or > NETFILTER are disabled: > > security/apparmor/lsm.c: In function 'apparmor_socket_sock_rcv_skb': > security/apparmor/lsm.c:1138:12: error: 'struct sk_buff' has no member named > 'secmark';

Re: [PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-05 Thread Jason Gunthorpe
On Fri, Oct 05, 2018 at 12:49:06PM -0700, John Hubbard wrote: > On 10/5/18 8:17 AM, Jason Gunthorpe wrote: > > On Thu, Oct 04, 2018 at 09:02:24PM -0700, john.hubb...@gmail.com wrote: > >> From: John Hubbard > >> > >> Introduces put_user_page(), which simply calls put_page(). > >> This provides a

Re: [RFC/PATCH 2/5] device property: introduce notion of subnodes for legacy boards

2018-10-05 Thread Dmitry Torokhov
Hi Heikki, On Tue, Sep 25, 2018 at 03:19:27PM +0300, Heikki Krogerus wrote: > On Mon, Sep 24, 2018 at 11:45:43AM -0700, Dmitry Torokhov wrote: > > I think we are talking about totally different use cases and that is why > > we are having hard time coming to a mutually agreeable solution. Could >

[PATCH i2c-next v7 0/5] i2c: aspeed: Add bus idle waiting logic for multi-master use cases

2018-10-05 Thread Jae Hyun Yoo
In multi-master environment, this driver's master cannot know exactly when peer master sends data to this driver's slave so a case can be happened that this master tries to send data through the master_xfer function but slave data from peer master is still being processed by this driver. To

[PATCH i2c-next v7 2/5] i2c: core: Add support reading of 'bus-timeout-ms' and '#retries' properties

2018-10-05 Thread Jae Hyun Yoo
This commit adds support for 'bus-timeout-ms' and '#retries' properties to set 'timeout' and 'retries' values in 'struct i2c_adapter' in case an adapter node has the properties. Still the values can be set by I2C_TIMEOUT and I2C_RETRIES ioctls on cdev at runtime too. These properties may not be

[PATCH i2c-next v7 4/5] i2c: aspeed: Remove hard-coded bus timeout value setting

2018-10-05 Thread Jae Hyun Yoo
This commit removes hard-coded bus timeout value setting so that it can be set by i2c-core-base. Signed-off-by: Jae Hyun Yoo Reviewed-by: Joel Stanley --- drivers/i2c/busses/i2c-aspeed.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-aspeed.c

[PATCH i2c-next v7 5/5] i2c: aspeed: Add bus idle waiting logic for multi-master use cases

2018-10-05 Thread Jae Hyun Yoo
In multi-master environment, this driver's master cannot know exactly when peer master sends data to this driver's slave so a case can be happened that this master tries to send data through the master_xfer function but slave data from peer master is still being processed by this driver. To

[PATCH i2c-next v7 1/5] dt-bindings: i2c: Add 'bus-timeout-ms' and '#retries' properties as common optional

2018-10-05 Thread Jae Hyun Yoo
This commit adds 'bus-timeout-ms' and '#retries' properties as common optional properties that can be used for setting 'timeout' and 'retries' values of 'struct i2c_adapter'. With this patch, the bus timeout value and the master transfer retries count can be set through these properties at the

[PATCH i2c-next v7 3/5] dt-bindings: i2c: aspeed: Add 'bus-timeout-ms' property as an optional property

2018-10-05 Thread Jae Hyun Yoo
This commit adds 'bus-timeout-ms' property as an optional property which can be used for setting the bus timeout value of an adapter. With this patch, the bus timeout value can be set through this property at the probing time of this module. Still the bus timeout value can be set by an I2C_TIMEOUT

Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation

2018-10-05 Thread Colin McCabe
On Fri, Oct 5, 2018, at 12:47, Arnaldo Carvalho de Melo wrote: > Em Fri, Oct 05, 2018 at 09:27:16AM -0700, Colin McCabe escreveu: > > Hmm. Did you consider setting the ifdefs you can set to always get the > > POSIX version of strerror_r? > > Yes, didn't work for tools/perf, that uses

Re: [PATCH v2 10/11] arch/x86: Add AMD feature bit X86_FEATURE_MBA in cpuid bits array

2018-10-05 Thread Borislav Petkov
On Fri, Oct 05, 2018 at 08:56:09PM +, Moger, Babu wrote: > From: Sherry Hurwitz > > The feature bit X86_FEATURE_MBA is detected via CPUID leaf 0x8008 > EBX Bit 06. This bit indicates the support of AMD's MBA feature. > > This feature is supported by both Intel and AMD. But they are

Re: [PATCH 0/2] tools/perf: Python 3 + clang build fixes

2018-10-05 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 05, 2018 at 05:40:56PM -0300, Eduardo Habkost escreveu: > This series contains a couple fixes to make it possible to build > perf with Python 3 and clang. > > Eduardo Habkost (2): > perf: Make clang_has_option() work on Python 3 > perf: More portable way to make CFLAGS work with

Re: [patch] mm, page_alloc: set num_movable in move_freepages()

2018-10-05 Thread Andrew Morton
On Fri, 5 Oct 2018 13:56:39 -0700 (PDT) David Rientjes wrote: > If move_freepages() returns 0 because zone_spans_pfn(), *num_movable can move_free_pages_block()? !zone_spans_pfn()? > hold the value from the stack because it does not get initialized in > move_freepages(). > >

Re: [PATCH] mmc: meson-mx-sdio: mark expected switch fall-through

2018-10-05 Thread Gustavo A. R. Silva
Hi Martin, On 10/5/18 11:10 PM, Martin Blumenstingl wrote: > On Fri, Oct 5, 2018 at 12:15 PM Gustavo A. R. Silva > wrote: >> >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Notice that in this particular case, I replaced

Re: [PATCH] staging/rtlwifi: Fixing formatting warnings.

2018-10-05 Thread Gustavo A. R. Silva
On 10/5/18 10:58 PM, Scott Tracy wrote: > Signed-off-by: Scott Tracy > --- > drivers/staging/rtlwifi/core.c | 5 +++-- > drivers/staging/rtlwifi/efuse.c | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/rtlwifi/core.c

Re: [PATCH RFC] mm: Add an fs-write seal to memfd

2018-10-05 Thread Joel Fernandes
On Fri, Oct 05, 2018 at 12:53:39PM -0700, Andrew Morton wrote: > On Fri, 5 Oct 2018 12:27:27 -0700 "Joel Fernandes (Google)" > wrote: > > > To support the usecase, this patch adds a new F_SEAL_FS_WRITE seal which > > prevents any future mmap and write syscalls from succeeding while > > keeping

Re: [PATCH] mmc: meson-mx-sdio: mark expected switch fall-through

2018-10-05 Thread Martin Blumenstingl
On Fri, Oct 5, 2018 at 12:15 PM Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I replaced the "fall-through:" > comment with a proper "fall through", which is

Re: [PATCH] staging: emxx_udc: Remove unused device_desc declaration

2018-10-05 Thread Nick Desaulniers
On Wed, Oct 3, 2018 at 10:56 PM Nathan Chancellor wrote: > > Clang warns: > > drivers/staging/emxx_udc/emxx_udc.c:1373:37: warning: variable > 'device_desc' is not needed and will not be emitted > [-Wunneeded-internal-declaration] > static struct usb_device_descriptor device_desc = { >

[PATCH] staging/rtlwifi: Fixing formatting warnings.

2018-10-05 Thread Scott Tracy
Signed-off-by: Scott Tracy --- drivers/staging/rtlwifi/core.c | 5 +++-- drivers/staging/rtlwifi/efuse.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtlwifi/core.c b/drivers/staging/rtlwifi/core.c index ca37f7511c4d..a36cb44a5388 100644 ---

[PATCH v2 02/11] arch/x86: Rename the RDT functions and definitions

2018-10-05 Thread Moger, Babu
As AMD is starting to support RDT(or QOS) features, rename the RDT functions and definitions to more generic names. Signed-off-by: Babu Moger --- arch/x86/include/asm/rdt_sched.h | 22 +++--- arch/x86/kernel/cpu/rdt.c | 24

[PATCH v2 03/11] arch/x86: Re-arrange RDT init code

2018-10-05 Thread Moger, Babu
Separate the call sequence for rdt_quirks and MBA feature. This is in preparation to handle vendor differences in these call sequences. Signed-off-by: Babu Moger --- arch/x86/kernel/cpu/rdt.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git

[patch] mm, page_alloc: set num_movable in move_freepages()

2018-10-05 Thread David Rientjes
If move_freepages() returns 0 because zone_spans_pfn(), *num_movable can hold the value from the stack because it does not get initialized in move_freepages(). Move the initialization to move_freepages_block() to guarantee the value actually makes sense. This currently doesn't affect its only

[PATCH v2 08/11] arch/x86: Bring few more functions into the resource structure

2018-10-05 Thread Moger, Babu
Bring all resource functions that are different between the vendors into resource structure and initialize them dynamically. Add _intel suffix to Intel specific functions. Implement these functions separately for each vendors. update_mba_bw : Feedback loop bandwidth update functionality is not

[PATCH v2 09/11] arch/x86: Introduce new config parameter AMD_QOS

2018-10-05 Thread Moger, Babu
Introduces the new config parameter AMD_QOS. This parameter will be used to enable cache and memory bandwidth allocation and monitoring features on AMD processors. This will enable common config parameter PLATFORM_QOS if selected. Signed-off-by: Babu Moger --- arch/x86/Kconfig | 17

[PATCH v2 06/11] arch/x86: Use new config parameter PLATFORM_QOS for compilation

2018-10-05 Thread Moger, Babu
Use newly added config parameter PLATFORM_QOS to compile sources. This is common parameter across both Intel and AMD. Signed-off-by: Babu Moger --- arch/x86/include/asm/rdt_sched.h | 4 ++-- arch/x86/kernel/cpu/Makefile | 4 ++-- include/linux/sched.h| 2 +- 3 files changed, 5

[PATCH v2 05/11] arch/x86: Introduce a new config parameter PLATFORM_QOS

2018-10-05 Thread Moger, Babu
Introduces a new config parameter PLATFORM_QOS. This will be used as a common config parameter for both Intel and AMD. Each vendor will have their own config parameter to enable RDT feature. One for Intel(INTEL_RDT) and one for AMD(AMD_QOS). It can be enabled or disabled separately. The new

[PATCHv4 1/2] arm64: dts: stratix10: Add Stratix10 SMMU support

2018-10-05 Thread thor . thayer
From: Thor Thayer Add SMMU support to the Stratix10 Device Tree which includes adding the SMMU node and adding IOMMU stream ids to the SMMU peripherals. Signed-off-by: Thor Thayer --- v4 Add clock-name since clk_bulk_get() needs name for clock. v3 Remove bindings changes since not adding

[PATCH v2 07/11] arch/x86: Initialize the resource functions that are different

2018-10-05 Thread Moger, Babu
Initialize the resource functions that are different between the vendors. Some features are initialized differently between the vendors. Add _intel suffix to Intel specific functions. For example, MBA feature varies significantly between Intel and AMD. Separate the initialization of these

[PATCH v2 01/11] arch/x86: Start renaming the rdt files to more generic names

2018-10-05 Thread Moger, Babu
New generation of AMD processors start support RDT(or QOS) features. With more than one vendors supporting these features, it seems more appropriate to rename these files. Signed-off-by: Babu Moger --- arch/x86/include/asm/{intel_rdt_sched.h => rdt_sched.h} | 0 arch/x86/kernel/cpu/Makefile

[PATCH v2 10/11] arch/x86: Add AMD feature bit X86_FEATURE_MBA in cpuid bits array

2018-10-05 Thread Moger, Babu
From: Sherry Hurwitz The feature bit X86_FEATURE_MBA is detected via CPUID leaf 0x8008 EBX Bit 06. This bit indicates the support of AMD's MBA feature. This feature is supported by both Intel and AMD. But they are detected different CPUID leaves. Signed-off-by: Babu Moger Signed-off-by:

[PATCH v2 11/11] arch/x86: Introduce QOS feature for AMD

2018-10-05 Thread Moger, Babu
Enables QOS feature on AMD. Following QoS sub-features are supported in AMD if the underlying hardware supports it. - L3 Cache allocation enforcement - L3 Cache occupancy monitoring - L3 Code-Data Prioritization support - Memory Bandwidth Enforcement(Allocation) There are differences in the

[PATCH v2 00/11] arch/x86: AMD QoS support

2018-10-05 Thread Moger, Babu
This series adds support for AMD64 architectural extensions for Platform Quality of Service. These extensions are intended to provide for the monitoring of the usage of certain system resources by one or more processors and for the separate allocation and enforcement of limits on the use of

[PATCH v2 04/11] arch/x86: Bring all the macros to rdt.h

2018-10-05 Thread Moger, Babu
Bring all the macros to rdt.h and rename for consistency. Signed-off-by: Babu Moger --- arch/x86/kernel/cpu/rdt.c | 3 --- arch/x86/kernel/cpu/rdt.h | 5 + arch/x86/kernel/cpu/rdt_monitor.c | 7 ++- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git

Re: [PATCH] i2c: core: squelch error: uninitialized symbol 'ret'

2018-10-05 Thread George G. Davis
On Fri, Oct 05, 2018 at 07:43:01PM +0200, Wolfram Sang wrote: > > > Feel free to ignore if this is a topic already discussed in other > > threads. To be honest, I did not search the mailing list to determine if > > this particular issue was already discussed. > > Not this particular issue, but

Re: [PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-05 Thread John Hubbard
On 10/5/18 12:49 PM, John Hubbard wrote: > On 10/5/18 8:17 AM, Jason Gunthorpe wrote: >> On Thu, Oct 04, 2018 at 09:02:24PM -0700, john.hubb...@gmail.com wrote: >>> From: John Hubbard >>> >>> Introduces put_user_page(), which simply calls put_page(). >>> This provides a way to update all

Re: [PATCH v2 3/3] infiniband/mm: convert to the new put_user_page[s]() calls

2018-10-05 Thread John Hubbard
On 10/5/18 8:20 AM, Jason Gunthorpe wrote: > On Thu, Oct 04, 2018 at 09:02:25PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard >> >> For code that retains pages via get_user_pages*(), >> release those pages via the new put_user_page(), >> instead of put_page(). >> >> This prepares for

[GIT PULL] PCI fixes for v4.19

2018-10-05 Thread Bjorn Helgaas
PCI fixes: - Reprogram bridge prefetch registers to fix NVIDIA and Radeon issues after suspend/resume (Daniel Drake) - Fix mvebu I/O mapping creation sequence (Thomas Petazzoni) - Fix minor MAINTAINERS file match issue (Bjorn Helgaas) The following changes since commit

Re: [PATCH v5 1/2] dt-bindings: iio: vadc: Update example to include unit address for node 'usb-id-nopull'

2018-10-05 Thread Rob Herring
On Wed, Oct 03, 2018 at 05:14:31PM -0700, Matthias Kaehlcke wrote: > The node has a reg property, therefore its name should include a unit > address. > > Also change the name from 'usb_id_nopull' to 'usb-id-nopull' to follow > DT conventions. This is ADC channels? If so, then DT convention would

Re: [PATCH v3] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-05 Thread Nathan Chancellor
On Fri, Oct 05, 2018 at 01:41:19PM -0700, Nick Desaulniers wrote: > Nathan, > Thanks for your patience and continued support working towards an > optimal solution to fix this warning. Some thoughts below. > > On Fri, Oct 5, 2018 at 12:29 PM Nathan Chancellor > wrote: > > > > Clang warns when one

Re: [PATCH i2c-next v6 1/5] dt-bindings: i2c: Add 'timeout-ms' and '#retries' properties as common optional

2018-10-05 Thread Jae Hyun Yoo
Hi Rob, On 10/5/2018 1:39 PM, Rob Herring wrote: On Thu, Oct 04, 2018 at 01:43:18PM -0700, Jae Hyun Yoo wrote: +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -80,6 +80,12 @@ wants to support one of the below features, it should adapt the bindings below. Names of map

Re: [PATCH v5 3/3] gpiolib: Show correct direction from the beginning

2018-10-05 Thread Timur Tabi
On Fri, Oct 5, 2018 at 11:54 AM Timur Tabi wrote: > If you want, just put a printk(... offset) in msm_gpio_get() and read > from a GPIO that you know you have access to, and make sure the > 'offset' is correct. > > Then try reading from a GPIO that you don't have access to, and make > sure you

Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-10-05 Thread Niklas Cassel
On Thu, Oct 04, 2018 at 05:17:42PM -0500, Rob Herring wrote: > On Thu, Oct 4, 2018 at 2:17 PM Niklas Cassel wrote: > > > > On Thu, Oct 04, 2018 at 10:18:22AM -0500, Rob Herring wrote: > > > On Thu, Oct 4, 2018 at 3:36 AM Viresh Kumar > > > wrote: > > > > > > > > On 25-09-18, 14:43, Rob Herring

Re: [PATCH] KVM: X86: Add missing KVM_AMD dependency

2018-10-05 Thread Paolo Bonzini
On 05/10/2018 20:46, Guenter Roeck wrote: > Analysis shows that commit 59414c9892208 ("KVM: SVM: Add support for > KVM_SEV_LAUNCH_START command") added a dependency of KVM_AMD on > CRYPTO_DEV_CCP_DD if CRYPTO_DEV_SP_PSP is enabled: If CRYPTO_DEV_CCP_DD > is built as module, KVM_AMD must be built

Re: [PATCH v3] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-05 Thread Nick Desaulniers
Nathan, Thanks for your patience and continued support working towards an optimal solution to fix this warning. Some thoughts below. On Fri, Oct 5, 2018 at 12:29 PM Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another. > >

[PATCH 1/2] perf: Make clang_has_option() work on Python 3

2018-10-05 Thread Eduardo Habkost
Use a bytes literal so it works with Python 3's version of Popen(). Note that the b"..." syntax requires Python 2.6+. Signed-off-by: Eduardo Habkost --- tools/perf/util/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/setup.py

[PATCH 2/2] perf: More portable way to make CFLAGS work with clang

2018-10-05 Thread Eduardo Habkost
The existing code that tries to make CFLAGS compatible with clang doesn't work with Python 3. Instead of trying to touch _sysconfigdata.build_time_vars directly, change the dictionary returned by disutils.sysconfig.get_config_vars(). This works on both Python 2 and Python 3. Signed-off-by:

[PATCH 0/2] tools/perf: Python 3 + clang build fixes

2018-10-05 Thread Eduardo Habkost
This series contains a couple fixes to make it possible to build perf with Python 3 and clang. Eduardo Habkost (2): perf: Make clang_has_option() work on Python 3 perf: More portable way to make CFLAGS work with clang tools/perf/util/setup.py | 16 +--- 1 file changed, 9

Re: [PATCH i2c-next v6 1/5] dt-bindings: i2c: Add 'timeout-ms' and '#retries' properties as common optional

2018-10-05 Thread Rob Herring
On Thu, Oct 04, 2018 at 01:43:18PM -0700, Jae Hyun Yoo wrote: > This commit adds 'timeout-ms' and '#retries' properties as common > optional properties that can be used for setting 'timeout' and > 'retries' values of 'struct i2c_adapter'. With this patch, the bus > timeout value and the master

  1   2   3   4   5   6   7   >