[PATCH] mmc: meson-gx: remove IRQF_ONESHOT

2020-10-02 Thread Jerome Brunet
IRQF_ONESHOT was added to this driver to make sure the irq was not enabled again until the thread part of the irq had finished doing its job. Doing so upsets RT because, under RT, the hardirq part of the irq handler is not migrated to a thread if the irq is claimed with IRQF_ONESHOT. In this

[GIT PULL] Power management fixes for v5.9-rc8

2020-10-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.9-rc8 with top-most commit 7bbe8f2a7e7e819c050212a4bc984f03dc85af9d Merge branch 'pm-cpufreq' on top of commit a1b8638ba1320e6684aa98233c15255eb803fac7 Linux 5.9-rc7 to receive

Re: [PATCH 00/18] use semicolons rather than commas to separate statements

2020-10-02 Thread Shuah Khan
On 9/29/20 7:42 AM, Shuah Khan wrote: On 9/29/20 7:34 AM, Joe Perches wrote: On Tue, 2020-09-29 at 14:47 +0200, Julia Lawall wrote: On Tue, 29 Sep 2020, Dan Carpenter wrote: The times where commas are used deliberately to replace curly braces are just evil.  Either way the code is cleaner

Re: [mac80211_hwsim] 148fe295b7: hwsim.ap_long_preamble.fail

2020-10-02 Thread Thomas Pedersen
On 2020-10-02 01:29, kernel test robot wrote: Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 148fe295b7d9d892b2b0f47070233ccdc70c83cd ("mac80211_hwsim: indicate support for S1G") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase:

Re: [LKP] Re: [drm/dp] 6509ca051a: PANIC:double_fault

2020-10-02 Thread Ville Syrjälä
On Tue, Sep 29, 2020 at 01:26:09PM +0800, Rong Chen wrote: > > > On 9/25/20 12:42 AM, Ville Syrjälä wrote: > > On Thu, Sep 24, 2020 at 10:30:49PM +0800, kernel test robot wrote: > >> Greeting, > >> > >> FYI, we noticed the following commit (built with gcc-9): > >> > >> commit:

[PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-02 Thread Faiz Abbas
The following patches enable configs in the arm64 defconfig to support GPIO and I2C support on TI's J721e platform. Faiz Abbas (2): arm64: defconfig: Enable OMAP I2C driver arm64: defconfig: Enable DAVINCI_GPIO driver arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) --

[PATCH 2/2] arm64: defconfig: Enable DAVINCI_GPIO driver

2020-10-02 Thread Faiz Abbas
Enable support for devices compatible with TI's davinci gpio controllers. Signed-off-by: Faiz Abbas --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0d5b81264fa1..c4b657644e33 100644 ---

[PATCH 1/2] arm64: defconfig: Enable OMAP I2C driver

2020-10-02 Thread Faiz Abbas
Enable support for devices compatible with TI's OMAP I2C controllers. Signed-off-by: Faiz Abbas --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 55f9c35568bf..0d5b81264fa1 100644 ---

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

2020-10-02 Thread Jens Axboe
On 10/2/20 9:52 AM, Jens Axboe wrote: > 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

Re: [PATCH v3 0/3] media: rockchip: Introduce driver for Rockchip's camera interface

2020-10-02 Thread Dafna Hirschfeld
Am 02.10.20 um 18:31 schrieb Ezequiel Garcia: Hi Maxime, On Tue, 22 Sep 2020 at 13:55, Maxime Chevallier wrote: Hi everyone, This is the third iteration of the series introducing a driver for the PX30 camera interface. This was previously known as the "cif" driver in other iterations,

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

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

[RESEND PATCH v3] arm64: dts: renesas: align GPIO hog names with dtschema

2020-10-02 Thread Krzysztof Kozlowski
The convention for node names is to use hyphens, not underscores. dtschema for pca95xx expects GPIO hogs to end with 'hog' suffix. Signed-off-by: Krzysztof Kozlowski --- .../boot/dts/renesas/r8a77951-salvator-xs.dts | 2 +- .../boot/dts/renesas/r8a77965-salvator-xs.dts | 2 +-

[RESEND PATCH v3] arm64: dts: mediatek: align GPIO hog names with dtschema

2020-10-02 Thread Krzysztof Kozlowski
The convention for node names is to use hyphens, not underscores. dtschema for pca95xx expects GPIO hogs to end with 'hog' suffix. Signed-off-by: Krzysztof Kozlowski --- .../boot/dts/mediatek/pumpkin-common.dtsi | 26 +-- 1 file changed, 13 insertions(+), 13 deletions(-)

[RESEND PATCH v3 1/2] ARM: dts: aspeed: fix PCA95xx GPIO expander properties on Portwell

2020-10-02 Thread Krzysztof Kozlowski
The PCA95xx GPIO expander requires GPIO controller properties to operate properly. Signed-off-by: Krzysztof Kozlowski Acked-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-portwell-neptune.dts | 2 ++ 1 file changed, 2 insertions(+) The dt-schema changes were applied. diff --git

[RESEND PATCH v3 2/2] ARM: dts: aspeed: align GPIO hog names with dtschema

2020-10-02 Thread Krzysztof Kozlowski
dtschema for pca95xx expects GPIO hogs to end with 'hog' suffix. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 2 +- arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts | 16 2 files changed, 9 insertions(+), 9 deletions(-) diff --git

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

2020-10-02 Thread Dmitry Osipenko
02.10.2020 19:00, 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

Re: [PATCH 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

2020-10-02 Thread Jann Horn
On Fri, Oct 2, 2020 at 11:18 AM Michel Lespinasse wrote: > On Thu, Oct 1, 2020 at 6:25 PM Jann Horn wrote: > > Until now, the mmap lock of the nascent mm was ordered inside the mmap lock > > of the old mm (in dup_mmap() and in UML's activate_mm()). > > A following patch will change the exec path

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

2020-10-02 Thread Randy Dunlap
On 10/2/20 8:39 AM, Van Leeuwen, Pascal wrote: >> -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 >> ;

Re: [PATCH v3 0/3] media: rockchip: Introduce driver for Rockchip's camera interface

2020-10-02 Thread Ezequiel Garcia
Hi Maxime, On Tue, 22 Sep 2020 at 13:55, Maxime Chevallier wrote: > > Hi everyone, > > This is the third iteration of the series introducing a driver for the > PX30 camera interface. > > This was previously known as the "cif" driver in other iterations, but > was renamed to "vip" following

Re: [PATCH 1/3] watchdog: cadence: Simplify with dev_err_probe()

2020-10-02 Thread Krzysztof Kozlowski
On Tue, Sep 01, 2020 at 08:49:52AM -0700, Guenter Roeck wrote: > On Tue, Sep 01, 2020 at 05:31:39PM +0200, Krzysztof Kozlowski wrote: > > Common pattern of handling deferred probe can be simplified with > > dev_err_probe(). Less code and the error value gets printed. > > > > Signed-off-by:

drivers/net/wireless/realtek/rtw88/rtw8822c.c:2456:5: warning: variable 'corr_val' set but not used

2020-10-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 472e5b056f000a778abb41f1e443de58eb259783 commit: ba0fbe236fb8a7b992e82d6eafb03a600f5eba43 rtw88: extract: make 8822c an individual kernel module date: 5 months ago config: parisc-randconfig-r024-20201002

Re: [PATCH v3] mailbox: mediatek: Fix handling of platform_get_irq() error

2020-10-02 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 08:25:07PM +0200, Krzysztof Kozlowski wrote: > platform_get_irq() returns -ERRNO on error. In such case casting to u32 > and comparing to 0 would pass the check. > > Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver") > Signed-off-by: Krzysztof Kozlowski

virtiofs: WARN_ON(out_sgs + in_sgs != total_sgs)

2020-10-02 Thread Qian Cai
ump: loaded Not tainted 5.9.0-rc7-next-20201002+ #5 [ 4328.053714] Hardware name: Red Hat KVM, BIOS 1.14.0-1.module+el8.3.0+7638+07cf13d2 04/01/2014 [ 4328.059513] RIP: 0010:virtio_fs_enqueue_req+0xa86/0xdb0 [virtiofs] [ 4328.063812] Code: c1 e7 05 48 03 7c 24 10 6a 00 e8 85 a4 ff ff 8d 48 01 58 41

Re: [PATCH 05/14] fs: don't allow kernel reads and writes without iter ops

2020-10-02 Thread Linus Torvalds
On Thu, Oct 1, 2020 at 3:41 PM Al Viro wrote: > > Better > loff_t dummy = 0; > ... > wr = __kernel_write(file, data, bytes, ); No, just fix __kernel_write() to work correctly. The fact is, NULL _is_ the right pointer for ppos these days. That commit by Christoph is

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

2020-10-02 Thread Maxime Ripard
On Fri, Oct 02, 2020 at 06:01:21PM +0200, Clément Péron wrote: > 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

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! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR 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

Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-10-02 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年8月27日 週四 上午11:07寫道: > > MediaTek bus fabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violation is logged and sent to the processor for > further analysis or countermeasures. >

Re: [PATCH v3 01/27] Input: Simplify with dev_err_probe()

2020-10-02 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 08:58:02PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Changes since v2: > 1. Add review tags, > 2. Fixes after review (see individual patches). > 3. Two new patches - 26 and 27. > > Hi Dmitry, Any comments here? Some of these nicely simplify the code or remove some

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

2020-10-02 Thread Andrew Jones
On Fri, Oct 02, 2020 at 04:38:11PM +0100, Steven Price wrote: > 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: > > > > > >

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

2020-10-02 Thread pintu
On 2020-10-02 17:47, Michal Hocko wrote: __vm_enough_memory: commitment overflow: ppid:150, pid:164, pages:62451 fork failed[count:0]: Cannot allocate memory While I understand that fork failing due to overrcomit heuristic is non intuitive and I have seen people scratching heads due to this

[PATCH v2 6/6] x86: mremap speedup - Enable HAVE_MOVE_PUD

2020-10-02 Thread Kalesh Singh
HAVE_MOVE_PUD enables remapping pages at the PUD level if both the source and destination addresses are PUD-aligned. With HAVE_MOVE_PUD enabled it can be inferred that there is approximately a 13x improvement in performance on x86. (See data below). --- Test Results - The following

[PATCH][next] PCI/ASPM: fix an unintended sign extension of a u16

2020-10-02 Thread Colin King
From: Colin Ian King The multiplication of the u16 variable 'value' causes it to be prompted to a int type and this is then sign extended to a u64. When the result of the multiplication is > 0x7fff the upper bits are all unitentionally set to 1 on a sign extension operation. Fix this by

Re: [PATCHv1] power: supply: document current direction

2020-10-02 Thread Andreas Kemnade
On Thu, 27 Aug 2020 16:02:48 +0200 Sebastian Reichel wrote: > Currently the sign for CURRENT_NOW and CURRENT_AVG is a bit > of a mess. There are basically 3 different ways battery fuel > gauges report the current: > > 1. uses negative values for discharging and positive values >for charging

[PATCH v2 5/6] arm64: mremap speedup - Enable HAVE_MOVE_PUD

2020-10-02 Thread Kalesh Singh
HAVE_MOVE_PUD enables remapping pages at the PUD level if both the source and destination addresses are PUD-aligned. With HAVE_MOVE_PUD enabled it can be inferred that there is approximately a 19x improvement in performance on arm64. (See data below). --- Test Results - The

[PATCH v2 4/6] arm64: Add set_pud_at() function

2020-10-02 Thread Kalesh Singh
set_pud_at() is used in move_normal_pud() for remapping pages at the PUD level. Signed-off-by: Kalesh Singh --- arch/arm64/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index

[PATCH v2 3/6] mm: Speedup mremap on 1GB or larger regions

2020-10-02 Thread Kalesh Singh
Android needs to move large memory regions for garbage collection. The GC requires moving physical pages of multi-gigabyte heap using mremap. During this move, the application threads have to be paused for correctness. It is critical to keep this pause as short as possible to avoid jitters during

[PATCH v2 2/6] arm64: mremap speedup - Enable HAVE_MOVE_PMD

2020-10-02 Thread Kalesh Singh
HAVE_MOVE_PMD enables remapping pages at the PMD level if both the source and destination addresses are PMD-aligned. HAVE_MOVE_PMD is already enabled on x86. The original patch [1] that introduced this config did not enable it on arm64 at the time because of performance issues with flushing the

[PATCH v2 1/6] kselftests: vm: Add mremap tests

2020-10-02 Thread Kalesh Singh
Test mremap on regions of various sizes and alignments and validate data after remapping. Also provide total time for remapping the region which is useful for performance comparison of the mremap optimizations that move pages at the PMD/PUD levels if HAVE_MOVE_PMD and/or HAVE_MOVE_PUD are enabled.

[PATCH v2 0/6] Speed up mremap on large regions

2020-10-02 Thread Kalesh Singh
This version 2 of the mremap speed up patches previously posted at: https://lore.kernel.org/r/20200930222130.4175584-1-kaleshsi...@google.com mremap time can be optimized by moving entries at the PMD/PUD level if the source and destination addresses are PMD/PUD-aligned and PMD/PUD-sized. Enable

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

2020-10-02 Thread Andrew Jones
On Fri, Oct 02, 2020 at 04:30:47PM +0100, Steven Price wrote: > On 02/10/2020 15:30, Andrew Jones wrote: > > On Fri, Sep 25, 2020 at 10:36:07AM +0100, Steven Price wrote: > > > + if (system_supports_mte() && kvm->arch.mte_enabled && pfn_valid(pfn)) { > > > > 'system_supports_mte() &&

Re: [PATCH 1/1] mfd: sl28cpld: Depend on I2C

2020-10-02 Thread Randy Dunlap
On 10/2/20 1:35 AM, Lee Jones wrote: > Fixes the following randconfig build error: > > ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe': > simple-mfd-i2c.c:(.text+0x48): undefined reference to > `__devm_regmap_init_i2c' > ld: drivers/mfd/simple-mfd-i2c.o: in function

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 Fri, Oct 02, 2020 at 07:11:33PM +0300, Maor Gottlieb wrote: > > 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,

[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

Re: [PATCH] arm64: dts: qcom: sc7180: Fix one forgotten interconnect reference

2020-10-02 Thread Georgi Djakov
Thanks for the patch! On 10/2/20 00:18, Douglas Anderson wrote: > In commit e23b1220a246 ("arm64: dts: qcom: sc7180: Increase the number > of interconnect cells") we missed increasing the cells on one > interconnect. That's no bueno. Fix it. > > NOTE: it appears that things aren't totally

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

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

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

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

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

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

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.

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

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,

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

[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

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

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

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

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.

[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

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.

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

[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

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

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

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

[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

[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

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

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

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

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.

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

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

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.

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

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