Re: [PATCH] lib/list-test: add a test for the 'list' doubly linked list

2019-10-07 Thread Brendan Higgins
On Mon, Oct 07, 2019 at 02:36:33PM -0700, David Gow wrote: > This change adds a KUnit test for the kernel doubly linked list > implementation in include/linux/list.h > > Note that, at present, it only tests the list_ types (not the > singly-linked hlist_), and does not yet test all of the > list_f

Re: [PATCH v2] mm/slub: fix a deadlock in show_slab_objects()

2019-10-07 Thread Andrew Morton
On Mon, 7 Oct 2019 10:16:21 +0200 Michal Hocko wrote: > On Fri 04-10-19 14:57:01, Michal Hocko wrote: > > On Fri 04-10-19 08:31:49, Qian Cai wrote: > > > Long time ago, there fixed a similar deadlock in show_slab_objects() > > > [1]. However, it is apparently due to the commits like 01fb58bcba63

Re: [PATCH 09/11] xfs: remove the fork fields in the writepage_ctx and ioend

2019-10-07 Thread Dave Chinner
On Sun, Oct 06, 2019 at 05:46:06PM +0200, Christoph Hellwig wrote: > In preparation for moving the writeback code to iomap.c, replace the > XFS-specific COW fork concept with the iomap IOMAP_F_SHARED flag. "In preparation for switching XFS to use the fs/iomap writeback code..."? I suspect the IOM

Re: [PATCH] kunit: Fix '--build_dir' option

2019-10-07 Thread Brendan Higgins
On Fri, Sep 6, 2019 at 7:33 PM shuah wrote: > > On 9/6/19 7:16 PM, Brendan Higgins wrote: > > On Fri, Sep 6, 2019 at 9:12 AM SeongJae Park wrote: > >> > >> Running kunit with '--build_dir' option gives following error message: > >> > >> ``` > >> $ ./tools/testing/kunit/kunit.py run --build_dir ..

Re: [PATCH] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups

2019-10-07 Thread Roman Gushchin
On Mon, Oct 07, 2019 at 02:01:44PM +0800, Hillf Danton wrote: > > On Fri, 4 Oct 2019 15:11:04 -0700 Roman Gushchin wrote: > > > > This is a RFC patch, which is not intended to be merged as is, > > but hopefully will start a discussion which can result in a good > > solution for the described prob

[PATCH 1/2] configs: ARM: omap2plus: Enable OMAP3_THERMAL

2019-10-07 Thread Adam Ford
The some in the OMAP3 family have a bandgap thermal sensor, but omap2plus has it disabled. This patch enables the OMAP3_THERMAL by default like the rest of the OMAP family. Signed-off-by: Adam Ford diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index 8

[PATCH 2/2] ARM: dts: omap3: Add cpu trips and cooling map for omap34/36 families

2019-10-07 Thread Adam Ford
The OMAP3530, OMAP3630, and DM3730 all show thresholds of 90C and 105C depending on commercial or industrial temperature ratings. This patch expands the thermal information to include the limits of 90 and 105C for alert and critical. It sets the coolings-cells for the 34xx and 36xx CPU's which bo

Re: [PATCH 05/11] iomap: zero newly allocated mapped blocks

2019-10-07 Thread Dave Chinner
On Tue, Oct 08, 2019 at 08:46:32AM +1100, Dave Chinner wrote: > On Sun, Oct 06, 2019 at 05:46:02PM +0200, Christoph Hellwig wrote: > > File systems like gfs2 don't support delayed allocations or unwritten > > extents and thus allocate normal mapped blocks to fill holes. To > > cover the case of su

Re: [PATCH] nvme-pci: Shutdown when removing dead controller

2019-10-07 Thread Singh, Balbir
On Thu, 2019-10-03 at 15:13 -0400, Tyler Ramer wrote: > Always shutdown the controller when nvme_remove_dead_controller is > reached. > > It's possible for nvme_remove_dead_controller to be called as part of a > failed reset, when there is a bad NVME_CSTS. The controller won't > be comming back on

[char-misc-next 1/2] mei: fix modalias documentation

2019-10-07 Thread Tomas Winkler
From: Alexander Usyskin mei client bus added the client protocol version to the device alias, but ABI documentation was not updated. Fixes: b26864cad1c9 (mei: bus: add client protocol version to the device alias) Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- Documentation/

[char-misc-next 2/2] mei: me: fix me_intr_clear function name in KDoc

2019-10-07 Thread Tomas Winkler
From: Alexander Usyskin Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw-me.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c index c4f6991d3028..5ef30c7c92b3 100644 --- a/drivers/misc/

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-07 Thread Arvind Sankar
On Mon, Oct 07, 2019 at 08:47:54PM +0200, Christoph Hellwig wrote: > On Mon, Oct 07, 2019 at 02:32:07PM -0400, Arvind Sankar wrote: > > On Mon, Oct 07, 2019 at 01:58:57PM -0400, Arvind Sankar wrote: > > > On Mon, Oct 07, 2019 at 10:56:30AM -0700, Christoph Hellwig wrote: > > > > On Mon, Oct 07, 201

Re: [rfc] mm, hugetlb: allow hugepage allocations to excessively reclaim

2019-10-07 Thread Mike Kravetz
On 10/4/19 11:02 AM, David Rientjes wrote: > On Fri, 4 Oct 2019, Michal Hocko wrote: > >> Requesting the userspace to drop _all_ page cache in order allocate a >> number of hugetlb pages or any other affected __GFP_RETRY_MAYFAIL >> requests is simply not reasonable IMHO. > > It can be used as a f

Re: x86/random: Speculation to the rescue

2019-10-07 Thread Pavel Machek
On Mon 2019-10-07 07:47:34, Theodore Y. Ts'o wrote: > On Sun, Oct 06, 2019 at 08:21:03PM +0200, Pavel Machek wrote: > > Even without cycle counter... if we _know_ we are trying to generate > > entropy and have MMC available, we don't care about power and > > performance. > > > > So we can just...

[PATCH] mm: update comments in slub.c

2019-10-07 Thread Yu Zhao
Slub doesn't use PG_active and PG_error anymore. Signed-off-by: Yu Zhao --- mm/slub.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 320a1c375e1b..cfbc839dc2ea 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -93,9 +93,7 @@ * minimal so we rely o

[no subject]

2019-10-07 Thread Steve French
I noticed that the commit below regressed cifs/smb3 xfstest 258 on 5.4-rc1 and later. "Testing for negative seconds since epoch" "Timestamp wrapped" Did xfstest 258 get updated to account for the new behavior with this patch? commit cb7a69e605908c34aad47644afeb26a765ade8d7 Author: Deepa Din

[PATCH] perf/kprobe: maxactive for fd-based kprobe (pmu perf_kprobe)

2019-10-07 Thread Song Liu
Enable specifying maxactive for fd based kretprobe. This will be useful for tracing tools like bcc and bpftrace. [1] discussed the need of this in bpftrace. Use highest highest 12 bit (bit 52-63) to allow maximal maxactive of 4095. [1] https://github.com/iovisor/bpftrace/issues/835 Signed-off-by:

Re: [PATCH v3 1/2] PCI: PCIe: ASPM: Introduce pcie_aspm_enabled()

2019-10-07 Thread Bjorn Helgaas
[+cc Heiner] On Thu, Aug 08, 2019 at 11:55:07PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add a function checking whether or not PCIe ASPM has been enabled for > a given device. > > It will be used by the NVMe driver to decide how to handle the > device during system suspend

Re: [PATCH 4.4 00/36] 4.4.196-stable review

2019-10-07 Thread Guenter Roeck
On 10/7/19 7:49 AM, Greg Kroah-Hartman wrote: On Mon, Oct 07, 2019 at 05:53:55AM -0700, Guenter Roeck wrote: On 10/6/19 10:18 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.196 release. There are 36 patches in this series, all will be posted as a response

linux-next: build warning after merge of the net-next tree

2019-10-07 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: Introduced by commit 033b2c7f0f26 ("rxrpc: Add missing "new peer" trace") interacting with commit 55f6c98e3674 ("rxrpc: Fix trace-after-put looking at the put peer record") from

Re: [PATCH] ACPI: PM: Revert "ACPI / PM: Blacklist Low Power S0 Idle _DSM for Dell XPS13 9360"

2019-10-07 Thread Paul Menzel
Dear Mario, On 26.09.19 18:08, Mario Limonciello wrote: This reverts part of commit 71630b7a832f ("ACPI / PM: Blacklist Low Power S0 Idle _DSM for Dell XPS13 9360") to remove the S0ix blacklist for the XPS 9360. The problems with this system occurred in one possible NVME SSD when putting syst

linux-next: manual merge of the bpf-next tree with the bpf tree

2019-10-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: tools/lib/bpf/Makefile between commit: 1bd63524593b ("libbpf: handle symbol versioning properly for libbpf.a") from the bpf tree and commit: a9eb048d5615 ("libbpf: Add cscope and tags targets to Makefile") from th

Re: [PATCH 3/3] HID: google: whiskers: mask out extra flags in EC event_type

2019-10-07 Thread Brian Norris
On Sat, Oct 5, 2019 at 3:16 AM Ikjoon Jang wrote: > > Whiskers needs to get notifications from EC for getting current base > attached state. EC sends extra bits in event_type field that receiver > should mask out. Notably, this patch was never actually landed upstream: https://lore.kernel.org/pa

[GIT PULL] SELinux fixes for v5.4 (#1)

2019-10-07 Thread Paul Moore
le in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux-pr-20191007 for you to fetch changes up to 2a5243937c700ffe6a28e6557a4562a9ab0a17a4: selinux: fix context string corruption in convert_context() (2019-10-03 14:13:36

Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y

2019-10-07 Thread Kevin Hilman
Martin Blumenstingl writes: > On Mon, Oct 7, 2019 at 3:17 PM Anand Moon wrote: > [...] >> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >> index c9a867ac32d4..72f6a7dca0d6 100644 >> --- a/arch/arm64/configs/defconfig >> +++ b/arch/arm64/configs/defconfig >> @@ -774,7 +

Re: [RFC][PATCH v2 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi

2019-10-07 Thread John Stultz
On Mon, Oct 7, 2019 at 2:11 PM Rob Herring wrote: > > On Mon, Oct 7, 2019 at 2:07 PM John Stultz wrote: > > > > On Mon, Oct 7, 2019 at 11:38 AM Rob Herring wrote: > > > > > > On Mon, Oct 7, 2019 at 12:56 PM John Stultz > > > wrote: > > > > > > > > Add necessary compatible flag for HiSi's DWC3

Re: [PATCH] kunit: Fix '--build_dir' option

2019-10-07 Thread shuah
On 10/7/19 4:03 PM, Brendan Higgins wrote: On Fri, Sep 6, 2019 at 7:33 PM shuah wrote: On 9/6/19 7:16 PM, Brendan Higgins wrote: On Fri, Sep 6, 2019 at 9:12 AM SeongJae Park wrote: Running kunit with '--build_dir' option gives following error message: ``` $ ./tools/testing/kunit/kunit.py

Re: [PATCH 4.4 00/36] 4.4.196-stable review

2019-10-07 Thread Sasha Levin
On Mon, Oct 07, 2019 at 04:49:51PM +0200, Greg Kroah-Hartman wrote: On Mon, Oct 07, 2019 at 05:53:55AM -0700, Guenter Roeck wrote: On 10/6/19 10:18 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.196 release. > There are 36 patches in this series, all wil

KASAN: use-after-free Read in do_mount

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:311ef88a Add linux-next specific files for 20191004 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16ce489960 kernel config: https://syzkaller.appspot.com/x/.config?x=db2e4361e48662f4 dashboard

[PATCH v3] media: vimc: fla: Add virtual flash subdevice

2019-10-07 Thread Lucas A . M . Magalhães
From: Lucas A. M. Magalhaes Add a virtual subdevice to simulate the flash control API. Those are the supported controls: v4l2-ctl -d /dev/v4l-subdev6 -L Flash Controls led_mode 0x009c0901 (menu) : min=0 max=2 default=1 value=1 0: Off

Re: [PATCH 4.4 00/36] 4.4.196-stable review

2019-10-07 Thread Guenter Roeck
On 10/7/19 4:07 PM, Sasha Levin wrote: On Mon, Oct 07, 2019 at 04:49:51PM +0200, Greg Kroah-Hartman wrote: On Mon, Oct 07, 2019 at 05:53:55AM -0700, Guenter Roeck wrote: On 10/6/19 10:18 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.196 release. > Ther

[PATCH] staging/octeon: Use stubs for MIPS && !CAVIUM_OCTEON_SOC

2019-10-07 Thread Paul Burton
When building for a non-Cavium MIPS system with COMPILE_TEST=y, the Octeon ethernet driver hits a number of issues due to use of macros provided only for CONFIG_CAVIUM_OCTEON_SOC=y configurations. For example: drivers/staging/octeon/ethernet-rx.c:190:6: error: 'CONFIG_CAVIUM_OCTEON_CVMSEG_SI

Re: [PATCH] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups

2019-10-07 Thread Roman Gushchin
On Mon, Oct 07, 2019 at 06:19:26PM +0200, Michal Koutný wrote: > On Fri, Oct 04, 2019 at 03:11:04PM -0700, Roman Gushchin wrote: > > An inode which is getting dirty for the first time is associated > > with the wb structure (look at __inode_attach_wb()). It can later > > be switched to another wb

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-07 Thread Guenter Roeck
On 10/7/19 12:21 PM, Linus Torvalds wrote: On Sun, Oct 6, 2019 at 3:20 PM Guenter Roeck wrote: this patch causes all my sparc64 emulations to stall during boot. It causes all alpha emulations to crash with [1a] and [1b] when booting from a virtual disk, and one of the xtensa emulations to cras

Re: ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-07 Thread Roman Gushchin
On Mon, Oct 07, 2019 at 04:11:07PM -0400, Bruce Ashfield wrote: > On Mon, Oct 7, 2019 at 8:54 AM Bruce Ashfield > wrote: > > > > On Thu, Oct 3, 2019 at 8:09 PM Roman Gushchin wrote: > > > > > > On Wed, Oct 02, 2019 at 05:59:36PM -0400, Bruce Ashfield wrote: > > > > On Wed, Oct 2, 2019 at 2:19 PM

Re: [PATCH v5 05/18] watchdog: cpwd: use generic compat_ptr_ioctl

2019-10-07 Thread Guenter Roeck
Arnd, On Wed, Aug 14, 2019 at 10:42:32PM +0200, Arnd Bergmann wrote: > The cpwd_compat_ioctl() contains a bogus mutex that dates > back to a leftover BKL instance. > > Simplify the implementation by using the new compat_ptr_ioctl() > helper function that will do the right thing for all calls > he

Re: [PATCH] sched/fair: scale quota and period without losing quota/period ratio precision

2019-10-07 Thread Xuewei Zhang
On Mon, Oct 7, 2019 at 8:14 AM Phil Auld wrote: > > On Thu, Oct 03, 2019 at 05:12:43PM -0700 Xuewei Zhang wrote: > > quota/period ratio is used to ensure a child task group won't get more > > bandwidth than the parent task group, and is calculated as: > > normalized_cfs_quota() = [(quota_us << 20)

[PATCH v1 1/1] PCI/ATS: Optimize pci_prg_resp_pasid_required() function

2019-10-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, pci_prg_resp_pasid_required() function reads the PASID Required bit status from register every time we call the function. Since PASID Required bit is a read-only value, instead of reading it from register every time, read it once and cache it in struct

Re: [PATCH] perf/kprobe: maxactive for fd-based kprobe (pmu perf_kprobe)

2019-10-07 Thread Masami Hiramatsu
Hi, On Mon, 7 Oct 2019 15:31:11 -0700 Song Liu wrote: > Enable specifying maxactive for fd based kretprobe. This will be useful > for tracing tools like bcc and bpftrace. [1] discussed the need of this > in bpftrace. Use highest highest 12 bit (bit 52-63) to allow maximal > maxactive of 4095. >

Re: [PATCH v3 3/4] kdb: Fix "btc " crash if the CPU didn't round up

2019-10-07 Thread Doug Anderson
Hi, On Mon, Oct 7, 2019 at 6:55 AM Daniel Thompson wrote: > > On Wed, Sep 25, 2019 at 01:02:19PM -0700, Douglas Anderson wrote: > > > > I noticed that when I did "btc " and the CPU I passed in hadn't > > rounded up that I'd crash. I was going to copy the same fix from > > commit 162bc7f5afd7 ("k

Re: [PATCH] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups

2019-10-07 Thread Roman Gushchin
On Mon, Oct 07, 2019 at 04:57:15PM +0200, Vlastimil Babka wrote: > On 10/5/19 12:11 AM, Roman Gushchin wrote: > > > > One possible approach to this problem is to switch inodes associated > > with dying wbs to the root wb. Switching is a best effort operation > > which can fail silently, so unfortun

Re: [RFC][PATCH v2 2/5] usb: dwc3: Execute GCTL Core Soft Reset while switch mdoe for Hisilicon Kirin Soc

2019-10-07 Thread Jack Pham
Hi John, Yu, Felipe, On Mon, Oct 07, 2019 at 05:55:50PM +, John Stultz wrote: > From: Yu Chen > > A GCTL soft reset should be executed when switch mode for dwc3 core > of Hisilicon Kirin Soc. > > Cc: Greg Kroah-Hartman > Cc: Felipe Balbi > Cc: Andy Shevchenko > Cc: Rob Herring > Cc: Mar

Re: [PATCH v2 0/2] mmc: core: Fix Marvell WiFi reset by adding SDIO API to replug card

2019-10-07 Thread Doug Anderson
Hi, On Mon, Sep 16, 2019 at 2:25 AM Ulf Hansson wrote: > > On Wed, 11 Sep 2019 at 23:26, Doug Anderson wrote: > > > > Hi, > > > > On Thu, Jul 25, 2019 at 6:28 AM Ulf Hansson wrote: > > > > > > On Mon, 22 Jul 2019 at 21:41, Douglas Anderson > > > wrote: > > > > > > > > As talked about in the t

Re: Build regressions/improvements in v5.4-rc2

2019-10-07 Thread Randy Dunlap
On 10/7/19 2:04 PM, Geert Uytterhoeven wrote: > Hi Randy, > > On Mon, Oct 7, 2019 at 10:48 PM Randy Dunlap wrote: >> On 10/7/19 12:18 AM, Geert Uytterhoeven wrote: >>> Below is the list of build error/warning regressions/improvements in >>> v5.4-rc2[1] compared to v5.3[2]. >>> >>> Summarized: >>>

Re: [PATCH v3 1/2] tpm: Use GFP_KERNEL for allocating struct tpm_buf

2019-10-07 Thread Jerry Snitselaar
On Mon Oct 07 19, James Bottomley wrote: From: James Bottomley Subject: [PATCH] tpm: use GFP kernel for tpm_buf allocations The current code uses GFP_HIGHMEM, which is wrong because GFP_HIGHMEM (on 32 bit systems) is memory ordinarily inaccessible to the kernel and should only be used for alloc

Re: [PATCH] arm64: fix alternatives with LLVM's integrated assembler

2019-10-07 Thread Sami Tolvanen
On Mon, Oct 7, 2019 at 2:34 PM Nick Desaulniers wrote: > Should the definition of the ALTERNATIVE macro > (arch/arm64/include/asm/alternative.h#L295) also be updated in this > patch to not pass `1` as the final parameter? No, that's the default value for cfg in case the caller omits the parameter

Re: [PATCH] tpm: add check after commands attribs tab allocation

2019-10-07 Thread Jerry Snitselaar
On Mon Oct 07 19, Tadeusz Struk wrote: devm_kcalloc() can fail and return NULL so we need to check for that. Fixes: 58472f5cd4f6f ("tpm: validate TPM 2.0 commands") Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm2-cmd.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/cha

linux-next: manual merge of the sound-asoc tree with the sound tree

2019-10-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the sound-asoc tree got a conflict in: sound/soc/samsung/Kconfig between commit: 82e8d723e9e6 ("sound: Fix Kconfig indentation") from the sound tree and commits: 03081cc370b9 ("ASoC: samsung: arndale: Add support for WM1811 CODEC") dca6408d6f7e ("AS

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-07 Thread Arvind Sankar
On Mon, Oct 07, 2019 at 06:10:55PM -0400, Arvind Sankar wrote: > On Mon, Oct 07, 2019 at 08:47:54PM +0200, Christoph Hellwig wrote: > > On Mon, Oct 07, 2019 at 02:32:07PM -0400, Arvind Sankar wrote: > > > On Mon, Oct 07, 2019 at 01:58:57PM -0400, Arvind Sankar wrote: > > > > On Mon, Oct 07, 2019 at

Re: [RFC][PATCH v2 2/5] usb: dwc3: Execute GCTL Core Soft Reset while switch mdoe for Hisilicon Kirin Soc

2019-10-07 Thread John Stultz
On Mon, Oct 7, 2019 at 4:39 PM Jack Pham wrote: > > Hi John, Yu, Felipe, > > On Mon, Oct 07, 2019 at 05:55:50PM +, John Stultz wrote: > > From: Yu Chen > > > > A GCTL soft reset should be executed when switch mode for dwc3 core > > of Hisilicon Kirin Soc. > > > > Cc: Greg Kroah-Hartman > > C

linux-next: build warning after merge of the sound-asoc tree

2019-10-07 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/jz4740/jz4740-i2s.c: In function 'jz4740_i2s_dev_probe': sound/soc/jz4740/jz4740-i2s.c:500:29: warning: unused variable 'match' [-Wunused-variable] 500 | const struct of_

Re: [PATCH 4/4] riscv: remove the switch statement in do_trap_break()

2019-10-07 Thread Vincent Chen
Sorry, I missed the comment. Christoph's suggestion is also good to me. I will modify it as you suggested. Thanks On Tue, Oct 8, 2019 at 12:31 AM Paul Walmsley wrote: > > On Mon, 7 Oct 2019, Christoph Hellwig wrote: > > > On Mon, Oct 07, 2019 at 09:08:23AM -0700, Paul Walmsley wrote: > > >

Re: [PATCH] media: i2c: adv7180: fix adv7280 BT.656-4 compatibility

2019-10-07 Thread Steve Longerbeam
On 10/2/19 2:31 PM, Tim Harvey wrote: On Fri, Sep 27, 2019 at 1:43 PM Niklas Söderlund wrote: Hi Tim, On 2019-09-27 12:26:40 -0700, Tim Harvey wrote: On Fri, Sep 27, 2019 at 12:04 PM Niklas Söderlund wrote: Hi Tim, Sorry for taking to so long to look at this. On 2019-09-23 15:04:47 -

Re: [PATCH] x86/cpu/vmware: use the full form of inl in VMWARE_PORT

2019-10-07 Thread Kees Cook
On Mon, Oct 07, 2019 at 12:21:29PM -0700, Sami Tolvanen wrote: > LLVM's assembler doesn't accept the short form inl (%%dx) instruction, > but instead insists on the output register to be explicitly specified: > > :1:7: error: invalid operand for instruction > inl (%dx) > ^

Re: [PATCH v6 14/14] riscv: Make mmap allocation top-down by default

2019-10-07 Thread Atish Patra
On Mon, 2019-10-07 at 05:11 -0400, Alex Ghiti wrote: > On 10/4/19 10:12 PM, Atish Patra wrote: > > On Thu, 2019-08-08 at 02:17 -0400, Alexandre Ghiti wrote: > > > In order to avoid wasting user address space by using bottom-up > > > mmap > > > allocation scheme, prefer top-down scheme when possible

RE: [PATCH V2] firmware: imx: Skip return value check for some special SCU firmware APIs

2019-10-07 Thread Anson Huang
Hi, Marco > On 19-10-07 09:15, Anson Huang wrote: > > The SCU firmware does NOT always have return value stored in message > > header's function element even the API has response data, those > > special APIs are defined as void function in SCU firmware, so they > > should be treated as return succ

Re: mount on tmpfs failing to parse context option

2019-10-07 Thread Hugh Dickins
On Mon, 7 Oct 2019, Laura Abbott wrote: > On 9/30/19 12:07 PM, Laura Abbott wrote: > > Hi, > > > > Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1757104 > > of a failure to parse options with the context mount option. From the > > reporter: > > > > > > $ unshare -rm mount -

RE: [PATCH 1/3] arm64: dts: imx8mq: Use correct clock for usdhc's ipg clk

2019-10-07 Thread Anson Huang
Hi, Shawn > On Thu, Sep 19, 2019 at 01:05:57PM +0800, Anson Huang wrote: > > On i.MX8MQ, usdhc's ipg clock is from IMX8MQ_CLK_IPG_ROOT, assign it > > explicitly instead of using IMX8MQ_CLK_DUMMY. > > > > Signed-off-by: Anson Huang > > Fixes tag? OK, added them in V2. Thanks, Anson

[PATCH V2 3/3] arm64: dts: imx8mn: Use correct clock for usdhc's ipg clk

2019-10-07 Thread Anson Huang
On i.MX8MN, usdhc's ipg clock is from IMX8MN_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MN_CLK_DUMMY. Fixes: 6c3debcbae47 ("arm64: dts: freescale: Add i.MX8MN dtsi support") Signed-off-by: Anson Huang --- Changes since V1: - Add fixes tag. --- arch/arm64/boot/dts/freescale/i

[PATCH V2 2/3] arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk

2019-10-07 Thread Anson Huang
On i.MX8MM, usdhc's ipg clock is from IMX8MM_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MM_CLK_DUMMY. Fixes: a05ea40eb384 ("arm64: dts: imx: Add i.mx8mm dtsi support") Signed-off-by: Anson Huang --- Changes since V1: - Add fixes tag. --- arch/arm64/boot/dts/freescale/imx8mm.

[PATCH V2 1/3] arm64: dts: imx8mq: Use correct clock for usdhc's ipg clk

2019-10-07 Thread Anson Huang
On i.MX8MQ, usdhc's ipg clock is from IMX8MQ_CLK_IPG_ROOT, assign it explicitly instead of using IMX8MQ_CLK_DUMMY. Fixes: 748f908cc882 ("arm64: add basic DTS for i.MX8MQ") Signed-off-by: Anson Huang --- Changes since V1: - Add fixes tag. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4

Re: [PATCH] lib/list-test: add a test for the 'list' doubly linked list

2019-10-07 Thread Kees Cook
On Mon, Oct 07, 2019 at 02:36:33PM -0700, David Gow wrote: > This change adds a KUnit test for the kernel doubly linked list > implementation in include/linux/list.h > > Note that, at present, it only tests the list_ types (not the > singly-linked hlist_), and does not yet test all of the > list_f

[PATCH 2/3] regulator: rk808: Fix warning message in rk817_set_ramp_delay

2019-10-07 Thread Axel Lin
The default in rk817_set_ramp_delay is 25MV rather than 10MV. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index eda056fce65f..d0d1b86

[PATCH 1/3] regulator: rk808: Constify rk817 regulator_ops

2019-10-07 Thread Axel Lin
These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/driv

[PATCH 3/3] regulator: rk808: Remove rk817_set_suspend_voltage function

2019-10-07 Thread Axel Lin
The implement is exactly the same as rk808_set_suspend_voltage, so just use rk808_set_suspend_voltage instead. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c

Re: [PATCH v2] KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled

2019-10-07 Thread Wanpeng Li
ping, On Sun, 29 Sep 2019 at 09:07, Wanpeng Li wrote: > > From: Wanpeng Li > > Don't waste cycles to shrink/grow vCPU halt_poll_ns if host > side polling is disabled. > > Acked-by: Marcelo Tosatti > Cc: Marcelo Tosatti > Signed-off-by: Wanpeng Li > --- > v1 -> v2: > * fix coding style > > vi

RE: [PATCH v10 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-07 Thread Justin He (Arm Technology China)
Hi Will and Marc Sorry for the late response, just came back from a vacation. > -Original Message- > From: Marc Zyngier > Sent: 2019年10月1日 21:19 > To: Will Deacon > Cc: Justin He (Arm Technology China) ; Catalin > Marinas ; Mark Rutland > ; James Morse ; > Matthew Wilcox ; Kirill A. Shut

[PATCH net-next 5/6] net: hns3: add support for configuring VF MAC from the host

2019-10-07 Thread Huazhong Tan
This patch adds support of configuring VF MAC from the host for the HNS3 driver. BTW, the parameter init in the hns3_init_mac_addr is unnecessary now, since the MAC address will not read from NCL_CONFIG when doing reset, so it should be removed, otherwise it will affect VF's MAC address initializa

[PATCH net-next 2/6] net: hns3: add support for spoof check setting

2019-10-07 Thread Huazhong Tan
From: Jian Shen This patch adds support for spoof check configuration for VFs. When it is enabled, "spoof checking" is done for both mac address and VLAN. For each VF, the HW ensures that the source MAC address (or VLAN) of every outgoing packet exists in the MAC-list (or VLAN-list) configured fo

[PATCH net-next 1/6] net: hns3: add support for setting VF link status on the host

2019-10-07 Thread Huazhong Tan
From: Yufeng Mo This patch adds support to configure VF link properties. The options are auto, enable, and disable. Even if the PF is down, the communication between VFs will be normal if the VFs are set to enable. The commands are as follows: 'ip link set vf state ' change the VF status 'ip

[PATCH net-next 6/6] net: hns3: support tx-scatter-gather-fraglist feature

2019-10-07 Thread Huazhong Tan
From: Yunsheng Lin The hardware supports up to 8 TX BD for non-tso skb and up to 63 TX BD for TSO skb. Currently, the hns3 driver supports RX skb with fraglist when HW GRO is enabled, when the stack forwards a RX skb with fraglist, the stack need to linearize the skb before sending to other inter

[PATCH net-next 3/6] net: hns3: add support for setting VF trust

2019-10-07 Thread Huazhong Tan
From: Jian Shen This patch adds supports for setting VF trust by host. If specified VF is trusted, then it can enable promisc(include allmulti mode). If a trusted VF enabled promisc, and being untrusted, host will disable promisc mode for this VF. For VF will update its promisc mode from set_rx_

[PATCH net-next 4/6] net: hns3: add support for configuring bandwidth of VF on the host

2019-10-07 Thread Huazhong Tan
From: Yonglong Liu This patch adds support for configuring bandwidth of VF on the host for HNS3 drivers. Signed-off-by: Yonglong Liu Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 4 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 14 ++- .../ne

[PATCH net-next 0/6] net: hns3: add some new feature

2019-10-07 Thread Huazhong Tan
This patch-set includes some new features for the HNS3 ethernet controller driver. [patch 01/06] adds support for configuring VF link status on the host. [patch 02/06] adds support for configuring VF spoof check. [patch 03/06] adds support for configuring VF trust. [patch 04/06] adds support fo

RE: [PATCH v4 11/11] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2019-10-07 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月30日 22:57 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.com; > gustavo.pimen..

Re: [PATCH v7 02/13] dt-bindings: soc: Add MT8183 power dt-bindings

2019-10-07 Thread Weiyi Lu
On Wed, 2019-08-28 at 11:39 +0200, Matthias Brugger wrote: > > On 28/08/2019 11:11, Weiyi Lu wrote: > > Add power dt-bindings of MT8183 and introduces "BASIC" and > > "SUBSYS" clock types in binding document. > > The "BASIC" type is compatible to the original power control with > > clock name [a-z

RE: [PATCH 2/6] dt-bindings: Add DT binding for PCIE GEN4 EP of the layerscape

2019-10-07 Thread Xiaowei Bao
> -Original Message- > From: Rob Herring > Sent: 2019年10月1日 6:22 > To: Xiaowei Bao > Cc: Z.q. Hou ; bhelg...@google.com; > mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. Lian > ; andrew.mur...@arm.com; Mingkai Hu > ; linux-...@vger.k

Re: mount on tmpfs failing to parse context option

2019-10-07 Thread Al Viro
On Mon, Oct 07, 2019 at 05:50:31PM -0700, Hugh Dickins wrote: [sorry for being MIA - had been sick through the last week, just digging myself from under piles of mail; my apologies] > (tmpfs, very tiresomely, supports a NUMA "mpol" mount option which can > have commas in it e.g "mpol=bind:0,2": w

[PATCH V2 1/3] arm64: dts: imx8mm-evk: Adjust i2c nodes following alphabetical sort

2019-10-07 Thread Anson Huang
The iomuxc node is being put at end of file because of its huge pinctrl data. I2C devices should be placed in alphabetical sort. Signed-off-by: Anson Huang --- new patch. --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 124 +-- 1 file changed, 62 insertions(+), 62 dele

RE: [PATCH 1/2] arm64: dts: imx8mm-evk: Add i2c3 support

2019-10-07 Thread Anson Huang
Hi, Shawn > On Thu, Sep 19, 2019 at 05:46:47PM +0800, Anson Huang wrote: > > Enable i2c3 for i.MX8MM EVK board. > > > > Signed-off-by: Anson Huang > > --- > > arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 14 ++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/arch/arm64/bo

[PATCH V2 2/3] arm64: dts: imx8mm-evk: Add i2c3 support

2019-10-07 Thread Anson Huang
Enable i2c3 for i.MX8MM EVK board. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index f6

[PATCH V2 3/3] arm64: dts: imx8mm-evk: Enable pca6416 on i2c3 bus

2019-10-07 Thread Anson Huang
Enable pca6416 on i.MX8MM EVK board's i2c3 bus. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts inde

Re: [PATCH RFC 1/3] symlink.7: document magic-links more completely

2019-10-07 Thread Aleksa Sarai
On 2019-10-07, Jann Horn wrote: > On Thu, Oct 3, 2019 at 4:56 PM Aleksa Sarai wrote: > > Traditionally, magic-links have not been a well-understood topic in > > Linux. Given the new changes in their semantics (related to the link > > mode of trailing magic-links), it seems like a good opportunity

Re: [PATCH V2 2/3] arm64: dts: imx8mm-evk: Add i2c3 support

2019-10-07 Thread Fabio Estevam
Hi Anson, On Mon, Oct 7, 2019 at 10:28 PM Anson Huang wrote: > > Enable i2c3 for i.MX8MM EVK board. > > Signed-off-by: Anson Huang You could combine this patch with 3/3.

Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y

2019-10-07 Thread Anand Moon
Hi Martin. On Tue, 8 Oct 2019 at 01:40, Martin Blumenstingl wrote: > > On Mon, Oct 7, 2019 at 3:17 PM Anand Moon wrote: > [...] > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > index c9a867ac32d4..72f6a7dca0d6 100644 > > --- a/arch/arm64/configs/defconfig > > +++

RE: [PATCH] ACPI: PM: Revert "ACPI / PM: Blacklist Low Power S0 Idle _DSM for Dell XPS13 9360"

2019-10-07 Thread Mario.Limonciello
> On 26.09.19 18:08, Mario Limonciello wrote: > > This reverts part of > > commit 71630b7a832f ("ACPI / PM: Blacklist Low Power S0 Idle _DSM for > > Dell XPS13 9360") to remove the S0ix blacklist for the XPS 9360. > > > > The problems with this system occurred in one possible NVME SSD when > > putt

Re: [PATCH 4.4 00/36] 4.4.196-stable review

2019-10-07 Thread Sasha Levin
On Mon, Oct 07, 2019 at 04:16:51PM -0700, Guenter Roeck wrote: On 10/7/19 4:07 PM, Sasha Levin wrote: On Mon, Oct 07, 2019 at 04:49:51PM +0200, Greg Kroah-Hartman wrote: On Mon, Oct 07, 2019 at 05:53:55AM -0700, Guenter Roeck wrote: On 10/6/19 10:18 AM, Greg Kroah-Hartman wrote: This is the s

RE: [PATCH v10 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-10-07 Thread Justin He (Arm Technology China)
Hi Will and Marc > -Original Message- > From: Marc Zyngier > Sent: 2019年10月1日 21:32 > To: Will Deacon > Cc: Justin He (Arm Technology China) ; Catalin > Marinas ; Mark Rutland > ; James Morse ; > Matthew Wilcox ; Kirill A. Shutemov > ; linux-arm-ker...@lists.infradead.org; > linux-kernel

Re: [PATCH] sgi-gru: simplify procfs code some more

2019-10-07 Thread Dimitri Sivanich
While a reduction in object size is welcome, in this case it does come at the expense of some clarity, as field sizes are no longer as clear. Nevertheless, will add my ack. Acked-by: Dimitri Sivanich On Mon, Oct 07, 2019 at 11:30:46AM -0700, Joe Perches wrote: > Use seq_puts and simple string ou

Re: [PATCH] media: vimc: Make capture devices and subdevices use different link_validates

2019-10-07 Thread Helen Koike
On 10/6/19 9:42 PM, Helen Koike wrote: > Hi Nícolas, > > Thanks for you patch, just some small comments below. > > On 10/6/19 4:14 PM, Nícolas F. R. A. Prado wrote: >> Instead of validating the links to capture devices and subdevices with >> the same function, use the default v4l function for

Re: [PATCH RFC 3/3] mtd: rawnand: Add support Macronix power down mode

2019-10-07 Thread masonccyang
Hi Miquel, > > +int nand_power_down_op(struct nand_chip *chip) > > +{ > > + int ret; > > + > > + if (nand_has_exec_op(chip)) { > > + struct nand_op_instr instrs[] = { > > + NAND_OP_CMD(NAND_CMD_POWER_DOWN, 0), > > + }; > > + > > + struct nand_operation op = NAND_OPE

RE: [PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-10-07 Thread Justin He (Arm Technology China)
Hi Will > -Original Message- > From: Will Deacon > Sent: 2019年10月1日 20:54 > To: Justin He (Arm Technology China) > Cc: Catalin Marinas ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kern

Re: [PATCH v4 1/4] x86/kvm: Add "nopvspin" parameter to disable PV spinlocks

2019-10-07 Thread Zhenzhong Duan
On 2019/10/7 22:46, Boris Ostrovsky wrote: On 10/6/19 3:49 AM, Zhenzhong Duan wrote: On 2019/10/4 22:52, Boris Ostrovsky wrote: On 10/3/19 10:02 AM, Zhenzhong Duan wrote:   void __init kvm_spinlock_init(void)   { -    /* Does host kernel support KVM_FEATURE_PV_UNHALT? */ -    if (!kvm_par

RE: [PATCH v10 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-10-07 Thread Justin He (Arm Technology China)
> -Original Message- > From: Justin He (Arm Technology China) > Sent: 2019年10月8日 9:55 > To: Marc Zyngier ; Will Deacon > Cc: Catalin Marinas ; Mark Rutland > ; James Morse ; > Matthew Wilcox ; Kirill A. Shutemov > ; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; li

Re: [PATCH RFC 2/3] mtd: rawnand: Add support Macronix Block Protection function

2019-10-07 Thread masonccyang
Hi Miquel, > > > > > Macronix AC series support using SET/GET_FEATURES to change > > > Block Protection and Unprotection. > > > > > > MTD default _lock/_unlock function replacement by manufacturer > > > postponed initialization. > > > > Why would we do that? > > > > Anyway your solution loo

Re: [PATCH v2] arm64: armv8_deprecated: Checking return value for memory allocation

2019-10-07 Thread Yunfeng Ye
On 2019/10/7 23:37, Will Deacon wrote: > On Mon, Oct 07, 2019 at 06:06:35PM +0800, Yunfeng Ye wrote: >> There are no return value checking when using kzalloc() and kcalloc() for >> memory allocation. so add it. >> >> Signed-off-by: Yunfeng Ye >> --- >> v1 -> v2: >> - return error code when mem

Re: linux-next: Signed-off-by missing for commit in the kbuild-current tree

2019-10-07 Thread Masahiro Yamada
Hi Stephen, On Tue, Oct 8, 2019 at 5:05 AM Stephen Rothwell wrote: > > Hi all, > > Commit > > da6221f246f9 ("scripts: setlocalversion: fix a bashism") > > is missing a Signed-off-by from its committer. I fixed it now. Thanks! > -- > Cheers, > Stephen Rothwell -- Best Regards Masahiro Yam

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-10-07 Thread Dilip Kota
Hi Martin,Philipp, On 10/8/2019 3:53 AM, Martin Blumenstingl wrote: Hi Philipp, On Thu, Oct 3, 2019 at 4:19 PM Philipp Zabel wrote: [...] because the register layout was greatly simplified for the newer SoCs (for which there is reset-intel) compared to the older ones (reset-lantiq). Dilip's s

linux-next: build failure after merge of the staging tree

2019-10-07 Thread Stephen Rothwell
Hi all, After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this: In file included from include/linux/byteorder/big_endian.h:5, from arch/powerpc/include/uapi/asm/byteorder.h:14, from include/asm-generic/bitops/le.h:6,

[PATCH v3] arm64: dts: enable otg mode for dwc3 usb ip on layerscape

2019-10-07 Thread Yinbo Zhu
layerscape otg function should be supported HNP SRP and ADP protocol accroing to rm doc, but dwc3 code not realize it and use id pin to detect who is host or device(0 is host 1 is device) this patch is to enable OTG mode on ls1028ardb ls1088ardb and ls1046ardb in dts Signed-off-by: Yinbo Zhu ---

<    1   2   3   4   5   6   7   8   9   10   >