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 0/2] PCI: aardvark: Fix comphy with old ATF

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

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

2020-10-02 Thread Marco Elver
On Fri, 2 Oct 2020 at 16:43, George Popescu wrote: > > Is this patch ready to be merged? Andrew already picked this up and it's in the -mm tree: https://lore.kernel.org/mm-commits/20200922170717.qhs0j%25a...@linux-foundation.org/ You have to wait for the next merge window, which will likely star

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

2020-10-02 Thread Grygorii Strashko
On 02/10/2020 14:40, Grygorii Strashko wrote: On 02/10/2020 02:19, Laurent Pinchart wrote: Hi Saravana, Thank you for the patch. On Thu, Oct 01, 2020 at 03:59:51PM -0700, Saravana Kannan wrote: When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when adding all top level device

[PATCH] Documentation: kvm: fix a typo

2020-10-02 Thread Li Qiang
Fixes: 9824c83f92bc8 ("Documentation: kvm: document CPUID bit for MSR_KVM_POLL_CONTROL") Signed-off-by: Li Qiang --- Documentation/virt/kvm/cpuid.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/virt/kvm/cpuid.rst b/Documentation/virt/kvm/cpuid.rst index a7df

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

2020-10-02 Thread Mark Rutland
On Fri, Oct 02, 2020 at 04:22:59PM +0200, Dmitry Vyukov wrote: > 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. K

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 16:02, Greg Kroah-Hartman pisze: 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.

Re: [PATCH net-next 04/16] devlink: Add reload stats

2020-10-02 Thread Moshe Shemesh
On 10/2/2020 12:25 AM, Jakub Kicinski wrote: External email: Use caution opening links or attachments On Thu, 1 Oct 2020 16:59:07 +0300 Moshe Shemesh wrote: Add reload stats to hold the history per reload action type and limit. For example, the number of times fw_activate has been performe

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

2020-10-02 Thread Pali Rohár
On Friday 02 October 2020 16:03:09 Lorenzo Pieralisi wrote: > On Fri, Oct 02, 2020 at 04:52:37PM +0200, Pali Rohár wrote: > > 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 Lore

Re: [PATCH net-next 15/16] net/mlx5: Add support for devlink reload limit no reset

2020-10-02 Thread Moshe Shemesh
On 10/2/2020 12:52 AM, Jakub Kicinski wrote: External email: Use caution opening links or attachments On Thu, 1 Oct 2020 16:59:18 +0300 Moshe Shemesh wrote: + err = mlx5_fw_reset_set_live_patch(dev); + if (err) + return err; + + return 0; nit return mlx... Right,

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

2020-10-02 Thread Christian Hewitt
> On 2 Oct 2020, at 6:44 pm, Jerome Brunet wrote: > > 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 "wrong

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

2020-10-02 Thread David Hildenbrand
On 02.10.20 15:41, Michal Hocko wrote: > 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. Dire

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 02:34:44PM +, Van Leeuwen, Pascal wrote: > > > > > -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 Stan

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

2020-10-02 Thread Lukasz Luba
Hi Doug, On 10/2/20 3:31 PM, Doug Anderson wrote: 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

Re: [PATCH net-next 01/16] devlink: Change devlink_reload_supported() param type

2020-10-02 Thread Jiri Pirko
Thu, Oct 01, 2020 at 03:59:04PM CEST, mo...@mellanox.com wrote: >Change devlink_reload_supported() function to get devlink_ops pointer >param instead of devlink pointer param. >This change will be used in the next patch to check if devlink reload is >supported before devlink instance is allocated.

Re: external tool to remove embedded filenames

2020-10-02 Thread Joe Perches
( * removing mentors, I originally meant to send that to mentees ) On Fri, 2020-10-02 at 20:19 +0530, Bhaskar Chowdhury wrote: > 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

[PATCH v4 2/2] void.3: New link to system_data_types(7)

2020-10-02 Thread Alejandro Colomar
Signed-off-by: Alejandro Colomar --- man3/void.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/void.3 diff --git a/man3/void.3 b/man3/void.3 new file mode 100644 index 0..db50c0f09 --- /dev/null +++ b/man3/void.3 @@ -0,0 +1 @@ +.so man7/system_data_types.7 -- 2.28.0

[PATCH v4 0/2] Document 'void *'

2020-10-02 Thread Alejandro Colomar
Hi Michael, I'm sorry I forgot to increase the version count. And given there are conversations continuing in old threads, you may mix them easily. I'm a bit lost in the emails too. I'll resend the latest patch (identically) as v4 (there's no v3, but this is the 4th time or so, so let's call it v

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Oleg Nesterov
Heh. To be honest I don't really like 1-2 ;) Unfortunately, I do not see a better approach right now. Let me think until Monday, it is not that I think I will find a better solution, but I'd like to try anyway. Let me comment 3/3 for now. On 10/01, Jens Axboe wrote: > > +static void task_work_si

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

2020-10-02 Thread Alejandro Colomar
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_types.7: void *: Add info about pointer artihmetic Reported-by: Paul Egg

Re: [net-next PATCH v1 3/7] net: phy: Introduce fwnode_get_phy_id()

2020-10-02 Thread Florian Fainelli
On 10/2/2020 4:05 AM, Grant Likely wrote: On 30/09/2020 17:04, Calvin Johnson wrote: Extract phy_id from compatible string. This will be used by fwnode_mdiobus_register_phy() to create phy device using the phy_id. Signed-off-by: Calvin Johnson ---   drivers/net/phy/phy_device.c | 32

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

2020-10-02 Thread Lorenzo Pieralisi
On Fri, Oct 02, 2020 at 05:07:01PM +0200, Pali Rohár wrote: [...] > > I will apply the stable tag and dependency, it should be fine. > > Ok! I thought that according to stable-kernel-rules.html that dependent > commit could be added after stable email address separated with # char. > At least th

Re: [RFC PATCH v3 2/4] objtool: x86 instruction decoder and big endian cross compiles

2020-10-02 Thread Josh Poimboeuf
On Thu, Oct 01, 2020 at 12:17:25AM +0200, Vasily Gorbik wrote: > From: Martin Schwidefsky > > Currently objtool seems to be the only tool from build tools needed > which breaks x86 cross compilation on big endian systems. Make the x86 > instruction decoder of the objtool usable on big endian mach

Re: [PATCH net-next 02/16] devlink: Add reload action option to devlink reload command

2020-10-02 Thread Jiri Pirko
Thu, Oct 01, 2020 at 03:59:05PM CEST, mo...@mellanox.com wrote: [...] >diff --git a/include/net/devlink.h b/include/net/devlink.h >index 1c286e9a3590..ddba63bce7ad 100644 >--- a/include/net/devlink.h >+++ b/include/net/devlink.h >@@ -1077,10 +1077,11 @@ struct devlink_ops { >* implememen

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-02 Thread Maxime Ripard
Hi Tim, On Thu, Oct 01, 2020 at 11:15:46AM +0100, Tim Gover wrote: > hdmi_enable_4k60=1 causes the firmware to select 3.3 GHz for the PLLC > VCO to support a core-frequency of 550 MHz which is the minimum > frequency required by the HVS at 4Kp60. The side effect is that if the > display clock requ

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 David Hildenbrand
On 02.10.20 15:24, Michal Hocko wrote: > 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 u

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

2020-10-02 Thread Pali Rohár
On Friday 02 October 2020 16:15:47 Lorenzo Pieralisi wrote: > On Fri, Oct 02, 2020 at 05:07:01PM +0200, Pali Rohár wrote: > > [...] > > > > I will apply the stable tag and dependency, it should be fine. > > > > Ok! I thought that according to stable-kernel-rules.html that dependent > > commit co

[PATCH] random32: Restore __latent_entropy attribute on net_rand_state

2020-10-02 Thread Thibaut Sautereau
From: Thibaut Sautereau Commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity") broke compilation and was temporarily fixed by Linus in 83bdc7275e62 ("random32: remove net_rand_state from the latent entropy gcc plugin") by entirely moving net_rand_state out of the

Re: [PATCH] random32: Restore __latent_entropy attribute on net_rand_state

2020-10-02 Thread Willy Tarreau
On Fri, Oct 02, 2020 at 05:16:11PM +0200, Thibaut Sautereau wrote: > From: Thibaut Sautereau > > Commit f227e3ec3b5c ("random32: update the net random state on interrupt > and activity") broke compilation and was temporarily fixed by Linus in > 83bdc7275e62 ("random32: remove net_rand_state from

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 пишет: > Then when a client gets probed, of_iommu_configure() in > iommu core will search DTB for swgroup ID and call ->of_xlate() > to prepare an fwspec, similar to tegra_smmu_probe_device() and > tegra_smmu_configure(). Then it'll call tegra_smmu_probe_device() > ag

[PATCH v2 0/3] i2c: imx: Fix handling of arbitration loss

2020-10-02 Thread Christian Eggers
Changes in v2: --- - Don't accidently clear additional status flags on Vybrid (reported by Uwe Kleine-Koenig) On my (noisy) system, I2C arbitration losses happen quite often. In it's current implementation, the IAL flag is partly handled, but has a number of shortcomings: 1. The dr

[PATCH v2 1/3] i2c: imx: Fix reset of I2SR_IAL flag

2020-10-02 Thread Christian Eggers
According to the "VFxxx Controller Reference Manual" (and the comment block starting at line 97), Vybrid requires writing a one for clearing an interrupt flag. Syncing the method for clearing I2SR_IIF in i2c_imx_isr(). Signed-off-by: Christian Eggers Cc: sta...@vger.kernel.org --- drivers/i2c/bu

[PATCH v2 2/3] i2c: imx: Check for I2SR_IAL after every byte

2020-10-02 Thread Christian Eggers
Arbitration Lost (IAL) can happen after every single byte transfer. If arbitration is lost, the I2C hardware will autonomously switch from master mode to slave. If a transfer is not aborted in this state, consecutive transfers will not be executed by the hardware and will timeout. Signed-off-by: C

[PATCH v2 3/3] i2c: imx: Don't generate STOP condition if arbitration has been lost

2020-10-02 Thread Christian Eggers
If arbitration is lost, the master automatically changes to slave mode. I2SR_IBB may or may not be reset by hardware. Raising a STOP condition by resetting I2CR_MSTA has no effect and will not clear I2SR_IBB. So calling i2c_imx_bus_busy() is not required and would busy-wait until timeout. Signed-

Re: [PATCH 6/6] docs: gpio: add a new document to its index.rst

2020-10-02 Thread Bartosz Golaszewski
On Fri, Oct 2, 2020 at 7:49 AM Mauro Carvalho Chehab wrote: > > There's now a new ReST file. Add it to the index.rst file. > > Fixes: ce7a2f77f976 ("docs: gpio: Add GPIO Aggregator documentation") > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/admin-guide/gpio/index.rst | 1 + > 1

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

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 7:15 AM Manivannan Sadhasivam wrote: > > 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:

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

2020-10-02 Thread Steven Price
On 02/10/2020 15:30, Andrew Jones wrote: 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 c

[PATCH 1/1] ASoC: cs42l51: add soft dependency declaration

2020-10-02 Thread Olivier Moysan
When configured as module, CS42L51 codec driver uses two modules snd-soc-cs42l51 and snd-soc-cs42l51-i2c. Add soft dependency on snd-soc-cs42l51-i2c in snd-soc-cs42l51, to allow smart module dependency solving. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 1 + 1 file changed, 1

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Thomas Gleixner
On Fri, Oct 02 2020 at 17:14, Oleg Nesterov wrote: > Heh. To be honest I don't really like 1-2 ;) I do not like any of this :) > So I think that if we are going to add TIF_TASKWORK we should generalize > this logic and turn it into TIF_NOTIFY_SIGNAL. Similar to TIF_NOTIFY_RESUME > but implies sig

[GIT PULL] Btrfs fixes for 5.9-rc8

2020-10-02 Thread David Sterba
Hi, two more fixes. One is for a lockdep warning/lockup (also caught by syzbot), that one has been seen in practice. Regarding the other syzbot reports mentioned last time, they don't seem to be urgent and reliably reproducible so they'll be fixed later. The second fix is for a potential corrupt

RE: [RFC PATCH 0/7] RAS/CEC: Extend CEC for errors count check on short time period

2020-10-02 Thread Shiju Jose
Hi Boris, Hi James, >-Original Message- >From: Borislav Petkov [mailto:b...@alien8.de] >Sent: 02 October 2020 13:44 >To: Shiju Jose >Cc: linux-e...@vger.kernel.org; linux-a...@vger.kernel.org; linux- >ker...@vger.kernel.org; tony.l...@intel.com; r...@rjwysocki.net; >james.mo...@arm.com; l

KASAN: use-after-free Read in tipc_mcast_xmit (2)

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a59cf619 Merge branch 'Fix-bugs-in-Octeontx2-netdev-driver' git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=163c246790 kernel config: https://syzkaller.appspot.com/x/.config?x=99a7c78965c75e07 dashboard

WARNING in drv_bss_info_changed

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fcadab74 Merge tag 'drm-fixes-2020-10-01-1' of git://anong.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14846d8390 kernel config: https://syzkaller.appspot.com/x/.config?x=89ab6a0c48f30b49 das

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Oleg Nesterov
On 10/02, Thomas Gleixner wrote: > > I think it's fundamentaly wrong that we have several places and several > flags which handle task_work_run() instead of having exactly one place > and one flag. Damn yes, agreed. Oleg.

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-10-02 Thread Vivek Goyal
On Thu, Oct 01, 2020 at 03:33:20PM -0700, Sean Christopherson wrote: > On Thu, Oct 01, 2020 at 05:55:08PM -0400, Vivek Goyal wrote: > > On Mon, Sep 28, 2020 at 09:37:00PM -0700, Sean Christopherson wrote: > > > On Mon, Jul 20, 2020 at 05:13:59PM -0400, Vivek Goyal wrote: > > > > @@ -10369,6 +10378,

WARNING in kvfree

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:60e72093 Merge tag 'clk-fixes-for-linus' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=169943a790 kernel config: https://syzkaller.appspot.com/x/.config?x=89ab6a0c48f30b49 das

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

2020-10-02 Thread Steven Price
On 02/10/2020 15:36, Andrew Jones wrote: 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 suppo

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 5:13 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. >

WARNING in ieee80211_bss_info_change_notify

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fcadab74 Merge tag 'drm-fixes-2020-10-01-1' of git://anong.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16217b5b90 kernel config: https://syzkaller.appspot.com/x/.config?x=4e672827d2ffab1f das

Re: [PATCH] arm64: dts: allwinner: h6: add eMMC voltage property for Beelink GS1

2020-10-02 Thread Clément Péron
Hi Maxime, On Wed, 30 Sep 2020 at 12:27, Maxime Ripard wrote: > > Hi, > > On Mon, Sep 28, 2020 at 05:00:37PM +0200, Clément Péron wrote: > > VQMMC supply is connected to BLDO2 which provides 1.8V. > > > > Let's reflect this in the device-tree. > > This commit log doesn't really explain what is go

Re: [PATCH 1/1] ASoC: cs42l51: add soft dependency declaration

2020-10-02 Thread Mark Brown
On Fri, Oct 02, 2020 at 05:29:04PM +0200, Olivier Moysan wrote: > When configured as module, CS42L51 codec driver uses two modules > snd-soc-cs42l51 and snd-soc-cs42l51-i2c. > Add soft dependency on snd-soc-cs42l51-i2c in snd-soc-cs42l51, > to allow smart module dependency solving. Doesn't the use

[PATCH v3 0/7] can: add support for ETAS ES58X CAN USB

2020-10-02 Thread Vincent Mailhol
The purpose of this patch series is to introduce a new CAN USB driver to support ETAS USB interfaces (ES58X series). During development, issues in drivers/net/can/dev.c where discovered, the fix for those issues are included in this patch series. We also propose to add two helper functions in inc

[PATCH] x86/kvm: Update the comment about asynchronous page fault in exc_page_fault()

2020-10-02 Thread Vitaly Kuznetsov
KVM was switched to interrupt-based mechanism for 'page ready' event delivery in Linux-5.8 (see commit 2635b5c4a0e4 ("KVM: x86: interrupt based APF 'page ready' event delivery")) and #PF (ab)use for 'page ready' event delivery was removed. Linux guest switched to this new mechanism exclusively in 5

[PATCH v3 1/7] can: dev: can_get_echo_skb(): prevent call to kfree_skb() in hard IRQ context

2020-10-02 Thread Vincent Mailhol
If a driver calls can_get_echo_skb() during a hardware IRQ (which is often, but not always, the case), the 'WARN_ON(in_irq)' in net/core/skbuff.c#skb_release_head_state() might be triggered, under network congestion circumstances, together with the potential risk of a NULL pointer dereference. The

[PATCH v3 2/7] can: dev: fix type of get_can_dlc() and get_canfd_dlc() macros

2020-10-02 Thread Vincent Mailhol
The macros get_can_dlc() and get_canfd_dlc() are not visible in userland. As such, type u8 should be preferred over type __u8. Reference: https://lkml.org/lkml/2020/10/1/708 Signed-off-by: Vincent Mailhol --- include/linux/can/dev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[PATCH v3 3/7] can: dev: add a helper function to get the correct length of Classical frames

2020-10-02 Thread Vincent Mailhol
In classical CAN, the length of the data (i.e. CAN payload) is not always equal to the DLC! If the frame is a Remote Transmission Request (RTR), data length is always zero regardless of DLC value and else, if the DLC is greater than 8, the length is 8. Contrary to common belief, ISO 11898-1 Chapter

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 8:13 AM Lukasz Luba wrote: > > Hi Doug, > > On 10/2/20 3:31 PM, Doug Anderson wrote: > > 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

[PATCH][next] perf: arm-cmn: fix less than zero check on unsigned dtc->irq

2020-10-02 Thread Colin King
From: Colin Ian King Currently the failure check on dtc->irq is always false because dtc->irq is an unsigned int. Fix this by using a temporary signed int for the less than zero error check. Addresses-Coverity: ("Unsigned compared against 0") Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU drive

WARNING in get_signal

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fcadab74 Merge tag 'drm-fixes-2020-10-01-1' of git://anong.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=116865bd90 kernel config: https://syzkaller.appspot.com/x/.config?x=89ab6a0c48f30b49 das

INFO: task hung in lock_sock_nested (3)

2020-10-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:87d5034d Merge tag 'mlx5-updates-2020-09-30' of git://git... git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1377fb3790 kernel config: https://syzkaller.appspot.com/x/.config?x=7b5cc8ec2218e99d das

[PATCH v3 4/7] can: dev: __can_get_echo_skb(): fix the return length

2020-10-02 Thread Vincent Mailhol
The length of Remote Transmission Request (RTR) frames is always 0 bytes. The DLC represents the requested length, not the actual length of the RTR. But __can_get_echo_skb() returns the DLC value regardless. Apply get_can_len() function to retrieve the correct length. Signed-off-by: Vincent Mailh

Re: [net-next PATCH v1 3/7] net: phy: Introduce fwnode_get_phy_id()

2020-10-02 Thread Russell King - ARM Linux admin
On Fri, Oct 02, 2020 at 08:14:07AM -0700, Florian Fainelli wrote: > On 10/2/2020 4:05 AM, Grant Likely wrote: > > On 30/09/2020 17:04, Calvin Johnson wrote: > > > Extract phy_id from compatible string. This will be used by > > > fwnode_mdiobus_register_phy() to create phy device using the > > > phy

Re: [PATCH 1/1] blk-snap - Block snapshot module This module implements snapshot and changed block tracking functionality. It is intended to create backup copies of any block devices without usage of

2020-10-02 Thread kernel test robot
Hi Sergei, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.9-rc7] [cannot apply to block/for-next sparc-next/master next-20201002] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[PATCH v3 5/7] can: dev: add a helper function to calculate the duration of one bit

2020-10-02 Thread Vincent Mailhol
Rename macro CAN_CALC_SYNC_SEG to CAN_SYNC_SEG and make it available through include/linux/can/dev.h Add an helper function can_bit_time() which returns the duration (in time quanta) of one CAN bit. Rationale for this patch: the sync segment and the bit time are two concepts which are defined in

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Jens Axboe
On 10/2/20 9:31 AM, Thomas Gleixner wrote: > On Fri, Oct 02 2020 at 17:14, Oleg Nesterov wrote: >> Heh. To be honest I don't really like 1-2 ;) > > I do not like any of this :) > >> So I think that if we are going to add TIF_TASKWORK we should generalize >> this logic and turn it into TIF_NOTIFY_

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Jens Axboe
On 10/2/20 9:14 AM, Oleg Nesterov wrote: > Heh. To be honest I don't really like 1-2 ;) > > Unfortunately, I do not see a better approach right now. Let me think > until Monday, it is not that I think I will find a better solution, but > I'd like to try anyway. > > Let me comment 3/3 for now. Th

[PATCH v3 7/7] usb: cdc-acm: add quirk to blacklist ETAS ES58X devices

2020-10-02 Thread Vincent Mailhol
The ES58X devices has a CDC ACM interface (used for debug purpose). During probing, the device is thus recognized as USB Modem (CDC ACM), preventing the etas-es58x module to load: usbcore: registered new interface driver etas_es58x usb 1-1.1: new full-speed USB device number 14 using xhci_hcd

Re: WARNING in get_signal

2020-10-02 Thread Eric W. Biederman
syzbot writes: > Hello, > > syzbot found the following issue on: So this is: static void do_jobctl_trap(void) { struct signal_struct *signal = current->signal; int signr = current->jobctl & JOBCTL_STOP_SIGMASK; if (current->ptrace & PT_SEIZED) { if (!sig

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-02 Thread Dave Stevenson
Hi Maxime On Fri, 2 Oct 2020 at 16:19, Maxime Ripard wrote: > > Hi Tim, > > On Thu, Oct 01, 2020 at 11:15:46AM +0100, Tim Gover wrote: > > hdmi_enable_4k60=1 causes the firmware to select 3.3 GHz for the PLLC > > VCO to support a core-frequency of 550 MHz which is the minimum > > frequency requir

[PATCH] MAINTAINERS: add dt binding headers to memory controller drivers entry

2020-10-02 Thread Krzysztof Kozlowski
Cover also the include/dt-bindings/memory/ headers in the memory controller drivers entry. Signed-off-by: Krzysztof Kozlowski --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 00214bbaa72c..6db9b677559b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH] sched/deadline: Unthrottle PI boosted threads while enqueuing

2020-10-02 Thread Daniel Bristot de Oliveira
On 9/18/20 8:00 AM, Juri Lelli wrote: > Hi Daniel, > > On 16/09/20 09:06, Daniel Bristot de Oliveira wrote: >> stress-ng has a test (stress-ng --cyclic) that creates a set of threads >> under SCHED_DEADLINE with the following parameters: >> >> dl_runtime = 1 (10 us) >> dl_deadline

Re: [PATCH v13 19/26] mm: Re-introduce do_mmap_pgoff()

2020-10-02 Thread Yu, Yu-cheng
On 10/1/2020 7:06 PM, Peter Collingbourne wrote: On Fri, Sep 25, 2020 at 7:57 AM Yu-cheng Yu wrote: There was no more caller passing vm_flags to do_mmap(), and vm_flags was removed from the function's input by: commit 45e55300f114 ("mm: remove unnecessary wrapper function do_mmap_pgoff(

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

2020-10-02 Thread Dmitry Osipenko
02.10.2020 18:23, Dmitry Osipenko пишет: > 02.10.2020 09:08, Nicolin Chen пишет: >> Then when a client gets probed, of_iommu_configure() in >> iommu core will search DTB for swgroup ID and call ->of_xlate() >> to prepare an fwspec, similar to tegra_smmu_probe_device() and >> tegra_smmu_configure().

Re: [RFC PATCH v3 4/4] objtool: fix x86 orc generation on big endian cross compiles

2020-10-02 Thread Josh Poimboeuf
On Thu, Oct 01, 2020 at 12:17:32AM +0200, Vasily Gorbik wrote: > +++ b/tools/objtool/arch/x86/special.c > @@ -9,7 +9,7 @@ > > void arch_handle_alternative(unsigned short feature, struct special_alt *alt) > { > - switch (feature) { > + switch (le16_to_cpu(feature)) { It might be cleaner

Re: [PATCH] sched/deadline: Unthrottle PI boosted threads while enqueuing

2020-10-02 Thread Peter Zijlstra
On Fri, Oct 02, 2020 at 05:57:52PM +0200, Daniel Bristot de Oliveira wrote: > On 9/18/20 8:00 AM, Juri Lelli wrote: > > Hi Daniel, > > > > On 16/09/20 09:06, Daniel Bristot de Oliveira wrote: > >> stress-ng has a test (stress-ng --cyclic) that creates a set of threads > >> under SCHED_DEADLINE wit

Re: [linux-sunxi] [PATCH v5 09/20] arm64: dts: allwinner: h6: Add DAI node and soundcard for HDMI

2020-10-02 Thread Clément Péron
Hi Chen-Yu, On Mon, 28 Sep 2020 at 07:42, Chen-Yu Tsai wrote: > > On Mon, Sep 28, 2020 at 1:32 PM Chen-Yu Tsai wrote: > > > > On Mon, Sep 28, 2020 at 3:29 AM Clément Péron wrote: > > > > > > From: Jernej Skrabec > > > > > > Add the I2S node used by the HDMI and a simple-soundcard to > > > link

[PATCH 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF RX Controller

2020-10-02 Thread Codrin Ciubotariu
This patch adds DT bindings for the new Microchip S/PDIF RX Controller embedded inside sama7g5 SoCs. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mchp,spdifrx.yaml | 73 +++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings

RE: [RFC PATCH 0/7] RAS/CEC: Extend CEC for errors count check on short time period

2020-10-02 Thread Luck, Tony
> Because from my x86 CPUs limited experience, the cache arrays are mostly > fine and errors reported there are not something that happens very > frequently so we don't even need to collect and count those. On Intel X86 we leave the counting and threshold decisions about cache health to the hardwa

Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi"

2020-10-02 Thread Mark Brown
On Thu, Oct 01, 2020 at 05:45:00PM -0700, David Collins wrote: > The SPMI regmap debugfs files are used extensively for testing and debug > purposes internally at Qualcomm and by our customers. It would be helpful > if the more verbose naming scheme were accepted upstream to avoid > confusion and

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

2020-10-02 Thread Manivannan Sadhasivam
Hi Doug, On Fri, Oct 02, 2020 at 08:28:51AM -0700, Doug Anderson wrote: > Hi, > > On Fri, Oct 2, 2020 at 7:15 AM Manivannan Sadhasivam > wrote: > > > > 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,

[GIT PULL] RISC-V Fixes for 5.9

2020-10-02 Thread Palmer Dabbelt
The following changes since commit a1b8638ba1320e6684aa98233c15255eb803fac7: Linux 5.9-rc7 (2020-09-27 14:38:10 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-5.9-rc8 for you to fetch changes up to aa9887608

Re: [PATCH v6 4/5] PCI: only return true when dev io state is really changed

2020-10-02 Thread Sinan Kaya
On 9/30/2020 3:05 AM, Ethan Zhao wrote: > When uncorrectable error happens, AER driver and DPC driver interrupt > handlers likely call > >pcie_do_recovery() >->pci_walk_bus() > ->report_frozen_detected() > > with pci_channel_io_frozen the same time. We need some more data on this. I

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

2020-10-02 Thread Badhri Jagan Sridharan
Hi Greg, Yes I tested it on usb-next before sending it out. 630 | tcpci->tcpc.enable_frs = tcpci_enable_frs; In https://patchwork.kernel.org/project/linux-usb/list/?series=356837 i.e v9 version of this series, Patch 7 i.e. https://patchwork.kernel.org/patch/11804847/ is where the above line i

Re: [PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs

2020-10-02 Thread Matthias Kaehlcke
On Thu, Oct 01, 2020 at 09:21:53PM -0400, Alan Stern wrote: > On Thu, Oct 01, 2020 at 02:54:12PM -0700, Matthias Kaehlcke wrote: > > Hi, > > > > thanks for providing more insights on the USB hardware! > > Sure. > > > On Wed, Sep 30, 2020 at 09:24:13PM -0400, Alan Stern wrote: > > > A hub that at

Re: [PATCH 1/2] arm64: dts: apm: drop unused reg-io-width from DW APB GPIO controller

2020-10-02 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 06:50:39PM +0200, Krzysztof Kozlowski wrote: > The Synopsys DesignWare APB GPIO controller driver does not parse > reg-io-width and dtschema does not allow it so drop it to fix dtschema > warnings like: > > arch/arm64/boot/dts/apm/apm-mustang.dt.yaml: gpio@1c024000: >

Re: [PATCH 0/8] Add support for UHS modes in TI's J721e and J7200 boards

2020-10-02 Thread Faiz Abbas
Hi Nishanth, On 02/10/20 6:19 pm, Nishanth Menon wrote: > On 10:14-20201002, Faiz Abbas wrote: >> Hi Nishanth, >> >> On 02/10/20 12:43 am, Nishanth Menon wrote: >>> On 00:35-20201002, Faiz Abbas wrote: >>>> The following patches add support for UHS

[PATCH 0/2] Add driver for Microchip S/PDIF RX

2020-10-02 Thread Codrin Ciubotariu
The Sony/Philips Digital Interface Receiver (SPDIFRX) is a serial port compliant with the IEC-60958 standard. Among its caracteristics, we mention the following: - SPDIF/AES-EBU Compatible Serial Port - 32 Samples FIFO - Data Width Configurable to 24 bits, 20 bits or 16 bits - Packed and Unpack

[PATCH 2/2] ASoC: mchp-spdifrx: add driver for SPDIF RX

2020-10-02 Thread Codrin Ciubotariu
The new SPDIF RX controller is a serial port compliant with the IEC-60958 standard. It also supports programmable User Data and Channel Status fields. This IP is embedded in Microchip's sama7g5 SoC. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kconfig| 13 + sound/soc/atmel/Mak

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

2020-10-02 Thread Jann Horn
On Fri, Oct 2, 2020 at 4:19 PM Marco Elver wrote: > > 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

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

2020-10-02 Thread Maor Gottlieb
On 10/2/2020 6:02 PM, Jason Gunthorpe wrote: 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 siz

Re: [PATCH v2 1/2] ARM: dts: rk3188: correct interrupt flags

2020-10-02 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 08:52:10PM +0200, Krzysztof Kozlowski wrote: > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > These are simple defines so they could be used in DTS but they will not > have the same meaning: > 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE > 2. GPIO_ACTIVE

Re: [PATCH v2 1/1] scsi: libiscsi: fix NOP race condition

2020-10-02 Thread Lee Duncan
On 9/25/20 11:41 AM, ldun...@suse.com wrote: > From: Lee Duncan > > iSCSI NOPs are sometimes "lost", mistakenly sent to the > user-land iscsid daemon instead of handled in the kernel, > as they should be, resulting in a message from the daemon like: > >> iscsid: Got nop in, but kernel supports n

Re: [PATCH v2] dt-bindings: mfd: rohm,bd71837-pmic: Add common properties

2020-10-02 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 09:37:54PM +0200, Krzysztof Kozlowski wrote: > Add common properties appearing in DTSes (clock-names, > clock-output-names) with the common values (actually used in DTSes) to > fix dtbs_check warnings like: > > arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dt.yaml: >

Re: [PATCH 1/3] hwmon: bt1-pvt: Test sensor power supply on probe

2020-10-02 Thread Guenter Roeck
On Sun, Sep 20, 2020 at 02:09:21PM +0300, Serge Semin wrote: > Baikal-T1 PVT sensor has got a dedicated power supply domain (feed up by > the external GPVT/VPVT_18 pins). In case if it isn't powered up, the > registers will be accessible, but the sensor conversion just won't happen. > Due to that a

Re: [PATCH 2/3] hwmon: bt1-pvt: Cache current update timeout

2020-10-02 Thread Guenter Roeck
On Sun, Sep 20, 2020 at 02:09:22PM +0300, Serge Semin wrote: > Instead of converting the update timeout data to the milliseconds each > time on the read procedure let's preserve the currently set timeout in the > dedicated driver private data cache. The cached value will be then used in > the timeo

Re: [PATCH 3/3] hwmon: bt1-pvt: Wait for the completion with timeout

2020-10-02 Thread Guenter Roeck
On Sun, Sep 20, 2020 at 02:09:23PM +0300, Serge Semin wrote: > If the PVT sensor is suddenly powered down while a caller is waiting for > the conversion completion, the request won't be finished and the task will > hang up on this procedure until the power is back up again. Let's call the > wait_fo

Re: [PATCH 3/3] task_work: use TIF_TASKWORK if available

2020-10-02 Thread Jens Axboe
On 10/2/20 9:38 AM, Oleg Nesterov wrote: > On 10/02, Thomas Gleixner wrote: >> >> I think it's fundamentaly wrong that we have several places and several >> flags which handle task_work_run() instead of having exactly one place >> and one flag. > > Damn yes, agreed. As mentioned in the other repl

Re: [PATCH v7] Add MediaTek MT6779 devapc driver

2020-10-02 Thread Chun-Kuang Hu
Hi, Neal: You may find Matthias in IRC [1], the channel name is #linux-mediatek [1] https://webchat.freenode.net/ Neal Liu 於 2020年9月30日 週三 下午3:10寫道: > > Hi Matt, > > Hope this mail could find you well. > Is everything okay? > It would be glad if you could reply me no matter the review status. >

Re: [PATCH] mm/util.c: Add error logs for commitment overflow

2020-10-02 Thread pintu
On 2020-10-02 17:41, Matthew Wilcox wrote: I don't think the __func__ is particularly useful information. I would also expect the name of the process to be more interesting than the PID. And why is the ppid useful? Dear Matthew, First, thank you so much for your review and comments. I tot

[RESEND v3] dt-bindings: mailbox: fsl,mu: Add missing power-domains

2020-10-02 Thread Krzysztof Kozlowski
Add quite common property - power-domains - to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8qxp-mek.dt.yaml: mailbox@5d28: 'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Dong Aisheng --- Hi Rob,

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