[PATCH v2 07/14] powerpc/40x: Prepare for enabling MMU in critical exception prolog

2021-01-22 Thread Christophe Leroy
In order the enable MMU early in exception prolog, implement CONFIG_VMAP_STACK principles in critical exception prolog. There is no intention to use CONFIG_VMAP_STACK on 40x, but related code will be used to enable MMU early in exception in a later patch. Also address (critirq_ctx-PAGE_OFFSET)

Re: [PATCH v2 2/5] clk: renesas: r8a779a0: add clocks for RAVB

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > > Change since v1: > * use S3D2 as parent clock Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-clk-for-v5.12. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven --

[RFC PATCH v4 2/2] KVM: arm64: Filter out the case of only changing permissions from stage-2 map path

2021-01-22 Thread Yanan Wang
(1) During running time of a a VM with numbers of vCPUs, if some vCPUs access the same GPA almost at the same time and the stage-2 mapping of the GPA has not been built yet, as a result they will all cause translation faults. The first vCPU builds the mapping, and the followed ones end up updating

Re: [PATCH] drm/i915/selftest: Fix potential memory leak

2021-01-22 Thread Chris Wilson
Quoting Pan Bian (2021-01-22 01:56:40) > Object out is not released on path that no VMA instance found. The root > cause is jumping to an unexpected label on the error path. Wouldn't the root cause be whatever caused the allocation to fail? Language notwithstanding, Reviewed-by: Chris Wilson

Re: [PATCH v2 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2021-01-22 Thread Dave Stevenson
Hi Maxime Sorry for the slow reply on these patches. On Mon, 11 Jan 2021 at 14:23, Maxime Ripard wrote: > > From: Dom Cobley > > Currently we call cec_phys_addr_invalidate on a hotplug deassert. > That may be due to a TV power cycling, or an AVR being switched > on (and switching edid). > >

Re: [PATCH v2 5/5] WIP! arm64: dts: renesas: falcon: Add Ethernet-AVB1-5 support

2021-01-22 Thread Geert Uytterhoeven
Hi Wolfram, On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > PHYs on the subboard could not be reached via remote access. But this is > the latest DTS snipplet with some fixes suggested by Geert as a starting > point. Not for upstream yet! > > Signed-off-by: Wolfram Sang > --- > Change

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:42, David Hildenbrand wrote: > 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

[PATCH v3 0/2] vfio/iommu_type1: some fixes

2021-01-22 Thread Keqian Zhu
v3: - Populate bitmap unconditionally. - Sanity check notifier when remove all domains. v2: - Address suggestions from Alex. - Remove unnecessary patches. Keqian Zhu (2): vfio/iommu_type1: Populate full dirty when detach non-pinned group vfio/iommu_type1: Fix some sanity checks in

[PATCH v8 12/18] virt: acrn: Introduce interrupt injection interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN userspace need to inject virtual interrupts into a User VM in devices emulation. HSM needs provide interfaces to do so. Introduce following interrupt injection interfaces: ioctl ACRN_IOCTL_SET_IRQLINE: Pass data from userspace to the hypervisor, and inform the hypervisor

[PATCH v3] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
Currently kdb uses in_interrupt() to determine whether its 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 from normal task context.

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

2021-01-22 Thread Ahmad Fatoum
Hi, On 22.01.21 11:23, Fabrice Gasnier wrote: > 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

[PATCH v8 08/18] virt: acrn: Introduce EPT mapping management

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The HSM provides hypervisor services to the ACRN userspace. While launching a User VM, ACRN userspace needs to allocate memory and request the ACRN Hypervisor to set up the EPT mapping for the VM. A mapping cache is introduced for accelerating the translation between the Service

[PATCH] floppy: reintroduce O_NDELAY fix

2021-01-22 Thread Jiri Kosina
From: Jiri Kosina This issue was originally fixed in 09954bad4 ("floppy: refactor open() flags handling"). The fix as a side-effect, however, introduce issue for open(O_ACCMODE) that is being used for ioctl-only open. I wrote a fix for that, but instead of it being merged, full revert of

[PATCH v5 7/8] regulator: mt6359: Add support for MT6359P regulator

2021-01-22 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add the regulators_node support. --- drivers/regulator/mt6359-regulator.c | 379 -

[PATCH v5 2/8] rtc: mt6397: refine RTC_TC_MTH

2021-01-22 Thread Hsin-Hsiung Wang
This patch adds RTC_TC_MTH_MASK to support new chips. Signed-off-by: Yuchen Huang Signed-off-by: Hsin-Hsiung Wang Acked-by: Alexandre Belloni --- changes since v4: no changes --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1

[PATCH v5 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-01-22 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt

Re: [RFC PATCH v3 10/16] cxl/mem: Add send command

2021-01-22 Thread Jonathan Cameron
On Thu, 21 Jan 2021 10:15:46 -0800 Ben Widawsky wrote: > On 21-01-14 17:10:38, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:14 -0800 > > Ben Widawsky wrote: > > > > > The send command allows userspace to issue mailbox commands directly to > > > the hardware. The driver will verify

Re: [PATCH v3 06/21] x86/fpu/xstate: Calculate and remember dynamic xstate buffer sizes

2021-01-22 Thread Borislav Petkov
On Wed, Dec 23, 2020 at 07:57:02AM -0800, Chang S. Bae wrote: > The xstate buffer is currently in-line with static size. To accommodatea "in-line" doesn't fit in this context, especially since "inline" is a keyword with another meaning. Please replace it with a better formulation in this patch.

[PATCH] MIPS: vpe: Remove vpe_getcwd

2021-01-22 Thread Thomas Bogendoerfer
I couldn't find any user of the dubious vpe_getcwd so far. So remove it and get rid of another set_fs(KERNEL_DS). Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/vpe.h | 3 --- arch/mips/kernel/vpe.c | 33 - 2 files changed, 36 deletions(-)

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

2021-01-22 Thread Masahiro Yamada
On Fri, Jan 22, 2021 at 7:51 PM Viresh Kumar wrote: > > 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 > ---

RE: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] > Sent: Friday, January 22, 2021 11:05 PM > To: Song Bao Hua (Barry Song) ; Valentin Schneider > ; Meelis Roos ; LKML > > Cc: Peter Zijlstra ; Vincent Guittot > ; Mel Gorman > Subject: Re: 5.11-rc4+git:

[PATCH] arm64: kprobes: Fix Uexpected kernel BRK exception at EL1

2021-01-22 Thread Qais Yousef
I was hitting the below panic continuously when attaching kprobes to scheduler functions [ 159.045212] Unexpected kernel BRK exception at EL1 [ 159.053753] Internal error: BRK handler: f206 [#1] PREEMPT SMP [ 159.059954] Modules linked in: [ 159.063025]

[PATCH v8 02/18] x86/acrn: Introduce acrn_{setup, remove}_intr_handler()

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The ACRN Hypervisor builds an I/O request when a trapped I/O access happens in User VM. Then, ACRN Hypervisor issues an upcall by sending a notification interrupt to the Service VM. HSM in the Service VM needs to hook the notification interrupt to handle I/O requests.

[PATCH v8 03/18] x86/acrn: Introduce acrn_cpuid_base() and hypervisor feature bits

2021-01-22 Thread shuo . a . liu
From: Yin Fengwei ACRN Hypervisor reports hypervisor features via CPUID leaf 0x4001 which is similar to KVM. A VM can check if it's the privileged VM using the feature bits. The Service VM is the only privileged VM by design. Signed-off-by: Yin Fengwei Signed-off-by: Shuo Liu Reviewed-by:

Re: [PATCH v1] platform/x86: intel_mid_thermal: Remove driver for deprecated platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 01:40:54PM +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

[PATCH next v2 06/17] dt-bindings: phy: mediatek: tphy: change patternProperties

2021-01-22 Thread Chunfeng Yun
The phy may be named as pcie-phy when the T-PHY only supports PCIe mode, it's also the similar case for SATA, named as sata-phy. Signed-off-by: Chunfeng Yun --- v2: no changes --- Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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

2021-01-22 Thread Chunfeng Yun
Fix warning: "too many spaces inside brackets" Signed-off-by: Chunfeng Yun --- v2: no changes --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 +- Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml| 6 +++--- Documentation/devicetree/bindings/usb/mediatek,musb.yaml

Re: [PATCH 0/1] mm: Optimizing hugepage zeroing in arm64

2021-01-22 Thread Catalin Marinas
On Thu, Jan 21, 2021 at 06:59:37PM +, Robin Murphy wrote: > On 2021-01-21 17:46, Will Deacon wrote: > > On Thu, Jan 21, 2021 at 10:21:50PM +0530, Prathu Baronia wrote: > > > This patch removes the unnecessary kmap calls in the hugepage zeroing > > > path and > > > improves the timing by 62%.

linux-next test error: WARNING in cfg80211_netdev_notifier_call

2021-01-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:226871e2 Add linux-next specific files for 20210122 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1076afe750 kernel config: https://syzkaller.appspot.com/x/.config?x=40930d62519ae2bd dashboard

Re: [PATCH v2 1/3] iommu/arm-smmu: Add support for driver IOMMU fault handlers

2021-01-22 Thread Will Deacon
On Tue, Nov 24, 2020 at 12:15:58PM -0700, Jordan Crouse wrote: > Call report_iommu_fault() to allow upper-level drivers to register their > own fault handlers. > > Signed-off-by: Jordan Crouse > --- > > drivers/iommu/arm/arm-smmu/arm-smmu.c | 16 +--- > 1 file changed, 13

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

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

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

2021-01-22 Thread Linus Walleij
On Thu, Jan 21, 2021 at 8:43 PM Saravana Kannan wrote: > > They may still have "ports" or "banks" of GPIO that make sense > > to separate into logical nodes and this is most often why they > > do this. > > > > I bet there are some other oddities as well. > > Ah, thanks for the context. But

Re: [PATCH v2 04/16] rpmsg: ctrl: implement the ioctl function to create device

2021-01-22 Thread Arnaud POULIQUEN
Hi Mathieu, On 1/22/21 12:52 AM, Mathieu Poirier wrote: > On Tue, Dec 22, 2020 at 11:57:14AM +0100, Arnaud Pouliquen wrote: >> Implement the ioctl function that parses the list of >> rpmsg drivers registered to create an associated device. >> To be ISO user API, in a first step, the

Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order

2021-01-22 Thread Jann Horn
On Thu, Jan 21, 2021 at 7:19 PM Vlastimil Babka wrote: > On 1/21/21 11:01 AM, Christoph Lameter wrote: > > On Thu, 21 Jan 2021, Bharata B Rao wrote: > > > >> > The problem is that calculate_order() is called a number of times > >> > before secondaries CPUs are booted and it returns 1 instead of

RE: [RESEND PATCH v3 2/2] usb: dwc3: Add driver for Xilinx platforms

2021-01-22 Thread Manish Narani
Hi Michael, > -Original Message- > From: Michael Grzeschik > Sent: Friday, January 22, 2021 1:39 PM > To: Manish Narani > Cc: devicet...@vger.kernel.org; ker...@pengutronix.de; ba...@kernel.org; > gre...@linuxfoundation.org; linux-...@vger.kernel.org; Michal Simek > ;

Re: [PATCH] mmc: Assign boolean values to a bool variable

2021-01-22 Thread Ulf Hansson
On Wed, 20 Jan 2021 at 08:39, Jiapeng Zhong wrote: > > Fix the following coccicheck warnings: > > ./drivers/mmc/host/atmel-mci.c:2436:2-34: WARNING: Assignment > of 0/1 to bool variable. > > ./drivers/mmc/host/atmel-mci.c:2425:2-20: WARNING: Assignment > of 0/1 to bool variable. > > Reported-by:

Re: bisected regression in v5.11-rc1 snd-usb-audio

2021-01-22 Thread Jamie Heilman
Takashi Iwai wrote: > You seem hitting a firmware bug, and it doesn't look like the only > case. Interestingly, the backport of 5.11 USB-audio stuff on 5.3 > kernel on openSUSE Leap 15.2 caused a similar bug on Steinberg device, > while it worked with 5.11-rc. So I thought this specific with the

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 12:07 AM Masahiro Yamada wrote: > On Fri, Jan 22, 2021 at 5:35 AM Andy Shevchenko > wrote: > > On Thu, Jan 21, 2021 at 10:31 PM Andy Shevchenko > > wrote: ... > > For the record, you seems haven't noticed: > > https://lkml.org/lkml/2020/12/9/446 > > > Ohh, I missed it.

[PATCH] bridge: Use PTR_ERR_OR_ZERO instead if(IS_ERR(...)) + PTR_ERR

2021-01-22 Thread Jiapeng Zhong
coccicheck suggested using PTR_ERR_OR_ZERO() and looking at the code. Fix the following coccicheck warnings: ./net/bridge/br_multicast.c:1295:7-13: WARNING: PTR_ERR_OR_ZERO can be used. Reported-by: Abaci Signed-off-by: Jiapeng Zhong --- net/bridge/br_multicast.c | 2 +- 1 file changed, 1

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

2021-01-22 Thread Oleksij Rempel
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 attach timestamps and measure actual pulse

Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass

2021-01-22 Thread Vincent Guittot
Hi Mel, On Tue, 19 Jan 2021 at 13:02, Mel Gorman wrote: > > On Tue, Jan 19, 2021 at 12:33:04PM +0100, Vincent Guittot wrote: > > On Tue, 19 Jan 2021 at 12:22, Mel Gorman > > wrote: > > > > > > Changelog since v2 > > > o Remove unnecessary parameters > > > o Update nr during scan only when

Re: [PATCH v2 4/5] arm64: dts: renesas: falcon: Add Ethernet-AVB0 support

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > Change since v1: > > * removed avb1-5 which couldn't be tested > * added alias for avb0 so firmware can add MAC address > * added custom tx-internal-delay-ps > * dropped '_tx' suffix from 'pins_mii' config

[PATCH v2 1/2] dt-bindings: counter: add gpio-pulse-counter binding

2021-01-22 Thread Oleksij Rempel
Add binding for GPIO based pulse counter node Signed-off-by: Oleksij Rempel --- .../bindings/counter/gpio-pulse-counter.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/gpio-pulse-counter.yaml diff --git

[PATCH v2 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

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

2021-01-22 Thread Daniel Thompson
On Fri, Jan 22, 2021 at 03:50:50PM +0530, Sumit Garg wrote: > Currently kdb uses in_interrupt() to determine whether it's library Looks like a good change just a few nitpicks with the description: s/it's/its/ > code has been called from the kgdb trap handler or from a saner calling > context

RE: [PATCH 3/3] fpga: versal-fpga: Add versal fpga manager driver

2021-01-22 Thread Nava kishore Manne
Hi Moritz, Thanks for the review. Please find my response inline. > -Original Message- > From: Moritz Fischer > Sent: Tuesday, January 19, 2021 6:03 AM > To: Nava kishore Manne > Cc: m...@kernel.org; t...@redhat.com; robh...@kernel.org; Michal Simek > ;

Re: [PATCH] gpio: uapi: fix line info flags description

2021-01-22 Thread Bartosz Golaszewski
On Tue, Jan 19, 2021 at 2:58 PM Kent Gibson wrote: > > The description of the flags field of the struct gpio_v2_line_info > mentions "the GPIO lines" while the info only applies to an individual > GPIO line. This was accidentally changed from "the GPIO line" during > formatting improvements. > >

Re: [PATCHv2] lockdep: report broken irq restoration

2021-01-22 Thread Mark Rutland
Hi all, Any thoughts on this? I'd like to get this in soon if we could as it'll help to flush out any remaining issues that are liable to get in the way of planned rework for arm64 and x86. Thomas, are you happy to pick this? Thanks, Mark. On Mon, Jan 11, 2021 at 03:37:07PM +, Mark Rutland

Re: [PATCH RESEND V11 0/7] fuse: Add support for passthrough read/write

2021-01-22 Thread Alessio Balsini
On Tue, Jan 19, 2021 at 12:34:23PM +, Alessio Balsini wrote: > On Tue, Jan 19, 2021 at 07:06:54PM +0800, Rokudo Yan wrote: > > on Mon, Jan 18, 2021 at 5:27 PM Alessio Balsini wrote: > > > > > > This is the 11th version of the series, rebased on top of v5.11-rc4. > > > Please find the

[PATCH v8 18/18] sample/acrn: Introduce a sample of HSM ioctl interface usage

2021-01-22 Thread shuo . a . liu
From: Shuo Liu Launch a simple guest (with several instructions as payload) on ACRN with demonstration ioctl usage. Signed-off-by: Shuo Liu --- samples/acrn/Makefile| 12 samples/acrn/guest.ld| 9 +++ samples/acrn/payload.ld | 9 +++ samples/acrn/vm-sample.c | 136

Re: [PATCH v2 03/12] ASoC: arizona-jack: Fix some issues when HPDET IRQ fires after the jack has been unplugged

2021-01-22 Thread Charles Keepax
On Sun, Jan 17, 2021 at 05:05:46PM +0100, Hans de Goede wrote: > When the jack is partially inserted and then removed again it may be > removed while the hpdet code is running. In this case the following > may happen: > > 1. The "JACKDET rise" or ""JACKDET fall" IRQ triggers > 2. arizona_jackdet

[PATCH v8 14/18] virt: acrn: Introduce I/O ranges operation interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. I/O client maintains a list of address ranges. Introduce acrn_ioreq_range_{add,del}() to

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

2021-01-22 Thread Geert Uytterhoeven
EXT4_KUNIT_TESTS selects EXT4_FS, thus enabling an optional feature the user may not want to enable. Fix this by making the test depend on EXT4_FS instead. Fixes: 1cbeab1b242d16fd ("ext4: add kunit test for decoding extended timestamps") Signed-off-by: Geert Uytterhoeven --- Discussion after

[PATCH v8 04/18] x86/acrn: Introduce hypercall interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The Service VM communicates with the hypervisor via conventional hypercalls. VMCALL instruction is used to make the hypercalls. ACRN hypercall ABI: * Hypercall number is in R8 register. * Up to 2 parameters are in RDI and RSI registers. * Return value is in RAX register.

Re: [PATCH v6] drm/bridge: add it6505 driver

2021-01-22 Thread Andrzej Hajda
Hi Allen, Sorry for long delay. W dniu 08.12.2020 o 11:58, allen pisze: > This adds support for the iTE IT6505. > This device can convert DPI signal to DP output. > > From: Allen Chen > Signed-off-by: Jitao Shi > Signed-off-by: Pi-Hsun Shih > Signed-off-by: Yilun Lin > Signed-off-by: Hermes

[PATCH v8 07/18] virt: acrn: Introduce an ioctl to set vCPU registers state

2021-01-22 Thread shuo . a . liu
From: Shuo Liu A virtual CPU of User VM has different context due to the different registers state. ACRN userspace needs to set the virtual CPU registers state (e.g. giving a initial registers state to a virtual BSP of a User VM). HSM provides an ioctl ACRN_IOCTL_SET_VCPU_REGS to do the virtual

[PATCH v8 06/18] virt: acrn: Introduce VM management interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The VM management interfaces expose several VM operations to ACRN userspace via ioctls. For example, creating VM, starting VM, destroying VM and so on. The ACRN Hypervisor needs to exchange data with the ACRN userspace during the VM operations. HSM provides VM operation ioctls to

[PATCH v8 05/18] virt: acrn: Introduce ACRN HSM basic driver

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM which communicates with ACRN userspace through ioctls and talks to ACRN Hypervisor through hypercalls. Add a basic HSM driver which allows Service VM userspace to communicate with ACRN. The following patches

Re: [PATCH v2 06/12] ASoC: arizona-jack: Move jack-detect variables to struct arizona_priv

2021-01-22 Thread Charles Keepax
On Sun, Jan 17, 2021 at 05:05:49PM +0100, Hans de Goede wrote: > Move all the jack-detect variables from struct arizona_extcon_info to > struct arizona_priv. > > This is part of a patch series converting the arizona extcon driver into > a helper library for letting the arizona codec-drivers

[PATCH next v2 11/17] arm64: dts: mediatek: mt2712: harmonize node names

2021-01-22 Thread Chunfeng Yun
This is used to fix dtbs_check warning. Signed-off-by: Chunfeng Yun --- v2: no changes --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH 0/7] drivers: soc: atmel: add support for sama7g5

2021-01-22 Thread Claudiu Beznea
Hi, This series adds support for SAMA7G5 identification. Along with this included also some fixes. Thank you, Claudiu Beznea Claudiu Beznea (7): drivers: soc: atmel: add spdx licence identifier drivers: soc: atmel: use GENMASK drivers: soc: atmel: fix "__initconst should be placed after

[PATCH 6/7] dt-bindings: atmel-sysreg: add "microchip,sama7g5-chipid"

2021-01-22 Thread Claudiu Beznea
Add DT binding for SAMA7G5's CHIPID. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt

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:55:35 + > 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

[PATCH 3/7] drivers: soc: atmel: fix "__initconst should be placed after socs[]" warning

2021-01-22 Thread Claudiu Beznea
Fix checkpatch.pl warning: "__initconst should be placed after socs[]". 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 ef591b622583..9d10a526cd3c 100644 ---

[PATCH 7/7] drivers: soc: atmel: add support for sama7g5

2021-01-22 Thread Claudiu Beznea
Add support for SAMA7G5 SoCs. Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 18 ++ drivers/soc/atmel/soc.h | 6 ++ 2 files changed, 24 insertions(+) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 54339b8243cc..fb9d9cf8faf2 100644 ---

Re: [PATCH 0/6] mmc: core: hs400(es) fix probe/init

2021-01-22 Thread Ulf Hansson
+ Adrian On Tue, 8 Dec 2020 at 07:19, Chris Ruehl wrote: > > Fix the probe if hs400-1_8v / hs400-1_2v is used in the > dts and mmc-hs400-enhanced-strobe isn't set. > That was the first attemped, but it turns out that some > more cleanups and simplifications can be done. My apologies for the

Re: [PATCH 0/1] mm: Optimizing hugepage zeroing in arm64

2021-01-22 Thread Robin Murphy
On 2021-01-22 12:13, Catalin Marinas wrote: On Thu, Jan 21, 2021 at 06:59:37PM +, Robin Murphy wrote: On 2021-01-21 17:46, Will Deacon wrote: On Thu, Jan 21, 2021 at 10:21:50PM +0530, Prathu Baronia wrote: This patch removes the unnecessary kmap calls in the hugepage zeroing path and

[PATCH v4 7/7] kselftests: Add test to check for rlimit changes in different user namespaces

2021-01-22 Thread Alexey Gladkov
The testcase runs few instances of the program with RLIMIT_NPROC=1 from user uid=6, in different user namespaces. Signed-off-by: Alexey Gladkov --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/rlimits/.gitignore| 2 +

[PATCH v4 6/7] Move RLIMIT_NPROC check to the place where we increment the counter

2021-01-22 Thread Alexey Gladkov
After calling set_user(), we always have to call commit_creds() to apply new credentials upon the current task. There is no need to separate limit check and counter incrementing. Signed-off-by: Alexey Gladkov --- kernel/cred.c | 22 +- kernel/sys.c | 13 - 2

[PATCH v4 4/7] Move RLIMIT_SIGPENDING counter to ucounts

2021-01-22 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- fs/proc/array.c| 2 +- include/linux/sched/user.h | 1 - include/linux/signal_types.h | 4 ++- include/linux/user_namespace.h | 1 + kernel/fork.c | 1 + kernel/signal.c| 53

Re: [PATCH] ACPI / device_sysfs: Prefer "compatible" modalias

2021-01-22 Thread Mika Westerberg
On Fri, Jan 22, 2021 at 08:53:02PM +0800, Kai-Heng Feng wrote: > Commit 8765c5ba1949 ("ACPI / scan: Rework modalias creation when > "compatible" is present") may create two "MODALIAS=" in uevent file if > conditions are met. > > This breaks systemd-udevd, which assumes each "key" in uevent file

[PATCH v4 3/7] Move RLIMIT_MSGQUEUE counter to ucounts

2021-01-22 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- include/linux/sched/user.h | 4 include/linux/user_namespace.h | 1 + ipc/mqueue.c | 29 +++-- kernel/fork.c | 1 + kernel/ucount.c| 1 + kernel/user_namespace.c| 1

[PATCH v4 2/7] Move RLIMIT_NPROC counter to ucounts

2021-01-22 Thread Alexey Gladkov
RLIMIT_NPROC is implemented on top of ucounts. The process counter is tied to the user in the user namespace. Therefore, there is no longer one single counter for the user. Instead, there is now one counter for each user namespace. Thus, getting the RLIMIT_NPROC counter value to check the rlimit

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

2021-01-22 Thread Lukasz Luba
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 governor decision, e.g. how fast to

Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-22 Thread Dietmar Eggemann
On 21/01/2021 22:17, Song Bao Hua (Barry Song) wrote: > > >> -Original Message- >> From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] >> Sent: Friday, January 22, 2021 7:54 AM >> To: Valentin Schneider ; Meelis Roos >> ; LKML >> Cc: Peter Zijlstra ; Vincent Guittot >> ; Song Bao

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

2021-01-22 Thread Lukasz Luba
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 governor decision, e.g. how fast to

[PATCH v2 03/14] powerpc/40x: Don't use SPRN_SPRG_SCRATCH0/1 in TLB miss handlers

2021-01-22 Thread Christophe Leroy
SPRN_SPRG_SCRATCH5 is used to save SPRN_PID. SPRN_SPRG_SCRATCH6 is already available. SPRN_PID is only 8 bits. We have r12 that contains CR. We only need to preserve CR0, so we have space available in r12 to save PID. Keep PID in r12 and free up SPRN_SPRG_SCRATCH5. Then In TLB miss handlers,

RE: [PATCH 2/3] dt-bindings: fpga: Add binding doc for versal fpga manager

2021-01-22 Thread Nava kishore Manne
Hi Michal, Thanks for the review. Please find my response inline. > -Original Message- > From: Michal Simek > Sent: Monday, January 18, 2021 2:22 PM > To: Nava kishore Manne ; m...@kernel.org; > t...@redhat.com; robh...@kernel.org; Michal Simek ; > linux-f...@vger.kernel.org;

[PATCH v2 14/14] powerpc/32: Use fast instructions to change MSR EE/RI when available

2021-01-22 Thread Christophe Leroy
Booke and 40x have wrtee and wrteei to quickly change MSR EE. 8xx has registers SPRN_NRI, SPRN_EID and SPRN_EIE for changing MSR EE and RI. Use them in syscall and exception handler when possible. On an 8xx, it reduces the null_syscall test by 6 cycles (Two instances are changed in this patch,

[PATCH v2 08/14] powerpc/40x: Prepare normal exception handler for enabling MMU early

2021-01-22 Thread Christophe Leroy
Ensure normal exception handler are able to manage stuff with MMU enabled. For that we use CONFIG_VMAP_STACK related code allthough there is no intention to really activate CONFIG_VMAP_STACK on powerpc 40x for the moment. 40x uses SPRN_DEAR instead of SPRN_DAR and SPRN_ESR instead of SPRN_DSISR.

[PATCH v2 05/14] powerpc/40x: Save SRR0/SRR1 and r10/r11 earlier in critical exception

2021-01-22 Thread Christophe Leroy
In order to be able to switch MMU on in exception prolog, save SRR0 and SRR1 earlier. Also save r10 and r11 into stack earlier to better match with the normal exception prolog. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 9 - arch/powerpc/kernel/head_40x.S | 8

[PATCH v2 09/14] powerpc/32: Preserve cr1 in exception prolog stack check

2021-01-22 Thread Christophe Leroy
THREAD_ALIGN_SHIFT = THREAD_SHIFT + 1 = PAGE_SHIFT + 1 Maximum PAGE_SHIFT is 18 for 256k pages so THREAD_ALIGN_SHIFT is 19 at the maximum. No need to clobber cr1, it can be preserved when moving r1 into CR when we check stack overflow. Signed-off-by: Christophe Leroy ---

[RFC PATCH v4 0/2] Some optimization for stage-2 translation

2021-01-22 Thread Yanan Wang
Hi, Will, Marc, Is there any further comment on the v3 series I post previously? If they are not fine to you, then I think maybe we should just turn back to the original solution in v1, where I suggestted to filter out the case of only updating access permissions in the map handler and handle it

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

2021-01-22 Thread Daniel Thompson
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. This approach is broken because > in_interrupt() alone isn't

[RFC PATCH v4 1/2] KVM: arm64: Adjust partial code of hyp stage-1 map and guest stage-2 map

2021-01-22 Thread Yanan Wang
Procedures of hyp stage-1 map and guest stage-2 map are quite different, but they are tied closely by function kvm_set_valid_leaf_pte(). So adjust the relative code for ease of code maintenance in the future. Signed-off-by: Yanan Wang --- arch/arm64/kvm/hyp/pgtable.c | 54

Re: [PATCH v5 00/10] sunxi: Support IRQ wakeup from deep sleep

2021-01-22 Thread Maxime Ripard
On Thu, Jan 21, 2021 at 07:33:54PM -0600, Samuel Holland wrote: > On 1/21/21 2:35 PM, Marc Zyngier wrote: > > On Sun, 17 Jan 2021 23:50:30 -0600, Samuel Holland wrote: > >> Allwinner sun6i/sun8i/sun50i SoCs (A31 and newer) have two interrupt > >> controllers: GIC and R_INTC. GIC does not support

Re: [PATCH v27 12/12] landlock: Add user and kernel documentation

2021-01-22 Thread Mickaël Salaün
On 22/01/2021 09:33, Michael Kerrisk (man-pages) wrote: > Hello Mickaël, Hi Michael, > > It would be great to have some manual pages for these system calls > before release... Can you prepare something? Yes, I will start some pages based on the current documentation, but it will be some time

Re: [PATCH v2 5/5] WIP! arm64: dts: renesas: falcon: Add Ethernet-AVB1-5 support

2021-01-22 Thread Wolfram Sang
> > .../boot/dts/renesas/r8a779a0-falcon-cpu.dtsi | 160 ++ > > New file r8a779a0-falcon-ether.dtsi? Makes sense. > > > + ins_mii { > > pins_mii Now, how did that happen? Thanks! signature.asc Description: PGP signature

[PATCH 04/14] clk: stm32mp1: convert to module driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be

[PATCH 06/14] reset: stm32mp1: remove stm32mp1 reset

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files

[PATCH 03/14] clk: stm32mp1: remove intermediate pll clocks

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65

[PATCH 10/14] clk: stm32mp1: new compatible for secure RCC support

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be

[PATCH 13/14] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez ---

[PATCH 14/14] ARM: dts: stm32: introduce basic boot include on stm32mp15x board

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Include this .dtsi file to be backward compatible with old basic bootchain. For example add: #include "stm32mp15-no-scmi.dtsi" in a stm32mp157c*.dts file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp15-no-scmi.dtsi | 158 +++ 1

[PATCH 11/14] ARM: dts: stm32: define SCMI resources on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform stm32mp15 relies on SCMI resources (clocks and reset domains). This change adds SCMI resources description in the platform device tree. SCMI resources uses a mailbox based on some shared memory and a SMC mailbox notification. SCMI0 exposes clocks and reset

[PATCH v8 00/18] HSM driver for ACRN hypervisor

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN is a Type 1 reference hypervisor stack, running directly on the bare-metal hardware, and is suitable for a variety of IoT and embedded device solutions. ACRN implements a hybrid VMM architecture, using a privileged Service VM. The Service VM manages the system resources

[PATCH 1/2] MIPS: jazz: always allow little-endian builds

2021-01-22 Thread Arnd Bergmann
From: Arnd Bergmann The kernel test robot keeps reporting the same bug when it shows up in new files after random unrelated patches: In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from

[PATCH v8 11/18] virt: acrn: Introduce interfaces for PCI device passthrough

2021-01-22 Thread shuo . a . liu
From: Shuo Liu PCI device passthrough enables an OS in a virtual machine to directly access a PCI device in the host. It promises almost the native performance, which is required in performance-critical scenarios of ACRN. HSM provides the following ioctls: - Assign - ACRN_IOCTL_ASSIGN_PCIDEV

[PATCH 2/2] MIPS: make kgdb depend on FPU support

2021-01-22 Thread Arnd Bergmann
From: Arnd Bergmann kgdb fails to build when the FPU support is disabled: arch/mips/kernel/kgdb.c: In function 'dbg_set_reg': arch/mips/kernel/kgdb.c:147:35: error: 'struct thread_struct' has no member named 'fpu' 147 |memcpy((void *)>thread.fpu.fcr31, mem, |

[PATCH v8 17/18] virt: acrn: Introduce an interface for Service VM to control vCPU

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN supports partition mode to achieve real-time requirements. In partition mode, a CPU core can be dedicated to a vCPU of User VM. The local APIC of the dedicated CPU core can be passthrough to the User VM. The Service VM controls the assignment of the CPU cores. Introduce an

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