Re: [PATCH v1 1/2] proc: get process file descriptor from /proc/

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 07:32:33AM -0800, Andy Lutomirski wrote: > On Mon, Nov 19, 2018 at 2:33 AM Christian Brauner > wrote: > > > > With this patch an open() call on /proc/ will give userspace a handle > > to struct pid of the process associated with /proc/. This allows to > > maintain a stable

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 06:10:53PM +0100, Eugene Syromiatnikov wrote: > On Mon, Nov 19, 2018 at 11:32:39AM +0100, Christian Brauner wrote: > > diff --git a/arch/x86/entry/syscalls/syscall_32.tbl > > b/arch/x86/entry/syscalls/syscall_32.tbl > > index 3cf7b533b3d1..e637eab883e9 100644 > > --- a/arch

Re: [PATCH 04/16] arm: dts: Add devicetree for RDA8810PL SoC

2018-11-19 Thread Rob Herring
On Mon, Nov 19, 2018 at 11:11 AM Manivannan Sadhasivam wrote: > > Add initial device tree for RDA8810PL SoC from RDA Microelectronics. > > Signed-off-by: Andreas Färber > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm/boot/dts/rda8810pl.dtsi | 95 > 1 fil

Re: [PATCH] ARM: dts: omap3-gta04: Fix comment block

2018-11-19 Thread Tony Lindgren
* Nathan Chancellor [181017 17:48]: > When compiling the kernel with Clang, the following warning appears: > > arch/arm/boot/dts/omap3-gta04.dtsi:385:56: warning: '/*' within block comment > [-Wcomment] > /* OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT | MUX_MODE0) > /* mcbsp

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Tim Chen
On 11/19/2018 07:00 AM, Thomas Gleixner wrote: > On Fri, 16 Nov 2018, Tim Chen wrote: >> +DEFINE_STATIC_KEY_FALSE(spectre_v2_app_lite); >> +EXPORT_SYMBOL_GPL(spectre_v2_app_lite); > > Why would this be exported? The only usage site outside of this code is in > tlb.c which is hardly modular. That

Re: [PATCH v1 3/5] perf cs-etm: Support for NO_SYNC packet

2018-11-19 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:41PM +0800, Leo Yan wrote: > As described in OpenCSD (CoreSight decoder lib), in the decoding stream > it includes one trace element with type OCSD_GEN_TRC_ELEM_NO_SYNC; the > element indicates 'either at start of decode, or after overflow / bad > packet', we should ta

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 07:59:24AM -0800, Daniel Colascione wrote: > On Mon, Nov 19, 2018 at 2:32 AM, Christian Brauner > wrote: > > The kill() syscall operates on process identifiers. After a process has > > exited its pid can be reused by another process. If a caller sends a signal > > to a reu

Re: [PATCH 08/16] arm: dts: rda8810pl: Add interrupt controller support

2018-11-19 Thread Rob Herring
On Mon, Nov 19, 2018 at 11:11 AM Manivannan Sadhasivam wrote: > > Add interrupt controller support for RDA Micro RDA8810PL SoC. There's no point in splitting this to a separate patch. Without it, the DT is not functional. > Signed-off-by: Andreas Färber > Signed-off-by: Manivannan Sadhasivam >

Re: [Patch v5 12/16] x86/speculation: Create PRCTL interface to restrict indirect branch speculation

2018-11-19 Thread Tim Chen
On 11/17/2018 01:53 AM, Jiri Kosina wrote: > On Fri, 16 Nov 2018, Tim Chen wrote: > > > I think that the fact that this talks about "indirect branch predictions" > in general terms, but really controls only the SMT aspect of it (STIBP), > as quite confusing. > > So I believe it should either b

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Jiri Kosina
On Mon, 19 Nov 2018, Tim Chen wrote: > >> +DEFINE_STATIC_KEY_FALSE(spectre_v2_app_lite); > >> +EXPORT_SYMBOL_GPL(spectre_v2_app_lite); > > > > Why would this be exported? The only usage site outside of this code is in > > tlb.c which is hardly modular. > > That was my initial thought too. Ingo

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Tim Chen
On 11/19/2018 06:00 AM, Jiri Kosina wrote: > On Mon, 19 Nov 2018, Thomas Gleixner wrote: > >>> Yeah. IBPB implementation used to check the dumpability of tasks during >>> rescheduling, but that went away later. >>> >>> I still think that ideally that 'app2app' setting would toggle how IBPB is >>

Re: [PATCH] soc: ti: wkup_m3: Add PRCM int16 as the wake up source

2018-11-19 Thread Tony Lindgren
* Santosh Shilimkar [181113 18:51]: > On 11/11/2018 9:17 PM, Keerthy wrote: > > Add PRCM int16 as the wake up source. > > > > Signed-off-by: Keerthy > > --- > Looks good. > > Tony, Would you able to pick this up ? Sure, aplying into omap-for-v4.21/driver thanks. Tony

Re: [PATCH 6/7] acpi: Create subtable parsing infrastructure

2018-11-19 Thread Keith Busch
On Mon, Nov 19, 2018 at 10:58:12AM +0100, Rafael J. Wysocki wrote: > > +static unsigned long __init > > +acpi_get_entry_length(struct acpi_subtable_entry *entry) > > +{ > > + switch (entry->type) { > > + case ACPI_SUBTABLE_COMMON: > > + return entry->hdr->common.length; >

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 07:45:04AM -0800, Andy Lutomirski wrote: > On Mon, Nov 19, 2018 at 2:33 AM Christian Brauner > wrote: > > > > The kill() syscall operates on process identifiers. After a process has > > exited its pid can be reused by another process. If a caller sends a signal > > to a re

Re: [Letux-kernel] [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-11-19 Thread Andreas Kemnade
Hi, On Mon, 19 Nov 2018 09:22:59 +0100 "H. Nikolaus Schaller" wrote: > Hi, > > > Am 18.11.2018 um 22:57 schrieb Andreas Kemnade : > > > > Here is another chapter of the story to get gta04 gnss power > > management into the mainline kernel. > > There is a w2sg0004 without wakeup line in there,

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-19 Thread Florian Fainelli
On 11/15/18 5:16 PM, Guenter Roeck wrote: > On Thu, Nov 15, 2018 at 11:48:20AM -0800, Florian Fainelli wrote: >> >> OK, would you mind testing this below? It seems to me that 8250_of.c is >> incompatible with arch/powerpc/kernel/legacy_serial.c and that is what >> is causing the issue here. >> >> d

[PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread Borislav Petkov
From: Borislav Petkov Currently, the kernel uses [LM]FENCE; RDTSC in the timekeeping code, to guarantee monotonicity of time where the *FENCE is selected based on vendor. Replace that sequence with RDTSCP which is faster or on-par and gives the same guarantees. A microbenchmark on Intel sho

Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1

2018-11-19 Thread Aaro Koskinen
Hi, On Mon, Nov 19, 2018 at 12:40:40PM +0200, Peter Ujfalusi wrote: > When the channel is configured for slave operation the LCH_TYPE needs to be > set to LCh-P. For memcpy channels the LCH_TYPE must be set to LCh-2D. > > Signed-off-by: Peter Ujfalusi I don't have the documentation, but based o

Re: Magic Sysrq key option ... What is the option to record the boot logs to my hard disk before i issue a reboot command ?

2018-11-19 Thread Theodore Y. Ts'o
On Mon, Nov 19, 2018 at 08:51:17PM +0530, AIAMUZZ wrote: > Hi, > > I have this nagging and frustrating boot freeze i often face on my > Deepin OS boot ... Deepin OS i think uses 'journalctl' to record logs > on its system. > > 'journalctl' however seems to record boot logs ONLY for successful > b

Re: [PATCH V5 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-11-19 Thread Evan Green
On Sun, Nov 11, 2018 at 10:53 PM Veerabhadrarao Badiganti wrote: > > On few SDHCI-MSM controllers, the host controller's clock tuning > circuit may go out of sync if controller clocks are gated which > eventually will result in data CRC, command CRC/timeout errors. > To overcome this h/w limitatio

[PATCH v5] tpm: add support for partial reads

2018-11-19 Thread Tadeusz Struk
Currently to read a response from the TPM device an application needs provide big enough buffer for the whole response and read it in one go. The application doesn't know how big the response it beforehand so it always needs to maintain a 4K buffer and read the max (4K). In case if the user of the

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Eric W. Biederman
Christian Brauner writes: > On Mon, Nov 19, 2018 at 07:59:24AM -0800, Daniel Colascione wrote: >> You never addressed my comment on the previous patch about your use of > > Sorry, that thread exploded so quickly that I might have missed it. > >> private_data here. Why can't you use the struct pid

Re: [Patch v5 08/16] smt: Create cpu_smt_enabled static key for SMT specific code

2018-11-19 Thread Thomas Gleixner
Tim, On Mon, 19 Nov 2018, Tim Chen wrote: > On 11/19/2018 06:57 AM, Peter Zijlstra wrote: > > In particular, the SMT topology bits are set before we enable > > interrrupts and similarly, are cleared after we disable interrupts for > > the last time and die. > > > Peter & Thomas, > > Any objecti

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread Lendacky, Thomas
On 11/19/2018 12:45 PM, Borislav Petkov wrote: > From: Borislav Petkov > > Currently, the kernel uses > > [LM]FENCE; RDTSC > > in the timekeeping code, to guarantee monotonicity of time where the > *FENCE is selected based on vendor. > > Replace that sequence with RDTSCP which is faster or o

Re: [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-11-19 Thread H. Nikolaus Schaller
Hi, > Am 19.11.2018 um 19:44 schrieb Andreas Kemnade : > > Hi, > > On Mon, 19 Nov 2018 09:22:59 +0100 > "H. Nikolaus Schaller" wrote: > >> Hi, >> >>> Am 18.11.2018 um 22:57 schrieb Andreas Kemnade : >>> >>> Here is another chapter of the story to get gta04 gnss power >>> management into the

Re: [PATCH v2 0/6] RFC: gup+dma: tracking dma-pinned pages

2018-11-19 Thread Tom Talpey
John, thanks for the discussion at LPC. One of the concerns we raised however was the performance test. The numbers below are rather obviously tainted. I think we need to get a better baseline before concluding anything... Here's my main concern: On 11/10/2018 3:50 AM, john.hubb...@gmail.com wro

RE: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-19 Thread Denis CIOCCA
Hi Jian, Not clear to me why should be + instead of *. ODR is expressed in Hz, so (1/Hz) = period in seconds (1 sample sampling time) [s] 1000 * (1/Hz) = period in milliseconds (1 sample sampling time) [ms] n * 1000 * (1/Hz) = n times period in milliseconds (n times sample sampling time) [ms]

Re: [PATCH] MIPS: Use device_type helpers to access the node type

2018-11-19 Thread Paul Burton
Hello, Rob Herring wrote: > Remove directly accessing device_node.type pointer and use the accessors > instead. This will eventually allow removing the type pointer. > > Cc: Ralf Baechle > Cc: Paul Burton > Cc: James Hogan > Cc: linux-m...@linux-mips.org > Signed-off-by: Rob Herring Applied

Re: [PATCH v3 0/3] MIPS: SiByte: Handle PCI DMA with 64-bit memory addressing

2018-11-19 Thread Paul Burton
Hello, Maciej W. Rozycki wrote: > Hi, > > This mini patch series enables correct support for DMA in the presence of > memory outside the 32-bit address range with the Broadcom SiByte SOCs and > the relevant development boards. > > There is a quirk in the BCM1250, BCM1125 and BCM1125H SOCs in tha

RE,

2018-11-19 Thread Miss Juliet Muhammad
Hello, I need your help to invest in your region.

Re: DVB-S PCI card regression on 4.19 / 4.20

2018-11-19 Thread Malcolm Priestley
Hi On 19/11/2018 17:53, Mauro Carvalho Chehab wrote: > Hi Takashi, > > Em Mon, 19 Nov 2018 16:13:29 +0100 > Takashi Iwai escreveu: > >> Hi, >> >> we've got a regression report on openSUSE Bugzilla regarding DVB-S PCI >> card: >> https://bugzilla.opensuse.org/show_bug.cgi?id=1116374 >> >> Acc

Re: [PATCH] pinctrl: mediatek: Convert to using %pOFn instead of device_node.name

2018-11-19 Thread Rob Herring
On Fri, Nov 16, 2018 at 5:46 PM Sean Wang wrote: > > On Fri, Nov 16, 2018 at 2:06 PM Rob Herring wrote: > > > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > > > Cc: Sean Wang > > Cc: Linus Walleij > > Cc:

Re: [PATCH] sched: Do not bug in __sched_setscheduler() when pi is not used

2018-11-19 Thread Florian Fainelli
On 11/19/18 8:35 AM, Steven Rostedt wrote: > On Mon, 19 Nov 2018 17:24:32 +0100 > Greg KH wrote: > >> On Mon, Nov 19, 2018 at 10:46:54AM -0500, Steven Rostedt wrote: >>> On Mon, 19 Nov 2018 16:13:11 +0100 >>> Greg KH wrote: >>> > Can this patch also be applied to the stable trees? The off

Re: [PATCH v5 4/5] arm64: dts: qcom: sdm845: Add UFS nodes for sdm845-mtp

2018-11-19 Thread Stephen Boyd
Quoting Evan Green (2018-10-26 10:35:43) > diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > index eedfaf8922e2..d5fddea71a85 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > @@ -356,6 +356,20

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Christopher Lameter
On Mon, 19 Nov 2018, Jerome Glisse wrote: > > IIRC this is solved in IB by automatically calling > > madvise(MADV_DONTFORK) before creating the MR. > > > > MADV_DONTFORK > > .. This is useful to prevent copy-on-write semantics from changing the > > physical location of a page if the parent wri

Re: [Patch v5 08/16] smt: Create cpu_smt_enabled static key for SMT specific code

2018-11-19 Thread Tim Chen
Thomas, >> >> +#ifdef CONFIG_SCHED_SMT >> + >> +extern struct static_key_false sched_smt_present; >> + >> +static inline bool cpu_smt_present(void) >> +{ >> +if (static_branch_unlikely(&sched_smt_present)) >> +return true; >> +else >> +return false; > > What's w

Re: [PATCH v5 4/5] arm64: dts: qcom: sdm845: Add UFS nodes for sdm845-mtp

2018-11-19 Thread Doug Anderson
Hi, On Mon, Nov 19, 2018 at 11:19 AM Stephen Boyd wrote: > > Quoting Evan Green (2018-10-26 10:35:43) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > > b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts > > index eedfaf8922e2..d5fddea71a85 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.d

Re: [PATCH] pinctrl: mediatek: Convert to using %pOFn instead of device_node.name

2018-11-19 Thread Sean Wang
On Mon, Nov 19, 2018 at 11:07 AM Rob Herring wrote: > > On Fri, Nov 16, 2018 at 5:46 PM Sean Wang wrote: > > > > On Fri, Nov 16, 2018 at 2:06 PM Rob Herring wrote: > > > > > > In preparation to remove the node name pointer from struct device_node, > > > convert printf users to use the %pOFn form

Re: [PATCH] sched: Do not bug in __sched_setscheduler() when pi is not used

2018-11-19 Thread Steven Rostedt
On Mon, 19 Nov 2018 11:09:50 -0800 Florian Fainelli wrote: > > I did the change against v4.2.8 below. > > Thanks Steven! Here is the local 4.9 backport: Yours even updates the comment. Reviewed-by: Steven Rostedt (VMware) -- Steve > > diff --git a/kernel/sched/core.c b/kernel/sched/core

Re: Magic Sysrq key option ... What is the option to record the boot logs to my hard disk before i issue a reboot command ?

2018-11-19 Thread Randy Dunlap
On 11/19/18 10:48 AM, Theodore Y. Ts'o wrote: > On Mon, Nov 19, 2018 at 08:51:17PM +0530, AIAMUZZ wrote: >> Hi, >> >> I have this nagging and frustrating boot freeze i often face on my >> Deepin OS boot ... Deepin OS i think uses 'journalctl' to record logs >> on its system. >> >> 'journalctl' howe

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 01:02:06PM -0600, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Mon, Nov 19, 2018 at 07:59:24AM -0800, Daniel Colascione wrote: > >> You never addressed my comment on the previous patch about your use of > > > > Sorry, that thread exploded so quickly that I

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Andrea Arcangeli
Hello everyone, On Mon, Nov 19, 2018 at 02:49:36PM +0100, Jiri Kosina wrote: > On Mon, 19 Nov 2018, Thomas Gleixner wrote: > > > > On Sat, 17 Nov 2018, Jiri Kosina wrote: > > > > > Subject: [PATCH] x86/speculation: enforce STIBP for SECCOMP tasks in lite > > > mode > > > > > > If 'lite' mode o

Re: [PATCH 04/16] arm: dts: Add devicetree for RDA8810PL SoC

2018-11-19 Thread Arnd Bergmann
On Mon, Nov 19, 2018 at 6:11 PM Manivannan Sadhasivam wrote: > > Add initial device tree for RDA8810PL SoC from RDA Microelectronics. > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + }; Better move the alias

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Jiri Kosina
On Mon, 19 Nov 2018, Andrea Arcangeli wrote: > Generally speaking the untrusted code that would try to use spectrev2 > to attack the other processes is more likely to run inside SECCOMP > jail than outside, so if SECCOMP should be used as a best effort > heuristic to decide when to enable STIBP, i

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Daniel Colascione
Yep. That's also what I was talking about, FWIW. On Mon, Nov 19, 2018 at 11:31 AM, Christian Brauner wrote: > On Mon, Nov 19, 2018 at 01:02:06PM -0600, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > On Mon, Nov 19, 2018 at 07:59:24AM -0800, Daniel Colascione wrote: >> >> You never

Re: [PATCH v5 4/5] arm64: dts: qcom: sdm845: Add UFS nodes for sdm845-mtp

2018-11-19 Thread Stephen Boyd
Quoting Doug Anderson (2018-11-19 11:25:08) > On Mon, Nov 19, 2018 at 11:19 AM Stephen Boyd wrote: > > > > Quoting Evan Green (2018-10-26 10:35:43) > > > > > +}; > > > + > > > +&ufsphy1 { > > > + status = "okay"; > > > + > > > + vdda-phy-supply = <&vdda_ufs1_core>; > > > + vdda-p

[ptrace, rt] erratic behaviour in PTRACE_SINGLESET on 4.13-rt and later.

2018-11-19 Thread Joe Korty
Hi Julia & the RT team, The following program might make a good addition to the rt test suite. It tests the reliability of PTRACE_SINGLESTEP. It does by default 10,000 ssteps against a simple, spinner tracee. Also by default, it spins off ten of these tracer/tracee pairs, all of which are to run

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-19 Thread Jerome Glisse
On Mon, Nov 19, 2018 at 12:27:02PM -0700, Jason Gunthorpe wrote: > On Mon, Nov 19, 2018 at 02:17:21PM -0500, Jerome Glisse wrote: > > On Mon, Nov 19, 2018 at 11:53:33AM -0700, Jason Gunthorpe wrote: > > > On Mon, Nov 19, 2018 at 01:42:16PM -0500, Jerome Glisse wrote: > > > > On Mon, Nov 19, 2018 at

[PATCH] ARM: OMAP1/2: fix SoC name printing

2018-11-19 Thread Aaro Koskinen
Currently we get extra newlines on OMAP1/2 when the SoC name is printed: [0.00] OMAP1510 [0.00] revision 2 handled as 15xx id: bc058c9b93111a16 [0.00] OMAP2420 [0.00] Fix by using pr_cont. Signed-off-by: Aaro Koskinen --- arch/arm/mach-omap1/id.c | 6 +++--- a

[PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx

2018-11-19 Thread Aaro Koskinen
Configure omap1_spi100k only on OMAP7xx. This allows running multiboard kernels on non-OMAP7xx HW with CONFIG_SPI_OMAP_100K enabled. Signed-off-by: Aaro Koskinen --- arch/arm/mach-omap1/devices.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach

Re: [PATCH v8 24/26] drivers: firmware: psci: Deal with CPU hotplug when using OSI mode

2018-11-19 Thread Raju P L S S S N
Hi Ulf, Got one issue in hotplug path where of_genpd_detach_cpu calls dev_pm_qos_remove_notifier which can be sleeping as per below call stack. I think it should be applicable for current patch as well right? Please let me know what am I missing? why didn't you see this issue with this patch?

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread Andy Lutomirski
On Mon, Nov 19, 2018 at 10:46 AM Borislav Petkov wrote: > > From: Borislav Petkov > > Currently, the kernel uses > > [LM]FENCE; RDTSC > > in the timekeeping code, to guarantee monotonicity of time where the > *FENCE is selected based on vendor. > > Replace that sequence with RDTSCP which is fas

[PATCH v2] mfd: qcom_rpm: write fw_version to CTRL_REG

2018-11-19 Thread Jonathan Marek
This is required as part of the initialization sequence on certain SoCs. If these registers are not initialized, the hardware can be unresponsive. This fixes the driver on apq8060 (HP TouchPad device). Signed-off-by: Jonathan Marek --- v2: updated the commit message to be more descriptive I thi

Re: [PATCH v2 1/2] firmware: add nowarn variant of request_firmware_nowait()

2018-11-19 Thread Luis Chamberlain
On Mon, Nov 12, 2018 at 05:01:42PM +0100, Lucas Stach wrote: > Device drivers with optional firmware may still want to use the > asynchronous firmware loading interface. To avoid printing a > warining into the kernel log when the optional firmware is > absent, add a nowarn variant of this interface

Re: [PATCH] RISC-V: Build flat and compressed kernel images

2018-11-19 Thread Palmer Dabbelt
On Fri, 16 Nov 2018 19:32:04 PST (-0800), a...@brainfault.org wrote: On Sat, Nov 17, 2018 at 2:43 AM Palmer Dabbelt wrote: On Sun, 11 Nov 2018 21:55:15 PST (-0800), a...@brainfault.org wrote: > This patch extends Linux RISC-V build system to build and install: > Image - Flat uncompressed kerne

Re: [PATCH v5 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-11-19 Thread Martin Blumenstingl
Hello Hanjie, Hello Yue, sorry for being late with my comment On Tue, Oct 9, 2018 at 3:53 AM Hanjie Lin wrote: > > From: Yue Wang > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > PCI core. This patch adds documentation for the DT bindings in Meson PCIe > controll

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread H. Peter Anvin
On 11/19/18 11:52 AM, Andy Lutomirski wrote: > > I thought I benchmarked this on Intel at some point and found the > LFENCE;RDTSC variant to be slightly faster. But I believe you, so: > > Acked-by: Andy Lutomirski > As long as the difference isn't significant, the simplicity would seem to be

Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-19 Thread Aleksa Sarai
On 2018-11-19, Daniel Colascione wrote: > > I wonder how fast it would be holding a pid with another open()ed fd. > > And then you need to read comm (or how you filter whom to kill). > > It seems to me that procfs will be even slower with this safe-way. > > But I might misunderstand the idea, excu

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Thomas Gleixner
On Fri, 16 Nov 2018, Tim Chen wrote: > +static enum spectre_v2_app2app_mitigation_cmd __init > + spectre_v2_parse_app2app_cmdline(enum spectre_v2_mitigation_cmd > v2_cmd) > +{ > + enum spectre_v2_app2app_mitigation_cmd cmd; > + char arg[20]; > + int ret, i; > + > + if (v2_c

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Aleksa Sarai
On 2018-11-19, Christian Brauner wrote: > + if (info) { > + ret = __copy_siginfo_from_user(sig, &kinfo, info); > + if (unlikely(ret)) > + goto err; > + /* > + * Not even root can pretend to send signals from the kernel. > +

Re: Memory hotplug softlock issue

2018-11-19 Thread Hugh Dickins
On Mon, 19 Nov 2018, Michal Hocko wrote: > On Mon 19-11-18 15:10:16, Michal Hocko wrote: > [...] > > In other words. Why cannot we do the following? > > Baoquan, this is certainly not the right fix but I would be really > curious whether it makes the problem go away. > > > diff --git a/mm/migrate

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread Borislav Petkov
On Mon, Nov 19, 2018 at 12:17:35PM -0800, H. Peter Anvin wrote: > On 11/19/18 11:52 AM, Andy Lutomirski wrote: > > > > I thought I benchmarked this on Intel at some point and found the > > LFENCE;RDTSC variant to be slightly faster. But I believe you, so: > > > > Acked-by: Andy Lutomirski > >

Re: [PATCH v3 0/4] Add QCOM graphics clock controller driver for SDM845

2018-11-19 Thread Jordan Crouse
On Mon, Aug 13, 2018 at 12:03:03PM +0530, Amit Nischal wrote: > Changes in v3: > * Modified the determine_rate() op to use the min/max rate range > to round the requested rate within the set_rate range. With this, > requested set rate will always stay within the limits. > > Changes in v2: > Ad

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Thomas Gleixner
On Fri, 16 Nov 2018, Tim Chen wrote: > +static const struct { > + const char *option; > + enum spectre_v2_app2app_mitigation_cmd cmd; > + bool secure; > +} app2app_options[] = { > + { "off",SPECTRE_V2_APP2APP_CMD_NONE, false }, > + { "lite", SPECTRE_V2_APP2APP_CM

Re: [PATCH v1 5/5] perf cs-etm: Track exception number

2018-11-19 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:43PM +0800, Leo Yan wrote: > When an exception packet comes, it contains the info for exception > number; the exception number indicates the exception types, so from it > we can know if the exception is taken for interrupt, system call or > other traps, etc. But becau

Re: [PATCH] x86/TSC: Use RDTSCP

2018-11-19 Thread hpa
On November 19, 2018 12:40:25 PM PST, Borislav Petkov wrote: >On Mon, Nov 19, 2018 at 12:17:35PM -0800, H. Peter Anvin wrote: >> On 11/19/18 11:52 AM, Andy Lutomirski wrote: >> > >> > I thought I benchmarked this on Intel at some point and found the >> > LFENCE;RDTSC variant to be slightly faster

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-19 Thread Guenter Roeck
On Mon, Nov 19, 2018 at 10:44:30AM -0800, Florian Fainelli wrote: > On 11/15/18 5:16 PM, Guenter Roeck wrote: > > On Thu, Nov 15, 2018 at 11:48:20AM -0800, Florian Fainelli wrote: > >> > >> OK, would you mind testing this below? It seems to me that 8250_of.c is > >> incompatible with arch/powerpc/k

Re: [Patch v5 08/16] smt: Create cpu_smt_enabled static key for SMT specific code

2018-11-19 Thread Tim Chen
On 11/19/2018 04:58 AM, Thomas Gleixner wrote: >> +DECLARE_STATIC_KEY_TRUE(cpu_smt_enabled); > > And here it is declared unconditionally which allows code to use it despite > CONFIG_HOTPLUG_SMT=n and subsequently breaks the build. Will put this under #ifdef CONFIG_HOTPLUG_SMT Tim

Re: [PATCH v3 4/4] clk: qcom: Add graphics clock controller driver for SDM845

2018-11-19 Thread Jordan Crouse
On Mon, Aug 13, 2018 at 12:03:07PM +0530, Amit Nischal wrote: > Add support for the graphics clock controller found on SDM845 > based devices. This would allow graphics drivers to probe and > control their clocks. > > Signed-off-by: Amit Nischal > --- > drivers/clk/qcom/Kconfig| 9 + >

Re: [PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources

2018-11-19 Thread Sekhar Nori
On 13/11/18 7:20 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous > IRQ numbering") the davinci GPIO driver fails to probe if we boot > in legacy mode from any of the board files. Since the driver now > expects ever

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > On 2018-11-19, Christian Brauner wrote: > > + if (info) { > > + ret = __copy_siginfo_from_user(sig, &kinfo, info); > > + if (unlikely(ret)) > > + goto err; > > + /* > > +*

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Jiri Kosina
On Mon, 19 Nov 2018, Thomas Gleixner wrote: > > @@ -452,12 +542,6 @@ static void __init spectre_v2_select_mitigation(void) > > setup_force_cpu_cap(X86_FEATURE_RSB_CTXSW); > > pr_info("Spectre v2 / SpectreRSB mitigation: Filling RSB on context > > switch\n"); > > > > - /* Initialize In

Re: Memory hotplug softlock issue

2018-11-19 Thread Michal Hocko
On Mon 19-11-18 12:34:09, Hugh Dickins wrote: > On Mon, 19 Nov 2018, Michal Hocko wrote: > > On Mon 19-11-18 15:10:16, Michal Hocko wrote: > > [...] > > > In other words. Why cannot we do the following? > > > > Baoquan, this is certainly not the right fix but I would be really > > curious whether

Re: [PATCH 3/3] ARM: davinci: fix da850-evm boot in legacy mode

2018-11-19 Thread Sekhar Nori
Hi Bartosz, On 13/11/18 7:20 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and > automatic base selection") broke the network support in legacy boot > mode for da850-evm since we can no longer request the MDIO clock GP

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Thomas Gleixner
On Mon, 19 Nov 2018, Jiri Kosina wrote: > On Mon, 19 Nov 2018, Thomas Gleixner wrote: > > > > @@ -452,12 +542,6 @@ static void __init spectre_v2_select_mitigation(void) > > > setup_force_cpu_cap(X86_FEATURE_RSB_CTXSW); > > > pr_info("Spectre v2 / SpectreRSB mitigation: Filling RSB on context

Re: [PATCH 4/9] PCI: consolidate PCI config entry in drivers/pci

2018-11-19 Thread Paul Burton
Hi Christoph, On Thu, Nov 15, 2018 at 08:05:32PM +0100, Christoph Hellwig wrote: > There is no good reason to duplicate the PCI menu in every architecture. > Instead provide a selectable HAVE_PCI symbol that indicates availability > of PCI support, and a FORCE_PCI symbol to for PCI on and the hand

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 09:55:18PM +0100, Christian Brauner wrote: > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > On 2018-11-19, Christian Brauner wrote: > > > + if (info) { > > > + ret = __copy_siginfo_from_user(sig, &kinfo, info); > > > + if (unlikely(ret)) >

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Aleksa Sarai
On 2018-11-19, Christian Brauner wrote: > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > On 2018-11-19, Christian Brauner wrote: > > > + if (info) { > > > + ret = __copy_siginfo_from_user(sig, &kinfo, info); > > > + if (unlikely(ret)) > > > + got

Re: [PATCH] MIPS: Remove superfluous check for __linux__

2018-11-19 Thread Paul Burton
Hello, Sean Young wrote: > When building BPF code using "clang -target bpf -c", clang does not > define __linux__. > > To build BPF IR decoders the include linux/lirc.h is needed which > includes linux/types.h. Currently this workaround is needed: > > https://git.linuxtv.org/v4l-utils.git/commit

RE: [PATCH v2] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo

2018-11-19 Thread Kazuhito Hagio
On 11/15/2018 4:47 PM, Bhupesh Sharma wrote: > Adding 'page_offset_base' to the vmcoreinfo can be specially useful for > live-debugging of a running kernel via user-space utilities > like makedumpfile (see [1]). I agree. > Recently, I saw an issue with the 'makedumpfile' utility (see [2] for > de

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Tue, Nov 20, 2018 at 08:18:10AM +1100, Aleksa Sarai wrote: > On 2018-11-19, Christian Brauner wrote: > > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > > On 2018-11-19, Christian Brauner wrote: > > > > + if (info) { > > > > + ret = __copy_siginfo_from_use

[PATCH net-next 2/8] net: hns3: Add "queue info" query function

2018-11-19 Thread Salil Mehta
From: liuzhongzhu Query the queue information of the current NIC such as BD size, queue header and tail pointer. This patch adds support for debugfs command: echo queue info 1 > cmd it can print queue config information... root@(none)# echo queue info 1 > cmd hns3 :7d:00.0: queue info hn

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Tue, Nov 20, 2018 at 08:18:10AM +1100, Aleksa Sarai wrote: > On 2018-11-19, Christian Brauner wrote: > > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > > On 2018-11-19, Christian Brauner wrote: > > > > + if (info) { > > > > + ret = __copy_siginfo_from_use

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Aleksa Sarai
On 2018-11-20, Aleksa Sarai wrote: > On 2018-11-19, Christian Brauner wrote: > > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > > On 2018-11-19, Christian Brauner wrote: > > > > + if (info) { > > > > + ret = __copy_siginfo_from_user(sig, &kinfo, info); > >

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Aleksa Sarai
On 2018-11-19, Christian Brauner wrote: > On Tue, Nov 20, 2018 at 08:18:10AM +1100, Aleksa Sarai wrote: > > On 2018-11-19, Christian Brauner wrote: > > > On Tue, Nov 20, 2018 at 07:28:57AM +1100, Aleksa Sarai wrote: > > > > On 2018-11-19, Christian Brauner wrote: > > > > > + if (info) { > >

RE: [PATCH v9 04/17] tpm: print tpm2_commit_space() error inside tpm2_commit_space()

2018-11-19 Thread Winkler, Tomas
> > The error logging for tpm2_commit_space() is in a wrong place. This commit > moves it inside that function. > > Cc: James Bottomley > Signed-off-by: Jarkko Sakkinen > Reviewed-by: Stefan Berger > --- > drivers/char/tpm/tpm-interface.c | 2 -- > drivers/char/tpm/tpm2-space.c| 9

Re: [PATCH v1 0/4] EMC fixes for Tegra30+

2018-11-19 Thread Jon Hunter
On 19/11/2018 17:05, Dmitry Osipenko wrote: > On 19.11.2018 18:42, Jon Hunter wrote: >> >> On 18/11/2018 22:06, Dmitry Osipenko wrote: >>> On 30.08.2018 21:54, Dmitry Osipenko wrote: Hello, This patch series fixes couple bugs in the memory self-refresh code. The EMC / MC state

[PATCH v6 1/2] mailbox: ZynqMP IPI mailbox controller

2018-11-19 Thread Wendy Liang
This patch is to introduce ZynqMP IPI mailbox controller driver to use the ZynqMP IPI block as mailboxes. Signed-off-by: Wendy Liang --- drivers/mailbox/Kconfig| 9 + drivers/mailbox/Makefile | 2 + drivers/mailbox/zynqmp-ipi-mailbox.c | 762 ++

[PATCH v6 2/2] dt-bindings: mailbox: Add Xilinx IPI Mailbox

2018-11-19 Thread Wendy Liang
Xilinx ZynqMP IPI(Inter Processor Interrupt) is a hardware block in ZynqMP SoC used for the communication between various processor systems. Signed-off-by: Wendy Liang --- .../bindings/mailbox/xlnx,zynqmp-ipi-mailbox.txt | 127 + 1 file changed, 127 insertions(+) create mo

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Daniel Colascione
On Mon, Nov 19, 2018 at 1:21 PM, Christian Brauner wrote: > That can be done without a loop by comparing the level counter for the > two pid namespaces. > >> >> And you can rewrite pidns_get_parent to use it. So you would instead be >> doing: >> >> if (pidns_is_descendant(proc_pid_ns, task_act

[PATCH v6 0/2] Xilinx ZynqMP IPI Mailbox Controller Driver

2018-11-19 Thread Wendy Liang
Introduce mailbox controller driver for ZynqMP IPI(Inter-processor interrupt) IP core. As the device tree bindings have been updated. Do not have "Reviewed-by" nor "Acked-by" in the dt-bindings commit. v6: - dts-binding, remove compatible property from IPI subnode v5: - fix check patch warning

Re: [PATCH v1 1/4] ARM: tegra: Fix missed EMC registers latching on resume from LP1 on Tegra30+

2018-11-19 Thread Jon Hunter
On 30/08/2018 19:54, Dmitry Osipenko wrote: > The memory interface configuration and re-calibration interval are left > unassigned on resume from LP1 because these registers are shadowed and > require latching after being adjusted. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/mach-tegra

RE: [PATCH v9 05/17] tpm: declare struct tpm_header

2018-11-19 Thread Winkler, Tomas
> > Decleare struct tpm_header that replaces struct tpm_input_header and Typo > struct tpm_output_header. > > Signed-off-by: Jarkko Sakkinen > Reviewed-by: Stefan Berger > --- > drivers/char/tpm/tpm-interface.c | 9 - > drivers/char/tpm/tpm.h| 27 --

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Dave Hansen
On 11/19/18 11:32 AM, Andrea Arcangeli wrote: > The specs don't say if by making it immune from BTB mistraining, it > also could prevent to mistrain the BTB in order to attack what's > outside the SECCOMP jail. Probably it won't and I doubt we can rely on > it even if some implementation could do t

Re: [PATCH v1 2/4] ARM: tegra: Fix DRAM refresh-interval clobbering on resume from LP1 on Tegra30

2018-11-19 Thread Jon Hunter
On 30/08/2018 19:54, Dmitry Osipenko wrote: > The DRAM refresh-interval is getting erroneously set to "1" on exiting > from memory self-refreshing mode. The clobbered interval causes the > "refresh request overflow timeout" error raised by the External Memory > Controller on exiting from LP1 on T

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Aleksa Sarai
On 2018-11-19, Daniel Colascione wrote: > On Mon, Nov 19, 2018 at 1:21 PM, Christian Brauner > wrote: > > That can be done without a loop by comparing the level counter for the > > two pid namespaces. > > > >> > >> And you can rewrite pidns_get_parent to use it. So you would instead be > >> doin

Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread Christian Brauner
On Mon, Nov 19, 2018 at 01:26:22PM -0800, Daniel Colascione wrote: > On Mon, Nov 19, 2018 at 1:21 PM, Christian Brauner > wrote: > > That can be done without a loop by comparing the level counter for the > > two pid namespaces. > > > >> > >> And you can rewrite pidns_get_parent to use it. So you

KASAN: use-after-free Read in tick_sched_handle (3)

2018-11-19 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:bae4e109837b mlxsw: spectrum: Expose discard counters via .. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=11b5e77b40 kernel config: https://syzkaller.appspot.com/x/.config?x=d86f24333880b605 da

Re: [Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-19 Thread Andrea Arcangeli
On Mon, Nov 19, 2018 at 08:39:41PM +0100, Jiri Kosina wrote: > On Mon, 19 Nov 2018, Andrea Arcangeli wrote: > > > Generally speaking the untrusted code that would try to use spectrev2 > > to attack the other processes is more likely to run inside SECCOMP > > jail than outside, so if SECCOMP should

Re: [PATCH v2 1/2] dt-bindings: hwmon: add binding documentation for adt7475

2018-11-19 Thread Rob Herring
On Sun, Nov 18, 2018 at 4:56 PM Guenter Roeck wrote: > > On 11/17/18 7:29 AM, Rob Herring wrote: > > On Fri, Nov 09, 2018 at 11:56:06AM +1300, Chris Packham wrote: > >> With the addition of the invert-pwm property the adt7475 needs its own > >> binding documentation rather being captured under tri

<    5   6   7   8   9   10   11   12   >