Re: [oss-security] CVE-2020-25656: Linux kernel concurrency UAF in vt_do_kdgkb_ioctl

2020-10-15 Thread Jiri Slaby
Cc Greg. On 16. 10. 20, 5:39, Minh Yuan wrote: Hi, We recently discovered a uaf read in vt_do_kdgkb_ioctl from linux kernel version 3.4 to the latest version (v5.9 for now). The root cause of this vulnerability is that there exits a race in KDGKBSENT and KDSKBSENT. Here are details: 1. use K

Re: [PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-15 Thread Ard Biesheuvel
On Thu, 15 Oct 2020 at 12:31, Lorenzo Pieralisi wrote: > > On Wed, Oct 14, 2020 at 09:12:09PM +0200, Nicolas Saenz Julienne wrote: > > [...] > > > +unsigned int __init acpi_iort_get_zone_dma_size(void) > > +{ > > + struct acpi_table_iort *iort; > > + struct acpi_iort_node *node, *end; > >

Re: [PATCH 3/8] powerpc: Mark functions called inside uaccess blocks w/ 'notrace'

2020-10-15 Thread Christoph Hellwig
On Thu, Oct 15, 2020 at 10:01:54AM -0500, Christopher M. Riedl wrote: > Functions called between user_*_access_begin() and user_*_access_end() > should be either inlined or marked 'notrace' to prevent leaving > userspace access exposed. Mark any such functions relevant to signal > handling so that

Re: [PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-15 Thread Ard Biesheuvel
On Fri, 16 Oct 2020 at 08:51, Hanjun Guo wrote: > > On 2020/10/16 2:03, Catalin Marinas wrote: > > On Thu, Oct 15, 2020 at 10:26:18PM +0800, Hanjun Guo wrote: > >> On 2020/10/15 3:12, Nicolas Saenz Julienne wrote: > >>> From: Ard Biesheuvel > >>> > >>> We recently introduced a 1 GB sized ZONE_DMA

Re: [PATCH 1/8] powerpc/uaccess: Add unsafe_copy_from_user

2020-10-15 Thread Christoph Hellwig
On Thu, Oct 15, 2020 at 10:01:52AM -0500, Christopher M. Riedl wrote: > Implement raw_copy_from_user_allowed() which assumes that userspace read > access is open. Use this new function to implement raw_copy_from_user(). > Finally, wrap the new function to follow the usual "unsafe_" convention > of

Re: [PATCH 5/7] dmaengine: at_xdmac: add support for sama7g5 based at_xdmac

2020-10-15 Thread Eugen.Hristev
On 23.09.2020 10:08, Tudor Ambarus - M18064 wrote: > On 9/14/20 5:09 PM, Eugen Hristev wrote: >> SAMA7G5 SoC uses a slightly different variant of the AT_XDMAC. >> Added support by a new compatible and a layout struct that copes >> to the specific version considering the compatible string. >> Only t

RE: [PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:22 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: devicet...@vger.kernel.org; Peng Fan ; Ying Liu > ; net...@vger.kernel.org; Pankaj Bansal > ; linux-kernel@vger.k

RE: [PATCH 3/6] dt-bindings: can: flexcan: add fsl, can-index property to indicate a resource

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:20 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: devicet...@vger.kernel.org; Peng Fan ; Ying Liu > ; net...@vger.kernel.org; Pankaj Bansal > ; linux-kernel@vger.k

Re: [PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-15 Thread Hanjun Guo
On 2020/10/16 2:03, Catalin Marinas wrote: On Thu, Oct 15, 2020 at 10:26:18PM +0800, Hanjun Guo wrote: On 2020/10/15 3:12, Nicolas Saenz Julienne wrote: From: Ard Biesheuvel We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32

RE: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:19 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > net..

Re: [PATCH 4/5] Add manpage for fsopen(2) and fsmount(2)

2020-10-15 Thread Michael Kerrisk (man-pages)
Hi David, Another ping for these five patches please! Cheers, Michael On Fri, 11 Sep 2020 at 14:44, Michael Kerrisk (man-pages) wrote: > > Hi David, > > A ping for these five patches please! > > Cheers, > > Michael > > On Wed, 2 Sep 2020 at 22:14, Michael Kerrisk (man-pages) > wrote: > > > >

RE: [PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:05 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > net..

RE: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:00 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > net..

Re: [PATCH 6/7] dt-bindings: dmaengine: at_xdmac: add optional microchip,m2m property

2020-10-15 Thread Eugen.Hristev
On 23.09.2020 02:33, Rob Herring wrote: > On Mon, Sep 14, 2020 at 05:09:55PM +0300, Eugen Hristev wrote: >> Add optional microchip,m2m property that specifies if a controller is >> dedicated to memory to memory operations only. >> >> Signed-off-by: Eugen Hristev >> --- >> Documentation/devicetr

[PATCH] HID: uclogic: Add ID for Trust Flex Design Tablet

2020-10-15 Thread Martijn van de Streek
The Trust Flex Design Tablet has an UGTizer USB ID and requires the same initialization as the UGTizer GP0610 to be detected as a graphics tablet instead of a mouse. Signed-off-by: Martijn van de Streek --- drivers/hid/hid-ids.h| 1 + drivers/hid/hid-uclogic-core.c | 2 ++ drivers/

Re: [PATCH V2 2/2] cpufreq: dt: Refactor initialization to handle probe deferral properly

2020-10-15 Thread Geert Uytterhoeven
Hi Viresh, On Fri, Oct 16, 2020 at 7:03 AM Viresh Kumar wrote: > On 14-10-20, 18:40, Geert Uytterhoeven wrote: > > On this platform (r8a7791-koelsch.dts), there is no opp table in DT. I think you missed the clue above: this DTS does not have an opp-table with operating-points-v2, but cpu0 does h

[PATCH] [v4] wireless: Initial driver submission for pureLiFi STA devices

2020-10-15 Thread Srinivasan Raju
This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC and LiFi-XL USB devices. This driver implementation has been based on the zd1211rw driver. Driver is based on 802.11 softMAC Architecture and uses native 802.11 for configuration and management. The driver is compiled and tested in ARM

Re: [PATCH] [PATCH] [v3] wireless: Initial driver submission for pureLiFi STA devices

2020-10-15 Thread Srinivasan Raju
Thanks for your comments Joe, I have resubmitted with the comments addressed Regards, Srini

Re: [PATCH v2 16/16] iomap: Make readpage synchronous

2020-10-15 Thread Christoph Hellwig
On Thu, Oct 15, 2020 at 08:03:12PM +0100, Matthew Wilcox wrote: > I honestly don't see the problem. We have to assign the status > conditionally anyway so we don't overwrite an error with a subsequent > success. Yes, but having a potential NULL pointer to a common structure is just waiting for tr

Hello....

2020-10-15 Thread Dawuda Usman
Dear Friend, I am Mr. Dawuda Usman working with the department of Audit and accounting manager here in the Bank, There is this fund that was kept in my custody years ago,please I need your assistance for the transferring of this fund to your bank account for both of us benefit for life time i

Re: [PATCH v1 12/29] virtio-mem: factor out fake-offlining into virtio_mem_fake_offline()

2020-10-15 Thread Wei Yang
On Mon, Oct 12, 2020 at 02:53:06PM +0200, David Hildenbrand wrote: >... which now matches virtio_mem_fake_online(). We'll reuse this >functionality soon. > >Cc: "Michael S. Tsirkin" >Cc: Jason Wang >Cc: Pankaj Gupta >Signed-off-by: David Hildenbrand Reviewed-by: Wei Yang >--- > drivers/virti

Re: [PATCH 4/6] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk > to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will > add quirk for scu SoCs. > > For non-scu SoCs, setup stop mode with GPR register. > For scu SoCs, setup stop mode

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread kernel test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/kiransuren-osuosl-org/Staging-android-ashmem-changed-struct-file_operations-to-const-file_operations/20201016-131238 base: https://git.ker

swapon/913 is trying to acquire lock at zcomp_stream_get+0x5/0x90 [zram] but task is already holding lock at zs_map_object+0x7a/0x2e0

2020-10-15 Thread Mikhail Gavrilov
Hi folks, today I joined to testing Kernel 5.10 and see that every boot happens this warning: [9.032096] == [9.032097] WARNING: possible circular locking dependency detected [9.032098] 5.10.0-0.rc0.20201014gitb5fc7a89e58b.41.fc34.x86_

Re: [PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" > to get this property. Hopefully today Oleksij will post the next round of the yaml bindings conversion patch. Please resping when Oleksij's patch is applied. Marc -- Pengu

Re: [PATCH 3/6] dt-bindings: can: flexcan: add fsl, can-index property to indicate a resource

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > For SoCs with SCU support, need setup stop mode via SCU firmware, > so this property can help indicate a resource. > > Signed-off-by: Joakim Zhang > --- > Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 5 + > 1 file changed, 5 insertion

Re: [RFC] PCI: allow sysfs file owner to read the config space with CAP_SYS_RAWIO

2020-10-15 Thread Greg KH
On Fri, Oct 16, 2020 at 11:22:35AM +0530, Allen Pais wrote: > From: Allen Pais > > Access to pci config space is explictly checked with CAP_SYS_ADMIN > in order to read configuration space past the frist 64B. > > Since the path is only for reading, could we use CAP_SYS_RAWIO? Why? What needs

Recall: [PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED

2020-10-15 Thread Michael.Wu
Michael.Wu(吳忠益) would like to recall the message, "[PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED".

Re: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > The System Controller Firmware (SCFW) is a low-level system function > which runs on a dedicated Cortex-M core to provide power, clock, and > resource management. It exists on some i.MX8 processors. e.g. i.MX8QM > (QM, QP), and i.MX8QX (QXP, DX). SCU drive

Recall: [PATCH 1/2] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-15 Thread Michael.Wu
Michael.Wu(吳忠益) would like to recall the message, "[PATCH 1/2] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once".

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Yuehaibing
On 2020/10/16 3:57, Alexei Starovoitov wrote: > On Thu, Oct 15, 2020 at 12:26 PM Jakub Kicinski wrote: >> >> On Thu, 15 Oct 2020 12:03:14 -0700 Alexei Starovoitov wrote: >>> On Thu, Oct 15, 2020 at 11:56 AM Jakub Kicinski wrote: How so? It's using in-tree headers instead of system ones. >

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Fri, Oct 16, 2020 at 01:38

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-10-15 Thread Hans de Goede
Hi, On 10/16/20 12:39 AM, Matthew Garrett wrote: On Thu, Oct 15, 2020 at 2:44 PM Jerry Snitselaar wrote: There is a misconfiguration in the bios of the gpio pin used for the interrupt in the T490s. When interrupts are enabled in the tpm_tis driver code this results in an interrupt storm. This

RE: [PATCH] usb: gadget: fsl: fix null pointer checking

2020-10-15 Thread Peter Chen
> > Fixes: 75eaa498c99e (“usb: gadget: Correct NULL pointer checking in fsl > gadget”) > Signed-off-by: Ran Wang > --- > drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c > b/drivers/usb/gadget/

Re: [PATCH v1 11/29] virtio-mem: use "unsigned long" for nr_pages when fake onlining/offlining

2020-10-15 Thread Wei Yang
On Mon, Oct 12, 2020 at 02:53:05PM +0200, David Hildenbrand wrote: >No harm done, but let's be consistent. > >Cc: "Michael S. Tsirkin" >Cc: Jason Wang >Cc: Pankaj Gupta >Signed-off-by: David Hildenbrand Reviewed-by: Wei Yang >--- > drivers/virtio/virtio_mem.c | 8 > 1 file changed, 4

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-10-15 Thread Hans de Goede
Hi, On 10/15/20 11:44 PM, Jerry Snitselaar wrote: There is a misconfiguration in the bios of the gpio pin used for the interrupt in the T490s. When interrupts are enabled in the tpm_tis driver code this results in an interrupt storm. This was initially reported when we attempted to enable the in

[PATCH 1/2] fpga: dfl: add driver_override support

2020-10-15 Thread Xu Yilun
Add support for overriding the default matching of a dfl device to a dfl driver. It follows the same way that can be used for PCI and platform devices. This patch adds the 'driver_override' sysfs file. Signed-off-by: Xu Yilun --- Documentation/ABI/testing/sysfs-bus-dfl | 28 ++--- dr

[PATCH 2/2] fpga: dfl: add the userspace I/O device support for DFL devices

2020-10-15 Thread Xu Yilun
This patch supports the DFL drivers be written in userspace. This is realized by exposing the userspace I/O device interfaces. The driver leverages the uio_pdrv_genirq, it adds the uio_pdrv_genirq platform device with the DFL device's resources, and let the generic UIO platform device driver provid

[PATCH 0/2] UIO support for dfl devices

2020-10-15 Thread Xu Yilun
This patchset supports some dfl device drivers written in userspace. The usage is like: # echo dfl_dev.1 > /sys/bus/dfl/drivers//unbind # echo dfl-uio-pdev > /sys/bus/dfl/devices/dfl_dev.1/driver_override # echo dfl_dev.1 > /sys/bus/dfl/drivers_probe Xu Yilun (2): fpga: dfl: add driver_ove

[PATCH 1/2] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-15 Thread Michael Wu
i2c_dw_read_clear_intrbits_slave() was called per each interrupt handle. It caused some interrupt bits which haven't been handled yet were cleared, the corresponding handlers would do nothing due to interrupt bits been discarded. For example, $ i2cset -f -y 2 0x42 0x00 0x41; dmesg -c [0][clear_int

[PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED

2020-10-15 Thread Michael Wu
Sometime we would get the following flows when doing an i2cset: 1. No any WRITE_REQUESTED 0x1 STATUS SLAVE_ACTIVITY=0x1 : RAW_INTR_STAT=0x514 : INTR_STAT=0x4 WRITE_RECEIVED 0x1 STATUS SLAVE_ACTIVITY=0x1 : RAW_INTR_STAT=0x514 : INTR_STAT=0x4 WRITE_RECEIVED 0x1 STATUS SLAVE_ACTIVITY=0x0 : RAW_INTR_S

Re: [PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > After double check with Layerscape CAN owner (Pankaj Bansal), confirm > that LS1021A doesn't support ECC, and LX2160A indeed supports ECC. > > For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to > disable non-correctable errors inter

[PATCH] scsi: ufs: fix no clkgating due to tag being alive

2020-10-15 Thread Jaegeuk Kim
The below call stack prevents clk_gating at every IO completion. We can remove the condition, ufshcd_any_tag_in_use(), since clkgating_work will check it again. ufshcd_complete_requests(struct ufs_hba *hba) ufshcd_transfer_req_compl() __ufshcd_transfer_req_compl() __ufshcd_release(hba)

Re: linux-next: manual merge of the wireless-drivers tree with the net tree

2020-10-15 Thread Kalle Valo
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the wireless-drivers tree got a conflict in: > > tools/testing/selftests/net/Makefile > > between commit: > > 1a01727676a8 ("selftests: Add VRF route leaking tests") > > from the net tree and commit: > > b7cc6d3c5c91 ("selft

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-15 Thread Sudeep Holla
On Fri, Oct 16, 2020 at 09:54:34AM +0530, Viresh Kumar wrote: > On 15-10-20, 19:05, Sudeep Holla wrote: > > OK, this breaks with SCMI which doesn't provide clocks but manage OPPs > > directly. Before this change clk_get(dev..) was allowed to fail and > > --EPROBE_DEFER was not an error. > > I thin

Re: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > The System Controller Firmware (SCFW) is a low-level system function > which runs on a dedicated Cortex-M core to provide power, clock, and > resource management. It exists on some i.MX8 processors. e.g. i.MX8QM > (QM, QP), and i.MX8QX (QXP, DX). SCU drive

Re: [GIT PULL] Networking

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This pull request was applied to netdev/net.git (refs/heads/master): On Thu, 15 Oct 2020 14:13:02 -0700 you wrote: > Hi! > > The following changes since commit 3fdd47c3b40ac48e6e6e5904cf24d12e6e073a96: > > Merge tag 'for_linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vh

linux-next: Tree for Oct 16

2020-10-15 Thread Stephen Rothwell
Hi all, Since the merge window is open, please do not add any v5.11 material to your linux-next included branches until after v5.10-rc1 has been released. News: there will be no linux-next releases next Monday or Tuesday. Changes since 20201015: Undropped tree: btrfs The wireless-drivers tree

[RFC] PCI: allow sysfs file owner to read the config space with CAP_SYS_RAWIO

2020-10-15 Thread Allen Pais
From: Allen Pais Access to pci config space is explictly checked with CAP_SYS_ADMIN in order to read configuration space past the frist 64B. Since the path is only for reading, could we use CAP_SYS_RAWIO? This patch contains a simpler fix, I would love to hear from the Maintainers on the appro

Re: WARNING: at drivers/opp/core.c:678 dev_pm_opp_set_rate+0x4cc/0x5d4 - on arm x15

2020-10-15 Thread Viresh Kumar
+Dave, On 15-10-20, 15:26, Naresh Kamboju wrote: > The arm x15 boot failed on Linus 's mainline version 5.9.0. Don't mention the version as this doesn't give the right information. You tested it over 5.9 + 5.10-rc1 material. > I have listed the latest commits on drivers/opp/ . > > metadata: >

[rcu:dev.2020.10.14a] BUILD SUCCESS 87fb0cc38d2583d4084e2ddaa937625fd2d876e0

2020-10-15 Thread kernel test robot
randconfig-a003-20201014 x86_64 randconfig-a016-20201015 x86_64 randconfig-a012-20201015 x86_64 randconfig-a015-20201015 x86_64 randconfig-a013-20201015 x86_64 randconfig-a014-20201015 x86_64 randconfig-a011-20201015

Re: autofs crash with latest linux-next

2020-10-15 Thread Sven Schnelle
Kees Cook writes: > On Wed, Oct 14, 2020 at 09:15:47AM +0200, Krzysztof Kozlowski wrote: >> I hit this since few days as well. Although the bisect points to the >> merge, the issue looks like a result of mentioned commit 4d03e3cc5982 >> ("fs: don't allow kernel reads and writes without iter ops")

[PATCH 4/6] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-15 Thread Joakim Zhang
This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will add quirk for scu SoCs. For non-scu SoCs, setup stop mode with GPR register. For scu SoCs, setup stop mode with SCU firmware. Signed-off-by: Joakim Zhang ---

[PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Joakim Zhang
After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LS1021A doesn't support ECC, and LX2160A indeed supports ECC. For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to disable non-correctable errors interrupt and freeze mode, had better use FLEXCAN_QUIRK_

[PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). SCU driver manages the IPC interface between host CPU and

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-15 Thread Greg Kroah-Hartman
On Fri, Oct 16, 2020 at 11:51:09AM +0800, Joseph Jang wrote: > From: josephjang Please use your name as spelled out like you did above in the email header. > > Add suspend timeout handler to prevent device stuck during suspend/ > resume process. Suspend timeout handler will dump disk sleep task

[PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Joakim Zhang
Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" to get this property. Fixes: 9d733992772d ("dt-bindings: can: flexcan: add PE clock source property to device tree") Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 +- 1

[PATCH 3/6] dt-bindings: can: flexcan: add fsl,can-index property to indicate a resource

2020-10-15 Thread Joakim Zhang
For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource. Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/ne

[PATCH 1/6] firmware: imx: always export SCU symbols

2020-10-15 Thread Joakim Zhang
From: Liu Ying Always export SCU symbols for both SCU SoCs and non-SCU SoCs to avoid build error. Signed-off-by: Liu Ying Signed-off-by: Peng Fan Signed-off-by: Joakim Zhang --- include/linux/firmware/imx/ipc.h | 15 +++ include/linux/firmware/imx/svc/misc.h | 23 +++

[PATCH 0/6] can: flexcan: add stop mode support for i.MX8QM

2020-10-15 Thread Joakim Zhang
The first patch from Liu Ying aims to export SCU symbols for SoCs w/wo SCU, so that no need to check CONFIG_IMX_SCU in the specific driver. The following patches are for flexcan to add stop mode support for i.MX8QM. Joakim Zhang (5): dt-bindings: can: flexcan: fix fsl,clk-source property dt-b

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-15 Thread Richard Palethorpe
Hello Roman, Roman Gushchin writes: > Hi Richard! > >> SLAB objects which outlive their memcg are moved to their parent >> memcg where they may be uncharged. However if they are moved to the >> root memcg, uncharging will result in negative page counter values as >> root has no page counters. >>

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread Greg KH
On Fri, Oct 16, 2020 at 01:11:11AM -0400, kiransu...@osuosl.org wrote: > From: kiransuren This does not match your signed-off-by line :( > > Fixed a coding style issue. What issue? Always be specific. > > Signed-off-by: Kiran Surendran > --- > drivers/staging/android/ashmem.c | 2 +- > 1

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread Randy Dunlap
On 10/15/20 10:11 PM, kiransu...@osuosl.org wrote: > From: kiransuren > > Fixed a coding style issue. > > Signed-off-by: Kiran Surendran > --- > drivers/staging/android/ashmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/android/ashmem.c > b/driv

Re: [PATCH v3 09/13] ASoC: dt-bindings: tegra: Add schema for audio graph card

2020-10-15 Thread Sameer Pujar
Add YAML schema for Tegra audio graph sound card DT bindings. It uses the same DT bindings provided by generic audio graph driver. Along with this few standard clock DT bindings are added which are specifically required for Tegra audio. Signed-off-by: Sameer Pujar ---   .../sound/nvidia,te

[PATCH] f2fs: add compr_inode and compr_blocks sysfs nodes

2020-10-15 Thread Daeho Jeong
From: Daeho Jeong Added compr_inode to show compressed inode count and compr_blocks to show compressed block count in sysfs. Signed-off-by: Daeho Jeong --- Documentation/ABI/testing/sysfs-fs-f2fs | 10 ++ fs/f2fs/sysfs.c | 17 + 2 files changed,

Re: [PATCH V2 2/2] cpufreq: dt: Refactor initialization to handle probe deferral properly

2020-10-15 Thread Viresh Kumar
On 14-10-20, 18:40, Geert Uytterhoeven wrote: > On this platform (r8a7791-koelsch.dts), there is no opp table in DT. > > Before: I assume this means before this patchset came in.. > boot: > cpufreq-dt cpufreq-dt: dt_cpufreq_probe:362 > cpu cpu0: resources_available:95 > c

[PATCH 3/4] scatterlist: add sgl_compare_sgl() function

2020-10-15 Thread Douglas Gilbert
After enabling copies between scatter gather lists (sgl_s), another storage related operation is to compare two sgl_s. This new function is modelled on NVMe's Compare command and the SCSI VERIFY(BYTCHK=1) command. Like memcmp() this function returns false on the first miscompare and stop comparing.

[PATCH 4/4] scatterlist: add sgl_memset()

2020-10-15 Thread Douglas Gilbert
The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes. As its name suggests sgl_memset() is modelled on memset(). One difference is the type of the val argument which is u8 rather than int. Signed-off-by: D

[PATCH 0/4] scatterlist: add new capabilities

2020-10-15 Thread Douglas Gilbert
Scatter-gather lists (sgl_s) are frequently used as data carriers in the block layer. For example the SCSI and NVMe subsystems interchange data with the block layer using sgl_s. The sgl API is declared in The author has extended these transient sgl use cases to a store (i.e. ramdisk) in the scsi_

[PATCH 1/4] sgl_alloc_order: remove 4 GiB limit, sgl_free() warning

2020-10-15 Thread Douglas Gilbert
This patch removes a check done by sgl_alloc_order() before it starts any allocations. The comment before the removed code says: "Check for integer overflow" arguably gives a false sense of security. The right hand side of the expression in the condition is resolved as u32 so cannot exceed UINT32_M

[PATCH 2/4] scatterlist: add sgl_copy_sgl() function

2020-10-15 Thread Douglas Gilbert
Both the SCSI and NVMe subsystems receive user data from the block layer in scatterlist_s (aka scatter gather lists (sgl) which are often arrays). If drivers in those subsystems represent storage (e.g. a ramdisk) or cache "hot" user data then they may also choose to use scatterlist_s. Currently the

linux-next: build failure after merge of the akpm-current tree

2020-10-15 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: mm/readahead.c: In function 'page_cache_sync_ra': mm/readahead.c:565:8: error: 'filp' undeclared (first use in this function); did you mean 'file'? 565 | if (!filp) |

[PATCH] usb: gadget: fsl: fix null pointer checking

2020-10-15 Thread Ran Wang
fsl_ep_fifo_status() should return error if _ep->desc is null. Fixes: 75eaa498c99e (“usb: gadget: Correct NULL pointer checking in fsl gadget”) Signed-off-by: Ran Wang --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget

[PATCH 2/2] ARM: dts: tacoma: Add reserved memory for ramoops

2020-10-15 Thread Andrew Jeffery
Reserve a 1.5MiB region of memory to record kmsg dumps, console and userspace message state into 16kiB ring-buffer slots. The sizing allows for up to 32 dumps to be captured and read out. Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. Signed-off-by: Andrew Jeffery --- arch/arm/b

[PATCH 1/2] ARM: dts: rainier: Add reserved memory for ramoops

2020-10-15 Thread Andrew Jeffery
Reserve a 1.5MiB region of memory to record kmsg dumps, console and userspace message state into 16kiB ring-buffer slots. The sizing allows for up to 32 dumps to be captured and read out. Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. Signed-off-by: Andrew Jeffery --- arch/arm/b

[PATCH 0/2] ARM: dts: Enable ramoops for Rainier and Tacoma

2020-10-15 Thread Andrew Jeffery
Hi, We're looking to improve our crash data capture for the BMC on some IBM platforms. This small series enables ramoops for Rainier and Tacoma. Please review. Andrew Andrew Jeffery (2): ARM: dts: rainier: Add reserved memory for ramoops ARM: dts: tacoma: Add reserved memory for ramoops a

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-15 Thread Viresh Kumar
On 15-10-20, 19:05, Sudeep Holla wrote: > OK, this breaks with SCMI which doesn't provide clocks but manage OPPs > directly. Before this change clk_get(dev..) was allowed to fail and > --EPROBE_DEFER was not an error. I think the change in itself is fine. We should be returning from there if we ge

RE: [PATCH v3 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-15 Thread Sagar Kadam
Hello Peter, > -Original Message- > From: Peter Korsgaard On Behalf Of Peter Korsgaard > Sent: Thursday, October 15, 2020 8:19 PM > To: Sagar Kadam > Cc: linux-kernel@vger.kernel.org; linux-ri...@lists.infradead.org; linux- > i...@vger.kernel.org; and...@lunn.ch; Paul Walmsley ( Sifive)

[PATCH] tracing: Remove __init from __trace_early_add_new_event()

2020-10-15 Thread Masami Hiramatsu
The commit 720dee53ad8d ("tracing/boot: Initialize per-instance event list in early boot") removes __init from __trace_early_add_events() but __trace_early_add_new_event() still has __init and will cause a section mismatch. Remove __init from __trace_early_add_new_event() as same as __trace_early_

[PATCHv4] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-15 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the c

Re: [PATCH V2] cpufreq: tegra186: Fix initial frequency

2020-10-15 Thread Viresh Kumar
On 15-10-20, 15:03, Jon Hunter wrote: > If not too late, would you mind dropping this patch for v5.10? It is already part of Linus's master now. -- viresh

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Masami Hiramatsu
On Thu, 15 Oct 2020 23:54:44 -0400 Steven Rostedt wrote: > On Fri, 16 Oct 2020 11:53:23 +0900 > Masami Hiramatsu wrote: > > > > > > > I'll have to think about how to untangle this. Is there some kind of > > > annotation that makes it show that a path can only be called at boot up > > > and >

Re: [PATCH v1 09/29] virtio-mem: don't always trigger the workqueue when offlining memory

2020-10-15 Thread Wei Yang
On Mon, Oct 12, 2020 at 02:53:03PM +0200, David Hildenbrand wrote: >Let's trigger from offlining code when we're not allowed to touch online >memory. This describes the change in virtio_mem_memory_notifier_cb()? > >Handle the other case (memmap possibly freeing up another memory block) >when actu

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

2020-10-15 Thread Nicolin Chen
On Thu, Oct 15, 2020 at 10:55:52AM +0100, Robin Murphy wrote: > On 2020-10-15 05:13, Nicolin Chen wrote: > > On Wed, Oct 14, 2020 at 06:42:36PM +0100, Robin Murphy wrote: > > > On 2020-10-09 17:19, Nicolin Chen wrote: > > > > This patch simply adds support for PCI devices. > > > > > > > > Reviewed

Re: [RFC PATCH 2/3] hugetlbfs: introduce hinode_rwsem for pmd sharing synchronization

2020-10-15 Thread Mike Kravetz
On 10/15/20 4:05 PM, HORIGUCHI NAOYA(堀口 直也) wrote: > On Tue, Oct 13, 2020 at 04:10:59PM -0700, Mike Kravetz wrote: >> Due to pmd sharing, the huge PTE pointer returned by huge_pte_alloc >> may not be valid. This can happen if a call to huge_pmd_unshare for >> the same pmd is made in another thread

Re: [PATCH v4 00/32] Make charlcd device independent

2020-10-15 Thread Miguel Ojeda
On Fri, Oct 16, 2020 at 4:33 AM Miguel Ojeda wrote: > > Picking these for linux-next (including Rob's Reviewed-by). I have > spotted a few typos that I corrected -- I will note them by email. Hmm, I think we should do another round instead, since I found what looks to be an unintended revert of a

Re: [PATCH v4 08/32] auxdisplay: hd44780_common_print

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 2:27 PM wrote: > > We create a hd44780_common_print function. It is derived from the > original charlcd_print. charlcd_print becomes a device independent print > function, that then only calles via it's ops function pointers, into the Typos: calles -> calls, it's -> its >

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Steven Rostedt
On Fri, 16 Oct 2020 11:53:23 +0900 Masami Hiramatsu wrote: > > > > I'll have to think about how to untangle this. Is there some kind of > > annotation that makes it show that a path can only be called at boot up and > > not later? > > What happen if we use Peter's static_call() and update it

[PATCH] power: suspend: Add suspend timeout handler

2020-10-15 Thread Joseph Jang
From: josephjang Add suspend timeout handler to prevent device stuck during suspend/ resume process. Suspend timeout handler will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is 30 seconds. Note: Can use following

[PATCH] mm: vmscan: avoid a unnecessary reschedule in shrink_slab()

2020-10-15 Thread Xianting Tian
In shrink_slab(), it directly goes to 'out' label only when it can't get the lock of shrinker_rwsew. In this case, it doesn't do the real work of shrinking slab, so we don't need trigger a reschedule by cond_resched(). Signed-off-by: Xianting Tian --- mm/vmscan.c | 3 ++- 1 file changed, 2 inser

Re: [PATCH V2] scripts: spelling: Remove space in the entry memry to memory

2020-10-15 Thread Bhaskar Chowdhury
On 20:19 Thu 15 Oct 2020, Joe Perches wrote: On Fri, 2020-10-16 at 04:38 +0530, Bhaskar Chowdhury wrote: On 16:06 Thu 15 Oct 2020, Joe Perches wrote: > On Fri, 2020-10-16 at 04:25 +0530, Bhaskar Chowdhury wrote: > > You have all flawed understanding...please stay away .. > > if you don't underst

Re: fw_devlink on will break all snps,dw-apb-gpio users

2020-10-15 Thread Jisheng Zhang
On Thu, 15 Oct 2020 15:08:33 +0100 Robin Murphy wrote: > > > On 2020-10-15 10:52, Jisheng Zhang wrote: > > On Thu, 15 Oct 2020 01:48:13 -0700 > > Saravana Kannan wrote: > > > >> On Thu, Oct 15, 2020 at 1:15 AM Jisheng Zhang > >> wrote: > >>> > >>> On Wed, 14 Oct 2020 22:04:24 -0700 Sarava

Re: Dts for eth network based on marvell's mv88e6390x crashes Xilinx's linux-kernel v5.4

2020-10-15 Thread Andrew Lunn
On Sun, Oct 11, 2020 at 03:31:52PM +0300, michael alayev wrote: > Hello, > > This is my system's network topology. It relies on Xilinx's Zynq-7000 soc. > > zynq-7000 switch1 switch2 > (cpu) mv88e6390xmv88e6390x > --- - - > | | | |

Re: [PATCH v6 02/11] mm/gup: Use functions to track lockless pgtbl walks on gup_pgd_range

2020-10-15 Thread Aneesh Kumar K.V
Hi Michal, On 10/15/20 8:16 PM, Michal Suchánek wrote: Hello, On Thu, Feb 06, 2020 at 12:25:18AM -0300, Leonardo Bras wrote: On Thu, 2020-02-06 at 00:08 -0300, Leonardo Bras wrote: gup_pgd_range(addr, end, gup_flags, pages, &nr); - local_irq_enable(); +

Re: [PATCH v4 32/32] auxdisplay: add a driver for lcd2s character display

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > + while (*esc && i < LCD2S_CHARACTER_SIZE + 2) { > + shift ^= 4; > + if (*esc >= '0' && *esc <= '9') { > + value |= (*esc - '0') << shift; > + } else if (*esc >= 'A' && *esc <= 'Z') { >

[GIT PULL] Please pull powerpc/linux.git powerpc-5.10-1 tag

2020-10-15 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.10. Just two minor conflicts I'm aware of. The only slight subtlety is the conflict in kasan_init() where "int ret" needs to move out of the for_each_mem_range() and up to the function scope. Notable out

Re: [PATCH V2] scripts: spelling: Remove space in the entry memry to memory

2020-10-15 Thread Joe Perches
On Fri, 2020-10-16 at 04:38 +0530, Bhaskar Chowdhury wrote: > On 16:06 Thu 15 Oct 2020, Joe Perches wrote: > > On Fri, 2020-10-16 at 04:25 +0530, Bhaskar Chowdhury wrote: > > > You have all flawed understanding...please stay away .. > > > if you don't understand something... > > > > You're funny

Re: [PATCH v4 24/32] auxdisplay: Move char redefine code to hd44780_common

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > + while (*esc && cgoffset < 8) { > + shift ^= 4; > + if (*esc >= '0' && *esc <= '9') { > + value |= (*esc - '0') << shift; > + } else if (*esc >= 'A' && *esc <= 'F') { > +

Re: [PATCH v4 3/3] clk: qcom: lpasscc-sc7180: Re-configure the PLL in case lost

2020-10-15 Thread Stephen Boyd
Quoting Douglas Anderson (2020-10-14 17:13:29) > From: Taniya Das > > In the case where the PLL configuration is lost, then the pm runtime > resume will reconfigure before usage. Taniya, this commit needs a lot more describing than one sentence. I see that the PLL's L value is reset at boot, but

Re: [PATCH v4 14/32] auxdisplay: Move init_display to hd44780_common

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > The init_display function is moved over to hd44780_common. charlcd uses > it via it's ops function pointer and drivers initialize the ops with the it's -> its (Already corrected in my queue) Cheers, Miguel

  1   2   3   4   5   6   7   8   9   10   >