[RFC PATCH 3/3] ARM: mstar: Add interrupt controller to base dtsi

2020-07-30 Thread Daniel Palmer
Add the IRQ and FIQ intc instances to the base MStar/SigmaStar v7 dtsi. All of the know SoCs have both and at the same place with their common IPs using the same interrupt lines. Signed-off-by: Daniel Palmer Tested-by: Willy Tarreau --- arch/arm/boot/dts/mstar-v7.dtsi | 20

Re: [PATCH v2 0/2] Remove MT6779 UART3 clock support

2020-07-30 Thread Hanks Chen
Hi all, Gentle ping on this patch. Thanks! Hanks Chen On Wed, 2020-07-22 at 17:21 +0200, Matthias Brugger wrote: > > On 22/07/2020 13:16, Hanks Chen wrote: > > On Wed, 2020-07-22 at 10:43 +0200, Matthias Brugger wrote: > >> > >> On 22/07/2020 05:09, Hanks Chen wrote: > >>> remove the redundan

Re: [PATCH 3/4] KVM: SVM: Add GHCB Accessor functions

2020-07-30 Thread Joerg Roedel
On Wed, Jul 29, 2020 at 08:43:28AM -0700, Sean Christopherson wrote: > Rather than manually calculate the byte/bit indices just use __set_bit() > and test_bit(). That will also solve the variable declaration issue. > > E.g. > > #define GHB_BITMAP_IDX(field) \ > (offsetof(struct vmc

sdX - Another fun fact.

2020-07-30 Thread Ywe Cærlyn
The name Unix seems to go back to a Scanza (pre-christian name of Norway) tribe, also. We earlier discussed the Sami Tor idol, and this is where it seems to go. These facts also make the name sdX fit perfectly, again a supply and demand principle based OS. Serenity! Ywe Cærlyn https://www.yo

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Gustavo A. R. Silva
On 7/30/20 03:41, Takashi Iwai wrote: > On Thu, 30 Jul 2020 00:18:29 +0200, > Gustavo A. R. Silva wrote: >> >> Make use of the flex_array_size() helper to calculate the size of a >> flexible array member within an enclosing structure. >> >> This helper offers defense-in-depth against potential i

[PATCH 1/2] ARM: dts: imx27: Change nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX27 nand node name from "nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx27.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx2

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:20PM +0300, Kirill Tkhai wrote: > Currently, there is no a way to list or iterate all or subset of namespaces > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > but some also may be as open files, which are not attached to a process. > When

[PATCH 2/2] ARM: dts: imx: Change gpmi nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX SoCs nand node name from "gpmi-nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx23-evk.dts| 2 +- arch/arm/boot/dts/imx23.dtsi | 2 +- arch/arm/boot/dts

RE: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-30 Thread David Laight
> This is quite clever, but now I’m wondering just how much kernel help > is really needed. In your series, the trampoline is an non-executable > page. I can think of at least two alternative approaches, and I'd > like to know the pros and cons. > > 1. Entirely userspace: a return trampoline woul

Re: Upcoming: fscache rewrite

2020-07-30 Thread Jeff Layton
On Thu, 2020-07-30 at 12:51 +0100, David Howells wrote: > Hi Linus, Trond/Anna, Steve, Eric, > > I have an fscache rewrite that I'm tempted to put in for the next merge > window: > > > https://lore.kernel.org/linux-fsdevel/159465784033.1376674.18106463693989811037.st...@warthog.procyon.org

RE: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-30 Thread Anson Huang
Hi, Philipp > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > Hi Anson, > > On Thu, 2020-07-30 at 02:11 +, Anson Huang wrote: > > Hi, Philipp/Rob > > > > > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > > > > > On Wed, 2020-07-29 at 09:26 -0600

[PATCH 1/2] habanalabs: Replace dma-fence mechanism with completions

2020-07-30 Thread Oded Gabbay
From: Ofir Bitton habanalabs driver uses dma-fence mechanism for synchronization. dma-fence mechanism was designed solely for GPUs, hence we purpose a simpler mechanism based on completions to replace current dma-fence objects. Signed-off-by: Ofir Bitton Cc: Greg Kroah-Hartman Cc: Daniel Vette

[PATCH 2/2] habanalabs: add information about PCIe controller

2020-07-30 Thread Oded Gabbay
From: Ofir Bitton Update firmware header with new API for getting pcie info such as tx/rx throughput and replay counter. These counters are needed by customers for monitor and maintenance of multiple devices. Add new opcodes to the INFO ioctl to retrieve these counters. Signed-off-by: Ofir Bitto

Re: [RFC][PATCH] exec: Freeze the other threads during a multi-threaded exec

2020-07-30 Thread Eric W. Biederman
Linus Torvalds writes: > On Tue, Jul 28, 2020 at 6:23 AM Eric W. Biederman > wrote: >> >> For exec all I care about are user space threads. So it appears the >> freezer infrastructure adds very little. > > Yeah. 99% of the freezer stuff is for just adding the magic notations > for kernel threa

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 15:18, Alexey Dobriyan wrote: > On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > >> # ls /proc/namespaces/ -l >> lrwxrwxrwx 1 root root 0 Jul 29 16:50 'cgroup:[4026531835]' -> >> 'cgroup:[4026531835]' >> lrwxrwxrwx 1 root root 0 Jul 29 16:50 'ipc:[4026531839]' -> >>

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: > > > On 7/30/20 10:57 AM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: > > > + if (file->elf->changed) > > > + return elf_write(file->elf); > > > + e

RE: [PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Lu, Brent
> On Thu, Jul 30, 2020 at 04:13:35PM +0800, Brent Lu wrote: > > From: Yu-Hsuan Hsu > > > > The CRAS server does not set the period size in hw_param so ALSA will > > calculate a value for period size which is based on the buffer size > > and other parameters. The value may not always be aligned wit

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Yang Yingliang
On 2020/7/30 19:04, Jiri Slaby wrote: On 13. 07. 20, 12:57, Yang Yingliang wrote: I got a slab-out-of-bounds report when I doing fuzz test. [ 334.989515] == [ 334.989577] BUG: KASAN: slab-out-of-bounds in vgacon_scroll+0x57a/0

[PATCH v5 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-07-30 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++- 1 file ch

[PATCH v5 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-30 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Also avoid a case where neither regulator nor enable gpio is specified, and bail out in probe in such a case. Signed-off-by: Ondrej Jir

[PATCH v5 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-07-30 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a7

[PATCH v5 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-30 Thread Ondrej Jirman
The board has a vibrator motor. Hook it to the input subsystem. According to the PMIC specification, LDO needs to be enabled (value 0b11) to achieve the specified max driving current of 150mA. We can't drive the motor with just GPIO mode. In GPIO mode the chip is probably just using the regular C

[PATCH v5 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-07-30 Thread Ondrej Jirman
The tablet has a vibrator motor. This patch series exposes it via input subsystem (EV_FF). I'd like to ask input maintainers to take the patches 1 and 2. Patches 3 and 4 should go via the sunxi tree. The change to the vibrator driver is meant to enable toggling the vibrator motor just via a power

[PATCH] KVM: arm64: Ensure that all nVHE hyp code is in .hyp.text

2020-07-30 Thread David Brazdil
Some compilers may put a subset of generated functions into '.text.*' ELF sections and the linker may leverage this division to optimize ELF layout. Unfortunately, the recently introduced HYPCOPY command assumes that all executable code (with the exception of specialized sections such as '.hyp.idma

Re: [PATCH][next] mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Gustavo A. R. Silva
On 7/30/20 04:21, Ido Schimmel wrote: > On Wed, Jul 29, 2020 at 05:58:03PM -0500, Gustavo A. R. Silva wrote: >> Make use of the flex_array_size() helper to calculate the size of a >> flexible array member within an enclosing structure. >> >> This helper offers defense-in-depth against potential

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > This is a new directory to show all namespaces, which can be > accessed from this /proc tasks credentials. > > Every /proc is related to a pid_namespace, and the pid_namespace > is related to a user_namespace. The items, we show in th

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 2:22 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: + if (file->elf->changed) +

[PATCH v10 3/3] clk: mediatek: add UART0 clock support

2020-07-30 Thread Hanks Chen
Add MT6779 UART0 clock support. Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") Signed-off-by: Wendell Lin Signed-off-by: Hanks Chen Reviewed-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/mediatek/cl

[PATCH v10 1/3] dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC

2020-07-30 Thread Hanks Chen
From: Andy Teng Add devicetree bindings for MediaTek MT6779 pinctrl driver. Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- .../pinctrl/mediatek,mt6779-pinctrl.yaml | 202 ++ 1 file changed, 202 insertions(+) create mode 100644 Documentation/devicetree/bindings/p

[PATCH v10 2/3] arm64: dts: add dts nodes for MT6779

2020-07-30 Thread Hanks Chen
this adds initial MT6779 dts settings for board support, including cpu, gic, timer, ccf, pinctrl, uart, sysirq...etc. Signed-off-by: Hanks Chen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 31 +++ arch/arm64/boot/dts/mediatek/mt6779.dtsi

[PATCH v10 0/3] Add basic SoC Support for Mediatek MT6779 SoC

2020-07-30 Thread Hanks Chen
Change since v10: Commit "dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC" -- remove the patches which were applied to linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b07b616214857c9db01e2807cde2f6bba8019fc3 -- follow the latest 'dt-schema' and

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 15:23, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 03:00:08PM +0300, Kirill Tkhai wrote: >> This patch introduces a new IDR and functions to add/remove and iterate >> registered namespaces in the system. It will be used to list namespaces >> in /proc/namespaces/... in next patches

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 01:40:48PM +0100, Julien Thierry wrote: > > > On 7/30/20 11:03 AM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: > > > One orc_entry is associated with each instruction in the object file, > > > but having the orc_entry con

Re: [PATCH] firewire: firewire-cdev.h: Avoid the use of one-element array

2020-07-30 Thread Gustavo A. R. Silva
NACK! Please, stop doing this. You clearly don't know what you're doing. You're just blindly copying/pasting all this. The subject line has nothing to do with what the patch does and we don't want any of these transformations in UAPI for now. As I already said here: https://lore.kernel.org/lkml

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > Currently, every type of namespaces has its own counter, > which is stored in ns-specific part. Say, @net has > struct net::count, @pid has struct pid_namespace::kref, etc. > > This patchset introduces unified counter for all types >

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Jiri Slaby
On 30. 07. 20, 15:24, Yang Yingliang wrote: > > On 2020/7/30 19:04, Jiri Slaby wrote: >> On 13. 07. 20, 12:57, Yang Yingliang wrote: >>> I got a slab-out-of-bounds report when I doing fuzz test. >>> >>> [  334.989515] >>> == >>> [  33

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
[Cc: linux-api] On Thu, Jul 30, 2020 at 03:08:53PM +0200, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:20PM +0300, Kirill Tkhai wrote: > > Currently, there is no a way to list or iterate all or subset of namespaces > > in the system. Some namespaces are exposed in /proc/[pid]/ns/ direc

[v1] drm/msm/dpu: Fix scale params in plane validation

2020-07-30 Thread Kalyan Thota
Plane validation uses an API drm_calc_scale which will return src/dst value as a scale ratio. when viewing the range on a scale the values should fall in as Upscale ratio < Unity scale < Downscale ratio for src/dst formula Fix the min and max scale ratios to suit the API accordingly. Signed-off

Re: [PATCH 0/2] Fix st7703 panel initialization failures

2020-07-30 Thread Ondřej Jirman
Hello, On Wed, Jul 29, 2020 at 05:48:09PM +0200, Guido Günther wrote: > Hi, > On Sat, Jul 18, 2020 at 07:42:15PM +0200, Ondřej Jirman wrote: > > Hello, > > > > On Sat, Jul 18, 2020 at 07:31:24PM +0200, Guido Günther wrote: > > > Hi, > > > On Thu, Jul 16, 2020 at 04:32:09PM +0200, Ondřej Jirman wr

Re: [net-next v5 PATCH 0/7] Add PRP driver

2020-07-30 Thread Murali Karicheri
Hi Dave, On 7/27/20 3:21 PM, David Miller wrote: From: Murali Karicheri Date: Wed, 22 Jul 2020 10:40:15 -0400 This series is dependent on the following patches sent out to netdev list. All (1-3) are already merged to net/master as of sending this, but not on the net-next master branch. So nee

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Julien Thierry
On 7/30/20 2:33 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:48PM +0100, Julien Thierry wrote: On 7/30/20 11:03 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: One orc_entry is associated with each instruction in the object

Re: [net-next iproute2 PATCH v3 1/2] iplink: hsr: add support for creating PRP device similar to HSR

2020-07-30 Thread Murali Karicheri
Hi Dave, On 7/17/20 11:22 AM, Murali Karicheri wrote: This patch enhances the iplink command to add a proto parameters to create PRP device/interface similar to HSR. Both protocols are quite similar and requires a pair of Ethernet interfaces. So re-use the existing HSR iplink command to create P

Re: [PATCH 03/10] media: uapi: h264: Split prediction weight parameters

2020-07-30 Thread Nicolas Dufresne
Le samedi 25 juillet 2020 à 22:30 +0900, Alexandre Courbot a écrit : > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > wrote: > > The prediction weight parameters are only required under > > certain conditions, which depend on slice header parameters. > > > > The slice header syntax specifies

Re: [PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 01:23:57PM +, Lu, Brent wrote: > > On Thu, Jul 30, 2020 at 04:13:35PM +0800, Brent Lu wrote: > > > From: Yu-Hsuan Hsu > > > > > > The CRAS server does not set the period size in hw_param so ALSA will > > > calculate a value for period size which is based on the buffer s

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 1:48 PM Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 11:18:04AM +0200, Arnd Bergmann wrote: > > The in_ia32_syscall() check should be completely reliable in telling whether > > we are called from read() by an ia32 task or not, and we use the same > > logic for input_eve

Re: [PATCH] KVM: arm64: Ensure that all nVHE hyp code is in .hyp.text

2020-07-30 Thread Marc Zyngier
On Thu, 30 Jul 2020 14:25:19 +0100, David Brazdil wrote: > Some compilers may put a subset of generated functions into '.text.*' > ELF sections and the linker may leverage this division to optimize ELF > layout. Unfortunately, the recently introduced HYPCOPY command assumes > that all executable co

[PATCH] sched/core: add unlikely in group_has_capacity()

2020-07-30 Thread Qi Zheng
1. The group_has_capacity() function is only called in group_classify(). 2. Before calling the group_has_capacity() function, group_is_overloaded() will first judge the following formula, if it holds, the group_classify() will directly return the group_overloaded. (sgs->group_c

[PATCH v2 00/10] gpio: dwapb: Refactor GPIO resources initialization

2020-07-30 Thread Serge Semin
This series is about the DW APB GPIO device initialization procedure cleaning up. First of all it has been discovered that having a vendor-specific "snps,nr-gpios" property isn't only redundant but also might be dangerous (see the commit log for details). Instead we suggest to use the generic "ngpi

[PATCH v2 02/10] gpio: dwapb: Add ngpios DT-property support

2020-07-30 Thread Serge Semin
Indeed generic GPIO DT-schema implies that number of GPIOs should be described by the "ngpios" property located under a GPIO-provider DT node. In that case it's redundant to have a vendor-specific "snps,nr-gpios" property describing the same setting. Moreover it might be errors prone. Since commit

[PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Serge Semin
GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on top of a GPIO chip. It's better from maintainability and readability point of view to use one instead of supporting a hand-written Generic IRQ-chip-based implementation. Moreover the new implementation won't cause much function

[PATCH v2 08/10] gpio: dwapb: Get reset control by means of resource managed interface

2020-07-30 Thread Serge Semin
The reset control interface provides the resource managed version of the reset_control_get() method. The only thing which needs to be also automated is the reset lane assertion on the device removal. It can be implemented by means of the custom action definition. After that the reset control will b

[PATCH v2 10/10] gpio: dwapb: Use resource managed GPIO-chip add data method

2020-07-30 Thread Serge Semin
Since the resource managed version of gpiochip_add_data() will handle the GPIO-chip data automated cleanup we can freely remove the DW APB GPIO driver code responsible for that. After doing so the DW APB GPIO driver removal callback can be also fully discarded since there is nothing left to be done

[PATCH v2 09/10] gpio: dwapb: Get clocks by means of resource managed interface

2020-07-30 Thread Serge Semin
The kernel clock framework provides the resource managed version of the clk_bulk_get() method. The only thing which needs to be also automated is the clocks disable/unprepare procedure executed on the device removal. It can be implemented by means of the custom action definition. After that the clo

[PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number of GPIO lines corresponding to the maximum DW APB GPIO controller port width. Use the new macro instead of number literal 32 where it's applicable. Signed-off-by: Serge Semin --- drivers/gpio/gpio-dwapb.c|

[PATCH v2 01/10] dt-bindings: gpio: dwapb: Add ngpios property support

2020-07-30 Thread Serge Semin
It's redundant to have a vendor-specific property describing a number of GPIOS while there is a generic one. Let's mark the former one as deprecated and define the "ngpios" property supported with constraints of being within [1; 32] range. Signed-off-by: Serge Semin Reviewed-by: Rob Herring ---

[PATCH v2 06/10] gpio: dwapb: Discard GPIO-to-IRQ mapping function

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in setting up a custom GPIO-to-IRQ mapping method. GPIO-lib defines the standard mapping method - gpiochip_to_irq(), which will be used anyway no matter whether the custom to_irq callback is specified or not. Signed-off-by: Se

[PATCH v2 07/10] gpio: dwapb: Discard ACPI GPIO-chip IRQs request

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in calling the methods acpi_gpiochip_{request,free}_interrupts() here. They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove() anyway. Signed-off-by: Serge Semin --- Changelog v2: - This is a new patch det

[PATCH v2 03/10] gpio: dwapb: Move MFD-specific IRQ handler

2020-07-30 Thread Serge Semin
For better readability let's group all the IRQ handlers in a single place of the driver instead of having them scatter around all over the file. Signed-off-by: Serge Semin Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-dwapb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: > On 30.07.2020 15:23, Matthew Wilcox wrote: > > xa_erase_irqsave(); > > static inline void *xa_erase_irqsave(struct xarray *xa, unsigned long index) > { > unsigned long flags; > void *entry; > > xa_lock_irqsave(x

Re: [PATCH] KVM: arm: Add trace name for ARM_NISV

2020-07-30 Thread Marc Zyngier
On Thu, 30 Jul 2020 11:44:41 +0200, Alexander Graf wrote: > Commit c726200dd106d ("KVM: arm/arm64: Allow reporting non-ISV data aborts > to userspace") introduced a mechanism to deflect MMIO traffic the kernel > can not handle to user space. For that, it introduced a new exit reason. > > However,

Re: [PATCH v2 0/6] Add new controls for CQ and Frame-skip

2020-07-30 Thread Nicolas Dufresne
Le mardi 21 juillet 2020 à 10:45 +0300, Stanimir Varbanov a écrit : > Hello, > > Here is v2 with following changes: > > * 3/6 Added references for VBV size and h264 CPB size - requested by Nicolas Thanks for this enhancement. No more comments on the doc from me. > * 4/6 Fixed compile warning

Re: [RFC 1/2] devlink: add simple fw crash helpers

2020-07-30 Thread Johannes Berg
Hi, Sorry ... long delay. > > The reason I'm asking is that it's starting to sound like we really > > ought to be implementing devlink, but we've got a bunch of > > infrastructure that uses the devcoredump, and it'll take time > > (significantly so) to change all that... > > In devlink world pur

Re: [PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Steven Rostedt
On Thu, 30 Jul 2020 19:04:12 +0800 Zhaoyang Huang wrote: > High order memory stuff within trace could introduce OOM, use kvmalloc > instead. > > Please find the bellowing for the call stack we run across in an android > system. The scenario happens when traced_probes is woken up to get a large

Re: [PATCH v2] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Guenter Roeck
On 7/29/20 8:37 PM, Badhri Jagan Sridharan wrote: > Hi Guenter, > > I see that Hans is saying that he has submitted some patch here. > https://lore.kernel.org/lkml/65f27abc-69c8-3877-be5b-e5e478153...@redhat.com/ > But, haven't found the actual patches yet ! > https://patchwork.kernel.org/projec

Je to naléhavá zpráva,

2020-07-30 Thread Luis F. Godard
Je to naléhavá zpráva, Jak obecně? Doufám, že se tato zpráva s vámi dobře setkává. Nezapomeňte prosím tuto zprávu na rozdíl od dřívějších, protože váš dědický fond ve výši 9,2 milionu USD nyní odhaluje vaši okamžitou pozitivní odpověď. Vyzývám vás však, abyste laskavě předali své celé jméno: Země:

Re: [PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Steven Rostedt
This is also the second version of the patch. Please add a v2 to the subject, otherwise it gets confusing to know which one to pull in. "[PATCH v2] ..." -- Steve On Thu, 30 Jul 2020 19:04:12 +0800 Zhaoyang Huang wrote: > High order memory stuff within trace could introduce OOM, use kvmallo

[PATCH v3] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
Check that alloc and free types of functions match each other. Signed-off-by: Denis Efremov --- Changes in v2: - Lines are limited to 80 characters where possible - Confidence changed from High to Medium because of fs/btrfs/send.c:1119 false-positive - __vmalloc_area_node() explicitly excl

Re: [PATCH v3] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
> + > +@script: python depends on org@ > +v << kfree.v; > +p << kfree.p; > +@@ > + > +msg = "WARNING: vmalloc is used to allocate this memory at line %s" % > (v[0].line) > +coccilib.org.print_todo(p[0], Just noticed this error. I will resend the patch in 5mins. Regards, Denis

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > of GPIO lines corresponding to the maximum DW APB GPIO controller port > width. Use the new macro instead of number literal 32 where it's > applicable. Since i

Re: [PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:41:39AM +0100, Julien Thierry wrote: > Hi, > > Matt Helsley's change[1] provided a base framework to opt-in/out > objtool subcommands at compile time. This makes it easier for > architectures to port objtool, one subcommand at a time. > > Orc generation relies on the ch

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:35, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: >> Currently, every type of namespaces has its own counter, >> which is stored in ns-specific part. Say, @net has >> struct net::count, @pid has struct pid_namespace::kref, etc. >> >> This

[PATCH bpf-next v7 4/7] bpf: Split bpf_local_storage to bpf_sk_storage

2020-07-30 Thread KP Singh
From: KP Singh A purely mechanical change: bpf_sk_storage.c = bpf_sk_storage.c + bpf_local_storage.c bpf_sk_storage.h = bpf_sk_storage.h + bpf_local_storage.h Signed-off-by: KP Singh --- include/linux/bpf_local_storage.h | 163 include/net/bpf_sk_storage.h | 61

[PATCH bpf-next v7 3/7] bpf: Generalize bpf_sk_storage

2020-07-30 Thread KP Singh
From: KP Singh Refactor the functionality in bpf_sk_storage.c so that concept of storage linked to kernel objects can be extended to other objects like inode, task_struct etc. Each new local storage will still be a separate map and provide its own set of helpers. This allows for future object sp

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:05:26PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > > of GPIO lines corresponding to the maximum DW APB GPIO controller port > > width. Use the

[PATCH v4] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
Check that alloc and free types of functions match each other. Signed-off-by: Denis Efremov --- Changes in v2: - Lines are limited to 80 characters where possible - Confidence changed from High to Medium because of fs/btrfs/send.c:1119 false-positive - __vmalloc_area_node() explicitly excl

[PATCH bpf-next v7 5/7] bpf: Implement bpf_local_storage for inodes

2020-07-30 Thread KP Singh
From: KP Singh Similar to bpf_local_storage for sockets, add local storage for inodes. The life-cycle of storage is managed with the life-cycle of the inode. i.e. the storage is destroyed along with the owning inode. The BPF LSM allocates an __rcu pointer to the bpf_local_storage in the security

[PATCH bpf-next v7 7/7] bpf: Add selftests for local_storage

2020-07-30 Thread KP Singh
From: KP Singh inode_local_storage: * Hook to the file_open and inode_unlink LSM hooks. * Create and unlink a temporary file. * Store some information in the inode's bpf_local_storage during file_open. * Verify that this information exists when the file is unlinked. sk_local_storage: * Hook

[PATCH bpf-next v7 0/7] Generalizing bpf_local_storage

2020-07-30 Thread KP Singh
From: KP Singh # v6 -> v7 - Updated the series to use Martin's POC patch: https://lore.kernel.org/bpf/20200725013047.4006241-1-ka...@fb.com/ I added a Co-developed-by: tag, but would need Martin's Signoff (was not sure of the procedure here). - Rebase. # v5 -> v6 - Fixed a build warn

[PATCH bpf-next v7 6/7] bpf: Allow local storage to be used from LSM programs

2020-07-30 Thread KP Singh
From: KP Singh Adds support for both bpf_{sk, inode}_storage_{get, delete} to be used in LSM programs. These helpers are not used for tracing programs (currently) as their usage is tied to the life-cycle of the object and should only be used where the owning object won't be freed (when the owning

[PATCH] sched: Provide USF for the portable equipment.

2020-07-30 Thread Dongdong Yang
From: Dongdong Yang This patch provides USF(User Sensitive Feedback factor) auxiliary cpufreq governor to support high level layer sysfs inodes setting for utils adjustment purpose from the identified scenario on portable equipment. Because the power consumption and UI response are more cared for

[PATCH bpf-next v7 1/7] A purely mechanical change to split the renaming from the actual generalization.

2020-07-30 Thread KP Singh
From: KP Singh Flags/consts: SK_STORAGE_CREATE_FLAG_MASK BPF_LOCAL_STORAGE_CREATE_FLAG_MASK BPF_SK_STORAGE_CACHE_SIZE BPF_LOCAL_STORAGE_CACHE_SIZE MAX_VALUE_SIZEBPF_LOCAL_STORAGE_MAX_VALUE_SIZE Structs: bucketbpf_local_storage_map_bucket

[PATCH] sched: Provide USF for the portable equipment.

2020-07-30 Thread Dongdong Yang
From: Dongdong Yang The power consumption and UI response are more cared for by the portable equipment users. USF(User Sensitive Feedback factor) auxiliary cpufreq governor is providing more utils adjustment settings to a high level by scenario identification. >From the view of portable equipmen

[PATCH bpf-next v7 2/7] bpf: Generalize caching for sk_storage.

2020-07-30 Thread KP Singh
From: KP Singh Provide the a ability to define local storage caches on a per-object type basis. The caches and caching indices for different objects should not be inter-mixed as suggested in: https://lore.kernel.org/bpf/20200630193441.kdwnkestulg5e...@kafai-mbp.dhcp.thefacebook.com/ "Cachi

Re: [PATCH v3 1/4] objtool: Move object file loading out of check

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: > +struct objtool_file *objtool_setup_file(const char *_objname) > +{ > + if (objname) { > + if (strcmp(objname, _objname)) { > + WARN("won't handle more than one file at a time"); > +

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > escribió: >> >> Again, module parameters are working on a per-chunk-of-code basis, while >> you want to work on a per-device basis, > > > I think there is a misunderstanding. What I wan

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:56, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: >> On 30.07.2020 15:23, Matthew Wilcox wrote: >>> xa_erase_irqsave(); >> >> static inline void *xa_erase_irqsave(struct xarray *xa, unsigned long index) >> { >> unsigned long flags; >>

Re: [PATCH 8/8] modules: inherit TAINT_PROPRIETARY_MODULE

2020-07-30 Thread Jessica Yu
+++ Christoph Hellwig [30/07/20 08:10 +0200]: If a TAINT_PROPRIETARY_MODULE exports symbol, inherit the taint flag for all modules importing these symbols, and don't allow loading symbols from TAINT_PROPRIETARY_MODULE modules if the module previously imported gplonly symbols. Add a anti-circumve

Re: [PATCH] iocost: Fix check condition of iocg abs_vdebt

2020-07-30 Thread Tejun Heo
Hello, On Thu, Jul 30, 2020 at 05:03:21PM +0800, Chengming Zhou wrote: > We shouldn't skip iocg when its abs_vdebt is not zero. > > Fixes: 0b80f9866e6b ("iocost: protect iocg->abs_vdebt with > iocg->waitq.lock") > > Signed-off-by: Chengming Zhou Acked-by: Tejun Heo Thanks. -- tejun

[PATCH] clk: bcm2835: Do not use prediv with bcm2711's PLLs

2020-07-30 Thread Nicolas Saenz Julienne
Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL feedback loop. Bypass it by zeroing fb_prediv_mask. Note that, since the prediv configuration bits were re-purposed, this was triggering a miscalculation on all clock hanging from the VPU clock, notably the aux UART, making its

Re: [PATCH rdma-rc 0/3] Simple fixes to DIM and mlx5

2020-07-30 Thread Jason Gunthorpe
On Thu, Jul 30, 2020 at 11:27:16AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Hi, > > First patch fixes an issue observed after auto-PID series was merged, > but because the bug that not-initialized mutex existed before, the > patch is sent to -rc. > > Other two patches are fixin

Re: kswapd warning at kernel/rcu/tree.c:1358 rcu_advance_cbs_nowake causing processes to enter d state

2020-07-30 Thread Joseph Feather
Resending as plaintext. From: Joseph Feather Sent: Thursday, July 30, 2020 9:59 AM To: Paul E. McKenney ; Josh Triplett Cc: linux-kernel@vger.kernel.org ; Timothy Heilman ; Wilfredo Crespo ; Michael Barr Subject: kswapd warning at kernel/rcu/tree.c:1358 rcu_advance_cbs_nowake causing proces

Re: [PATCH] iocost_monitor: start from the oldest usage index

2020-07-30 Thread Tejun Heo
On Thu, Jul 30, 2020 at 08:31:04PM +0800, Chengming Zhou wrote: > iocg usage_idx is the latest usage index, we should start from the > oldest usage index to show the consecutive NR_USAGE_SLOTS usages. > > Signed-off-by: Chengming Zhou Acked-by: Tejun Heo Thanks. -- tejun

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 05:12:09PM +0300, Kirill Tkhai wrote: > On 30.07.2020 16:56, Matthew Wilcox wrote: > > On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: > >> On 30.07.2020 15:23, Matthew Wilcox wrote: > >>> xa_erase_irqsave(); > >> > >> static inline void *xa_erase_irqsave(struc

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 02:29:20PM +0100, Julien Thierry wrote: > > > On 7/30/20 2:22 PM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: > > > > > > > > > On 7/30/20 10:57 AM, pet...@infradead.org wrote: > > > > On Thu, Jul 30, 2020 at 10:41:41AM

Re: [PATCH v2 00/10] gpio: dwapb: Refactor GPIO resources initialization

2020-07-30 Thread Serge Semin
Wou, I've confused my SOB tag here. Linus, if no additional patchset revision is required, could you please replace it with: Signed-off-by: Serge Semin ? Alternatively I could resend the series with correct version of the tag. -Sergey On Thu, Jul 30, 2020 at 04:55:26PM +0300, Serge Semin wrote

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Daniel Gutson
On Thu, Jul 30, 2020 at 11:09 AM Arnd Bergmann wrote: > > On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > > escribió: > >> > >> Again, module parameters are working on a per-chunk-of-code basis, while > >> you want to work on a per

[Question] the check of ioeventfd collision in kvm_*assign_ioeventfd_idx

2020-07-30 Thread Zhenyu Ye
Hi all, There are checks of ioeventfd collision in both kvm_assign_ioeventfd_idx() and kvm_deassign_ioeventfd_idx(), however, with different logic. In kvm_assign_ioeventfd_idx(), this is done by ioeventfd_check_collision(): ---8<--- if (_p->bus_idx == p->bus_idx && _p->addr ==

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:15, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 05:12:09PM +0300, Kirill Tkhai wrote: >> On 30.07.2020 16:56, Matthew Wilcox wrote: >>> On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: On 30.07.2020 15:23, Matthew Wilcox wrote: > xa_erase_irqsave(); >

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Daniel Gutson
On Thu, Jul 30, 2020 at 11:18 AM Daniel Gutson wrote: > > On Thu, Jul 30, 2020 at 11:09 AM Arnd Bergmann wrote: > > > > On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > > > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > > > escribió: > > >> > > >> Again, module parameters are wor

Re: [PATCH bpf-next 1/1] arm64: bpf: Add BPF exception tables

2020-07-30 Thread Jean-Philippe Brucker
On Thu, Jul 30, 2020 at 08:28:56AM -0400, Qian Cai wrote: > On Tue, Jul 28, 2020 at 05:21:26PM +0200, Jean-Philippe Brucker wrote: > > When a tracing BPF program attempts to read memory without using the > > bpf_probe_read() helper, the verifier marks the load instruction with > > the BPF_PROBE_MEM

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