Re: [PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-19 Thread Andy Shevchenko
On Mon, Aug 19, 2019 at 4:29 PM Wei Xu wrote: > > Invoke acpi_gpiochip_request_interrupts after the acpi data has been > attached to the pl061 acpi node to register interruption. > > Otherwise it will be failed to register interruption for the ACPI case. > Because in the gpiochip_add_data_with_key

Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 02:52:13PM +, Bernard Metzler wrote: > > >To: "Bernard Metzler" > >From: "Jason Gunthorpe" > >Date: 08/19/2019 04:19PM > >Cc: "Geert Uytterhoeven" , "Doug Ledford" > >, linux-r...@vger.kernel.org, > >linux-kernel@vger.kernel.org > >Subject: [EXTERNAL] Re: Re: Re: [PAT

[PATCH v2] PM / wakeup: Register wakeup class kobj after device is added

2019-08-19 Thread Stephen Boyd
The device_set_wakeup_enable() function can be called on a device that hasn't been registered with device_add() yet. This allows the device to be in a state where wakeup is enabled for it but the device isn't published to userspace in sysfs yet. After commit 986845e747af ("PM / wakeup: Show wakeup

Re: [PATCH 3/3] powerpc: use __builtin_trap() in BUG/WARN macros.

2019-08-19 Thread Christophe Leroy
Le 19/08/2019 à 16:37, Segher Boessenkool a écrit : On Mon, Aug 19, 2019 at 04:08:43PM +0200, Christophe Leroy wrote: Le 19/08/2019 à 15:23, Segher Boessenkool a écrit : On Mon, Aug 19, 2019 at 01:06:31PM +, Christophe Leroy wrote: Note that we keep using an assembly text using "twi 31,

Re: [PATCH RESEND v4 5/9] KVM: VMX: Add init/set/get functions for SPP

2019-08-19 Thread Paolo Bonzini
On 14/08/19 09:03, Yang Weijiang wrote: > + > +int kvm_mmu_get_subpages(struct kvm *kvm, struct kvm_subpage *spp_info, > + bool mmu_locked) > +{ > + u32 *access = spp_info->access_map; > + gfn_t gfn = spp_info->base_gfn; > + int npages = spp_info->npages; > + st

Re: [PATCH v3 3/3] powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()

2019-08-19 Thread Nicholas Piggin
Segher Boessenkool's on August 20, 2019 12:24 am: > On Mon, Aug 19, 2019 at 01:58:12PM +, Christophe Leroy wrote: >> -#define LOAD_REG_IMMEDIATE_SYM(reg,expr)\ >> -lis reg,(expr)@highest; \ >> -ori reg,reg,(expr)@higher; \ >> -rldicr reg,reg,32,31;

RE: [PATCH net-next, 3/6] net/mlx5: Add wrappers for HyperV PCIe operations

2019-08-19 Thread Haiyang Zhang
> -Original Message- > From: Eran Ben Elisha > Sent: Thursday, August 15, 2019 7:35 AM > To: Mark Bloch ; Haiyang Zhang > ; sas...@kernel.org; da...@davemloft.net; > Saeed Mahameed ; l...@kernel.org; > lorenzo.pieral...@arm.com; bhelg...@google.com; linux- > p...@vger.kernel.org; linux-h

Re: [PATCH RESEND v4 7/9] KVM: VMX: Handle SPP induced vmexit and page fault

2019-08-19 Thread Paolo Bonzini
On 19/08/19 16:43, Paolo Bonzini wrote: >> +/* >> + * Record write protect fault caused by >> + * Sub-page Protection, let VMI decide >> + * the next step. >> + */ >> +if (spte &

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Mark Rutland
On Mon, Aug 19, 2019 at 04:05:22PM +0200, Andrey Konovalov wrote: > On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: > > > > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: > > > On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: > > > > On Mon, Aug 19, 2019 at 07:44:20PM

[PATCH] keys: Fix description size

2019-08-19 Thread David Howells
The maximum key description size is 4095. Commit f771fde82051 inadvertantly reduced that to 255 and made sizes between 256 and 4095 work weirdly, and any size whereby size & 255 == 0 would cause an assertion in __key_link_begin() at the following line: BUG_ON(index_key->desc_len == 0); T

Re: Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-19 Thread Stephen Boyd
Quoting Keerthy (2019-08-19 00:27:13) > > > On 19/08/19 11:57 AM, Stephen Boyd wrote: > > Quoting Keerthy (2019-08-18 21:24:58) > >> Hi Stephen, > >> > >> commit 03a3bb7ae63150230c5de645dc95e673ebf17e1a > >> Author: Stephen Boyd > >> Date: Mon Aug 5 16:32:41 2019 -0700 > >> > >> hwrng: c

Re: [PATCH v8 10/28] x86/asm/entry: annotate interrupt symbols properly

2019-08-19 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 12:38:36PM +0200, Jiri Slaby wrote: > * annotate functions properly by SYM_CODE_START, SYM_CODE_START_LOCAL* > and SYM_CODE_END -- these are not C-like functions, so we have to > annotate them using CODE. > * use SYM_INNER_LABEL* for labels being in the middle of other f

Re: [PATCH v2] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-19 Thread Masahiro Yamada
On Sun, Aug 11, 2019 at 2:03 AM Masahiro Yamada wrote: > > scripts/headers_check.pl can detect references to CONFIG options in > exported headers, but it has been disabled for more than a decade. > > Reverting commit 7e3fa5614117 ("kbuild: drop check for CONFIG_ in > headers_check") would emit the

Re: [PATCH 00/11] kbuild: clean-ups and improvement of single targets

2019-08-19 Thread Masahiro Yamada
On Sun, Aug 11, 2019 at 12:55 AM Masahiro Yamada wrote: > > > 01/11-09/11 are trivial clean-ups. > > 10/11 makes the single targets work more correctly. > > 11/11 cleans up Makefiles that have been added > to work aroud the single target issues. > > > > Masahiro Yamada (11): > kbuild: move the M

Re: [PATCH v2 01/12] irqchip/gic: Rework gic_configure_irq to take the full ICFGR base

2019-08-19 Thread Marc Zyngier
On 19/08/2019 15:26, Zenghui Yu wrote: > Hi Marc, > > On 2019/8/6 18:01, Marc Zyngier wrote: >> gic_configure_irq is currently passed the (re)distributor address, >> to which it applies an a fixed offset to get to the configuration >> registers. This offset is constant across all GICs, or rather i

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-19 Thread Thomas Gleixner
Arul, On Mon, 19 Aug 2019, Arul Jeniston wrote: > > 1) TSCs are out of sync or affected otherwise > > If the TSC clock is unstable and not synchronized, Linux kernel throws > dmesg logs and changes the current clock source to next best timer > (hpet). But we didn't see these logs in any of the

RE: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 08/19/2019 04:19PM >Cc: "Geert Uytterhoeven" , "Doug Ledford" >, linux-r...@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: Re: [PATCH] RDMA/siw: Fix compiler >warnings on 32-b

Re: [PATCH v2] nvme: allow 64-bit results in passthru commands

2019-08-19 Thread Keith Busch
On Mon, Aug 19, 2019 at 12:06:23AM -0700, Marta Rybczynska wrote: > - On 16 Aug, 2019, at 15:16, Christoph Hellwig h...@lst.de wrote: > > Sorry for not replying to the earlier version, and thanks for doing > > this work. > > > > I wonder if instead of using our own structure we'd just use > >

Re: [PATCH v8 08/28] x86/uaccess: annotate local function

2019-08-19 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 12:38:34PM +0200, Jiri Slaby wrote: > copy_user_handle_tail is a self-standing local function, annotate it as > such using SYM_FUNC_START_LOCAL. > > Signed-off-by: Jiri Slaby > Cc: "H. Peter Anvin" > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc: Ingo Molnar > Cc: x..

Re: [PATCH RESEND v4 8/9] KVM: MMU: Enable Lazy mode SPPT setup

2019-08-19 Thread Paolo Bonzini
On 14/08/19 09:04, Yang Weijiang wrote: > + > + if (vcpu->kvm->arch.spp_active && level == PT_PAGE_TABLE_LEVEL) > + kvm_enable_spp_protection(vcpu->kvm, gfn); > + This would not enable SPP if the guest is backed by huge pages. Instead, either the PT_PAGE_TABLE_LEVEL level must be f

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 02:38:38PM +0200, Frederic Weisbecker wrote: > On Thu, Aug 15, 2019 at 10:53:09PM -0400, Joel Fernandes (Google) wrote: > > This commit fixes the issue. > > > > Signed-off-by: Joel Fernandes (Google) > > --- > > kernel/rcu/tree.c | 29 + > > 1

Re: [PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-19 Thread h...@infradead.org
On Thu, Aug 15, 2019 at 08:37:04PM +, Atish Patra wrote: > We get ton of them. Here is the stack dump. Looks like we might not need to flush anything at all here as the mm_struct was never scheduled to run on any cpu?

Re: [PATCHv6 23/36] x86/vdso: Allocate timens vdso

2019-08-19 Thread Thomas Gleixner
Dmitry, On Mon, 19 Aug 2019, Dmitry Safonov wrote: > On 8/18/19 5:21 PM, Thomas Gleixner wrote: > > That means your timens_to_host() and host_to_timens() conversion functions > > should just use that special VDSO page and do the same array based > > unconditional add/sub of the clock specific offs

Re: kernel BUG at include/linux/skbuff.h:LINE! (2)

2019-08-19 Thread Xin Long
On Sun, Aug 18, 2019 at 10:13 PM Dmitry Vyukov wrote: > > On Sun, Aug 18, 2019 at 7:07 AM Xin Long wrote: > > > > On Sat, Aug 17, 2019 at 2:38 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:459c5fb4 Merge branch 'mscc-PTP-supp

[PATCH] Tools: hv: kvp: eliminate 'may be used uninitialized' warning

2019-08-19 Thread Vitaly Kuznetsov
When building hv_kvp_daemon GCC-8.3 complains: hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’: hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized] struct hv_kvp_ipaddr_value *ip_buffer; this seems to be a false positive: we

Re: [PATCH v2] arm: dts: rockchip: fix vcc_host_5v regulator for usb3 host

2019-08-19 Thread Heiko Stuebner
Hi Kever, Am Montag, 19. August 2019, 02:29:31 CEST schrieb Kever Yang: > Hi Heiko, > > On 2019/8/16 下午8:24, Heiko Stuebner wrote: > > Hi Kever, TL, > > > > [added TL Lim for clarification] > > > > Am Donnerstag, 15. August 2019, 10:12:52 CEST schrieb Kever Yang: > >> According to rock64 schemeti

Re: [PATCH v8 07/28] x86/boot/compressed: annotate local functions

2019-08-19 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 12:38:33PM +0200, Jiri Slaby wrote: > relocated, paging_enabled, and no_longmode are self-standing local > functions, annotate them as such. paging_enabled is annotated as > NOALIGN, since the trampoline code has to be compact. > > Signed-off-by: Jiri Slaby > Cc: "H. Peter

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Will Deacon
On Mon, Aug 19, 2019 at 03:35:16PM +0100, Robin Murphy wrote: > On 19/08/2019 15:22, Will Deacon wrote: > > On Mon, Aug 19, 2019 at 04:05:22PM +0200, Andrey Konovalov wrote: > > > On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: > > > > > > > > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rut

Re: [PATCH RESEND v4 7/9] KVM: VMX: Handle SPP induced vmexit and page fault

2019-08-19 Thread Paolo Bonzini
On 14/08/19 09:04, Yang Weijiang wrote: > + /* > + * Record write protect fault caused by > + * Sub-page Protection, let VMI decide > + * the next step. > + */ > + if (spte &

Re: [PATCH 2/6] staging: erofs: cannot set EROFS_V_Z_INITED_BIT if fill_inode_lazy fails

2019-08-19 Thread Chao Yu
On 2019-8-19 18:34, Gao Xiang wrote: > As reported by erofs-utils fuzzer, unsupported compressed > clustersize will make fill_inode_lazy fail, for such case > we cannot set EROFS_V_Z_INITED_BIT since we need return > failure for each z_erofs_map_blocks_iter(). > > Fixes: 152a333a5895 ("staging: er

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 10:22:08AM -0400, Joel Fernandes wrote: > On Mon, Aug 19, 2019 at 02:59:08PM +0200, Frederic Weisbecker wrote: > > On Fri, Aug 16, 2019 at 09:52:42AM -0700, Paul E. McKenney wrote: > > > On Fri, Aug 16, 2019 at 12:24:04PM -0400, Joel Fernandes wrote: > > > > On Thu, Aug 15,

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 02:59:08PM +0200, Frederic Weisbecker wrote: > On Fri, Aug 16, 2019 at 09:52:42AM -0700, Paul E. McKenney wrote: > > On Fri, Aug 16, 2019 at 12:24:04PM -0400, Joel Fernandes wrote: > > > On Thu, Aug 15, 2019 at 10:53:11PM -0400, Joel Fernandes (Google) wrote: > > > > I reall

Re: [PATCH] tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file

2019-08-19 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 05, 2019 at 01:01:50PM -0400, Steven Rostedt escreveu: > [ > Not sure why I wasn't Cc'd on the original patch (or the one before that) > but I guess I need to add tools/lib/traceevent under MAINTAINERs for > perhaps tracing? > ] > > From: "Steven Rostedt (VMware)" > > The tools

Re: [PATCH v7 02/11] media: uapi: h264: Rename pixel format

2019-08-19 Thread Ezequiel Garcia
On Mon, 2019-08-19 at 14:41 +0200, Paul Kocialkowski wrote: > Hi, > > On Fri 16 Aug 19, 13:01, Ezequiel Garcia wrote: > > The V4L2_PIX_FMT_H264_SLICE_RAW name was originally suggested > > because the pixel format would represent H264 slices without any > > start code. > > > > However, as we will

Re: [PATCH 3/3] powerpc: use __builtin_trap() in BUG/WARN macros.

2019-08-19 Thread Segher Boessenkool
On Mon, Aug 19, 2019 at 04:08:43PM +0200, Christophe Leroy wrote: > Le 19/08/2019 à 15:23, Segher Boessenkool a écrit : > >On Mon, Aug 19, 2019 at 01:06:31PM +, Christophe Leroy wrote: > >>Note that we keep using an assembly text using "twi 31, 0, 0" for > >>inconditional traps because GCC drop

Re: [PATCH 1/2] perf cs-etm: Support sample flags 'insn' and 'insnlen'

2019-08-19 Thread Mathieu Poirier
On Mon, 19 Aug 2019 at 08:23, Arnaldo Carvalho de Melo wrote: > > Em Thu, Aug 15, 2019 at 04:28:54PM +0800, Leo Yan escreveu: > > The synthetic branch and instruction samples are missed to set > > instruction related info, thus perf tool fails to display samples with > > flags '-F,+insn,+insnlen'.

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Robin Murphy
On 19/08/2019 15:22, Will Deacon wrote: On Mon, Aug 19, 2019 at 04:05:22PM +0200, Andrey Konovalov wrote: On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: On Mon, Aug

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 05:57:57AM -0700, Paul E. McKenney wrote: > On Sun, Aug 18, 2019 at 07:29:27PM -0700, Paul E. McKenney wrote: > > On Sun, Aug 18, 2019 at 09:46:23PM -0400, Joel Fernandes wrote: > > > On Sun, Aug 18, 2019 at 09:41:43PM -0400, Joel Fernandes wrote: > > > > On Sun, Aug 18, 201

Re: [PATCH 2/3] libnvdimm/security: Tighten scope of nvdimm->busy vs security operations

2019-08-19 Thread Jeff Moyer
Dan Williams writes: > On Fri, Aug 16, 2019 at 1:49 PM Jeff Moyer wrote: >> >> Dan Williams writes: >> >> > The blanket blocking of all security operations while the DIMM is in >> > active use in a region is too restrictive. The only security operations >> > that need to be aware of the ->busy

Re: [RFC] perf_sample_id::idx

2019-08-19 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 12, 2019 at 12:09:35PM +0300, Adrian Hunter escreveu: > On 9/08/19 7:04 PM, Arnaldo Carvalho de Melo wrote: > > Em Fri, Aug 09, 2019 at 03:20:14PM +, Hunter, Adrian escreveu: > > > >> It will be used for AUX area sampling. A sample will have AUX area > >> data that will be queued

Re: [PATCH v2 01/12] irqchip/gic: Rework gic_configure_irq to take the full ICFGR base

2019-08-19 Thread Zenghui Yu
Hi Marc, On 2019/8/6 18:01, Marc Zyngier wrote: gic_configure_irq is currently passed the (re)distributor address, to which it applies an a fixed offset to get to the configuration registers. This offset is constant across all GICs, or rather it was until to v3.1... An easy way out is for the i

Re: [PATCH v10 6/7] powerpc/mce: Handle UE event for memcpy_mcsafe

2019-08-19 Thread Nicholas Piggin
Santosh Sivaraj's on August 15, 2019 10:39 am: > From: Balbir Singh > > If we take a UE on one of the instructions with a fixup entry, set nip > to continue execution at the fixup entry. Stop processing the event > further or print it. The previous patch added these fixup entries and now you han

Re: [PATCH v2 04/12] irqchip/gic-v3: Add ESPI range support

2019-08-19 Thread Zenghui Yu
Hi Marc, On 2019/8/6 18:01, Marc Zyngier wrote: Add the required support for the ESPI range, which behave exactly like the SPIs of old, only with new funky INTIDs. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 85 -- include/linux/irqchip/a

Re: [PATCH 04/15] drivers: thermal: tsens: Add debugfs support

2019-08-19 Thread Stephen Boyd
Quoting Amit Kucheria (2019-08-19 00:58:23) > On Sat, Aug 17, 2019 at 9:37 AM Stephen Boyd wrote: > > > + > > > +static void tsens_debug_init(struct platform_device *pdev) > > > +{ > > > + struct tsens_priv *priv = platform_get_drvdata(pdev); > > > + struct dentry *root, *file; > > > +

[PATCH] udf: augment owner permissions on new inodes

2019-08-19 Thread Steven J. Magnani
Windows presents files created within Linux as read-only, even when permissions in Linux indicate the file should be writable. UDF defines a slightly different set of basic file permissions than Linux. Specifically, UDF has "delete" and "change attribute" permissions for each access class (user/g

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-19 Thread Arul Jeniston
hi Tglx, ... > > > Is the timer expiry and the timerfd_read() on the same CPU or on different > > > ones? > > We have 1+ units running in production. We see this problem ~20 switches in a span of one year time. The problem is not seen more than once in the same unit. The occurrence is random

Re: [PATCH v3 3/3] powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()

2019-08-19 Thread Segher Boessenkool
On Mon, Aug 19, 2019 at 01:58:12PM +, Christophe Leroy wrote: > -#define LOAD_REG_IMMEDIATE_SYM(reg,expr) \ > - lis reg,(expr)@highest; \ > - ori reg,reg,(expr)@higher; \ > - rldicr reg,reg,32,31; \ > - orisreg,reg,(expr)@__AS_ATHIGH; \

Re: [PATCH 1/2] perf cs-etm: Support sample flags 'insn' and 'insnlen'

2019-08-19 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2019 at 04:28:54PM +0800, Leo Yan escreveu: > The synthetic branch and instruction samples are missed to set > instruction related info, thus perf tool fails to display samples with > flags '-F,+insn,+insnlen'. > > CoreSight trace decoder has provided sufficient information to deci

Re: [PATCH v10 2/7] powerpc/mce: Fix MCE handling for huge pages

2019-08-19 Thread Nicholas Piggin
Santosh Sivaraj's on August 15, 2019 10:39 am: > From: Balbir Singh > > The current code would fail on huge pages addresses, since the shift would > be incorrect. Use the correct page shift value returned by > __find_linux_pte() to get the correct physical address. The code is more > generic and

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Will Deacon
On Mon, Aug 19, 2019 at 04:05:22PM +0200, Andrey Konovalov wrote: > On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: > > > > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: > > > On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: > > > > On Mon, Aug 19, 2019 at 07:44:20PM

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-19 Thread Joel Fernandes
On Mon, Aug 19, 2019 at 02:59:08PM +0200, Frederic Weisbecker wrote: > On Fri, Aug 16, 2019 at 09:52:42AM -0700, Paul E. McKenney wrote: > > On Fri, Aug 16, 2019 at 12:24:04PM -0400, Joel Fernandes wrote: > > > On Thu, Aug 15, 2019 at 10:53:11PM -0400, Joel Fernandes (Google) wrote: > > > > I reall

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Walter Wu
On Mon, 2019-08-19 at 17:06 +0300, Andrey Ryabinin wrote: > > On 8/19/19 4:34 PM, Will Deacon wrote: > > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: > >> On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: > >>> On Mon, Aug 19, 2019 at 07:44:20PM +0800, Walter Wu wrote:

Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 02:15:36PM +, Bernard Metzler wrote: > > >To: "Bernard Metzler" > >From: "Jason Gunthorpe" > >Date: 08/19/2019 03:52PM > >Cc: "Geert Uytterhoeven" , "Doug Ledford" > >, linux-r...@vger.kernel.org, > >linux-kernel@vger.kernel.org > >Subject: [EXTERNAL] Re: Re: [PATCH]

Re: [PATCH v3 1/3] powerpc: rewrite LOAD_REG_IMMEDIATE() as an intelligent macro

2019-08-19 Thread Segher Boessenkool
Hi Christophe, On Mon, Aug 19, 2019 at 01:58:10PM +, Christophe Leroy wrote: > +.macro __LOAD_REG_IMMEDIATE r, x > + .if (\x) >= 0x8000 || (\x) < -0x8000 > + __LOAD_REG_IMMEDIATE_32 \r, (\x) >> 32 > + sldi\r, \r, 32 > + .if (\x) & 0x

[tip:x86/urgent] x86/boot/compressed/64: Fix boot on machines with broken E820 table

2019-08-19 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 0a46fff2f9108c2c44218380a43a736cf4612541 Gitweb: https://git.kernel.org/tip/0a46fff2f9108c2c44218380a43a736cf4612541 Author: Kirill A. Shutemov AuthorDate: Tue, 13 Aug 2019 16:16:54 +0300 Committer: Borislav Petkov CommitDate: Mon, 19 Aug 2019 15:59:13 +0200 x86/boot/compres

Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 08/19/2019 03:52PM >Cc: "Geert Uytterhoeven" , "Doug Ledford" >, linux-r...@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: [PATCH] RDMA/siw: Fix compiler warnings >on 32-bit d

Re: [PATCHv6 23/36] x86/vdso: Allocate timens vdso

2019-08-19 Thread Dmitry Safonov
Hi Thomas, On 8/18/19 5:21 PM, Thomas Gleixner wrote: [..] > I'm happy to review well written stuff which makes progress and takes > review comments into account or the submitter discusses them for > resolution. Thanks again for both your and Andy time! [..] > Coming back to Andy's idea. Create

Re: [PATCH AUTOSEL 4.4 04/14] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-19 Thread Jiri Olsa
On Mon, Aug 19, 2019 at 02:07:53PM +0200, Jack Wang wrote: > Sasha Levin 于2019年8月6日周二 下午11:39写道: > > > > From: Vince Weaver > > > > [ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] > > > > So I have been having lots of trouble with hand-crafted perf.data files > > causing segfaults an

Re: [PATCH v10 1/7] powerpc/mce: Schedule work from irq_work

2019-08-19 Thread Nicholas Piggin
Santosh Sivaraj's on August 15, 2019 10:39 am: > schedule_work() cannot be called from MCE exception context as MCE can > interrupt even in interrupt disabled context. The powernv code doesn't do this in general, rather defers kernel MCEs. My patch series converts the pseries machine check excepti

Re: [PATCH 3/3] powerpc: use __builtin_trap() in BUG/WARN macros.

2019-08-19 Thread Christophe Leroy
Le 19/08/2019 à 15:23, Segher Boessenkool a écrit : On Mon, Aug 19, 2019 at 01:06:31PM +, Christophe Leroy wrote: Note that we keep using an assembly text using "twi 31, 0, 0" for inconditional traps because GCC drops all code after __builtin_trap() when the condition is always true at bu

[PATCH v2 9/9] arm64: Retrieve stolen time as paravirtualized guest

2019-08-19 Thread Steven Price
Enable paravirtualization features when running under a hypervisor supporting the PV_TIME_ST hypercall. For each (v)CPU, we ask the hypervisor for the location of a shared page which the hypervisor will use to report stolen time to us. We set pv_time_ops to the stolen time function which simply re

Re: [PATCH RESEND v4 5/9] KVM: VMX: Add init/set/get functions for SPP

2019-08-19 Thread Yang Weijiang
On Thu, Aug 15, 2019 at 04:03:31PM +0200, Vitaly Kuznetsov wrote: > Yang Weijiang writes: > > > After looked into the issue and others, I feel to make SPP co-existing > > with nested VM is not good, the major reason is, L1 pages protected by > > SPP are transparent to L1 VM, if it launches L2 VM,

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Andrey Ryabinin
On 8/19/19 4:34 PM, Will Deacon wrote: > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: >> On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: >>> On Mon, Aug 19, 2019 at 07:44:20PM +0800, Walter Wu wrote: __arm_v7s_unmap() call iopte_deref() to translate pyh_to_virt

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Andrey Konovalov
On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: > > On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: > > On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: > > > On Mon, Aug 19, 2019 at 07:44:20PM +0800, Walter Wu wrote: > > > > __arm_v7s_unmap() call iopte_deref() to tra

[PATCH v2 5/9] KVM: Allow kvm_device_ops to be const

2019-08-19 Thread Steven Price
Currently a kvm_device_ops structure cannot be const without triggering compiler warnings. However the structure doesn't need to be written to and, by marking it const, it can be read-only in memory. Add some more const keywords to allow this. Signed-off-by: Steven Price --- include/linux/kvm_ho

Re: [PATCH V6 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Ming Lei wrote: > On Mon, Aug 19, 2019 at 03:13:58PM +0200, Thomas Gleixner wrote: > > On Mon, 19 Aug 2019, Ming Lei wrote: > > > > > Cc: Jon Derrick > > > Cc: Jens Axboe > > > Reported-by: Jon Derrick > > > Reviewed-by: Jon Derrick > > > Reviewed-by: Keith Busch > > > >

[tip:irq/urgent] genirq: Properly pair kobject_del() with kobject_add()

2019-08-19 Thread tip-bot for Michael Kelley
Commit-ID: e1ee29624746fbf667f80e8ae3815a76e4d1bd5b Gitweb: https://git.kernel.org/tip/e1ee29624746fbf667f80e8ae3815a76e4d1bd5b Author: Michael Kelley AuthorDate: Thu, 1 Aug 2019 23:53:53 + Committer: Thomas Gleixner CommitDate: Mon, 19 Aug 2019 15:56:28 +0200 genirq: Properly pair

[PATCH v3 2/3] powerpc/32: replace LOAD_MSR_KERNEL() by LOAD_REG_IMMEDIATE()

2019-08-19 Thread Christophe Leroy
LOAD_MSR_KERNEL() and LOAD_REG_IMMEDIATE() are doing the same thing in the same way. Drop LOAD_MSR_KERNEL() Signed-off-by: Christophe Leroy --- v2: no change v3: no change --- arch/powerpc/kernel/entry_32.S | 18 +- arch/powerpc/kernel/head_32.h | 21 - 2 fi

[PATCH v3 3/3] powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()

2019-08-19 Thread Christophe Leroy
Optimise LOAD_REG_IMMEDIATE_SYM() using a temporary register to parallelise operations. It reduces the path from 5 to 3 instructions. Suggested-by: Segher Boessenkool Signed-off-by: Christophe Leroy --- v3: new --- arch/powerpc/include/asm/ppc_asm.h | 12 ++-- arch/powerpc/kernel/ex

Re: [PATCH] ARM: dts: socfpga: update to new Denali NAND binding

2019-08-19 Thread Dinh Nguyen
On 8/19/19 1:17 AM, Masahiro Yamada wrote: > On Tue, Jun 25, 2019 at 12:39 AM Dinh Nguyen wrote: >> >> >> >> On 6/21/19 6:23 AM, Masahiro Yamada wrote: >>> With commit d8e8fd0ebf8b ("mtd: rawnand: denali: decouple controller >>> and NAND chips"), the Denali NAND controller driver migrated to th

[PATCH v3 1/3] powerpc: rewrite LOAD_REG_IMMEDIATE() as an intelligent macro

2019-08-19 Thread Christophe Leroy
Today LOAD_REG_IMMEDIATE() is a basic #define which loads all parts on a value into a register, including the parts that are NUL. This means always 2 instructions on PPC32 and always 5 instructions on PPC64. And those instructions cannot run in parallele as they are updating the same register. Ex

Re: [PATCH v4 1/2] powerpc/time: Only set CONFIG_ARCH_HAS_SCALED_CPUTIME on PPC64

2019-08-19 Thread Nicholas Piggin
Christophe Leroy's on August 14, 2019 4:31 pm: > Hi Nick, > > > Le 07/06/2018 à 03:43, Nicholas Piggin a écrit : >> On Wed, 6 Jun 2018 14:21:08 + (UTC) >> Christophe Leroy wrote: >> >>> scaled cputime is only meaningfull when the processor has >>> SPURR and/or PURR, which means only on PPC

[PATCH] ACPI/PCI: Remove surplus parentheses from a return statement

2019-08-19 Thread Krzysztof Wilczynski
Remove unnecessary parentheses enclosing the value in a return statement in the drivers/acpi/pci_link.c. Signed-off-by: Krzysztof Wilczynski --- drivers/acpi/pci_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index

Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 01:36:11PM +, Bernard Metzler wrote: > >If the value is really a kernel pointer, then it ought to be printed > >with %p. We have been getting demanding on this point lately in RDMA > >to enforce the ability to keep kernel pointers secret. > > > >> - wqe-

Re: [PATCH V6 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-19 Thread Ming Lei
On Mon, Aug 19, 2019 at 03:13:58PM +0200, Thomas Gleixner wrote: > On Mon, 19 Aug 2019, Ming Lei wrote: > > > Cc: Jon Derrick > > Cc: Jens Axboe > > Reported-by: Jon Derrick > > Reviewed-by: Jon Derrick > > Reviewed-by: Keith Busch > > This version is sufficiently different from the previous

Re: [PATCH] mm/page_alloc: cleanup __alloc_pages_direct_compact()

2019-08-19 Thread Vlastimil Babka
On 8/17/19 12:51 PM, Pengfei Li wrote: > This patch cleans up the if(page). > > No functional change. > > Signed-off-by: Pengfei Li I don't see much benefit here. The indentation wasn't that bad that it had to be reduced using goto. But the patch is not incorrect so I'm not NACKing. > --- > m

Re: New kernel interface for sys_tz and timewarp?

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Thomas Gleixner wrote: > On Mon, 19 Aug 2019, Karel Zak wrote: > > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote: > > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote: > > > > On Mi, 14.08.19 10:31, Arnd Bergmann (a...@arndb.de) wrote: > > > > > > >

[tip:irq/core] genirq: Force interrupt threading on RT

2019-08-19 Thread tip-bot for Thomas Gleixner
Commit-ID: b6a32bbd8735def2d0d696ba59205d1874b7800f Gitweb: https://git.kernel.org/tip/b6a32bbd8735def2d0d696ba59205d1874b7800f Author: Thomas Gleixner AuthorDate: Fri, 16 Aug 2019 18:09:23 +0200 Committer: Thomas Gleixner CommitDate: Mon, 19 Aug 2019 15:45:48 +0200 genirq: Force inter

Re: [PATCH 2/3] Documentation: Describe V4L2_CID_PIXEL_SIZE

2019-08-19 Thread Ricardo Ribalda Delgado
Completely agree. Maybe we should call the control unit cell size?, in case in the future we need a control for the light sensitive area. Best regards On Mon, Aug 19, 2019 at 3:42 PM Philipp Zabel wrote: > > On Mon, 2019-08-19 at 14:17 +0200, Ricardo Ribalda Delgado wrote: > > New control to pas

Re: [PATCH 0/2] Introduce Tanix TX6 box DT

2019-08-19 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 10:53:40PM +0200, Jernej Skrabec wrote: > This series adds support for Tanix TX6 box: > - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 > - GPU Mali-T720 > - 4GiB DDR3 RAM (3GiB useable) > - 100Mbps EMAC via AC200 EPHY > - Cdtech 47822BS Wifi/BT > - 2x USB 2.0 Host and 1x USB

Re: [PATCH v3 4/5] arm64: dts: imx8qxp: Add DSP DT node

2019-08-19 Thread Shawn Guo
On Wed, Aug 07, 2019 at 07:42:57PM +0300, Daniel Baluta wrote: > This includes DSP reserved memory, ADMA DSP device and DSP MU > communication channels description. > > Signed-off-by: Daniel Baluta Applied, thanks.

Re: [PATCH v2 0/4] Read battery voltage from G403 and G900 mice

2019-08-19 Thread Filipe Laíns
On Wed, 2019-06-05 at 15:45 -0400, Pedro Vanzella wrote: > The gaming line of Logitech devices doesn't use the old hidpp20 > feature > for battery level reporting. Instead, they report the current voltage > of the battery, in millivolts. > > This patch set handles this case by adding a quirk to th

Re: New kernel interface for sys_tz and timewarp?

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Karel Zak wrote: > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote: > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote: > > > On Mi, 14.08.19 10:31, Arnd Bergmann (a...@arndb.de) wrote: > > > > > > > - glibc stops passing the caller timezone argument t

Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too.

2019-08-19 Thread Nicholas Piggin
Christophe Leroy's on August 14, 2019 6:11 am: > Until vmalloc system is up and running, ioremap basically > allocates addresses at the border of the IOREMAP area. > > On PPC32, addresses are allocated down from the top of the area > while on PPC64, addresses are allocated up from the base of the

Re: [PATCH 2/3] Documentation: Describe V4L2_CID_PIXEL_SIZE

2019-08-19 Thread Philipp Zabel
On Mon, 2019-08-19 at 14:17 +0200, Ricardo Ribalda Delgado wrote: > New control to pass to userspace the width/height of a pixel. Which is > needed for 3D calibration and lens selection. > > Signed-off-by: Ricardo Ribalda Delgado > --- > Documentation/media/uapi/v4l/ext-ctrls-camera.rst | 6

Re: [PATCH RESEND V2 7/7] arm64: dts: imx8mn: Add cpu-freq support

2019-08-19 Thread Shawn Guo
On Sun, Aug 18, 2019 at 02:32:25AM -0400, Anson Huang wrote: > Add A53 OPP table, cpu regulator and speed grading node to > support cpu-freq driver. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH v2 0/9] Exynos Adaptive Supply Voltage support

2019-08-19 Thread Sylwester Nawrocki
On 8/19/19 13:25, Viresh Kumar wrote: > On 19-08-19, 13:16, Sylwester Nawrocki wrote: >> On 8/19/19 11:09, Viresh Kumar wrote: >>> Will something like this help ? >>> >>> https://lore.kernel.org/lkml/1442623929-4507-3-git-send-email-sb...@codeaurora.org/ >>> >>> This never got merged but the idea w

Re: [PATCH RESEND V2 6/7] clk: imx8mn: Add necessary frequency support for ARM PLL table

2019-08-19 Thread Shawn Guo
On Sun, Aug 18, 2019 at 02:32:24AM -0400, Anson Huang wrote: > i.MX8MN supports CPU running at 1.5GHz/1.4GHz/1.2GHz, add missing > frequency for ARM PLL table. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH RESEND V2 5/7] clk: imx8mn: Add missing rate_count assignment for each PLL structure

2019-08-19 Thread Shawn Guo
On Sun, Aug 18, 2019 at 02:32:23AM -0400, Anson Huang wrote: > Add .rate_count assignment which is necessary for searching required > PLL rate from the each PLL table. > > Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver") The commit ID is not stable before the commit lands on

Re: [PATCH net-next 1/3] net: mdio: add support for passing a PTP system timestamp to the mii_bus driver

2019-08-19 Thread Vladimir Oltean
On Mon, 19 Aug 2019 at 16:34, Vladimir Oltean wrote: > > Hi Andrew, > > On Mon, 19 Aug 2019 at 16:17, Andrew Lunn wrote: > > > > On Fri, Aug 16, 2019 at 06:31:55PM +0200, Hubert Feurstein wrote: > > > In order to improve the synchronisation precision of phc2sys (from > > > the linuxptp project) f

Re: [PATCH RESEND V2 2/7] arm64: dts: imx8mn-ddr4-evk: Add rohm,bd71847 PMIC support

2019-08-19 Thread Shawn Guo
On Sun, Aug 18, 2019 at 02:32:20AM -0400, Anson Huang wrote: > On i.MX8MN DDR4 EVK board, there is a rohm,bd71847 PMIC > on i2c1 bus, enable it. > > Signed-off-by: Anson Huang Applied, thanks.

Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Geert Uytterhoeven" >From: "Jason Gunthorpe" >Date: 08/19/2019 02:25PM >Cc: "Bernard Metzler" , "Doug Ledford" >, linux-r...@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: [PATCH] RDMA/siw: Fix compiler warnings on >32-bit due t

Re: [PATCH RESEND V2 1/7] arm64: dts: imx8mn-ddr4-evk: Add i2c1 support

2019-08-19 Thread Shawn Guo
On Sun, Aug 18, 2019 at 02:32:19AM -0400, Anson Huang wrote: > Enable i2c1 on i.MX8MN DDR4 EVK board. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [patch] mm, page_alloc: move_freepages should not examine struct page of reserved memory

2019-08-19 Thread Mel Gorman
On Wed, Aug 14, 2019 at 03:49:29PM -0700, Andrew Morton wrote: > On Tue, 13 Aug 2019 16:31:35 -0700 (PDT) David Rientjes > wrote: > > > > > Move the debug checks to after verifying PageBuddy is true. This > > > > isolates > > > > the scope of the checks to only be for buddy pages which are on

Re: [PATCH net-next 1/3] net: mdio: add support for passing a PTP system timestamp to the mii_bus driver

2019-08-19 Thread Vladimir Oltean
Hi Andrew, On Mon, 19 Aug 2019 at 16:17, Andrew Lunn wrote: > > On Fri, Aug 16, 2019 at 06:31:55PM +0200, Hubert Feurstein wrote: > > In order to improve the synchronisation precision of phc2sys (from > > the linuxptp project) for devices like switches which are attached > > to the MDIO bus, it i

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Will Deacon
On Mon, Aug 19, 2019 at 02:23:48PM +0100, Mark Rutland wrote: > On Mon, Aug 19, 2019 at 01:56:26PM +0100, Will Deacon wrote: > > On Mon, Aug 19, 2019 at 07:44:20PM +0800, Walter Wu wrote: > > > __arm_v7s_unmap() call iopte_deref() to translate pyh_to_virt address, > > > but it will modify pointer t

Re: [PATCH] tpm/tpm_ftpm_tee: trivial checkpatch fixes

2019-08-19 Thread Jarkko Sakkinen
On Tue, Aug 13, 2019 at 07:37:32AM -0600, Rob Herring wrote: > On Tue, Aug 13, 2019 at 7:06 AM Sasha Levin wrote: > > > > Fixes a few checkpatch warnings (and ignores some), mostly around > > spaces/tabs and documentation. > > > > Signed-off-by: Sasha Levin > > --- > > Documentation/devicetree/b

Re: [PATCH v3 1/2] x86/mm: Identify the end of the kernel area to be reserved

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Mike Lothian wrote: > > I'm using GCC 9.2, binutils 2.32. I used to use the gold linker but > I've just switched back to using ld.bfd based on this discussion > > My .config can be found at: > https://raw.githubusercontent.com/FireBurn/KernelStuff/master/dot_config_tip Does t

Re: [PATCH V3 3/3] KVM/Hyper-V/VMX: Add direct tlb flush support

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, lantianyu1...@gmail.com wrote: > From: Vitaly Kuznetsov > > > This patch is to enable Hyper-V direct tlb flush function > for vmx. Groan. This sentence is not any different from the subject line. Thanks, tglx

[PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-19 Thread Wei Xu
Invoke acpi_gpiochip_request_interrupts after the acpi data has been attached to the pl061 acpi node to register interruption. Otherwise it will be failed to register interruption for the ACPI case. Because in the gpiochip_add_data_with_key, acpi_gpiochip_add is invoked after gpiochip_add_irqchip

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