[PATCH v12 2/4] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit

2019-05-14 Thread Angus Ainslie (Purism)
This is for the development kit board for the Librem 5. The current level of support yields a working console and is able to boot userspace from the network or eMMC. Additional subsystems that are active : - Both USB ports - SD card socket - WiFi usdhc - WWAN modem - GNSS - GPIO keys - LEDs - gyr

[PATCH v12 4/4] dt-bindings: arm: fsl: Add the imx8mq boards

2019-05-14 Thread Angus Ainslie (Purism)
Add an entry for imx8mq based boards Signed-off-by: Angus Ainslie (Purism) Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/a

[PATCH v12 0/4] Add support for the Purism Librem5 devkit

2019-05-14 Thread Angus Ainslie (Purism)
The Librem5 devkit is based on the imx8mq from NXP. This is a default devicetree to boot the board to a command prompt. Changes since v11: Added reviewed-by tags. Fixed subject typo. Changes since v10: Moved MAINTAINERS entry to "ARM/FREESCALE IMX" section Changes since v9: Added a MAINTAINER

[PATCH v12 3/4] dt-bindings: Add an entry for Purism SPC

2019-05-14 Thread Angus Ainslie (Purism)
Add an entry for Purism, SPC Signed-off-by: Angus Ainslie (Purism) Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/ve

Re: [PATCH RFC 0/4] mm/ksm: add option to automerge VMAs

2019-05-14 Thread Oleksandr Natalenko
Hi. On Tue, May 14, 2019 at 12:12:16PM +0300, Kirill Tkhai wrote: > > Immediate question: what should be actually done on this? I see 2 > > options: > > > > 1) mark all VMAs as mergeable + set some flag for mmap() to mark all > > further allocations as mergeable as well; > > 2) just mark all the

Re: [PATCH v2] tools/perf/util: null-terminate version char array upon error

2019-05-14 Thread Arnaldo Carvalho de Melo
Em Tue, May 14, 2019 at 07:01:00AM -0400, Donald Yandt escreveu: > If fgets fails due to any other error besides end-of-file, the version char > array may not even be null-terminated. Thanks, but out of curiosity, was this found just by visual inspection? Some static analysis tool? An actual prob

Re: [PATCH] sched: introduce configurable delay before entering idle

2019-05-14 Thread Marcelo Tosatti
On Mon, May 13, 2019 at 05:20:37PM +0800, Wanpeng Li wrote: > On Wed, 8 May 2019 at 02:57, Marcelo Tosatti wrote: > > > > > > Certain workloads perform poorly on KVM compared to baremetal > > due to baremetal's ability to perform mwait on NEED_RESCHED > > bit of task flags (therefore skipping the

[PATCH v6 1/4] dt-bindings: media: add Amlogic Video Decoder Bindings

2019-05-14 Thread Maxime Jourdan
Add documentation for the meson vdec dts node. Reviewed-by: Rob Herring Signed-off-by: Maxime Jourdan --- .../bindings/media/amlogic,vdec.txt | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/amlogic,vdec.txt diff -

[PATCH v6 3/4] media: meson: add v4l2 m2m video decoder driver

2019-05-14 Thread Maxime Jourdan
Amlogic SoCs feature a powerful video decoder unit able to decode many formats, with a performance of usually up to 4k60. This is a driver for this IP that is based around the v4l2 m2m framework. It features decoding for: - MPEG 1 - MPEG 2 Supported SoCs are: GXBB (S905), GXL (S905X/W/D), GXM (S

[PATCH v6 4/4] MAINTAINERS: Add meson video decoder

2019-05-14 Thread Maxime Jourdan
Add an entry for the meson video decoder for amlogic SoCs. Signed-off-by: Maxime Jourdan --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 878588cfb453..87c1e469ed63 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10057,6 +10057,14 @@ S:

[PATCH v6 2/4] media: videodev2: add V4L2_FMT_FLAG_FIXED_RESOLUTION

2019-05-14 Thread Maxime Jourdan
When a v4l2 driver exposes V4L2_EVENT_SOURCE_CHANGE, some (usually OUTPUT) formats may not be able to trigger this event. For instance, MPEG2 on Amlogic hardware does not support resolution switching on the fly, and a decode session must operate at a set resolution defined before the decoding star

[PATCH v6 0/4] Add Amlogic video decoder driver

2019-05-14 Thread Maxime Jourdan
Hi everyone, [V6] Good news, the firmware situation is resolved. We have received a redistributable license from Amlogic and the firmwares have been merged in linux-firmware[5]. [V5] It's been a while since the last patch series regarding the Amlogic video decoder. Unfortunately, the firmware lic

Re: [RFC PATCH] ARM: mach-shmobile: Parse DT to get ARCH timer memory region

2019-05-14 Thread Oleksandr
On 14.05.19 10:16, Geert Uytterhoeven wrote: Hi Oleksandr, Hi Geert On Mon, May 13, 2019 at 6:00 PM Oleksandr wrote: On 13.05.19 18:13, Geert Uytterhoeven wrote: So, if the DT bindings for the counter module is not an option (if I correctly understood a discussion pointed by Geert in a

Re: [PATCH -tip v8 0/6] tracing/probes: uaccess: Add support user-space access

2019-05-14 Thread Arnaldo Carvalho de Melo
Em Tue, May 14, 2019 at 02:02:53PM +0900, Masami Hiramatsu escreveu: > On Mon, 13 May 2019 15:38:24 -0300 Arnaldo Carvalho de Melo > wrote: > > Em Fri, May 10, 2019 at 12:12:49AM +0900, Masami Hiramatsu escreveu: > > > In this version, I fixed some typos/style issues and renamed fields > > > acco

Re: [PATCH v3 4/7] nvme: add basic facility to get telemetry log page

2019-05-14 Thread Akinobu Mita
2019年5月14日(火) 0:34 Chaitanya Kulkarni : > > On 05/12/2019 08:55 AM, Akinobu Mita wrote: > > This adds the required definisions to get telemetry log page. > s/definisions/definitions/ OK. > > diff --git a/include/linux/nvme.h b/include/linux/nvme.h > > index c40720c..8c0b29d 100644 > > --- a/inclu

Re: [PATCH v3 5/7] nvme-pci: add device coredump infrastructure

2019-05-14 Thread Akinobu Mita
2019年5月14日(火) 0:23 Chaitanya Kulkarni : > > On 05/13/2019 12:46 AM, Minwoo Im wrote: > >> +static int nvme_get_telemetry_log_blocks(struct nvme_ctrl *ctrl, void > >> *buf, > >> + size_t bytes, loff_t offset) > >> +{ > >> +loff_t pos = 0; > >> +u32 chunk_

Re: linux-next: manual merge of the thermal-soc tree with Linus' tree

2019-05-14 Thread Eduardo Valentin
Hey Stephen, On Tue, May 14, 2019 at 02:40:06PM +1000, Stephen Rothwell wrote: > Hi Eduardo, > > On Mon, 13 May 2019 20:44:11 -0700 Eduardo Valentin > wrote: > > > > Thanks for spotting this. I am re-doing the branch based off v5.1-rc7, > > where the last conflict went in with my current queue.

Re: [PATCH v3 3/3] thermal: cpu_cooling: Migrate to using the EM framework

2019-05-14 Thread Eduardo Valentin
Hey Quentin, On Tue, May 14, 2019 at 08:15:08AM +0100, Quentin Perret wrote: > Hi Eduardo, > > On Monday 13 May 2019 at 20:40:59 (-0700), Eduardo Valentin wrote: > > On Fri, May 03, 2019 at 10:44:09AM +0100, Quentin Perret wrote: > > > The newly introduced Energy Model framework manages power cos

Re: [PATCH v3 3/3] thermal: cpu_cooling: Migrate to using the EM framework

2019-05-14 Thread Quentin Perret
On Tuesday 14 May 2019 at 07:17:37 (-0700), Eduardo Valentin wrote: > Hey Quentin, > > On Tue, May 14, 2019 at 08:15:08AM +0100, Quentin Perret wrote: > > Hi Eduardo, > > > > On Monday 13 May 2019 at 20:40:59 (-0700), Eduardo Valentin wrote: > > > On Fri, May 03, 2019 at 10:44:09AM +0100, Quentin

[PATCH v2 0/8] arm64: dts: meson: g12a: add audio devices

2019-05-14 Thread Jerome Brunet
This patchset adds audio related devices to g12a SoC family. It adds the clock controller as well as the memory, tdm, spdif and pdm interfaces. At this stage, the HDMI and internal audio DAC are still missing. Notice the use of the pinconf DT property 'drive-strength-microamp'. Support for this p

[PATCH v2 1/8] arm64: dts: meson: g12a: add audio clock controller

2019-05-14 Thread Jerome Brunet
Add the g12a clock controller dedicated to audio. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 36 + 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi ind

[PATCH v2 7/8] arm64: dts: meson: g12a: add spdifin

2019-05-14 Thread Jerome Brunet
Add the spdif input device node and the pinctrl definition for this capture interface g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dts

[PATCH v2 5/8] arm64: dts: meson: g12a: add spdifouts

2019-05-14 Thread Jerome Brunet
Add the devices nodes and pinctrl definitions for the spdif outputs of the g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 60 + 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/a

[PATCH v2 4/8] arm64: dts: meson: g12a: add tdm

2019-05-14 Thread Jerome Brunet
Add the devices and pinctrl definitions for the tdm interfaces of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 658 1 file changed, 658 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm6

[PATCH v2 3/8] arm64: dts: meson: g12a: add audio fifos

2019-05-14 Thread Jerome Brunet
Add the playback and capture memory interfaces of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 73 + 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogi

[PATCH v2 6/8] arm64: dts: meson: g12a: add pdm

2019-05-14 Thread Jerome Brunet
Add the pdm device node and the pinctrl definition for this capture interface g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 177 1 file changed, 177 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/ar

[PATCH v2 8/8] arm64: dts: meson: g12a: enable hdmi_tx sound dai provider

2019-05-14 Thread Jerome Brunet
At the moment the sysnopsys hdmi i2s driver provides a single playback DAI. Add the corresponding sound-dai-cell to the hdmi device node. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 2/8] arm64: dts: meson: g12a: add audio memory arbitrer

2019-05-14 Thread Jerome Brunet
Add the audio DDR memory arbitrer of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 09a

[PATCH] mm/gup: continue VM_FAULT_RETRY processing event for pre-faults

2019-05-14 Thread Mike Rapoport
When get_user_pages*() is called with pages = NULL, the processing of VM_FAULT_RETRY terminates early without actually retrying to fault-in all the pages. If the pages in the requested range belong to a VMA that has userfaultfd registered, handle_userfault() returns VM_FAULT_RETRY *after* user spa

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Haitao Huang
On Fri, 10 May 2019 14:22:34 -0500, Andy Lutomirski wrote: On Fri, May 10, 2019 at 12:04 PM Jethro Beekman wrote: On 2019-05-10 11:56, Xing, Cedric wrote: > Hi Jethro, > >> ELF files are explicitly designed such that you can map them (with mmap) >> in 4096-byte chunks. However, sometim

Re: [PATCH 1/3 v5] add a new ima hook and policy to measure the cmdline

2019-05-14 Thread Mimi Zohar
> > > +{ > > > + > > > + if (action & IMA_MEASURE) > > > + ret = ima_store_template(entry, violation, NULL, buf, pcr); > > > + > > > + if (action & IMA_AUDIT) > > > + ima_audit_measurement(iint, event_data.filename); > > > > The cover letter and patch description s

[PATCH v2 1/1] ARM: dts: colibri: introduce dts with UHS-I support enabled

2019-05-14 Thread Igor Opaniuk
Introduce DTS for Colibri iMX6S/DL V1.1x re-design, where UHS-I support was added. Provide proper configuration for VGEN3, which allows that rail to be automatically switched to 1.8 volts for proper UHS-I operation mode. Signed-off-by: Igor Opaniuk --- v2: - rework hierarchy of dts files, and a

[PATCH 2/3] perf parse-regs: Add generic support for non-gprs

2019-05-14 Thread kan . liang
From: Kan Liang Some non general purpose registers, e.g. XMM, can be collected on some platforms, e.g. X86 Icelake. Add a weak function has_non_gprs_support() to check if the kernel/hardware support non-gprs collection. Add a weak function non_gprs_mask() to return non-gprs mask. By default, th

[PATCH 1/3] perf parse-regs: Split parse_regs

2019-05-14 Thread kan . liang
From: Kan Liang The available registers for --int-regs and --user-regs may be different, e.g. XMM registers. Split parse_regs into two dedicated functions for --int-regs and --user-regs respectively. Modify the warning message. "--user-regs=?" should be applied to show the available registers f

[PATCH 3/3] perf regs x86: Add X86 support for non-gprs

2019-05-14 Thread kan . liang
From: Kan Liang XMM registers can be collected on Icelake and later platforms. Add specific has_non_gprs_support(), which creating an event to check if the kernel and hardware can collect XMM registers. Add specific non_gprs_mask() to return the mask of XMM registers. The XMM registers collect

Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs

2019-05-14 Thread Michal Hocko
[This is adding a new user visible interface so you should be CCing linux-api mailing list. Also CC Hugh for KSM in general. Done now] On Tue 14-05-19 15:16:50, Oleksandr Natalenko wrote: > By default, KSM works only on memory that is marked by madvise(). And the > only way to get around that is t

Re: [PATCH] perf vendor events intel: Add uncore_upi JSON support

2019-05-14 Thread Liang, Kan
On 5/14/2019 8:59 AM, Arnaldo Carvalho de Melo wrote: Em Mon, May 13, 2019 at 05:29:30PM -0400, Liang, Kan escreveu: Hi Arnaldo, Could you please apply this fix? Sure, please next time specify which arch this should be tested on, as I tried it here on a skylake notebook (lenovo t480s) befo

Re: [PATCH 1/4] spi: For controllers that need realtime always use the pump thread

2019-05-14 Thread Doug Anderson
Hi, On Tue, May 14, 2019 at 2:30 AM Mark Brown wrote: > On Mon, May 13, 2019 at 01:24:57PM -0700, Doug Anderson wrote: > > On Sun, May 12, 2019 at 10:05 AM Mark Brown wrote: > > > In my case performance is 2nd place to a transfer not getting > > interrupted once started (so we don't break the 8

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 01:06:45AM -0500, Rob Landley wrote: > On 5/13/19 5:09 PM, Mimi Zohar wrote: > >> Ok, but wouldn't my idea still work? Leave the default compiled-in > >> policy set to not appraise initramfs. The embedded /init sets all the > >> xattrs, changes the policy to appraise tmpfs,

Re: [PATCH 3/3 v5] call ima_kexec_cmdline from kexec_file_load path

2019-05-14 Thread Mimi Zohar
[Cc'ing Dave Young] On Fri, 2019-05-10 at 15:37 -0700, Prakhar Srivastava wrote: > From: Prakhar Srivastava The "From" line above should only appear when the patch author and the sender differ.  You can create the patches under one id and post them from another id.  Something is still wrong. >

Re: [PATCH 5/5] IB/hfi1: Fix improper uses of smp_mb__before_atomic()

2019-05-14 Thread Andrea Parri
On Tue, May 14, 2019 at 08:32:52AM -0400, Dennis Dalessandro wrote: > On 5/9/2019 5:12 PM, Andrea Parri wrote: > >On Tue, Apr 30, 2019 at 01:16:57AM +0200, Andrea Parri wrote: > >>Hi Mike, > >> > This barrier only applies to the read-modify-write operations; in > particular, it does not app

[RESEND PATCH] slab: skip kmemleak_object in leaks_show()

2019-05-14 Thread Qian Cai
Running tests on a debug kernel will usually generate a large number of kmemleak objects. # grep kmemleak /proc/slabinfo kmemleak_object 2243606 3436210 ... As the result, reading /proc/slab_allocators could easily loop forever while processing the kmemleak_object cache and any additional f

[PATCH v6 03/12] Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{PCIEBUS-HOWTO.

Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs

2019-05-14 Thread Michal Hocko
[Forgot Hugh] On Tue 14-05-19 16:41:05, Michal Hocko wrote: > [This is adding a new user visible interface so you should be CCing > linux-api mailing list. Also CC Hugh for KSM in general. Done now] > > On Tue 14-05-19 15:16:50, Oleksandr Natalenko wrote: > > By default, KSM works only on memory

Re: [v2 PATCH] mm: mmu_gather: remove __tlb_reset_range() for force flush

2019-05-14 Thread Will Deacon
On Mon, May 13, 2019 at 04:01:09PM -0700, Yang Shi wrote: > > > On 5/13/19 9:38 AM, Will Deacon wrote: > > On Fri, May 10, 2019 at 07:26:54AM +0800, Yang Shi wrote: > > > diff --git a/mm/mmu_gather.c b/mm/mmu_gather.c > > > index 99740e1..469492d 100644 > > > --- a/mm/mmu_gather.c > > > +++ b/mm/

[PATCH v2] driver core: Fix use-after-free and double free on glue directory

2019-05-14 Thread Muchun Song
There is a race condition between removing glue directory and adding a new device under the glue directory. It can be reproduced in following test: path 1: Add the child device under glue dir device_add() get_device_parent() mutex_lock(&gdp_mutex); /*find parent fr

Re: [PATCH 01/27] tools lib traceevent: Remove hard coded install paths from pkg-config file

2019-05-14 Thread Arnaldo Carvalho de Melo
Em Fri, May 10, 2019 at 05:25:10PM -0400, Arnaldo Carvalho de Melo escreveu: > On May 10, 2019 4:11:50 PM AST, Steven Rostedt wrote: > >On Fri, 10 May 2019 15:56:07 -0400 > >Steven Rostedt wrote: > > > >> From: Tzvetomir Stoyanov > >> > >> Install directories of header and library files are har

Re: [PATCH 1/4] spi: For controllers that need realtime always use the pump thread

2019-05-14 Thread Mark Brown
On Tue, May 14, 2019 at 07:42:38AM -0700, Doug Anderson wrote: > ...but I guess you're saying that you don't want to guarantee that the > SPI core will happen to have this thread sitting around in the future > so you'd rather add the extra complexity to cros_ec so the core can > evolve more freely

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Andy Lutomirski
On Fri, May 10, 2019 at 6:06 PM Xing, Cedric wrote: > > Hi Andy and Jethro, > > > > > You have probably misread my email. By mmap(), I meant the enclave > > file would be mapped via *multiple* mmap() calls, in the same way as > > what dlopen() would do in loading regular shared object. The intenti

[RESEND PATCH] nvdimm: fix some compilation warnings

2019-05-14 Thread Qian Cai
Several places (dimm_devs.c, core.c etc) include label.h but only label.c uses NSINDEX_SIGNATURE, so move its definition to label.c instead. In file included from drivers/nvdimm/dimm_devs.c:23: drivers/nvdimm/label.h:41:19: warning: 'NSINDEX_SIGNATURE' defined but not used [-Wunused-const-variable=

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Rob Landley
On 5/14/19 6:52 AM, Roberto Sassu wrote: > On 5/14/2019 8:06 AM, Rob Landley wrote: >> On 5/13/19 7:47 AM, Roberto Sassu wrote: >>> On 5/13/2019 11:07 AM, Rob Landley wrote: >> Wouldn't the below work even before enforcing signatures on external >> initramfs: >> 1. Create an embedded in

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Andy Lutomirski
On Tue, May 14, 2019 at 3:43 AM Jarkko Sakkinen wrote: > > On Mon, May 13, 2019 at 01:29:26PM +0300, Jarkko Sakkinen wrote: > > I did study through SDK's file format and realized that it does not > > does make sense after all to embed one. > > > > To implement it properly you would probably need a

Re: [PATCH v2 1/2] Add polling support to pidfd

2019-05-14 Thread Christian Brauner
On Thu, May 02, 2019 at 06:02:48PM +0200, Oleg Nesterov wrote: > On 05/02, Christian Brauner wrote: > > > > On Wed, May 01, 2019 at 05:13:12PM +0200, Oleg Nesterov wrote: > > > > > > Otherwise I see no problems. > > > > I'll remove the WARN_ON() check when applying this. Can I get your > > Acked/Re

Re: [PATCH v2 2/2] Add selftests for pidfd polling

2019-05-14 Thread Christian Brauner
On Tue, Apr 30, 2019 at 12:21:54PM -0400, Joel Fernandes (Google) wrote: > Other than verifying pidfd based polling, the tests make sure that > wait semantics are preserved with the pidfd poll. Notably the 2 cases: > 1. If a thread group leader exits while threads still there, then no >pidfd po

KVM: Start populating /sys/hypervisor with KVM entries

2019-05-14 Thread Filippo Sironi
Long-time Xen HVM and Xen PV users are missing /sys/hypervisor entries when moving to KVM. One report is about getting the VM UUID. The VM UUID can already be retrieved using /sys/devices/virtual/dmi/id/product_uuid. This has two downsides: (1) it requires root privileges and (2) it is only avai

Re: [PATCH v4 0/8] Allwinner H6 Mali GPU support

2019-05-14 Thread Clément Péron
Hi, On Tue, 14 May 2019 at 12:29, Neil Armstrong wrote: > > Hi, > > On 13/05/2019 17:14, Daniel Vetter wrote: > > On Sun, May 12, 2019 at 07:46:00PM +0200, peron.c...@gmail.com wrote: > >> From: Clément Péron > >> > >> Hi, > >> > >> The Allwinner H6 has a Mali-T720 MP2. The drivers are > >> out-

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Andy Lutomirski
On Tue, May 14, 2019 at 7:33 AM Haitao Huang wrote: > > On Fri, 10 May 2019 14:22:34 -0500, Andy Lutomirski > wrote: > > > On Fri, May 10, 2019 at 12:04 PM Jethro Beekman > > wrote: > >> > >> On 2019-05-10 11:56, Xing, Cedric wrote: > >> > Hi Jethro, > >> > > >> >> ELF files are explicitly desig

[PATCH v2 1/2] KVM: Start populating /sys/hypervisor with KVM entries

2019-05-14 Thread Filippo Sironi
Start populating /sys/hypervisor with KVM entries when we're running on KVM. This is to replicate functionality that's available when we're running on Xen. Start with /sys/hypervisor/uuid, which users prefer over /sys/devices/virtual/dmi/id/product_uuid as a way to recognize a virtual machine, sin

[PATCH v2 2/2] KVM: x86: Implement the arch-specific hook to report the VM UUID

2019-05-14 Thread Filippo Sironi
On x86, we report the UUID in DMI System Information (i.e., DMI Type 1) as VM UUID. Signed-off-by: Filippo Sironi --- arch/x86/kernel/kvm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 5c93a65ee1e5..441cab08a09d 100644 --- a/arch/

Re: [PATCH] objtool: doc: Fix one-file exception Makefile directive

2019-05-14 Thread Josh Poimboeuf
On Tue, May 14, 2019 at 10:32:43AM +0100, Raphael Gault wrote: > The directive specified in the documentation to add an exception > for a single file in a Makefile was inverted. > > Signed-off-by: Raphael Gault > --- > tools/objtool/Documentation/stack-validation.txt | 2 +- > 1 file changed, 1

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Andy Lutomirski
On Mon, May 13, 2019 at 5:47 AM Roberto Sassu wrote: > > On 5/13/2019 11:07 AM, Rob Landley wrote: > > > > > > On 5/13/19 2:49 AM, Roberto Sassu wrote: > >> On 5/12/2019 9:43 PM, Arvind Sankar wrote: > >>> On Sun, May 12, 2019 at 05:05:48PM +, Rob Landley wrote: > On 5/12/19 7:52 AM, Mimi

Re: [PATCH] sched: introduce configurable delay before entering idle

2019-05-14 Thread Konrad Rzeszutek Wilk
On Tue, May 14, 2019 at 10:50:23AM -0300, Marcelo Tosatti wrote: > On Mon, May 13, 2019 at 05:20:37PM +0800, Wanpeng Li wrote: > > On Wed, 8 May 2019 at 02:57, Marcelo Tosatti wrote: > > > > > > > > > Certain workloads perform poorly on KVM compared to baremetal > > > due to baremetal's ability to

Re: [RFC KVM 18/27] kvm/isolation: function to copy page table entries for percpu buffer

2019-05-14 Thread Andy Lutomirski
On Tue, May 14, 2019 at 2:42 AM Alexandre Chartre wrote: > > > On 5/14/19 10:34 AM, Andy Lutomirski wrote: > > > > > >> On May 14, 2019, at 1:25 AM, Alexandre Chartre > >> wrote: > >> > >> > >>> On 5/14/19 9:09 AM, Peter Zijlstra wrote: > On Mon, May 13, 2019 at 11:18:41AM -0700, Andy Lutom

Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends

2019-05-14 Thread Sebastian Andrzej Siewior
On 2019-05-14 13:35:38 [+0200], Peter Zijlstra wrote: > On Tue, May 14, 2019 at 11:12:19AM +0200, Sebastian Andrzej Siewior wrote: > > On 2019-05-14 10:43:56 [+0200], Peter Zijlstra wrote: > > > Now.. that will fix it, but I think it is also wrong. > > > > > > The problem being that it violates FI

Re: [PATCH v2 1/2] KVM: Start populating /sys/hypervisor with KVM entries

2019-05-14 Thread Christian Borntraeger
On 14.05.19 17:16, Filippo Sironi wrote: > Start populating /sys/hypervisor with KVM entries when we're running on > KVM. This is to replicate functionality that's available when we're > running on Xen. > > Start with /sys/hypervisor/uuid, which users prefer over > /sys/devices/virtual/dmi/id/p

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 01:52:42PM +0200, Roberto Sassu wrote: > On 5/14/2019 8:06 AM, Rob Landley wrote: > > On 5/13/19 7:47 AM, Roberto Sassu wrote: > >> On 5/13/2019 11:07 AM, Rob Landley wrote: > > Wouldn't the below work even before enforcing signatures on external > > initramfs: > >>>

Re: [PATCH v2] serial: sh-sci: disable DMA for uart_console

2019-05-14 Thread George G. Davis
Hello Geert, On Tue, May 14, 2019 at 10:28:34AM +0200, Geert Uytterhoeven wrote: > Hi George, > > On Mon, May 13, 2019 at 5:48 PM George G. Davis > wrote: > > As noted in commit 84b40e3b57ee ("serial: 8250: omap: Disable DMA for > > console UART"), UART console lines use low-level PIO only acce

Re: [PATCH v20 00/28] Intel SGX1 support

2019-05-14 Thread Haitao Huang
On Tue, 14 May 2019 10:17:29 -0500, Andy Lutomirski wrote: On Tue, May 14, 2019 at 7:33 AM Haitao Huang wrote: On Fri, 10 May 2019 14:22:34 -0500, Andy Lutomirski wrote: > On Fri, May 10, 2019 at 12:04 PM Jethro Beekman > wrote: >> >> On 2019-05-10 11:56, Xing, Cedric wrote: >> > Hi Jet

[PATCH] scripts/spelling.txt: Add spelling fix for prohibited

2019-05-14 Thread Chris Paterson
Misspelling 'prohibited' is quite common in the real world, although surprisingly not so much in the Linux Kernel. In addition to fixing the typo we may as well add it to the spelling checker. Also adding the present participle (prohibiting). Fixes: 5bf2fbbef50c ("clk: renesas: cpg-mssr: Add r8a7

[PATCH] parport: Fix mem leak in parport_register_dev_model

2019-05-14 Thread YueHaibing
BUG: memory leak unreferenced object 0x8881df48cda0 (size 16): comm "syz-executor.0", pid 5077, jiffies 4295994670 (age 22.280s) hex dump (first 16 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 backtrace: [] parport_register_dev_model+

Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends

2019-05-14 Thread Sebastian Andrzej Siewior
On 2019-05-14 07:13:50 [-0500], Corey Minyard wrote: > > Corey, would it make any change which waiter is going to be woken up? > > In the application that found this, the wake order probably isn't > relevant. what I expected. > For other applications, I really doubt that very many are using mult

[GIT PULL] Modules updates for v5.2

2019-05-14 Thread Jessica Yu
Linus, Please pull below to receive modules updates for the 5.2 merge window. Details can be found in the signed tag. Note that there is a trivial conflict between the modules tree and vfs tree in include/linux/module.h. Commit 007ec26cdc9f ("vfs: Implement logging through fs_context") from t

Re: [RFC KVM 24/27] kvm/isolation: KVM page fault handler

2019-05-14 Thread Alexandre Chartre
On 5/14/19 9:21 AM, Peter Zijlstra wrote: On Mon, May 13, 2019 at 07:02:30PM -0700, Andy Lutomirski wrote: This sounds like a great use case for static_call(). PeterZ, do you suppose we could wire up static_call() with the module infrastructure to make it easy to do "static_call to such-and-

Re: [PATCH V3 2/4] arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

2019-05-14 Thread Mark Rutland
On Tue, May 14, 2019 at 02:30:05PM +0530, Anshuman Khandual wrote: > The arm64 pagetable dump code can race with concurrent modification of the > kernel page tables. When a leaf entries are modified concurrently, the dump > code may log stale or inconsistent information for a VA range, but this is

Re: [RFC KVM 24/27] kvm/isolation: KVM page fault handler

2019-05-14 Thread Andy Lutomirski
> On May 14, 2019, at 8:36 AM, Alexandre Chartre > wrote: > > >> On 5/14/19 9:21 AM, Peter Zijlstra wrote: >>> On Mon, May 13, 2019 at 07:02:30PM -0700, Andy Lutomirski wrote: >>> This sounds like a great use case for static_call(). PeterZ, do you >>> suppose we could wire up static_call()

Re: [PATCH] x86/build: Move _etext to actual end of .text

2019-05-14 Thread Kees Cook
On Tue, May 14, 2019 at 02:04:21PM +0200, Johannes Hirte wrote: > On 2019 Apr 23, Kees Cook wrote: > > When building x86 with Clang LTO and CFI, CFI jump regions are > > automatically added to the end of the .text section late in linking. As a > > result, the _etext position was being labelled befo

Re: Re: Re: Re: Re: [RFC][PATCH 2/5] mips/atomic: Fix loongson_llsc_mb() wreckage

2019-05-14 Thread Peter Zijlstra
(sorry for the delay, I got sidetracked elsewhere) On Fri, Apr 26, 2019 at 10:57:20AM +0800, huang...@loongson.cn wrote: > > -原始邮件- > > On Thu, Apr 25, 2019 at 08:51:17PM +0800, huang...@loongson.cn wrote: > > > > > > So basically the initial value of @v is set to 1. > > > > > > > > Th

[RFC net-next v2 00/14] net: stmmac: Selftests

2019-05-14 Thread Jose Abreu
[ Submitting with net-next closed for proper review and testing. ] This introduces selftests support in stmmac driver. We add 9 basic sanity checks and MAC loopback support for all cores within the driver. This way more tests can easily be added in the future and can be run in virtually any MAC/GM

[RFC net-next v2 07/14] net: stmmac: Switch MMC functions to HWIF callbacks

2019-05-14 Thread Jose Abreu
XGMAC has a different MMC module. Lets use HWIF callbacks for MMC module so that correct callbacks are automatically selected. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/

[RFC net-next v2 12/14] net: stmmac: dwmac1000: Fix Hash Filter

2019-05-14 Thread Jose Abreu
In order for hash filter to work we need to set the HPF bit. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 1 +

Re: [PATCH] svm/avic: Do not send AVIC doorbell to self

2019-05-14 Thread Suthikulpanit, Suravee
Alex, On 5/7/2019 8:16 AM, Graf, Alexander wrote: > [CAUTION: External Email] > > On 03.05.19 15:38, Suthikulpanit, Suravee wrote: >> AVIC doorbell is used to notify a running vCPU that interrupts >> has been injected into the vCPU AVIC backing page. Current logic >> checks only if a VCPU is runn

Re: [PATCH v2] serial: sh-sci: disable DMA for uart_console

2019-05-14 Thread Wolfram Sang
> > > Fixes: https://patchwork.kernel.org/patch/10929511/ > > > > I don't think this is an appropriate reference, as it points to a patch that > > was never applied. > > I included it as a link to an upstream problem report similar to other commits > that I previewed. The link provides the extra

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-14 Thread Arvind Sankar
On Tue, May 14, 2019 at 11:27:04AM -0400, Arvind Sankar wrote: > It's also much easier to change/customize it for the end > system's requirements rather than setting the process in stone by > putting it inside the kernel. As an example, if you allow unverified external initramfs, it seems to me th

Re: Re: [RFC][PATCH 2/5] mips/atomic: Fix loongson_llsc_mb() wreckage

2019-05-14 Thread Peter Zijlstra
I think this thread got 'lost' On Thu, Apr 25, 2019 at 11:12:58AM +0200, Peter Zijlstra wrote: > On Thu, Apr 25, 2019 at 09:33:48AM +0200, Peter Zijlstra wrote: > > > Let me explain the bug more specific: > > > > > > the bug ONLY matters in following situation: > > > > > > #. more than one cpu

Re: [PATCH 01/27] tools lib traceevent: Remove hard coded install paths from pkg-config file

2019-05-14 Thread Steven Rostedt
On Tue, 14 May 2019 12:05:24 -0300 Arnaldo Carvalho de Melo wrote: > > >Arnaldo, > > > > > >I believe you already applied patch 1 (otherwise I would not have your > > >SOB on it), please ignore. But patch 2 on are new to be applied. > > > > > > Ok, I'll be back at work early next week and wil

[PATCH v2] svm/avic: Allow avic_vcpu_load logic to support host APIC ID 255

2019-05-14 Thread Suthikulpanit, Suravee
Current logic does not allow VCPU to be loaded onto CPU with APIC ID 255. This should be allowed since the host physical APIC ID field in the AVIC Physical APIC table entry is an 8-bit value, and APIC ID 255 is valid in system with x2APIC enabled. Instead, do not allow VCPU load if the host APIC ID

[PATCH 0/4] Add missing device nodes for Olimex Teres-I

2019-05-14 Thread Torsten Duwe
Hi all, based on Maxime's sunxi-dt64-for-5.2, here is what I found so far still missing in the device tree. Those bits and pieces have already been submitted but were not yet applied. Currently I also have the uart1 for bluetooth here, but I'm unsure about the bindings for the in-kernel btuart.

Re: [PATCH] signal: don't always leave task frozen after ptrace_stop()

2019-05-14 Thread Oleg Nesterov
Roman, Sorry, I can't agree with this patch. And even the changelog doesn't look right. On 05/13, Roman Gushchin wrote: > > The ptrace_stop() function contains the cgroup_enter_frozen() call, > but no cgroup_leave_frozen(). When ptrace_stop() is called from the > do_jobctl_trap() path, it's corre

[PATCH] Staging: vc04_services: Fix kernel type 'u32' over 'uint32_t'

2019-05-14 Thread Madhumitha Prabakaran
Fix the warning issued by checkpatch Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Madhumitha Prabakaran --- drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal

Re: [RFC V2 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-05-14 Thread Steven Sistare
On 5/13/2019 7:35 AM, Peter Zijlstra wrote: > On Mon, May 13, 2019 at 03:04:18PM +0530, Viresh Kumar wrote: >> On 10-05-19, 09:21, Peter Zijlstra wrote: > >>> I don't hate his per se; but the whole select_idle_sibling() thing is >>> something that needs looking at. >>> >>> There was the task steal

Re: [PATCH v2 v2 1/3] dt-bindings: i2c: extend existing opencore bindings.

2019-05-14 Thread Rob Herring
On Tue, May 14, 2019 at 7:50 AM Sagar Kadam wrote: > > Hello Rob, > > Thank you for the review. > > On Tue, May 14, 2019 at 2:26 AM Rob Herring wrote: > > > > On Tue, May 07, 2019 at 08:45:06PM +0530, Sagar Shrikant Kadam wrote: > > > Add FU540-C000 specific device tree bindings to already > > >

next/master boot bisection: next-20190514 on rk3288-veyron-jaq

2019-05-14 Thread kernelci.org bot
problem may be somewhere else. * * Hope this helps! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * next/master boot bisection: next-20190514 on rk3288-veyron-jaq Summary: Start: 0a13f187b16a Add linux-next specific files for

[PATCH V4] ARM: mach-shmobile: Don't init CNTVOFF/counter if PSCI is available

2019-05-14 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko If PSCI is available then most likely we are running on PSCI-enabled U-Boot which, we assume, has already taken care of resetting CNTVOFF and updating counter module before switching to non-secure mode and we don't need to. As the psci_smp_available() helper always ret

Re: [PATCH v2 1/2] KVM: Start populating /sys/hypervisor with KVM entries

2019-05-14 Thread Sironi, Filippo
> On 14. May 2019, at 17:26, Christian Borntraeger > wrote: > > > > On 14.05.19 17:16, Filippo Sironi wrote: >> Start populating /sys/hypervisor with KVM entries when we're running on >> KVM. This is to replicate functionality that's available when we're >> running on Xen. >> >> Start with

Re: [PATCH, RFC 0/2] Share PMDs for FS/DAX on x86

2019-05-14 Thread Larry Bassel
On 14 May 19 15:28, Kirill A. Shutemov wrote: > On Thu, May 09, 2019 at 09:05:31AM -0700, Larry Bassel wrote: > > This patchset implements sharing of page table entries pointing > > to 2MiB pages (PMDs) for FS/DAX on x86. > > -EPARSE. > > How do you share entries? Entries do not take any space, p

Re: [PATCH] x86/build: Move _etext to actual end of .text

2019-05-14 Thread Johannes Hirte
On 2019 Mai 14, Kees Cook wrote: > On Tue, May 14, 2019 at 02:04:21PM +0200, Johannes Hirte wrote: > > On 2019 Apr 23, Kees Cook wrote: > > > When building x86 with Clang LTO and CFI, CFI jump regions are > > > automatically added to the end of the .text section late in linking. As a > > > result,

Re: [PATCH] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-14 Thread Schrempf Frieder
Hi Jeff, On 14.05.19 17:42, Jeff Kletsky wrote: > On 5/13/19 6:56 AM, Schrempf Frieder wrote: > >> Hi Jeff, >> >> I just noticed I hit the wrong button and my previous reply was only >> sent to the MTD list, so I'm resending with fixed recipients... >> >> On 10.05.19 14:17,l...@allycomm.com wrot

Re: [PATCH v2 8/8] vsock/virtio: make the RX buffer size tunable

2019-05-14 Thread Stefano Garzarella
On Mon, May 13, 2019 at 08:46:19PM +0800, Jason Wang wrote: > > On 2019/5/13 下午6:05, Jason Wang wrote: > > > > On 2019/5/10 下午8:58, Stefano Garzarella wrote: > > > The RX buffer size determines the memory consumption of the > > > vsock/virtio guest driver, so we make it tunable through > > > a mo

Re: [PATCHv1 1/8] arm64: dts: Fix various entry-method properties to reflect documentation

2019-05-14 Thread Niklas Cassel
On Fri, May 10, 2019 at 04:59:39PM +0530, Amit Kucheria wrote: > The idle-states binding documentation[1] mentions that the This [1] reference is a null pointer ;) Other than that: Reviewed-by: Niklas Cassel > 'entry-method' property is required on 64-bit platforms and must be set > to "psci".

Re: [PATCHv1 3/8] arm64: dts: qcom: msm8916: Add entry-method property for the idle-states node

2019-05-14 Thread Niklas Cassel
On Fri, May 10, 2019 at 04:59:41PM +0530, Amit Kucheria wrote: > The idle-states binding documentation[1] mentions that the > 'entry-method' property is required on 64-bit platforms and must be set > to "psci". > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++

<    1   2   3   4   5   6   7   >