[PATCH 2/4] dt-bindings: arm: samsung: document S3C6410-based boards binding

2020-11-17 Thread Krzysztof Kozlowski
Add bindings for the FriendlyARM Mini6410 and Samsung SMDK6410 boards. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/arm/samsung/samsung-boards.yaml| 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml b

[PATCH 3/4] ARM: dts: s3c24xx: add SMDK2416 board compatible

2020-11-17 Thread Krzysztof Kozlowski
Add a compatible for SMDK2416 board next to the SoC compatible. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3c2416-smdk2416.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s3c2416-smdk2416.dts b/arch/arm/boot/dts/s3c2416-smdk2416.dts index

Re: [PATCH v11 06/16] PCI/ERR: Simplify by using pci_upstream_bridge()

2020-11-17 Thread Kuppuswamy, Sathyanarayanan
On 11/17/20 11:19 AM, Sean V Kelley wrote: Use pci_upstream_bridge() in place of dev->bus->self. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-b

[PATCH] checkpatch: fix spacing check for return with parentheses

2020-11-17 Thread Dwaipayan Ray
The spacing check is unreachable for return statements followed by an opening parentheses. For example: int foo(int bar, int baz) { return(bar+baz); } There should be an error emitted for a space between return and the opening parentheses but checkpatch doesn't emit one. Fix the spacing

Re: [PATCH bpf v7 1/2] lib/strncpy_from_user.c: Don't overcopy bytes after NUL terminator

2020-11-17 Thread Alexei Starovoitov
On Tue, Nov 17, 2020 at 12:05 PM Daniel Xu wrote: > > This commit uses the proper word-at-a-time APIs to avoid overcopying. that part of the commit log is no longer correct. I can fix it up while applying if Linus doesn't have an issue with the rest.

Re: [PATCH 2/2] mm: memcg/slab: pre-allocate obj_cgroups for slab caches with SLAB_ACCOUNT

2020-11-17 Thread Roman Gushchin
On Tue, Nov 17, 2020 at 09:42:53AM -0800, Shakeel Butt wrote: > On Thu, Nov 12, 2020 at 4:19 PM Roman Gushchin wrote: > > > [snip] > > > > From 8b28d91475d54c552e503e66f169e1e00475c856 Mon Sep 17 00:00:00 2001 > > From: Roman Gushchin > > Date: Wed, 16 Sep 2020 15:43:48 -0700 > > Subject: [PATCH

[PATCH net-next v4 0/4] DP83TD510 Single Pair 10Mbps Ethernet PHY

2020-11-17 Thread Dan Murphy
Hello The DP83TD510 is an Ethernet PHY supporting single pair of twisted wires. The PHY is capable of 10Mbps communication over long distances and exceeds the IEEE 802.3cg 10BASE-T1L single-pair Ethernet specification. The PHY supports various voltage level signalling and can be forced to support

[PATCH net-next v4 1/4] ethtool: Add 10base-T1L link mode entries

2020-11-17 Thread Dan Murphy
Add entries for the 10base-T1L full and half duplex supported modes. $ ethtool eth0 Supported ports: [ TP ] Supported link modes: 10baseT1L/Half 10baseT1L/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC m

[PATCH net-next v4 2/4] dt-bindings: net: Add Rx/Tx output configuration for 10base T1L

2020-11-17 Thread Dan Murphy
Per the 802.3cg spec the 10base T1L can operate at 2 different differential voltages 1v p2p and 2.4v p2p. The abiility of the PHY to drive that output is dependent on the PHY's on board power supply. This common feature is applicable to all 10base T1L PHYs so this binding property belongs in a top

[PATCH net-next v4 3/4] dt-bindings: dp83td510: Add binding for DP83TD510 Ethernet PHY

2020-11-17 Thread Dan Murphy
The DP83TD510 is a 10M single twisted pair Ethernet PHY Signed-off-by: Dan Murphy --- .../devicetree/bindings/net/ti,dp83td510.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ti,dp83td510.yaml diff --git a/Documentation/d

[PATCH net-next v4 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-17 Thread Dan Murphy
The DP83TD510E is an ultra-low power Ethernet physical layer transceiver that supports 10M single pair cable. The device supports both 2.4-V p2p and 1-V p2p output voltage as defined by IEEE 802.3cg 10Base-T1L specfications. These modes can be forced via the device tree or the device is defaulted

[PATCH] dt-bindings: arm: vt8500: remove redundant white-spaces

2020-11-17 Thread Krzysztof Kozlowski
Remove redundant white-spaces, no functional change. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/vt8500.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/vt8500.yaml b/Documentation/devicetree/bindin

Re: [PATCH 9/9] platform/surface: Add Surface ACPI Notify driver

2020-11-17 Thread Maximilian Luz
On 11/17/20 9:09 PM, Randy Dunlap wrote: On 11/15/20 11:21 AM, Maximilian Luz wrote: diff --git a/drivers/platform/surface/Kconfig b/drivers/platform/surface/Kconfig index cecad7a0cb7b..3b0da86546fa 100644 --- a/drivers/platform/surface/Kconfig +++ b/drivers/platform/surface/Kconfig @@ -40,6 +40

[PATCH 1/2] x86: make vmware support optional

2020-11-17 Thread Enrico Weigelt, metux IT consult
--- arch/x86/Kconfig | 7 +++ arch/x86/kernel/cpu/Makefile | 4 +++- arch/x86/kernel/cpu/hypervisor.c | 2 ++ drivers/input/mouse/Kconfig | 2 +- drivers/misc/Kconfig | 2 +- drivers/ptp/Kconfig | 2 +- 6 files changed, 15 insertions(+), 4 dele

[PATCH] drivers: acpi: add opt-out of apple specific property parsing

2020-11-17 Thread Enrico Weigelt, metux IT consult
Most x86 machines aren't Apple machines, especially VMs. Therefore allow opt-out, making the kernel a few KBs smaller, eg. for embedded or high-density VMs. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/acpi/Kconfig| 9 + drivers/acpi/Makefile | 2 +- drivers/acpi/int

[PATCH 2/2] x86: make hyperv support optional

2020-11-17 Thread Enrico Weigelt, metux IT consult
--- arch/x86/Kconfig | 7 +++ arch/x86/kernel/cpu/Makefile | 4 ++-- arch/x86/kernel/cpu/hypervisor.c | 2 ++ drivers/hv/Kconfig | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c227c1fa0091..60a

Re: [PATCH v4] mm: Optional full ASLR for mmap() and mremap()

2020-11-17 Thread Topi Miettinen
On 17.11.2020 18.54, Matthew Wilcox wrote: On Mon, Oct 26, 2020 at 06:05:18PM +0200, Topi Miettinen wrote: Writing a new value of 3 to /proc/sys/kernel/randomize_va_space enables full randomization of memory mappings created with mmap(NULL, ...). With 2, the base of the VMA used for such mapping

Re: [PATCH] drivers: acpi: add opt-out of apple specific property parsing

2020-11-17 Thread Randy Dunlap
On 11/17/20 12:18 PM, Enrico Weigelt, metux IT consult wrote: > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index edf1558c1105..398a9ae73705 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -79,6 +79,15 @@ config ACPI_DEBUGGER_USER > > endif > > +config ACPI

[PATCH 2/2] x86: make hyperv support optional

2020-11-17 Thread Enrico Weigelt, metux IT consult
Make it possible to opt-out from hyperv support. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/x86/Kconfig | 7 +++ arch/x86/kernel/cpu/Makefile | 4 ++-- arch/x86/kernel/cpu/hypervisor.c | 2 ++ drivers/hv/Kconfig | 2 +- 4 files changed, 12 inse

Re: [PATCH v9 01/17] memory: tegra30: Support interconnect framework

2020-11-17 Thread Georgi Djakov
Hi Dmitry, Thank you working on this! On 15.11.20 23:29, Dmitry Osipenko wrote: Now Internal and External memory controllers are memory interconnection providers. This allows us to use interconnect API for tuning of memory configuration. EMC driver now supports OPPs and DVFS. MC driver now supp

[PATCH 1/2] x86: make vmware support optional

2020-11-17 Thread Enrico Weigelt, metux IT consult
Make it possible to opt-out from vmware support Signed-off-by: Enrico Weigelt, metux IT consult --- arch/x86/Kconfig | 7 +++ arch/x86/kernel/cpu/Makefile | 4 +++- arch/x86/kernel/cpu/hypervisor.c | 2 ++ drivers/input/mouse/Kconfig | 2 +- drivers/misc/Kconfig

[patch v2 0/2] x86/dumpstack: Prevent access to foreign tasks user space

2020-11-17 Thread Thomas Gleixner
This is the second version of the patch to prevent access to a foreign tasks user space in copy_code(). It addresses the review comments from Boris and adds a new patch which provides documentation for copy_from_user_nmi() to avoid further confusion about it's usage. V1 can be found here: https:

Re: [PATCH] Revert "mm/vunmap: add cond_resched() in vunmap_pmd_range"

2020-11-17 Thread Minchan Kim
On Tue, Nov 17, 2020 at 01:56:32PM +, Christoph Hellwig wrote: > Btw, I remember that the whole vmalloc magic in zsmalloc was only giving > a small benefit for a few niche use cases. Given that it generally has > very strange interaction with the vmalloc core, including using various > APIs no

[patch v2 1/2] x86/dumpstack: Dont try to access user space code of other tasks

2020-11-17 Thread Thomas Gleixner
sysrq-t ends up invoking show_opcodes() for each task which tries to access the user space code of other processes which is obviously bogus. It either manages to dump where the foreign tasks regs->ip points to in a valid mapping of the current task or triggers a pagefault and prints "Code: Bad RIP

Re: [PATCH v3] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-17 Thread Konrad Rzeszutek Wilk
On Tue, Nov 17, 2020 at 07:04:59PM +, Kalra, Ashish wrote: > Hello Konrad, > > Actually I didn’t get that, do you mean you are taking 1G and <=4G cases out > of the patch and only going to apply the >4G case as part of the patch ? That was the thought, but now I am wondering how TDX is going

[PATCH] rtc: mxc: use of_device_get_match_data

2020-11-17 Thread Alexandre Belloni
Use of_device_get_match_data to simplify mxc_rtc_probe. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mxc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-mxc.c b/drivers/rtc/rtc-mxc.c index 018bfa952d66..0d253ce3a8f5 100644 --- a/drivers/rtc/rtc-mx

[patch v2 2/2] x86/uaccess: Document copy_from_user_nmi()

2020-11-17 Thread Thomas Gleixner
Document the functionality of copy_from_user_nmi() to avoid further confusion. Fix the typo in the existing comment while at it. Requested-by: Borislav Petkov Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/lib/usercopy.c | 22 ++ 1 file changed, 18 insertion

Re: [PATCH v9 3/3] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-11-17 Thread Minchan Kim
On Tue, Nov 17, 2020 at 12:06:48PM -0800, Linus Torvalds wrote: > On Mon, Nov 16, 2020 at 7:51 AM Minchan Kim wrote: > > > > Let me send a patch with your SoB if you don't mind. > > Eric, can you ack this SoB and I'll apply it to me tree? > > Or is it already queued up somewhere else? Andrew, p

Re: [PATCH net-next v4 2/4] dt-bindings: net: Add Rx/Tx output configuration for 10base T1L

2020-11-17 Thread Andrew Lunn
On Tue, Nov 17, 2020 at 02:15:53PM -0600, Dan Murphy wrote: > Per the 802.3cg spec the 10base T1L can operate at 2 different > differential voltages 1v p2p and 2.4v p2p. The abiility of the PHY to ability > drive that output is dependent on the PHY's on board power supply. > This common feature i

Re: [PATCH 1/2] x86: make vmware support optional

2020-11-17 Thread Borislav Petkov
On Tue, Nov 17, 2020 at 09:23:07PM +0100, Enrico Weigelt, metux IT consult wrote: > Make it possible to opt-out from vmware support Why? I can think of a couple of reasons but maybe yours might not be the one I'm thinking of. > Signed-off-by: Enrico Weigelt, metux IT consult > --- > arch/x86/

Re: possible deadlock in kill_fasync

2020-11-17 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:7c8ca812 Add linux-next specific files for 20201117 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16576c0e50 kernel config: https://syzkaller.appspot.com/x/.config?x

Re: [PATCH v2] checkpatch: add fix option for MISSING_SIGN_OFF

2020-11-17 Thread Aditya
On 11/11/20 9:20 pm, Joe Perches wrote: > On Wed, 2020-11-11 at 16:39 +0530, Aditya wrote: >> On 11/11/20 4:00 pm, Lukas Bulwahn wrote: >>> On Wed, Nov 11, 2020 at 10:01 AM Aditya Srivastava >>> wrote: Currently checkpatch warns us if there is no 'Signed-off-by' line for the patch.

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Steven Rostedt
On Tue, 17 Nov 2020 14:47:20 -0500 (EST) Mathieu Desnoyers wrote: > There seems to be more effect on the data size: adding the "stub_func" field > in struct tracepoint adds 8320 bytes of data to my vmlinux. But considering > the layout of struct tracepoint: > > struct tracepoint { > cons

Re: [Freedreno] [PATCH] drm/msm/dpu: Remove chatty vbif debug print

2020-11-17 Thread abhinavk
On 2020-11-17 09:26, Stephen Boyd wrote: I don't know what this debug print is for but it is super chatty, throwing 8 lines of debug prints in the logs every time we update a plane. It looks like it has no value. Let's nuke it so we can get better logs. Cc: Sean Paul Cc: Abhinav Kumar Signed-o

Re: [PATCH 2/2] fpga: dfl: look for vendor specific capability

2020-11-17 Thread Tom Rix
On 11/16/20 5:25 PM, matthew.gerl...@linux.intel.com wrote: > From: Matthew Gerlach > > A DFL may not begin at offset 0 of BAR 0. A PCIe vendor > specific capability can be used to specify the start of a > number of DFLs. > > Signed-off-by: Matthew Gerlach > --- > Documentation/fpga/dfl.rst |

Re: [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > Less code and easier probe deferral debugging. > > Signed-off-by: Guido Günther Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 8/9] platform/surface: Add Surface Aggregator user-space interface

2020-11-17 Thread Randy Dunlap
On 11/15/20 11:21 AM, Maximilian Luz wrote: > +#define SSAM_CDEV_REQUEST_IOWR(0xA5, 1, struct ssam_cdev_request) All ioctl major numbers (0xA5) should be documented in Documentation/userspace-api/ioctl/ioctl-number.rst Apologies if I missed it somewhere else. thanks. -- ~Randy

[v2] buffer_io_error: Use dev_err_ratelimited

2020-11-17 Thread Tony Asleson
Replace printk_ratelimited with dev_err_ratelimited which adds dev_printk meta data. This is used by journald to add disk ID information to the journal entry. Signed-off-by: Tony Asleson --- V2: - Move change log to after marker line (Andy Shevchenko) - Remove printk cast (Andy Shevchenko)

Re: [PATCH net-next v4 2/4] dt-bindings: net: Add Rx/Tx output configuration for 10base T1L

2020-11-17 Thread Dan Murphy
Andrew On 11/17/20 2:31 PM, Andrew Lunn wrote: On Tue, Nov 17, 2020 at 02:15:53PM -0600, Dan Murphy wrote: Per the 802.3cg spec the 10base T1L can operate at 2 different differential voltages 1v p2p and 2.4v p2p. The abiility of the PHY to ability Ack drive that output is dependent on the

Re: [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > We've seen some (non permanent) burn in and bad white balance > on some of the panels. Adding this bit from a vendor supplied > sequence fixes it. > > Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix > MLAF057WE51-X DSI panel

Re: [PATCH net] atl1e: fix error return code in atl1e_probe()

2020-11-17 Thread Marion & Christophe JAILLET
Le 17/11/2020 à 03:57, Zhang Changzhong a écrit : Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Hi, should it have any importance, the Fixes tag is wrong

Re: [PATCH] buffer_io_error: Use dev_err_ratelimited

2020-11-17 Thread Tony Asleson
On 10/28/20 6:22 PM, Andy Shevchenko wrote: > Staled documentation. You may send a patch to fix it (I Cc'ed > Christoph and Jonathan). > It means that it doesn't go under this category and the example should > be changed to something else. I'm looking into a suitable replacement example. Will pos

Re: [PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-17 Thread Marion & Christophe JAILLET
Le 17/11/2020 à 03:55, Zhang Changzhong a écrit : Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Hi, should it have any importance, the Fixes tag is wrong

Re: [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > The panel uses the same driver IC and has the same resolution but a > slightly different default mode. It seems it can work with the same > init sequence. > > Signed-off-by: Guido Günther Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > This can be used to use different modes for differnt panels via OF > device match. > > Signed-off-by: Guido Günther Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver

2020-11-17 Thread Guennadi Liakhovetski
On Tue, Nov 17, 2020 at 06:30:54PM +0100, Arnaud POULIQUEN wrote: [snip] > It's not a good day for me today... it seems I read your explanation too > quickly > this morning, which is, however, very clear. > My apologies Oh, I did the same to one of your earlier emails one of these days - I mis

Re: [PATCH 3/6] remoteproc/pru: Add support for PRU specific interrupt configuration

2020-11-17 Thread Suman Anna
Hi Greg, On 11/14/20 2:46 AM, Grzegorz Jaszczyk wrote: > The firmware blob can contain optional ELF sections: .resource_table > section and .pru_irq_map one. The second one contains the PRUSS > interrupt mapping description, which needs to be setup before powering > on the PRU core. To avoid RAM w

Re: [PATCH] print_req_error: Use dev_err_ratelimited

2020-11-17 Thread Tony Asleson
Any thoughts on this? Getting all the error paths to go through dev_printk is quite useful. On 10/26/20 11:05 AM, Tony Asleson wrote: > Replace printk_ratelimited with dev_err_ratelimited which > adds dev_printk meta data. This is used by journald to > add disk ID information to the journal entr

Re: [PATCH] rtc: mxc: use of_device_get_match_data

2020-11-17 Thread Fabio Estevam
On Tue, Nov 17, 2020 at 5:30 PM Alexandre Belloni wrote: > > Use of_device_get_match_data to simplify mxc_rtc_probe. > > Signed-off-by: Alexandre Belloni Reviewed-by: Fabio Estevam

Re: [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > Add prefix for Shenzhen Yashi Changhua Intelligent Technology Co., Ltd. > > Signed-off-by: Guido Günther > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation

[PATCH 0/5] Add uv_sysfs platform driver

2020-11-17 Thread Justin Ernst
Introduce a new platform driver to gather topology information from UV systems and expose that information via a sysfs interface at /sys/firmware/sgi_uv/. Justin Ernst (5): x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface x86/platform/uv: Add and export uv_bios_* functions x8

[PATCH 5/5] x86/platform/uv: Update MAINTAINERS for uv_sysfs driver

2020-11-17 Thread Justin Ernst
Add an entry and email address for the new uv_sysfs driver and its maintainer. Signed-off-by: Justin Ernst Acked-by: Steve Wahl --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b43b59542d15..f693d2d97203 100644 --- a/MAINTAINERS +++ b/MAI

[PATCH 1/5] x86/platform/uv: Remove existing /sys/firmware/sgi_uv/ interface

2020-11-17 Thread Justin Ernst
Remove existing interface at /sys/firmware/sgi_uv/, created by arch/x86/platform/uv/uv_sysfs.c This interface includes: /sys/firmware/sgi_uv/coherence_id /sys/firmware/sgi_uv/partition_id Signed-off-by: Justin Ernst Reviewed-by: Steve Wahl --- arch/x86/platform/uv/Makefile | 2 +- arch/x86/

[PATCH 4/5] x86/platform/uv: Update ABI documentation of /sys/firmware/sgi_uv/

2020-11-17 Thread Justin Ernst
Update the ABI documentation to describe the sysfs interface provided by the new uv_sysfs platform driver. Signed-off-by: Justin Ernst Reviewed-by: Steve Wahl --- .../ABI/testing/sysfs-firmware-sgi_uv | 137 -- 1 file changed, 122 insertions(+), 15 deletions(-) diff --g

[PATCH 2/5] x86/platform/uv: Add and export uv_bios_* functions

2020-11-17 Thread Justin Ernst
Add additional uv_bios_call variant functions to expose information needed by the new uv_sysfs driver. This includes the addition of several new data types defined by UV BIOS and used in the new functions. Signed-off-by: Justin Ernst Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/bios.h

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-17 Thread Minchan Kim
On Thu, Nov 12, 2020 at 02:56:49PM -0800, Andrew Morton wrote: > On Thu, 12 Nov 2020 18:26:24 +0530 Vijayanand Jitta > wrote: > > > >> 1. page_owner=off, stackdepot_stack_hash=0 -> no more wasted memory > > >> when we don't use page_owner > > >> 2. page_owner=on, stackdepot_stack_hash=8M -> reas

Re: [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS

2020-11-17 Thread Linus Walleij
On Tue, Nov 17, 2020 at 6:49 PM Guido Günther wrote: > This panel from Shenzhen Yashi Changhua Intelligent Technology Co > uses the same driver IC but a different LCD. > > Signed-off-by: Guido Günther Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH 3/5] x86/platform/uv: Add new uv_sysfs platform driver

2020-11-17 Thread Justin Ernst
Add the uv_sysfs driver to construct a read-only sysfs interface at /sys/firmware/sgi_uv/ to expose information gathered from UV BIOS. This information includes: UV Hub descriptions, including physical location Cabling layout between hubs on the fabric PCI topology, includin

Re: [PATCH net-next V5] net: Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO

2020-11-17 Thread Jakub Kicinski
On Fri, 13 Nov 2020 20:36:58 +0100 Dmytro Shytyi wrote: > Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO (randomly > generated hostID or stable privacy + privacy extensions). > The main problem is that SLAAC RA or PD allocates a /64 by the Wireless > carrier 4G, 5G to a mobile hotsp

Re: [PATCH v2 net-next 5/5] ptp: clockmatrix: deprecate firmware older than 4.8.7

2020-11-17 Thread kernel test robot
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/min-li-xe-renesas-com/ptp_clockmatrix-bug-fix-and-improvement/20201118-004135 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/ne

Re: [PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-17 Thread Jakub Kicinski
On Tue, 17 Nov 2020 21:39:05 +0100 Marion & Christophe JAILLET wrote: > Le 17/11/2020 à 03:55, Zhang Changzhong a écrit : > > Fix to return a negative error code from the error handling > > case instead of 0, as done elsewhere in this function. > > > > Fixes: 85eb5bc33717 ("net: atheros: switch fro

Re: [PATCH 13/24] perf tools: Allow mmap2 event to synthesize kernel image

2020-11-17 Thread Jiri Olsa
On Tue, Nov 17, 2020 at 02:43:33PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 17, 2020 at 04:16:51PM +0100, Jiri Olsa escreveu: > > On Tue, Nov 17, 2020 at 09:44:37AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Nov 17, 2020 at 12:00:42PM +0100, Jiri Olsa escreveu: > > > > Allow m

BUG: unable to handle kernel paging request in bitfill_aligned (2)

2020-11-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:0062442e Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16584b8150 kernel config: https://syzkaller.appspot.com/x/.config?x=f9aa2432c01bcb1f das

Re: [PATCH 23/24] perf buildid-list: Add support for mmap2's buildid events

2020-11-17 Thread Jiri Olsa
On Tue, Nov 17, 2020 at 02:54:00PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 17, 2020 at 04:21:40PM +0100, Jiri Olsa escreveu: > > On Tue, Nov 17, 2020 at 09:50:40AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Nov 17, 2020 at 12:00:52PM +0100, Jiri Olsa escreveu: > > > > Add bui

drivers/remoteproc/ti_k3_r5_remoteproc.c:377:28: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-11-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9c87c9f41245baa3fc4716cf39141439cf405b01 commit: 34f2653686fecc9bd5a4ee16724768c72953fb57 remoteproc: k3-r5: Initialize TCM memories for ECC date: 5 weeks ago config: arm64-randconfig-s031-20201117

Re: [PATCH 06/24] perf tools: Add build_id__is_defined function

2020-11-17 Thread Jiri Olsa
On Tue, Nov 17, 2020 at 11:00:37AM -0800, Ian Rogers wrote: > On Tue, Nov 17, 2020 at 3:01 AM Jiri Olsa wrote: > > > Adding build_id__is_defined helper to check build id > > is defined and is != zero build id. > > > > Signed-off-by: Jiri Olsa > > --- > > tools/perf/util/build-id.c | 7 +++ >

Re: [PATCH net-next v4 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-17 Thread Ioana Ciornei
On Tue, Nov 17, 2020 at 02:15:55PM -0600, Dan Murphy wrote: > The DP83TD510E is an ultra-low power Ethernet physical layer transceiver > that supports 10M single pair cable. > > The device supports both 2.4-V p2p and 1-V p2p output voltage as defined > by IEEE 802.3cg 10Base-T1L specfications. The

[PATCH] selftests/seccomp: sh: Fix register names

2020-11-17 Thread Kees Cook
It looks like the seccomp selftests were never actually built for sh. This fixes it, though I don't have an environment to do a runtime test of it yet. Fixes: 0bb605c2c7f2b4b3 ("sh: Add SECCOMP_FILTER") Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 4 ++-- 1 file c

Re: [PATCH] ipvs: replace atomic_add_return()

2020-11-17 Thread Julian Anastasov
Hello, On Mon, 16 Nov 2020, Yejune Deng wrote: > atomic_inc_return() looks better > > Signed-off-by: Yejune Deng Looks good to me for -next, thanks! Acked-by: Julian Anastasov > --- > net/netfilter/ipvs/ip_vs_core.c | 2 +- > net/netfilter/ipvs/ip_vs_sync.c | 4 ++-- > 2

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Steven Rostedt
On Tue, 17 Nov 2020 15:34:51 -0500 Steven Rostedt wrote: > On Tue, 17 Nov 2020 14:47:20 -0500 (EST) > Mathieu Desnoyers wrote: > > > There seems to be more effect on the data size: adding the "stub_func" field > > in struct tracepoint adds 8320 bytes of data to my vmlinux. But considering > > t

[PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-17 Thread Sami Tolvanen
Instead of casting callback functions to type iw_handler, which trips indirect call checking with Clang's Control-Flow Integrity (CFI), add stub functions with the correct function type for the callbacks. Reported-by: Sedat Dilek Signed-off-by: Sami Tolvanen --- net/wireless/wext-compat.c | 103

Re: [PATCH v2 2/4] gpio: visoconti: Add Toshiba Visconti GPIO support

2020-11-17 Thread Linus Walleij
Hi Nobuhiro, On Thu, Nov 12, 2020 at 12:42 AM Nobuhiro Iwamatsu wrote: > Add the GPIO driver for Toshiba Visconti ARM SoCs. > > Signed-off-by: Nobuhiro Iwamatsu I just noticed this: > +config GPIO_VISCONTI > + tristate "Toshiba Visconti GPIO support" > + depends on ARCH_VISCONTI |

[PATCH] selftests/seccomp: powerpc: Fix typo in macro variable name

2020-11-17 Thread Kees Cook
A typo sneaked into the powerpc selftest. Fix the name so it builds again. Fixes: 46138329faea ("selftests/seccomp: powerpc: Fix seccomp return value testing") Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-11-17 Thread Mathieu Chouquet-Stringer
Hello all, On Tue, Jul 14, 2020 at 12:17:50PM -0700, Matthew Garrett wrote: > On Tue, Jul 14, 2020 at 9:04 AM Chris Down wrote: > > Either way, again, this isn't really the point. :-) The point is that there > > _are_ currently widespread cases involving poking MSRs from userspace, > > however >

Re: [PATCH v4 01/10] Add auxiliary bus support

2020-11-17 Thread Dan Williams
On Mon, Nov 16, 2020 at 11:02 PM Greg KH wrote: > > On Tue, Nov 17, 2020 at 07:30:00AM +0200, Leon Romanovsky wrote: > > On Fri, Nov 13, 2020 at 08:18:50AM -0800, Dave Ertman wrote: > > > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > > > It enables drivers to create a

Re: [PATCH 8/9] platform/surface: Add Surface Aggregator user-space interface

2020-11-17 Thread Maximilian Luz
On 11/17/20 9:36 PM, Randy Dunlap wrote: On 11/15/20 11:21 AM, Maximilian Luz wrote: +#define SSAM_CDEV_REQUEST _IOWR(0xA5, 1, struct ssam_cdev_request) All ioctl major numbers (0xA5) should be documented in Documentation/userspace-api/ioctl/ioctl-number.rst Apologies if I missed it some

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Matthew Wilcox
On Fri, Nov 13, 2020 at 05:38:01PM -0800, Roman Gushchin wrote: > On Fri, Nov 13, 2020 at 08:08:58PM -0500, Zi Yan wrote: > > Matthew recently converted split_page_owner to take nr instead of order.[1] > > But I am not > > sure why, since it seems to me that two call sites (__split_huge_page in > >

Re: [PATCH v3 1/5] firmware: smccc: Add SMCCC TRNG function call IDs

2020-11-17 Thread Linus Walleij
On Fri, Nov 13, 2020 at 7:24 PM Andre Przywara wrote: > From: Ard Biesheuvel > > The ARM architected TRNG firmware interface, described in ARM spec > DEN0098, define an ARM SMCCC based interface to a true random number > generator, provided by firmware. > > Add the definitions of the SMCCC funct

Re: [PATCH] selftests/seccomp: sh: Fix register names

2020-11-17 Thread John Paul Adrian Glaubitz
Hi Kees! On 11/17/20 9:56 PM, Kees Cook wrote: > It looks like the seccomp selftests were never actually built for sh. > This fixes it, though I don't have an environment to do a runtime test > of it yet. We were testing libsecomp itself but I think we might have forgotten the self-test. Not sure

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Mathieu Desnoyers
- On Nov 17, 2020, at 3:34 PM, rostedt rost...@goodmis.org wrote: > On Tue, 17 Nov 2020 14:47:20 -0500 (EST) > Mathieu Desnoyers wrote: > >> There seems to be more effect on the data size: adding the "stub_func" field >> in struct tracepoint adds 8320 bytes of data to my vmlinux. But conside

[gustavoars-linux:for-next/kspp] BUILD SUCCESS fec64d5de64f46b597156e8a82dff704dabf8f82

2020-11-17 Thread kernel test robot
randconfig-a002-20201116 i386 randconfig-a003-20201116 i386 randconfig-a006-20201116 i386 randconfig-a005-20201116 i386 randconfig-a004-20201116 i386 randconfig-a006-20201117 i386 randconfig-a005

[gustavoars-linux:testing/clang-ft-next-20201116] BUILD SUCCESS 0e28073c5637cec9f3eabb60460db884c07649b5

2020-11-17 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/clang-ft-next-20201116 branch HEAD: 0e28073c5637cec9f3eabb60460db884c07649b5 staging: vt6655: Fix fall-through warnings for Clang elapsed time: 722m configs tested: 102 configs skipped: 2 The following

Re: [PATCH v1 0/2] Fix misuse of security_capable()

2020-11-17 Thread Kees Cook
On Fri, 30 Oct 2020 13:38:47 +0100, Mickaël Salaün wrote: > This series replaces all the use of security_capable(current_cred(), > ...) with ns_capable{,_noaudit}() which set PF_SUPERPRIV. > > This initially come from a review of Landlock by Jann Horn: > https://lore.kernel.org/lkml/cag48ez1fqvkt7

Re: [PATCH v3 2/5] firmware: smccc: Introduce SMCCC TRNG framework

2020-11-17 Thread Linus Walleij
On Fri, Nov 13, 2020 at 7:24 PM Andre Przywara wrote: > The ARM DEN0098 document describe an SMCCC based firmware service to > deliver hardware generated random numbers. Its existence is advertised > according to the SMCCC v1.1 specification. > > Add a (dummy) call to probe functions implemented

Re: [PATCH v1] Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC

2020-11-17 Thread kernel test robot
Hi Venkata, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bluetooth-next/master] [also build test WARNING on linux/master linus/master v5.10-rc4 next-20201117] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Matthew Wilcox
On Wed, Nov 11, 2020 at 03:40:05PM -0500, Zi Yan wrote: > - for (i = 0; i < nr; i++) { > + for (i = 0; i < nr; i += (1 << new_order)) { > page_owner = get_page_owner(page_ext); > - page_owner->order = 0; > + page_owner->order = new_order; >

Re: [PATCH v3 3/5] ARM: implement support for SMCCC TRNG entropy source

2020-11-17 Thread Linus Walleij
On Fri, Nov 13, 2020 at 7:24 PM Andre Przywara wrote: > From: Ard Biesheuvel > > Implement arch_get_random_seed_*() for ARM based on the firmware > or hypervisor provided entropy source described in ARM DEN0098. > > This will make the kernel's random number generator consume entropy > provided b

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Zi Yan
On 17 Nov 2020, at 16:05, Matthew Wilcox wrote: > On Fri, Nov 13, 2020 at 05:38:01PM -0800, Roman Gushchin wrote: >> On Fri, Nov 13, 2020 at 08:08:58PM -0500, Zi Yan wrote: >>> Matthew recently converted split_page_owner to take nr instead of order.[1] >>> But I am not >>> sure why, since it seems

Re: [PATCH seccomp v2 0/8] seccomp: add bitmap cache support on remaining arches and report cache in procfs

2020-11-17 Thread Kees Cook
On Wed, 11 Nov 2020 07:33:46 -0600, YiFei Zhu wrote: > This patch series enables bitmap cache for the remaining arches with > SECCOMP_FILTER, other than MIPS. > > I was unable to find any of the arches having subarch-specific NR_syscalls > macros, so generic NR_syscalls is used. SH's syscall_get_a

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Zi Yan
On 17 Nov 2020, at 16:10, Matthew Wilcox wrote: > On Wed, Nov 11, 2020 at 03:40:05PM -0500, Zi Yan wrote: >> -for (i = 0; i < nr; i++) { >> +for (i = 0; i < nr; i += (1 << new_order)) { >> page_owner = get_page_owner(page_ext); >> -page_owner->order = 0; >> +

Re: [PATCH v2 5/8] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-17 Thread Prashant Malani
Hi Utkarsh, On Fri, Nov 13, 2020 at 12:25:00PM -0800, Utkarsh Patel wrote: > USB4 also uses same cable properties as Thunderbolt 3 so use Thunderbolt 3 > cable discover mode VDO to fill details such as active cable plug link > training and cable rounded support. > > Suggested-by: Heikki Krogerus

Re: [PATCH] kbuild: Always link with '-z norelro'

2020-11-17 Thread Linus Walleij
On Thu, Nov 12, 2020 at 7:41 PM Nathan Chancellor wrote: > Commit 3bbd3db86470 ("arm64: relocatable: fix inconsistencies in linker > script and options") added '-z norelro' to the arm64 Makefile when > CONFIG_RELOCATABLE was set to help support ld.lld because ld.lld > defaults to '-z relro' but t

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-11-17 Thread Borislav Petkov
On Tue, Nov 17, 2020 at 10:00:18PM +0100, Mathieu Chouquet-Stringer wrote: > I'm late to the party but it seems allowing MSR_IA32_ENERGY_PERF_BIAS > has the downside of flagging the kernel as tainted without telling you > why if you use something like x86_energy_perf_policy (from > tools/power/x86/

Re: [RFC PATCH v2 10/10] firmware: arm_scmi: Add virtio transport

2020-11-17 Thread Cristian Marussi
On Thu, Nov 12, 2020 at 11:57:09AM +0100, Peter Hilber wrote: > On 10.11.20 22:32, Cristian Marussi wrote: > > Hi Peter/Igor, > > > > I went through this series while trying to grasp a bit more of all the > > virtio inner workings and needs and I'll leave a few detailed comments > > down below. >

Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API

2020-11-17 Thread Ricardo Ribalda
Hi Christoph I have been testing with real hardware on arm64 your patchset. And uvc performs 20 times better using Kieran's test https://github.com/ribalda/linux/tree/uvc-noncontiguous These are the result of running yavta --capture=1000 dma_alloc_noncontiguous frames: 999 packets: 999 emp

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-11-17 Thread Matthew Garrett
On Tue, Nov 17, 2020 at 1:00 PM Mathieu Chouquet-Stringer wrote: > I'm late to the party but it seems allowing MSR_IA32_ENERGY_PERF_BIAS > has the downside of flagging the kernel as tainted without telling you > why if you use something like x86_energy_perf_policy (from > tools/power/x86/x86_ener

[PATCH] rtc: sc27xx: Always read normal alarm

2020-11-17 Thread Alexandre Belloni
The RTC core only reads the alarm from the hardware at boot time, to know whether an alarm was already set before booting. It keeps track of all the alarms after that so there is no need to ever read the auxiliary alarm. Commit 3822d1bb0df1 ("rtc: sc27xx: Always read normal alarm when registering

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-11-17 Thread Matthew Garrett
On Tue, Nov 17, 2020 at 1:21 PM Matthew Garrett wrote: > > On Tue, Nov 17, 2020 at 1:00 PM Mathieu Chouquet-Stringer > wrote: > > > I'm late to the party but it seems allowing MSR_IA32_ENERGY_PERF_BIAS > > has the downside of flagging the kernel as tainted without telling you > > why if you use s

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Matthew Wilcox
On Tue, Nov 17, 2020 at 04:12:03PM -0500, Zi Yan wrote: > On 17 Nov 2020, at 16:05, Matthew Wilcox wrote: > > > On Fri, Nov 13, 2020 at 05:38:01PM -0800, Roman Gushchin wrote: > >> On Fri, Nov 13, 2020 at 08:08:58PM -0500, Zi Yan wrote: > >>> Matthew recently converted split_page_owner to take nr

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Mathieu Desnoyers
- On Nov 17, 2020, at 3:58 PM, rostedt rost...@goodmis.org wrote: > On Tue, 17 Nov 2020 15:34:51 -0500 > Steven Rostedt wrote: [...] > If it comes down to not trusting calling a stub, I'll still keep the stub > logic in, and just add the following: If we don't call the stub, then there is n

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