Re: [PATCH v2 2/3] block: Add a new helper to attempt to merge a bio

2020-08-27 Thread Baolin Wang
On Thu, Aug 27, 2020 at 11:44:15AM +0200, Christoph Hellwig wrote: > On Tue, Aug 18, 2020 at 01:45:29PM +0800, Baolin Wang wrote: > > Meanwhile move the blk_mq_bio_list_merge() into blk-merge.c and > > rename it as a generic name. > > That should probably a separate patch. Sure. > > > +

[PATCH net-next v3 0/2] Enable Fiber on DP83822 PHY

2020-08-27 Thread Dan Murphy
Hello The DP83822 Ethernet PHY has the ability to connect via a Fiber port. The derivative PHYs DP83825 and DP83826 do not have this ability. In fiber mode the DP83822 disables auto negotiation and has a fixed 100Mbps speed with support for full or half duplex modes. A devicetree binding was add

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Felipe Balbi
Hi, Paul Cercueil writes: > @@ -246,9 +241,8 @@ static void x1830_usb_phy_init(struct usb_phy > *phy) > USBPCR1_DMPD | USBPCR1_DPPD; > writel(reg, priv->base + REG_USBPCR1_OFFSET); > > - reg = USBPCR_IDPULLUP_OTG | USBPCR_VBUSVLDEXT

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

2020-08-27 Thread Cristian Ciocaltea
Hi Peter, Thanks for the review! On Thu, Aug 27, 2020 at 08:44:40AM +0200, Peter Korsgaard wrote: > > "Cristian" == Cristian Ciocaltea writes: > > > Add a Device Tree for the RoseapplePi SBC. > > Signed-off-by: Cristian Ciocaltea > > Reviewed-by: Peter Korsgaard > > On a related note:

[PATCH v2 5/5] fpga manager: xilinx-spi: provide better diagnostics on programming failure

2020-08-27 Thread Luca Ceresoli
When the DONE pin does not go high after programming to confirm programming success, the INIT_B pin provides some info on the reason. Use it if available to provide a more explanatory error message. Signed-off-by: Luca Ceresoli --- Changes in v2: - also check for gpiod_get_value() errors (Tom

[PATCH v2 3/5] fpga manager: xilinx-spi: rework write_complete loop implementation

2020-08-27 Thread Luca Ceresoli
In preparation to add error checking for gpiod_get_value(), rework the loop to avoid the duplication of these lines: if (gpiod_get_value(conf->done)) return xilinx_spi_apply_cclk_cycles(conf); There is little advantage in this rework with current code. However error checki

[PATCH v2 4/5] fpga manager: xilinx-spi: add error checking after gpiod_get_value()

2020-08-27 Thread Luca Ceresoli
Current code calls gpiod_get_value() without error checking. Should the GPIO controller fail, execution would continue without any error message. Fix by checking for negative error values. Reported-by: Tom Rix Signed-off-by: Luca Ceresoli --- This patch is new in v2 --- drivers/fpga/xilinx-s

[PATCH v2 1/5] fpga manager: xilinx-spi: remove stray comment

2020-08-27 Thread Luca Ceresoli
Remove comment committed by mistake. Fixes: dd2784c01d93 ("fpga manager: xilinx-spi: check INIT_B pin during write_init") Signed-off-by: Luca Ceresoli --- Changes in v2: none. Note: Moritz replied "Applied to for-next", but it doesn't show up yet. --- drivers/fpga/xilinx-spi.c | 1 - 1 file

Peace Of The Lord Be With You And Your Family

2020-08-27 Thread Mrs. Zainab Madina Chantel Dauda
Peace Of The Lord Be With You And Your Family I’am Mrs. Zainab Madina Chantel Dauda, I have been suffering from ovarian cancer and the doctor says I have just few periods to leave.I have 17.5 Million US Dollars in a bank which i want to entrust into your hands to use in helping the orphanage h

[PATCH v2 2/5] fpga manager: xilinx-spi: remove final dot from dev_err() strings

2020-08-27 Thread Luca Ceresoli
Most dev_err messages in this file have no final dot. Remove the only two exceptions to make them consistent. Signed-off-by: Luca Ceresoli --- Changes in v2: - move before the "provide better diagnostics on programming failure" patch for clarity --- drivers/fpga/xilinx-spi.c | 4 ++-- 1 fi

[PATCH v5 13/20] gpio: uapi: document uAPI v1 as deprecated

2020-08-27 Thread Kent Gibson
Update uAPI documentation to deprecate v1 structs and ioctls. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 0eb1f53b47e0..4af67415d73e 100644 ---

[PATCH v5 14/20] tools: gpio: port lsgpio to v2 uAPI

2020-08-27 Thread Kent Gibson
Port the lsgpio tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 60 - 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index b08d7a5e779b..deda38244026 100644 -

Re: [PATCH v2 1/2] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-27 Thread ChiYuan Huang
Guenter Roeck 於 2020年8月27日 週四 下午9:46寫道: > > On 8/27/20 4:32 AM, 啟原黃 wrote: > > Chunfeng Yun 於 2020年8月27日 週四 下午4:05寫道: > >> > >> On Thu, 2020-08-27 at 12:50 +0800, cy_huang wrote: > >>> From: ChiYuan Huang > >>> > >>> Mediatek MT6360 is a multi-functional IC that includes USB Type-C. > >>> It wor

[PATCH v5 12/20] gpiolib: cdev: support setting debounce

2020-08-27 Thread Kent Gibson
Add support for setting debounce on a line via the GPIO uAPI. Where debounce is not supported by hardware, a software debounce is provided. The implementation of the software debouncer waits for the line to be stable for the debounce period before determining if a level change, and a corresponding

[PATCH v5 11/20] gpiolib: cdev: support GPIO_V2_LINE_SET_VALUES_IOCTL

2020-08-27 Thread Kent Gibson
Add support for the GPIO_V2_LINE_SET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 9c1e3f5f01af..3d2d9eefdfa0 1006

[PATCH v5 10/20] gpiolib: cdev: support GPIO_V2_LINE_SET_CONFIG_IOCTL

2020-08-27 Thread Kent Gibson
Add support for GPIO_V2_LINE_SET_CONFIG_IOCTL, the uAPI v2 line set config ioctl. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 92 + 1 file changed, 92 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index

RE: [PATCH 1/1] EDAC/ghes: Fix for NULL pointer dereference in ghes_edac_register()

2020-08-27 Thread Shiju Jose
Hello Boris, Thanks for reviewing. >-Original Message- >From: linux-edac-ow...@vger.kernel.org [mailto:linux-edac- >ow...@vger.kernel.org] On Behalf Of Borislav Petkov >Sent: 26 August 2020 09:52 >To: Shiju Jose >Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; >mche...@kern

[PATCH v5 06/20] gpiolib: add build option for CDEV v1 ABI

2020-08-27 Thread Kent Gibson
Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the v2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing v1 was n

[PATCH v5 04/20] gpio: uapi: define uAPI v2

2020-08-27 Thread Kent Gibson
Add a new version of the uAPI to address existing 32/64-bit alignment issues, add support for debounce and event sequence numbers, allow requested lines with different configurations, and provide some future proofing by adding padding reserved for future use. The alignment issue relates to the gpi

[PATCH v5 09/20] gpiolib: cdev: support edge detection for uAPI v2

2020-08-27 Thread Kent Gibson
Add support for edge detection to lines requested using GPIO_V2_GET_LINE_IOCTL. The edge_detector implementation is based on the v1 lineevent implementation. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 290 +++- drivers/gpio/gpiolib.c | 2

[PATCH v5 08/20] gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL

2020-08-27 Thread Kent Gibson
Add support for GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL. The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of v1 as v2 is richer. The two uAPI versions are mostly independent - other than where they both provide line i

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()

2020-08-27 Thread David Miller
From: Himadri Pandya Date: Thu, 27 Aug 2020 12:23:55 +0530 > The buffer size is 2 Bytes and we expect to receive the same amount of > data. But sometimes we receive less data and run into uninit-was-stored > issue upon read. Hence modify the error check on the return value to match > with the buf

[PATCHv1] power: supply: document current direction

2020-08-27 Thread Sebastian Reichel
Currently the sign for CURRENT_NOW and CURRENT_AVG is a bit of a mess. There are basically 3 different ways battery fuel gauges report the current: 1. uses negative values for discharging and positive values for charging 2. uses positive values for discharging and negative values for dischar

[PATCH v5 05/20] gpiolib: make cdev a build option

2020-08-27 Thread Kent Gibson
Make the gpiolib-cdev module a build option. This allows the CDEV interface to be removed from the kernel to reduce kernel size in applications where is it not required, and provides the parent for other other CDEV interface specific build options to follow. Suggested-by: Bartosz Golaszewski Sig

Re: [PATCH 26/35] kasan, arm64: Enable TBI EL1

2020-08-27 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 3:42 PM Vincenzo Frascino wrote: > > Hi Andrey, > > On 8/27/20 1:43 PM, Andrey Konovalov wrote: > > On Thu, Aug 27, 2020 at 1:15 PM Vincenzo Frascino > > wrote: > >> > >> > >> > >> On 8/27/20 12:13 PM, Catalin Marinas wrote: > >>> On Thu, Aug 27, 2020 at 12:05:55PM +0100,

Re: [PATCH v10 01/16] s390/vfio-ap: add version vfio_ap module

2020-08-27 Thread Tony Krowiak
On 8/27/20 6:32 AM, Cornelia Huck wrote: On Wed, 26 Aug 2020 10:49:47 -0400 Tony Krowiak wrote: On 8/25/20 6:04 AM, Cornelia Huck wrote: On Fri, 21 Aug 2020 15:56:01 -0400 Tony Krowiak wrote: Let's set a version for the vfio_ap module so that automated regression tests can determine w

[PATCH v5 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-27 Thread Kent Gibson
Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. The struct linereq implementation is based on the v1 struct linehandle implementation. Signed-off-by: Kent Gibson --- The linereq_ioctl() is a simple wrappe

[PATCH net v4] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid()

2020-08-27 Thread Murali Karicheri
This patch fixes a bunch of issues in cpsw_ndo_vlan_rx_kill_vid() - pm_runtime_get_sync() returns non zero value. This results in non zero value return to caller which will be interpreted as error. So overwrite ret with zero. - If VID matches with port VLAN VID, then set error code. - Cur

Re: [PATCH v2 4/4] crypto: sun8i-ss - use kfree_sensitive()

2020-08-27 Thread Corentin Labbe
On Thu, Aug 27, 2020 at 09:44:02AM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > .../crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 15 +++ > 1 file changed, 3 insertions(+), 12 deletions(-) > Acked-by: Core

Re: [PATCH v5 2/2] Add Intel LGM soc DMA support.

2020-08-27 Thread Reddy, MallikarjunaX
Hi Peter, Thank you very much for the review and detailed explanation, i will take the inputs and update in the next patch. My comments inline.. On 8/24/2020 7:24 PM, Peter Ujfalusi wrote: Hi, On 24/08/2020 5.30, Reddy, MallikarjunaX wrote: +static void dma_free_desc_resource(struct virt_dm

Re: [PATCH] arm64: Enable PCI write-combine resources under sysfs

2020-08-27 Thread Clint Sbisa
On Fri, Aug 21, 2020 at 03:51:54PM +, Clint Sbisa wrote: > Using write-combine is crucial for performance of PCI devices where > significant amounts of transactions go over PCI BARs. > > arm64 supports write-combine PCI mappings, so the appropriate define > has been added which will expose wri

Re: [PATCH v2 3/4] crypto: sun8i-ce - use kfree_sensitive()

2020-08-27 Thread Corentin Labbe
On Thu, Aug 27, 2020 at 09:44:01AM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > .../crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 15 +++ > 1 file changed, 3 insertions(+), 12 deletions(-) > Acked-by: Core

[PATCH v4] usb: mtu3: fix panic in mtu3_gadget_stop()

2020-08-27 Thread Macpaul Lin
This patch fixes a possible issue when mtu3_gadget_stop() already assigned NULL to mtu->gadget_driver during mtu_gadget_disconnect(). [] notifier_call_chain+0xa4/0x128 [] __atomic_notifier_call_chain+0x84/0x138 [] notify_die+0xb0/0x120 [] die+0x1f8/0x5d0 [] __do_kernel_fault+0x19c/0x280 [] do_bad_

Re: [PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Stefano Garzarella
On Thu, Aug 27, 2020 at 08:10:49AM -0600, Jens Axboe wrote: > On 8/27/20 8:10 AM, Stefano Garzarella wrote: > > On Thu, Aug 27, 2020 at 07:50:44AM -0600, Jens Axboe wrote: > >> On 8/27/20 7:40 AM, Stefano Garzarella wrote: > >>> v5: > >>> - explicitly assigned enum values [Kees] > >>> - replaced

Re: [PATCH] ASoC: meson: cards: deal dpcm flag change

2020-08-27 Thread Marek Szyprowski
Hi On 27.08.2020 15:32, Jerome Brunet wrote: > On Thu 27 Aug 2020 at 14:43, Marek Szyprowski > wrote: >> On 31.07.2020 14:06, Jerome Brunet wrote: >>> Commit b73287f0b074 ("ASoC: soc-pcm: dpcm: fix playback/capture checks") >>> changed the meaning of dpcm_playback/dpcm_capture and now requires t

Re: [PATCH v3] mm: memcg: Fix memcg reclaim soft lockup

2020-08-27 Thread Johannes Weiner
On Thu, Aug 27, 2020 at 10:32:29AM +0800, Xunlei Pang wrote: > We've met softlockup with "CONFIG_PREEMPT_NONE=y", when > the target memcg doesn't have any reclaimable memory. > > It can be easily reproduced as below: > watchdog: BUG: soft lockup - CPU#0 stuck for 111s![memcg_test:2204] > CPU: 0

Re: [RESEND PATCH v2] mfd: syscon: Use a unique name with regmap_config

2020-08-27 Thread Marc Zyngier
Hi all, On 2020-07-27 22:10, Suman Anna wrote: The DT node full name is currently being used in regmap_config which in turn is used to create the regmap debugfs directories. This name however is not guaranteed to be unique and the regmap debugfs registration can fail in the cases where the sysco

Re: [PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Jens Axboe
On 8/27/20 8:41 AM, Stefano Garzarella wrote: > On Thu, Aug 27, 2020 at 08:10:49AM -0600, Jens Axboe wrote: >> On 8/27/20 8:10 AM, Stefano Garzarella wrote: >>> On Thu, Aug 27, 2020 at 07:50:44AM -0600, Jens Axboe wrote: On 8/27/20 7:40 AM, Stefano Garzarella wrote: > v5: > - explicit

[PATCH] Revert "usb: dwc3: meson-g12a: fix shared reset control use"

2020-08-27 Thread Amjad Ouled-Ameur
This reverts commit 7a410953d1fb4dbe91ffcfdee9cbbf889d19b0d7. This commit breaks USB on meson-gxl-s905x-libretech-cc. Reverting the change solves the issue. In fact, according to the reset framework code, consumers must not use reset_control_(de)assert() on shared reset lines when reset_control_r

Re: [PATCH v9 0/5] Provide basic driver to control Arm R5 co-processor found on Xilinx ZynqMP

2020-08-27 Thread Michael Auchter
Hey Ben, On Wed, Aug 26, 2020 at 06:58:05PM -0700, Ben Levinsky wrote: > v10: > - add include types.h to xlnx-zynqmp.h for compilation I appreciate the quick turnaround on v10, but it looks like much of my feedback on v9 went unacknowledged. Most concerning is the fact that loading firmware on

[PATCH v2] null_blk: add support for max open/active zone limit for zoned devices

2020-08-27 Thread Niklas Cassel
Add support for user space to set a max open zone and a max active zone limit via configfs. By default, the default values are 0 == no limit. Call the block layer API functions used for exposing the configured limits to sysfs. Add accounting in null_blk_zoned so that these new limits are respecte

Aw: [PATCH v2] maiblox: mediatek: Fix handling of platform_get_irq() error

2020-08-27 Thread Frank Wunderlich
> Gesendet: Donnerstag, 27. August 2020 um 09:31 Uhr > Von: "Krzysztof Kozlowski" > Betreff: [PATCH v2] maiblox: mediatek: Fix handling of platform_get_irq() > error typo in subject i guess it should be "mailbox" regards Frank

Re: [v2] ASoC: AMD: Clean kernel log from deferred probe error messages

2020-08-27 Thread Mark Brown
On Thu, 27 Aug 2020 00:24:20 +0530, Akshu Agrawal wrote: > While the driver waits for DAIs to be probed and retries probing, > have the error messages at debug level instead of error. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: AM

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
Le jeu. 27 août 2020 à 16:25, Felipe Balbi a écrit : Hi, Paul Cercueil writes: @@ -172,7 +172,8 @@ static int ingenic_usb_phy_init(struct usb_phy *phy) return err; } - priv->soc_info->usb_phy_init(phy); + reg = priv->soc_info->usb_phy_init(phy);

Re: [PATCH v5 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-08-27 Thread Jens Axboe
On 8/27/20 7:40 AM, Stefano Garzarella wrote: > @@ -6414,6 +6425,19 @@ static int io_init_req(struct io_ring_ctx *ctx, struct > io_kiocb *req, > if (unlikely(sqe_flags & ~SQE_VALID_FLAGS)) > return -EINVAL; > > + if (unlikely(ctx->restricted)) { > + if (!test_

[PATCH 1/2] perf tools: Disable ordered_events for report raw dump

2020-08-27 Thread Jiri Olsa
Disable ordered_events for report raw dump, because for raw dump we want to see events as they are stored in the perf.data file, not sorted by time. Signed-off-by: Jiri Olsa --- tools/perf/builtin-report.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/builtin-report.c b/tools

Re: [PATCH][next] regulator: mt6360: fix spelling mistake: "regulaotr" -> "regulator"

2020-08-27 Thread Mark Brown
On Thu, 27 Aug 2020 19:04:19 +0530, Piyush Goyal wrote: > There are some spelling mistakes in two dev_err messages. Fix these. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: mt6360: fix spelling mistake: "regulaotr" -> "reg

Re: [PATCH] usb: atm: don't use snprintf() for sysfs attrs

2020-08-27 Thread Alex Dewar
On Thu, Aug 27, 2020 at 03:41:06PM +0200, Rasmus Villemoes wrote: > On 27/08/2020 15.18, Alex Dewar wrote: > > On Thu, Aug 27, 2020 at 09:15:37AM +0200, Greg Kroah-Hartman wrote: > >> On Thu, Aug 27, 2020 at 08:42:06AM +0200, Rasmus Villemoes wrote: > >>> On 25/08/2020 00.23, Alex Dewar wrote: > >>

Re: [PATCH v2 2/4] crypto: amlogic - use kfree_sensitive()

2020-08-27 Thread Corentin Labbe
On Thu, Aug 27, 2020 at 09:44:00AM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > drivers/crypto/amlogic/amlogic-gxl-cipher.c | 10 ++ > 1 file changed, 2 insertions(+), 8 deletions(-) > For the whole serie you di

Re: [PATCH] null_blk: add support for max open/active zone limit for zoned devices

2020-08-27 Thread Niklas Cassel
On Tue, Aug 25, 2020 at 11:03:58PM +, Damien Le Moal wrote: > On 2020/08/26 7:52, Damien Le Moal wrote: > > On 2020/08/25 21:22, Niklas Cassel wrote: (snip) > Arg. No, you can't. There is the trace call after the switch. So please ignore > this comment :) > > But you can still avoid repeatin

Re: [PATCH] usb: atm: don't use snprintf() for sysfs attrs

2020-08-27 Thread Rasmus Villemoes
On 27/08/2020 15.18, Alex Dewar wrote: > On Thu, Aug 27, 2020 at 09:15:37AM +0200, Greg Kroah-Hartman wrote: >> On Thu, Aug 27, 2020 at 08:42:06AM +0200, Rasmus Villemoes wrote: >>> On 25/08/2020 00.23, Alex Dewar wrote: kernel/cpu.c: don't use snprintf() for sysfs attrs As per the d

[PATCH v5 1/3] io_uring: use an enumeration for io_uring_register(2) opcodes

2020-08-27 Thread Stefano Garzarella
The enumeration allows us to keep track of the last io_uring_register(2) opcode available. Behaviour and opcodes names don't change. Reviewed-by: Kees Cook Signed-off-by: Stefano Garzarella --- v5: - explicitly assign enum values since this is UAPI [Kees] --- include/uapi/linux/io_uring.h | 2

[PATCH v5 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-08-27 Thread Stefano Garzarella
v5: - explicitly assigned enum values [Kees] - replaced kmalloc/copy_from_user with memdup_user [kernel test robot] - added Kees' R-b tags v4: https://lore.kernel.org/io-uring/20200813153254.93731-1-sgarz...@redhat.com/ v3: https://lore.kernel.org/io-uring/20200728160101.48554-1-sgarz...@redhat

[PATCH v5 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-08-27 Thread Stefano Garzarella
The new io_uring_register(2) IOURING_REGISTER_RESTRICTIONS opcode permanently installs a feature allowlist on an io_ring_ctx. The io_ring_ctx can then be passed to untrusted code with the knowledge that only operations present in the allowlist can be executed. The allowlist approach ensures that n

[RFC PATCH -rc] gcov: Protect from uninitialized number of functions provided by GCC

2020-08-27 Thread Leon Romanovsky
From: Leon Romanovsky The kernel compiled with GCC 10.2.1 and KASAN together with GCOV enabled produces the following splats while reloading modules. First splat [1] is generated due to the situation that gcov_info can be both user and kernel pointer, the memcpy() during kmemdup() causes to this

Re: [PATCH v2] null_blk: add support for max open/active zone limit for zoned devices

2020-08-27 Thread Randy Dunlap
On 8/27/20 6:50 AM, Niklas Cassel wrote: > Add support for user space to set a max open zone and a max active zone > limit via configfs. By default, the default values are 0 == no limit. Hi, How does a user find out about how to use/set these limits? > Call the block layer API functions used fo

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-27 Thread H.J. Lu
On Wed, Aug 26, 2020 at 12:57 PM Dave Hansen wrote: > > On 8/26/20 11:49 AM, Yu, Yu-cheng wrote: > >> I would expect things like Go and various JITs to call it directly. > >> > >> If we wanted to be fancy and add a potentially more widely useful > >> syscall, how about: > >> > >> mmap_special(void

[PATCH v2 2/7] phy: cadence-torrent: Use devm_platform_ioremap_resource() to get reg addresses

2020-08-27 Thread Swapnil Jakhade
Use devm_platform_ioremap_resource() to get register addresses instead of boilerplate code. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/driver

[PATCH v2 3/7] phy: cadence-torrent: Enable support for multiple subnodes

2020-08-27 Thread Swapnil Jakhade
Enable support for multiple subnodes in torrent PHY to include multi-link combinations. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadenc

[PATCH] c6x: Remove unused

2020-08-27 Thread Geert Uytterhoeven
C6X never used , which was presumably opied from ARM. Signed-off-by: Geert Uytterhoeven --- arch/c6x/include/asm/procinfo.h | 24 arch/c6x/kernel/asm-offsets.c | 1 - 2 files changed, 25 deletions(-) delete mode 100644 arch/c6x/include/asm/procinfo.h diff --git a/ar

[PATCH v2 1/7] phy: cadence-torrent: Use of_device_get_match_data() to get driver data

2020-08-27 Thread Swapnil Jakhade
Use of_device_get_match_data() to get driver data instead of boilerplate code. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/c

[PATCH v2 6/7] dt-bindings: phy: cadence-torrent: Add binding to specify SSC mode

2020-08-27 Thread Swapnil Jakhade
Add binding to specify Spread Spectrum Clocking mode used. Signed-off-by: Swapnil Jakhade Reviewed-by: Rob Herring --- .../bindings/phy/phy-cadence-torrent.yaml | 9 + include/dt-bindings/phy/phy-cadence-torrent.h | 13 + 2 files changed, 22 insertions(+) c

[PATCH] nds32: Fix bogus reference to

2020-08-27 Thread Geert Uytterhoeven
Andestech(nds32) never had . Signed-off-by: Geert Uytterhoeven --- arch/nds32/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index a066efbe53c0c098..3671129e205852b7 100644 --- a/arch/nds32/kernel/setup.c +

Re: [PATCH v3 1/3] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-27 Thread ChiYuan Huang
Heikki Krogerus 於 2020年8月27日 週四 下午10:00寫道: > > On Thu, Aug 27, 2020 at 07:18:55PM +0800, cy_huang wrote: > > From: ChiYuan Huang > > > > Mediatek MT6360 is a multi-functional IC that includes USB Type-C. > > It works with Type-C Port Controller Manager to provide USB PD > > and USB Type-C functio

Re: [05/16] atmel: convert tasklets to use new tasklet_setup() API

2020-08-27 Thread Kalle Valo
Allen Pais wrote: > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly > and remove .data field. > > Signed-off-by: R

Re: [PATCH v2 1/4] crypto: inside-secure - use kfree_sensitive()

2020-08-27 Thread Corentin Labbe
On Thu, Aug 27, 2020 at 09:43:59AM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > drivers/crypto/inside-secure/safexcel_hash.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/crypto/insid

[PATCH v6 5/5] perf/tools/pmu_events/powerpc: Add hv_24x7 core level metric events

2020-08-27 Thread Kajol Jain
This patch adds hv_24x7 core level events in nest_metric.json file and also add PerChip/PerCore field in metric events. Result: power9 platform: command:# ./perf stat --metric-only -M PowerBUS_Frequency -C 0 -I 1000 1.706011.92.0 2.00

[PATCH net v4] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid()

2020-08-27 Thread Murali Karicheri
This patch fixes a bunch of issues in cpsw_ndo_vlan_rx_kill_vid() - pm_runtime_get_sync() returns non zero value. This results in non zero value return to caller which will be interpreted as error. So overwrite ret with zero. - If VID matches with port VLAN VID, then set error code. - Cur

I AM WAITING FOR YOUR URGENT REPLY.....

2020-08-27 Thread Mrs.Ruff Lori Erica
-- Dear Friend. I am Mrs. Ruff Lori Erica. I am sending this brief letter to solicit your partnership to transfer a sum of 10.5Million Dollars into your reliable account as my business partner. However, it's my urgent need for foreign partner that made me to contact you for this transaction. Fur

Re: [PATCH v3] memory: omap-gpmc: Fix build error without CONFIG_OF

2020-08-27 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 08:53:16PM +0800, YueHaibing wrote: > If CONFIG_OF is n, gcc fails: > > drivers/memory/omap-gpmc.o: In function `gpmc_omap_onenand_set_timings': > omap-gpmc.c:(.text+0x2a88): undefined reference to `gpmc_read_settings_dt' > > Add gpmc_read_settings_dt() helper function, wh

Re: [PATCH] MAINTAINERS: Add security docs to SECURITY CONTACT

2020-08-27 Thread Greg Kroah-Hartman
On Thu, Aug 27, 2020 at 03:13:30PM +0200, Krzysztof Kozlowski wrote: > When changing the documents related to kernel security workflow, notify > the security mailing list as its concerned by this. > > Cc: Greg Kroah-Hartman > Signed-off-by: Krzysztof Kozlowski > --- > MAINTAINERS | 2 ++ > 1 fi

[PATCH 1/2] arm64: dts: renesas: r8a774e1: Add FDP1 device nodes

2020-08-27 Thread Lad Prabhakar
From: Marian-Cristian Rotariu Add FDP1 device nodes to R8A774E1 (RZ/G2H) SoC dtsi. Signed-off-by: Marian-Cristian Rotariu Signed-off-by: Lad Prabhakar --- arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/r

[PATCH 2/2] arm64: dts: renesas: r8a774e1: Add cpuidle support for CA5x cores

2020-08-27 Thread Lad Prabhakar
Enable cpuidle (core shutdown) support for RZ/G2H CA5x cores. Signed-off-by: Lad Prabhakar --- arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 30 +++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.

[PATCH v2] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-jz4770.c | 1 + 1 file changed, 1 insertion(+) dif

[PATCH 0/2] r8a774e1 add fdp1 and cpuidle support

2020-08-27 Thread Lad Prabhakar
Hi All, This series adds support for FDP1 and cpuidle support to R8A774E1 (RZ/G2H) SoC. Cheers, Prabhakar Lad Prabhakar (1): arm64: dts: renesas: r8a774e1: Add cpuidle support for CA5x cores Marian-Cristian Rotariu (1): arm64: dts: renesas: r8a774e1: Add FDP1 device nodes arch/arm64/boot/

[PATCH] video: fbdev: remove set but not used 'ulBestVCO'

2020-08-27 Thread Jason Yan
This addresses the following gcc warning with "make W=1": drivers/video/fbdev/kyro/STG4000InitDevice.c: In function ‘ProgramClock’: drivers/video/fbdev/kyro/STG4000InitDevice.c:123:6: warning: variable ‘ulBestVCO’ set but not used [-Wunused-but-set-variable] 123 | u32 ulBestVCO = 0, ulBestClk =

Re: [PATCH] Documentation: kunit: Add naming guidelines

2020-08-27 Thread Marco Elver
On Thu, Jul 02, 2020 at 12:14AM -0700, David Gow wrote: > As discussed in [1], KUnit tests have hitherto not had a particularly > consistent naming scheme. This adds documentation outlining how tests > and test suites should be named, including how those names should be > used in Kconfig entries an

[PATCH v6 2/5] perf/jevents: Add new structure to pass json fields.

2020-08-27 Thread Kajol Jain
This patch adds new structure called 'json_event' inside jevents.h file to improve the callback prototype inside jevent files. Initially, whenever user want to add new field, they need to update in all function callback which make it more and more complex with increased number of parmeters. With th

Re: [PATCH] Revert "usb: dwc3: meson-g12a: fix shared reset control use"

2020-08-27 Thread Neil Armstrong
On 27/08/2020 16:48, Amjad Ouled-Ameur wrote: > This reverts commit 7a410953d1fb4dbe91ffcfdee9cbbf889d19b0d7. > > This commit breaks USB on meson-gxl-s905x-libretech-cc. Reverting > the change solves the issue. > > In fact, according to the reset framework code, consumers must not use > reset_con

[PATCH v6 0/5] powerpc/perf: Add json file support for hv_24x7 core level events

2020-08-27 Thread Kajol Jain
Patchset enhance current runtime parameter support. It introduces new fields like "PerChip" and "PerCore" similar to the field "PerPkg" which is used to specify perpkg events. The "PerCore" and "PerChip" specifies whether its core or chip events. Based on which we can decide which runtime paramete

[PATCH v6 1/5] perf/jevents: Remove jevents.h file

2020-08-27 Thread Kajol Jain
This patch removes jevents.h file and add its data inside jevents.c as this file is only included there. Signed-off-by: Kajol Jain --- tools/perf/pmu-events/jevents.c | 9 - tools/perf/pmu-events/jevents.h | 23 --- 2 files changed, 8 insertions(+), 24 deletions(-)

Re: [PATCH][next] b43legacy: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH 21/35] arm64: mte: Add in-kernel tag fault handler

2020-08-27 Thread Catalin Marinas
On Thu, Aug 27, 2020 at 02:31:23PM +0200, Andrey Konovalov wrote: > On Thu, Aug 27, 2020 at 11:54 AM Catalin Marinas > wrote: > > On Fri, Aug 14, 2020 at 07:27:03PM +0200, Andrey Konovalov wrote: > > > +static int do_tag_recovery(unsigned long addr, unsigned int esr, > > > +

Re: [PATCH][next] atmel: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH][next] prism54: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH][next] orinoco: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH 2/2] docs: admin-guide: Not every security bug should be kept hidden

2020-08-27 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 02:11:23PM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 27, 2020 at 12:53:19PM +0200, Krzysztof Kozlowski wrote: > > Document describes the process of handling security bugs but does not > > mention any criteria what is a "security bug". Unlike > > submitting-patches.rst

Re: [PATCH][next] iwlegacy: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH][next] b43: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by:

Re: [PATCH][next] brcmfmac: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highl

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix static checker warning.

2020-08-27 Thread Felipe Balbi
周琰杰 (Zhou Yanjie) writes: > The commit 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new > Ingenic SoCs.") introduced the initialization function for different > chips, but left the relevant code involved in the resetting process > in the original function, resulting in uninitialized variable

RE: [PATCH] fs: Optimized fget to improve performance

2020-08-27 Thread David Laight
From: Matthew Wilcox > Sent: 27 August 2020 13:31 > On Thu, Aug 27, 2020 at 06:19:44PM +0800, Shaokun Zhang wrote: > > From: Yuqi Jin > > > > It is well known that the performance of atomic_add is better than that of > > atomic_cmpxchg. > > I don't think that's well-known at all. Especially sinc

Re: [PATCH][next] rt2x00: Use fallthrough pseudo-keyword

2020-08-27 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highl

Re: [drm/mgag200] 913ec479bb: vm-scalability.throughput 26.2% improvement

2020-08-27 Thread Mike Kravetz
On 8/27/20 2:16 AM, Thomas Zimmermann wrote: > Hi > > Am 26.08.20 um 10:58 schrieb kernel test robot: >> Greeting, >> >> FYI, we noticed a 26.2% improvement of vm-scalability.throughput due to >> commit: > > I guess this resolves the once-measured performance penalty of similar > magnitude. But

Re: [PATCH v4 0/2] staging: android: Remove BUG/BUG_ON from ion

2020-08-27 Thread Greg Kroah-Hartman
On Thu, Aug 27, 2020 at 08:16:54AM +0100, Christoph Hellwig wrote: > On Tue, Aug 25, 2020 at 08:52:29AM +0200, Greg Kroah-Hartman wrote: > > On Tue, Aug 25, 2020 at 07:47:29AM +0100, Christoph Hellwig wrote: > > > On Fri, Aug 21, 2020 at 06:27:04PM +0300, Tomer Samara wrote: > > > > Remove BUG/BUG_

Re: [PATCH 21/35] arm64: mte: Add in-kernel tag fault handler

2020-08-27 Thread Catalin Marinas
On Thu, Aug 27, 2020 at 03:34:42PM +0200, Andrey Konovalov wrote: > On Thu, Aug 27, 2020 at 3:10 PM Catalin Marinas > wrote: > > On Thu, Aug 27, 2020 at 02:31:23PM +0200, Andrey Konovalov wrote: > > > On Thu, Aug 27, 2020 at 11:54 AM Catalin Marinas > > > wrote: > > > > On Fri, Aug 14, 2020 at 0

Re: [PATCH 31/35] kasan, arm64: implement HW_TAGS runtime

2020-08-27 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 12:45 PM Catalin Marinas wrote: > > On Fri, Aug 14, 2020 at 07:27:13PM +0200, Andrey Konovalov wrote: > > diff --git a/mm/kasan/mte.c b/mm/kasan/mte.c > > new file mode 100644 > > index ..43b7d74161e5 > > --- /dev/null > > +++ b/mm/kasan/mte.c > > Since this is

Re: [PATCH 0/4] TopDown metrics support for Ice Lake (perf tool)

2020-08-27 Thread Liang, Kan
On 8/26/2020 11:54 AM, Jiri Olsa wrote: On Thu, Aug 20, 2020 at 09:45:28AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang The kernel patches have been merged into the tip's perf/core branch. The patch set is on top of commit 2cb5383b30d4 ("perf/x86/intel: Support per-thread RDPMC T

[PATCH v2] crypto: sun8i-ss - remove redundant memzero_explicit()

2020-08-27 Thread Denis Efremov
Remove redundant memzero_explicit() in sun8i_ss_cipher() before calling kfree_sensitive(). kfree_sensitive() will zero the memory with memzero_explicit(). Fixes: 453431a54934 ("mm, treewide: rename kzfree() to kfree_sensitive()") Signed-off-by: Denis Efremov --- Changes in v2: - fixes tag added

Re: [PATCH v4 1/5] exfat: integrates dir-entry getting and validation

2020-08-27 Thread Tetsuhiro Kohada
Thank you for your quick review. On 2020/08/27 12:19, Namjae Jeon wrote: + i = ES_INDEX_NAME; + while ((ep = exfat_get_validated_dentry(es, i++, TYPE_NAME))) { Please find the way to access name entries like ep_file, ep_stream without calling exfat_get_validated_dentry(). Hmm, it'

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