[PATCH v8 09/18] virt: acrn: Introduce I/O request management

2021-01-22 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by the hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. For each User VM, there is a shared 4-KByte memory region used for I/O requests

[PATCH v8 13/18] virt: acrn: Introduce interfaces to query C-states and P-states allowed by hypervisor

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The C-states and P-states data are used to support CPU power management. The hypervisor controls C-states and P-states for a User VM. ACRN userspace need to query the data from the hypervisor to build ACPI tables for a User VM. HSM provides ioctls for ACRN userspace to query

[PATCH v8 10/18] virt: acrn: Introduce PCI configuration space PIO accesses combiner

2021-01-22 Thread shuo . a . liu
From: Shuo Liu A User VM can access its virtual PCI configuration spaces via port IO approach, which has two following steps: 1) writes address into port 0xCF8 2) put/get data in/from port 0xCFC To distribute a complete PCI configuration space access one time, HSM need to combine such two

[PATCH v8 16/18] virt: acrn: Introduce irqfd

2021-01-22 Thread shuo . a . liu
From: Shuo Liu irqfd is a mechanism to inject a specific interrupt to a User VM using a decoupled eventfd mechanism. Vhost is a kernel-level virtio server which uses eventfd for interrupt injection. To support vhost on ACRN, irqfd is introduced in HSM. HSM provides ioctls to associate a

[PATCH v8 15/18] virt: acrn: Introduce ioeventfd

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ioeventfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a User VM. ACRN userspace can register any arbitrary I/O address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Vhost is

[PATCH v8 01/18] docs: acrn: Introduce ACRN

2021-01-22 Thread shuo . a . liu
From: Shuo Liu Add documentation on the following aspects of ACRN: 1) A brief introduction on the architecture of ACRN. 2) I/O request handling in ACRN. 3) CPUID functions of ACRN. To learn more about ACRN, please go to ACRN project website https://projectacrn.org, or the documentation

[PATCH v3 1/2] vfio/iommu_type1: Populate full dirty when detach non-pinned group

2021-01-22 Thread Keqian Zhu
If a group with non-pinned-page dirty scope is detached with dirty logging enabled, we should fully populate the dirty bitmaps at the time it's removed since we don't know the extent of its previous DMA, nor will the group be present to trigger the full bitmap when the user retrieves the dirty

Re: [PATCH net-next 2/2] udp: allow forwarding of plain (non-fraglisted) UDP GRO packets

2021-01-22 Thread Alexander Lobakin
From: Willem de Bruijn Date: Thu, 21 Jan 2021 21:47:47 -0500 > On Mon, Jan 18, 2021 at 2:33 PM Alexander Lobakin wrote: > > > > Commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") actually > > not only added a support for fraglisted UDP GRO, but also tweaked > > some logics the way that

[PATCH v5 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-01-22 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add pmic MT6359 support in the MT8192 evb dts. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298

[PATCH v5 4/8] dt-bindings: regulator: Add document for MT6359 regulator

2021-01-22 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v4: fix yamllint errors in dt-binding document. --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644

[PATCH V6 2/6] scripts: dtc: Build fdtoverlay tool

2021-01-22 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay going forward. Lets start building it. The fdtoverlay program applies (or merges) one or more overlay dtb blobs to a base dtb blob. The kernel build system would later use fdtoverlay to generate the

Re: [PATCH -next] hid/hid-sensor-custom: convert comma to semicolon

2021-01-22 Thread Jiri Kosina
On Wed, 20 Jan 2021, Jonathan Cameron wrote: > > > > Replace a comma between expression statements by a semicolon. > > > > > > > > Signed-off-by: Zheng Yongjun > > > Acked-by: Srinivas Pandruvada > > Applied to the togreg branch of iio.git and pushed out as testing for > > the

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-22 Thread Alexander Lobakin
From: Alexander Lobakin Date: Fri, 22 Jan 2021 11:47:45 + > From: Eric Dumazet > Date: Thu, 21 Jan 2021 16:41:33 +0100 > > > On 1/21/21 2:47 PM, Xuan Zhuo wrote: > > > This patch is used to construct skb based on page to save memory copy > > > overhead. > > > > > > This function is

Re: [Linux-stm32] [PATCH] iio: adc: stm32-adc: fix erroneous handling of spurious IRQs

2021-01-22 Thread Ahmad Fatoum
Hello Fabrice, On 19.01.21 18:56, Fabrice Gasnier wrote: > On 1/18/21 12:42 PM, Ahmad Fatoum wrote: >> Hello Jonathan, >> >> On 16.01.21 18:53, Jonathan Cameron wrote: >>> On Tue, 12 Jan 2021 16:24:42 +0100 >>> Ahmad Fatoum wrote: >>> 1c6c69525b40 ("genirq: Reject bogus threaded irq

Re: [PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 12:58:32PM +0100, Arnd Bergmann wrote: > On Fri, Jan 22, 2021 at 12:43 PM Andy Shevchenko > wrote: > > > > Intel Moorestown and Medfield are quite old Intel Atom based > > 32-bit platforms, which were in limited use in some Android phones, > > tablets and consumer

[PATCH 5/7] drivers: soc: atmel: add per soc id and version match masks

2021-01-22 Thread Claudiu Beznea
SAMA7G5 has different masks for chip ID and chip version on CIDR register compared to previous AT91 SoCs. For this the commit adapts the code for SAMA7G5 addition by introducing 2 new members in struct at91_soc and fill them properly and also preparing the parsing of proper DT binding.

Re: [PATCH v2 08/12] ASoC: arizona-jack: convert into a helper library for codec drivers

2021-01-22 Thread Hans de Goede
Hi, On 1/22/21 12:26 PM, Charles Keepax wrote: > On Thu, Jan 21, 2021 at 05:55:00PM +0100, Hans de Goede wrote: >> Hi, >> >> On 1/19/21 10:51 AM, Richard Fitzgerald wrote: >>> On 18/01/2021 17:24, Andy Shevchenko wrote: On Sun, Jan 17, 2021 at 6:06 PM Hans de Goede wrote: > >

Re: [PATCH 0/9] tools/nolibc: fix build issues on aarch64 after unistd cleanup

2021-01-22 Thread Mark Rutland
On Fri, Jan 22, 2021 at 04:03:26AM -0800, Paul E. McKenney wrote: > On Thu, Jan 21, 2021 at 11:11:17AM +, Mark Rutland wrote: > > [ . . . ] > > > I've given this a spin atop v5.11-rc4, building natively on arm64 on a > > Debian 10.7 system, and with the whole series applied I'm able to run >

[PATCH] bpf: Drop disabled LSM hooks from the sleepable set

2021-01-22 Thread Mikko Ylinen
Networking LSM hooks are conditionally enabled and when building the new sleepable BPF LSM hooks with the networking LSM hooks disabled, the following build error occurs: BTFIDS vmlinux FAILED unresolved symbol bpf_lsm_socket_socketpair To fix the error, conditionally add the networking LSM

Re: [PATCH] net: macb: ignore tx_clk if MII is used

2021-01-22 Thread Michael Walle
Am 2021-01-22 12:38, schrieb claudiu.bez...@microchip.com: On 22.01.2021 13:20, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Am 2021-01-22 10:10, schrieb claudiu.bez...@microchip.com: On 21.01.2021 11:41, Michael Walle wrote:

Re: [PATCH] MAINTAINERS: adjust to clang-version.sh removal

2021-01-22 Thread Dan Carpenter
On Thu, Jan 21, 2021 at 05:15:56PM +0100, Sedat Dilek wrote: > On Thu, Jan 21, 2021 at 5:01 PM Lukas Bulwahn wrote: > > > > Commit 6c8ad4427f6e ("kbuild: check the minimum compiler version in > > Kconfig") removed ./scripts/clang-version.sh and moved its content to > > ./scripts/cc-version.sh. >

Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Corentin Labbe
Hello With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to a panic due to missing console. qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device ide-hd,drive=lavatest -serial mon:stdio -serial null -append 'earlycon=cdns,mmio,0xFF00,115200n8

Re: [PATCH v2 1/3] firmware: xilinx: Added pinctrl support

2021-01-22 Thread Linus Walleij
On Tue, Jan 19, 2021 at 6:28 AM Sai Krishna Potthuri wrote: > Add pinctrl support to query platform specific information (pins) > from firmware. > > Signed-off-by: Sai Krishna Potthuri I need an ACK from the maintainer of this file to merge it with the rest to the pinctrl tree. I suppose

Re: [PATCH 1/1] iommu/arm-smmu-v3: add support for BBML

2021-01-22 Thread Will Deacon
On Thu, Nov 26, 2020 at 11:42:30AM +0800, Zhen Lei wrote: > When changing from a set of pages/smaller blocks to a larger block for an > address, the software should follow the sequence of BBML processing. > > When changing from a block to a set of pages/smaller blocks for an > address, there's no

Re: [PATCH] arm64: dts: ti: k3*: Fixup PMU compatibility to be CPU specific

2021-01-22 Thread Nishanth Menon
On Wed, 20 Jan 2021 13:51:45 -0600, Nishanth Menon wrote: > We can use CPU specific pmu configuration to expose the appropriate > CPU specific events rather than just the basic generic pmuv3 perf > events. Hi Nishanth Menon, I have applied the following to branch ti-k3-dts-next on [1]. Thank

Re: [PATCH 1/8] perf arm-spe: Enable sample type PERF_SAMPLE_DATA_SRC

2021-01-22 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 19, 2021 at 04:46:51PM +0200, James Clark escreveu: > From: Leo Yan > > This patch is to enable sample type PERF_SAMPLE_DATA_SRC for Arm SPE in > the perf data, when output the tracing data, it tells tools that it > contains data source in the memory event. > > Signed-off-by: Leo

Re: net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

2021-01-22 Thread Borislav Petkov
On Fri, Jan 22, 2021 at 02:20:43PM +0200, Kalle Valo wrote: > Can you try this commit: > > 51d62f2f2c50 cfg80211: Save the regulatory domain with a lock > > https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git/commit/?id=51d62f2f2c50 Yap, that fixes both machines, thx!

Re: [PATCH v2 1/2] of: property: Add fw_devlink support for "gpio" and "gpios" binding

2021-01-22 Thread Linus Walleij
On Thu, Jan 21, 2021 at 11:57 PM Saravana Kannan wrote: > To provide backward compatibility for boards that use deprecated DT > bindings, we need to add fw_devlink support for "gpio" and "gpios". > > We also need to ignore these properties on nodes with "gpio-hog" > property because their

Re: [PATCH 6/6] mm: Forbid splitting special mappings

2021-01-22 Thread Will Deacon
On Tue, Oct 13, 2020 at 02:34:16AM +0100, Dmitry Safonov wrote: > Don't allow splitting of vm_special_mapping's. > It affects vdso/vvar areas. Uprobes have only one page in xol_area so > they aren't affected. > > Those restrictions were enforced by checks in .mremap() callbacks. > Restrict

[PATCH v2 02/14] NOT TO BE MERGED - Squash of patches 2-7 of v6 series "powerpc: interrupt wrappers"

2021-01-22 Thread Christophe Leroy
powerpc/32s: move DABR match out of handle_page_fault handle_page_fault() has some code dedicated to book3s/32 to call do_break() when the DSI is a DABR match. On other platforms, do_break() is handled separately. Do the same for book3s/32, do it earlier in the process of DSI. This change also

[PATCH v2 00/14] powerpc/32: Reduce head complexity and re-activate MMU earlier

2021-01-22 Thread Christophe Leroy
This series is a first step on the way to C syscall/exception entry/exit. This series aims at reducing exception/syscall prologs complexity. It also brings earlier MMU re-activation. This series is based on Nick's v6 series "powerpc: interrupt wrappers". It takes benefit of the removal of traps

[PATCH v2 01/14] powerpc/32s: Only build hash code when CONFIG_PPC_BOOK3S_604 is selected

2021-01-22 Thread Christophe Leroy
It is now possible to only build book3s/32 kernel for CPUs without hash table. Opt out hash related code when CONFIG_PPC_BOOK3S_604 is not selected. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_book3s_32.S | 12 arch/powerpc/mm/book3s32/Makefile| 4 +++- 2

Re: [PATCH v2 3/5] arm64: dts: renesas: r8a779a0: Add Ethernet-AVB support

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > From: Tho Vu > > Define the generic parts of Ethernet-AVB device nodes. Only AVB0 was > tested because it was the only port with a PHY on current hardware. > > Signed-off-by: Tho Vu > [wsa: double checked, rebased, added "internal-delay"

Re: Re: [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 03:36:19PM +0800, zhaowei1...@thundersoft.com wrote: > On 18.01.21 04:51, zhaowei1...@thundersoft.com wrote: > > > On Sat, Jan 16, 2021 at 2:43 AM Wesley Zhao > > > wrote: > > Dan's point is that you should look into using "memmap=" instead of > > "reserve=". >

[PATCH v2] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
Currently kdb uses in_interrupt() to determine whether it's library code has been called from the kgdb trap handler or from a saner calling context such as driver init. This approach is broken because in_interrupt() alone isn't able to determine kgdb trap handler entry via normal task context such

Re: [PATCH] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
On Fri, 22 Jan 2021 at 15:18, Daniel Thompson wrote: > > On Fri, Jan 22, 2021 at 03:08:31PM +0530, Sumit Garg wrote: > > Currently kdb uses in_interrupt() to determine whether it's library > > code has been called from the kgdb trap handler or from a saner calling > > context such as driver init.

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Steven Price
On 22/01/2021 10:11, Lukasz Luba wrote: On 1/21/21 5:15 PM, Daniel Lezcano wrote: On 21/01/2021 18:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the

Re: [Linux-stm32] [PATCH] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-22 Thread Fabrice Gasnier
On 1/21/21 7:02 PM, Ahmad Fatoum wrote: > For non-DMA usage, we have an easy way to associate a timestamp with a > sample: iio_pollfunc_store_time stores a timestamp in the primary > trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread > to push out the buffer along with the

Re: [PATCH V3 1/3] mm/memory_hotplug: Prevalidate the address range being added with platform

2021-01-22 Thread David Hildenbrand
On 22.01.21 11:41, Anshuman Khandual wrote: > > On 1/22/21 2:48 PM, David Hildenbrand wrote: >> >>> +/* >>> + * Platforms should define arch_get_mappable_range() that provides >>> + * maximum possible addressable physical memory range for which the >>> + * linear mapping could be created. The

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Steven Price
On 22/01/2021 10:00, Lukasz Luba wrote: On 1/22/21 8:21 AM, Steven Price wrote: On 21/01/2021 17:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the

Re: [PATCH 1/5] gpio: remove zte zx driver

2021-01-22 Thread Bartosz Golaszewski
On Wed, Jan 20, 2021 at 2:20 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > The zte zx platform is getting removed, so this driver is no > longer needed. > > Cc: Jun Nie > Cc: Shawn Guo > Signed-off-by: Arnd Bergmann Applied, thanks! Bartosz

[PATCH v6 3/7] Bluetooth: advmon offload MSFT remove monitor

2021-01-22 Thread Archie Pusaka
From: Archie Pusaka Implements the monitor removal functionality for advertising monitor offloading to MSFT controllers. Supply handle = 0 to remove all monitors. Signed-off-by: Archie Pusaka Reviewed-by: Miao-chen Chou Reviewed-by: Yun-Hao Chung Reported-by: kernel test robot Reported-by:

[PATCH v6 2/7] Bluetooth: advmon offload MSFT add monitor

2021-01-22 Thread Archie Pusaka
From: Archie Pusaka Enables advertising monitor offloading to the controller, if MSFT extension is supported. The kernel won't adjust the monitor parameters to match what the controller supports - that is the user space's responsibility. This patch only manages the addition of monitors. Monitor

Re: [PATCH 5/5] Add manpage for fsconfig(2)

2021-01-22 Thread Michael Kerrisk (man-pages)
Hello David, Ping! Thanks, Michael On Mon, 24 Aug 2020 at 14:25, David Howells wrote: > > Add a manual page to document the fsconfig() system call. > > Signed-off-by: David Howells > --- > > man2/fsconfig.2 | 277 > +++ > 1 file changed,

[PATCH V6 1/6] scripts: dtc: Fetch fdtoverlay.c from external DTC project

2021-01-22 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay tool going forward. Lets start fetching it. Signed-off-by: Viresh Kumar --- scripts/dtc/update-dtc-source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

2021-01-22 Thread Borislav Petkov
On Fri, Jan 22, 2021 at 11:11:24AM +0100, Borislav Petkov wrote: > Hi, > > this triggers is on 5.11-rc3 + tip/x86/urgent (shouldn't matter tho), > 32-bit kernel: This looks like a multiple wireless drivers issue, this is on another 32-bit machine with ath5k this time: [ 23.810222] ath5k

[PATCH V6 3/6] scripts: dtc: Remove the unused fdtdump.c file

2021-01-22 Thread Viresh Kumar
This was copied from external DTC repository long back and isn't used anymore. Over that the dtc tool can be used to generate the dts source back from the dtb. Remove the unused fdtdump.c file. Signed-off-by: Viresh Kumar --- scripts/dtc/fdtdump.c | 163

[PATCH] PCI: endpoint: remove set but not used parameter in pci-epf-ntb.c

2021-01-22 Thread Ye Bin
Fix follow warnings: drivers/pci/endpoint/functions/pci-epf-ntb.c: In function ‘epf_ntb_peer_spad_bar_set’: drivers/pci/endpoint/functions/pci-epf-ntb.c:763:18: warning: variable ‘epc’ set but not used [-Wunused-but-set-variable] 763 | struct pci_epc *epc; | ^~~

[PATCH V6 5/6] of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

2021-01-22 Thread Viresh Kumar
In order to build-test the same unit-test files using fdtoverlay tool, move the device nodes from the existing overlay_base.dts and testcases_common.dts files to .dtsi files. The .dts files now include the new .dtsi files, resulting in exactly the same behavior as earlier. The .dtsi files can now

[PATCH V6 0/6] dt: build overlays

2021-01-22 Thread Viresh Kumar
Hi Frank/Rob, This patchset makes necessary changes to the kernel to add support for building overlays (%.dtbo) and the required fdtoverlay tool. This also builds static_test.dtb using most of the existing overlay tests present in drivers/of/unittest-data/ for better test coverage. Note that in

[PATCH 08/14] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware

[PATCH 00/14] Introduce STM32MP1 RCC in secured mode

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependant of the SCMI driver, then we

[PATCH 01/14] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 07/14] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under

[PATCH 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH 02/14] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez ---

[PATCH V6 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-01-22 Thread Viresh Kumar
Now that fdtoverlay is part of the kernel build, start using it to test the unitest overlays we have by applying them statically. Create a new base file static_base.dts which includes other .dtsi files. Some unittest overlays deliberately contain errors that unittest checks for. These overlays

[PATCH V6 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-01-22 Thread Viresh Kumar
Add support for building DT overlays (%.dtbo). The overlay's source file will have the usual extension, i.e. .dts, though the blob will have .dtbo extension to distinguish it from normal blobs. Signed-off-by: Viresh Kumar --- .gitignore | 1 + Makefile | 5 -

Re: [RFC PATCH v3 13/16] cxl/mem: Create concept of enabled commands

2021-01-22 Thread Jonathan Cameron
On Thu, 21 Jan 2021 10:40:41 -0800 Ben Widawsky wrote: > On 21-01-14 17:25:31, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:18 -0800 > > Ben Widawsky wrote: > > > > > CXL devices must implement the Device Command Interface (described in > > > 8.2.9 of the CXL 2.0 spec). While the

[PATCH v3 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Oleksij Rempel
Add simple GPIO base pulse counter. This device is used to measure rotation speed of some agricultural devices, so no high frequency on the counter pin is expected. The maximal measurement frequency depends on the CPU and system load. On the idle iMX6S I was able to measure up to 20kHz without

[PATCH v2 0/2] add support for GPIO based counter

2021-01-22 Thread Oleksij Rempel
changes v3: - convert counter to atomic_t changes v2: - add commas - avoid possible unhandled interrupts in the enable path - do not use of_ specific gpio functions Add support for GPIO based pulse counter. For now it can only count pulses. With counter char device support, we will be able to

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-22 Thread Zhou Wang
On 2021/1/21 17:44, Greg Kroah-Hartman wrote: > On Thu, Jan 21, 2021 at 05:09:14PM +0800, Zhou Wang wrote: >> When IO page fault happens, DMA performance will be affected. Pin user page >> can avoid IO page fault, this patch introduces a new char device named >> /dev/uacce_ctrl to help to maintain

[PATCH v2] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-22 Thread Ahmad Fatoum
For non-DMA usage, we have an easy way to associate a timestamp with a sample: iio_pollfunc_store_time stores a timestamp in the primary trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread to push out the buffer along with the timestamp. For this to work, the driver needs to

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-22 Thread Sebastian Andrzej Siewior
On 2021-01-21 13:38:34 [+0100], Uladzislau Rezki wrote: > __get_free_page() returns "unsigned long" whereas a bnode is a pointer > to kvfree_rcu_bulk_data struct, without a casting the compiler will > emit a warning. Yes, learned about it, sorry. > >> You think that a CPU migration is a bad

[PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Andy Shevchenko
Intel Moorestown and Medfield are quite old Intel Atom based 32-bit platforms, which were in limited use in some Android phones, tablets and consumer electronics more than eight years ago. There are no bugs or problems ever reported outside from Intel for breaking any of that platforms for years.

Re: [PATCH v6 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2021-01-22 Thread Sakari Ailus
Hi Krysztof, On Wed, Nov 18, 2020 at 09:27:12PM +0100, Krzysztof Kozlowski wrote: > Add bindings for the IMX258 camera sensor. The bindings, just like the > driver, are quite limited, e.g. do not support regulator supplies. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Rob Herring >

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-22 Thread Alexander Lobakin
From: Eric Dumazet Date: Thu, 21 Jan 2021 16:41:33 +0100 > On 1/21/21 2:47 PM, Xuan Zhuo wrote: > > This patch is used to construct skb based on page to save memory copy > > overhead. > > > > This function is implemented based on IFF_TX_SKB_NO_LINEAR. Only the > > network card priv_flags

Re: [PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Greg Kroah-Hartman
On Fri, Jan 22, 2021 at 01:43:58PM +0200, Andy Shevchenko wrote: > Intel Moorestown and Medfield are quite old Intel Atom based > 32-bit platforms, which were in limited use in some Android phones, > tablets and consumer electronics more than eight years ago. > > There are no bugs or problems

Re: [PATCH v6 0/2] Documentation: livepatch: Document reliable stacktrace and minor cleanup

2021-01-22 Thread Jiri Kosina
On Thu, 21 Jan 2021, Jonathan Corbet wrote: > > This series adds a document, mainly written by Mark Rutland, which > > makes explicit the requirements for implementing reliable stacktrace > > in order to aid architectures adding this feature. It also updates > > the other livepatching

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-22 Thread Greg KH
On Thu, Jan 21, 2021 at 03:37:32PM -0500, Steven Rostedt wrote: > On Thu, 21 Jan 2021 23:15:22 +0300 > Denis Efremov wrote: > > > On 1/21/21 10:09 PM, Steven Rostedt wrote: > > > On Thu, 21 Jan 2021 17:30:40 +0300 > > > Denis Efremov wrote: > > > > > >> Hi, > > >> > > >> This patch

Re: [PATCH v2 -next] gpio: vx855: convert comma to semicolon

2021-01-22 Thread Bartosz Golaszewski
On Fri, Jan 8, 2021 at 10:23 AM Zheng Yongjun wrote: > > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/gpio/gpio-vx855.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-vx855.c

Re: [PATCH v2 -next] gpio: max77620: convert comma to semicolon

2021-01-22 Thread Bartosz Golaszewski
On Fri, Jan 8, 2021 at 10:23 AM Zheng Yongjun wrote: > > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/gpio/gpio-max77620.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-max77620.c

[PATCH next v2 16/17] arm: dts: mt7623: harmonize node names and compatibles

2021-01-22 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2: no changes --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ arch/arm/boot/dts/mt7623n.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi

[PATCH next v2 05/17] dt-bindings: phy: mediatek: hdmi-phy: modify compatible items

2021-01-22 Thread Chunfeng Yun
The compatilbe "mediatek,mt7623-hdmi-tx" is not supported in driver, and in fact uses "mediatek,mt2701-hdmi-tx" instead on MT7623, so changes the compatible items to make dependence clear. Cc: Chun-Kuang Hu Cc: Philipp Zabel Signed-off-by: Chunfeng Yun --- v2: no changes ---

[PATCH next v2 14/17] arm64: dts: mediatek: mt8183: fix dtbs_check warning

2021-01-22 Thread Chunfeng Yun
Harmonize node names, compatibles and properties. Signed-off-by: Chunfeng Yun --- v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi

[PATCH next v2 01/17] dt-bindings: usb: fix yamllint check warning

2021-01-22 Thread Chunfeng Yun
Fix warning: "missing starting space in comment" Signed-off-by: Chunfeng Yun --- v2: no changes --- Documentation/devicetree/bindings/usb/usb-device.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml

[PATCH 2/7] drivers: soc: atmel: use GENMASK

2021-01-22 Thread Claudiu Beznea
Use GENMASK() to define CIDR match mask. Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 1a6cb4bc7d67..ef591b622583 100644 --- a/drivers/soc/atmel/soc.c +++

[PATCH 4/7] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[]

2021-01-22 Thread Claudiu Beznea
of_match_node() calls __of_match_node() which loops though the entries of matches array. It stops when condition: (matches->name[0] || matches->type[0] || matches->compatible[0]) is false. Thus, add a null entry at the end of at91_soc_allowed_list[] array. Fixes: 960ddf70cc11 ("drivers: soc:

Re: [PATCH 1/2] media: dvb-usb: Fix memory leak at error in dvb_usb_device_init()

2021-01-22 Thread Robert Foss
Hey Takashi, Thanks for the patch. It looks good to me, feel free to add my r-b. Reviewed-by: Robert Foss On Wed, 20 Jan 2021 at 12:51, Takashi Iwai wrote: > > dvb_usb_device_init() allocates a dvb_usb_device object, but it > doesn't release it even when returning an error. The callers don't

[PATCH v2 2/3] media/radio: Make radio_isa_common_remove() return void

2021-01-22 Thread Uwe Kleine-König
Instead of an unconditional return 0, return no value. One of the two callers ignored the return value already before. This simplifies the next patch. Signed-off-by: Uwe Kleine-König --- drivers/media/radio/radio-isa.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v2 0/3] isa: Make the remove callback for isa drivers return void

2021-01-22 Thread Uwe Kleine-König
Hello, changes since v1 (https://lore.kernel.org/r/20210121204812.402589-1-...@kleine-koenig.org): - fix build failure, found by the kernel test robot (my grep missed the struct isa_driver embedded in struct radio_isa_driver). For this I introduced patch 2 and adapted patch 3 a bit. An

Re: [PATCH] arm64: dts: ti: k3: mmc: fix dtbs_check warnings

2021-01-22 Thread Nishanth Menon
On Fri, 15 Jan 2021 21:30:16 +0200, Grygorii Strashko wrote: > Now the dtbs_check produces below warnings > sdhci@4f8: clock-names:0: 'clk_ahb' was expected > sdhci@4f8: clock-names:1: 'clk_xin' was expected > $nodename:0: 'sdhci@4f8' does not match '^mmc(@.*)?$' > > Fix above

Re: [PATCH v2 2/2] s390: mm: Fix secure storage access exception handling

2021-01-22 Thread Claudio Imbrenda
On Thu, 21 Jan 2021 10:14:35 -0500 Janosch Frank wrote: > Turns out that the bit 61 in the TEID is not always 1 and if that's > the case the address space ID and the address are > unpredictable. Without an address and its address space ID we can't > export memory and hence we can only send a

Re: [PATCH 1/1] iommu/arm-smmu-v3: add support for BBML

2021-01-22 Thread Robin Murphy
On 2021-01-22 12:51, Will Deacon wrote: On Thu, Nov 26, 2020 at 11:42:30AM +0800, Zhen Lei wrote: When changing from a set of pages/smaller blocks to a larger block for an address, the software should follow the sequence of BBML processing. When changing from a block to a set of pages/smaller

[PATCH v4 0/7] Count rlimits in each user namespace

2021-01-22 Thread Alexey Gladkov
Preface --- These patches are for binding the rlimit counters to a user in user namespace. This patch set can be applied on top of: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc2 Problem --- The RLIMIT_NPROC, RLIMIT_MEMLOCK, RLIMIT_SIGPENDING, RLIMIT_MSGQUEUE

Re: [PATCH 6/6] mm: Forbid splitting special mappings

2021-01-22 Thread Will Deacon
On Fri, Jan 22, 2021 at 12:58:58PM +, Will Deacon wrote: > On Tue, Oct 13, 2020 at 02:34:16AM +0100, Dmitry Safonov wrote: > > Don't allow splitting of vm_special_mapping's. > > It affects vdso/vvar areas. Uprobes have only one page in xol_area so > > they aren't affected. > > > > Those

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-22 Thread Peter Zijlstra
On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: > On Fri, Jan 15, 2021, Andi Kleen wrote: > > > I'm asking about ucode/hardare. Is the "guest pebs buffer write -> PEBS > > > PMI" > > > guaranteed to be atomic? > > > > Of course not. > > So there's still a window where the

RE: [PATCH v5 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2021-01-22 Thread ChiaWei Wang
Hi Corey, Could you help to review this patch to kcs_bmc_aspeed.c? It mainly fixes the register layout/offsets of Aspeed LPC controller. Thanks, Chiawei > -Original Message- > From: Andrew Jeffery > Sent: Wednesday, January 20, 2021 1:03 PM > Subject: Re: [PATCH v5 3/5] ipmi: kcs:

Re: [PATCH v4] gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 12:40 AM Saravana Kannan wrote: > > There are multiple instances of GPIO device tree nodes of the form: > > foo { > compatible = "acme,foo"; > ... > > gpio0: gpio0@ { > compatible = "acme,bar"; > ... >

Re: [PATCH v2 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-22 Thread Linus Walleij
On Mon, Jan 18, 2021 at 3:38 PM AngeloGioacchino Del Regno wrote: > By the way, this is really LEVEL irq, not EDGE... To avoid any > misunderstanding, I think that the best way to show you what I > am seeing is to just copy-paste the relevant piece from the > datasheet for this hardware (it's

[PATCH v2 12/14] powerpc/32: Enable instruction translation at the same time as data translation

2021-01-22 Thread Christophe Leroy
On 40x and 8xx, kernel text is pinned. On book3s/32, kernel text is mapped by BATs. Enable instruction translation at the same time as data translation, it makes things simpler. In syscall handler, MSR_RI can also be set at the same time because srr0/srr1 are already saved and r1 is set

[PATCH v2 13/14] powerpc/32: Remove msr argument in EXC_XFER_TEMPLATE()

2021-01-22 Thread Christophe Leroy
msr argument is not used anymore, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h | 8 +++- arch/powerpc/kernel/head_40x.S | 5 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/head_32.h b/arch/powerpc/kernel/head_32.h

[PATCH v2 11/14] powerpc/32: Always enable data translation in exception prolog

2021-01-22 Thread Christophe Leroy
If the code can use a stack in vm area, it can also use a stack in linear space. Simplify code by removing old non VMAP stack code on PPC32. That means the data translation is now re-enabled early in exception prolog in all cases, not only when using VMAP stacks. Signed-off-by: Christophe Leroy

Re: [PATCH v2 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Ahmad Fatoum
Hello Oleksij, On 22.01.21 10:33, Oleksij Rempel wrote: > Add simple GPIO base pulse counter. This device is used to measure > rotation speed of some agricultural devices, so no high frequency on the > counter pin is expected. > > The maximal measurement frequency depends on the CPU and system

[PATCH v2 10/14] powerpc/32: Use LOAD_REG_IMMEDIATE() to load MSR values

2021-01-22 Thread Christophe Leroy
40x MSR value doesn't fit on 15 bits. LOAD_REG_IMMEDIATE() in places that will be used also with 40x in the next patch. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/head_32.h

[PATCH v2 04/14] powerpc/40x: Change CRITICAL_EXCEPTION_PROLOG macro to a gas macro

2021-01-22 Thread Christophe Leroy
Change CRITICAL_EXCEPTION_PROLOG macro to a gas macro to remove the ugly ; and \ on each line. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 71 +- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git

Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

2021-01-22 Thread Linus Walleij
On Tue, Jan 19, 2021 at 4:20 AM DENG Qingfang wrote: > On Mon, Jan 18, 2021 at 10:55 PM Linus Walleij > wrote: > > > > So for offset 0..14 this becomes bits > > 0, 1, 2, 4, 5, 6, 8, 9, 10, 12 ... 18 > > > > What is the logic in this and is it what you intend? > > Yes. Bit 0..2 are phy 0's LED

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-22 Thread Mark Rutland
On Thu, Jan 21, 2021 at 01:43:14PM -0800, Paul E. McKenney wrote: > On Thu, Jan 21, 2021 at 09:31:10PM +, Will Deacon wrote: > > On Thu, Jan 21, 2021 at 10:55:21AM -0800, Paul E. McKenney wrote: > > > On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh Kamboju wrote: > > > > While running

Re: [PATCH v4] drm/virtio: Track total GPU memory for virtio driver

2021-01-22 Thread Daniel Vetter
On Thu, Jan 21, 2021 at 11:58:22PM -0800, Yiwei Zhang wrote: > On Thu, Jan 21, 2021 at 9:40 PM Yiwei Zhang wrote: > > > > On the success of virtio_gpu_object_create, add size of newly allocated > > bo to the tracked total_mem. In drm_gem_object_funcs.free, after the gem > > bo loses its last

net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

2021-01-22 Thread Borislav Petkov
Hi, this triggers is on 5.11-rc3 + tip/x86/urgent (shouldn't matter tho), 32-bit kernel: [ 10.019444] rtl8192ce: Chip Version ID: B_CHIP_88C [ 10.042810] rtl8192ce: Using firmware rtlwifi/rtl8192cfw.bin [ 10.044258] = [ 10.044337] WARNING: suspicious RCU

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