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: 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 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: [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: [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 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: [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 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: [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 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

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 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'

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: [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: [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: [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 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 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: 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 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: [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: 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 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: [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

[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

[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 +

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

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: [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. > --- >

[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 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

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 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 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 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 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 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

[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 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

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 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

[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: [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

Re: [PATCH v2] net: usb: rtl8150: prevent set_ethernet_addr from setting uninit address

2020-10-02 Thread Petko Manolov
On 20-10-02 17:35:25, Anant Thazhemadam wrote: > > Yes, this clears things up for me. I'll see to it that this gets done in a v3. If set_ethernet_addr() fail, don't return error, but use eth_hw_addr_random() instead to set random MAC address and continue with the probing. You can take a look he

Re: [PATCH 0/9] sched: Migrate disable support

2020-10-02 Thread Peter Zijlstra
On Fri, Sep 25, 2020 at 08:32:24PM +0100, Valentin Schneider wrote: > The IRC handout so far is: I meant to go post a new version today; but of course cleanup took longer than expected. In any case, there's a slightly updated version here: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/

Re: [PATCH v3 2/2] arm64: kvm: Introduce MTE VCPU feature

2020-10-02 Thread Andrew Jones
On Fri, Sep 25, 2020 at 10:36:07AM +0100, Steven Price wrote: > Add a new VM feature 'KVM_ARM_CAP_MTE' which enables memory tagging > for a VM. This exposes the feature to the guest and automatically tags > memory pages touched by the VM as PG_mte_tagged (and clears the tags > storage) to ensure th

[PATCH v2 05/10] arm64: dts: meson: add audio playback to p201

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-p201.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p201

[PATCH v2 03/10] arm64: dts: meson: add audio playback to nanopi-k2

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb

[PATCH v2 00/10] arm64: dts: meson: add more GX soundcards

2020-10-02 Thread Christian Hewitt
This series adds basic support for LPCM audio over HDMI and S/PDIF interfaces to GXBB/GXL/GXM devices without support. I'm sure audio support can be extended in places (some devices have internal DACs and headphone hardware) but this gets the basics working. I have personally tested with the khada

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 4:45 AM Lukasz Luba wrote: > > Update the documentation for the binding 'sustainable-power' and allow > to provide values in an abstract scale. It is required when the cooling > devices use an abstract scale for their power values. > > Signed-off-by: Lukasz Luba > ---

[PATCH v2 02/10] arm64: dts: meson: add audio playback to khadas-vim2

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 44 +-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/a

[PATCH v2 01/10] arm64: dts: meson: add audio playback to a95x

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxbb-nexbox-a95x.dts| 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts b/arch/arm64/boot/dts/amlogic/meson-gx

[PATCH v2 08/10] arm64: dts: meson: add audio playback to vega-s95 dtsi

2020-10-02 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic

[PATCH v2 07/10] arm64: dts: meson: add audio playback to p212-s905x dtsi

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxl-s905x-p212.dtsi | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl

Re: [PATCH 0/8] media: v4l2: simplify compat ioctl handling

2020-10-02 Thread Hans Verkuil
Hi Arnd, On 17/09/2020 17:28, Arnd Bergmann wrote: > I have a series to remove all uses of compat_alloc_user_space() > and copy_in_user() from the kernel, this is the part of it that > involves the v4l2 compat code. > > The resulting code is significantly shorter and arguably more > readable, but

[PATCH] ftrace: Fix some typos in comment

2020-10-02 Thread Qiujun Huang
s/coorditate/coordinate/ s/emty/empty/ s/preeptive/preemptive/ s/succes/success/ s/carefule/careful/ Signed-off-by: Qiujun Huang --- kernel/trace/ftrace.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 541453927c

[PATCH v2 10/10] arm64: dts: meson: add audio playback to wetek-play2

2020-10-02 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxbb-wetek-play2.dts| 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts b/arch/arm64/boot/dts/amlog

[PATCH v2 09/10] arm64: dts: meson: add audio playback to wetek-hub

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-wetek-hub.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb

[PATCH v2 04/10] arm64: dts: meson: add audio playback to odroid-c2

2020-10-02 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-

[PATCH v2 06/10] arm64: dts: meson: add audio playback to p200

2020-10-02 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-p200.dts | 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meso

[PATCH 2/7] scsi: hisi_sas: Switch to new framework to support suspend and resume

2020-10-02 Thread John Garry
From: Xiang Chen For v3 hw, we will add support for runtime PM which is only supported in new framework. Legacy PM support and new framework are not allowed to be used together. So switch to new framework to support suspend and resume. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- d

[PATCH 6/7] scsi: hisi_sas: Filter out new PHYs up events during suspended

2020-10-02 Thread John Garry
From: Xiang Chen Currently sas_resume_ha() is called in the last process of resuming the controller which waits all suspended PHYs up and all the libsas event completed. But there is a situation which will cause task hung: for directly attached situation, two disks are connected with two PHYs, di

[PATCH 7/7] scsi: hisi_sas: Recover phys state according to the status before reset

2020-10-02 Thread John Garry
From: Xiang Chen Currently the phys stat is recovered according to the status of phys after reset which is invalid, as the phys are already re-initialized before here. Actually need to recover phys state according to the state of phys before reset, so fix it. Signed-off-by: Xiang Chen Signed-of

[PATCH 5/7] scsi: hisi_sas: Add device link between SCSI devices and hisi_hba

2020-10-02 Thread John Garry
From: Xiang Chen Runtime PM of SCSI devices are already supported in SCSI layer, we can suspend/resume every SCSI device separately. But if there is not link between hisi_hba and SCSI devices or SCSI targets, it will cause issues if the controller is suspended while SCSI devices are still resumin

[PATCH 3/7] scsi: hisi_sas: Add controller runtime PM support for v3 hw

2020-10-02 Thread John Garry
From: Xiang Chen Add controller runtime PM support for v3 hw. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 + drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 56 +- 2 files changed, 56 insertions(+), 2 deletions(-) diff

[PATCH 4/7] scsi: hisi_sas: Add the check of the definition of method _PS0 and _PR0

2020-10-02 Thread John Garry
From: Xiang Chen To support system suspend/resume or runtime suspend/resume, need to use the function pci_set_power_state() to change the power state which requires at least method _PS0 or _PR0 be filled by platform for v3 hw. So check whether the method is supported, if not, add a print to remin

[PATCH 0/7] hisi_sas: Add runtime PM support for v3 hw

2020-10-02 Thread John Garry
This series adds runtime PM support for v3 hw. Consists of: - Switch to new PM suspend and resume framework - Add links to devices to ensure host cannot be suspended while devices are not - Filter out phy events during suspend to avoid deadlock - Add controller RPM support - And some more minor m

[PATCH 1/7] scsi: hisi_sas: Use hisi_hba->cq_nvecs for calling calling synchronize_irq()

2020-10-02 Thread John Garry
From: Luo Jiaxing We got one call trace when running function level reset with online CPUs number less than 16 and enable MSI auto-affinity. [16538.348038] Call trace: [16538.348422] pci_irq_vector+0x98/0xc0 [16538.348947] disable_host_v3_hw+0x8c/0x288 [hisi_sas_v3_hw] [16538.349706] hisi_sas

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > @@ -865,7 +866,11 @@ static struct iommu_group > *tegra_smmu_device_group(struct device *dev) > group->smmu = smmu; > group->soc = soc; > > - group->group = iommu_group_alloc(); > + if (dev_is_pci(dev)) > + group->group = pc

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

2020-10-02 Thread Van Leeuwen, Pascal
> -Original Message- > From: Greg Kroah-Hartman > Sent: Friday, October 2, 2020 4:04 PM > To: Van Leeuwen, Pascal > Cc: Torsten Duwe ; Theodore Y. Ts'o ; > linux-cry...@vger.kernel.org; Nicolai Stange > ; LKML ; Arnd Bergmann > ; Eric W. Biederman > ; Alexander E. Patrakov ; Ahmed S.

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

2020-10-02 Thread Sebastian Andrzej Siewior
On 2020-10-02 16:21:49 [+0200], Peter Zijlstra wrote: > Yeah, I didn't want it in a header where world can access it and attempt > creative use :/ tell me about it. Currently cleaning up other creative abuse of things… Sebastian

Re: [PATCH v3 0/2] MTE support for KVM guest

2020-10-02 Thread Andrew Jones
On Fri, Sep 25, 2020 at 10:36:05AM +0100, Steven Price wrote: > Version 3 of adding MTE support for KVM guests. See the previous (v2) > posting for background: > > https://lore.kernel.org/r/20200904160018.29481-1-steven.price%40arm.com > > These patches add support to KVM to enable MTE within a

Re: media/master bisection: v4l2-compliance-vivid.Format-ioctls-Input-3.VIDIOC_TRY_FMT on qemu_arm-virt-gicv3

2020-10-02 Thread Guillaume Tucker
On 30/09/2020 09:05, Guillaume Tucker wrote: > Please see the bisection report below about a regression in > v4l2-compliance on vivid. > > Reports aren't automatically sent to the public while we're > trialing new bisection features on kernelci.org but this one > looks valid. > > > The full resu

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

2020-10-02 Thread Lorenzo Pieralisi
On Fri, Oct 02, 2020 at 04:26:16PM +0200, Pali Rohár wrote: > 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

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: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-02 Thread Paul E. McKenney
On Fri, Oct 02, 2020 at 11:19:52AM +0100, Mel Gorman wrote: > On Fri, Oct 02, 2020 at 11:58:58AM +0200, Peter Zijlstra wrote: > > > It's enabled by default by enough distros that adding too many checks > > > is potentially painful. Granted it would be missed by most benchmarking > > > which tend to

Re: [v5,0/4] watchdog: mt8192: add wdt support

2020-10-02 Thread Guenter Roeck
On 10/2/20 2:51 AM, Matthias Brugger wrote: > > > On 01/10/2020 17:16, Guenter Roeck wrote: >> On Thu, Oct 01, 2020 at 04:23:02PM +0200, Matthias Brugger wrote: >>> Hi Crystal, >>> >>> It seems you forgot to send the email to one of the maintainers, Wim. >>> Please make sure you add all the maint

Re: [PATCH v3] ubsan: introducing CONFIG_UBSAN_LOCAL_BOUNDS for Clang

2020-10-02 Thread George Popescu
Is this patch ready to be merged? Best regards, George On Tue, Sep 22, 2020 at 10:43 AM George-Aurelian Popescu wrote: > > From: George Popescu > > When the kernel is compiled with Clang, -fsanitize=bounds expands to > -fsanitize=array-bounds and -fsanitize=local-bounds. > > Enabling -fsanitiz

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

2020-10-02 Thread Jerome Brunet
On Fri 02 Oct 2020 at 16:16, Christian Hewitt wrote: > 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

Re: [PATCH v4 2/2] Add hardware monitoring driver for Moortec MR75203 PVT controller

2020-10-02 Thread Guenter Roeck
On 10/2/20 12:04 AM, Rahul Tanwar wrote: > PVT controller (MR75203) is used to configure & control > Moortec embedded analog IP which contains temprature > sensor(TS), voltage monitor(VM) & process detector(PD) > modules. Add hardware monitoring driver to support > MR75203 PVT controller. > > Sign

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

2020-10-02 Thread David Hildenbrand
On 02.10.20 15:41, Matthew Wilcox wrote: > 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 u

Re: external tool to remove embedded filenames

2020-10-02 Thread Bhaskar Chowdhury
On 11:47 Thu 01 Oct 2020, Joe Perches wrote: It's rather unnecessary for files to contain their path/filename in source code comments. Here's a trivial little script that can remove embedded filenames in c90 style comments from files. This requires git. It does the following types of removals:

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

2020-10-02 Thread Dmitry Osipenko
02.10.2020 17:22, Dmitry Osipenko пишет: >> 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_

Re: [PATCH 1/2] sparc32: Move ioremap/iounmap declaration before asm-generic/io.h include

2020-10-02 Thread Lorenzo Pieralisi
On Tue, Sep 15, 2020 at 01:11:21PM -0700, David Miller wrote: > From: Lorenzo Pieralisi > Date: Tue, 15 Sep 2020 10:32:02 +0100 > > > Move the ioremap/iounmap declaration before asm-generic/io.h is > > included so that it is visible within it. > > > > Signed-off-by: Lorenzo Pieralisi > > Acked

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

2020-10-02 Thread Sudeep Holla
Hi Michal, On Fri, Oct 02, 2020 at 03:53:33PM +0200, Michal Simek wrote: > 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: > > > > [...] >

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 17:22, 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 *s

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

2020-10-02 Thread Pali Rohár
On Friday 02 October 2020 15:38:51 Lorenzo Pieralisi wrote: > On Fri, Oct 02, 2020 at 04:26:16PM +0200, Pali Rohár wrote: > > 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 intr

Re: media/master bisection: v4l2-compliance-vivid.Format-ioctls-Input-3.VIDIOC_TRY_FMT on qemu_arm-virt-gicv3

2020-10-02 Thread Hans Verkuil
On 02/10/2020 16:37, Guillaume Tucker wrote: > On 30/09/2020 09:05, Guillaume Tucker wrote: >> Please see the bisection report below about a regression in >> v4l2-compliance on vivid. >> >> Reports aren't automatically sent to the public while we're >> trialing new bisection features on kernelci.or

Re: [PATCH v2 00/10] arm64: dts: meson: add more GX soundcards

2020-10-02 Thread Jerome Brunet
On Fri 02 Oct 2020 at 16:31, Christian Hewitt wrote: > This series adds basic support for LPCM audio over HDMI and S/PDIF > interfaces to GXBB/GXL/GXM devices without support. I'm sure audio > support can be extended in places (some devices have internal DACs > and headphone hardware) but this

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

2020-10-02 Thread David Hildenbrand
On 02.10.20 16:48, David Hildenbrand wrote: > On 02.10.20 15:41, Matthew Wilcox wrote: >> 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 __fre

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

2020-10-02 Thread Dmitry Osipenko
02.10.2020 17:22, 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. > I

Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option

2020-10-02 Thread Moshe Shemesh
On 10/2/2020 12:14 AM, Jakub Kicinski wrote: External email: Use caution opening links or attachments On Thu, 1 Oct 2020 16:59:06 +0300 Moshe Shemesh wrote: @@ -3032,6 +3064,7 @@ devlink_nl_reload_actions_performed_snd(struct devlink *devlink, static int devlink_nl_cmd_reload(struct sk_

[PATCH] usb: gadget: goku_udc: fix potential crashes in probe

2020-10-02 Thread Evgeny Novikov
goku_probe() goes to error label "err" and invokes goku_remove() in case of failures of pci_enable_device(), pci_resource_start() and ioremap(). goku_remove() gets a device from pci_get_drvdata(pdev) and works with it without any checks, in particular it dereferences a corresponding pointer. But go

Re: [PATCH rdma-next v4 1/4] lib/scatterlist: Add support in dynamic allocation of SG table from pages

2020-10-02 Thread Jason Gunthorpe
On Sun, Sep 27, 2020 at 09:46:44AM +0300, Leon Romanovsky wrote: > +struct scatterlist *__sg_alloc_table_from_pages(struct sg_table *sgt, > + struct page **pages, unsigned int n_pages, unsigned int offset, > + unsigned long size, unsigned int max_segment, > + str

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