I am Dr. Philippe Don,

2020-07-21 Thread Philippe Don
Attention: Friend, How are you, I am Dr. Philippe Don Siaka, a medical doctor working with Gabriel Toure Hospital Bamako Mali, please don't be upset by the way i am sending this message to you without knowing you before, i only trying to render help that is needed from me by someone who is no

[PATCH] MAINTAINERS: add KCOV section

2020-07-21 Thread Andrey Konovalov
To link KCOV to the kasan-dev@ mailing list. Signed-off-by: Andrey Konovalov --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d53db30d1365..eec0b687eb08 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9305,6 +9305,15 @@ F: Document

Re: [PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name

2020-07-21 Thread Greg Kroah-Hartman
On Sat, Jul 18, 2020 at 10:58:53AM +0800, Macpaul Lin wrote: > On Sat, 2020-07-18 at 10:45 +0800, Macpaul Lin wrote: > > From: Eddie Hung > > > > Well, it's strange, I simply replaced the uploader's name to my > colleague, git send-email pop up this line automatically. > > Shouldn't I do that k

Re: [PATCH 4.19 094/133] USB: serial: iuu_phoenix: fix memory corruption

2020-07-21 Thread Pavel Machek
Hi! > commit e7b931bee739e8a77ae216e613d3b99342b6dec0 upstream. > > The driver would happily overwrite its write buffer with user data in > 256 byte increments due to a removed buffer-space sanity check. > +++ b/drivers/usb/serial/iuu_phoenix.c > @@ -697,14 +697,16 @@ static int iuu_uart_write(s

Re: [PATCH v2 1/8] usb: dwc2: gadget: Make use of GINTMSK2

2020-07-21 Thread Felipe Balbi
Minas Harutyunyan writes: > Hi Felipe, > > On 7/21/2020 1:43 PM, Felipe Balbi wrote: >> Minas Harutyunyan writes: >> >>> On 7/15/2020 1:32 PM, Lee Jones wrote: The value obtained from GINTSTS2 should be masked with the GINTMSK2 value. Looks like this has been broken since dwc2_g

Re: [PATCH v2] ipmi/watchdog: add missing newlines when printing parameters by sysfs

2020-07-21 Thread Corey Minyard
On Tue, Jul 21, 2020 at 02:35:09PM +0800, Xiongfeng Wang wrote: > When I cat some ipmi_watchdog parameters by sysfs, it displays as > follows. It's better to add a newline for easy reading. > > root@(none):/# cat /sys/module/ipmi_watchdog/parameters/action > resetroot@(none):/# cat /sys/module/ipm

Re: [PATCH 01/10] block: introduce blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 20:09, Maxim Levitsky wrote: > On Tue, 2020-07-21 at 11:05 +, Damien Le Moal wrote: >> On 2020/07/21 19:53, Maxim Levitsky wrote: >>> Kernel block layer has never supported logical block >>> sizes less that SECTOR_SIZE nor larger that PAGE_SIZE. >>> >>> Some drivers have runtime c

[PATCH v2 2/2] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-21 Thread Sibi Sankar
On SC7180 the MBA firmware stores the bootup text logs in a 4K segment at the beginning of the MBA region. Add support to extract the logs which will be useful to debug mba boot/authentication issues. Signed-off-by: Sibi Sankar --- V2: * Don't dump logs in mba_reclaim path [Bjorn] * Move has_m

Re: [PATCH v10 05/17] mtd: spi-nor: add support for DTR protocol

2020-07-21 Thread Pratyush Yadav
Hi Tudor, On 07/07/20 05:37PM, tudor.amba...@microchip.com wrote: > Hi, Pratyush, > > On 6/23/20 9:30 PM, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > Double Transfer Rate (DTR) is SPI protocol in which data is

[PATCH v2 0/2] Add modem debug features

2020-07-21 Thread Sibi Sankar
The series adds support for the following modem debug features: * Modem debug policy which enables coredumps/live debug on secure devices * MBA text logs extraction on SC7180 SoCs V2: * Use request_firmware_direct [Bjorn] * Use Bjorn's template to show if debug policy is present * Add size ch

Re: [PATCH 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings

2020-07-21 Thread Cheng-yi Chiang
On Fri, Jul 17, 2020 at 11:03 PM Doug Anderson wrote: > > Hi, > Thanks for the review! > On Fri, Jul 17, 2020 at 5:02 AM Cheng-Yi Chiang wrote: > > > > Add devicetree bindings documentation file for sc7180 sound card. > > > > Signed-off-by: Cheng-Yi Chiang > > --- > > .../bindings/sound/qcom,

[PATCH v2 1/2] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-21 Thread Sibi Sankar
Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed-off-by: Sibi Sankar --- v2: * Use request_firmware_direct [Bjorn] * Use Bjorn's template to show if debug policy is present * Add size check to preven

Re: [PATCH v4 05/10] powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR

2020-07-21 Thread Michael Ellerman
Ravi Bangoria writes: > On 7/17/20 11:14 AM, Jordan Niethe wrote: >> On Fri, Jul 17, 2020 at 2:10 PM Ravi Bangoria >> wrote: >>> >>> Add new device-tree feature for 2nd DAWR. If this feature is present, >>> 2nd DAWR is supported, otherwise not. >>> >>> Signed-off-by: Ravi Bangoria >>> --- >>>

Re: [PATCH 4.19 041/133] Revert "usb/ohci-platform: Fix a warning when hibernating"

2020-07-21 Thread Pavel Machek
Hi! > > > >After some investigations, we concluded the following: > > > > - the issue does not exist in vanilla v5.8-rc4+ > > > > - [bisecting shows that] the panic on v4.14.186 is caused by the lack > > > > of v5.6-rc1 commit 987351e1ea7772 ("phy: core: Add consumer device > > > > link suppor

Re: [PATCH 10/10] block: scsi: sr: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:55, Maxim Levitsky wrote: > Plus some tiny refactoring. > > Signed-off-by: Maxim Levitsky > --- > drivers/scsi/sr.c | 31 +-- > 1 file changed, 13 insertions(+), 18 deletions(-) > > diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c > index 0c4aa4665

Re: [PATCH v2 4/4] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-21 Thread Enric Balletbo i Serra
Hi Guenter, Thank you for work on this. Cc'ing Gwendal as he has a deep knowledge of the EC and their errors. On 20/7/20 22:22, Guenter Roeck wrote: > The EC reports a variety of error codes. Most of those, with the exception > of EC_RES_INVALID_VERSION, are converted to -EPROTO. As result, the a

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-21 Thread Christoph Hellwig
On Tue, Jul 21, 2020 at 01:15:23PM +0200, Nicolas Saenz Julienne wrote: > I'm at loss at what could be failing here. Your device should be able > to address the whole 8GB memory space, which AFAIK is the max available > on that smartphone family. But maybe the device-tree is lying, who > knows...

Re: [PATCH 2/2] nds32: use get_kernel_nofault in dump_mem

2020-07-21 Thread Christoph Hellwig
Can you pich the patches up in the nds32 tree for Linus? There are not short-term dependencies on them.

Re: [PATCH v2] virtio_ring: use alloc_pages_node for NUMA-aware allocation

2020-07-21 Thread Shile Zhang
On 2020/7/21 16:18, Michael S. Tsirkin wrote: On Tue, Jul 21, 2020 at 03:00:13PM +0800, Shile Zhang wrote: Use alloc_pages_node() allocate memory for vring queue with proper NUMA affinity. Reported-by: kernel test robot Suggested-by: Jiang Liu Signed-off-by: Shile Zhang Do you observe a

Re: hibernation reverts in 4.19.134: better alternative?

2020-07-21 Thread Pavel Machek
Hi! > On Mon, Jul 20, 2020 at 12:15:22PM +0200, Pavel Machek wrote: > > This is queued for 4.19.134-stable, reverting 3 patches. But it seems > > better alternative is available... > > > > commit f3e697b7b6f5e2c570226f8f8692fb7db57215ec > > Author: Sasha Levin > > Date: Fri Jul 17 12:58:32 202

Re: [PATCH] Revert "kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled"

2020-07-21 Thread Miroslav Benes
On Sun, 19 Jul 2020, Joe Lawrence wrote: > On 7/17/20 2:29 PM, Josh Poimboeuf wrote: > > Use of the new -flive-patching flag was introduced with the following > > commit: > > > >43bd3a95c98e ("kbuild: use -flive-patching when CONFIG_LIVEPATCH is > >enabled") > > > > This flag has several

Re: [PATCH v4 2/6] media: v4l2: Add extended buffer operations

2020-07-21 Thread Stanimir Varbanov
On 7/17/20 2:54 PM, Helen Koike wrote: > From: Hans Verkuil > > Those extended buffer ops have several purpose: > 1/ Fix y2038 issues by converting the timestamp into an u64 counting >the number of ns elapsed since 1970 > 2/ Unify single/multiplanar handling > 3/ Add a new start offset fie

Re: [PATCH v2] iommu/mediatek: check 4GB mode by reading infracfg

2020-07-21 Thread Yong Wu
On Tue, 2020-07-21 at 11:40 +0200, Matthias Brugger wrote: > > On 21/07/2020 04:16, Miles Chen wrote: > > In previous discussion [1] and [2], we found that it is risky to > > use max_pfn or totalram_pages to tell if 4GB mode is enabled. > > > > Check 4GB mode by reading infracfg register, remove

Re: [PATCH 09/10] block: scsi: sd: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:55, Maxim Levitsky wrote: > Use blk_is_valid_logical_block_size instead of hardcoded list s/hardcoded list/hardcoded checks./ > > Signed-off-by: Maxim Levitsky > --- > drivers/scsi/sd.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/scsi/

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-07-21 Thread Michal Hocko
On Tue 21-07-20 07:10:14, Qian Cai wrote: > > > > On Jul 21, 2020, at 2:33 AM, Michal Hocko wrote: > > > > on a large ppc machine. The very likely cause is a suboptimal > > configuration when systed-udev spawns way too many workders to bring the > > system up. > > This is strange. The problem

RE: [PATCH] ath10k: Add interrupt summary based CE processing

2020-07-21 Thread Rakesh Pillai
> -Original Message- > From: Peter Oh > Sent: Tuesday, July 21, 2020 7:03 AM > To: Kalle Valo > Cc: Brian Norris ; Doug Anderson > ; linux-wireless wirel...@vger.kernel.org>; Rakesh Pillai ; ath10k > ; LKML > Subject: Re: [PATCH] ath10k: Add interrupt summary based CE processing > >

[PATCH] iio: frequency: ad9523: convert rest of driver to device managed functions

2020-07-21 Thread Alexandru Ardelean
The driver pretty much uses device managed functions. The only left-over is the iio_device_register() function, which also requires an action-or-reset hook to disable the regulator on the remove and error path. Signed-off-by: Alexandru Ardelean --- drivers/iio/frequency/ad9523.c | 60 +++

Re: [PATCH 08/10] block: nvme: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:55, Maxim Levitsky wrote: > This replaces manual checking in the driver > > Signed-off-by: Maxim Levitsky > --- > drivers/nvme/host/core.c | 17 - > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/cor

[PATCH v2] brcmfmac: Set timeout value when configuring power save

2020-07-21 Thread Nicolas Saenz Julienne
Set the timeout value as per cfg80211's set_power_mgmt() request. If the requested value value is left undefined we set it to 2 seconds, the maximum supported value. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Use min_t() .../net/wireless/broadcom/brcm80211/brcmfmac/cfg80211

[PATCH] csky: Fix build with upstream gcc

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel Building a kernel for the CSKY architecture with CONFIG_FRAME_POINTER set requires a gcc supporting the non-upstream '-mbacktrace' option. Check for the '-mbacktrace' option before enabling CONFIG_FRAMEPOINTER and fix building CSKY with an upstream gcc compiler. Signed-off-by:

PROBLEM: cgroup cost too much memory when transfer small files to tmpfs

2020-07-21 Thread jingrui
Cc: Johannes Weiner ; Michal Hocko ; Vladimir Davydov Thanks. --- PROBLEM: cgroup cost too much memory when transfer small files to tmpfs. keywords: cgroup PERCPU/memory cost too much. description: We send small files from node-A to node-B tmpfs /tmp directory using sftp. On node-B the syst

Re: [PATCH v3 0/6] powerpc: queued spinlocks and rwlocks

2020-07-21 Thread Nicholas Piggin
Excerpts from Peter Zijlstra's message of July 9, 2020 6:31 pm: > On Wed, Jul 08, 2020 at 07:54:34PM -0400, Waiman Long wrote: >> On 7/8/20 4:41 AM, Peter Zijlstra wrote: >> > On Tue, Jul 07, 2020 at 03:57:06PM +1000, Nicholas Piggin wrote: >> > > Yes, powerpc could certainly get more performance o

Re: WARNING in pvr2_i2c_core_done

2020-07-21 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in kernfs_find_ns pvrusb2: Invalid write control endpoint pvrusb2: Invalid write control endpoint pvrusb2: Invalid write control endpoint pvrusb2: Invalid write control endpoint

Re: [PATCH 1/2] nds32: remove dump_instr

2020-07-21 Thread Nick Hu
On Mon, Jul 20, 2020 at 01:44:47PM +0200, Christoph Hellwig wrote: > dump_inst has a return before actually doing anything, so just drop the > whole thing. > > Signed-off-by: Christoph Hellwig > --- > arch/nds32/kernel/traps.c | 35 --- > 1 file changed, 35 deleti

Re: [PATCH 2/2] nds32: use get_kernel_nofault in dump_mem

2020-07-21 Thread Nick Hu
On Mon, Jul 20, 2020 at 01:44:48PM +0200, Christoph Hellwig wrote: > Use the proper get_kernel_nofault helper to access an unsafe kernel > pointer without faulting instead of playing with set_fs and get_user. > > Signed-off-by: Christoph Hellwig > --- > arch/nds32/kernel/traps.c | 15 +++

[PATCH v6 1/4] power: supply: core: add quick charge type property

2020-07-21 Thread Qiwu Huang
From: Qiwu Huang Reports the kind of quick charge type based on different adapter power. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 21 + drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h| 10 ++

[PATCH v6 2/4] power: supply: core: add wireless charger adapter type property

2020-07-21 Thread Qiwu Huang
From: Qiwu Huang Reports what type of wireless adapter connection is currently active for the supply. for example it can show if ADAPTER_PD capable source is attached. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 28 + drivers/power/supply/pow

[PATCH v6 4/4] power: supply: core: property to control reverse charge

2020-07-21 Thread Qiwu Huang
From: Qiwu Huang Interface to control wireless reverse charge. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 14 ++ drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h| 1 + 3 files changed, 16 insertions(+

[PATCH v6 3/4] power: supply: core: add wireless signal strength property

2020-07-21 Thread Qiwu Huang
From: Qiwu Huang reports wireless signal strength. The value show degree of coupling between tx and rx. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 22 + drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h

[PATCH v5 0/4] add some power supply properties about wireless/wired charging

2020-07-21 Thread Qiwu Huang
From: Qiwu Huang This patchset aims to provide power supply properties about wireless/wired charging. "quick_charge_type" reports different types of quick charge based on the charging power; "tx_adapter" shows" the type of wireless charging adapter; "signal_strength" shows the coupling level be

Re: [PATCH 07/10] block: mspro_blk: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:55, Maxim Levitsky wrote: > Signed-off-by: Maxim Levitsky > --- > drivers/memstick/core/mspro_block.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/memstick/core/mspro_block.c > b/drivers/memstick/core/mspro_block.c > index cd6b8d4f23350..86c9eb0aef512

Re: [PATCH] Revert "kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled"

2020-07-21 Thread Miroslav Benes
On Fri, 17 Jul 2020, Josh Poimboeuf wrote: > Use of the new -flive-patching flag was introduced with the following > commit: > > 43bd3a95c98e ("kbuild: use -flive-patching when CONFIG_LIVEPATCH is > enabled") > > This flag has several drawbacks: > > - It disables some optimizations, so it ca

Re: [PATCH 06/10] block: ms_block: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:54, Maxim Levitsky wrote: > Signed-off-by: Maxim Levitsky > --- > drivers/memstick/core/ms_block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/memstick/core/ms_block.c > b/drivers/memstick/core/ms_block.c > index d9ee8e3dc72da..e4df03e10fb46

Re: [PATCH 05/10] block: null: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:54, Maxim Levitsky wrote: > This slightly changes the behavier of the driver, s/behavier/behavior > when given invalid block size (non power of two, or below 512 bytes), > but shoudn't matter. > > Signed-off-by: Maxim Levitsky > --- > drivers/block/null_blk_main.c | 6 +++--- >

Re: [PATCH v4 0/6] media: v4l2: Add extended fmt and buffer ioctls

2020-07-21 Thread Boris Brezillon
Hello Helen, Just a few drive-by comments. On Fri, 17 Jul 2020 08:54:29 -0300 Helen Koike wrote: > Hi, > > I'm sorry for taking too long to submit v4. > > It is not perfect, not all v4l2-compliance tests passes, but I'd like a > review, > specially on the API and potential problems, so I can

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-21 Thread Nicolas Saenz Julienne
On Tue, 2020-07-21 at 14:24 +0530, Amit Pundir wrote: > On Tue, 21 Jul 2020 at 14:09, Nicolas Saenz Julienne > wrote: > > Hi Amit, > > > Hi Nicolas, > > > > > > I see a boot regression with this commit d9765e41d8e9 "dma-pool: > > > Do not allocate pool memory from CMA" on my Xiaomi Poco F1 > > >

Re: kernel BUG at include/linux/swapops.h:LINE!

2020-07-21 Thread Kirill A. Shutemov
On Mon, Jul 20, 2020 at 04:51:44PM -0700, Andrew Morton wrote: > On Sun, 19 Jul 2020 14:10:19 -0700 syzbot > wrote: > > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit:4c43049f Add linux-next specific files for 20200716 > > git tree: linux-next > > cons

[patch V4 07/15] x86/entry: Consolidate 32/64 bit syscall entry

2020-07-21 Thread Thomas Gleixner
From: Thomas Gleixner 64bit and 32bit entry code have the same open coded syscall entry handling after the bitwidth specific bits. Move it to a helper function and share the code. Signed-off-by: Thomas Gleixner --- arch/x86/entry/common.c | 93 +--

[patch V4 11/15] x86/entry: Use generic syscall exit functionality

2020-07-21 Thread Thomas Gleixner
Replace the x86 variant with the generic version. Provide the relevant architecture specific helper functions and defines. Use a temporary define for idtentry_exit_user which will be cleaned up seperately. Signed-off-by: Thomas Gleixner --- V4: Drop a pointless define Adjust to moved TIF_USE

[PATCH] i2c: fix WARNING in pvr2_i2c_core_done

2020-07-21 Thread B K Karthik
#syz test: https://github.com/google/kasan.git usb-fuzzer fix WARNING in pvr2_i2c_core_done by unregistering device in the release handler instead of the disconnect handler. Reported-by: syzbot+e74a998ca8f1df9cc...@syzkaller.appspotmail.com Signed-off-by: B K Karthik --- drivers/i2c/i2c-core-ba

[patch V4 04/15] entry: Provide generic interrupt entry/exit code

2020-07-21 Thread Thomas Gleixner
From: Thomas Gleixner Like the syscall entry/exit code interrupt/exception entry after the real low level ASM bits should not be different accross architectures. Provide a generic version based on the x86 code. irqentry_enter() is called after the low level entry code and irqentry_exit() must b

[patch V4 05/15] entry: Provide infrastructure for work before exiting to guest mode

2020-07-21 Thread Thomas Gleixner
From: Thomas Gleixner Entering a guest is similar to exiting to user space. Pending work like handling signals, rescheduling, task work etc. needs to be handled before that. Provide generic infrastructure to avoid duplication of the same handling code all over the place. The exit to guest mode

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-07-21 Thread Qian Cai
> On Jul 21, 2020, at 2:33 AM, Michal Hocko wrote: > > on a large ppc machine. The very likely cause is a suboptimal > configuration when systed-udev spawns way too many workders to bring the > system up. This is strange. The problem description is missing quite a few important details. For

[patch V4 03/15] entry: Provide generic syscall exit function

2020-07-21 Thread Thomas Gleixner
Like syscall entry all architectures have similar and pointlessly different code to handle pending work before returning from a syscall to user space. 1) One-time syscall exit work: - rseq syscall exit - audit - syscall tracing - tracehook (single stepping) 2) Preparat

[patch V4 10/15] x86/entry: Use generic syscall entry function

2020-07-21 Thread Thomas Gleixner
Replace the syscall entry work handling with the generic version. Provide the necessary helper inlines to handle the real architecture specific parts, e.g. ptrace. Use a temporary define for idtentry_enter_user which will be cleaned up seperately. Signed-off-by: Thomas Gleixner --- V4: Drop the

Re: [PATCH 01/10] block: introduce blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
On Tue, 2020-07-21 at 11:05 +, Damien Le Moal wrote: > On 2020/07/21 19:53, Maxim Levitsky wrote: > > Kernel block layer has never supported logical block > > sizes less that SECTOR_SIZE nor larger that PAGE_SIZE. > > > > Some drivers have runtime configurable block size, > > so it makes sense

Re: [PATCH v3 0/6] powerpc: queued spinlocks and rwlocks

2020-07-21 Thread Nicholas Piggin
Excerpts from Peter Zijlstra's message of July 8, 2020 6:41 pm: > On Tue, Jul 07, 2020 at 03:57:06PM +1000, Nicholas Piggin wrote: >> Yes, powerpc could certainly get more performance out of the slow >> paths, and then there are a few parameters to tune. > Sorry for the delay, got bogged down and

[patch V4 13/15] x86/entry: Use generic interrupt entry/exit code

2020-07-21 Thread Thomas Gleixner
Replace the x86 code with the generic variant. Use temporary defines for idtentry_* which will be cleaned up in the next step. Signed-off-by: Thomas Gleixner --- arch/x86/entry/common.c | 167 arch/x86/include/asm/idtentry.h | 10 -- 2 files ch

[patch V4 14/15] x86/entry: Cleanup idtentry_enter/exit

2020-07-21 Thread Thomas Gleixner
Remove the temporary defines and fixup all references. Signed-off-by: Thomas Gleixner --- arch/x86/entry/common.c |6 +++--- arch/x86/include/asm/idtentry.h | 33 ++--- arch/x86/kernel/kvm.c |6 +++--- arch/x86/kernel/traps.c |6

Re: [PATCH 04/10] block: nbd: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:54, Maxim Levitsky wrote: > This allows to remove nbd's own check for valid block size > > Signed-off-by: Maxim Levitsky > --- > drivers/block/nbd.c | 12 ++-- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c

[patch V4 12/15] x86/entry: Cleanup idtentry_entry/exit_user

2020-07-21 Thread Thomas Gleixner
Cleanup the temporary defines and use irqentry_ instead of idtentry_. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/idtentry.h |4 arch/x86/kernel/cpu/mce/core.c |4 ++-- arch/x86/kernel/traps.c | 18 +- 3 files changed, 11 insertions(+), 15 dele

[patch V4 15/15] x86/kvm: Use generic exit to guest work function

2020-07-21 Thread Thomas Gleixner
Use the generic infrastructure to check for and handle pending work before entering into guest mode. This now handles TIF_NOTIFY_RESUME as well which was ignored so far. Handling it is important as this covers task work and task work will be used to offload the heavy lifting of POSIX CPU timers to

Re: [PATCH 03/10] block: loop: use blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:54, Maxim Levitsky wrote: > This allows to remove loop's own check for supported block size > > Signed-off-by: Maxim Levitsky > --- > drivers/block/loop.c | 23 +-- > 1 file changed, 5 insertions(+), 18 deletions(-) > > diff --git a/drivers/block/loop.c b/dr

[patch V4 02/15] entry: Provide generic syscall entry functionality

2020-07-21 Thread Thomas Gleixner
On syscall entry certain work needs to be done: - Establish state (lockdep, context tracking, tracing) - Conditional work (ptrace, seccomp, audit...) This code is needlessly duplicated and different in all architectures. Provide a generic version based on the x86 implementation which has

[patch V4 06/15] x86/entry: Consolidate check_user_regs()

2020-07-21 Thread Thomas Gleixner
From: Thomas Gleixner The user register sanity check is sprinkled all over the place. Move it into enter_from_user_mode(). Signed-off-by: Thomas Gleixner Reviewed-by: Kees Cook --- arch/x86/entry/common.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) --- a

[patch V4 08/15] x86/entry: Move user return notifier out of loop

2020-07-21 Thread Thomas Gleixner
Guests and user space share certain MSRs. KVM sets these MSRs to guest values once and does not set them back to user space values on every VM exit to spare the costly MSR operations. User return notifiers ensure that these MSRs are set back to the correct values before returning to user space in

[patch V4 09/15] x86/ptrace: Provide pt_regs helper for entry/exit

2020-07-21 Thread Thomas Gleixner
From: Thomas Gleixner As a preparatory step for moving the syscall and interrupt entry/exit handling into generic code, provide a pt_regs helper which retrieves the interrupt state from pt_regs. This is required to check whether interrupts are reenabled by return from interrupt/exception. Signed

[patch V4 01/15] seccomp: Provide stub for __secure_computing()

2020-07-21 Thread Thomas Gleixner
To avoid #ifdeffery in the upcoming generic syscall entry work code provide a stub for __secure_computing() as this is preferred over secure_computing() because the TIF flag is already evaluated. Signed-off-by: Thomas Gleixner --- V4: New patch --- include/linux/seccomp.h |1 + 1 file change

[patch V4 00/15] entry, x86, kvm: Generic entry/exit functionality for host and guest

2020-07-21 Thread Thomas Gleixner
This is the 4rd version of generic entry/exit functionality for host and guest. The 3rd version is available here: https://lore.kernel.org/r/20200716182208.180916...@linutronix.de Changes vs. V3: - Drop the architecture wrappers for seccomp and audit (Kees) - Move the user return notifi

[PATCH net 4/4] net: hns3: fix return value error when query MAC link status fail

2020-07-21 Thread Huazhong Tan
From: Jian Shen Currently, PF queries the MAC link status per second by calling function hclge_get_mac_link_status(). It return the error code when failed to send cmdq command to firmware. It's incorrect, because this return value is used as the MAC link status, which 0 means link down, and none-

[PATCH net 0/4] net: hns3: fixes for -net

2020-07-21 Thread Huazhong Tan
There are some bugfixes for the HNS3 ethernet driver. Jian Shen (1): net: hns3: fix return value error when query MAC link status fail Yunsheng Lin (3): net: hns3: fix for not unmapping TX buffer correctly net: hns3: fix for not calculating TX BD send size correctly net: hns3: fix error h

Re: [PATCH 02/10] block: virtio-blk: check logical block size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:54, Maxim Levitsky wrote: > Linux kernel only supports logical block sizes which are power of two, > at least 512 bytes and no more that PAGE_SIZE. > > Check this instead of crashing later on. > > Note that there is no need to check physical block size since it is > only a hint,

[PATCH net 3/4] net: hns3: fix error handling for desc filling

2020-07-21 Thread Huazhong Tan
From: Yunsheng Lin The content of the TX desc is automatically cleared by the HW when the HW has sent out the packet to the wire. When desc filling fails in hns3_nic_net_xmit(), it will call hns3_clear_desc() to do the error handling, which miss zeroing of the TX desc and the checking if a unmapp

Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+

2020-07-21 Thread Christian Hewitt
> On 21 Jul 2020, at 1:14 pm, Jerome Brunet wrote: > > On Sun 19 Jul 2020 at 16:10, Christian Hewitt > wrote: > >> HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of higher >> clock speeds than the original ODROID-N2. Hardkernel supports the big cpu >> cluster at 2.4GHz and t

[PATCH net 2/4] net: hns3: fix for not calculating TX BD send size correctly

2020-07-21 Thread Huazhong Tan
From: Yunsheng Lin With GRO and fraglist support, the SKB can be aggregated to a total size of 65535, and when that SKB is forwarded through a bridge, the size of the SKB may be pushed to exceed the size of 65535 when br_dev_queue_push_xmit() is called. The max send size of BD supported by the H

[PATCH net 1/4] net: hns3: fix for not unmapping TX buffer correctly

2020-07-21 Thread Huazhong Tan
From: Yunsheng Lin When a big TX buffer is sent using multi BD, the driver maps the whole TX buffer, and unmaps it using info in desc_cb corresponding to each BD, but only the info in the desc_cb of first BD is correct, other info in desc_cb is wrong, which causes TX unmapping problem when SMMU i

Re: [PATCH 5/8] kcsan: Test support for compound instrumentation

2020-07-21 Thread Marco Elver
On Tue, Jul 21, 2020 at 12:30PM +0200, Marco Elver wrote: [...] > diff --git a/lib/Kconfig.kcsan b/lib/Kconfig.kcsan > index 3d282d51849b..cde5b62b0a01 100644 > --- a/lib/Kconfig.kcsan > +++ b/lib/Kconfig.kcsan > @@ -40,6 +40,11 @@ menuconfig KCSAN > > if KCSAN > > +# Compiler capabilities tha

Re: [PATCH 01/10] block: introduce blk_is_valid_logical_block_size

2020-07-21 Thread Damien Le Moal
On 2020/07/21 19:53, Maxim Levitsky wrote: > Kernel block layer has never supported logical block > sizes less that SECTOR_SIZE nor larger that PAGE_SIZE. > > Some drivers have runtime configurable block size, > so it makes sense to have common helper for that. ...common helper to check the valid

linux-next: Tree for Jul 21

2020-07-21 Thread Stephen Rothwell
Hi all, Changes since 20200720: My fixes tree contains: dbf24e30ce2e ("device_cgroup: Fix RCU list debugging warning") The net-next tree gained a conflict against the net tree. The bpf-next tree gained conflicts against the net-next tree. The security tree still had its build failure for wh

Re: [v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Markus Elfring
> This is fine as is in all three aspects. I have tried again to point specific data processing consequences out for operation modes of scripts in the semantic patch language. Regards, Markus

Re: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-07-21 Thread David Howells
> https://github.com/ereshetova/linux-stable/commits/refcount_t_fs Looking at "fs, cachefiles: convert cachefiles_object.usage from atomic_t to refcount_t", I see: - u = atomic_inc_return(&object->usage); + refcount_inc(&object->usage); trace_cachefiles_ref(object, _object->co

Re: [PATCH v4 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-21 Thread Daniel Lezcano
On 17/07/2020 09:50, Anup Patel wrote: > We add a separate CLINT timer driver for Linux RISC-V M-mode (i.e. > RISC-V NoMMU kernel). > > The CLINT MMIO device provides three things: > 1. 64bit free running counter register > 2. 64bit per-CPU time compare registers > 3. 32bit per-CPU inter-processor

Re: [PATCH 3/6] mm: introduce secretmemfd system call to create "secret" memory areas

2020-07-21 Thread Michael Kerrisk (man-pages)
Hi Mike, On Mon, 20 Jul 2020 at 11:26, Mike Rapoport wrote: > > From: Mike Rapoport > > Introduce "secretmemfd" system call with the ability to create memory areas > visible only in the context of the owning process and not mapped not only > to other processes but in the kernel page tables as we

[PATCH] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch and port

2020-07-21 Thread hongbo . wang
From: "hongbo.wang" the following command will be supported: Add VLAN: ip link add link swp1 name swp1.100 type vlan protocol 802.1ad id 100 Delete VLAN: ip link del link swp1 name swp1.100 when adding vlan, this patch only set protocol for user port, cpu port don't care it, so set param

Re: [PATCH] i2c: i2c-qcom-geni: Fix DMA transfer race

2020-07-21 Thread Mukesh, Savaliya
On 7/21/2020 12:37 PM, Stephen Boyd wrote: Quoting Stephen Boyd (2020-07-20 22:59:14) I worry that we also need a dmb() here to make sure the dma buffer is properly mapped before this write to the device is attempted. But it may only matter to be before the I2C_READ. I'm suggesting this patc

高校教員が語る、コロナの高校生就職への影響 〜オンライン座談会〜

2020-07-21 Thread ジョブドラフトセミナー運営室
ジョブドラフトセミナー運営室より 高校新卒採用の最前線セミナーのご案内です。    〜オンライン座談会〜  就職担当の先生へ直撃質問!!    コロナで変わった、高校現場の“リアル” ▼ 詳細 ▼ https://hr-saiyo.work/200727/ コロナウイルスにより、高校生の就職活動の現場では 企業・生徒・教員それぞれにかつて無いほどの混乱が起きています。 そこでこの度、お互いの認識のズレを解消すべく 現役の就

linux-next: build failure after merge of the akpm-current tree

2020-07-21 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (sparc64 defconfig) failed like this: mm/hugetlb.c: In function 'free_gigantic_page': mm/hugetlb.c:1233:18: error: 'hugetlb_cma' undeclared (first use in this function); did you mean 'hugetlb_lock'? cma_release(hugetlb_c

[PATCH 10/10] block: scsi: sr: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
Plus some tiny refactoring. Signed-off-by: Maxim Levitsky --- drivers/scsi/sr.c | 31 +-- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 0c4aa4665a2f9..0e96338029310 100644 --- a/drivers/scsi/sr.c +++ b/driv

Re: [PATCH] gpio: fixed some coding style issues in gpiolib files

2020-07-21 Thread Andy Shevchenko
Thanks, my comments below. On Tue, Jul 21, 2020 at 1:41 PM Abanoub Sameh wrote: Commit message is missed on why you did all these changes. ... > if (pin <= 255) { > char ev_name[5]; > + > sprintf(ev_name, "_%c%02hhX", > agpio->tr

[PATCH 09/10] block: scsi: sd: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
Use blk_is_valid_logical_block_size instead of hardcoded list Signed-off-by: Maxim Levitsky --- drivers/scsi/sd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index d90fefffe31b7..f012e7397b058 100644 --- a/drivers/scsi/sd.c +++ b/

[PATCH 07/10] block: mspro_blk: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky --- drivers/memstick/core/mspro_block.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index cd6b8d4f23350..86c9eb0aef512 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/driv

[PATCH 06/10] block: ms_block: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky --- drivers/memstick/core/ms_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c index d9ee8e3dc72da..e4df03e10fb46 100644 --- a/drivers/memstick/core/ms_block.c +++ b/drivers

[PATCH 08/10] block: nvme: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
This replaces manual checking in the driver Signed-off-by: Maxim Levitsky --- drivers/nvme/host/core.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index add040168e67e..8014b3046992a 100644 --- a/drivers

[PATCH 04/10] block: nbd: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
This allows to remove nbd's own check for valid block size Signed-off-by: Maxim Levitsky --- drivers/block/nbd.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index ce7e9f223b20b..2cd9c4e824f8b 100644 --- a/drivers/blo

[PATCH 05/10] block: null: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
This slightly changes the behavier of the driver, when given invalid block size (non power of two, or below 512 bytes), but shoudn't matter. Signed-off-by: Maxim Levitsky --- drivers/block/null_blk_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/nul

[PATCH 02/10] block: virtio-blk: check logical block size

2020-07-21 Thread Maxim Levitsky
Linux kernel only supports logical block sizes which are power of two, at least 512 bytes and no more that PAGE_SIZE. Check this instead of crashing later on. Note that there is no need to check physical block size since it is only a hint, and virtio-blk already only supports power of two values.

[PATCH 03/10] block: loop: use blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
This allows to remove loop's own check for supported block size Signed-off-by: Maxim Levitsky --- drivers/block/loop.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 475e1a738560d..9984c8f824271 10064

[PATCH 01/10] block: introduce blk_is_valid_logical_block_size

2020-07-21 Thread Maxim Levitsky
Kernel block layer has never supported logical block sizes less that SECTOR_SIZE nor larger that PAGE_SIZE. Some drivers have runtime configurable block size, so it makes sense to have common helper for that. Signed-off-by: Maxim Levitsky --- block/blk-settings.c | 18 ++ inc

[PATCH 00/10] RFC: move logical block size checking to the block core

2020-07-21 Thread Maxim Levitsky
This patch series aims to move the logical block size checking to the block code. This was inspired by missing check for valid logical block size in virtio-blk which causes the kernel to crash in a weird way later on when it is invalid. I added blk_is_valid_logical_block_size which returns true i

Re: [PATCH] [PATCH] Firmware security information in SYSFS

2020-07-21 Thread Greg Kroah-Hartman
On Mon, Jul 20, 2020 at 05:58:47PM -0300, Daniel Gutson wrote: > On Fri, Jul 17, 2020 at 11:57 AM Greg Kroah-Hartman < > gre...@linuxfoundation.org> wrote: > > > On Fri, Jul 17, 2020 at 11:46:39AM -0300, Daniel Gutson wrote: > > > On Fri, Jul 17, 2020 at 11:41 AM Arnd Bergmann wrote: > > > > > >

<    7   8   9   10   11   12   13   14   15   >