Re: [PATCH v3 12/16] PCI: Obey iomem restrictions for procfs mmap

2020-10-22 Thread Daniel Vetter
On Thu, Oct 22, 2020 at 1:20 AM Jason Gunthorpe wrote: > > On Wed, Oct 21, 2020 at 09:24:08PM +0200, Daniel Vetter wrote: > > On Wed, Oct 21, 2020 at 6:37 PM Jason Gunthorpe wrote: > > > > > > On Wed, Oct 21, 2020 at 05:54:54PM +0200, Daniel Vetter wrote: > > > > > > > The trouble is that io_rema

Re: [PATCH v2] firmware: gsmi: Drop the use of dma_pool_* API functions

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 06:38, Furquan Shaikh wrote: > > GSMI driver uses dma_pool_* API functions for buffer allocation > because it requires that the SMI buffers are allocated within 32-bit > physical address space. However, this does not work well with IOMMU > since there is no real device and h

Re: [PATCH] PM / s2idle: Export s2idle_set_ops

2020-10-22 Thread Sudeep Holla
On Thu, Oct 22, 2020 at 02:17:48PM +0800, Claude Yen wrote: > As suspend_set_ops is exported in commit a5e4fd8783a2 > ("PM / Suspend: Export suspend_set_ops, suspend_valid_only_mem"), > exporting s2idle_set_ops to make kernel module setup s2idle ops too. > > In this way, kernel module can hook pla

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

2020-10-22 Thread Richard Palethorpe
Hello, Michal Koutný writes: > Hi. > > On Tue, Oct 20, 2020 at 06:52:08AM +0100, Richard Palethorpe > wrote: >> I don't think that is relevant as we get the memcg from objcg->memcg >> which is set during reparenting. I suppose however, we can determine if >> the objcg was reparented by inspect

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 05:30, Kees Cook wrote: > > On Thu, Oct 22, 2020 at 03:00:06AM +0300, Dmitry Osipenko wrote: > > 22.10.2020 02:40, Kees Cook пишет: > > > On Thu, Oct 22, 2020 at 01:57:37AM +0300, Dmitry Osipenko wrote: > > >> The vfp_kmode_exception() function now is unreachable using relat

Re: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 08:11:59PM +0200, Rafael J. Wysocki wrote: > > @@ -144,6 +145,7 @@ config CPU_FREQ_GOV_USERSPACE > > > > config CPU_FREQ_GOV_ONDEMAND > > tristate "'ondemand' cpufreq policy governor" > > + depends on !SMP > > But I don't think that we can do this and the one belo

Re: [PATCH] HID: logitech-hidpp: Add PID for MX Anywhere 2

2020-10-22 Thread Peter Hutterer
On Wed, Oct 21, 2020 at 06:56:12AM -0700, Harry Cutts wrote: > It seems that the PID 0x4072 was missing from the list Logitech gave me > for this mouse, as I found one with it in the wild (with which I tested > this patch). > > Fixes: 4435ff2f09a2 ("HID: logitech: Enable high-resolution scrolling

BUG: unable to handle kernel paging request in bpf_trace_run3

2020-10-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9ff9b0d3 Merge tag 'net-next-5.10' of git://git.kernel.org.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=140e3e7850 kernel config: https://syzkaller.appspot.com/x/.config?x=d13c3fa80bc4bcc1 dashboar

Re: [PATCH v2] usb: typec: Expose Product Type VDOs via sysfs

2020-10-22 Thread Prashant Malani
Thanks for reviewing the patch, Greg. On Wed, Oct 21, 2020 at 11:56 PM Greg KH wrote: > > On Wed, Oct 21, 2020 at 11:15:54PM -0700, Prashant Malani wrote: > > > > diff --git a/Documentation/ABI/testing/sysfs-class-typec > > b/Documentation/ABI/testing/sysfs-class-typec > > index b834671522d6..16

[PATCH v3] firmware: gsmi: Drop the use of dma_pool_* API functions

2020-10-22 Thread Furquan Shaikh
GSMI driver uses dma_pool_* API functions for buffer allocation because it requires that the SMI buffers are allocated within 32-bit physical address space. However, this does not work well with IOMMU since there is no real device and hence no domain associated with the device. Since this is not a

Re: [PATCH v3 3/5] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-10-22 Thread Marek Szyprowski
On 21.10.2020 23:49, Łukasz Stelmach wrote: > ASIX AX88796[1] is a versatile ethernet adapter chip, that can be > connected to a CPU with a 8/16-bit bus or with an SPI. This driver > supports SPI connection. > > The driver has been ported from the vendor kernel for ARTIK5[2] > boards. Several cha

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-22 Thread Laurent Vivier
Le 22/10/2020 à 05:23, Finn Thain a écrit : > On Wed, 21 Oct 2020, Laurent Vivier wrote: > >> Le 21/10/2020 à 01:43, Finn Thain a écrit : >> >>> Laurent, can we avoid the irq == 0 warning splat like this? >>> >>> diff --git a/drivers/tty/serial/pmac_zilog.c >>> b/drivers/tty/serial/pmac_zilog.c >

Re: [PATCH v2] usb: typec: Expose Product Type VDOs via sysfs

2020-10-22 Thread Greg KH
On Thu, Oct 22, 2020 at 12:13:54AM -0700, Prashant Malani wrote: > Thanks for reviewing the patch, Greg. > > On Wed, Oct 21, 2020 at 11:56 PM Greg KH wrote: > > > > On Wed, Oct 21, 2020 at 11:15:54PM -0700, Prashant Malani wrote: > > > > > > diff --git a/Documentation/ABI/testing/sysfs-class-type

Re: [PATCH v2 05/15] perf session: introduce decompressor into trace reader object

2020-10-22 Thread Alexey Budankov
On 22.10.2020 7:36, Namhyung Kim wrote: > On Thu, Oct 22, 2020 at 1:00 AM Alexey Budankov > wrote: >> >> >> Introduce decompressor to trace reader object so that decompression >> could be executed on per trace file basis separately for every >> trace file located in trace directory. > > I'm sli

Re: [PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it

2020-10-22 Thread Geert Uytterhoeven
Hi Ted, On Thu, Oct 22, 2020 at 5:43 AM Theodore Y. Ts'o wrote: > On Wed, Oct 21, 2020 at 04:07:15PM -0700, Randy Dunlap wrote: > > > I'm don't particularly care how this gets achieved, but please think > > > about how to make it easy for a kernel developer to run a specific set > > > of subsyste

RE: [PATCH v2 3/3] ARM: dts: add ehci uhci enable in evb dts

2020-10-22 Thread Ryan Chen
> -Original Message- > From: Andrew Jeffery > Sent: Thursday, October 22, 2020 7:45 AM > To: Ryan Chen ; Sergei Shtylyov > ; Joel Stanley ; > linux-arm-ker...@lists.infradead.org; linux-asp...@lists.ozlabs.org; > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; BMC-SW > ; Alan Ster

Re: [PATCH 4/5] RISC-V: Protect .init.text & .init.data

2020-10-22 Thread Anup Patel
On Thu, Oct 22, 2020 at 10:33 AM Anup Patel wrote: > > On Thu, Oct 22, 2020 at 7:01 AM Atish Patra wrote: > > > > On Fri, Oct 16, 2020 at 11:24 AM Atish Patra wrote: > > > > > > On Tue, Oct 13, 2020 at 10:24 PM Atish Patra > > > wrote: > > > > > > > > On Tue, Oct 13, 2020 at 6:21 PM Jim Wilson

Re: [PATCH v2] usb: typec: Expose Product Type VDOs via sysfs

2020-10-22 Thread Prashant Malani
Hi Greg, On Thu, Oct 22, 2020 at 12:17 AM Greg KH wrote: > > > > > +What: > > > > /sys/class/typec/-partner/identity/product_type_vdo > > > > +Date:October 2020 > > > > +Contact: Prashant Malani > > > > +Description: > > > > + Product Type VDOs par

[PATCH] arm64: dts: imx8m: use generic name for tmu

2020-10-22 Thread peng . fan
From: Peng Fan Per devicetree specification, generic names are recommended to be used, such as temperature-sensor. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- a

Re: [PATCH v6 22/25] x86/asm: annotate indirect jumps

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 04:27:47PM -0500, Josh Poimboeuf wrote: > On Wed, Oct 21, 2020 at 11:32:13AM +0200, Peter Zijlstra wrote: > > On Wed, Oct 21, 2020 at 10:56:06AM +0200, Peter Zijlstra wrote: > > > > > I do not see these in particular, although I do see a lot of: > > > > > > "sibling call

sound/soc/intel/catpt/dsp.c:359:9: sparse: sparse: restricted pci_power_t degrades to integer

2020-10-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f804b3159482eedbb4250b1e9248c308fb63b805 commit: 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1 ASoC: Intel: Select catpt and deprecate haswell date: 3 weeks ago config: i386-randconfig-s002-20201022 (attached

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-22 Thread Geert Uytterhoeven
Hi Finn, On Thu, Oct 22, 2020 at 5:23 AM Finn Thain wrote: > The patch below seems to fix the problem for me. Does it work on your > system(s)? Thanks for your patch! > --- a/arch/m68k/mac/config.c > +++ b/arch/m68k/mac/config.c > @@ -776,16 +776,12 @@ static struct resource scc_b_rsrcs[] = { >

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Lennart Poettering
On Mi, 21.10.20 22:44, Jeremy Linton (jeremy.lin...@arm.com) wrote: > Hi, > > There is a problem with glibc+systemd on BTI enabled systems. Systemd > has a service flag "MemoryDenyWriteExecute" which uses seccomp to deny > PROT_EXEC changes. Glibc enables BTI only on segments which are marked as >

[PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Xie He
The ether_setup function adds the IFF_TX_SKB_SHARING flag to the device. This flag indicates that it is safe to transmit shared skbs to the device. However, this is not true for many Ethernet devices. Many Ethernet drivers would call skb_pad or skb_padto on the transmission path, which modify the

Re: [PATCH 1/1] video: fbdev: fix divide error in fbcon_switch

2020-10-22 Thread Thomas Zimmermann
Hi On 22.10.20 01:57, saeed.mirzamohamm...@oracle.com wrote: > From: Saeed Mirzamohammadi > > This patch fixes the issue due to: > > [ 89.572883] divide_error: [#1] SMP KASAN PTI > [ 89.572897] CPU: 3 PID: 16083 Comm: repro Not tainted > 5.9.0-rc7.20200930.rc1.allarch-19-g3e32d0d.syzk

Re: [RFC] Have insn decoder functions return success/failure

2020-10-22 Thread Masami Hiramatsu
On Wed, 21 Oct 2020 18:45:58 +0200 Borislav Petkov wrote: > On Wed, Oct 21, 2020 at 11:26:13PM +0900, Masami Hiramatsu wrote: > > Hmm, I meant someone might think it can be used for filtering the > > instruction something like, > > > > insn_init(insn, buf, buflen, 1); > > ret = insn_get_length(i

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-22 Thread Christian Eggers
Hi Richard, On Thursday, 22 October 2020, 04:42:01 CEST, Richard Cochran wrote: > I'm just catching up with this. > > Really. Truly. Please -- Include the maintainer on CC for such patches! sorry for missing you on the recipients list. I blindly trusted the output of get_maintainer.pl. I recentl

Re: [PATCH -next] treewide: Remove stringification from __alias macro definition

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 11:58:25AM -0700, Joe Perches wrote: > Like the __section macro, the __alias macro uses > macro # stringification to create quotes around > the section name used in the __attribute__. > > Remove the stringification and add quotes or a > stringification to the uses instead.

Re: [PATCH 1/1] video: fbdev: fix divide error in fbcon_switch

2020-10-22 Thread Thomas Zimmermann
Hi On 22.10.20 01:57, saeed.mirzamohamm...@oracle.com wrote: > From: Saeed Mirzamohammadi > > This patch fixes the issue due to: > > [ 89.572883] divide_error: [#1] SMP KASAN PTI > [ 89.572897] CPU: 3 PID: 16083 Comm: repro Not tainted > 5.9.0-rc7.20200930.rc1.allarch-19-g3e32d0d.syzk

[PATCH v3 1/3] dt-bindings: vendor-prefixes: Add an entry for Van der Laan b.v.

2020-10-22 Thread Oleksij Rempel
Add "vdl" entry for Van der Laan b.v.: https://www.teamvdl.nl/ Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/binding

[PATCH v3 0/3] mainline LANMCU board

2020-10-22 Thread Oleksij Rempel
changes v3: - rename led-debug to led-0 - rename bcrmf to wifi changes v2: - add phy-handle - rename node to touchscreen@38 - reorder reg and status properties Oleksij Rempel (3): dt-bindings: vendor-prefixes: Add an entry for Van der Laan b.v. dt-bindings: arm: fsl: add Van der Laan LANMCU

[PATCH v3 3/3] ARM: dts: add Van der Laan LANMCU board

2020-10-22 Thread Oleksij Rempel
Van der Laan LANMCU is a module for the food storage rooms to control proper gas composition. Co-Developed-by: Robin van der Gracht Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot

[PATCH v3 2/3] dt-bindings: arm: fsl: add Van der Laan LANMCU board

2020-10-22 Thread Oleksij Rempel
Add Van der Laan LANMCU iMX6dl based board Signed-off-by: Oleksij Rempel Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation

Re: [PATCH] net: ftgmac100: Ensure tx descriptor updates are visible

2020-10-22 Thread Benjamin Herrenschmidt
On Wed, 2020-10-21 at 08:18 +, David Laight wrote: > From: Benjamin Herrenschmidt > > Sent: 21 October 2020 01:00 > > > > On Wed, 2020-10-21 at 08:36 +1030, Joel Stanley wrote: > > > We must ensure the tx descriptor updates are visible before updating > > > the tx pointer. > > > > > > This re

Re: GCC section alignment, and GCC-4.9 being a weird one

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 10:42:01AM -0700, Nick Desaulniers wrote: > On Wed, Oct 21, 2020 at 6:45 AM Peter Zijlstra wrote: > > > > Ah, thanks! > > > > In that case something like the below ought to make it good. > > > > I'll go feed it to the robots, see if anything falls over. > > > > --- > > ker

Re: [PATCH v2 08/17] s390/pci: Remove races against pte updates

2020-10-22 Thread Daniel Vetter
On Wed, Oct 21, 2020 at 09:55:57AM +0200, Niklas Schnelle wrote: > Hi Daniel, > > friendly ping. I haven't seen a new version of this patch series, > as I said I think your change for s390/pci is generally useful so > I'm curious, are you planning on sending a new version soon? > If you want you c

[PATCH v2 0/2] kunit: tool: Respect '.kunitconfig' in '--build_dir'

2020-10-22 Thread SeongJae Park
From: SeongJae Park This patchset makes kunit tool to respect '.kunitconfig' under the '--build_dir'. Revision History >From v1 (https://lore.kernel.org/linux-kselftest/20201012102621.32226-2-sjp...@amazon.com/) - Rebase on master branch of linus' tree (Not a clean rebase) - Ad

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

2020-10-22 Thread Lars Poeschel
On Fri, Oct 16, 2020 at 05:59:04AM +0200, Miguel Ojeda wrote: > 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 ano

[PATCH v2 2/2] kunit: tool: Mark 'kunittest_config' as constant again

2020-10-22 Thread SeongJae Park
From: SeongJae Park 'kunit_kernel.kunittest_config' was constant at first, and therefore it used UPPER_SNAKE_CASE naming convention that usually means it is constant in Python world. But, commit e3212513a8f0 ("kunit: Create default config in '--build_dir'") made it modifiable to fix a use case o

[PATCH v2 1/2] kunit: tool: Respect '.kunitconfig' in 'build_dir'

2020-10-22 Thread SeongJae Park
From: SeongJae Park Commit d43c7fb05765 ("kunit: tool: fix improper treatment of file location") removed 'kunit_kernel.kunitconfig_path' modification for the '--build_dir' argument. As a result, running kunit with '--build_dir' failed with below error message: Traceback (most recent call la

Re: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-22 Thread Benjamin Herrenschmidt
On Wed, 2020-10-21 at 14:11 +0200, Arnd Bergmann wrote: > (replying to my own mail from a different address to deal with the > regular one being blacklisted somewhere, sorry for any duplicates) > > On Wed, Oct 21, 2020 at 9:16 AM Arnd Bergmann wrote: > > > > On Wed, Oct 21, 2020 at 12:10 AM Benj

Re: [PATCH] net: ftgmac100: Ensure tx descriptor updates are visible

2020-10-22 Thread Benjamin Herrenschmidt
On Wed, 2020-10-21 at 14:40 +0200, Arnd Bergmann wrote: > On Wed, Oct 21, 2020 at 12:39 PM Joel Stanley wrote: > > > > > diff --git a/drivers/net/ethernet/faraday/ftgmac100.c > > b/drivers/net/ethernet/faraday/ftgmac100.c > > index 331d4bdd4a67..15cdfeb135b0 100644 > > --- a/drivers/net/etherne

[PATCH 5/5] Documentation: add xen.fifo_events kernel parameter description

2020-10-22 Thread Juergen Gross
The kernel boot parameter xen.fifo_events isn't listed in Documentation/admin-guide/kernel-parameters.txt. Add it. Signed-off-by: Juergen Gross --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/admin-guide/kernel-paramete

[PATCH 2/5] xen/events: make struct irq_info private to events_base.c

2020-10-22 Thread Juergen Gross
The struct irq_info of Xen's event handling is used only for two evtchn_ops functions outside of events_base.c. Those two functions can easily be switched to avoid that usage. This allows to make struct irq_info and its related access functions private to events_base.c. Signed-off-by: Juergen Gro

[PATCH 0/5] xen: event handling cleanup

2020-10-22 Thread Juergen Gross
Do some cleanups in Xen event handling code. Juergen Gross (5): xen: remove no longer used functions xen/events: make struct irq_info private to events_base.c xen/events: only register debug interrupt for 2-level events xen/events: unmask a fifo event channel only if it was masked Docume

[PATCH 4/5] xen/events: unmask a fifo event channel only if it was masked

2020-10-22 Thread Juergen Gross
Unmasking an event channel with fifo events channels being used can require a hypercall to be made, so try to avoid that by checking whether the event channel was really masked. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross --- drivers/xen/events/events_fifo.c | 3 +++ 1 file changed,

[PATCH 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Juergen Gross
xen_debug_interrupt() is specific to 2-level event handling. So don't register it with fifo event handling being active. Signed-off-by: Juergen Gross --- arch/x86/xen/smp.c | 19 +++ arch/x86/xen/xen-ops.h | 2 ++ drivers/xen/events/events_base.c | 6 +++

[PATCH 1/5] xen: remove no longer used functions

2020-10-22 Thread Juergen Gross
With the switch to the lateeoi model for interdomain event channels some functions are no longer in use. Remove them. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross --- drivers/xen/events/events_base.c | 21 - include/xen/events.h | 8 2 files c

Re: [PATCH] hugetlb_cgroup: fix reservation accounting

2020-10-22 Thread Michal Privoznik
On 10/21/20 10:44 PM, Mike Kravetz wrote: Michal Privoznik was using "free page reporting" in QEMU/virtio-balloon with hugetlbfs and hit the warning below. QEMU with free page hinting uses fallocate(FALLOC_FL_PUNCH_HOLE) to discard pages that are reported as free by a VM. The reporting granulari

[PATCH v2 1/2] net: phy: adin: disable diag clock & disable standby mode in config_aneg

2020-10-22 Thread Alexandru Ardelean
When the PHY powers up, the diagnostics clock isn't enabled (bit 2 in register PHY_CTRL_1 (0x0012)). Also, the PHY is not in standby mode, so bit 13 in PHY_CTRL_3 (0x0017) is always set at power up. The standby mode and the diagnostics clock are both meant to be for the cable diagnostics feature o

Re: [PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Xie He
Sorry. I spotted some errors in this patch. Some drivers use "ndev" as the variable name but I mistakenly used "dev". It was very hard for me to attempt fixing. There are too many drivers that need to be fixed. Fixing them is very time-consuming and may also be error-prone. So I think it may be be

[PATCH v2 2/2] net: phy: adin: implement cable-test support

2020-10-22 Thread Alexandru Ardelean
The ADIN1300/ADIN1200 support cable diagnostics using TDR. The cable fault detection is automatically run on all four pairs looking at all combinations of pair faults by first putting the PHY in standby (clear the LINK_EN bit, PHY_CTRL_3 register, Address 0x0017) and then enabling the diagnostic c

Re: [PATCH v4 2/2] spmi: mediatek: Add support for MT6873/8192

2020-10-22 Thread Fei Shao
On Sat, Oct 17, 2020 at 12:11 AM Hsin-Hsiung Wang wrote: > > add spmi support for MT6873/8192. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/spmi/Kconfig | 9 + > drivers/spmi/Makefile| 1 + > drivers/spmi/spmi-mtk-pmif.c | 490 +++ > 3 f

[PATCH] nvmem: imx-ocotp: add support for the unaliged word count

2020-10-22 Thread peng . fan
From: Peng Fan When offset is not 4 bytes aligned, directly shift righty by 2 bits will cause reading out wrong data. Since imx ocotp only supports 4 bytes reading once, we need handle offset is not 4 bytes aligned and enlarge the bytes to 4 bytes aligned. After reading finished, copy the needed

Re: [PATCH v2 03/15] perf data: open data directory in read access mode

2020-10-22 Thread Alexey Budankov
On 22.10.2020 7:31, Namhyung Kim wrote: > On Thu, Oct 22, 2020 at 12:58 AM Alexey Budankov > wrote: >> >> >> Open files located at trace data directory in case read access >> mode is requested. File are opened and its fds assigned to >> perf_data dir files especially for loading data directories

[PATCH v3 2/2] dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml

2020-10-22 Thread Oleksij Rempel
In order to automate the verification of DT nodes convert fsl-flexcan.txt to fsl,flexcan.yaml Signed-off-by: Oleksij Rempel Link: https://lore.kernel.org/r/20201016073315.16232-3-o.rem...@pengutronix.de Signed-off-by: Marc Kleine-Budde --- .../bindings/net/can/fsl,flexcan.yaml | 135 +++

[PATCH v3 0/2] convert flexcan to the yaml

2020-10-22 Thread Oleksij Rempel
changes v3: - can-controller.yaml: add "additionalProperties: true" - fsl,flexcan.yaml: remove maxItems and not needed type definition changes v2: - add can-controller.yaml for common patterns - use phandle-array instead of uint32-array - Drop the outer 'items' in fsl,stop-mode - use can@ instead

[PATCH v3 1/2] dt-bindings: can: add can-controller.yaml

2020-10-22 Thread Oleksij Rempel
For now we have only node name as common rule for all CAN controllers Signed-off-by: Oleksij Rempel Link: https://lore.kernel.org/r/20201016073315.16232-2-o.rem...@pengutronix.de Signed-off-by: Marc Kleine-Budde --- .../bindings/net/can/can-controller.yaml | 18 ++ 1 file

[PATCH v3] spi: spi-sun6i: implement DMA-based transfer mode

2020-10-22 Thread Alexander Kochetkov
From: Alexander Kochetkov DMA-based transfer will be enabled if data length is larger than FIFO size (64 bytes for A64). This greatly reduce number of interrupts for transferring data. For smaller data size PIO mode will be used. In PIO mode whole buffer will be loaded into FIFO. If driver fail

Re: [PATCH 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Jan Beulich
On 22.10.2020 09:42, Juergen Gross wrote: > --- a/drivers/xen/events/events_base.c > +++ b/drivers/xen/events/events_base.c > @@ -2050,7 +2050,7 @@ void xen_setup_callback_vector(void) {} > static inline void xen_alloc_callback_vector(void) {} > #endif > > -static bool fifo_events = true; > +bo

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Florian Weimer
* Lennart Poettering: > On Mi, 21.10.20 22:44, Jeremy Linton (jeremy.lin...@arm.com) wrote: > >> Hi, >> >> There is a problem with glibc+systemd on BTI enabled systems. Systemd >> has a service flag "MemoryDenyWriteExecute" which uses seccomp to deny >> PROT_EXEC changes. Glibc enables BTI only on

Re: [PATCH v2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2020-10-22 Thread Felipe Balbi
Hi, John Stultz writes: > From: Yu Chen > > With the current dwc3 code on the HiKey960 we often see the > COREIDLE flag get stuck off in __dwc3_gadget_start(), which > seems to prevent the reset irq and causes the USB gadget to > fail to initialize. > > We had seen occasional initialization fai

Re: [PATCH 4/5] xen/events: unmask a fifo event channel only if it was masked

2020-10-22 Thread Jan Beulich
On 22.10.2020 09:42, Juergen Gross wrote: > --- a/drivers/xen/events/events_fifo.c > +++ b/drivers/xen/events/events_fifo.c > @@ -236,6 +236,9 @@ static bool clear_masked_cond(volatile event_word_t *word) > > w = *word; > > + if (!(w & (1 << EVTCHN_FIFO_MASKED))) > + retur

Re: [PATCH v2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2020-10-22 Thread Felipe Balbi
Hi, Thinh Nguyen writes: > John Stultz wrote: >> static void __dwc3_set_mode(struct work_struct *work) >> { >> struct dwc3 *dwc = work_to_dwc(work); >> unsigned long flags; >> +int hw_mode; >> int ret; >> u32 reg; >> >> @@ -154,6 +168,11 @@ static void __dwc3_set_mode

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Li, Aubrey
On 2020/10/20 9:43, Joel Fernandes (Google) wrote: > From: Peter Zijlstra > > Because sched_class::pick_next_task() also implies > sched_class::set_next_task() (and possibly put_prev_task() and > newidle_balance) it is not state invariant. This makes it unsuitable > for remote task selection. >

Re: [PATCH V3 1/4] misc: vop: change the way of allocating vring and device page

2020-10-22 Thread kernel test robot
Hi Sherry, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on soc/for-next linus/master v5.9 next-20201022] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [PATCH] perf/x86/intel: make anythread filter support conditional

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 02:16:12PM -0700, Stephane Eranian wrote: > Starting with Arch Perfmon v5, the anythread filter on generic counters may be > deprecated. The current kernel was exporting the any filter without checking. > On Icelake, it means you could do cpu/event=0x3c,any/ even though the

Re: [PATCH 1/2] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-21 15:38, Suzuki Poulose wrote: On 10/21/20 8:29 AM, Sai Prakash Ranjan wrote: On 2020-10-20 21:40, Sai Prakash Ranjan wrote: On 2020-10-14 21:29, Sai Prakash Ranjan wrote: On 2020-10-14 18:46, Suzuki K Poulose wrote: On 10/14/2020 10:36 AM, Sai Prakash Ranjan wrote: On 2020-10-13

Re: [PATCH 0/5] xen: event handling cleanup

2020-10-22 Thread Jan Beulich
On 22.10.2020 09:42, Juergen Gross wrote: > Do some cleanups in Xen event handling code. > > Juergen Gross (5): > xen: remove no longer used functions > xen/events: make struct irq_info private to events_base.c > xen/events: only register debug interrupt for 2-level events > xen/events: un

[PATCH v2 1/3] mmc: core: Initial support for SD express card/host

2020-10-22 Thread rui_feng
From: Ulf Hansson In the SD specification v7.10 the SD express card has been added. This new type of removable SD card, can be managed via a PCIe/NVMe based interface, while also allowing backwards compatibility towards the legacy SD interface. To keep the backwards compatibility, it's required

[PATCH v2 2/3] misc: rtsx: Add SD Express mode support for RTS5261

2020-10-22 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will b

Re: [RFC] Have insn decoder functions return success/failure

2020-10-22 Thread Peter Zijlstra
On Wed, Oct 21, 2020 at 06:45:58PM +0200, Borislav Petkov wrote: > On Wed, Oct 21, 2020 at 11:26:13PM +0900, Masami Hiramatsu wrote: > > Hmm, I meant someone might think it can be used for filtering the > > instruction something like, > > > > insn_init(insn, buf, buflen, 1); > > ret = insn_get_len

[PATCH v2 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-22 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will b

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Szabolcs Nagy
The 10/22/2020 09:18, Lennart Poettering wrote: > On Mi, 21.10.20 22:44, Jeremy Linton (jeremy.lin...@arm.com) wrote: > > > Hi, > > > > There is a problem with glibc+systemd on BTI enabled systems. Systemd > > has a service flag "MemoryDenyWriteExecute" which uses seccomp to deny > > PROT_EXEC cha

[PATCH net RFC v2] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Xie He
The ether_setup function adds the IFF_TX_SKB_SHARING flag to the device. This flag indicates that it is safe to transmit shared skbs to the device. However, this is not true for many Ethernet devices. Many Ethernet drivers would call skb_pad or skb_padto on the transmission path, which modify the

Re: [PATCH v2 07/22] drm/msm: Do rpm get sooner in the submit path

2020-10-22 Thread Viresh Kumar
On 20-10-20, 07:13, Rob Clark wrote: > On Tue, Oct 20, 2020 at 4:24 AM Viresh Kumar wrote: > > > > On 20-10-20, 12:56, Daniel Vetter wrote: > > > Yeah that's bad practice. Generally you shouldn't need to hold locks > > > in setup/teardown code, since there's no other thread which can > > > possibl

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Michal Hocko
On Wed 21-10-20 23:48:46, Rik van Riel wrote: > The allocation flags of anonymous transparent huge pages can be controlled > through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can > help the system from getting bogged down in the page reclaim and compaction > code when many THPs

drivers/scsi/fnic/vnic_dev.c:332:32: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-10-22 Thread kernel test robot
-randconfig-s031-20201022 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f28ca6bd8211214faf717677bbffe375c2a6072

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Topi Miettinen
On 22.10.2020 10.54, Florian Weimer wrote: * Lennart Poettering: On Mi, 21.10.20 22:44, Jeremy Linton (jeremy.lin...@arm.com) wrote: Hi, There is a problem with glibc+systemd on BTI enabled systems. Systemd has a service flag "MemoryDenyWriteExecute" which uses seccomp to deny PROT_EXEC chan

Re: Adding ABI to htmldocs - Was: Re: [PATCH 2/2] w1: w1_therm: Add support for GXCAS GX20MH01 device.

2020-10-22 Thread Mauro Carvalho Chehab
Em Wed, 21 Oct 2020 18:58:19 +0200 Greg Kroah-Hartman escreveu: > On Wed, Oct 21, 2020 at 06:28:43PM +0200, Mauro Carvalho Chehab wrote: > > Hi greg, > > > > Em Wed, 7 Oct 2020 13:59:34 +0200 > > Mauro Carvalho Chehab escreveu: > > > > > Em Wed, 7 Oct 2020 13:43:59 +0200 > > > Greg Kroah-Hartm

RE: [PATCH v2 6/6] crypto: lib/sha - Combine round constants and message schedule

2020-10-22 Thread David Laight
From: Eric Biggers > Sent: 22 October 2020 05:35 > > On Tue, Oct 20, 2020 at 04:39:57PM -0400, Arvind Sankar wrote: > > Putting the round constants and the message schedule arrays together in > > one structure saves one register, which can be a significant benefit on > > register-constrained arc

[PATCH v8 0/4] userspace MHI client interface driver

2020-10-22 Thread Hemant Kumar
This patch series adds support for UCI driver. UCI driver enables userspace clients to communicate to external MHI devices like modem and WLAN. UCI driver probe creates standard character device file nodes for userspace clients to perform open, read, write, poll and release file operations. These f

[PATCH v8 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-10-22 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi

[PATCH v8 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-10-22 Thread Hemant Kumar
Introduce mhi_get_free_desc_count() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/c

[PATCH v8 4/4] bus: mhi: Add userspace client interface driver

2020-10-22 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Driver instantiates UCI device object which is associated to device file node. UCI device object instantiates UCI channel object when device file node is opened. UCI chan

[PATCH v8 3/4] docs: Add documentation for userspace client interface

2020-10-22 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 + Documentation/

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Florian Weimer
* Topi Miettinen: >> The dynamic loader has to process the LOAD segments to get to the ELF >> note that says to enable BTI. Maybe we could do a first pass and >> load only the segments that cover notes. But that requires lots of >> changes to generic code in the loader. > > What if the loader al

RE: [PATCH v5 0/5] Add r8a77965 DRIF support

2020-10-22 Thread Fabrizio Castro
Hi Laurent, > From: Laurent Pinchart > Sent: 21 October 2020 22:43 > Subject: Re: [PATCH v5 0/5] Add r8a77965 DRIF support > > Hi Fabrizio, > > On Wed, Oct 21, 2020 at 02:53:27PM +0100, Fabrizio Castro wrote: > > Dear All, > > > > this series is to add DRIF support for the r8a77965 > > (a.k.a.

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Greg KH
On Thu, Oct 22, 2020 at 12:39:14AM +0100, Al Viro wrote: > On Wed, Oct 21, 2020 at 06:13:01PM +0200, Greg KH wrote: > > On Fri, Sep 25, 2020 at 06:51:39AM +0200, Christoph Hellwig wrote: > > > From: David Laight > > > > > > This lets the compiler inline it into import_iovec() generating > > > muc

Re: [PATCH 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Jürgen Groß
On 22.10.20 09:54, Jan Beulich wrote: On 22.10.2020 09:42, Juergen Gross wrote: --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -2050,7 +2050,7 @@ void xen_setup_callback_vector(void) {} static inline void xen_alloc_callback_vector(void) {} #endif -static

Re: [PATCH v4 4/4] PCI: Limit pci_alloc_irq_vectors() to housekeeping CPUs

2020-10-22 Thread Thomas Gleixner
On Wed, Oct 21 2020 at 17:02, Jakub Kicinski wrote: > On Wed, 21 Oct 2020 22:25:48 +0200 Thomas Gleixner wrote: >> The right answer to this is to utilize managed interrupts and have >> according logic in your network driver to handle CPU hotplug. When a CPU >> goes down, then the queue which is ass

Re: [PATCH 4/5] xen/events: unmask a fifo event channel only if it was masked

2020-10-22 Thread Jürgen Groß
On 22.10.20 09:55, Jan Beulich wrote: On 22.10.2020 09:42, Juergen Gross wrote: --- a/drivers/xen/events/events_fifo.c +++ b/drivers/xen/events/events_fifo.c @@ -236,6 +236,9 @@ static bool clear_masked_cond(volatile event_word_t *word) w = *word; + if (!(w & (1 << EVTCHN_FIFO_MASKED)))

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Szabolcs Nagy
The 10/22/2020 11:17, Topi Miettinen via Libc-alpha wrote: > On 22.10.2020 10.54, Florian Weimer wrote: > > * Lennart Poettering: > > > Did you see Topi's comments on the systemd issue? > > > > > > https://github.com/systemd/systemd/issues/17368#issuecomment-710485532 > > > > > > I think I agree

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Lennart Poettering
On Do, 22.10.20 09:05, Szabolcs Nagy (szabolcs.n...@arm.com) wrote: > > > Various changes have been suggested, replacing the mprotect with mmap > > > calls > > > having PROT_BTI set on the original mapping, re-mmapping the segments, > > > implying PROT_EXEC on mprotect PROT_BTI calls when VM_EXEC

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Viresh Kumar
Hi Peter, Since Lukasz asked me to hold on to this stuff so he can propose something in its place, I stayed away from discussing this patchset for sometime. But now that he agrees [1] that we may take this forward and he can work on top of it as and when he can, I am looking to find the way out to

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread David Hildenbrand
On 22.10.20 10:26, Greg KH wrote: > On Thu, Oct 22, 2020 at 12:39:14AM +0100, Al Viro wrote: >> On Wed, Oct 21, 2020 at 06:13:01PM +0200, Greg KH wrote: >>> On Fri, Sep 25, 2020 at 06:51:39AM +0200, Christoph Hellwig wrote: From: David Laight This lets the compiler inline it into im

[PATCH] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
The eeh-basic test got its own 60 seconds timeout (defined in commit 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per breakable device. And we have discovered that the number of breakable devices varies on different hardware. The device recovery time ranges from 0 to 35 seconds. In our

Re: [PATCH v2 1/2] cifs: convert to add_to_page_cache()

2020-10-22 Thread Steve French
you can add my reviewed-by if you would like On Thu, Oct 22, 2020 at 1:48 AM Kent Overstreet wrote: > > This is just open coding add_to_page_cache(), and the next patch will > delete add_to_page_cache_locked(). > > Signed-off-by: Kent Overstreet > --- > fs/cifs/file.c | 20

Re: [PATCH v4 0/3] time namespace aware system boot time

2020-10-22 Thread Andrei Vagin
On Mon, Oct 19, 2020 at 09:52:54PM +0200, Michael Weiß wrote: > Time namespaces make it possible to virtualize time inside of > containers, e.g., it is feasible to reset the uptime of a container > to zero by setting the time namespace offset for boottime to the > negated current value of the CLOCK

Re: [PATCH 0/3] warn and suppress irqflood

2020-10-22 Thread Thomas Gleixner
On Thu, Oct 22 2020 at 13:56, Pingfan Liu wrote: > I hit a irqflood bug on powerpc platform, and two years ago, on a x86 > platform. > When the bug happens, the kernel is totally occupies by irq. Currently, there > may be nothing or just soft lockup warning showed in console. It is better > to wa

  1   2   3   4   5   6   7   8   9   10   >