Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-17 Thread Jerome Forissier
On 6/18/20 6:59 AM, Sumit Garg wrote: > Hi Jerome, > > On Wed, 17 Jun 2020 at 20:46, Jerome Forissier wrote: >> >> >> >> On 6/17/20 3:58 PM, Sumit Garg wrote: >>> Hi Maxim, >>> >>> On Thu, 4 Jun 2020 at 23:28, Maxim Uvarov wrote: With the evolving use-cases for TEE bus, now it's requir

Re: [PATCH 0/4] arm64: dts: imx8m: dtb aliases update

2020-06-17 Thread Shawn Guo
On Wed, May 20, 2020 at 10:02:42AM +0800, peng@nxp.com wrote: > From: Peng Fan > > Minor patchset to update device tree aliases > > Peng Fan (4): > arm64: dts: imx8mq: Add mmc aliases > arm64: dts: imx8mq: Add ethernet alias > arm64: dts: imx8mm: sort the aliases > arm64: dts: imx8mp

Re: [PATCH 0/3] zone-append support in aio and io-uring

2020-06-17 Thread Christoph Hellwig
On Wed, Jun 17, 2020 at 10:53:36PM +0530, Kanchan Joshi wrote: > This patchset enables issuing zone-append using aio and io-uring direct-io > interface. > > For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application uses start > LBA > of the zone to issue append. On completion 'res2' fiel

[PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-17 Thread Andrey Lebedev
From: Andrey Lebedev Some pp or gp jobs can be successfully repeated even after they time outs. Introduce lima module parameter to specify number of times a job can hang before being dropped. Signed-off-by: Andrey Lebedev --- Changed type of lima_job_hang_limit to unsigned int. drivers/gpu/d

[v4][PATCH] e1000e: continue to init phy even when failed to disable ULP

2020-06-17 Thread Aaron Ma
After 'commit e086ba2fccda4 ("e1000e: disable s0ix entry and exit flows for ME systems")', ThinkPad P14s always failed to disable ULP by ME. 'commit 0c80cdbf3320 ("e1000e: Warn if disabling ULP failed")' break out of init phy: error log: [ 42.364753] e1000e :00:1f.6 enp0s31f6: Failed to dis

Re: [PATCH 6/6] smp: Cleanup smp_call_function*()

2020-06-17 Thread Christoph Hellwig
On Wed, Jun 17, 2020 at 01:04:01PM +0200, Peter Zijlstra wrote: > On Wed, Jun 17, 2020 at 01:23:49AM -0700, Christoph Hellwig wrote: > > > > @@ -178,9 +178,7 @@ static void zpci_handle_fallback_irq(voi > > > if (atomic_inc_return(&cpu_data->scheduled) > 1) > > > continu

[v3][PATCH] e1000e: continue to init phy even when failed to disable ULP

2020-06-17 Thread Aaron Ma
After commit: e086ba2fccda4 ("e1000e: disable s0ix entry and exit flows for ME systems"). ThinkPad P14s always failed to disable ULP by ME. commit: 0c80cdbf3320 ("e1000e: Warn if disabling ULP failed") break out of init phy: error log: [ 42.364753] e1000e :00:1f.6 enp0s31f6: Failed to disab

Re: [PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-17 Thread Qiang Yu
On Thu, Jun 18, 2020 at 1:57 AM Andrey Lebedev wrote: > > From: Andrey Lebedev > > Some pp or gp jobs can be successfully repeated even after they time outs. > Introduce lima module parameter to specify number of times a job can hang > before being dropped. > > Signed-off-by: Andrey Lebedev > --

[PATCH 1/3] x86/hyperv: allocate the hypercall page with only read and execute bits

2020-06-17 Thread Christoph Hellwig
Avoid a W^X violation cause by the fact that PAGE_KERNEL_EXEC includes the writable bit. For this resurrect the removed PAGE_KERNEL_RX definitіon, but as PAGE_KERNEL_ROX to match arm64 and powerpc. Fixes: 78bb17f76edc ("x86/hyperv: use vmalloc_exec for the hypercall page") Reported-by: Dexuan Cui

[PATCH 2/3] arm64: use PAGE_KERNEL_ROX directly in alloc_insn_page

2020-06-17 Thread Christoph Hellwig
Use PAGE_KERNEL_ROX directly instead of allocating RWX and setting the page read-only just after the allocation. Signed-off-by: Christoph Hellwig --- arch/arm64/kernel/probes/kprobes.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm64/kernel/probes/kprob

[PATCH 3/3] mm: remove vmalloc_exec

2020-06-17 Thread Christoph Hellwig
Merge vmalloc_exec into its only caller. Note that for !CONFIG_MMU __vmalloc_node_range maps to __vmalloc, which directly clears the __GFP_HIGHMEM added by the vmalloc_exec stub anyway. Signed-off-by: Christoph Hellwig --- include/linux/vmalloc.h | 1 - kernel/module.c | 4 +++- mm/no

fix a hyperv W^X violation and remove vmalloc_exec

2020-06-17 Thread Christoph Hellwig
Hi all, Dexuan reported a W^X violation due to the fact that the hyper hypercall page due switching it to be allocated using vmalloc_exec. The problem is that PAGE_KERNEL_EXEC as used by vmalloc_exec actually sets writable permissions in the pte. This series fixes the issue by switching to the l

Re: [PATCH v5 1/4] KEYS: trusted: Add generic trusted keys framework

2020-06-17 Thread Sumit Garg
On Thu, 18 Jun 2020 at 04:44, Jarkko Sakkinen wrote: > > On Tue, Jun 16, 2020 at 07:02:37PM +0530, Sumit Garg wrote: > > + Luke > > > > Hi Jarkko, > > > > Prior to addressing your comments below which seems to show your > > preference for compile time selection of trust source (TPM or TEE), I > >

[PATCH 1/5] f2fs: fix to wait page writeback before update

2020-06-17 Thread Chao Yu
to make page content stable for special device like raid. Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 2 ++ fs/f2fs/extent_cache.c | 18 +- fs/f2fs/f2fs.h | 2 +- fs/f2fs/file.c | 1 + fs/f2fs/inline.c | 2 ++ fs/f2fs/inode.c| 3 +-- 6 f

[PATCH 5/5] f2fs: show more debug info for per-temperature log

2020-06-17 Thread Chao Yu
- Add to account and show per-log dirty_seg, full_seg and valid_blocks in debugfs. - reformat printed info. TYPEsegnosecno zoneno dirty_seg full_seg valid_blk - COLD data: 1523 1523 1523 1 0399 - WARM data: 769 769

[PATCH 4/5] f2fs: clean up parameter of f2fs_allocate_data_block()

2020-06-17 Thread Chao Yu
Use validation of @fio to inidcate whether caller want to serialize IOs in io.io_list or not, then @add_list will be redundant, remove it. Signed-off-by: Chao Yu --- fs/f2fs/data.c| 2 +- fs/f2fs/f2fs.h| 2 +- fs/f2fs/gc.c | 2 +- fs/f2fs/segment.c | 6 +++--- 4 files changed, 6 ins

[PATCH 3/5] f2fs: shrink node_write lock coverage

2020-06-17 Thread Chao Yu
- to avoid race between checkpoint and quota file writeback, it just needs to hold read lock of node_write in writeback path. - node_write lock has covered all LFS data write paths, it's not necessary, we only need to hold node_write lock at write path of quota file. Signed-off-by: Chao Yu --- f

[PATCH 2/5] f2fs: add prefix for exported symbols

2020-06-17 Thread Chao Yu
to avoid polluting global symbol namespace. Signed-off-by: Chao Yu --- fs/f2fs/compress.c | 4 ++-- fs/f2fs/data.c | 14 +++--- fs/f2fs/f2fs.h | 4 ++-- fs/f2fs/file.c | 4 ++-- fs/f2fs/gc.c | 2 +- fs/f2fs/segment.c | 2 +- 6 files changed, 15 insertions(+), 15 d

Re: [PATCH V4 2/2] mmc: sdhci-msm: Use internal voltage control

2020-06-17 Thread Veerabhadrarao Badiganti
On 6/17/2020 7:46 PM, Ulf Hansson wrote: On Wed, 17 Jun 2020 at 14:46, Veerabhadrarao Badiganti wrote: Thanks for comments Uffe. On 6/17/2020 3:04 PM, Ulf Hansson wrote: On Tue, 16 Jun 2020 at 17:38, Veerabhadrarao Badiganti wrote: On qcom SD host controllers voltage switching be done aft

Re: [PATCH net-next 0/3] add MP_PRIO, MP_FAIL and MP_FASTCLOSE suboptions handling

2020-06-17 Thread Geliang Tang
On Tue, Jun 16, 2020 at 05:18:56PM +0200, Matthieu Baerts wrote: > Hi Geliang > > On 16/06/2020 08:47, Geliang Tang wrote: > > Add handling for sending and receiving the MP_PRIO, MP_FAIL, and > > MP_FASTCLOSE suboptions. > > Thank you for the patches! > > Unfortunately, I don't think it would be

[RESEND PATCH] drm/msm/dpu: fix error return code in dpu_encoder_init

2020-06-17 Thread Chen Tao
Fix to return negative error code -ENOMEM with the use of ERR_PTR from dpu_encoder_init. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Chen Tao --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

RE: [RFC PATCH v2 3/5] scsi: ufs: Introduce HPB module

2020-06-17 Thread Avri Altman
> > > > > implemented > > > > > as a module parameter, so that it can be configurable by the > > > > > user. > > > > > > > > > > To gurantee a minimum memory pool size of 4MB: > > > > > $ insmod ufshpb.ko ufshpb_host_map_kbytes=4096 > > > > > > > > You are going through a lot of troubles to make

Re: [PATCH 4/4] pci: export untrusted attribute in sysfs

2020-06-17 Thread Greg Kroah-Hartman
On Wed, Jun 17, 2020 at 12:53:03PM -0700, Rajat Jain wrote: > Hi Greg, Christoph, > > On Wed, Jun 17, 2020 at 12:31 AM Christoph Hellwig wrote: > > > > On Tue, Jun 16, 2020 at 12:27:35PM -0700, Rajat Jain wrote: > > > Need clarification. The flag "untrusted" is currently a part of > > > pci_dev s

Re: [LKP] Re: [mm] 1431d4d11a: vm-scalability.throughput -11.5% regression

2020-06-17 Thread Xing Zhengjun
On 6/16/2020 10:45 PM, Johannes Weiner wrote: On Tue, Jun 16, 2020 at 03:57:50PM +0800, kernel test robot wrote: Greeting, FYI, we noticed a -11.5% regression of vm-scalability.throughput due to commit: commit: 1431d4d11abb265e79cd44bed2f5ea93f1bcc57b ("mm: base LRU balancing on an explic

[PATCH 1/5] ARM: dts: imx6sx: Enable ASRC device

2020-06-17 Thread Shengjiu Wang
Add compatible string, update the clock table, add fsl,asrc-rate and fsl,asrc-width property. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx.dtsi | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/bo

[PATCH 3/5] ARM: dts: imx6sx-sdb: Add SPDIF support

2020-06-17 Thread Shengjiu Wang
Add SPDIF support. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx-sdb.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index 69a502b369c5..976fa8691007 100644 --- a/arch/arm/boot/dt

[PATCH 5/5] ARM: dts: imx6sx-sabreauto: Add cs42888 sound card support

2020-06-17 Thread Shengjiu Wang
Complete the ESAI node and Add cs42888 sound card support. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 75 ++ arch/arm/boot/dts/imx6sx.dtsi | 4 ++ 2 files changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.d

[PATCH 4/5] ARM: dts: imx6sx-sabreauto: Add SPDIF support

2020-06-17 Thread Shengjiu Wang
Add SPDIF support. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 825924448ab4..772b8ac5d637 100644 --- a/arc

[PATCH 2/5] ARM: dts: imx6sx-sdb: Add MQS support

2020-06-17 Thread Shengjiu Wang
Add MQS support. As the pin conflict with usdhc2, then need to add a separate dts. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sx-sdb-mqs.dts | 48 arch/arm/boot/dts/imx6sx-sdb.dtsi| 7 arch/arm/boot/d

[PATCH 0/5] Add audio support for imx6sx platform

2020-06-17 Thread Shengjiu Wang
Add audio support for imx6sx platform. Enable ASRC, ESAI, SPDIF, MQS. Shengjiu Wang (5): ARM: dts: imx6sx: Enable ASRC device ARM: dts: imx6sx-sdb: Add MQS support ARM: dts: imx6sx-sdb: Add SPDIF support ARM: dts: imx6sx-sabreauto: Add SPDIF support ARM: dts: imx6sx-sabreauto: Add cs4288

Re: [PATCH 2/2] cpufreq: arm_scmi: Set fast_switch_possible conditionally

2020-06-17 Thread Viresh Kumar
On 17-06-20, 13:47, Sudeep Holla wrote: > This is first step towards avoiding polling based cpufreq set if firmware > has fast access registers that bypass normal mailbox based messaging. > > If you happy with this and provide ack, I will take this along with scmi > changes via ARM SoC. Hope that

RE: [RFC PATCH v2 4/5] scsi: ufs: L2P map management for HPB read

2020-06-17 Thread Avri Altman
> > + > > > +static struct ufshpb_map_ctx *ufshpb_get_map_ctx(struct ufshpb_lu > *hpb) > > > +{ > > > + struct ufshpb_map_ctx *mctx; > > > + int i, j; > > > + > > > + mctx = mempool_alloc(ufshpb_drv.ufshpb_mctx_pool, GFP_KERNEL); > > > + if (!mctx) > > > + re

Re: [PATCH] [net/sched]: Remove redundant condition in qdisc_graft

2020-06-17 Thread kernel test robot
Hi Gaurav, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8-rc1 next-20200617] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https

Re: [PATCH v3] seccomp: Add find_notification helper

2020-06-17 Thread Nathan Chancellor
On Thu, Jun 18, 2020 at 05:44:14AM +, Sargun Dhillon wrote: > On Wed, Jun 17, 2020 at 01:08:44PM -0700, Nathan Chancellor wrote: > > On Mon, Jun 01, 2020 at 04:25:32AM -0700, Sargun Dhillon wrote: > > > This adds a helper which can iterate through a seccomp_filter to > > > find a notification m

[PATCH RFC 5/5] vdpasim: support batch updating

2020-06-17 Thread Jason Wang
The vDPA simulator support both set_map() and dma_map()/dma_unmap() operations. But vhost-vdpa can only use one of them. So this patch introduce a module parameter (batch_mapping) that let vpda_sim to support only one of those dma operations. The batched mapping via set_map() is enabled by default.

[PATCH RFC 4/5] vhost-vdpa: support IOTLB batching hints

2020-06-17 Thread Jason Wang
This patches extend the vhost IOTLB API to accept batch updating hints form userspace. When userspace wants update the device IOTLB in a batch, it may do: 1) Write vhost_iotlb_msg with VHOST_IOTLB_BATCH_BEGIN flag 2) Perform a batch of IOTLB updating via VHOST_IOTLB_UPDATE/INVALIDATE 3) Write vhos

[PATCH RFC 3/5] vhost-vdpa: support get/set backend features

2020-06-17 Thread Jason Wang
This patch makes userspace can get and set backend features to vhost-vdpa. Signed-off-by: Cindy Lu Signed-off-by: Jason Wang --- drivers/vhost/vdpa.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index db4c9cb44c61..453057421

[PATCH RFC 2/5] vhost: generialize backend features setting/getting

2020-06-17 Thread Jason Wang
Move the backend features setting/getting from net.c to vhost.c to be reused by vhost-vdpa. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 18 ++ drivers/vhost/vhost.c | 15 +++ drivers/vhost/vhost.h | 2 ++ 3 files changed, 19 insertions(+), 16 deletions(-)

[PATCH RFC 1/5] vhost-vdpa: refine ioctl pre-processing

2020-06-17 Thread Jason Wang
Switch to use 'switch' to make the codes more easier to be extended. Signed-off-by: Jason Wang --- drivers/vhost/vdpa.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 77a0c9fb6cc3..db4c9cb44c61 100644 --- a/drivers/v

[PATCH RFC 0/5] support batched IOTLB updating in vhost-vdpa

2020-06-17 Thread Jason Wang
Hi all: This series tries to support batched IOTLB updating vhost-vdpa. Currently vhost-vdpa accepts userspace mapping via IOTLB API, and it can only forward one mapping to IOMMU or device through IOMMU API or dma_map(). Though set_map() is deisgend to have the capability to pass an rbtree based

Re: + scripts-deprecated_terms-recommend-denylist-allowlist-instead-of-blacklist-whitelist.patch added to -mm tree

2020-06-17 Thread Joe Perches
On Wed, 2020-06-17 at 14:32 -0700, a...@linux-foundation.org wrote: > The patch titled > Subject: scripts/deprecated_terms: recommend denylist/allowlist instead > of blacklist/whitelist > has been added to the -mm tree. Its filename is > > scripts-deprecated_terms-recommend-denylist-al

Re: [PATCH v5 3/7] fs: Add fd_install_received() wrapper for __fd_install_received()

2020-06-17 Thread Sargun Dhillon
On Wed, Jun 17, 2020 at 03:03:23PM -0700, Kees Cook wrote: > For both pidfd and seccomp, the __user pointer is not used. Update > __fd_install_received() to make writing to ufd optional via a NULL check. > However, for the fd_install_received_user() wrapper, ufd is NULL checked > so an -EFAULT can

Re: [PATCH 4/5] dt-bindings: fpga: xilinx-slave-serial: add optional INIT_B GPIO

2020-06-17 Thread Luca Ceresoli
Hi Rob, Moritz, On 18/06/20 00:39, Rob Herring wrote: > On Thu, Jun 11, 2020 at 11:11:43PM +0200, Luca Ceresoli wrote: >> The INIT_B is used by the 6 and 7 series to report the programming status, >> providing more control and information about programming errors. >> >> Signed-off-by: Luca Ceresol

Re: [PATCH v3] seccomp: Add find_notification helper

2020-06-17 Thread Sargun Dhillon
On Wed, Jun 17, 2020 at 01:08:44PM -0700, Nathan Chancellor wrote: > On Mon, Jun 01, 2020 at 04:25:32AM -0700, Sargun Dhillon wrote: > > This adds a helper which can iterate through a seccomp_filter to > > find a notification matching an ID. It removes several replicated > > chunks of code. > > >

Re: [PATCH v3] libata: Use per port sync for detach

2020-06-17 Thread Kai-Heng Feng
Hi Jens, > On Jun 3, 2020, at 16:40, John Garry wrote: > > On 03/06/2020 08:48, Kai-Heng Feng wrote: >> Commit 130f4caf145c ("libata: Ensure ata_port probe has completed before >> detach") may cause system freeze during suspend. >> Using async_synchronize_full() in PM callbacks is wrong, since a

Re: [PATCH][next] bcache: Use struct_size() in kzalloc()

2020-06-17 Thread Joe Perches
On Thu, 2020-06-18 at 13:38 +0800, Coly Li wrote: > On 2020/6/18 06:27, Gustavo A. R. Silva wrote: > > Make use of the struct_size() helper instead of an open-coded version > > in order to avoid any potential type mistakes. [] > > diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/write

drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-06-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1b5044021070efa3259f3e9548dc35d1eb6aa844 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 7 months ago config: s390-randconfig-s032-20200618 (attached as .config)

Re: [PATCH][next] bcache: Use struct_size() in kzalloc()

2020-06-17 Thread Coly Li
On 2020/6/18 06:27, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes. > > This code was detected with the help of Coccinelle and, audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silva

Re: linux-next: Tree for Jun 18 (fs/io_uring)

2020-06-17 Thread Randy Dunlap
On 6/17/20 9:15 PM, Stephen Rothwell wrote: > Hi all, > > News: there will be no linux-next release tomorrow. > > Changes since 20200617: > when CONFIG_BLOCK is not set/enabled: ../fs/io_uring.c: In function 'io_async_task_func': ../fs/io_uring.c:4559:7: er

Re: [PATCH v2 0/8] Introduce sv48 support

2020-06-17 Thread Alex Ghiti
Hi Palmer, Le 6/3/20 à 4:10 AM, Alexandre Ghiti a écrit : This patchset implements sv48 support at runtime. The kernel will try to boot with 4-level page table and will fallback to 3-level if the HW does not support it.

[PATCH v3 3/3] media: v4l: xilinx: Add Xilinx UHD-SDI Rx Subsystem driver

2020-06-17 Thread Vishal Sagar
The Xilinx UHD-SDI Rx subsystem soft IP is used to capture native SDI streams from SDI sources like SDI broadcast equipment like cameras and mixers. This block outputs either native SDI, native video or AXI4-Stream compliant data stream for further processing. Please refer to PG290 for details. Th

[PATCH v3 0/3] Add support for Xilinx UHD-SDI Receiver subsystem

2020-06-17 Thread Vishal Sagar
Xilinx SMPTE UHD-SDI Receiver Subsystem The SMPTE UHD-SDI Receiver (RX) Subsystem allows you to quickly create systems based on SMPTE SDI protocols. It receives unaligned native SDI streams from the SDI GT PHY and outputs an AXI4-Stream video stream, native

[PATCH v3 2/3] media: dt-bindings: media: xilinx: Add Xilinx UHD-SDI Receiver Subsystem

2020-06-17 Thread Vishal Sagar
Add bindings documentation for Xilinx UHD-SDI Receiver Subsystem. The Xilinx UHD-SDI Receiver Subsystem consists of SMPTE UHD-SDI (RX) IP core, an SDI RX to Video Bridge IP core to convert SDI video to native video and a Video In to AXI4-Stream IP core to convert native video to AXI4-Stream. Sign

[PATCH v3 1/3] v4l2-dv-timings: Add timings for 1920x1080P48 and 4KP48

2020-06-17 Thread Vishal Sagar
Add the timing entry for 1920x1080p48, 3840x2160p48 and 4096x2160p48 from CTA-861-G. 1920x1080p48 is VIC 111. 3840x2160P48 is VIC 114. 4096x2160P48 is VIC 115. Signed-off-by: Vishal Sagar --- v3 - Added for first time include/uapi/linux/v4l2-dv-timings.h | 31 +++- 1 fil

[PATCH -next] lib: fix test_hmm.c reference after free

2020-06-17 Thread Randy Dunlap
linux-next-20200617.orig/lib/test_hmm.c +++ linux-next-20200617/lib/test_hmm.c @@ -520,8 +520,7 @@ static bool dmirror_allocate_chunk(struc err_free: kfree(devmem); err_release: - release_mem_region(devmem->pagemap.res.start, - resource_size(&de

Re: [pipe] 566d136289: stress-ng.tee.ops_per_sec -84.7% regression

2020-06-17 Thread Tetsuo Handa
On 2020/06/18 9:51, kernel test robot wrote: > FYI, we noticed a -84.7% regression of stress-ng.tee.ops_per_sec due to > commit: > > > commit: 566d136289dc57816ac290de87a9a0f7d9bd3cbb ("pipe: Fix pipe_full() test > in opipe_prep().") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux

mmotm 2020-06-17-22-17 uploaded

2020-06-17 Thread akpm
The mm-of-the-moment snapshot 2020-06-17-22-17 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH v3 1/2] ALSA: hda/realtek: Add COEF controlled micmute LED support

2020-06-17 Thread Kai-Heng Feng
> On Jun 17, 2020, at 23:50, Takashi Iwai wrote: > > On Wed, 17 Jun 2020 17:24:30 +0200, > Kai-Heng Feng wrote: >> >> >> >>> On Jun 17, 2020, at 19:55, Takashi Iwai wrote: >>> >>> On Wed, 17 Jun 2020 12:29:01 +0200, >>> Kai-Heng Feng wrote: Currently, HDA codec LED class can on

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-17 Thread Sumit Garg
On Thu, 18 Jun 2020 at 10:29, Sumit Garg wrote: > > Hi Jerome, > > On Wed, 17 Jun 2020 at 20:46, Jerome Forissier wrote: > > > > > > > > On 6/17/20 3:58 PM, Sumit Garg wrote: > > > Hi Maxim, > > > > > > On Thu, 4 Jun 2020 at 23:28, Maxim Uvarov wrote: > > >> > > >> With the evolving use-cases fo

Re: [PATCH] sparse: use identifiers to define address spaces

2020-06-17 Thread Luc Van Oostenryck
On Thu, Jun 18, 2020 at 03:22:15AM +0200, Miguel Ojeda wrote: > Hi Luc, Hi Miguel, > On Thu, Jun 18, 2020 at 12:02 AM Luc Van Oostenryck > wrote: > > > > diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h > > index 21aed0981edf..e368384445b6 100644 > > --- a/include/lin

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-17 Thread Sumit Garg
Hi Jerome, On Wed, 17 Jun 2020 at 20:46, Jerome Forissier wrote: > > > > On 6/17/20 3:58 PM, Sumit Garg wrote: > > Hi Maxim, > > > > On Thu, 4 Jun 2020 at 23:28, Maxim Uvarov wrote: > >> > >> With the evolving use-cases for TEE bus, now it's required to support > >> multi-stage enumeration proce

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

2020-06-17 Thread Rajendra Nayak
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 to set clk/perf state spi: spi-geni-qcom: Use OPP API to s

linux-next: Tree for Jun 18

2020-06-17 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release tomorrow. Changes since 20200617: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The ipsec tree gained conflicts against Linus' tree. The amdgpu tree still had its build failure so I u

Re: [PATCH 00/12] KVM: arm64: Support stage2 hardware DBM

2020-06-17 Thread zhukeqian
Hi, On 2020/6/16 17:35, Keqian Zhu wrote: > This patch series add support for stage2 hardware DBM, and it is only > used for dirty log for now. > > It works well under some migration test cases, including VM with 4K > pages or 2M THP. I checked the SHA256 hash digest of all memory and > they keep

memory leak in macvlan_hash_add_source

2020-06-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11fbb45610 kernel config: https://syzkaller.appspot.com/x/.config?x=9a1aa05456dfd557 das

[PATCH] [net/sched]: Remove redundant condition in qdisc_graft

2020-06-17 Thread Gaurav Singh
parent cannot be NULL here since its in the else part of the if (parent == NULL) condition. Remove the extra check on parent pointer. Signed-off-by: Gaurav Singh --- net/sched/sch_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c

RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC

2020-06-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Thursday, June 18, 2020 11:18 AM > > > From: Aisheng Dong > > Sent: 2020年6月18日 11:09 > > > > > From: Anson Huang > > > Sent: Wednesday, June 17, 2020 8:36 PM > > > > > > > Subject: RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC > > > > > > > > > From: Anson

[PATCH] kunit: fix KconfigParseError by ignoring CC_VERSION_TEXT

2020-06-17 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 and this causes the failure below: [iha@bbking linux]$ tools/testing/kunit/kunit.py run --timeout=60 [00:20:12] Configuring KU

[tip:x86/cleanups] BUILD SUCCESS 2accfa69050c2a0d6fc6106f609208b3e9622b26

2020-06-17 Thread kernel test robot
allmodconfig powerpc allnoconfig i386 randconfig-a006-20200617 i386 randconfig-a002-20200617 i386 randconfig-a001-20200617 i386 randconfig-a004-20200617 i386 randconfig-a005-20200617 i386

Re: [PATCH] [net/sched] Fix null pointer deref skb in tc_ctl_action

2020-06-17 Thread Eric Dumazet
On 6/17/20 6:43 PM, Gaurav Singh wrote: > Add null check for skb > Bad choice really. You have to really understand code intent before trying to fix it. > Signed-off-by: Gaurav Singh > --- > net/sched/act_api.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/n

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

2020-06-17 Thread Florian Fainelli
of_find_node_by_name() will do an of_node_put() on the "from" argument. With CONFIG_OF_DYNAMIC enabled which checks for device_node reference counts, we would be getting a warning like this: [6.347230] refcount_t: increment on 0; use-after-free. [6.352498] WARNING: CPU: 3 PID: 77 at lib/re

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

2020-06-17 Thread Xia Jiang
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 Jiang > > --- > > v8: no changes > > > > v7: no changes > > > > v6:

Re: [PATCH] [net/sched]: Remove redundant condition in qdisc_graft

2020-06-17 Thread Eric Dumazet
On 6/17/20 6:23 PM, Gaurav Singh wrote: > Signed-off-by: Gaurav Singh Two Signed-off-by ? > > Fix build errors Your patch does not fix a build error. > > Signed-off-by: Gaurav Singh > --- > net/sched/sch_api.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net

Re: [f2fs-dev] [PATCH] f2fs: avoid checkpatch error

2020-06-17 Thread Chao Yu
On 2020/6/17 3:02, Jaegeuk Kim wrote: > ERROR:INITIALISED_STATIC: do not initialise statics to NULL > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

[PATCH V4 3/3] dt-bindings: clock: Correct example in i.MX8QXP LPCG binding

2020-06-17 Thread Anson Huang
In i.MX8QXP LPCG binding's example, "fsl,imx7d-usdhc" as fallback compatible is incorrect, remove it to avoid below build error: Documentation/devicetree/bindings/clock/imx8qxp-lpcg.example.dt.yaml: mmc@5b01: compatible: Additional items are not allowed ('fsl,imx7d-usdhc' was unexpected) Docu

[PATCH V4 2/3] dt-bindings: clock: Correct mmc node name in i.MX35 binding

2020-06-17 Thread Anson Huang
Nodename should be "mmc" instead of "esdhc" in i.MX35 clock binding to avoid below build error: Documentation/devicetree/bindings/clock/imx35-clock.example.dt.yaml: esdhc@53fb4000: $nodename:0: 'esdhc@53fb4000' does not match '^mmc(@.*)?$' Signed-off-by: Anson Huang --- New patch, to fix build e

[PATCH V4 1/3] dt-bindings: mmc: Convert imx esdhc to json-schema

2020-06-17 Thread Anson Huang
Convert the i.MX ESDHC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- No change. --- .../devicetree/bindings/mmc/fsl-imx-esdhc.txt | 67 --- .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml | 124 + 2 files changed, 124 insertions

Re: [PATCH v3] f2fs: use kfree() instead of kvfree() to free superblock data

2020-06-17 Thread Chao Yu
On 2020/6/16 1:58, Jaegeuk Kim wrote: > On 06/09, Eric Biggers wrote: >> On Wed, Jun 10, 2020 at 01:14:46AM +0300, Denis Efremov wrote: >>> Use kfree() instead of kvfree() to free super in read_raw_super_block() >>> because the memory is allocated with kzalloc() in the function. >>> Use kfree() ins

回复: 回复: [PATCH] f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry

2020-06-17 Thread Zac
> On 2020/6/18 10:39, Zac wrote: > > > >> On 2020/6/17 17:04, zhaowu...@wingtech.com wrote: > >>> From: Wuyun Zhao > >>> > >>> Under some condition, the __write_node_page will submit a page which > is > >> not > >>> f2fs_in_warm_node_list and will not call f2fs_add_fsync_node_entry. > >>> f2fs_gc

[PATCH 1/2] spi: spidev: fix a race between spidev_release and spidev_remove

2020-06-17 Thread Zhenzhong Duan
Imagine below scene, spidev is referenced after it's freed. spidev_release()spidev_remove() ... spin_lock_irq(&spidev->spi_lock); spidev->spi = NULL; spin_unlock_irq(&spidev->spi_loc

[PATCH 2/2] spi: spidev: fix a potential use-after-free in spidev_release()

2020-06-17 Thread Zhenzhong Duan
If an spi device is unbounded from the driver before the release process, there will be an NULL pointer reference when it's referenced in spi_slave_abort(). Fix it by checking it's already freed before reference. Signed-off-by: Zhenzhong Duan --- drivers/spi/spidev.c | 20 ++--

Re: [PATCH v2 09/16] rcu/tree: Maintain separate array for vmalloc ptrs

2020-06-17 Thread Paul E. McKenney
On Wed, Jun 17, 2020 at 05:52:14PM -0700, Matthew Wilcox wrote: > On Wed, Jun 17, 2020 at 04:46:09PM -0700, Paul E. McKenney wrote: > > > + // Handle two first channels. > > > + for (i = 0; i < FREE_N_CHANNELS; i++) { > > > + for (; bkvhead[i]; bkvhead[i] = bnext) { > > > +

RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC

2020-06-17 Thread Anson Huang
> -Original Message- > From: Aisheng Dong > Sent: 2020年6月18日 11:09 > To: Anson Huang ; li...@armlinux.org.uk; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; mturque...@baylibre.com; sb...@kernel.org; > oleksandr.suvo...@toradex.com; Stefan Agn

Re: [PATCH v5 01/13] powerpc: Remove Xilinx PPC405/PPC440 support

2020-06-17 Thread Nathan Chancellor
On Thu, Jun 18, 2020 at 10:48:21AM +1000, Michael Ellerman wrote: > Nick Desaulniers writes: > > On Wed, Jun 17, 2020 at 3:20 AM Michael Ellerman > > wrote: > >> Michael Ellerman writes: > >> > Michal Simek writes: > >> > >> > >> >> Or if bamboo requires uImage to be built by default you can

RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC

2020-06-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Wednesday, June 17, 2020 8:36 PM > > > Subject: RE: [PATCH V2 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC > > > > > From: Anson Huang > > > Sent: Tuesday, June 9, 2020 3:32 PM > > > > > > i.MX common clock drivers may support module build, so it is NOT > > > selected b

[tip:x86/misc] BUILD SUCCESS 5603119e48d0fee163a827c2342b372f1a0e913c

2020-06-17 Thread kernel test robot
defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200617 i386 randconfig-a002-20200617

Re: [PATCH v5 09/12] PCI: brcmstb: Set internal memory viewport sizes

2020-06-17 Thread Bjorn Helgaas
On Wed, Jun 17, 2020 at 01:28:12PM -0400, Jim Quinlan wrote: > Hello Bjorn, > > On Tue, Jun 16, 2020 at 6:05 PM Bjorn Helgaas wrote: > > > > On Tue, Jun 16, 2020 at 04:55:16PM -0400, Jim Quinlan wrote: > > > BrcmSTB PCIe controllers are intimately connected to the memory > > > controller(s) on th

[PATCH] [v2] pinctrl: meson: fix drive strength register and bit calculation

2020-06-17 Thread Hyeonki Hong
If a GPIO bank has greater than 16 pins, PAD_DS_REG is split into two or more registers. However, when register and bit were calculated, the first register defined in the bank was used, and the bit was calculated based on the first pin. This causes problems in setting the driving strength. The fol

[PATCH v2] f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry

2020-06-17 Thread zhaowuyun
From: Wuyun Zhao Under some condition, the __write_node_page will submit a page which is not f2fs_in_warm_node_list and will not call f2fs_add_fsync_node_entry. f2fs_gc continue to run to invoke f2fs_iget -> do_read_inode to read the same node page and set code node, which make f2fs_in_warm_node

Re: 回复: [PATCH] f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry

2020-06-17 Thread Chao Yu
On 2020/6/18 10:39, Zac wrote: > >> On 2020/6/17 17:04, zhaowu...@wingtech.com wrote: >>> From: Wuyun Zhao >>> >>> Under some condition, the __write_node_page will submit a page which is >> not >>> f2fs_in_warm_node_list and will not call f2fs_add_fsync_node_entry. >>> f2fs_gc continue to run to

[PATCH AUTOSEL 5.7 012/388] staging: wfx: check ssidlen and prevent an array overflow

2020-06-17 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 87f86cddda65cab8a7e3df8a00e16abeccaa0730 ] We need to cap "ssidlen" to prevent a memcpy() overflow. Fixes: 40115bbc40e2 ("staging: wfx: implement the rest of mac80211 API") Signed-off-by: Dan Carpenter Reviewed-by: Jérôme Pouiller Link: https://lore.kerne

[PATCH AUTOSEL 5.7 007/388] ASoC: SOF: imx8: Fix randbuild error

2020-06-17 Thread Sasha Levin
From: YueHaibing [ Upstream commit fe17e6cdc0fefca96ba9659be4b2b07487cbf0c5 ] when do randconfig like this: CONFIG_SND_SOC_SOF_IMX8_SUPPORT=y CONFIG_SND_SOC_SOF_IMX8=y CONFIG_SND_SOC_SOF_OF=y CONFIG_IMX_DSP=m CONFIG_IMX_SCU=y there is a link error: sound/soc/sof/imx/imx8.o: In function 'imx8_s

Re: [PATCH] tools/thermal: tmon: include pthread and time headers in tmon.h

2020-06-17 Thread Florian Fainelli
On 6/17/2020 4:58 PM, Markus Mayer wrote: > Include sys/time.h and pthread.h in tmon.h, so that types > "pthread_mutex_t" and "struct timeval tv" are known when tmon.h > references them. > > Without these headers, compiling tmon against musl-libc will fail with > these errors: > > In file incl

[PATCH AUTOSEL 5.7 006/388] i2c: piix4: Detect secondary SMBus controller on AMD AM4 chipsets

2020-06-17 Thread Sasha Levin
From: Adam Honse [ Upstream commit f27237c174fd965300e4e532cd9d153ce824 ] The AMD X370 and other AM4 chipsets (A/B/X 3/4/5 parts) and Threadripper equivalents have a secondary SMBus controller at I/O port address 0x0B20. This bus is used by several manufacturers to control motherboard RGB l

[PATCH AUTOSEL 5.7 011/388] clk: qcom: msm8916: Fix the address location of pll->config_reg

2020-06-17 Thread Sasha Levin
From: Bryan O'Donoghue [ Upstream commit f47ab3c2f5338828a67e89d5f688d2cef9605245 ] During the process of debugging a processor derived from the msm8916 which we found the new processor was not starting one of its PLLs. After tracing the addresses and writes that downstream was doing and compar

[Linux] [PATCH] Kernel selftests: tpm2: upgrade tpm2 tests from python2 to python3

2020-06-17 Thread Pengfei Xu
Some Linux OS will never support python2 anymore, so upgrade tpm2 selftests to python3. Signed-off-by: Pengfei Xu --- tools/testing/selftests/tpm2/test_smoke.sh | 4 +- tools/testing/selftests/tpm2/test_space.sh | 2 +- tools/testing/selftests/tpm2/tpm2.py | 68 ++ to

[PATCH AUTOSEL 5.7 008/388] iio: pressure: bmp280: Tolerate IRQ before registering

2020-06-17 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 97b31a6f5fb95b1ec6575b78a7240baddba34384 ] With DEBUG_SHIRQ enabled we have a kernel crash [ 116.482696] BUG: kernel NULL pointer dereference, address: ... [ 116.606571] Call Trace: [ 116.609023] [ 116.611047] complete+0x34/0x50

[PATCH AUTOSEL 5.7 003/388] clk: sunxi: Fix incorrect usage of round_down()

2020-06-17 Thread Sasha Levin
From: Rikard Falkeborn [ Upstream commit ee25d9742dabed3fd18158b518f846abeb70f319 ] round_down() can only round to powers of 2. If round_down() is asked to round to something that is not a power of 2, incorrect results are produced. The incorrect results can be both too large and too small. Ins

[PATCH AUTOSEL 5.7 019/388] arm64: dts: renesas: Fix IOMMU device node names

2020-06-17 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit cf8ae446bbcbf5c48214eb7ddaa6ac6e12f4633d ] Fix IOMMU device node names as "iommu@". Fixes: 8f507babc617 ("arm64: dts: renesas: r8a774a1: Add IPMMU device nodes") Fixes: 63093a8e58be ("arm64: dts: renesas: r8a774b1: Add IPMMU device nodes") Fixes: 6c7e02

[PATCH AUTOSEL 5.7 017/388] ARM: integrator: Add some Kconfig selections

2020-06-17 Thread Sasha Levin
From: Linus Walleij [ Upstream commit d2854bbe5f5c4b4bec8061caf4f2e603d8819446 ] The CMA and DMA_CMA Kconfig options need to be selected by the Integrator in order to produce boot console on some Integrator systems. The REGULATOR and REGULATOR_FIXED_VOLTAGE need to be selected in order to boot

  1   2   3   4   5   6   7   8   9   10   >