Re: [PATCH v2] KVM: SVM: emulate MSR_IA32_PERF_CAPABILITIES

2020-06-18 Thread Paolo Bonzini
On 18/06/20 14:54, Vitaly Kuznetsov wrote: > Paolo Bonzini writes: > >> On 18/06/20 13:13, Vitaly Kuznetsov wrote: >>> state_test/smm_test selftests are failing on AMD with: >>> "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" >>> >>> MSR_IA32_PERF_CAPABILITIES is an emulated

Re: [PATCH] x86/asm/64: Align start of __clear_user() loop to 16-bytes

2020-06-18 Thread Alexey Dobriyan
On Thu, Jun 18, 2020 at 10:48:05AM +, David Laight wrote: > From: Matt Fleming > > Sent: 18 June 2020 11:20 > > x86 CPUs can suffer severe performance drops if a tight loop, such as > > the ones in __clear_user(), straddles a 16-byte instruction fetch > > window, or worse, a 64-byte cacheline.

Re: [PATCH] crypto: caam/qi2: remove redundant assignment to ret

2020-06-18 Thread Horia Geantă
On 6/18/2020 2:00 PM, Herbert Xu wrote: > On Thu, Jun 18, 2020 at 01:54:55PM +0300, Horia Geantă wrote: >> >> The proper fix would be updating the ahash_finup_no_ctx() function >> to return the specific error code: >> return ret; >> instead of returning -ENOMEM for all error cases. >> >> For

[PATCH] soc: qcom: rpmh: Use __fill_rpmh_msg API during rpmh_write()

2020-06-18 Thread Maulik Shah
Use __fill_rpmh_msg API during rpmh_write(). This allows to remove duplication of code in error checking, copying commands and setting message state. Signed-off-by: Maulik Shah --- drivers/soc/qcom/rpmh.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

RE: [PATCH v3] exfat: remove EXFAT_SB_DIRTY flag

2020-06-18 Thread Sungjong Seo
> > Since this patch does not resolve 'VOL_DIRTY in ENOTEMPTY' problem you > > mentioned, it would be better to remove the description above for that > > and to make new patch. > > I mentioned rmdir as an example. > However, this problem is not only with rmdirs. > VOL_DIRTY remains when some

Re: [PATCH 0/5] regulator: Constify some static struct variables

2020-06-18 Thread Mark Brown
On Thu, 18 Jun 2020 00:32:42 +0200, Rikard Falkeborn wrote: > Constify some static struct variables to allow the compiler to put them > in read-only memory. There are more of these, but I figured I could > start small. Also, is one patch per driver a good resolution or too > fine-grained? > >

[PATCH v2 3/5] ARM: dts: stm32: add usart3 node to stm32mp157c-ev1

2020-06-18 Thread Erwan Le Ray
Adds the usart3 node to stm32mp157c-ev1 board. usart3 pins are connected to GPIO Expansion connector. usart3 is disabled by default. Signed-off-by: Erwan Le Ray Changes in v2: - Add a comment to indicate how to wire USART3_RTS flow control to the GPIO expansion connector on ev1. diff

[PATCH v2 5/5] ARM: dts: stm32: add usart2 node to stm32mp157c-dk2

2020-06-18 Thread Erwan Le Ray
Adds the usart2 node to stm32mp157c-dk2 board. usart2 pins are connected to Bluetooth component. usart2 is disabled by default. Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts index ffbae4a8753d..045636555ddd 100644 ---

[PATCH v2 2/5] ARM: dts: stm32: add usart3 node to stm32mp15xx-dkx boards

2020-06-18 Thread Erwan Le Ray
Adds usart3 node to stm32mp15xx-dkx and usart3 alias to stm32mp157a-dk1 and stm32mp157c-dk2 boards. usart3 pins are connected to GPIO Expansion connector. usart3 is disabled by default. Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts

[PATCH v2 0/5] STM32 add usart nodes support

2020-06-18 Thread Erwan Le Ray
Add the support of uart instances available on STM32MP157 boards: - usart3 on stm32mp157c-ev1, stm32mp157a-dk1, and stm32mp157c-dk2 - uart7 on stm32mp157a-dk1 and stm32mp157c-dk2 - usart2 on stm32mp157c-dk2 Erwan Le Ray (5): ARM: dts: stm32: add usart2, usart3 and uart7 pins in

[PATCH v2 4/5] ARM: dts: stm32: add uart7 support to stm32mp15xx-dkx boards

2020-06-18 Thread Erwan Le Ray
Adds uart7 node to stm32mp15xx-dkx and uart7 alias to stm32mp157a-dk1 and stm32mp157c-dk2 boards. uart7 pins are connected to Arduino connector. uart7 is disabled by default. Signed-off-by: Erwan Le Ray diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm32mp157a-dk1.dts

[PATCH v2 1/5] ARM: dts: stm32: add usart2, usart3 and uart7 pins in stm32mp15-pinctrl

2020-06-18 Thread Erwan Le Ray
Adds usart2_pins_c, usart3_pins_b, usart3_pins_c and uart7_pins_c pins configurations in stm32mp15-pinctrl. - usart2_pins_c pins are connected to Bluetooth chip on dk2 board. - usart3_pins_b pins are connected to GPIO expansion connector on evx board. - usart3_pins_c pins are connected to GPIO

[PATCH] soc: qcom: rpmh: Update rpmh_invalidate function to return void

2020-06-18 Thread Maulik Shah
Currently rpmh_invalidate() always returns success. Update its return type to void. Suggested-by: Stephen Boyd Signed-off-by: Maulik Shah --- drivers/interconnect/qcom/bcm-voter.c | 6 +- drivers/soc/qcom/rpmh.c | 4 +--- include/soc/qcom/rpmh.h | 7 --- 3

Re: [PATCH][V3] arm64: perf: Get the wrong PC value in REGS_ABI_32 mode

2020-06-18 Thread Mark Rutland
On Thu, May 28, 2020 at 08:54:19AM +0100, Will Deacon wrote: > On Thu, May 28, 2020 at 09:06:07AM +0800, Jiping Ma wrote: > > On 05/27/2020 11:19 PM, Mark Rutland wrote: > > > On Wed, May 27, 2020 at 09:33:00AM +0800, Jiping Ma wrote: > > > > On 05/26/2020 06:26 PM, Mark Rutland wrote: > > > > >

Re: [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v20)

2020-06-18 Thread Mathieu Desnoyers
- On Jun 18, 2020, at 8:22 AM, Szabolcs Nagy szabolcs.n...@arm.com wrote: > The 06/11/2020 20:26, Joseph Myers wrote: >> On Thu, 11 Jun 2020, Mathieu Desnoyers wrote: >> > I managed to get a repository up and running for librseq, and have >> > integrated >> > the rseq.2 man page with

Re: [PATCH v2 3/3] iio: remove iio_triggered_buffer_postenable()/iio_triggered_buffer_predisable()

2020-06-18 Thread Eugen.Hristev
On 17.06.2020 16:52, Ardelean, Alexandru wrote: > On Wed, 2020-06-17 at 13:37 +, eugen.hris...@microchip.com wrote: >> [External] >> >> On 02.06.2020 11:54, Jonathan Cameron wrote: >>> On Tue, 2 Jun 2020 07:50:23 + >>> "Ardelean, Alexandru" wrote: >>> On Sun, 2020-05-31 at 16:40

[PATCH] dmaengine: ti: k3-udma: add missing put_device() call in of_xudma_dev_get()

2020-06-18 Thread Yu Kuai
if of_find_device_by_node() succeed and platform_get_drvdata() failed, of_xudma_dev_get() will return without put_device(), which will leak the memory. Signed-off-by: Yu Kuai --- drivers/dma/ti/k3-udma-private.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v4] perf tools: Check libasan and libubsan in Makefile.config

2020-06-18 Thread Jiri Olsa
On Thu, Jun 18, 2020 at 10:06:01AM +0800, Tiezhu Yang wrote: > When build perf with ASan or UBSan, if libasan or libubsan can not find, > the feature-glibc is 0 and there exists the following error log which is > wrong, because we can find gnu/libc-version.h in /usr/include, glibc-devel > is also

drivers/crypto/chelsio/chtls/chtls_main.c:201: undefined reference to `tls_toe_register_device'

2020-06-18 Thread kernel test robot
-20200618 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

Re: [PATCH net] net: dsa: bcm_sf2: Fix node reference count

2020-06-18 Thread Andrew Lunn
On Wed, Jun 17, 2020 at 08:42:44PM -0700, Florian Fainelli wrote: > of_find_node_by_name() will do an of_node_put() on the "from" argument. > Fixes: afa3b592953b ("net: dsa: bcm_sf2: Ensure correct sub-node is parsed") > Signed-off-by: Florian Fainelli > --- > drivers/net/dsa/bcm_sf2.c | 2 ++ >

Re: [PATCH v2] KVM: SVM: emulate MSR_IA32_PERF_CAPABILITIES

2020-06-18 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 18/06/20 13:13, Vitaly Kuznetsov wrote: >> state_test/smm_test selftests are failing on AMD with: >> "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" >> >> MSR_IA32_PERF_CAPABILITIES is an emulated MSR on Intel but it is not >> known to AMD code,

Re: kprobe: __blkdev_put probe is missed

2020-06-18 Thread Ming Lei
On Wed, Jun 17, 2020 at 06:30:39PM +0800, Ming Lei wrote: > Hello Guys, > > I found probe on __blkdev_put is missed, which can be observed > via bcc/perf reliably: > > 1) start trace > - perf probe __blkdev_put > - perf trace -a -e probe:__blkdev_put > > or > > /usr/share/bcc/tools/stackcount

[PATCH v4] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-18 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to selected data area of a regular file for security reason. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu --- fs/f2fs/f2fs.h | 15 + fs/f2fs/file.c | 179 + 2

[PATCH 2/3] ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2

2020-06-18 Thread Drew Fustini
This requires AM33XX_PADCONF macro in omap.h to be modified to keep pin conf and pin mux values separate. pinctrl-single.c must also be changed to support "pinctrl-single,pins" with 3 arguments (offset, conf, mux). Signed-off-by: Drew Fustini --- arch/arm/boot/dts/am33xx-l4.dtsi | 2 +- 1 file

[PATCH 0/3] pinctrl: single: support #pinctrl-cells = 2

2020-06-18 Thread Drew Fustini
Currently, pinctrl-single only allows #pinctrl-cells = 1. This series will allow pinctrl-single to also support #pinctrl-cells = 2 If "pinctrl-single,pins" has 3 arguments (offset, conf, mux) then pcs_parse_one_pinctrl_entry() does an OR operation on to get the value to store in the register.

[PATCH 1/3] ARM: dts: change AM33XX_PADCONF macro separate conf and mux

2020-06-18 Thread Drew Fustini
AM33XX_PADCONF macro is modified to keep pin conf and pin mux separate. This requires #pinctrl-cells = 2 in am33xx-l4.dtsi pinctrl-single.c but also be changed to support "pinctrl-single,pins" with 3 arguments (offset, conf, mux) Signed-off-by: Drew Fustini ---

[PATCH 3/3] pinctrl: single: parse #pinctrl-cells = 2

2020-06-18 Thread Drew Fustini
If "pinctrl-single,pins" has 3 arguments (offset, conf, mux) then pcs_parse_one_pinctrl_entry() does an OR operation on to get the value to store in the register. Signed-off-by: Drew Fustini --- drivers/pinctrl/pinctrl-single.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-)

Linux 5.7.4

2020-06-18 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.7.4 kernel. All users of the 5.7 kernel series must upgrade. The updated 5.7.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.7.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 5.7.4

2020-06-18 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index a2ce556f4347..64da771d4ac5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 7 -SUBLEVEL = 3 +SUBLEVEL = 4 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/lib/vdso/gettimeofday.c

Re: [PATCH] drm/arm: fix unintentional integer overflow on left shift

2020-06-18 Thread Colin Ian King
On 18/06/2020 13:14, Liviu Dudau wrote: > On Thu, Jun 18, 2020 at 11:04:00AM +0100, Colin King wrote: >> From: Colin Ian King > > Hi Colin, > >> >> Shifting the integer value 1 is evaluated using 32-bit arithmetic >> and then used in an expression that expects a long value leads to >> a

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-06-18 Thread Chris Down
Michal Hocko writes: I would really prefer to do that work on top of the fixes we (used to) have in mmotm (with the fixup). Oh, for sure. We should reintroduce the patches with the fix, and then look at longer-term solutions once that's in :-)

RE: [PATCH v3 1/2] mfd: da9063: Fix revision handling to correctly select reg tables

2020-06-18 Thread Adam Thomson
On 18 June 2020 12:15, Lee Jones wrote: > > > > The current implementation performs checking in the i2c_probe() > > > > function of the variant_code but does this immediately after the > > > > containing struct has been initialised as all zero. This means the > > > > check for variant code will

[PATCH] f2fs-tools: set cold flag for non-dir node

2020-06-18 Thread zhaowuyun
From: Wuyun Zhao Signed-off-by: Wuyun Zhao --- fsck/dir.c | 1 + fsck/node.c | 1 + fsck/node.h | 11 +++ 3 files changed, 13 insertions(+) diff --git a/fsck/dir.c b/fsck/dir.c index 5f4f75e..dc03c98 100644 --- a/fsck/dir.c +++ b/fsck/dir.c @@ -522,6 +522,7 @@ static void

Re: [PATCH] iio: at91-sama5d2_adc: remove usage of iio_priv_to_dev() helper

2020-06-18 Thread Eugen.Hristev
On 17.06.2020 17:02, Ardelean, Alexandru wrote: > On Wed, 2020-06-17 at 13:25 +, eugen.hris...@microchip.com wrote: >> On 31.05.2020 17:39, Jonathan Cameron wrote: >> >>> On Mon, 25 May 2020 13:53:41 +0300 >>> Alexandru Ardelean wrote: >>> We may want to get rid of the iio_priv_to_dev()

Re: [PATCH 2/3] kvm: Add capability to be able to report async pf error to guest

2020-06-18 Thread Vivek Goyal
On Wed, Jun 17, 2020 at 04:05:48PM -0700, Sean Christopherson wrote: > On Wed, Jun 17, 2020 at 04:00:52PM -0700, Sean Christopherson wrote: > > On Wed, Jun 17, 2020 at 05:51:52PM -0400, Vivek Goyal wrote: > > What I'm saying is that KVM cannot do the filtering. KVM, by design, does > > not know

Re: [Cluster-devel] [PATCH v11 16/25] fs: Convert mpage_readpages to mpage_readahead

2020-06-18 Thread Andreas Gruenbacher
On Wed, Jun 17, 2020 at 4:22 AM Matthew Wilcox wrote: > On Wed, Jun 17, 2020 at 02:57:14AM +0200, Andreas Grünbacher wrote: > > Am Mi., 17. Juni 2020 um 02:33 Uhr schrieb Matthew Wilcox > > : > > > > > > On Wed, Jun 17, 2020 at 12:36:13AM +0200, Andreas Gruenbacher wrote: > > > > Am Mi., 15.

Re: [PATCH v2] RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq

2020-06-18 Thread Jason Gunthorpe
On Sat, Jun 13, 2020 at 11:11:48PM -0500, Aditya Pakki wrote: > In case of failure of alloc_ud_wq_attr(), the memory allocated by > rvt_alloc_rq() is not freed. Fix it by calling rvt_free_rq() using > the existing clean-up code. > > Fixes: d310c4bf8aea ("IB/{rdmavt, hfi1, qib}: Remove AH refcount

Re: [PATCH v3 19/21] dyndbg: extend ddebug_parse_flags to accept optional leading filter-flags

2020-06-18 Thread Petr Mladek
On Wed 2020-06-17 10:25:34, Jim Cromie wrote: > Change ddebug_parse_flags to accept optional filterflags before the > required operator [-+=]. Read the flags into the filter_flags > parameter added in the previous patch. So this now supplies the > filterflags to ddebug_exec_query. > >

Re: [PATCH] lan743x: allow mac address to come from dt

2020-06-18 Thread Andrew Lunn
On Wed, Jun 17, 2020 at 03:59:10PM -0700, Tim Harvey wrote: > If a valid mac address is present in dt, use that before using > CSR's or a random mac address. > > Signed-off-by: Tim Harvey Reviewed-by: Andrew Lunn Andrew

Re: [PATCH 1/1] irqchip: Add config MTK_SYSIRQ and MTK_CIRQ

2020-06-18 Thread Marc Zyngier
On 2020-06-18 13:31, Hanks Chen wrote: Mediatek sysirq and cirq drivers as-is were bound together to the config of ARCH_MEDIATEK. These two drivers should be able to be configured separately. For example, on new Mediatek mobile chips such as Dimensity 820, the sysirq driver is not used since

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-06-18 Thread Michal Hocko
On Thu 18-06-20 13:37:43, Chris Down wrote: > Yafang Shao writes: > > On Thu, Jun 18, 2020 at 5:09 AM Chris Down wrote: > > > > > > Naresh Kamboju writes: > > > >After this patch applied the reported issue got fixed. > > > > > > Great! Thank you Naresh and Michal for helping to get to the

[PATCH v2] kunit: fix KconfigParseError handling CC_VERSION_TEXT

2020-06-18 Thread Vitor Massaru Iha
Commit 8b59cd81dc5 ("kbuild: ensure full rebuild when the compiler is updated") added the environment variable CC_VERSION_TEXT, parse_from_string() doesn't expect a string in value field and this causes the failure below: [iha@bbking linux]$ tools/testing/kunit/kunit.py run --timeout=60

RE: [PATCH] extend IMA boot_aggregate with kernel measurements

2020-06-18 Thread Roberto Sassu
> From: Mimi Zohar [mailto:zo...@linux.ibm.com] > Sent: Tuesday, June 16, 2020 8:11 PM > On Tue, 2020-06-16 at 17:29 +, Roberto Sassu wrote: > > > From: James Bottomley [mailto:j...@linux.ibm.com] > > > Sent: Friday, June 12, 2020 7:14 PM > > > On Fri, 2020-06-12 at 15:11 +, Roberto Sassu

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-06-18 Thread Chris Down
Yafang Shao writes: On Thu, Jun 18, 2020 at 5:09 AM Chris Down wrote: Naresh Kamboju writes: >After this patch applied the reported issue got fixed. Great! Thank you Naresh and Michal for helping to get to the bottom of this :-) I'll send out a new version tomorrow with the fixes applied

Re: [PATCH] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update()

2020-06-18 Thread Michael Ellerman
On Mon, 15 Jun 2020 12:22:29 +0300, Mike Rapoport wrote: > The pte_update() implementation for PPC_8xx unfolds page table from the PGD > level to access a PMD entry. Since 8xx has only 2-level page table this can > be simplified with pmd_off() shortcut. > > Replace explicit unfolding with

Re: [PATCH 1/2] powerpc/syscalls: Use the number when building SPU syscall table

2020-06-18 Thread Michael Ellerman
On Tue, 16 Jun 2020 23:56:16 +1000, Michael Ellerman wrote: > Currently the macro that inserts entries into the SPU syscall table > doesn't actually use the "nr" (syscall number) parameter. > > This does work, but it relies on the exact right number of syscall > entries being emitted in order for

Re: [PATCH 0/3] Fix build failure with v5.8-rc1

2020-06-18 Thread Michael Ellerman
On Mon, 15 Jun 2020 12:57:55 + (UTC), Christophe Leroy wrote: > Commit 2ab3a0a02905 ("READ_ONCE: Enforce atomicity for > {READ,WRITE}_ONCE() memory accesses") leads to following build > failure on powerpc 8xx. > > To fix it, this small series introduces a new helper named ptep_get() > to

Re: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-06-18 Thread Pali Rohár
On Friday 29 May 2020 11:12:11 Pali Rohár wrote: > On Friday 29 May 2020 09:11:08 Ganapathi Bhat wrote: > > Hi Pali, > > > > > Hello Ganapathi! Seems that on both locations is older version of > > > sdsd8997_combo_v4.bin firmware, not the latest one. On both location is > > > available just

Re: [LKP] [sched/fair] 070f5e860e: reaim.jobs_per_min -10.5% regression

2020-06-18 Thread Vincent Guittot
On Thu, 18 Jun 2020 at 04:45, Xing Zhengjun wrote: > > > > >> > >> This bench forks a new thread for each and every new step. But a newly > >> forked > >> threads start with a load_avg and a runnable_avg set to max whereas the > >> threads > >> are running shortly before exiting. This makes

Re: [PATCH 0/6] Add Microchip MCP25XXFD CAN driver

2020-06-18 Thread Marc Kleine-Budde
On 6/18/20 2:30 PM, Kurt Van Dijck wrote: > On do, 18 jun 2020 00:36:29 +0200, Marc Kleine-Budde wrote: >> On 6/17/20 6:59 PM, Kurt Van Dijck wrote: >>> I'm in the process of getting a Variscite imx8m mini SOM online, with >> >> Have your heard about the imx8m plus? It has CAN cores! We have a

Re: [PATCH v8 11/14] media: dt-bindings: Add jpeg enc device tree node document

2020-06-18 Thread Tomasz Figa
On Thu, Jun 18, 2020 at 5:43 AM Xia Jiang wrote: > > On Thu, 2020-05-21 at 16:00 +, Tomasz Figa wrote: > > Hi Xia, > > > > On Fri, Apr 03, 2020 at 05:40:30PM +0800, Xia Jiang wrote: > > > Add jpeg enc device tree node document > > > > > > Reviewed-by: Rob Herring > > > Signed-off-by: Xia

bpf-next test error: KASAN: use-after-free Write in afs_wake_up_async_call

2020-06-18 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7bd3a33a libbpf: Bump version to 0.1.0 git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=16bc8c3510 kernel config: https://syzkaller.appspot.com/x/.config?x=b8ad29058cb749bc dashboard link:

Re: [PATCH] ASoC: rockchip: Fix a reference count leak.

2020-06-18 Thread Heiko Stübner
Am Samstag, 13. Juni 2020, 22:51:58 CEST schrieb wu000...@umn.edu: > From: Qiushi Wu > > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count if pm_runtime_put is not called in > error handling paths. Call pm_runtime_put if pm_runtime_get_sync

[PATCH 1/1] irqchip: Add config MTK_SYSIRQ and MTK_CIRQ

2020-06-18 Thread Hanks Chen
Mediatek sysirq and cirq drivers as-is were bound together to the config of ARCH_MEDIATEK. These two drivers should be able to be configured separately. For example, on new Mediatek mobile chips such as Dimensity 820, the sysirq driver is not used since the hardware module is removed. Add two

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-18 Thread Simon Arlott
On 18/06/2020 08:21, Christoph Hellwig wrote: > On Wed, Jun 17, 2020 at 07:49:57PM +0100, Simon Arlott wrote: >> Avoiding a stop of the disk on a reboot is appropriate for HDDs because >> they're likely to continue to be powered (and should not be told to spin >> down only to spin up again) but

Re: [PATCH 0/6] Add Microchip MCP25XXFD CAN driver

2020-06-18 Thread Kurt Van Dijck
On do, 18 jun 2020 00:36:29 +0200, Marc Kleine-Budde wrote: > On 6/17/20 6:59 PM, Kurt Van Dijck wrote: > > I'm in the process of getting a Variscite imx8m mini SOM online, with > > Have your heard about the imx8m plus? It has CAN cores! We have a board in the > office to play with. :) > > >

Re: [PATCH] media: rockchip/rga: Fix a reference count leak.

2020-06-18 Thread Heiko Stübner
Am Sonntag, 14. Juni 2020, 01:13:49 CEST schrieb wu000...@umn.edu: > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus call pm_runtime_put_noidle() > if pm_runtime_get_sync() fails. > > Fixes: f7e7b48e6d79 ("[media]

Re: [PATCH v4 1/3] virtio: add dma-buf support for exported objects

2020-06-18 Thread Guennadi Liakhovetski
Hi Michael, On Thu, Jun 04, 2020 at 03:05:23PM -0400, Michael S. Tsirkin wrote: > On Tue, May 26, 2020 at 07:58:09PM +0900, David Stevens wrote: > > This change adds a new flavor of dma-bufs that can be used by virtio > > drivers to share exported objects. A virtio dma-buf can be queried by > >

Greetings from Kone

2020-06-18 Thread Kone Compaore
Greetings to you and your family. My name is Mr. Kone Compaore, the auditing general with the bank, Africa Develop bank (ADB) Ouagadougou, Burkina Faso, in West Africa. I am contacting you to seek our honesty and sincere cooperation in confidential manner to transfer the sum of 10.5 (Ten million

[PATCH v3 07/15] arm64: kvm: Split hyp/tlb.c to VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. tlb.c contains code for flushing the TLB, with parts shared between VHE/nVHE. These common routines are moved into a header file tlb.h, VHE-specific code remains in tlb.c and

[PATCH v3 10/15] arm64: kvm: Split hyp/sysreg-sr.c to VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. sysreg-sr.c contains KVM's code for saving/restoring system registers, with some parts shared between VHE/nVHE. These common routines are moved to sysreg-sr.h, VHE-specific code is

drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: sparse: incorrect type in argument 1 (different base types)

2020-06-18 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1b5044021070efa3259f3e9548dc35d1eb6aa844 commit: 4d5675c3b10b7bfa56447c26c29930e35b6d41ee serial: 8250_dw: switch to use 8250_dwlib library date: 10 months ago config: alpha-randconfig-s032-20200618

[PATCH v3 09/15] arm64: kvm: Split hyp/debug-sr.c to VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. debug-sr.c contains KVM's code for context-switching debug registers, with some parts shared between VHE/nVHE. These common routines are moved to debug-sr.h, VHE-specific code is

[PATCH v3 06/15] arm64: kvm: Move hyp-init.S to nVHE

2020-06-18 Thread David Brazdil
From: Andrew Scull This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. hyp-init.S contains the identity mapped initialisation code for the non-VHE code that runs at EL2. It is only used for non-VHE. Adjust code that calls into this

[PATCH v3 11/15] arm64: kvm: Split hyp/timer-sr.c to VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. timer-sr.c contains a HVC handler for setting CNTVOFF_EL2 and two helper functions for controlling access to physical counter. The former is shared between VHE/nVHE and is kept in

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-18 Thread Simon Arlott
On 18/06/2020 09:36, Damien Le Moal wrote: > On 2020/06/18 3:50, Simon Arlott wrote: >> I need to use "reboot=p" on my desktop because one of the PCIe devices >> does not appear after a warm boot. This results in a very cold boot >> because the BIOS turns the PSU off and on. >> >> The scsi sd

[PATCH v3 13/15] arm64: kvm: Add comments around __kvm_nvhe_ symbol aliases

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. With all source files split between VHE/nVHE, add comments around the list of symbols where nVHE code still links against kernel proper. Split them into groups and explain how each

[PATCH v3 12/15] arm64: kvm: Compile remaining hyp/ files for both VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. The following files in hyp/ contain only code shared by VHE/nVHE: vgic-v3-sr.c, aarch32.c, vgic-v2-cpuif-proxy.c, entry.S, fpsimd.S Compile them under both configurations.

[PATCH v3 14/15] arm64: kvm: Remove __hyp_text macro, use build rules instead

2020-06-18 Thread David Brazdil
With nVHE code now fully separated from the rest of the kernel, the effects of the __hyp_text macro (which had to be applied on all nVHE code) can be achieved with build rules instead. The macro used to: (a) move code to .hyp.text ELF section, now done by renaming .text using `objcopy`,

[PATCH v3 08/15] arm64: kvm: Split hyp/switch.c to VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. switch.c implements context-switching for KVM, with large parts shared between VHE/nVHE. These common routines are moved to switch.h, VHE-specific code is left in switch.c and

[PATCH v3 15/15] arm64: kvm: Lift instrumentation restrictions on VHE

2020-06-18 Thread David Brazdil
With VHE and nVHE executable code completely separated, remove build config that disabled GCOV/KASAN/UBSAN/KCOV instrumentation for VHE as these now execute under the same memory mappings as the rest of the kernel. No violations are currently being reported by either KASAN or UBSAN.

Re: [PATCH v2 2/2] Add PWM fan controller driver for LGM SoC

2020-06-18 Thread Philipp Zabel
Hi Rahul, On Thu, 2020-06-18 at 20:05 +0800, Rahul Tanwar wrote: > Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. > This PWM controller does not have any other consumer, it is a > dedicated PWM controller for fan attached to the system. Add > driver for this PWM fan controller.

Re: next/master bisection: baseline.login on ox820-cloudengines-pogoplug-series-3

2020-06-18 Thread Guillaume Tucker
/master/next-20200618/arm/oxnas_v6_defconfig/gcc-8/lab-baylibre/baseline-ox820-cloudengines-pogoplug-series-3.html#L504 Thanks, Guillaume On 18/06/2020 13:20, kernelci.org bot wrote: > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * This automated bisection report wa

[PATCH v3 05/15] arm64: kvm: Build hyp-entry.S separately for VHE/nVHE

2020-06-18 Thread David Brazdil
This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. hyp-entry.S contains implementation of KVM hyp vectors. This code is mostly shared between VHE/nVHE, therefore compile it under both VHE and nVHE build rules. nVHE-specific host HVC

[PATCH v3 04/15] arm64: kvm: Handle calls to prefixed hyp functions

2020-06-18 Thread David Brazdil
From: Andrew Scull This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. Once hyp functions are moved to a hyp object, they will have prefixed symbols. This change declares and gets the address of the prefixed version for calls to the

[PATCH v3 03/15] arm64: kvm: Add build rules for separate nVHE object files

2020-06-18 Thread David Brazdil
Add new folder arch/arm64/kvm/hyp/nvhe and a Makefile for building code that runs in EL2 under nVHE KVM. Compile each source file into a `.hyp.tmp.o` object first, then prefix all its symbols with "__kvm_nvhe_" using `objcopy` and produce a `.hyp.o`. Suffixes were chosen so that it would be

[PATCH v3 01/15] arm64: kvm: Fix symbol dependency in __hyp_call_panic_nvhe

2020-06-18 Thread David Brazdil
__hyp_call_panic_nvhe contains inline assembly which did not declare its dependency on the __hyp_panic_string symbol. The static-declared string has previously been kept alive because of a use in __hyp_call_panic_vhe. Fix this in preparation for separating the source files between VHE and nVHE

[PATCH v3 02/15] arm64: kvm: Move __smccc_workaround_1_smc to .rodata

2020-06-18 Thread David Brazdil
This snippet of assembly is used by cpu_errata.c to overwrite parts of KVM hyp vector. Move it to its own source file and change its ELF section to .rodata. Signed-off-by: David Brazdil --- arch/arm64/kvm/hyp/Makefile| 1 + arch/arm64/kvm/hyp/hyp-entry.S | 16

[PATCH v3 00/15] Split off nVHE hyp code

2020-06-18 Thread David Brazdil
Refactor files in arch/arm64/kvm/hyp to compile all code which runs in EL2 under nVHE into separate object files from the rest of KVM. This is done in preparation for being able to unmap hyp code from EL1 and kernel code/data from EL2 but has other benefits too, notably: * safe use of

Re: [PATCH v6 0/6] DVFS for IO devices on sdm845 and sc7180

2020-06-18 Thread Stanimir Varbanov
On 6/18/20 3:11 PM, Rajendra Nayak wrote: > > Hey Stan, >   >> On 6/18/20 7:47 AM, Rajendra Nayak wrote: >>> Hey Matthias, thanks for summarizing this. >>> >>> On 6/18/2020 3:45 AM, Matthias Kaehlcke wrote: What is the plan for landing these, it seems not all must/should go through

Re: [PATCH v2] coccinelle: misc: add array_size_dup script to detect missed overflow checks

2020-06-18 Thread Denis Efremov
Hi, On 6/18/20 2:34 PM, Markus Elfring wrote: > Why did you repeat a typo from the previous patch subject? Where is the typo? I can't handle your suggestions because your mails constantly break the threads. I just can't find them after due to missed/wrong In-Reply-To headers. Again, this mail

Re: [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v20)

2020-06-18 Thread Szabolcs Nagy
The 06/11/2020 20:26, Joseph Myers wrote: > On Thu, 11 Jun 2020, Mathieu Desnoyers wrote: > > I managed to get a repository up and running for librseq, and have > > integrated > > the rseq.2 man page with comments from Michael Kerrisk here: > > > >

Re: [PATCH v2 20/24] dyndbg: WIP towards debug-print-class based callsite controls

2020-06-18 Thread Petr Mladek
On Wed 2020-06-17 07:23:34, jim.cro...@gmail.com wrote: > On Wed, Jun 17, 2020 at 3:52 AM Petr Mladek wrote: > > > > On Wed 2020-06-17 10:31:54, Daniel Thompson wrote: > > > On Tue, Jun 16, 2020 at 02:05:27PM -0700, Joe Perches wrote: > > > > On Tue, 2020-06-16 at 15:45 +0200, Petr Mladek wrote:

[PATCH v3 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-06-18 Thread Vinay Simha BN
Signed-off-by: Vinay Simha BN --- v1: Initial version v2: * Andrzej Hajda review comments incorporated SPDX identifier development debug removed alphabetic order headers u32 instead of unit32_t magic numbers to macros for CLRSI and mux registers ignored return value * Laurent

[PATCH v3 1/2] dt-binding: Add DSI/LVDS TC358775 bridge bindings

2020-06-18 Thread Vinay Simha BN
Signed-off-by: Vinay Simha BN --- v1: Initial version wast .txt file v2: From txt to yaml file format v3: * Andrzej Hajda review comments incorporated dual port lvds implemented * Laurent Pinchart review comments incorporated dsi lanes property removed and it is dynamically picked

Re: [PATCH] drm/arm: fix unintentional integer overflow on left shift

2020-06-18 Thread Liviu Dudau
On Thu, Jun 18, 2020 at 11:04:00AM +0100, Colin King wrote: > From: Colin Ian King Hi Colin, > > Shifting the integer value 1 is evaluated using 32-bit arithmetic > and then used in an expression that expects a long value leads to > a potential integer overflow. I'm afraid this explanation

Re: INFO: task hung in chaoskey_disconnect

2020-06-18 Thread Andrey Konovalov
On Wed, Nov 6, 2019 at 1:32 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:b1aa9d83 usb: raw: add raw-gadget interface > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH AUTOSEL 5.7 055/388] ASoC: SOF: Do nothing when DSP PM callbacks are not set

2020-06-18 Thread Mark Brown
On Thu, Jun 18, 2020 at 02:44:18PM +0300, Daniel Baluta wrote: > Indeed can be seen as an optimization, but it does unexpected things which > can cause trouble > and weird behavior for people not familiar with the matter. > For example, as explained in the commit message if you only provide >

Re: KASAN: use-after-free Read in chaoskey_disconnect

2020-06-18 Thread Andrey Konovalov
On Wed, Oct 30, 2019 at 1:52 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:ff6409a6 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

[PATCH v5 2/3] dt-bindings: net: mscc-vsc8531: add optional clock properties

2020-06-18 Thread Heiko Stuebner
From: Heiko Stuebner Some mscc ethernet phys have a configurable clock output, so describe the generic properties to access them in devicetrees. Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v5 1/3] net: phy: mscc: move shared probe code into a helper

2020-06-18 Thread Heiko Stuebner
From: Heiko Stuebner The different probe functions share a lot of code, so move the common parts into a helper to reduce duplication. This moves the devm_phy_package_join below the general allocation but as all components just allocate things, this should be ok. Suggested-by: Andrew Lunn

[PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Heiko Stuebner
From: Heiko Stuebner At least VSC8530/8531/8540/8541 contain a clock output that can emit a predefined rate of 25, 50 or 125MHz. This may then feed back into the network interface as source clock. So expose a clock-provider from the phy using the common clock framework to allow setting the

Re: [PATCH v6 0/6] DVFS for IO devices on sdm845 and sc7180

2020-06-18 Thread Rajendra Nayak
Hey Stan, On 6/18/20 7:47 AM, Rajendra Nayak wrote: Hey Matthias, thanks for summarizing this. On 6/18/2020 3:45 AM, Matthias Kaehlcke wrote: What is the plan for landing these, it seems not all must/should go through the QCOM tree. My guesses: tty: serial: qcom_geni_serial: Use OPP API

[PATCH v5 0/3] add clkout support to mscc phys

2020-06-18 Thread Heiko Stuebner
The main part of this series is adding handling of the clkout controls some of the mscc phys have and while at it Andrew asked for some of the duplicated probe functionality to be factored out into a common function. A working config on rockchip/rk3368-lion for example now looks like: {

Re: KASAN: use-after-free Read in hidinput_hid_event

2020-06-18 Thread Andrey Konovalov
On Wed, Dec 18, 2019 at 4:15 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:d533c992 usb: core: kcov: collect coverage from usb comple.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KASAN: slab-out-of-bounds Read in hidinput_hid_event

2020-06-18 Thread Andrey Konovalov
On Wed, Dec 18, 2019 at 3:45 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:d533c992 usb: core: kcov: collect coverage from usb comple.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH v2] KVM: SVM: emulate MSR_IA32_PERF_CAPABILITIES

2020-06-18 Thread Paolo Bonzini
On 18/06/20 13:13, Vitaly Kuznetsov wrote: > state_test/smm_test selftests are failing on AMD with: > "Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)" > > MSR_IA32_PERF_CAPABILITIES is an emulated MSR on Intel but it is not > known to AMD code, emulate it there too (by

[PATCH] exfat: flush dirty metadata in fsync

2020-06-18 Thread Sungjong Seo
generic_file_fsync() exfat used could not guarantee the consistency of a file because it has flushed not dirty metadata but only dirty data pages for a file. Instead of that, use exfat_file_fsync() for files and directories so that it guarantees to commit both the metadata and data pages for a

Re: KASAN: slab-out-of-bounds Write in hidinput_setkeycode

2020-06-18 Thread Andrey Konovalov
On Mon, Dec 9, 2019 at 12:05 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:1f22d15c usb: gadget: add raw-gadget interface > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

[PATCH] powerpc/8xx: Modify ptep_get()

2020-06-18 Thread Christophe Leroy
Move ptep_get() close to pte_update(), in an ifdef section already dedicated to powerpc 8xx. This section contains explanation about the layout of page table entries. Also modify it to return 4 times the pte value instead of padding with zeroes. Signed-off-by: Christophe Leroy ---

<    5   6   7   8   9   10   11   12   13   14   >