[PATCH 2/6] arm64: dts: msm8916-longcheer-l8150: Add touchscreen

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has RMI4 compatible Synaptics touchscreen on blsp_i2c5. It is powered by fixed regulator. Add both to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 63 +++ 1 file changed, 63 insertions(+) diff --g

Re: [PATCH] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind()

2020-11-13 Thread Jernej Škrabec
Hi! Thanks for the patch. Dne četrtek, 12. november 2020 ob 14:14:51 CET je Xiongfeng Wang napisal(a): > Fix to return a negative error code from the error handling case instead > of 0 in function sun8i_dw_hdmi_bind(). > > Fixes: b7c7436a5ff0 ("drm/sun4i: Implement A83T HDMI driver") > Reported-

Re: [PATCH][next] drm/kmb: fix array out-of-bounds writes to kmb->plane_status[]

2020-11-13 Thread Sam Ravnborg
Hi Colin. On Fri, Nov 13, 2020 at 03:04:34PM +, Colin Ian King wrote: > On 13/11/2020 14:55, Sam Ravnborg wrote: > > Hi Colin. > > > > On Fri, Nov 13, 2020 at 12:01:21PM +, Colin King wrote: > >> From: Colin Ian King > >> > >> Writes to elements in the kmb->plane_status array in function

Re: [GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread Steven Rostedt
On Fri, 13 Nov 2020 09:57:54 -0800 Linus Torvalds wrote: > On Fri, Nov 13, 2020 at 9:54 AM Steven Rostedt wrote: > > > > The issue is that grub padded the end of the ramdisk after loading it > > into memory. I'm not sure how the bootconfig tool can fix this. Perhaps > > make sure the ram disk si

Re: [PATCH bpf-next v5 07/34] bpf: memcg-based memory accounting for bpf maps

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > This patch enables memcg-based memory accounting for memory allocated > by __bpf_map_area_alloc(), which is used by many types of bpf maps for > large memory allocations. > > Following patches in the series will refine the accounting fo

Re: [PATCH v4 2/9] arm64: perf: Enable pmu counter direct access for perf event on armv8

2020-11-13 Thread Mark Rutland
Hi Rob, Thanks for this, and sorry for the long delay since this was last reviewed. Overall this is looking pretty good, but I have a couple of remaining concerns. Will, I have a query for you below. On Thu, Oct 01, 2020 at 09:01:09AM -0500, Rob Herring wrote: > From: Raphael Gault > > Keep tr

[PATCH] spi: bcm2835aux: Restore err assignment in bcm2835aux_spi_probe

2020-11-13 Thread Nathan Chancellor
Clang warns: drivers/spi/spi-bcm2835aux.c:532:50: warning: variable 'err' is uninitialized when used here [-Wuninitialized] dev_err(&pdev->dev, "could not get clk: %d\n", err); ^~~ ./include/linux/dev_printk.h:112:32: n

Re: [PATCH bpf-next v5 15/34] bpf: memcg-based memory accounting for bpf local storage maps

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > Account memory used by bpf local storage maps: > per-socket and per-inode storages. > > Signed-off-by: Roman Gushchin Acked-by: Song Liu [...]

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

2020-11-13 Thread Linus Torvalds
On Fri, Nov 13, 2020 at 9:03 AM Alexei Starovoitov wrote: > > Linus, > I think you might have an opinion about it. > Please see commit log for the reason we need this fix. Why is BPF doing this? The thing is, if you care about the data after the strncpy, you should be clearing it yourself. The

[RFC bpf-next 2/3] libbpf: bpf__find_by_name[_kind] should use btf__get_nr_types()

2020-11-13 Thread Alan Maguire
When operating on split BTF, btf__find_by_name[_kind] will not iterate over all types since they use btf->nr_types to show the number of types to iterate over. For split BTF this is the number of types _on top of base BTF_, so it will underestimate the number of types to iterate over, especially f

[RFC bpf-next 0/3] bpf: support module BTF in btf display helpers

2020-11-13 Thread Alan Maguire
This series aims to add support to bpf_snprintf_btf() and bpf_seq_printf_btf() allowing them to store string representations of module-specific types, as well as the kernel-specific ones they currently support. Patch 1 adds an additional field "const char *module" to "struct btf_ptr", allowing th

[RFC bpf-next 1/3] bpf: add module support to btf display helpers

2020-11-13 Thread Alan Maguire
bpf_snprintf_btf and bpf_seq_printf_btf use a "struct btf_ptr *" argument that specifies type information about the type to be displayed. Augment this information to include a module name, allowing such display to support module types. Signed-off-by: Alan Maguire --- include/linux/btf.h

Re: [GIT PULL] MMC fixes for v5.10-rc4

2020-11-13 Thread pr-tracker-bot
The pull request you sent on Fri, 13 Nov 2020 12:29:01 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.10-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/673cb932b688ad3b03de89dc2b0b97c75ad47112 Thank you! -- Deet-doot-dot, I am a

[RFC bpf-next 3/3] selftests/bpf: verify module-specific types can be shown via bpf_snprintf_btf

2020-11-13 Thread Alan Maguire
Verify that specifying a module name in "struct btf_ptr *" along with a type id of a module-specific type will succeed. veth_stats_rx() is chosen because its function signature consists of a module-specific type "struct veth_stats" and a kernel-specific one "struct net_device". Signed-off-by: Ala

Re: [git pull] drm fixes for 5.10-rc4

2020-11-13 Thread pr-tracker-bot
The pull request you sent on Fri, 13 Nov 2020 16:41:04 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-11-13 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e627c25544dfec9af56842b07e40ad992731627a Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [PATCH bpf-next v5 31/34] bpf: eliminate rlimit-based memory accounting for bpf local storage maps

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > Do not use rlimit-based memory accounting for bpf local storage maps. > It has been replaced with the memcg-based memory accounting. > > Signed-off-by: Roman Gushchin > --- > kernel/bpf/bpf_local_storage.c | 11 --- > 1 file cha

Re: [PATCH][next] drm/kmb: fix potential integer overflow on multiplication

2020-11-13 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Colin-King/drm-kmb-fix-potential-integer-overflow-on-multiplication/20201113-203903 base:a60b1e1fe9ca5f9d9a79e89a8d71228a8e04d35c config: m68k-allmodconfig (attached

Re: [RFC PATCH 4/9] cxl/mem: Map memory device registers

2020-11-13 Thread Bjorn Helgaas
On Tue, Nov 10, 2020 at 09:43:51PM -0800, Ben Widawsky wrote: > All the necessary bits are initialized in order to find and map the > register space for CXL Memory Devices. This is accomplished by using the > Register Locator DVSEC (CXL 2.0 - 8.1.9.1) to determine which PCI BAR to > use, and how mu

Re: [PATCH bpf-next v5 32/34] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > Remove rlimit-based accounting infrastructure code, which is not used > anymore. > > Signed-off-by: Roman Gushchin Acked-by: Song Liu [...]

Re: [RFC PATCH 3/9] cxl/mem: Add a driver for the type-3 mailbox

2020-11-13 Thread Bjorn Helgaas
On Tue, Nov 10, 2020 at 09:43:50PM -0800, Ben Widawsky wrote: > From: Dan Williams > > The CXL.mem protocol allows a device to act as a provider of "System > RAM" and/or "Persistent Memory" that is fully coherent as if the memory > was attached to the typical CPU memory controller. > > The memor

[PATCH] perf test: Avoid an msan warning in a copied stack.

2020-11-13 Thread Ian Rogers
This fix is for a failure that occurred in the DWARF unwind perf test. Stack unwinders may probe memory when looking for frames. Memory sanitizer will poison and track uninitialized memory on the stack, and on the heap if the value is copied to the heap. This can lead to false memory sanitizer fail

Re: [PATCH] Documentation: kunit: provide guidance for testing many inputs

2020-11-13 Thread Daniel Latypov
On Fri, Nov 6, 2020 at 8:21 PM David Gow wrote: > > On Tue, Nov 3, 2020 at 5:37 AM Daniel Latypov wrote: > > > > usage.rst goes into a detailed about faking out classes, but currently > > Nit: a detailed what? Thanks for the catch, added "detailed section" locally. > > > lacks wording about how

[PATCH v3 0/5] ARM: arm64: Add SMCCC TRNG entropy service

2020-11-13 Thread Andre Przywara
Hi, an update to v2 with some fixes and a few tweaks. Ard's patch [1] should significantly reduce the frequency of arch_get_random_seed_long() calls, not sure if that is enough the appease the concerns about the potentially long latency of SMC calls. I also dropped the direct arch_get_random() cal

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

2020-11-13 Thread Andre Przywara
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 by this interface, at early boot, and periodically at runtime when re

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

2020-11-13 Thread Andre Przywara
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 in each architecture (ARM and arm64), to determine the existence

[PATCH v3 5/5] KVM: arm64: implement the TRNG hypervisor call

2020-11-13 Thread Andre Przywara
From: Ard Biesheuvel Provide a hypervisor implementation of the ARM architected TRNG firmware interface described in ARM spec DEN0098. All function IDs are implemented, including both 32-bit and 64-bit versions of the TRNG_RND service, which is the centerpiece of the API. The API is backed by th

[PATCH v3 4/5] arm64: Add support for SMCCC TRNG entropy source

2020-11-13 Thread Andre Przywara
The ARM architected TRNG firmware interface, described in ARM spec DEN0098, defines an ARM SMCCC based interface to a true random number generator, provided by firmware. This can be discovered via the SMCCC >=v1.1 interface, and provides up to 192 bits of entropy per call. Hook this SMC call into

Re: saner sock_from_file() calling conventions (was Re: [PATCH] bpf: Expose a bpf_sock_from_file helper to tracing programs)

2020-11-13 Thread Florent Revest
On Thu, 2020-11-12 at 20:28 +, Al Viro wrote: > On Thu, Nov 12, 2020 at 09:09:44PM +0100, Florent Revest wrote: > > From: Florent Revest > > > > eBPF programs can already check whether a file is a socket using > > file->f_op == &socket_file_ops but they can not convert file- > > >private_data

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

2020-11-13 Thread Andre Przywara
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 functions as defined by the spec. Signed-off-by: Ard Biesheuvel Signed-

Re: [PATCH kernel v3] genirq/irqdomain: Add reference counting to IRQs

2020-11-13 Thread Cédric Le Goater
On 11/9/20 10:46 AM, Alexey Kardashevskiy wrote: > PCI devices share 4 legacy INTx interrupts from the same PCI host bridge. > Device drivers map/unmap hardware interrupts via irq_create_mapping()/ > irq_dispose_mapping(). The problem with that these interrupts are > shared and when performing hot

Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities

2020-11-13 Thread Bjorn Helgaas
On Tue, Nov 10, 2020 at 09:43:52PM -0800, Ben Widawsky wrote: > CXL devices contain an array of capabilities that describe the > interactions software can interact with the device, or firmware running > on the device. A CXL compliant device must implement the device status > and the mailbox capabil

Re: [PATCH 4.19 107/191] ARM: dts: s5pv210: move PMU node out of clock controller

2020-11-13 Thread Pavel Machek
Hi! > > > > I don't think this commit should be backported to stable. It is simple > > > > dtbs_check - checking whether Devicetree source matches device tree > > > > schema. Neither the schema nor the warning existed in v4.19. I think > > > > dtbs_check fixes should not be backported, unless a re

[PATCH] x86/e820: fix the function type for e820__mapped_all

2020-11-13 Thread Sami Tolvanen
e820__mapped_all is passed as a callback to is_mmconf_reserved, which expects a function of type: typedef bool (*check_reserved_t)(u64 start, u64 end, unsigned type); This trips indirect call checking with Clang's Control-Flow Integrity (CFI). Change the last argument from enum e820_type to uns

Re: [PATCH] bpf: Expose bpf_sk_storage_* to iterator programs

2020-11-13 Thread Florent Revest
On Thu, 2020-11-12 at 13:57 -0800, Martin KaFai Lau wrote: > Test(s) is needed. e.g. iterating a bpf_sk_storage_map and also > calling bpf_sk_storage_get/delete. > > I would expect to see another test/example showing how it works end- > to-end to solve the problem you have in hand. > This patch p

Re: [PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-13 Thread Sekhar Nori
Hi Nishanth, On 12/11/20 10:09 PM, Nishanth Menon wrote: > On 00:41-20201103, Faiz Abbas wrote: >> There are 4 instances of gpio modules in main domain: >> gpio0, gpio2, gpio4 and gpio6 >> >> Groups are created to provide protection between different processor virtual >> worlds. Each of these

[PATCH] perf/x86: fix sysfs type mismatches

2020-11-13 Thread Sami Tolvanen
This change switches rapl to use PMU_FORMAT_ATTR, and fixes two other macros to use device_attribute instead of kobj_attribute to avoid callback type mismatches that trip indirect call checking with Clang's Control-Flow Integrity (CFI). Reported-by: Sedat Dilek Signed-off-by: Sami Tolvanen ---

Re: [PATCH v3] arm64: defconfig: Enable GPIO and I2C configs for TI's J721e platform

2020-11-13 Thread Nishanth Menon
On 22:45-20201113, Sekhar Nori wrote: > On 13/11/20 10:34 PM, Nishanth Menon wrote: > > On 21:19-20201113, Sekhar Nori wrote: > >> From: Faiz Abbas > >> > >> Add configs to help enable regulators that supply power to the SD card > >> on TI's

Re: [PATCH] dmaengine: ioatdma: remove unused function missed during dma_v2 removal

2020-11-13 Thread Nathan Chancellor
On Fri, Nov 13, 2020 at 09:12:48AM +0100, Lukas Bulwahn wrote: > Commit 7f832645d0e5 ("dmaengine: ioatdma: remove ioatdma v2 registration") > missed to remove dca2_tag_map_valid() during its removal. Hence, since > then, dca2_tag_map_valid() is unused and make CC=clang W=1 warns: > > drivers/dma

[PATCH] samples/ftrace: mark my_tramp[12]? global

2020-11-13 Thread Sami Tolvanen
my_tramp[12]? are declared as global functions in C, but they are not marked global in the inline assembly definition. This mismatch confuses Clang's Control-Flow Integrity checking. Fix the definitions by adding .globl. Signed-off-by: Sami Tolvanen --- samples/ftrace/ftrace-direct-modify.c | 2

Re: [PATCH kernel v3] genirq/irqdomain: Add reference counting to IRQs

2020-11-13 Thread Marc Zyngier
Hi Alexey, On 2020-11-09 09:46, Alexey Kardashevskiy wrote: PCI devices share 4 legacy INTx interrupts from the same PCI host bridge. Device drivers map/unmap hardware interrupts via irq_create_mapping()/ irq_dispose_mapping(). The problem with that these interrupts are shared and when performi

Re: [PATCH] x86/e820: fix the function type for e820__mapped_all

2020-11-13 Thread Randy Dunlap
On 11/13/20 10:26 AM, Sami Tolvanen wrote: > e820__mapped_all is passed as a callback to is_mmconf_reserved, which > expects a function of type: > > typedef bool (*check_reserved_t)(u64 start, u64 end, unsigned type); > > This trips indirect call checking with Clang's Control-Flow Integrity > (

Re: [PATCH] ipv6: remove unused function ipv6_skb_idev()

2020-11-13 Thread Nathan Chancellor
On Fri, Nov 13, 2020 at 02:50:12PM +0100, Lukas Bulwahn wrote: > Commit bdb7cc643fc9 ("ipv6: Count interface receive statistics on the > ingress netdev") removed all callees for ipv6_skb_idev(). Hence, since > then, ipv6_skb_idev() is unused and make CC=clang W=1 warns: > > net/ipv6/exthdrs.c:90

[PATCH] Asoc: qcom: sc7180: Register shutdown handler for lpass platform

2020-11-13 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Register shutdown handler to stop sc7180 lpass platform driver and to disable audio clocks. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c| 10 ++ sound/soc/qcom/lpass-sc7180.c | 1 + sound/soc/

Re: [PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-13 Thread Nishanth Menon
On 23:59-20201113, Sekhar Nori wrote: [..] > > dtbs_check: we added: > > arch/arm64/boot/dts/ti/k3-j7200-main.dtsi: /bus@10/gpio@60: Missing > > #address-cells in interrupt provider > > arch/arm64/boot/dts/ti/k3-j7200-main.dtsi: /bus@10/gpio@61: Missin

Re: [PATCH] futex: remove unused empty compat_exit_robust_list()

2020-11-13 Thread Nathan Chancellor
> > There is no need to declare the unused empty function for !CONFIG_COMPAT. > Simply, remove it to address the -Wunused-function warning. > > Signed-off-by: Lukas Bulwahn Reviewed-by: Nathan Chancellor > --- > applies cleanly on current master and next-20201113 > > T

Re: [PATCH v4 1/1] regulator: core: do not continue if selector match

2020-11-13 Thread Mark Brown
On Fri, 13 Nov 2020 19:56:04 +0200, Claudiu Beznea wrote: > Do not continue if selector has already been located. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: core: do not continue if selector match commit: ab97800e

Re: [PATCH] spi: bcm2835aux: Restore err assignment in bcm2835aux_spi_probe

2020-11-13 Thread Mark Brown
On Fri, 13 Nov 2020 11:07:02 -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/spi/spi-bcm2835aux.c:532:50: warning: variable 'err' is > uninitialized when used here [-Wuninitialized] > dev_err(&pdev->dev, "could not get clk: %d\n", err); >

Re: [PATCH v5 0/2] NFS: Fix interaction between fs_context and user namespaces

2020-11-13 Thread Sargun Dhillon
On Thu, Nov 12, 2020 at 02:09:50AM -0800, Sargun Dhillon wrote: > Right now, it is possible to mount NFS with an non-matching super block > user ns, and NFS sunrpc user ns. This (for the user) results in an awkward > set of interactions if using anything other than auth_null, where the UIDs > being

Re: [PATCH] vdpasim: fix "mac_pton" undefined error

2020-11-13 Thread Randy Dunlap
On 11/13/20 7:57 AM, Laurent Vivier wrote: >ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined! > > mac_pton() is defined in lib/net_utils.c and is not built if NET is not set. > > Select GENERIC_NET_UTILS as vdpasim doesn't depend on NET. > > Reported-by: kernel test r

Re: [PATCH v3 1/2] drm/amdkfd: Move the ignore_crat check before the CRAT table get

2020-11-13 Thread Felix Kuehling
Am 2020-11-12 um 10:11 p.m. schrieb Hanjun Guo: > If the ignore_crat is set to non-zero value, it's no point getting > the CRAT table, so just move the ignore_crat check before we get the > CRAT table. > > Signed-off-by: Hanjun Guo Thank you! I applied the patches. Regards,   Felix > --- > dr

Re: [PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 2:32 AM Jessica Yu wrote: > > +++ Andrii Nakryiko [11/11/20 12:11 -0800]: > >On Wed, Nov 11, 2020 at 2:13 AM Jessica Yu wrote: > >> > >> +++ Andrii Nakryiko [09/11/20 17:19 -0800]: > >> [snipped] > >> >diff --git a/kernel/module.c b/kernel/module.c > >> >index a4fa44a652a7

Re: [PATCH v9 2/3] scsi: storvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening

2020-11-13 Thread Wei Liu
On Fri, Nov 13, 2020 at 11:33:27AM +, Wei Liu wrote: > On Mon, Nov 09, 2020 at 11:04:01AM +0100, Andrea Parri (Microsoft) wrote: > > From: Andres Beltran > > > > Currently, pointers to guest memory are passed to Hyper-V as > > transaction IDs in storvsc. In the face of errors or malicious > >

Re: [PATCH] samples/ftrace: mark my_tramp[12]? global

2020-11-13 Thread Kees Cook
On Fri, Nov 13, 2020 at 10:34:14AM -0800, Sami Tolvanen wrote: > my_tramp[12]? are declared as global functions in C, but they are not > marked global in the inline assembly definition. This mismatch confuses > Clang's Control-Flow Integrity checking. Fix the definitions by adding > .globl. > > Si

Re: [PATCH net-next v2 05/11] dt-bindings: net: dsa: microchip,ksz: add interrupt property

2020-11-13 Thread Christian Eggers
On Friday, 13 November 2020, 00:07:32 CET, Vladimir Oltean wrote: > On Thu, Nov 12, 2020 at 04:35:31PM +0100, Christian Eggers wrote: > > The devices have an optional interrupt line. > > > > Signed-off-by: Christian Eggers > > --- > > > > .../devicetree/bindings/net/dsa/microchip,ksz.yaml

Re: [RFC PATCH 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2020-11-13 Thread Jonathan Cameron
On Fri, 13 Nov 2020 17:06:11 + Jyoti Bhayana wrote: > This change provides ARM SCMI Protocol based IIO device. > This driver provides support for Accelerometer and Gyroscope using > new SCMI Sensor Protocol defined by the upcoming SCMIv3.0 > ARM specification > > Signed-off-by: Jyoti Bhayana

Re: [PATCH] perf/x86: fix sysfs type mismatches

2020-11-13 Thread Kees Cook
On Fri, Nov 13, 2020 at 10:31:26AM -0800, Sami Tolvanen wrote: > This change switches rapl to use PMU_FORMAT_ATTR, and fixes two other > macros to use device_attribute instead of kobj_attribute to avoid > callback type mismatches that trip indirect call checking with Clang's > Control-Flow Integrit

Re: [PATCH net-next v2 06/11] net: dsa: microchip: ksz9477: basic interrupt support

2020-11-13 Thread Christian Eggers
On Friday, 13 November 2020, 00:26:17 CET, Vladimir Oltean wrote: > On Thu, Nov 12, 2020 at 04:35:32PM +0100, Christian Eggers wrote: > > Interrupts are required for TX time stamping. Probably they could also > > be used for PHY connection status. > > Do the KSZ switches have an internal PHY? And

Re: [PATCH] x86/e820: fix the function type for e820__mapped_all

2020-11-13 Thread Sami Tolvanen
On Fri, Nov 13, 2020 at 10:35 AM Randy Dunlap wrote: > > On 11/13/20 10:26 AM, Sami Tolvanen wrote: > > e820__mapped_all is passed as a callback to is_mmconf_reserved, which > > expects a function of type: > > > > typedef bool (*check_reserved_t)(u64 start, u64 end, unsigned type); > > > > This

Re: [PATCH net-next v2 08/11] net: ptp: add helper for one-step P2P clocks

2020-11-13 Thread Christian Eggers
On Friday, 13 November 2020, 01:51:24 CET, Vladimir Oltean wrote: > On Thu, Nov 12, 2020 at 04:35:34PM +0100, Christian Eggers wrote: > > This function subtracts the ingress hardware time stamp from the > > correction field of a PTP header and updates the UDP checksum (if UDP is > > used as transpo

Re: [PATCH] x86/e820: fix the function type for e820__mapped_all

2020-11-13 Thread Randy Dunlap
On 11/13/20 10:59 AM, Sami Tolvanen wrote: > On Fri, Nov 13, 2020 at 10:35 AM Randy Dunlap wrote: >> >> On 11/13/20 10:26 AM, Sami Tolvanen wrote: >>> e820__mapped_all is passed as a callback to is_mmconf_reserved, which >>> expects a function of type: >>> >>> typedef bool (*check_reserved_t)(u6

Re: [PATCH net-next v2 09/11] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-11-13 Thread Christian Eggers
On Friday, 13 November 2020, 03:40:20 CET, Vladimir Oltean wrote: > On Thu, Nov 12, 2020 at 04:35:35PM +0100, Christian Eggers wrote: [...] > > @@ -103,6 +108,10 @@ static int ksz9477_ptp_adjtime(struct ptp_clock_info > > *ptp, s64 delta)> > > if (ret) > > > > goto error_retur

Re: Error: invalid switch -me200

2020-11-13 Thread Nathan Chancellor
torvalds/linux.git > > master > > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > > commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix > > GCC_TOOLCHAIN_DIR prefix for Clang cross compilation > > date: 4 months ago > > config: powerpc-randconfig-r0

[PATCH v4] tcp: fix race condition when creating child sockets from syncookies

2020-11-13 Thread Ricardo Dias
When the TCP stack is in SYN flood mode, the server child socket is created from the SYN cookie received in a TCP packet with the ACK flag set. The child socket is created when the server receives the first TCP packet with a valid SYN cookie from the client. Usually, this packet corresponds to the

Re: [PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-13 Thread Sekhar Nori
On 14/11/20 12:10 AM, Nishanth Menon wrote: > On 23:59-20201113, Sekhar Nori wrote: > [..] >>> dtbs_check: we added: >>> arch/arm64/boot/dts/ti/k3-j7200-main.dtsi: /bus@10/gpio@60: Missing >>> #address-cells in interrupt provider >>> arch/arm64/b

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

2020-11-13 Thread Dmytro Shytyi
Hello, On Fri, 13 Nov 2020 13:38:02 +0100 Hideaki Yoshifuji wrote > Hi, > > 2020年11月13日(金) 10:57 Dmytro Shytyi : > > > > Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO (randomly > > generated hostID or stable privacy + privacy extensions). > > The main pr

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

2020-11-13 Thread Alexei Starovoitov
On Fri, Nov 13, 2020 at 10:08:02AM -0800, Linus Torvalds wrote: > On Fri, Nov 13, 2020 at 9:03 AM Alexei Starovoitov > wrote: > > > > Linus, > > I think you might have an opinion about it. > > Please see commit log for the reason we need this fix. > > Why is BPF doing this? > > The thing is, if

phy-pxa-usb.c:undefined reference to `devm_ioremap_resource'

2020-11-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba commit: 203b7ee14d3a38f1b8c44dd86ce0313d8fc4107d phy: Enable compile testing for some of drivers date: 10 months ago config: s390-randconfig-r022-20201113

Re: [PATCH] perf stat: Use proper cpu for shadow stats

2020-11-13 Thread Andi Kleen
> CPU0 109,621,384 cycles > CPU1 159,026,454 cycles > CPU2 99,460,366 cycles > CPU3 124,144,142 cycles > CPU0 44,396,706 instructions #0.41 insn per cycle > CPU1 120,195,425 instructions #0.76 insn per cyc

[PATCH v9 2/8] powerpc: Move delete_fdt_mem_rsv() to drivers/of

2020-11-13 Thread Lakshmi Ramasubramanian
delete_fdt_mem_rsv() retrieves the memory reserve map entry, for the given starting address and size, from the device tree blob, and removes the entry from the device tree blob. This function is called to free the resources reserved for the buffer used for carrying forward the IMA measurement logs

[PATCH v9 3/8] ima: Define get_ima_kexec_buffer() in drivers/of

2020-11-13 Thread Lakshmi Ramasubramanian
The function do_get_kexec_buffer(), defined in arch/powerpc/kexec/ima.c, retrieves the address and size of the given property from the device tree blob. This function does not have architecture specific code, but is currently limited to powerpc. This function correctly handles a device tree propert

[PATCH v9 6/8] powerpc: Move ima_get_kexec_buffer() and ima_free_kexec_buffer() to ima

2020-11-13 Thread Lakshmi Ramasubramanian
ima_get_kexec_buffer() retrieves the address and size of the buffer used for carrying forward the IMA measurement logs on kexec from the device tree. ima_free_kexec_buffer() removes the chosen node namely "linux,ima-kexec-buffer" from the device tree, and frees the buffer used for carrying forward

[PATCH v9 4/8] powerpc: Use get_ima_kexec_buffer to get ima kexec buffer

2020-11-13 Thread Lakshmi Ramasubramanian
do_get_kexec_buffer() is called by ima_get_kexec_buffer(), ima_free_kexec_buffer, and remove_ima_buffer() to retrieve the address and size of the buffer used for carrying forward the IMA measurement log across kexec system call. This function correctly handles a device tree property that is a child

[PATCH v9 7/8] arm64: Store IMA log information in kimage used for kexec

2020-11-13 Thread Lakshmi Ramasubramanian
Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Add address and size fields to "struct kimage_arch" for ARM64 platform to hold the address and size of the IMA measurement log buffer. Define an architecture spe

[PATCH v9 1/8] powerpc: fix compiler warnings and errors

2020-11-13 Thread Lakshmi Ramasubramanian
The function prototype for the functions defined in ima.c for powerpc are given in the header file ima.h. But this header file is not included in ima.c resulting in compilation errors such as given below. arch/powerpc/kexec/ima.c:56:5: error: no previous prototype for 'ima_get_kexec_buffer' [-Wer

[PATCH v9 5/8] powerpc: Move remove_ima_buffer() to drivers/of

2020-11-13 Thread Lakshmi Ramasubramanian
remove_ima_buffer() removes the chosen node, namely "linux,ima-kexec-buffer", from the device tree and frees the memory reserved for carrying forward the IMA measurement logs on kexec. This function does not have architecture specific code, but is currently limited to powerpc. Move remove_ima_buff

[PATCH v9 0/8] Carry forward IMA measurement log on kexec on ARM64

2020-11-13 Thread Lakshmi Ramasubramanian
On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to the kernel in the kexec call may also be measured by IMA. A remote attestation service can verify a TPM quote based o

[PATCH v9 8/8] arm64: Add IMA kexec buffer to DTB

2020-11-13 Thread Lakshmi Ramasubramanian
Any existing "linux,ima-kexec-buffer" property in the device tree needs to be removed and its corresponding memory reservation in the currently running kernel needs to be freed. The address and size of the current kernel's IMA measurement log need to be added to the device tree's IMA kexec buffer

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

2020-11-13 Thread Linus Torvalds
On Fri, Nov 13, 2020 at 11:17 AM Alexei Starovoitov wrote: > > You misunderstood. > BPF side does not depend on zero padding. > The destination buffer was already initialized with zeros before the call. > What BPF didn't expect is strncpy_from_user() copying extra garbage after NUL > byte. BPF m

Re: [PATCH] vdpasim: fix "mac_pton" undefined error

2020-11-13 Thread Randy Dunlap
On 11/13/20 10:49 AM, Randy Dunlap wrote: > On 11/13/20 7:57 AM, Laurent Vivier wrote: >>ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined! >> >> mac_pton() is defined in lib/net_utils.c and is not built if NET is not set. >> >> Select GENERIC_NET_UTILS as vdpasim doesn't

Re: [PATCH bpf-next v5 31/34] bpf: eliminate rlimit-based memory accounting for bpf local storage maps

2020-11-13 Thread Roman Gushchin
On Fri, Nov 13, 2020 at 10:14:48AM -0800, Song Liu wrote: > > > > On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > > > Do not use rlimit-based memory accounting for bpf local storage maps. > > It has been replaced with the memcg-based memory accounting. > > > > Signed-off-by: Roman Gushc

مرحبا

2020-11-13 Thread Evelyn
مرحبا عزيزى. كيف حالك اليوم؟ آمل أن يكون بخير؟ اسمي إيفلين. أتمنى أن تكون كذلك لدي علاقة جيدة وناضجة معك. وأريد أن أشارككم شيئًا مهمًا للغاية. سأكون في في انتظاركم قريبًا إذا كنت مهتمًا بك.

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

2020-11-13 Thread Nick Desaulniers
On Thu, Nov 12, 2020 at 10:06 PM Ard Biesheuvel wrote: > > On Fri, 13 Nov 2020 at 01:53, Nathan Chancellor > wrote: > > > > On Thu, Nov 12, 2020 at 04:44:46PM -0800, Nick Desaulniers wrote: > > > On Thu, Nov 12, 2020 at 10:41 AM Nathan Chancellor > > > wrote: > > > > > > > > Commit 3bbd3db86470

[PATCH v2 0/6] Add AHCI support for Tegra186

2020-11-13 Thread Sowjanya Komatineni
This series adds support for AHCI-compliant SATA to Tegra186 SoC. This series includes patches for - Converting text based dt-binding document to YAML. - Adding dt-bindings for Tegra186. - Enabling AHCI-compliance SATA for Jetson TX2. - Adding Tegra186 support to Tegra AHCI driver. Delta between

[PATCH v2 4/6] dt-binding: ata: tegra: Add dt-binding documentation for Tegra186

2020-11-13 Thread Sowjanya Komatineni
This patch adds dt-bindings documentation for Tegra186 AHCI controller. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/ata/nvidia,tegra-ahci.yaml | 38 ++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.ya

[PATCH v2 5/6] arm64: tegra: Enable AHCI on Jetson TX2

2020-11-13 Thread Sowjanya Komatineni
This patch enables AHCI on Jetson TX2. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts | 4 arch/arm64/boot/dts/nvidia/tegra186.dtsi | 28 ++ 2 files changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/t

[PATCH v2 1/6] arm: tegra: Change order of SATA resets for Tegra124

2020-11-13 Thread Sowjanya Komatineni
Tegra AHCI dt-binding doc is converted from text based to yaml based. dtbs_check valdiation strictly follows reset-names order specified in yaml dt-binding. Tegra124 thru Tegra210 has 3 resets sata, sata-oob and sata-cold. Tegra186 has 2 resets sata and sata-cold. This patch changes order of SAT

[PATCH v2 3/6] dt-bindings: ata: tegra: Convert binding documentation to YAML

2020-11-13 Thread Sowjanya Komatineni
This patch converts text based dt-binding document to YAML based dt-binding document. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/ata/nvidia,tegra-ahci.yaml | 137 + .../bindings/ata/nvidia,tegra124-ahci.txt | 44 --- 2 files changed, 137 inse

[PATCH v2 6/6] ata: ahci_tegra: Add AHCI support for Tegra186

2020-11-13 Thread Sowjanya Komatineni
This patch adds support for AHCI-compliant Serial ATA controller on Tegra186 SoC. Tegra186 does not have sata-oob reset. Tegra186 SATA_NVOOB register filed COMMA_CNT position and width are different compared to Tegra210 and prior. So, this patch adds a flag has_sata_oob_rst and tegra_ahci_regs to

[PATCH v2 2/6] arm64: tegra: Change order of SATA resets for Tegra132 and Tegra210

2020-11-13 Thread Sowjanya Komatineni
Tegra AHCI dt-binding doc is converted from text based to yaml based. dtbs_check valdiation strictly follows reset-names order specified in yaml dt-binding. Tegra124 thru Tegra210 has 3 resets sata, sata-oob and sata-cold. Tegra186 has 2 resets sata and sata-cold. This patch changes order of SAT

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

2020-11-13 Thread Dmytro Shytyi
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 hotspot, however segmentation of the /64 via SLAAC is required so tha

Re: [PATCH 1/6] ibmvfc: byte swap login_buf.resp values in attribute show functions

2020-11-13 Thread Tyrel Datwyler
On 11/12/20 1:37 AM, Christoph Hellwig wrote: > On Wed, Nov 11, 2020 at 07:04:37PM -0600, Tyrel Datwyler wrote: >> Both ibmvfc_show_host_(capabilities|npiv_version) functions retrieve >> values from vhost->login_buf.resp buffer. This is the MAD response >> buffer from the VIOS and as such any multi

Re: [net-next,v2,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-13 Thread Jakub Kicinski
On Fri, 13 Nov 2020 10:04:44 -0700 David Ahern wrote: > On 11/13/20 10:02 AM, Stefano Salsano wrote: > > Il 2020-11-13 17:55, Jakub Kicinski ha scritto: > >> On Thu, 12 Nov 2020 18:49:17 -0700 David Ahern wrote: > >>> On 11/12/20 6:28 PM, Andrea Mayer wrote: > The implementation of SRv6

Re: [PATCH bpf-next v5 06/34] bpf: prepare for memcg-based memory accounting for bpf maps

2020-11-13 Thread Roman Gushchin
On Fri, Nov 13, 2020 at 09:46:49AM -0800, Song Liu wrote: > > > > On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > [...] > > > > > +#ifdef CONFIG_MEMCG_KMEM > > +static __always_inline int __bpf_map_update_elem(struct bpf_map *map, void > > *key, > > +

Re: Error: invalid switch -me200

2020-11-13 Thread Nick Desaulniers
> > GCC_TOOLCHAIN_DIR prefix for Clang cross compilation > > > date: 4 months ago > > > config: powerpc-randconfig-r031-20201113 (attached as .config) ^ randconfig > > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > > > 9e0c3565

Re: [Freedreno] [PATCH 38/40] drm/msm/disp/dpu1/dpu_core_perf: Remove set but unused variable 'dpu_cstate'

2020-11-13 Thread abhinavk
On 2020-11-13 05:49, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c: In function ‘_dpu_core_perf_calc_crtc’: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:113:25: warning: variable ‘dpu_cstate’ set but not used [-Wunused-but-set-

Re: [Freedreno] [PATCH 39/40] drm/msm/disp/dpu1/dpu_encoder: Remove a bunch of unused variables

2020-11-13 Thread abhinavk
On 2020-11-13 05:49, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function ‘dpu_encoder_virt_mode_set’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:981:31: warning: variable ‘num_dspp’ set but not used [-Wunused-but-set-varia

Re: [PATCH 32/40] drm/msm/disp/mdp5/mdp5_crtc: Make local function 'mdp5_crtc_setup_pipeline()' static

2020-11-13 Thread abhinavk
On 2020-11-13 05:49, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:581:5: warning: no previous prototype for ‘mdp5_crtc_setup_pipeline’ [-Wmissing-prototypes] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Th

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-11-13 Thread Andy Shevchenko
On Fri, Nov 13, 2020 at 6:22 PM Laurent Pinchart wrote: > On Fri, Nov 13, 2020 at 10:02:30AM +, Dan Scally wrote: > > On 29/10/2020 22:51, Laurent Pinchart wrote: > > > On Fri, Oct 30, 2020 at 12:22:15AM +0200, Andy Shevchenko wrote: > > >> On Thu, Oct 29, 2020 at 11:29:30PM +0200, Laurent Pin

Re: [Freedreno] [PATCH 34/40] drm/msm/disp/mdp5/mdp5_ctl: Demote non-conformant kernel-doc headers

2020-11-13 Thread abhinavk
On 2020-11-13 05:49, Lee Jones wrote: Very little attempt has been made to document these functions. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c:227: warning: Function parameter or member 'ctl' not described in 'mdp5_ctl_set_encoder_state' drivers

Re: [PATCH 35/40] drm/msm/disp/mdp5/mdp5_kms: Make local functions 'mdp5_{en, dis}able()' static

2020-11-13 Thread abhinavk
On 2020-11-13 05:49, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:299:5: warning: no previous prototype for ‘mdp5_disable’ [-Wmissing-prototypes] drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:319:5: warning: no previous prototype for ‘md

<    4   5   6   7   8   9   10   11   12   13   >