Re: [PATCH] sched/fair: Fix nohz.next_balance update

2020-05-06 Thread Valentin Schneider
On 06/05/20 14:45, Vincent Guittot wrote: >> But then we may skip an update if we goto abort, no? Imagine we have just >> NOHZ_STATS_KICK, so we don't call any rebalance_domains(), and then as we >> go through the last NOHZ CPU in the loop we hit need_resched(). We would >> end in the abort part

Re: Proper use for linking foo.o_shipped after 69ea912fda74 ("kbuild: remove unneeded link_multi_deps")?

2020-05-06 Thread Florian Fainelli
On 5/6/2020 7:37 AM, Masahiro Yamada wrote: > On Wed, May 6, 2020 at 1:45 PM Florian Fainelli wrote: >> >> Hi Masahiro, Michal, >> >> While updating our systems from 4.9 to 5.4, we noticed that one of the >> kernel modules that we build, which is done by linking an object that we >> pre-compile

Re: [RFC][PATCH 1/4] devicetree: bindings: Add linux,cma-heap tag for reserved memory

2020-05-06 Thread Andrew F. Davis
On 5/4/20 4:50 AM, Brian Starkey wrote: > On Fri, May 01, 2020 at 11:40:16AM -0700, John Stultz wrote: >> On Fri, May 1, 2020 at 3:42 AM Brian Starkey wrote: >>> >>> Hi, >>> >>> On Fri, May 01, 2020 at 07:39:46AM +, John Stultz wrote: This patch adds a linux,cma-heap property for CMA rese

Re: [PATCH 6/9] KVM: SVM: keep DR6 synchronized with vcpu->arch.dr6

2020-05-06 Thread Peter Xu
On Wed, May 06, 2020 at 07:10:31AM -0400, Paolo Bonzini wrote: > Ensure that the current value of DR6 is always available in vcpu->arch.dr6, > so that the get_dr6 callback can just access vcpu->arch.dr6 and becomes > redundant. > > Signed-off-by: Paolo Bonzini Reviewed-by: Peter Xu -- Peter X

Re: [patch V4 part 1 19/36] x86/entry: Exclude low level entry code from sanitizing

2020-05-06 Thread Alexandre Chartre
On 5/5/20 3:16 PM, Thomas Gleixner wrote: The sanitizers are not really applicable to the fragile low level entry code. code. Entry code needs to carefully setup a normal 'runtime' typo: code. code. Reviewed-by: Alexandre Chartre alex. environment. Signed-off-by: Peter Zijlstra (Intel)

Re: [PATCH] tracing: Fix a typo in comment "fonud"->"found"

2020-05-06 Thread Steven Rostedt
On Sat, 18 Apr 2020 00:48:09 +0800 Ethon Paul wrote: > +++ b/kernel/trace/trace.c > @@ -361,7 +361,7 @@ void trace_free_pid_list(struct trace_pid_list *pid_list) > * @filtered_pids: The list of pids to check > * @search_pid: The PID to find in @filtered_pids > * > - * Returns true if @searc

Re: [PATCH 7/9] KVM: x86: simplify dr6 accessors in kvm_x86_ops

2020-05-06 Thread Peter Xu
On Wed, May 06, 2020 at 07:10:32AM -0400, Paolo Bonzini wrote: > kvm_x86_ops.set_dr6 is only ever called with vcpu->arch.dr6 as the > second argument, and for both SVM and VMX the VMCB value is kept > synchronized with vcpu->arch.dr6 on #DB; we can therefore remove the > read accessor. > > For the

[PATCH] Driver: hv: vmbus: drop a no long applicable comment

2020-05-06 Thread Wei Liu
None of the things mentioned in the comment is initialized in hv_init. They've been moved elsewhere. Signed-off-by: Wei Liu --- drivers/hv/vmbus_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 3a27f6c5f3de..7efdcadc335e 100644 --- a/

Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-06 Thread Souptick Joarder
On Wed, May 6, 2020 at 6:29 PM Jan Kara wrote: > > On Wed 06-05-20 17:51:39, Souptick Joarder wrote: > > On Wed, May 6, 2020 at 3:36 PM Jan Kara wrote: > > > > > > On Wed 06-05-20 02:06:56, Souptick Joarder wrote: > > > > On Wed, May 6, 2020 at 1:08 AM John Hubbard wrote: > > > > > > > > > > On

Re: [patch V4 part 1 20/36] vmlinux.lds.h: Create section for protection against instrumentation

2020-05-06 Thread Sean Christopherson
On Tue, May 05, 2020 at 03:16:22PM +0200, Thomas Gleixner wrote: > Provide also a set of markers: instr_begin()/end() > > These are used to mark code inside a noinstr function which calls > into regular instrumentable text section as safe. ... > --- a/include/linux/compiler.h > +++ b/include/lin

Re: [PATCH 7/9] KVM: x86: simplify dr6 accessors in kvm_x86_ops

2020-05-06 Thread Paolo Bonzini
On 06/05/20 18:06, Peter Xu wrote: > On Wed, May 06, 2020 at 07:10:32AM -0400, Paolo Bonzini wrote: >> kvm_x86_ops.set_dr6 is only ever called with vcpu->arch.dr6 as the >> second argument, and for both SVM and VMX the VMCB value is kept >> synchronized with vcpu->arch.dr6 on #DB; we can therefore

Re: Re: [RFC] DPCM for Tegra

2020-05-06 Thread Sameer Pujar
On 5/6/2020 9:23 PM, Mark Brown wrote: On Wed, May 06, 2020 at 04:47:09PM +0200, Jerome Brunet wrote: On Wed 06 May 2020 at 16:12, Sameer Pujar wrote: XBAR currently exports all routing widgets which can be used to interconnect multiple components and thus implements Mux widgets. Fixing the

Re: [PATCH -next] cpupower: Remove unneeded semicolon

2020-05-06 Thread shuah
On 5/5/20 6:52 PM, Samuel Zou wrote: Hi Shuah, I run with the below command, and get the output report. [local-host linux-next]# make coccicheck MODE=report M=tools/power/cpupower/utils Yes this is the command I am using as well. I don't see the errors you are seeing. What is the differenc

[PATCH 4/7] KVM: VMX: Optimize posted-interrupt delivery for timer fastpath

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li While optimizing posted-interrupt delivery especially for the timer fastpath scenario, I measured kvm_x86_ops.deliver_posted_interrupt() to introduce substantial latency because the processor has to perform all vmentry tasks, ack the posted interrupt notification vector, read the

[PATCH 3/7] KVM: X86: Introduce more exit_fastpath_completion enum values

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li Adds a fastpath_t typedef since enum lines are a bit long, and replace EXIT_FASTPATH_SKIP_EMUL_INS with two new exit_fastpath_completion enum values. - EXIT_FASTPATH_EXIT_HANDLED kvm will still go through it's full run loop, but it would skip invok

[PATCH 7/7] KVM: VMX: Handle preemption timer fastpath

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li This patch implements a fastpath for the preemption timer vmexit. The vmexit can be handled quickly so it can be performed with interrupts off and going back directly to the guest. Testing on SKX Server. cyclictest in guest(w/o mwait exposed, adaptive advance lapic timer is de

[PATCH 1/7] KVM: VMX: Introduce generic fastpath handler

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li Introduce generic fastpath handler to handle MSR fastpath, VMX-preemption timer fastpath etc; move it after vmx_complete_interrupts() in order to catch events delivered to the guest, and abort the fast path in later patches. While at it, move the kvm_exit tracepoint so that it i

[PATCH v5 0/7] KVM: VMX: Tscdeadline timer emulation fastpath

2020-05-06 Thread Paolo Bonzini
This is my cleaned up version of Wanpeng's TSC deadline timer optimizations. The main change is a reorganization of the fast path enums, removing EXIT_FASTPATH_SKIP_EMUL_INS (following the suggestion of 林鑫龙) and renaming EXIT_FASTPATH_NOP to EXIT_FASTPATH_EXIT_HANDLED. Paolo Bonzini (1): KVM: x

[PATCH 5/7] KVM: x86: introduce kvm_can_use_hv_timer

2020-05-06 Thread Paolo Bonzini
Replace the ad hoc test in vmx_set_hv_timer with a test in the caller, start_hv_timer. This test is not Intel-specific and would be duplicated when introducing the fast path for the TSC deadline MSR. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/lapic.c | 13 ++--- arch/x86/kvm/lapic.

RE: [RFC][PATCH 1/3] evm: Move hooks outside LSM infrastructure

2020-05-06 Thread Roberto Sassu
> -Original Message- > From: Roberto Sassu > Sent: Wednesday, April 29, 2020 9:40 AM > To: zo...@linux.ibm.com; david.saff...@gmail.com; > v...@zeniv.linux.org.uk; jmor...@namei.org > Cc: linux-fsde...@vger.kernel.org; linux-integr...@vger.kernel.org; linux- > security-mod...@vger.kernel.or

[PATCH 2/7] KVM: X86: Introduce kvm_vcpu_exit_request() helper

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li Introduce kvm_vcpu_exit_request() helper, we need to check some conditions before enter guest again immediately, we skip invoking the exit handler and go through full run loop if complete fastpath but there is stuff preventing we enter guest again immediately. Tested-by: Haiwei

[PATCH 6/7] KVM: X86: TSCDEADLINE MSR emulation fastpath

2020-05-06 Thread Paolo Bonzini
From: Wanpeng Li This patch implements a fast path for emulation of writes to the TSCDEADLINE MSR. Besides shortcutting various housekeeping tasks in the vCPU loop, the fast path can also deliver the timer interrupt directly without going through KVM_REQ_PENDING_TIMER because it runs in vCPU con

Re: [PATCH v4 07/18] static_call: Add inline static call infrastructure

2020-05-06 Thread Peter Zijlstra
On Tue, May 05, 2020 at 05:10:51PM -0500, Josh Poimboeuf wrote: > On Fri, May 01, 2020 at 10:28:56PM +0200, Peter Zijlstra wrote: > > +#ifdef CONFIG_HAVE_STATIC_CALL_INLINE > > + > > +struct static_call_mod { > > + struct static_call_mod *next; > > + struct module *mod; /* for vmlinux, mod == N

Re: [PATCH v4 09/18] x86/static_call: Add out-of-line static call implementation

2020-05-06 Thread Peter Zijlstra
On Fri, May 01, 2020 at 10:28:58PM +0200, Peter Zijlstra wrote: > +#define ARCH_DEFINE_STATIC_CALL_TRAMP(name, func)\ > + asm(".pushsection .text, \"ax\" \n" \ > + ".align 4 \n" \ > +

Re: [PATCH] perf-probe: Accept the instance number of kretprobe event

2020-05-06 Thread Arnaldo Carvalho de Melo
Em Wed, May 06, 2020 at 11:29:12PM +0900, Masami Hiramatsu escreveu: > Since the commit 6a13a0d7b4d1 ("ftrace/kprobe: Show the > maxactive number on kprobe_events") introduced to show the > instance number of kretprobe events, the length of the 1st > format of the kprobe event will not 1, but it ca

My Dear in the lord

2020-05-06 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politician who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in the year February 2010, During his lifetime he deposite

Re: [PATCH hmm v2 5/5] mm/hmm: remove the customizable pfn format from hmm_range_fault

2020-05-06 Thread Jason Gunthorpe
On Fri, May 01, 2020 at 05:53:26PM -0700, Ralph Campbell wrote: > > Acked-by: Felix Kuehling > > Tested-by: Ralph Campbell > > Signed-off-by: Jason Gunthorpe > > Signed-off-by: Christoph Hellwig > > Documentation/vm/hmm.rst| 26 ++-- > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm

Re: [PATCH] doc: Fix some typo errors in ras.rst

2020-05-06 Thread Waiman Long
On 5/5/20 11:48 AM, Matthew Wilcox wrote: On Tue, May 05, 2020 at 11:10:49AM -0400, Waiman Long wrote: Fix typo errors. By reformatting it, you've successfully obscured what typos you've fixed. As a result I read the whole paragraph, and ... ECC memory -- -As mentioned on the p

Re: [PATCH v4 14/18] static_call: Add static_cond_call()

2020-05-06 Thread Peter Zijlstra
On Wed, May 06, 2020 at 10:01:12AM -0400, Mathieu Desnoyers wrote: > - On May 6, 2020, at 9:55 AM, Peter Zijlstra pet...@infradead.org wrote: > > > On Tue, May 05, 2020 at 04:27:44PM -0400, Mathieu Desnoyers wrote: > >> Actually, if the goal is to do code patching of the call, I wonder > >> wh

Re: [PATCH hmm v2 5/5] mm/hmm: remove the customizable pfn format from hmm_range_fault

2020-05-06 Thread Jason Gunthorpe
On Mon, May 04, 2020 at 06:30:00PM -0700, John Hubbard wrote: > On 2020-05-01 11:20, Jason Gunthorpe wrote: > > From: Jason Gunthorpe > > > > Presumably the intent here was that hmm_range_fault() could put the data > > into some HW specific format and thus avoid some work. However, nothing > > ac

Re: [PATCH] doc: Fix some typo errors in ras.rst

2020-05-06 Thread Waiman Long
On 5/5/20 12:03 PM, Borislav Petkov wrote: On Tue, May 05, 2020 at 08:48:16AM -0700, Matthew Wilcox wrote: Usually a 64-bit system refers to the width of a pointer. Here, it's referring to the width of the memory system, which is rather confusing. How about "In the above example" instead of "So

Re: [PATCH] ASoC: mediatek: Fix error handling

2020-05-06 Thread Mark Brown
On Wed, 6 May 2020 22:30:09 +0800, Tang Bin wrote: > If the function platform_get_irq() failed, the negative value > returned will not be detected here. So fix error handling in > mt6797_afe_pcm_dev_probe(). And when get irq failed, the function > platform_get_irq() logs an error message, so remove

Kmemleak infrastructure improvement for task_struct leaks and call_rcu()

2020-05-06 Thread Qian Cai
== task struck leaks == There are leaks from task struct from time to time where someone forgot to call put_task_struct() somewhere leading to leaks. For example, https://lore.kernel.org/lkml/c1ccbdac-a453-4ff2-908f-0b6e35622...@lca.pw/ It was such a pain to debug this kind of leaks at the momen

[PATCH v2] doc: Fix some errors in ras.rst

2020-05-06 Thread Waiman Long
Make some miscellaneous fixes to the first paragraph of "ECC memory": - Change the incorrect "74 bits" to "72 bits". - Change "mentioned on" to "mentioned in". - Remove the extra "extra". - Rephrase some sentences as suggested by Matthew Wilcox. Signed-off-by: Waiman Long --- Documentation/a

Re: Proper use for linking foo.o_shipped after 69ea912fda74 ("kbuild: remove unneeded link_multi_deps")?

2020-05-06 Thread Masahiro Yamada
On Thu, May 7, 2020 at 1:03 AM Florian Fainelli wrote: > > > > On 5/6/2020 7:37 AM, Masahiro Yamada wrote: > > On Wed, May 6, 2020 at 1:45 PM Florian Fainelli > > wrote: > >> > >> Hi Masahiro, Michal, > >> > >> While updating our systems from 4.9 to 5.4, we noticed that one of the > >> kernel mo

Re: [patch V4 part 1 05/36] x86/entry: Flip _TIF_SIGPENDING and _TIF_NOTIFY_RESUME handling

2020-05-06 Thread Borislav Petkov
On Tue, May 05, 2020 at 03:16:07PM +0200, Thomas Gleixner wrote: > Make sure task_work runs before any kind of userspace -- very much > including signals -- is invoked. > > Suggested-by: Andy Lutomirski > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Thomas Gleixner Does this need Fr

Re: [patch V4 part 1 20/36] vmlinux.lds.h: Create section for protection against instrumentation

2020-05-06 Thread Peter Zijlstra
On Wed, May 06, 2020 at 09:08:31AM -0700, Sean Christopherson wrote: > On Tue, May 05, 2020 at 03:16:22PM +0200, Thomas Gleixner wrote: > > Provide also a set of markers: instr_begin()/end() > > > > These are used to mark code inside a noinstr function which calls > > into regular instrumentable t

Re: [PATCH 2/4] KVM: SVM: Fixes setting V_IRQ while AVIC is still enabled

2020-05-06 Thread Paolo Bonzini
On 06/05/20 15:17, Suravee Suthikulpanit wrote: > */ > -void kvm_request_apicv_update(struct kvm *kvm, bool activate, ulong bit) > +void kvm_request_apicv_update(struct kvm *kvm, bool activate, ulong bit, > + struct kvm_vcpu *except) > { > unsigned long old, new,

[net-next RFC PATCH 06/13] net: hsr: some renaming to introduce PRP driver support

2020-05-06 Thread Murali Karicheri
This is a preparatory patch to introduce PRP device support. PRP device is very much similar to HSR in terms of device creation/removal, packet handling, etc. So this patch rename the functions that can be reused for PRP with a hsr_prp prefix. Common definitions and structure types are prefixed as

[net-next RFC PATCH 11/13] net: prp: add supervision frame generation and handling support

2020-05-06 Thread Murali Karicheri
Add support for sending and handling supervision frames. For PRP, supervision frame format is similar to HSR version 0, but have a PRP Redunancy Control Trailor (RCT) added. Signed-off-by: Murali Karicheri --- net/hsr-prp/hsr_prp_device.c | 50 --- net/hsr-prp/hs

[net-next RFC PATCH 12/13] net: prp: add packet handling support

2020-05-06 Thread Murali Karicheri
DAN-P (Dual Attached Nodes PRP) nodes are expected to receive traditional IP packets as well as PRP (Parallel Redundancy Protocol) tagged (trailer) packets. This is because PRP network can have traditional devices such as bridges/swiches or PC attached to it and should be able to communicate. This

[net-next RFC PATCH 09/13] net: hsr: move re-usable code for PRP to hsr_prp_netlink.c

2020-05-06 Thread Murali Karicheri
Before introducing PRP netlink code, move the re-usable code to a common hsr_prp_netlink.c. Signed-off-by: Murali Karicheri --- net/hsr-prp/Makefile | 2 +- net/hsr-prp/hsr_netlink.c | 337 +-- net/hsr-prp/hsr_prp_netlink.c | 367 +++

[net-next RFC PATCH 00/13] net: hsr: Add PRP driver

2020-05-06 Thread Murali Karicheri
This RFC series add support for Parallel Redundancy Protocol (PRP) as defined in IEC-62439-3 in the kernel networking subsystem. PRP Uses a Redundancy Control Trailer (RCT) the format of which is similar to HSR Tag. This is used for implementing redundancy. RCT consists of 6 bytes similar to HSR t

Re: [RFC][PATCH 1/4] devicetree: bindings: Add linux,cma-heap tag for reserved memory

2020-05-06 Thread John Stultz
On Wed, May 6, 2020 at 9:04 AM Andrew F. Davis wrote: > On 5/4/20 4:50 AM, Brian Starkey wrote: > > On Fri, May 01, 2020 at 11:40:16AM -0700, John Stultz wrote: > >> So the name we expose is the CMA name itself. So with dt it will be > >> the name of the reserved memory node that the flag property

[net-next RFC PATCH 13/13] net: prp: enhance debugfs to display PRP specific info in node table

2020-05-06 Thread Murali Karicheri
Print PRP specific information from node table as part of debugfs node table display Signed-off-by: Murali Karicheri --- net/hsr-prp/hsr_prp_debugfs.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/net/hsr-prp/hsr_prp_debugfs.c b/net/hsr-prp/hsr_prp_debugfs

Re: [PATCH 0/4] KVM: SVM: Fix AVIC warning when enable irq window

2020-05-06 Thread Paolo Bonzini
On 06/05/20 15:17, Suravee Suthikulpanit wrote: > Introduce kvm_make_all_cpus_request_except(), which is used > in the subsequent patch 2 to fix AVIC warning. > > Also include miscelleneous clean ups. > > Thanks, > Suravee > > Suravee Suthikulpanit (4): > KVM: Introduce kvm_make_all_cpus_reque

[net-next RFC PATCH 10/13] net: hsr: add netlink socket interface for PRP

2020-05-06 Thread Murali Karicheri
Similar to HSR, add a netlink socket interface code re-using the common functions from hsr_prp_netlink.c. Use wrapper functions for hsr_dev_setup() and prp_dev_setup() to setup HSR/PRP interface by calling common hsr_prp_dev_setup(). Signed-off-by: Murali Karicheri --- net/hsr-prp/Makefile

Re: [PATCH] arm64: disable patchable function entry on big-endian clang builds

2020-05-06 Thread Nick Desaulniers
On Wed, May 6, 2020 at 8:46 AM 'Fangrui Song' via Clang Built Linux wrote: > Created https://reviews.llvm.org/D79495 to allow the function attribute > 'patchable_function_entry' on aarch64_be. > I think -fpatchable-function-entry= just works. > > Note, LLD does not support aarch64_be > (https://gi

[net-next RFC PATCH 03/13] net: hsr: rename files to introduce PRP support

2020-05-06 Thread Murali Karicheri
As PRP implementation expect to re-use code from HSR driver, rename the existing files that can be re-used with a hsr_prp prefix. Signed-off-by: Murali Karicheri --- net/hsr-prp/Makefile | 11 ++- net/hsr-prp/hsr_netlink.c | 6 +++--

[net-next RFC PATCH 05/13] net: hsr: rename hsr_port_get_hsr() to hsr_prp_get_port()

2020-05-06 Thread Murali Karicheri
hsr_port_get_hsr() actually gets port struct ptr from the priv. So rename it to reflect the same. hsr_prp prefix is chosen as this can be re-used for PRP driver as well. Signed-off-by: Murali Karicheri --- net/hsr-prp/hsr_netlink.c | 12 ++-- net/hsr-prp/hsr_prp_device.c | 14

[net-next RFC PATCH 04/13] net: hsr: rename hsr variable inside struct hsr_port to priv

2020-05-06 Thread Murali Karicheri
The struct hsr_port has a variable pointing to the private struct of the driver. This should have been named priv instead of hsr to be clean. This would be needed as it is planned to re-use the code for prp and then priv variable is more appropriate than hsr. So fix it by search and replace of all

[net-next RFC PATCH 08/13] net: hsr: migrate HSR netlink socket code to use new common API

2020-05-06 Thread Murali Karicheri
Migrate the existing netlink socket code to the use the new common API. Signed-off-by: Murali Karicheri --- net/hsr-prp/hsr_netlink.c | 123 +++--- net/hsr-prp/hsr_netlink.h | 2 +- 2 files changed, 64 insertions(+), 61 deletions(-) diff --git a/net/hsr-prp/hsr

[net-next RFC PATCH 01/13] net: hsr: Re-use Kconfig option to support PRP

2020-05-06 Thread Murali Karicheri
PRP, Parallel Redundancy Protocol is another redundancy protocol defined by IEC62439-3 similar to HSR. PRP uses a RCT, Redundancy Control Trailer appended to the end of a Ethernet frame to implement redundancy. There are many similarities between these protocols so that existing code for HSR can be

Re: Re: [PATCH] mmc/core:fix mmc_sd_hw_reset oops mmc_sd_hw_reset function may be oops if the ejection of sd and the reset of sd simultaneously occur

2020-05-06 Thread Ulf Hansson
On Fri, 1 May 2020 at 19:18, yanxiaoyo...@gmail.com wrote: > > it is a race condition,the situation as follows: > a > b > mmc_rescan > mmc_sd_detect > mmc_get_card > __mmc_reclaim_host

[net-next RFC PATCH 07/13] net: hsr: introduce common uapi include/definitions for HSR and PRP

2020-05-06 Thread Murali Karicheri
There are many commonalities between HSR and PRP protocols except for the fact that HSR uses Tag as a prefix vs RCT (Redundancy Control Trail) as a trailer for PRP. Few of the commonalities to name are:- both uses a pair of Ethernet interfaces, can be set up the same way from user space using ip li

[net-next RFC PATCH 02/13] net: hsr: rename hsr directory to hsr-prp to introduce PRP

2020-05-06 Thread Murali Karicheri
As prp driver is expected to re-use code from HSR driver, rename the directory to net/hsr-prp as a preparatory step. Signed-off-by: Murali Karicheri --- MAINTAINERS | 2 +- net/Kconfig | 2 +- net/Makefile| 2 +- net/{hsr =>

Re: [PATCH v5 1/6] of_graph: add of_graph_get_local_port()

2020-05-06 Thread Sam Ravnborg
Hi Dmitry On Sat, Apr 18, 2020 at 08:06:58PM +0300, Dmitry Osipenko wrote: > In some case, like a DRM display code for example, it's useful to silently > check whether port node exists at all in a device-tree before proceeding > with parsing the graph. > > This patch adds of_graph_get_local_port(

Re: [PATCH v1 1/3] ARM: tegra: Initialize r0 register for firmware wake-up

2020-05-06 Thread Thierry Reding
On Wed, Mar 25, 2020 at 01:43:33AM +0300, Dmitry Osipenko wrote: > Downstream kernel of ASUS TF300T sets r0 to #3. There is no explanation in > downstream code whether this is really needed and some of T30 downstream > kernels have and explicit comment telling that all arguments are ignored > by fi

Re: [PATCH v1 3/3] cpuidle: tegra: Support CPU cluster power-down state on Tegra30

2020-05-06 Thread Thierry Reding
On Wed, Mar 25, 2020 at 01:43:35AM +0300, Dmitry Osipenko wrote: > The new Tegra CPU Idle driver now has a unified code path for the coupled > CC6 (LP2) state, this allows to enable the deepest idling state on Tegra30 > SoC where the whole CPU cluster is power-gated. > > Tested-by: Michał Mirosław

Re: [patch V4 part 1 06/36] compiler: Simple READ/WRITE_ONCE() implementations

2020-05-06 Thread Borislav Petkov
On Tue, May 05, 2020 at 03:16:08PM +0200, Thomas Gleixner wrote: > READ/WRITE_ONCE_NOCHECK() is required for atomics in code which cannot be > instrumented like the x86 int3 text poke code. As READ/WRITE_ONCE() is > undergoing a rewrite, provide __{READ,WRITE}_ONCE_SCALAR(). > > Signed-off-by: Pet

Re: [PATCH v1 2/3] firmware: trusted_foundations: Different way of L2 cache enabling after LP2 suspend

2020-05-06 Thread Thierry Reding
On Wed, Mar 25, 2020 at 01:43:34AM +0300, Dmitry Osipenko wrote: > ASUS TF300T device may not work properly if firmware is asked to fully > re-initialize L2 cache after resume from LP2 suspend. The downstream > kernel of TF300T uses different opcode to enable cache after resuming > from LP2, this o

[net-next RFC PATCH 1/2] add support for PRP similar to HSR

2020-05-06 Thread Murali Karicheri
PRP protocol is similar to HSR in many aspects and this patch add a command type prp to create prp interface using two slave interfaces similar to HSR HSR and PRP interfaces are setup in a similar way in kernel as the protocols shares many similar attributes. So restructure the code to avoid dupli

[net-next RFC PATCH 2/2] prp: update man page for PRP

2020-05-06 Thread Murali Karicheri
This update man page for PRP support Signed-off-by: Murali Karicheri --- man/man8/ip-link.8.in | 29 + 1 file changed, 29 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 939e2ad49f4e..56d95a79eac5 100644 --- a/man/man8/ip-link.8.in +++

[net-next RFC PATCH 0/2] iproute2: Add PRP support

2020-05-06 Thread Murali Karicheri
This is the RFC patch series to add prp link type in iproute2. This is dependent on the kernel patch series with subject line "[net-next RFC PATCH 00/13] net: hsr: Add PRP driver Murali Karicheri (2): add support for PRP similar to HSR prp: update man page for PRP include/uapi/linux/if_lin

Re: [PATCH v5 1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings

2020-05-06 Thread Ulf Hansson
On Wed, 6 May 2020 at 15:01, Veerabhadrarao Badiganti wrote: > > > On 4/28/2020 5:26 AM, Chun-Hung Wu wrote: > > Parse CQE bindings "supports-cqe" and "disable-cqe-dcmd" > > in mmc_of_parse(). > > > > Signed-off-by: Chun-Hung Wu > > --- > > drivers/mmc/core/host.c | 5 + > > 1 file changed

Re: [PATCH] sched/fair: Fix enqueue_task_fair warning some more

2020-05-06 Thread Vincent Guittot
Hi Phil, - reply to all this time On Wed, 6 May 2020 at 16:18, Phil Auld wrote: > > sched/fair: Fix enqueue_task_fair warning some more > > The recent patch, fe61468b2cb (sched/fair: Fix enqueue_task_fair warning) > did not fully resolve the issues with the (rq->tmp_alone_branch != > &rq->leaf_c

Re: [PATCH] x86: bitops: fix build regression

2020-05-06 Thread Nick Desaulniers
On Tue, May 5, 2020 at 9:30 PM Nathan Chancellor wrote: > > On Tue, May 05, 2020 at 10:44:22AM -0700, Nick Desaulniers wrote: > > This is easily reproducible via Clang+CONFIG_STAGING=y+CONFIG_VT6656=m, > > or Clang+allyesconfig. > > For what it's worth, I don't see this with allyesconfig. Oops, o

Re: [PATCH v2] doc: Fix some errors in ras.rst

2020-05-06 Thread Matthew Wilcox
On Wed, May 06, 2020 at 12:22:17PM -0400, Waiman Long wrote: > Make some miscellaneous fixes to the first paragraph of "ECC memory": > - Change the incorrect "74 bits" to "72 bits". > - Change "mentioned on" to "mentioned in". > - Remove the extra "extra". > - Rephrase some sentences as suggest

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-06 Thread Jordan Hand
On 4/21/20 2:52 PM, Jarkko Sakkinen wrote: Intel(R) SGX is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the enclave is disallowed to access the memory inside the enclave by the CPU access control. There is a new hardwa

Re: [PATCH] perf-probe: Accept the instance number of kretprobe event

2020-05-06 Thread Arnaldo Carvalho de Melo
Em Wed, May 06, 2020 at 01:17:23PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, May 06, 2020 at 11:29:12PM +0900, Masami Hiramatsu escreveu: > > Since the commit 6a13a0d7b4d1 ("ftrace/kprobe: Show the > > maxactive number on kprobe_events") introduced to show the > > instance number of kretp

Re: [PATCH v5 2/6] drm/of: Make drm_of_find_panel_or_bridge() to check graph's presence

2020-05-06 Thread Sam Ravnborg
On Sat, Apr 18, 2020 at 08:06:59PM +0300, Dmitry Osipenko wrote: > When graph isn't defined in a device-tree, the of_graph_get_remote_node() > prints a noisy error message, telling that port node is not found. This is > undesirable behaviour in our case because absence of a panel/bridge graph > is

Re: [PATCH v5 3/6] drm/tegra: output: Don't leak OF node on error

2020-05-06 Thread Sam Ravnborg
On Sat, Apr 18, 2020 at 08:07:00PM +0300, Dmitry Osipenko wrote: > The OF node should be put before returning error in tegra_output_probe(), > otherwise node's refcount will be leaked. > > Reviewed-by: Laurent Pinchart > Signed-off-by: Dmitry Osipenko Reviewed-by: Sam Ravnborg > --- > drivers/

[PATCH] kgdb: Fix spurious true from in_dbg_master()

2020-05-06 Thread Daniel Thompson
Currently there is a small window where a badly timed migration could cause in_dbg_master() to spuriously return true. Specifically if we migrate to a new core after reading the processor id and the previous core takes a breakpoint then we will evaluate true if we read kgdb_active before we get the

Re: [PATCH v5 4/6] drm/tegra: output: Support DRM bridges

2020-05-06 Thread Sam Ravnborg
On Sat, Apr 18, 2020 at 08:07:01PM +0300, Dmitry Osipenko wrote: > Newer Tegra device-trees will specify a video output graph which involves > a bridge. This patch adds initial support for the DRM bridges to the Tegra > DRM output. > > Signed-off-by: Dmitry Osipenko Acked-by: Sam Ravnborg > ---

Re: [PATCH 1/3] perf-probe: Fix to check blacklist address correctly

2020-05-06 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 23, 2020 at 08:01:04PM +0900, Masami Hiramatsu escreveu: > Fix to check kprobe blacklist address correctly with > relocated address by adjusting debuginfo address. > > Since the address in the debuginfo is same as objdump, > it is different from relocated kernel address with KASLR. > T

[PATCH v3 5/7] firmware: smccc: Refactor SMCCC specific bits into separate file

2020-05-06 Thread Sudeep Holla
In order to add newer SMCCC v1.1+ functionality and to avoid cluttering PSCI firmware driver with SMCCC bits, let us move the SMCCC specific details under drivers/firmware/smccc/smccc.c We can also drop conduit and smccc_version from psci_operations structure as SMCCC was the sole user and now it

[PATCH v3 4/7] firmware: smccc: Drop smccc_version enum and use ARM_SMCCC_VERSION_1_x instead

2020-05-06 Thread Sudeep Holla
Instead of maintaining 2 sets of enums/macros for tracking SMCCC version, let us drop smccc_version enum and use ARM_SMCCC_VERSION_1_x directly instead. This is in preparation to drop smccc_version here and move it separately under drivers/firmware/smccc. Reviewed-by: Steven Price Signed-off-by:

[PATCH v3 0/7] firmware: smccc: Add basic SMCCC v1.2 + ARCH_SOC_ID support

2020-05-06 Thread Sudeep Holla
Hi, This patch series adds support for SMCCCv1.2 ARCH_SOC_ID. This doesn't add other changes added in SMCCC v1.2 yet. They will follow these soon along with its first user SPCI/PSA-FF. This is tested using upstream TF-A + the patch[2] fixing the original implementation there. v1[0]->v2[1]:

[PATCH v3 3/7] firmware: smccc: Add the definition for SMCCCv1.2 version/error codes

2020-05-06 Thread Sudeep Holla
Add the definition for SMCCC v1.2 version and new error code added. While at it, also add a note that ARM DEN 0070A is deprecated and is now merged into the main SMCCC specification(ARM DEN 0028C). Reviewed-by: Steven Price Signed-off-by: Sudeep Holla --- include/linux/arm-smccc.h | 7 ++-

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-06 Thread Alexei Starovoitov
On Wed, May 6, 2020 at 8:53 AM Josh Poimboeuf wrote: > > On Tue, May 05, 2020 at 04:59:39PM -0700, Alexei Starovoitov wrote: > > As far as workaround I prefer the following: > > From 94bbc27c5a70d78846a5cb675df4cf8732883564 Mon Sep 17 00:00:00 2001 > > From: Alexei Starovoitov > > Date: Tue, 5 Ma

Re: [PATCH] kconfig: allow for conditional dependencies

2020-05-06 Thread Masahiro Yamada
On Fri, Apr 24, 2020 at 1:05 AM Nicolas Pitre wrote: > > On Thu, 23 Apr 2020, Jani Nikula wrote: > > > On Thu, 23 Apr 2020, Nicolas Pitre wrote: > > > This might appear to be a strange concept, but sometimes we want > > > a dependency to be conditionally applied. One such case is currently > > >

[PATCH v3 7/7] firmware: smccc: Add ARCH_SOC_ID support

2020-05-06 Thread Sudeep Holla
SMCCC v1.2 adds a new optional function SMCCC_ARCH_SOC_ID to obtain a SiP defined SoC identification value. Add support for the same. Also using the SoC bus infrastructure, let us expose the platform specific SoC atrributes under sysfs. We also provide custom sysfs for the vendor ID as JEP-106 ban

[PATCH v3 1/7] firmware: smccc: Add HAVE_ARM_SMCCC_DISCOVERY to identify SMCCC v1.1 and above

2020-05-06 Thread Sudeep Holla
SMCCC v1.0 lacked discoverability of version and features. To accelerate adoption of few mitigations and protect systems more rapidly from various vulnerability, PSCI v1.0 was updated to add SMCCC discovery mechanism though the PSCI firmware implementation of PSCI_FEATURES(SMCCC_VERSION) which retu

[PATCH v3 6/7] firmware: smccc: Add function to fetch SMCCC version

2020-05-06 Thread Sudeep Holla
For backward compatibility reasons, PSCI maintains SMCCC version as SMCCC didn't provide ARM_SMCCC_VERSION_FUNC_ID until v1.1 Let us provide accessors to fetch the SMCCC version in PSCI so that other SMCCC v1.1+ features can use it. Reviewed-by: Steven Price Signed-off-by: Sudeep Holla --- dri

Re: [PATCH v5 5/6] drm/tegra: output: rgb: Support LVDS encoder bridge

2020-05-06 Thread Sam Ravnborg
On Sat, Apr 18, 2020 at 08:07:02PM +0300, Dmitry Osipenko wrote: > Newer Tegra device-trees will specify a video output graph, which involves > LVDS encoder bridge. This patch adds support for the LVDS encoder bridge > to the RGB output, allowing us to model the display hardware properly. > > Revi

[PATCH v3 2/7] firmware: smccc: Update link to latest SMCCC specification

2020-05-06 Thread Sudeep Holla
The current link gets redirected to the revision B published in November 2016 though it actually points to the original revision A published in June 2013. Let us update the link to point to the latest version, so that it doesn't get stale anytime soon. Currently it points to v1.2 published in Marc

[PATCH v2 04/45] powerpc/kasan: Remove unnecessary page table locking

2020-05-06 Thread Christophe Leroy
Commit 45ff3c559585 ("powerpc/kasan: Fix parallel loading of modules.") added spinlocks to manage parallele module loading. Since then commit 47febbeeec44 ("powerpc/32: Force KASAN_VMALLOC for modules") converted the module loading to KASAN_VMALLOC. The spinlocking has then become unneeded and ca

Re: KASAN: use-after-free Read in usblp_bulk_read

2020-05-06 Thread Pete Zaitcev
On Wed, 06 May 2020 11:14:42 +0200 Oliver Neukum wrote: > Very well. We are not going to find it without exceptional luck. Yet > there may be a real issue, too. We simply do not know. How about the > attached patch? > usblp_unlink_urbs(usblp); > mutex_unlock(&usblp->mut); > + usb

[PATCH v2 00/45] Use hugepages to map kernel mem on 8xx

2020-05-06 Thread Christophe Leroy
The main purpose of this big series is to: - reorganise huge page handling to avoid using mm_slices. - use huge pages to map kernel memory on the 8xx. The 8xx supports 4 page sizes: 4k, 16k, 512k and 8M. It uses 2 Level page tables, PGD having 1024 entries, each entry covering 4M address space. Th

[PATCH v2 07/45] powerpc/ptdump: Limit size of flags text to 1/2 chars on PPC32

2020-05-06 Thread Christophe Leroy
In order to have all flags fit on a 80 chars wide screen, reduce the flags to 1 char (2 where ambiguous). No cache is 'i' User is 'ur' (Supervisor would be sr) Shared (for 8xx) becomes 'sh' (it was 'user' when not shared but that was ambiguous because that's not entirely right) Signed-off-by: Chr

[PATCH v2 35/45] powerpc/8xx: Move DTLB perf handling closer.

2020-05-06 Thread Christophe Leroy
Now that space have been freed next to the DTLB miss handler, it's associated DTLB perf handling can be brought back in the same place. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a

Re: [PATCH v2] security: disable FORTIFY_SOURCE on clang

2020-05-06 Thread George Burgess
I took a bit to poke Clang here. Building an arbitrary file with `CONFIG_FORTIFY_SOURCE=y`, none of the functions in this range https://github.com/ClangBuiltLinux/linux/blob/0bee0cece/include/linux/string.h#L274-L468 have FORTIFY'ed definitions emitted by clang, i.e., the added FORTIFY checks aren'

[PATCH v2 09/45] powerpc/ptdump: Add _PAGE_COHERENT flag

2020-05-06 Thread Christophe Leroy
For platforms using shared.c (4xx, Book3e, Book3s/32), also handle the _PAGE_COHERENT flag with corresponds to the M bit of the WIMG flags. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/shared.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/mm/ptdump/shared.c

[PATCH v2 43/45] powerpc/8xx: Implement dedicated kasan_init_region()

2020-05-06 Thread Christophe Leroy
Implement a kasan_init_region() dedicated to 8xx that allocates KASAN regions using huge pages. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/kasan/8xx.c| 74 ++ arch/powerpc/mm/kasan/Makefile | 1 + 2 files changed, 75 insertions(+) create mode 100644

[PATCH v2 30/45] powerpc/8xx: Add function to set pinned TLBs

2020-05-06 Thread Christophe Leroy
Pinned TLBs cannot be modified when the MMU is enabled. Create a function to rewrite the pinned TLB entries with MMU off. To set pinned TLB, we have to turn off MMU, disable pinning, do a TLB flush (Either with tlbie and tlbia) then reprogam the TLB entries, enable pinning and turn on MMU. If us

[PATCH v2 41/45] powerpc/8xx: Allow STRICT_KERNEL_RwX with pinned TLB

2020-05-06 Thread Christophe Leroy
Pinned TLB are 8M. Now that there is no strict boundary anymore between text and RO data, it is possible to use 8M pinned executable TLB that covers both text and RO data. When PIN_TLB_DATA or PIN_TLB_TEXT is selected, enforce 8M RW data alignment and allow STRICT_KERNEL_RWX. Signed-off-by: Chris

[PATCH v2 23/45] powerpc/mm: Reduce hugepd size for 8M hugepages on 8xx

2020-05-06 Thread Christophe Leroy
Commit 55c8fc3f4930 ("powerpc/8xx: reintroduce 16K pages with HW assistance") redefined pte_t as a struct of 4 pte_basic_t, because in 16K pages mode there are four identical entries in the page table. But hugepd entries for 8M pages require only one entry of size pte_basic_t. So there is no point

[PATCH v2 12/45] powerpc/ptdump: Properly handle non standard page size

2020-05-06 Thread Christophe Leroy
In order to properly display information regardless of the page size, it is necessary to take into account real page size. Signed-off-by: Christophe Leroy Fixes: cabe8138b23c ("powerpc: dump as a single line areas mapping a single physical page.") Cc: sta...@vger.kernel.org --- arch/powerpc/mm/

[PATCH v2 32/45] powerpc/8xx: Always pin TLBs at startup.

2020-05-06 Thread Christophe Leroy
At startup, map 32 Mbytes of memory through 4 pages of 8M, and PIN them inconditionnaly. They need to be pinned because KASAN is using page tables early and the TLBs might be dynamically replaced otherwise. Remove RSV4I flag after installing mappings unless CONFIG_PIN_TLB_ is selected. Signed

[PATCH v2 34/45] powerpc/8xx: Remove now unused TLB miss functions

2020-05-06 Thread Christophe Leroy
The code to setup linear and IMMR mapping via huge TLB entries is not called anymore. Remove it. Also remove the handling of removed code exits in the perf driver. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 8 +- arch/powerpc/kernel/head_8xx.S

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