Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2020-10-02 Thread Michal Hocko
On Fri 02-10-20 09:53:05, Rik van Riel wrote: > On Fri, 2020-10-02 at 09:03 +0200, Michal Hocko wrote: > > On Thu 01-10-20 18:18:10, Sebastiaan Meijer wrote: > > > (Apologies for messing up the mailing list thread, Gmail had fooled > > > me into > > > believing that it properly picked up the thread

[tip: timers/core] clocksource/drivers/armada-370-xp: Use semicolons rather than commas to separate statements

2020-10-02 Thread tip-bot2 for Julia Lawall
The following commit has been merged into the timers/core branch of tip: Commit-ID: 1b80043ed21894eca888157145b955df02887995 Gitweb: https://git.kernel.org/tip/1b80043ed21894eca888157145b955df02887995 Author:Julia Lawall AuthorDate:Sun, 27 Sep 2020 21:12:26 +02:00 Committe

Re: [PATCH v3 -next] binder: simplify the return expression of binder_mmap

2020-10-02 Thread Christian Brauner
On Tue, Sep 29, 2020 at 09:52:16AM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- Thanks! Acked-by: Christian Brauner

Re: [PATCH] usb: typec: tcpm: Fix if vbus before cc, hard_reset_count not reset issue

2020-10-02 Thread Guenter Roeck
On 10/2/20 6:31 AM, Greg KH wrote: > On Tue, Sep 15, 2020 at 11:07:18AM +0800, ChiYuan Huang wrote: >> Hi, Guenter: >> >> ChiYuan Huang 於 2020年9月6日 週日 下午11:22寫道: >>> >>> Guenter Roeck 於 2020年9月5日 週六 下午11:51寫道: On 9/4/20 6:24 PM, ChiYuan Huang wrote: > Guenter Roeck 於 2020年9月5日 週六 上

Re: [PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > static void tegra_smmu_detach_dev(struct iommu_domain *domain, struct device > *dev) > { > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > struct tegra_smmu_as *as = to_smmu_as(domain); > - struct device_node *np = dev->of_node;

Re: [PATCH 0/2] PCI: aardvark: Fix comphy with old ATF

2020-10-02 Thread Pali Rohár
On Friday 02 October 2020 14:37:13 Lorenzo Pieralisi wrote: > On Wed, Sep 02, 2020 at 04:43:42PM +0200, Pali Rohár wrote: > > This patch series fixes regression introduced in commit 366697018c9a > > ("PCI: aardvark: Add PHY support") which caused aardvark driver > > initialization failure on Espres

[PATCH v4] block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()

2020-10-02 Thread Peilin Ye
scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to userspace, since the compiler may leave a 3-byte hole in the middle of `cgc32`. Fix it by adding a padding field to `struct compat_cdrom_generic_command`. Cc: sta...@vger.kernel.org Fixes: f3ee6e63a9df ("compat_ioctl: move CDROM

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Dmitry Vyukov
On Fri, Oct 2, 2020 at 9:54 AM Jann Horn wrote: > > On Fri, Oct 2, 2020 at 8:33 AM Jann Horn wrote: > > On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > > low-overhead sampling-based memory safety error detector

Re: [PATCH v4 1/4] mm: memcontrol: use helpers to access page's memcg data

2020-10-02 Thread Johannes Weiner
On Thu, Oct 01, 2020 at 01:51:43PM -0700, Roman Gushchin wrote: > On Thu, Oct 01, 2020 at 02:59:50PM -0400, Johannes Weiner wrote: > > On Thu, Oct 01, 2020 at 11:27:39AM -0700, Roman Gushchin wrote: > > > On Thu, Oct 01, 2020 at 09:46:38AM -0400, Johannes Weiner wrote: > > > > On Wed, Sep 30, 2020

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > static struct iommu_device *tegra_smmu_probe_device(struct device *dev) > { > - struct device_node *np = dev->of_node; > - struct tegra_smmu *smmu = NULL; > - struct of_phandle_args args; > - unsigned int index = 0; > - int err; > - > -

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > -static void tegra_smmu_release_device(struct device *dev) > -{ > - dev_iommu_priv_set(dev, NULL); > -} > +static void tegra_smmu_release_device(struct device *dev) {} Please keep the braces as-is.

Re: [PATCH v3 1/2] arm64: kvm: Save/restore MTE registers

2020-10-02 Thread Andrew Jones
On Fri, Sep 25, 2020 at 10:36:06AM +0100, Steven Price wrote: > Define the new system registers that MTE introduces and context switch > them. The MTE feature is still hidden from the ID register as it isn't > supported in a VM yet. > > Signed-off-by: Steven Price > --- > arch/arm64/include/asm/

Re: [PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > static int tegra_smmu_attach_dev(struct iommu_domain *domain, >struct device *dev) > { > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > struct tegra_smmu *smmu = dev_iommu_priv_get(dev); > struct

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > static int tegra_smmu_of_xlate(struct device *dev, > struct of_phandle_args *args) > { > + struct platform_device *iommu_pdev = of_find_device_by_node(args->np); > + struct tegra_mc *mc = platform_get_drvdata(iommu_pdev)

Re: [PATCH 7/9] sched: Add migrate_disable()

2020-10-02 Thread Peter Zijlstra
On Fri, Sep 25, 2020 at 06:50:47PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-09-21 18:36:04 [+0200], Peter Zijlstra wrote: > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -1700,6 +1700,68 @@ void check_preempt_curr(struct rq *rq, s > > > > #ifdef CONFIG_SMP > > > > +

Re: [PATCH 3/9] sched/hotplug: Ensure only per-cpu kthreads run during hotplug

2020-10-02 Thread Peter Zijlstra
On Fri, Sep 25, 2020 at 06:38:50PM +0200, Dietmar Eggemann wrote: > On 21/09/2020 18:36, Peter Zijlstra wrote: > > [...] > > > This replaces the unlikely(rq->balance_callbacks) test at the tail of > > context_switch with an unlikely(rq->balance_work), the fast path is > > While looking for why B

[GIT PULL] IIO driver fixes for 5.9-rc8

2020-10-02 Thread Greg KH
The following changes since commit 856deb866d16e29bd65952e0289066f6078af773: Linux 5.9-rc5 (2020-09-13 16:06:00 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git tags/staging-5.9-rc8 for you to fetch changes up to 52a035235ed5a1

Re: [PATCH v4 03/11] arm64, kfence: enable KFENCE for ARM64

2020-10-02 Thread Marco Elver
On Fri, 2 Oct 2020 at 08:48, Jann Horn wrote: > > On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > > Add architecture specific implementation details for KFENCE and enable > > KFENCE for the arm64 architecture. In particular, this implements the > > required interface in . Currently, the arm6

Re: [PATCH v3 -next] binder: simplify the return expression of binder_mmap

2020-10-02 Thread Martijn Coenen
Thanks! On Tue, Sep 29, 2020 at 3:30 AM Liu Shixin wrote: > > Simplify the return expression. > > Signed-off-by: Liu Shixin Acked-by: Martijn Coenen > --- > v3: Add the change description. > v2: Get rid of the "ret" and "failure string" variables. > v1: Simplify the return expression. > --- >

Re: [PATCH 5/9] sched/hotplug: Consolidate task migration on CPU unplug

2020-10-02 Thread Peter Zijlstra
On Thu, Oct 01, 2020 at 06:12:30PM +0100, Vincent Donnefort wrote: > On Mon, Sep 21, 2020 at 06:36:02PM +0200, Peter Zijlstra wrote: > > [...] > > > + > > + [CPUHP_AP_SCHED_WAIT_EMPTY] = { > > + .name = "sched:waitempty", > > + .startup.single

Re: kzfree script

2020-10-02 Thread Denis Efremov
On 10/2/20 5:13 PM, Julia Lawall wrote: > > > On Fri, 2 Oct 2020, Denis Efremov wrote: > >> Hi, >> >> On 10/2/20 5:01 PM, Julia Lawall wrote: >>> Denis, >>> >>> In the rule proposing kzfree_sensitive, I think it would be helpful to >>> also highlight the memset line. >> >> What do you mean? It's

[PATCH] arm64: dts: meson: add SM1 soundcard name to VIM3L

2020-10-02 Thread Christian Hewitt
VIM3L now inherits the sound node from the VIM3 common dtsi but is an SM1 device, so label it as such, and stop users blaming future support issues on the distro/app "wrongly detecting" their device. Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 4 +

[PATCH] net: qrtr: ns: Fix the incorrect usage of rcu_read_lock()

2020-10-02 Thread Manivannan Sadhasivam
The rcu_read_lock() is not supposed to lock the kernel_sendmsg() API since it has the lock_sock() in qrtr_sendmsg() which will sleep. Hence, fix it by excluding the locking for kernel_sendmsg(). Fixes: a7809ff90ce6 ("net: qrtr: ns: Protect radix_tree_deref_slot() using rcu read locks") Reported-b

Re: [net-next PATCH v1 1/7] Documentation: ACPI: DSD: Document MDIO PHY

2020-10-02 Thread Rafael J. Wysocki
On Fri, Oct 2, 2020 at 1:09 PM Grant Likely wrote: > > > > On 30/09/2020 17:37, Rafael J. Wysocki wrote: > > On Wed, Sep 30, 2020 at 6:05 PM Calvin Johnson > > wrote: > >> > >> Introduce ACPI mechanism to get PHYs registered on a MDIO bus and > >> provide them to be connected to MAC. > >> > >> De

Re: [PATCH v4 04/29] objtool: Add a pass for generating __mcount_loc

2020-10-02 Thread Josh Poimboeuf
On Thu, Oct 01, 2020 at 03:36:12PM +0200, Peter Zijlstra wrote: > On Thu, Oct 01, 2020 at 03:17:07PM +0200, Miroslav Benes wrote: > > > I also wonder about making 'mcount' command separate from 'check'. Similar > > to what is 'orc' now. But that could be done later. > > I'm not convinced more co

Re: kzfree script

2020-10-02 Thread Julia Lawall
On Fri, 2 Oct 2020, Denis Efremov wrote: > Hi, > > On 10/2/20 5:01 PM, Julia Lawall wrote: > > Denis, > > > > In the rule proposing kzfree_sensitive, I think it would be helpful to > > also highlight the memset line. > > What do you mean? It's "highlighted" in context mode. Do you mean adding >

Re: [PATCH tip/core/rcu 14/15] rcu/tree: Allocate a page when caller is preemptible

2020-10-02 Thread Paul E. McKenney
On Fri, Oct 02, 2020 at 08:57:46AM +0200, Michal Hocko wrote: > On Thu 01-10-20 09:27:09, Paul E. McKenney wrote: > [...] > > commit ea5c19d21233b5e8d3d06c0d4ecd6be9f2829dc3 > > Author: Paul E. McKenney > > Date: Thu Oct 1 09:24:40 2020 -0700 > > > > kvfree_rcu: Use __GFP_NOMEMALLOC for sin

Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume

2020-10-02 Thread Rafael J. Wysocki
On Fri, Oct 2, 2020 at 8:50 AM Christoph Hellwig wrote: > > On Wed, Sep 30, 2020 at 05:45:27PM +0200, Rafael J. Wysocki wrote: > > On Fri, Sep 25, 2020 at 6:15 PM Christoph Hellwig wrote: > > > > > > get_gendisk grabs a reference on the disk and file operation, so this > > > code will leak both o

Re: kzfree script

2020-10-02 Thread Denis Efremov
Hi, On 10/2/20 5:01 PM, Julia Lawall wrote: > Denis, > > In the rule proposing kzfree_sensitive, I think it would be helpful to > also highlight the memset line. What do you mean? It's "highlighted" in context mode. Do you mean adding position argument to memset call and showing this position in

Re: [PATCH v4 30/39] arm64: kasan: Enable TBI EL1

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 01:10:31AM +0200, Andrey Konovalov wrote: > From: Vincenzo Frascino > > Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) that is > built on top of the Top Byte Ignore (TBI) feature. > > Enable in-kernel TBI when CONFIG_KASAN_HW_TAGS is turned on by enabli

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov wrote: > diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > index 7c67ac6f08df..d1847f29f59b 100644 > --- a/arch/arm64/kernel/mte.c > +++ b/arch/arm64/kernel/mte.c > @@ -23,6 +23,8 @@ > #include > #include > > +u64 gcr_k

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Rob Herring
On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan wrote: > > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > adding all top level devices") optimized the fwnode parsing when all top > level devices are added, it missed out optimizing this for platform > where the top level device

Re: [PATCH v5 00/13] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support

2020-10-02 Thread Greg KH
On Fri, Oct 02, 2020 at 04:56:52PM +0300, Laurentiu Tudor wrote: > Hi Greg, > > On 10/2/2020 4:55 PM, Greg KH wrote: > > On Tue, Sep 29, 2020 at 02:06:41PM +0300, Laurentiu Tudor wrote: > >> > >> > >> On 9/29/2020 11:54 AM, Diana Craciun wrote: > >>> The vfio-mc bus driver needs some additional se

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Torsten Duwe
On Fri, Oct 02, 2020 at 03:33:58PM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 02, 2020 at 03:15:55PM +0200, Willy Tarreau wrote: > > On Fri, Oct 02, 2020 at 02:38:36PM +0200, Torsten Duwe wrote: > > > Almost two weeks passed and these are the "relevant" replies: > > > > > > Jason personally do

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 01:35:18PM +, Van Leeuwen, Pascal wrote: > ** This message and any attachments are for the sole use of the intended > recipient(s). It may contain information that is confidential and privileged. > If you are not the intended recipient of this message, you are prohibit

Re: [PATCH v3 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 03:42:52PM +0200, Andrzej Pietrasiewicz wrote: > Hi, > > W dniu 02.10.2020 o 14:54, Greg Kroah-Hartman pisze: > > On Tue, Aug 18, 2020 at 01:28:25PM +0200, Andrzej Pietrasiewicz wrote: > > > Userland might want to execute e.g. 'w' (show blocked tasks), followed > > > by 's'

kzfree script

2020-10-02 Thread Julia Lawall
Denis, In the rule proposing kzfree_sensitive, I think it would be helpful to also highlight the memset line. julia

Re: [PATCH v4 27/39] arm64: kasan: Enable in-kernel MTE

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 01:10:28AM +0200, Andrey Konovalov wrote: > diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S > index 23c326a06b2d..6c1a6621d769 100644 > --- a/arch/arm64/mm/proc.S > +++ b/arch/arm64/mm/proc.S > @@ -40,9 +40,15 @@ > #define TCR_CACHE_FLAGS TCR_IRGN_WBWA | TCR_O

Re: KMSAN: kernel-infoleak in scsi_cmd_ioctl

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 09:49:44AM -0400, Peilin Ye wrote: > On Mon, Aug 31, 2020 at 03:28:22AM -0700, syzbot wrote: > > BUG: KMSAN: kernel-infoleak in kmsan_copy_to_user+0x81/0x90 > > mm/kmsan/kmsan_hooks.c:253 > > CPU: 1 PID: 12272 Comm: syz-executor.3 Not tainted 5.8.0-rc5-syzkaller #0 > > Hard

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2020-10-02 Thread Matthew Wilcox
On Fri, Oct 02, 2020 at 09:53:05AM -0400, Rik van Riel wrote: > On Fri, 2020-10-02 at 09:03 +0200, Michal Hocko wrote: > > On Thu 01-10-20 18:18:10, Sebastiaan Meijer wrote: > > > (Apologies for messing up the mailing list thread, Gmail had fooled > > > me into > > > believing that it properly pick

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Stephan Mueller
Am Freitag, 2. Oktober 2020, 15:15:55 CEST schrieb Willy Tarreau: Hi Willy, > > And this is all ??? > > Possibly a lot of people got used to seeing the numerous versions > and are less attentive to new series, it's possible that your message > will wake everyone up. I think that points to my pa

Re: [PATCH v5 00/13] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support

2020-10-02 Thread Laurentiu Tudor
Hi Greg, On 10/2/2020 4:55 PM, Greg KH wrote: > On Tue, Sep 29, 2020 at 02:06:41PM +0300, Laurentiu Tudor wrote: >> >> >> On 9/29/2020 11:54 AM, Diana Craciun wrote: >>> The vfio-mc bus driver needs some additional services to be exported by the >>> mc-bus driver like: >>> - a way to reset the DPR

Re: [PATCH v5 00/13] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support

2020-10-02 Thread Greg KH
On Tue, Sep 29, 2020 at 02:06:41PM +0300, Laurentiu Tudor wrote: > > > On 9/29/2020 11:54 AM, Diana Craciun wrote: > > The vfio-mc bus driver needs some additional services to be exported by the > > mc-bus driver like: > > - a way to reset the DPRC container > > - driver_override support > > - fu

Re: [PATCH v2 2/3] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-02 Thread Michal Simek
Hi Sudeep, On 02. 10. 20 12:58, Sudeep Holla wrote: > Hi Michal, > > On Fri, Oct 02, 2020 at 10:23:02AM +0200, Michal Simek wrote: >> Hi Sudeep, >> >> On 01. 10. 20 17:35, Sudeep Holla wrote: > > [...] > >>> >>> What are the other uses of this KEEMBAY_SIP_* ? >>> For now I tend to move this to

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2020-10-02 Thread Rik van Riel
On Fri, 2020-10-02 at 09:03 +0200, Michal Hocko wrote: > On Thu 01-10-20 18:18:10, Sebastiaan Meijer wrote: > > (Apologies for messing up the mailing list thread, Gmail had fooled > > me into > > believing that it properly picked up the thread) > > > > On Thu, 1 Oct 2020 at 14:30, Michal Hocko wr

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Alejandro Colomar
Hi Jonathan, On 2020-10-02 15:27, Jonathan Wakely wrote: On Fri, 2 Oct 2020 at 14:20, Alejandro Colomar wrote: On 2020-10-02 15:06, Jonathan Wakely wrote: > On Fri, 2 Oct 2020 at 12:31, Michael Kerrisk (man-pages) > wrote: >> >> On Fri, 2 Oct 2020 at 12:49, Jonathan Wakely wrote

Re: [PATCH v4 24/39] arm64: mte: Add in-kernel MTE helpers

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 01:10:25AM +0200, Andrey Konovalov wrote: > From: Vincenzo Frascino > > Provide helper functions to manipulate allocation and pointer tags for > kernel addresses. > > Low-level helper functions (mte_assign_*, written in assembly) operate > tag values from the [0x0, 0xF] r

Re: KMSAN: kernel-infoleak in scsi_cmd_ioctl

2020-10-02 Thread Peilin Ye
On Mon, Aug 31, 2020 at 03:28:22AM -0700, syzbot wrote: > BUG: KMSAN: kernel-infoleak in kmsan_copy_to_user+0x81/0x90 > mm/kmsan/kmsan_hooks.c:253 > CPU: 1 PID: 12272 Comm: syz-executor.3 Not tainted 5.8.0-rc5-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS

Re: [PATCH v3 -next] binder: simplify the return expression of binder_mmap

2020-10-02 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2020 at 09:52:16AM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > v3: Add the change description. > v2: Get rid of the "ret" and "failure string" variables. > v1: Simplify the return expression. > --- > drivers/android/binder.c |

Re: [PATCH v2 32/32] auxdisplay: lcd2s DT binding doc

2020-10-02 Thread Lars Poeschel
On Tue, Sep 22, 2020 at 09:58:36AM -0600, Rob Herring wrote: > On Mon, 21 Sep 2020 16:46:44 +0200, poesc...@lemonage.de wrote: > > From: Lars Poeschel > > > > Add a binding doc for the modtronix lcd2s auxdisplay driver. It also > > adds modtronix to the list of known vendor-prefixes. > > > > Sig

Re: [PATCH 2/2] driver core: platform: provide devm_platform_iounremap_resource

2020-10-02 Thread Greg KH
On Tue, Sep 29, 2020 at 02:21:37PM +0800, pierre kuo wrote: > Hi Greg and Rafael: > Would you please help to review these 2 patches? > > https://lkml.org/lkml/2020/9/20/112 > https://lkml.org/lkml/2020/9/20/113 Please resend, I can't take patches off of a random web site. Now lore.kernel.org I c

[GIT PULL] arm64: TI K3 DT updates for v5.10 - part #2

2020-10-02 Thread Nishanth Menon
Hi ARM SoC maintainers, Please pull the following part2 of the TI K3 DTS support since [1]. This also contains the PR [2] which provides the base for the J7200 USB support in this PR. Primary highlights in the part #2: - New K3 SoC: J7200 and related board J7200 Common processor board - Bunch of

Re: [PATCH RFC v2] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-02 Thread Jens Axboe
On 10/2/20 7:38 AM, Hillf Danton wrote: > > On Thu, 1 Oct 2020 11:27:04 -0600 Jens Axboe wrote: >> On 10/1/20 10:27 AM, Oleg Nesterov wrote: >>> Jens, >>> >>> I'll read this version tomorrow, but: >>> >>> On 10/01, Jens Axboe wrote: static inline int signal_pending(struct task_struct *p

Re: [PATCH 2/2] Platform integrity information in sysfs (version 9)

2020-10-02 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 01:37:14PM -0300, Daniel Gutson wrote: > This patch exports the BIOS Write Enable (bioswe), BIOS > Lock Enable (biosle), and the SMM BIOS Write Protect (SMM_BIOSWP) fields of > the BIOS Control register using the platform-integrity misc kernel module. > The idea is to keep a

Re: [PATCH v4 0/9] Update to zstd-1.4.6

2020-10-02 Thread Chris Mason
On 2 Oct 2020, at 2:54, Christoph Hellwig wrote: On Wed, Sep 30, 2020 at 08:05:45PM +, Nick Terrell wrote: On Sep 29, 2020, at 11:53 PM, Christoph Hellwig wrote: As you keep resend this I keep retelling you that should not do it. Please provide a proper Linux API, and switch to that.

Re: [PATCH v3 2/2] tty/sysrq: Add configurable handler to execute a compound action

2020-10-02 Thread Andrzej Pietrasiewicz
Hi, W dniu 02.10.2020 o 14:54, Greg Kroah-Hartman pisze: On Tue, Aug 18, 2020 at 01:28:25PM +0200, Andrzej Pietrasiewicz wrote: Userland might want to execute e.g. 'w' (show blocked tasks), followed by 's' (sync), followed by 1000 ms delay and then followed by 'c' (crash) upon a single magic Sy

[PATCH v4 net-next 0/2] Add Seville Ethernet switch to T1040RDB

2020-10-02 Thread Vladimir Oltean
Seville is a DSA switch that is embedded inside the T1040 SoC, and supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. This series adds this switch to the SoC's dtsi files and to the T1040RDB board file. I would like to send this series through net-next. There is no conflict w

Re: [PATCH v1 5/5] mm/memory_hotplug: update comment regarding zone shuffling

2020-10-02 Thread Michal Hocko
On Mon 28-09-20 20:21:10, David Hildenbrand wrote: > As we no longer shuffle via generic_online_page() and when undoing > isolation, we can simplify the comment. > > We now effectively shuffle only once (properly) when onlining new > memory. > > Cc: Andrew Morton > Cc: Alexander Duyck > Cc: Mel

RE: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Van Leeuwen, Pascal
Torsten, Ok, if you must have more replies then I'll bite :-) > -Original Message- > From: Torsten Duwe > Sent: Friday, October 2, 2020 2:39 PM > To: Theodore Y. Ts'o > Cc: linux-cry...@vger.kernel.org; Nicolai Stange ; LKML > ; Arnd Bergmann > ; Greg Kroah-Hartman ; Eric W. > Biederm

Re: lockdep null-ptr-deref

2020-10-02 Thread Qian Cai
n that I made a right mess of it. Not sure what's > > > best here. > > > > > > Let me have a play. > > > > How's something like this? It's bigger than I'd like, but I feel the > > result is more consistent/readable. > > > > Qian, coul

[PATCH v4 net-next 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch

2020-10-02 Thread Vladimir Oltean
Add the description of the embedded L2 switch inside the SoC dtsi file for NXP T1040. Signed-off-by: Vladimir Oltean Reviewed-by: Maxim Kochetkov Reviewed-by: Andrew Lunn --- Changes in v4: Retargeting to net-next. Changes in v3: Added definition for frame extraction interrupt, even if the dri

[PATCH v4 net-next 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-10-02 Thread Vladimir Oltean
Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the front panel of the board and not with the hardware numbers of the switch chip ports. Signed-off-by: V

Re: [PATCH v1 4/5] mm/page_alloc: place pages to tail in __free_pages_core()

2020-10-02 Thread Michal Hocko
On Mon 28-09-20 20:21:09, David Hildenbrand wrote: > __free_pages_core() is used when exposing fresh memory to the buddy > during system boot and when onlining memory in generic_online_page(). > > generic_online_page() is used in two cases: > > 1. Direct memory onlining in online_pages(). > 2. De

Re: [PATCH v1 1/5] mm/page_alloc: convert "report" flag of __free_one_page() to a proper flag

2020-10-02 Thread Matthew Wilcox
On Mon, Sep 28, 2020 at 08:21:06PM +0200, David Hildenbrand wrote: > Let's prepare for additional flags and avoid long parameter lists of bools. > Follow-up patches will also make use of the flags in __free_pages_ok(), > however, I wasn't able to come up with a better name for the type - should > b

Re: [PATCH v9 02/15] usb: typec: tcpci: Add set_vbus tcpci callback

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 03:39:52PM +0200, Greg Kroah-Hartman wrote: > On Mon, Sep 28, 2020 at 07:39:51PM -0700, Badhri Jagan Sridharan wrote: > > set_vbus callback allows TCPC which are TCPCI based, however, > > does not support turning on sink and source mode through > > Command.SinkVbus and Comma

Re: [PATCH v9 02/15] usb: typec: tcpci: Add set_vbus tcpci callback

2020-10-02 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 07:39:51PM -0700, Badhri Jagan Sridharan wrote: > set_vbus callback allows TCPC which are TCPCI based, however, > does not support turning on sink and source mode through > Command.SinkVbus and Command.SourceVbusDefaultVoltage. > > Signed-off-by: Badhri Jagan Sridharan > R

Re: [PATCH] MIPS: cevt-r4k: Enable intimer for Loongson64 CPUs with extimer

2020-10-02 Thread Thomas Bogendoerfer
On Wed, Sep 23, 2020 at 07:02:54PM +0800, Jiaxun Yang wrote: > > +#ifdef CONFIG_CPU_LOONGSON64 > +static int c0_compare_int_enable(struct clock_event_device *cd) > +{ > + if (cpu_has_extimer) > + set_c0_config6(LOONGSON_CONF6_INTIMER); why are you not simply do this in loognson64

Re: [PATCH V9 0/4] fuse: Add support for passthrough read/write

2020-10-02 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 05:33:30PM +0200, Miklos Szeredi wrote: > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > The first benchmarks were done by running FIO (fio-3.21) with: > > - bs=4Ki; > > - file size: 50Gi; > > - ioengine: sync; > > - fsync_on_close: true. > > The target file

[PATCH v2 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036

2020-10-02 Thread Bogdan Togorean
Add YAML device tree bindings for Analog Devices Inc. ADDI9036 CCD TOF front-end. Signed-off-by: Bogdan Togorean --- v2: added reg property description --- .../bindings/media/i2c/adi,addi9036.yaml | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/

Re: [PATCH 0/2] PCI: aardvark: Fix comphy with old ATF

2020-10-02 Thread Lorenzo Pieralisi
On Wed, Sep 02, 2020 at 04:43:42PM +0200, Pali Rohár wrote: > This patch series fixes regression introduced in commit 366697018c9a > ("PCI: aardvark: Add PHY support") which caused aardvark driver > initialization failure on EspressoBin board with factory version of > Arm Trusted Firmware provided

[PATCH v2 1/2] media: i2c: Add driver for the Analog Devices ADDI9036 ToF front-end

2020-10-02 Thread Bogdan Togorean
The ADDI9036 is a complete, 45 MHz, front-end solution for charge coupled device (CCD) time of flight (TOF) imaging applications. It has 2-lane MIPI CSI-2 RAW12 data output and i2c control interface. The programming of calibration and firmware is performed by driver using Linux Firmware API. Sig

Re: lockdep null-ptr-deref

2020-10-02 Thread Boqun Feng
On Fri, Oct 02, 2020 at 03:09:29PM +0200, Peter Zijlstra wrote: > On Fri, Oct 02, 2020 at 08:36:02PM +0800, Boqun Feng wrote: > > > But what if f2() is called with interrupt disabled? Or f2() disables > > interrupt inside the function, like: > > > > void f2(...) > > { > > loca

Re: [PATCH 1/2] pwm: sysfs: Set class on pwm devices

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 03:08:44PM +0200, Lars Poeschel wrote: > On Fri, Oct 02, 2020 at 02:46:16PM +0200, Greg Kroah-Hartman wrote: > > On Fri, Oct 02, 2020 at 02:30:47PM +0200, poesc...@lemonage.de wrote: > > > From: Lars Poeschel > > > > > > This adds a class to exported pwm devices. > > > Exp

Re: [PATCH v4] mmc: core: don't set limits.discard_granularity as 0

2020-10-02 Thread Coly Li
On 2020/10/2 20:57, Martin K. Petersen wrote: > > Coly, > >> diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c >> index 6c022ef0f84d..350d0cc4ee62 100644 >> --- a/drivers/mmc/core/queue.c >> +++ b/drivers/mmc/core/queue.c >> @@ -190,7 +190,7 @@ static void mmc_queue_setup_discard(s

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 03:15:55PM +0200, Willy Tarreau wrote: > On Fri, Oct 02, 2020 at 02:38:36PM +0200, Torsten Duwe wrote: > > Almost two weeks passed and these are the "relevant" replies: > > > > Jason personally does not like FIPS, and is afraid of > > "subpar crypto". Albeit this patch set

Re: [PATCH] usb: typec: tcpm: Fix if vbus before cc, hard_reset_count not reset issue

2020-10-02 Thread Greg KH
On Tue, Sep 15, 2020 at 11:07:18AM +0800, ChiYuan Huang wrote: > Hi, Guenter: > > ChiYuan Huang 於 2020年9月6日 週日 下午11:22寫道: > > > > Guenter Roeck 於 2020年9月5日 週六 下午11:51寫道: > > > > > > On 9/4/20 6:24 PM, ChiYuan Huang wrote: > > > > Guenter Roeck 於 2020年9月5日 週六 上午3:41寫道: > > > >> > > > >> On 9/3/2

Re: [PATCH] ALSA: hda/realtek - Add mute Led support for HP Elitebook 845 G7

2020-10-02 Thread Takashi Iwai
On Fri, 02 Oct 2020 14:44:54 +0200, Qiu Wenbo wrote: > > After installing archlinux, the mute led and micmute led are not working > at all. This patch fix this issue by applying a fixup from similar > model. These mute leds are confirmed working on HP Elitebook 845 G7. > > Signed-off-by: Qiu Wenb

RE: How to use an ACPI declared GPIO in a userspace ...

2020-10-02 Thread Flavio Suligoi
HI Andy, > > So, what about adding the following > > > > > > (Replace '...' with meaningful line names or drop for now, but in any > > case you need to provide as much names as lines of such GPIO > > controller) > > I have checked the code, so it allows you to define from 0 up to all > lines, but

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Jonathan Wakely
On Fri, 2 Oct 2020 at 14:20, Alejandro Colomar wrote: > > > > On 2020-10-02 15:06, Jonathan Wakely wrote: > > On Fri, 2 Oct 2020 at 12:31, Michael Kerrisk (man-pages) > > wrote: > >> > >> On Fri, 2 Oct 2020 at 12:49, Jonathan Wakely > wrote: > >>> > >>> On Fri, 2 Oct 2020 at 09:28, Alejand

Re: [PATCH v4 4/4] mm: convert page kmemcg type to a page memcg flag

2020-10-02 Thread Johannes Weiner
On Fri, Oct 02, 2020 at 12:03:50PM +0200, Michal Koutný wrote: > On Thu, Oct 01, 2020 at 01:27:13PM -0400, Johannes Weiner > wrote: > > I do think there is a bug, though: mem_cgroup_move_account() should > > use WRITE_ONCE() on page->mem_cgroup. > If this were a bug, wouldn't be the proper approa

RE: [PATCH 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread David Laight
> > +.I void * > > +.RS > > +According to the C language standard, > > +a pointer to any object type may be converted to a pointer to > > +.I void > > +and back. > > +POSIX further requires that any pointer, > > +including pointers to functions, > > +may be converted to a pointer to > > +.I void >

[PATCH][V2] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-02 Thread Colin King
From: Colin Ian King More recent libc implementations are now using openat/openat2 system calls so also add do_sys_openat2 to the tracing so that the test passes on these systems because do_sys_open may not be called. Thanks to Masami Hiramatsu for the help on getting this fix to work correctly.

Re: [PATCH v1 3/5] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate()

2020-10-02 Thread Michal Hocko
On Mon 28-09-20 20:21:08, David Hildenbrand wrote: > Page isolation doesn't actually touch the pages, it simply isolates > pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. > > We already place pages to the tail of the freelists when undoing > isolation via __putback_isolated_pa

Re: How to use an ACPI declared GPIO in a userspace ...

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 2, 2020 at 3:48 PM Andy Shevchenko wrote: > > On Fri, Oct 2, 2020 at 1:02 PM Flavio Suligoi wrote: > > > > > > My SSDT table is: > > > > > > > > See the difference? I can't help here. > > > > This is the DSDT table related to the GPIO controller of my board: > > > > Device (GPO1)

Re: [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-02 Thread Colin Ian King
On 02/10/2020 14:07, Masami Hiramatsu wrote: > On Thu, 1 Oct 2020 09:56:41 +0100 > Colin King wrote: > >> From: Colin Ian King >> >> More recent libc implementations are now using openat/openat2 system >> calls so also add do_sys_openat2 to the tracing so that the test >> passes on these system

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Alejandro Colomar
On 2020-10-02 15:06, Jonathan Wakely wrote: > On Fri, 2 Oct 2020 at 12:31, Michael Kerrisk (man-pages) > wrote: >> >> On Fri, 2 Oct 2020 at 12:49, Jonathan Wakely wrote: >>> >>> On Fri, 2 Oct 2020 at 09:28, Alejandro Colomar via Gcc wrote: However, it might be good that someone star

Re: [PATCH v1 2/5] mm/page_alloc: place pages to tail in __putback_isolated_page()

2020-10-02 Thread Michal Hocko
On Mon 28-09-20 20:21:07, David Hildenbrand wrote: > __putback_isolated_page() already documents that pages will be placed to > the tail of the freelist - this is, however, not the case for > "order >= MAX_ORDER - 2" (see buddy_merge_likely()) - which should be > the case for all existing users. >

Re: [PATCH v1 1/5] mm/page_alloc: convert "report" flag of __free_one_page() to a proper flag

2020-10-02 Thread Michal Hocko
On Mon 28-09-20 20:21:06, David Hildenbrand wrote: > Let's prepare for additional flags and avoid long parameter lists of bools. > Follow-up patches will also make use of the flags in __free_pages_ok(), > however, I wasn't able to come up with a better name for the type - should > be good enough fo

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Willy Tarreau
On Fri, Oct 02, 2020 at 02:38:36PM +0200, Torsten Duwe wrote: > Almost two weeks passed and these are the "relevant" replies: > > Jason personally does not like FIPS, and is afraid of > "subpar crypto". Albeit this patch set strictly isn't about > crypto at all; the crypto subsystem is in the unlu

Re: [PATCH 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Jonathan Wakely
On Fri, 2 Oct 2020 at 13:17, Alejandro Colomar wrote: > > Signed-off-by: Alejandro Colomar > > system_data_types.7: void *: Add info about generic function parameters and > return value > > Reported-by: Paul Eggert > Reported-by: David Laight > Signed-off-by: Alejandro Colomar > > system_data

Re: [PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-10-02 Thread Liang, Kan
On 10/2/2020 7:02 AM, Peter Zijlstra wrote: On Wed, Sep 30, 2020 at 07:29:35AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang When a group that has TopDown members is failed to be scheduled, any later TopDown groups will not return valid values. Here is an example. A background p

Re: [PATCH v2 33/33] auxdisplay: add a driver for lcd2s character display

2020-10-02 Thread Lars Poeschel
On Fri, Oct 02, 2020 at 02:42:49PM +0200, Pavel Machek wrote: > Hi! > > > From: Lars Poeschel > > > > This driver allows to use a lcd2s 20x4 character display from modtronix > > engineering as an auxdisplay charlcd device. > > Is there userland interface documenteted somewhere? I tried to grep

Re: FYI: PoC: Running 100000 processes in 5.3.18 (SLES15 SP2)

2020-10-02 Thread Pavel Machek
Hi! > > Just in case someone is interested: As a Proof-of-Concept I started 100 > thousand processes on a big machine (72 cores). It worked! > However starting those too more than 30 minutes, and top needs more than 30 > minutes to refresh ist display. Still, interactive input via SSH works nice

Re: lockdep null-ptr-deref

2020-10-02 Thread Peter Zijlstra
On Fri, Oct 02, 2020 at 08:36:02PM +0800, Boqun Feng wrote: > But what if f2() is called with interrupt disabled? Or f2() disables > interrupt inside the function, like: > > void f2(...) > { > local_irq_disable(); > spin_lock(&B); > g(...); >

Re: [PATCH 1/2] pwm: sysfs: Set class on pwm devices

2020-10-02 Thread Lars Poeschel
On Fri, Oct 02, 2020 at 02:46:16PM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 02, 2020 at 02:30:47PM +0200, poesc...@lemonage.de wrote: > > From: Lars Poeschel > > > > This adds a class to exported pwm devices. > > Exporting a pwm through sysfs did not yield udev events. The > > dev_uevent_fi

Re: [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-02 Thread Masami Hiramatsu
On Thu, 1 Oct 2020 09:56:41 +0100 Colin King wrote: > From: Colin Ian King > > More recent libc implementations are now using openat/openat2 system > calls so also add do_sys_openat2 to the tracing so that the test > passes on these systems because do_sys_open may not be called. > > Signed-of

Re: [PATCHv2 1/9] perf tools: Add build id shell test

2020-10-02 Thread Namhyung Kim
Hi Jiri, On Fri, Oct 2, 2020 at 4:05 AM Jiri Olsa wrote: > > Adding test for build id cache that adds binary > with sha1 and md5 build ids and verifies it's > added properly. > > The test updates build id cache with perf record > and perf buildid-cache -a. > > Signed-off-by: Jiri Olsa > --- > v2

Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Jonathan Wakely
On Fri, 2 Oct 2020 at 12:31, Michael Kerrisk (man-pages) wrote: > > On Fri, 2 Oct 2020 at 12:49, Jonathan Wakely wrote: > > > > On Fri, 2 Oct 2020 at 09:28, Alejandro Colomar via Gcc > > wrote: > > > However, it might be good that someone starts a page called > > > 'type_qualifiers(7)' or somet

[PATCH] perf inject: Flush ordered events on FINISHED_ROUND

2020-10-02 Thread Namhyung Kim
Currently perf inject just repipes the event without any flush. It makes an issue that it changes the order of events processed. Normally we want to process events in time order, but events are recorded from several cpus and they weren't sorted with each other. So we put them into the ordered eve

[PATCH v2] drivers:tty:pty: Fix a race causing data loss on close

2020-10-02 Thread minyard
From: Corey Minyard If you write to a pty master an immediately close the pty master, the receiver might get a chunk of data dropped, but then receive some later data. That's obviously something rather unexpected for a user. It certainly confused my test program. It turns out that tty_vhangup(

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