[PATCH v2 1/2] perf evlist: Ensure grouped events with same cpu map

2020-05-24 Thread Jin Yao
A metric may consist of core event and uncore event (or other per-socket event) For example, the metric "C2_Pkg_Residency" consists of "cstate_pkg/c2-residency" and "msr/tsc". The former is per-socket event and the latter is per-cpu event. "C2_Pkg_Residency" hits assertion failure on cascadelakex

[PATCH v2 2/2] perf test: Add test case for group members

2020-05-24 Thread Jin Yao
The evlist may consist of some event + group combinations. For example, perf stat -e "A,{B,C},D". This patch testes the event in evlist to see if it has the correct leader and correct nr_members. Signed-off-by: Jin Yao --- tools/perf/tests/parse-events.c | 35 -

答复: [PATCH] [V2] mmc: rtsx: Add SD Express mode support for RTS5261

2020-05-24 Thread 冯锐
> On Fri, May 22, 2020 at 11:16 AM Greg KH > wrote: > > > > On Tue, May 19, 2020 at 03:59:23PM +0800, rui_f...@realsil.com.cn wrote: > > > From: rui_feng > > > > > > RTS5261 support legacy SD mode and SD Express mode. > > > In SD7.x, SD association introduce SD Express as a new mode. > > > SD Exp

Re: [PATCH v2 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-05-24 Thread Zhenyu Ye
On 2020/5/22 23:49, Catalin Marinas wrote: > On Thu, Apr 23, 2020 at 09:56:53PM +0800, Zhenyu Ye wrote: >> @@ -190,8 +196,8 @@ static inline void flush_tlb_page_nosync(struct >> vm_area_struct *vma, >> unsigned long addr = __TLBI_VADDR(uaddr, ASID(vma->vm_mm)); >> >> dsb(ishst); >> -

Re: [PATCH v3 7/7] iommu/mediatek: Add mt6779 basic support

2020-05-24 Thread Yong Wu
On Sat, 2020-05-09 at 16:36 +0800, Chao Hao wrote: > 1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add >REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. > 2. Change PROTECT_PA_ALIGN from 128 byte to 256 byte. > 3. For REG_MMU_CTRL_REG register, we only need to change bit[2:0],

Re: [PATCH v2 2/6] arm64: Add level-hinted TLB invalidation helper

2020-05-24 Thread Zhenyu Ye
On 2020/5/22 23:50, Catalin Marinas wrote: > On Thu, Apr 23, 2020 at 09:56:52PM +0800, Zhenyu Ye wrote: >> diff --git a/arch/arm64/include/asm/tlbflush.h >> b/arch/arm64/include/asm/tlbflush.h >> index bc3949064725..5f9f189bc6d2 100644 >> --- a/arch/arm64/include/asm/tlbflush.h >> +++ b/arch/arm64

Re: [PATCHv2 2/2] tpm_ftpm_tee: register driver on TEE bus

2020-05-24 Thread Maxim Uvarov
On Fri, 22 May 2020 at 23:03, Jarkko Sakkinen wrote: > > On Fri, May 22, 2020 at 10:29:44PM +0300, Maxim Uvarov wrote: > > On Fri, 22 May 2020 at 20:15, Jarkko Sakkinen > > wrote: > > > > > > On Thu, May 21, 2020 at 09:47:43AM +0300, Maxim Uvarov wrote: > > > > Register driver on TEE bus. module

Re: [git pull] habanalabs second pull request for kernel 5.8

2020-05-24 Thread Greg KH
On Mon, May 25, 2020 at 08:28:19AM +0300, Oded Gabbay wrote: > Hello Greg, > > This is the second pull request for habanalabs driver for kernel 5.8. > > It contains important improvements to our MMU code and our ASIC reset code. > > Please see the tag message for more details on what this pull r

Re: [PATCH 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-24 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Markus, On 2020/5/25 14:05, Markus Elfring wrote: >> The system will crash when we insmod crypto/tcrypt.ko whit mode=38. > > * I suggest to use the word “with” in this sentence. > OK, it's a typo. > * Will it be helpful to explain the passed mode number? > > >> BTW I add a check for sg_nen

Re: [PATCH 5/8] riscv: Implement sv48 support

2020-05-24 Thread Anup Patel
On Sun, May 24, 2020 at 2:45 PM Alexandre Ghiti wrote: > > By adding a new 4th level of page table, give the possibility to 64bit > kernel to address 2^48 bytes of virtual address: in practice, that roughly > offers ~160TB of virtual address space to userspace and allows up to 64TB > of physical m

Re: [PATCH v2 3/7] mm/swap: Use local_lock for protection

2020-05-24 Thread Ingo Molnar
* Sebastian Andrzej Siewior wrote: > From: Ingo Molnar > > The various struct pagevec per CPU variables are protected by disabling > either preemption or interrupts across the critical sections. Inside > these sections spinlocks have to be acquired. > diff --git a/mm/swap.c b/mm/swap.c > in

Re: [PATCH] workqueue: Fix double kfree(rescuer) in destroy_workqueue()

2020-05-24 Thread qzhang2
Sorry I didn't describe clearly I describe the meaning as follows: destroy_workqueue: if(wq->rescuer) struct worker *rescuer = wq->rescuer kfree(rescuer) //first kfree if (!(wq->flags & WQ_UNBOUND)) call_rcu(&wq-

Re: [PATCH 3/3] usb: dwc3: keystone: Turn on USB3 PHY before controller

2020-05-24 Thread Roger Quadros
On 25/05/2020 09:39, Roger Quadros wrote: Felipe, On 14/05/2020 13:21, Felipe Balbi wrote: Roger Quadros writes: On 14/05/2020 04:37, Chunfeng Yun wrote: On Wed, 2020-05-13 at 16:07 +0300, Roger Quadros wrote: The Local Power Sleep Controller (LPSC) dependency on AM65 requires SERDES0 t

[PATCH v1] clk: mediatek: assign the initial value to clk_init_data of mtk_mux

2020-05-24 Thread Weiyi Lu
It'd be dangerous when struct clk_core have new memebers. Add the missing initial value to clk_init_data. Fixes: a3ae549917f1 ("clk: mediatek: Add new clkmux register API") Cc: Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 3/3] usb: dwc3: keystone: Turn on USB3 PHY before controller

2020-05-24 Thread Roger Quadros
Felipe, On 14/05/2020 13:21, Felipe Balbi wrote: Roger Quadros writes: On 14/05/2020 04:37, Chunfeng Yun wrote: On Wed, 2020-05-13 at 16:07 +0300, Roger Quadros wrote: The Local Power Sleep Controller (LPSC) dependency on AM65 requires SERDES0 to be powered on before USB. We need to power

Re: [PATCH] perf evlist: Ensure grouped events with same cpu map

2020-05-24 Thread Jin, Yao
Hi Jiri, On 5/22/2020 5:53 PM, Jiri Olsa wrote: On Thu, May 21, 2020 at 02:22:40PM +0800, Jin Yao wrote: SNIP --- tools/perf/builtin-stat.c | 3 +++ tools/perf/util/evlist.c | 32 tools/perf/util/evlist.h | 5 + 3 files changed, 40 insertions(+)

Re: [PATCH v3 5/7] bus: mhi: core: Introduce debugfs entries and counters for MHI

2020-05-24 Thread Greg KH
On Mon, May 18, 2020 at 01:03:59PM -0700, Bhaumik Bhatt wrote: > +void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) > +{ > + if (IS_ERR_OR_NULL(mhi_debugfs_root)) > + return; Why? Should not matter. > + mhi_cntrl->debugfs_dentry = > + debugfs_creat

Re: [PATCH v3 5/7] iommu/mediatek: Add sub_comm id in translation fault

2020-05-24 Thread Yong Wu
On Sat, 2020-05-09 at 16:36 +0800, Chao Hao wrote: > The max larb number that a iommu HW support is 8(larb0~larb7 in the below > diagram). > If the larb's number is over 8, we use a sub_common for merging > several larbs into one larb. At this case, we will extend larb_id: > bit[11:9] means common-

Re: [PATCH 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-24 Thread Markus Elfring
> … So the system will crash > at last when this memory be used again. I would prefer a wording with less typos here. > We can free the resources before calling ->complete to fix this issue. * An imperative wording can be nicer. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.

Re: [f2fs-dev] [PATCH v3] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-24 Thread Chao Yu
On 2020/5/25 11:56, Jaegeuk Kim wrote: > Shutdown test is somtimes hung, since it keeps trying to flush dirty node > pages IMO, for umount case, we should drop dirty reference and dirty pages on meta/data pages like we change for node pages to avoid potential dead loop... Thanks, > in an inifi

Re: [PATCH v2 2/7] radix-tree: Use local_lock for protection

2020-05-24 Thread Ingo Molnar
* Sebastian Andrzej Siewior wrote: > The radix-tree and idr preload mechanisms use preempt_disable() to protect > the complete operation between xxx_preload() and xxx_preload_end(). > > As the code inside the preempt disabled section acquires regular spinlocks, > which are converted to 'sleepi

[PATCH] drivers: ipa: print dev_err info accurately

2020-05-24 Thread Wang Wenhu
Print certain name string instead of hard-coded "memory" for dev_err output, which would be more accurate and helpful for debugging. Signed-off-by: Wang Wenhu Cc: Alex Elder --- drivers/net/ipa/ipa_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ipa/i

RE: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-24 Thread Jianyong Wu
Hi Richard, > -Original Message- > From: Richard Cochran > Sent: Monday, May 25, 2020 2:16 PM > To: Jianyong Wu > Cc: m...@kernel.org; net...@vger.kernel.org; yangbo...@nxp.com; > john.stu...@linaro.org; t...@linutronix.de; pbonz...@redhat.com; > sean.j.christopher...@intel.com; Mark Rut

Re: [PATCH] workqueue: Fix double kfree(rescuer) in destroy_workqueue()

2020-05-24 Thread qzhang2
Sorry I didn't describe clearly I describe the meaning as follows: destroy_workqueue if(wq->rescuer) struct worker *rescuer = wq->rescuer kfree(rescuer) .. if (!(wq->flags & WQ

Re: [PATCH v3 4/7] iommu/mediatek: Move inv_sel_reg into the plat_data

2020-05-24 Thread Yong Wu
On Sat, 2020-05-09 at 16:36 +0800, Chao Hao wrote: > For mt6779, MMU_INVLDT_SEL register's offset is changed from At this patch, the register is still called by "MMU_INV_SEL". > 0x38 to 0x2c, so we can put inv_sel_reg in the plat_data to > use it. > In addition, we renamed it to REG_MMU_INV_SEL_G

Re: [PATCH 7/8] riscv: Use pgtable_l4_enabled to output mmu type in cpuinfo

2020-05-24 Thread Anup Patel
On Sun, May 24, 2020 at 2:47 PM Alexandre Ghiti wrote: > > Now that the mmu type is determined at runtime using SATP > characteristic, use the global variable pgtable_l4_enabled to output > mmu type of the processor through /proc/cpuinfo instead of relying on > device tree infos. > > Signed-off-by

Re: [PATCH] ASoC: fsl_asrc: Merge suspend/resume function to runtime_suspend/resume

2020-05-24 Thread Nicolin Chen
On Mon, May 25, 2020 at 02:11:18PM +0800, Shengjiu Wang wrote: > > > @@ -1135,6 +1137,24 @@ static int fsl_asrc_runtime_resume(struct device > > > *dev) > > > goto disable_asrck_clk; > > > } > > > > > > + /* Stop all pairs provisionally */ > > > + regmap_read(as

Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-24 Thread Richard Cochran
On Mon, May 25, 2020 at 04:50:28AM +, Jianyong Wu wrote: > How about adding an extra argument in struct ptp_clock_info to serve as a > flag, then we can control this flag using IOCTL to determine the counter type. no, No, NO! > > From your description, this "flag" really should be a module p

Re: [PATCH v3 3/7] iommu/mediatek: Disable STANDARD_AXI_MODE in MISC_CTRL

2020-05-24 Thread Yong Wu
On Sat, 2020-05-09 at 16:36 +0800, Chao Hao wrote: > In order to improve performance, we always disable STANDARD_AXI_MODE in > MISC_CTRL. > > Signed-off-by: Chao Hao > --- > drivers/iommu/mtk_iommu.c | 8 +++- > drivers/iommu/mtk_iommu.h | 1 + > 2 files changed, 8 insertions(+), 1 deletion(

Re: [PATCH] ASoC: fsl_asrc: Merge suspend/resume function to runtime_suspend/resume

2020-05-24 Thread Nicolin Chen
On Fri, May 22, 2020 at 05:57:24PM +0800, Shengjiu Wang wrote: > With dedicated power domain for asrc, power can be disabled after > probe and pm runtime suspend, then the value of all registers need to > be restored in pm runtime resume. So we can merge suspend/resume function > to runtime_suspend

Re: [PATCH 0/4] kernfs: proposed locking and concurrency improvement

2020-05-24 Thread Greg Kroah-Hartman
On Mon, May 25, 2020 at 01:46:59PM +0800, Ian Kent wrote: > For very large systems with hundreds of CPUs and TBs of RAM booting can > take a very long time. > > Initial reports showed that booting a configuration of several hundred > CPUs and 64TB of RAM would take more than 30 minutes and require

Re: [PATCH 1/2] mmc: host: meson-mx-sdhc: fix manual RX FIFO flushing

2020-05-24 Thread Thomas Graichen
On Mon, May 18, 2020 at 12:29 AM Martin Blumenstingl wrote: > > For Meson8 and Meson8b SoCs the vendor driver follows the following > pattern: > - for eMMC and SD cards in .set_pdma it sets: > pdma->rxfifo_manual_flush = 1; > - for SDIO cards in .set_pdma it sets: > pdma->rxfifo_manual_flush =

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-24 Thread Masahiro Yamada
Hi Sam, Thanks for the comments. On Sun, May 24, 2020 at 1:54 AM Sam Ravnborg wrote: > > Hi Masahiro. > > On Sun, May 24, 2020 at 12:12:35AM +0900, Masahiro Yamada wrote: > > Hi Nicholas, > > (+CC: Sam Ravnborg) > > > > > > On Sat, May 23, 2020 at 7:06 PM Nicholas Piggin wrote: > > > > > > Exce

Re: [PATCH v3 2/7] iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL

2020-05-24 Thread Yong Wu
On Sat, 2020-05-09 at 16:36 +0800, Chao Hao wrote: > For iommu offset=0x48 register, only the previous mt8173/mt8183 use the > name STANDARD_AXI_MODE, all the latest SoC extend the register more > feature by different bits, for example: axi_mode, in_order_en, coherent_en > and so on. So rename REG_

Re: [PATCH 6/8] riscv: Allow user to downgrade to sv39 when hw supports sv48

2020-05-24 Thread Anup Patel
On Sun, May 24, 2020 at 2:46 PM Alexandre Ghiti wrote: > > This is made possible by using the mmu-type property of the cpu node of > the device tree. > > By default, the kernel will boot with 4-level page table if the hw supports > it but it can be interesting for the user to select 3-level page t

Re: [PATCH] ASoC: fsl_asrc: Merge suspend/resume function to runtime_suspend/resume

2020-05-24 Thread Shengjiu Wang
On Mon, May 25, 2020 at 1:12 PM Nicolin Chen wrote: > > On Fri, May 22, 2020 at 05:57:24PM +0800, Shengjiu Wang wrote: > > With dedicated power domain for asrc, power can be disabled after > > probe and pm runtime suspend, then the value of all registers need to > > be restored in pm runtime resum

[PATCH] staging: greybus: loopback: fix a spelling error.

2020-05-24 Thread Till Varoquaux
Successed -> succeeded. Signed-off-by: Till Varoquaux --- drivers/staging/greybus/loopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 583d9708a191..2471448ba42a 100644 --- a/drivers/staging

Re: [PATCH 5/8] riscv: Implement sv48 support

2020-05-24 Thread Anup Patel
On Sun, May 24, 2020 at 2:45 PM Alexandre Ghiti wrote: > > By adding a new 4th level of page table, give the possibility to 64bit > kernel to address 2^48 bytes of virtual address: in practice, that roughly > offers ~160TB of virtual address space to userspace and allows up to 64TB > of physical m

Re: [PATCH 4/4] x86/boot: Check that there are no runtime relocations

2020-05-24 Thread Ard Biesheuvel
On Sun, 24 May 2020 at 23:28, Arvind Sankar wrote: > > Add a linker script check that there are no runtime relocations, and > remove the old one that tries to check via looking for specially-named > sections in the object files. > > Drop the tests for -fPIE compiler option and -pie linker option,

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-24 Thread Joe Perches
On Mon, 2020-05-25 at 14:03 +0900, Tetsuo Handa wrote: > On 2020/05/25 4:18, Ondrej Mosnacek wrote: > > I'm also not sure if this is really worth it... It would help localize > > the bug in this specific case, but there is nothing systematic about > > it. Are there that many debug print statements

[PATCH] RDMA/core: fix missing release in add_port.

2020-05-24 Thread wu000273
From: Qiushi Wu In function add_port(), pointer p is not released in error paths. Fix this issue by adding a kfree(p) into the end of error path. Signed-off-by: Qiushi Wu --- drivers/infiniband/core/sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/core/sysfs.c b/d

Re: [PATCH 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-24 Thread Markus Elfring
> The system will crash when we insmod crypto/tcrypt.ko whit mode=38. * I suggest to use the word “with” in this sentence. * Will it be helpful to explain the passed mode number? > BTW I add a check for sg_nents_for_len() its return value since > sg_nents_for_len() function could fail. Please

Re: [linux-next RFC v2] mm/gup.c: Convert to use get_user_{page|pages}_fast_only()

2020-05-24 Thread Souptick Joarder
On Mon, May 25, 2020 at 6:36 AM John Hubbard wrote: > > On 2020-05-23 21:27, Souptick Joarder wrote: > > API __get_user_pages_fast() renamed to get_user_pages_fast_only() > > to align with pin_user_pages_fast_only(). > > > > As part of this we will get rid of write parameter. Instead caller > > wi

Re: [PATCH 4/8] riscv: Prepare ptdump for vm layout dynamic addresses

2020-05-24 Thread Anup Patel
On Sun, May 24, 2020 at 2:44 PM Alexandre Ghiti wrote: > > This is a preparatory patch for sv48 support that will introduce > dynamic PAGE_OFFSET. > > Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...) > whose addresses depend on PAGE_OFFSET become dynamic and can't be used

[PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.

2020-05-24 Thread wu000273
From: Qiushi Wu Function "pm_runtime_get_sync()" is not handled by "pm_runtime_put()" if "PTR_ERR(rst) == -EPROBE_DEFER". Fix this issue by adding "pm_runtime_put()" into this error path. Fixes: f65bb92ca12e ("ASoC: img-i2s-in: Add runtime PM") Signed-off-by: Qiushi Wu --- sound/soc/img/img-i2

[PATCH 0/4] kernfs: proposed locking and concurrency improvement

2020-05-24 Thread Ian Kent
For very large systems with hundreds of CPUs and TBs of RAM booting can take a very long time. Initial reports showed that booting a configuration of several hundred CPUs and 64TB of RAM would take more than 30 minutes and require kernel parameters of udev.children-max=1024 systemd.default_timeout

[PATCH 2/2] modpost: refactor sech_name()

2020-05-24 Thread Masahiro Yamada
Use sym_get_data_offset() helper to get access to the .shstrtab section data. No functional change is intended because elf->sechdrs[elf->secindex_strings].sh_addr is 0 for both ET_REL and ET_EXEC object types. Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 22 ++

[PATCH 1/4] kernfs: switch kernfs to use an rwsem

2020-05-24 Thread Ian Kent
The kernfs global lock restricts the ability to perform kernfs node lookup operations in parallel. Change the kernfs mutex to an rwsem so that, when oppertunity arises, node searches can be done in parallel. Signed-off-by: Ian Kent --- fs/kernfs/dir.c | 119 +++-

[PATCH 1/2] modpost: fix potential segmentation fault for addend_i386_rel()

2020-05-24 Thread Masahiro Yamada
This may not be a practical problem, but the second pass of ARCH=i386 modpost causes segmentation fault if the -s option is not passed. MODPOST 12 modules Segmentation fault (core dumped) make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 139 make[1]: *** [Makefile:1339: modules

[PATCH 4/4] kernfs: use revision to identify directory node changes

2020-05-24 Thread Ian Kent
If a kernfs directory node hasn't changed there's no need to search for an added (or removed) child dentry. Add a revision counter to kernfs directory nodes so it can be used to detect if a directory node has changed. Signed-off-by: Ian Kent --- fs/kernfs/dir.c | 17 ++

[PATCH 3/4] kernfs: improve kernfs path resolution

2020-05-24 Thread Ian Kent
Now that an rwsem is used by kernfs, take advantage of it to reduce lookup overhead. If there are many lookups (possibly many negative ones) there can be a lot of overhead during path walks. To reduce lookup overhead avoid allocating a new dentry where possible. To do this stay in rcu-walk mode

[PATCH 2/4] kernfs: move revalidate to be near lookup

2020-05-24 Thread Ian Kent
While the dentry operation kernfs_dop_revalidate() is grouped with dentry'ish functions it also has a strong afinity to the inode operation ->lookup(). And when path walk improvements are applied it will need to call kernfs_find_ns() so move it to be near kernfs_iop_lookup() to avoid the need for a

RE: [PATCH v2 0/2] enable spi flash and update is25wp256d page write capabilities

2020-05-24 Thread Sagar Kadam
Hi, A gentle reminder. Any suggestions here? BR, Sagar Kadam > -Original Message- > From: Sagar Kadam > Sent: Tuesday, May 19, 2020 4:16 PM > To: linux-ri...@lists.infradead.org; linux-kernel@vger.kernel.org; linux- > m...@lists.infradead.org > Cc: Paul Walmsley ; pal...@dabbelt.com; >

Re: [PATCH V2 3/3] mmc: sdhci: Allow platform controlled voltage switching

2020-05-24 Thread Adrian Hunter
On 21/05/20 6:23 pm, Veerabhadrarao Badiganti wrote: > From: Vijay Viswanath > > If vendor platform drivers are controlling whole logic of voltage > switching, then sdhci driver no need control vqmmc regulator. > So skip enabling/disable vqmmc from SDHC driver. > > Signed-off-by: Vijay Viswanath

Re: Another approach of UFSHPB

2020-05-24 Thread Daejun Park
I am Daejun Park who is working to patch HPB driver. Thank you for your comment, and the following is our answer. > Splitting the UFS driver into multiple modules would be great if the > interface between these modules can be kept small and elegant. However, > I'm not sure that this approach shoul

Re: [PATCH v4 14/45] powerpc/32s: Don't warn when mapping RO data ROX.

2020-05-24 Thread Michael Ellerman
Christophe Leroy writes: > Mapping RO data as ROX is not an issue since that data > cannot be modified to introduce an exploit. Being pedantic: it is still an issue, in that it means there's more targets for a code-reuse attack. But given the entire kernel text is also available for code-reuse a

[git pull] habanalabs second pull request for kernel 5.8

2020-05-24 Thread Oded Gabbay
Hello Greg, This is the second pull request for habanalabs driver for kernel 5.8. It contains important improvements to our MMU code and our ASIC reset code. Please see the tag message for more details on what this pull request contains. Thanks, Oded The following changes since commit 709b41b5

Re: [PATCH 0/2] Optimise try_to_wake_up() when wakee is descheduling

2020-05-24 Thread Ingo Molnar
* Mel Gorman wrote: > The following two patches optimise try_to_wake_up() when the wakee is > descheduling. In a vanilla kernel, there can be excessive time spent > spinning on p->on_rq. This is fine if it's a strictly synchronous wakeup > and the waker is going to sleep but in other cases, the

[tip: sched/core] sched/core: Offload wakee task activation if it the wakee is descheduling

2020-05-24 Thread tip-bot2 for Mel Gorman
The following commit has been merged into the sched/core branch of tip: Commit-ID: 2ebb17717550607bcd85fb8cf7d24ac870e9d762 Gitweb: https://git.kernel.org/tip/2ebb17717550607bcd85fb8cf7d24ac870e9d762 Author:Mel Gorman AuthorDate:Sun, 24 May 2020 21:29:56 +01:00 Committer:

Re: [RFC 00/16] KVM protected memory extension

2020-05-24 Thread Kirill A. Shutemov
On Fri, May 22, 2020 at 03:51:58PM +0300, Kirill A. Shutemov wrote: > == Background / Problem == > > There are a number of hardware features (MKTME, SEV) which protect guest > memory from some unauthorized host access. The patchset proposes a purely > software feature that mitigates some of the sa

[tip: sched/core] sched/core: Optimize ttwu() spinning on p->on_cpu

2020-05-24 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the sched/core branch of tip: Commit-ID: c6e7bd7afaeb3af55ffac122828035f1c01d1d7b Gitweb: https://git.kernel.org/tip/c6e7bd7afaeb3af55ffac122828035f1c01d1d7b Author:Peter Zijlstra AuthorDate:Sun, 24 May 2020 21:29:55 +01:00 Committ

[PATCH] kexec: Do not verify the signature without the lockdown or mandatory signature

2020-05-24 Thread Lianbo Jiang
Signature verification is an important security feature, to protect system from being attacked with a kernel of unknown origin. Kexec rebooting is a way to replace the running kernel, hence need be secured carefully. In the current code of handling signature verification of kexec kernel, the logic

Re: [PATCH] habanalabs: handle MMU cache invalidation timeout

2020-05-24 Thread Oded Gabbay
On Sun, May 24, 2020 at 11:07 PM Omer Shpigelman wrote: > > MMU cache invalidation timeout indicates that the device is unstable and > therefore unusable. > Hence in such case do hard reset and return an error to the user if was > called from ioctl. > In addition, change the print to error level a

Re: [PATCH v4 07/45] powerpc/ptdump: Limit size of flags text to 1/2 chars on PPC32

2020-05-24 Thread Michael Ellerman
Christophe Leroy writes: > In order to have all flags fit on a 80 chars wide screen, > reduce the flags to 1 char (2 where ambiguous). I don't love this, the output is less readable. Is fitting on an 80 char screen a real issue for you? I just make my terminal window bigger. cheers > No cache

mmotm 2020-05-24-22-09 uploaded

2020-05-24 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-05-24-22-09 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] ASoC: fsl_asrc: Merge suspend/resume function to runtime_suspend/resume

2020-05-24 Thread Nicolin Chen
On Fri, May 22, 2020 at 05:57:24PM +0800, Shengjiu Wang wrote: > With dedicated power domain for asrc, power can be disabled after > probe and pm runtime suspend, then the value of all registers need to > be restored in pm runtime resume. So we can merge suspend/resume function > to runtime_suspend

linux-next: build failure after merge of the block tree

2020-05-24 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this: mm/filemap.c: In function 'generic_file_buffered_read': mm/filemap.c:2075:9: error: 'written' undeclared (first use in this function); did you mean 'writeb'? 2075 | if (written) {

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-24 Thread Tetsuo Handa
On 2020/05/25 4:18, Ondrej Mosnacek wrote: > I'm also not sure if this is really worth it... It would help localize > the bug in this specific case, but there is nothing systematic about > it. Are there that many debug print statements that dereference > pointers that are later passed to functions,

Re: lockdep trace with xfs + mm in it from 5.7.0-rc5

2020-05-24 Thread Dave Airlie
On Sat, 23 May 2020 at 06:51, Darrick J. Wong wrote: > > OTOH, it didn't take that long to whip up a patch. > > Dave, does this fix your problem? I reproduced with 5.7.0-rc7, and tried this patch on top in the same VM doing the same thing. with this patch I no longer see the lockdep trace. Test

Re: [PATCH v4 24/36] mm: Remove page fault assumption of compound page size

2020-05-24 Thread Kirill A. Shutemov
On Fri, May 15, 2020 at 06:16:44AM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > A compound page in the page cache will not necessarily be of PMD size, > so check explicitly. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > mm/memory.c | 7 --- > 1 file changed, 4 in

Re: [PATCH v4 11/36] fs: Support THPs in zero_user_segments

2020-05-24 Thread Kirill A. Shutemov
On Fri, May 15, 2020 at 06:16:31AM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > We can only kmap() one subpage of a THP at a time, so loop over all > relevant subpages, skipping ones which don't need to be zeroed. This is > too large to inline when THPs are enabled and we a

RE: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-24 Thread Jianyong Wu
Hi Richard, > -Original Message- > From: Richard Cochran > Sent: Sunday, May 24, 2020 10:11 AM > To: Jianyong Wu > Cc: net...@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; > t...@linutronix.de; pbonz...@redhat.com; sean.j.christopher...@intel.com; > m...@kernel.org; Mark Ru

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-24 Thread Kirill A. Shutemov
On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > A 5-level paging capable machine can have memory above 46-bit in the > physical address space. This memory is only addressable in the 5-level > paging mode: we don't have enough virtual address space to create direct > mapping fo

Re: [PATCH v2] mm: remove VM_BUG_ON(PageSlab()) from page_mapcount()

2020-05-24 Thread Kirill A. Shutemov
On Sun, May 24, 2020 at 04:43:18PM +0300, Konstantin Khlebnikov wrote: > Replace superfluous VM_BUG_ON() with comment about correct usage. > > Technically reverts commit 1d148e218a0d0566b1c06f2f45f1436d53b049b2 > ("mm: add VM_BUG_ON_PAGE() to page_mapcount()"), but context have changed. > > Funct

Re: [PATCH V4 7/8] fs/ext4: Introduce DAX inode flag

2020-05-24 Thread Ira Weiny
On Fri, May 22, 2020 at 01:48:48PM +0200, Jan Kara wrote: > On Thu 21-05-20 12:13:12, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. > > > > Set the flag to be user visible and changeable. Set the flag to be > > inherited. Allow ap

[PATCH 2/2] refperf: Add a test to measure performance of read-side synchronization

2020-05-24 Thread Joel Fernandes (Google)
Add a test for comparing the performance of RCU with various read-side synchronization mechanisms. The test has proved useful for collecting data and performing these comparisons. Currently RCU, SRCU, reader-writer lock, reader-writer semaphore and reference counting can be measured using refperf.

[PATCH 1/2] rcuperf: Remove useless while loops around wait_event

2020-05-24 Thread Joel Fernandes (Google)
wait_event() already retries if the condition for the wake up is not satisifed after wake up. Remove them from the rcuperf test. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/rcuperf.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/kernel/rcu/rcuperf

Re: [PATCH] mm,thp: stop leaking unreleased file pages

2020-05-24 Thread Kirill A. Shutemov
On Sat, May 23, 2020 at 06:50:15PM -0700, Hugh Dickins wrote: > When collapse_file() calls try_to_release_page(), it has already > isolated the page: so if releasing buffers happens to fail (as it > sometimes does), remember to putback_lru_page(): otherwise that page is > left unreclaimable and unf

Re: [RFC 08/11] net: phy: Allow mdio buses to auto-probe c45 devices

2020-05-24 Thread Jeremy Linton
Hi, On 5/24/20 9:44 AM, Andrew Lunn wrote: +++ b/include/linux/phy.h @@ -275,6 +275,11 @@ struct mii_bus { int reset_delay_us; /* RESET GPIO descriptor pointer */ struct gpio_desc *reset_gpiod; + /* bus capabilities, used for probing */ + enum { +

Re: [PATCH v5 0/7] Add interrupt support to FPGA DFL drivers

2020-05-24 Thread Xu Yilun
Hi Moritz: Thanks for your comments for first 3 patches. And do you have more comments on last 4 patches? I have done the changes for those fixes. I'm not sure if I should send the v6 patchset now? Thanks, Yilun. On Wed, May 06, 2020 at 06:17:27PM -0700, Moritz Fischer wrote: > Hi Xu, > > On T

Re: [RFC 07/11] net: phy: reset invalid phy reads of 0 back to 0xffffffff

2020-05-24 Thread Jeremy Linton
Hi, On 5/23/20 1:44 PM, Russell King - ARM Linux admin wrote: On Fri, May 22, 2020 at 04:30:55PM -0500, Jeremy Linton wrote: MMD's in the device list sometimes return 0 for their id. When that happens lets reset the id back to 0xfff so that we don't get a stub device created for it. This i

[PATCH v2 2/9] irqchip/sun6i-r: Add wakeup support

2020-05-24 Thread Samuel Holland
Maintain a mask of wake-enabled IRQs, and enable them in hardware during the syscore phase of suspend. The restore the original mask of enabled IRQs (just the NMI) during resume. This serves two purposes. First, it lets power management firmware running on the ARISC coprocessor know which wakeup s

[PATCH v2 5/9] ARM: dts: sunxi: h3/h5: Move wakeup-capable IRQs to r_intc

2020-05-24 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. For the H3/H5, r_intc IRQ numbers are offset by 32 from the GIC IRQ numbers. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 11 ++

[PATCH v2 9/9] arm64: dts: allwinner: h6: Move wakeup-capable IRQs to r_intc

2020-05-24 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. For the H6, r_intc IRQ numbers are offset by 96 from the GIC IRQ numbers. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi

[PATCH v2 4/9] ARM: dts: sunxi: h3/h5: Add r_intc node

2020-05-24 Thread Samuel Holland
The H3 and H5 SoCs have an additional interrupt controller in the RTC power domain that can be used to enable wakeup for certain IRQs. Add a node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/bo

[PATCH v2 7/9] arm64: dts: allwinner: a64: Move wakeup-capable IRQs to r_intc

2020-05-24 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. For the A64, r_intc IRQ numbers are offset by 32 from the GIC IRQ numbers. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dts

[PATCH v2 1/9] irqchip/sun6i-r: Use a stacked irqchip driver

2020-05-24 Thread Samuel Holland
The R_INTC in the A31 and newer sun8i/sun50i SoCs is more similar to the original sun4i interrupt controller than the sun7i/sun9i NMI controller. It is used for two distinct purposes: 1) To control the trigger, latch, and mask for the NMI input pin 2) To provide the interrupt input for the ARISC

[PATCH v2 8/9] arm64: dts: allwinner: h6: Fix indentation of IR node

2020-05-24 Thread Samuel Holland
This node was indented by two tabs when added instead of one. Remove the extra tab. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 22 ++-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dt

[PATCH v2 6/9] ARM: dts: sunxi: a83t: Move wakeup-capable IRQs to r_intc

2020-05-24 Thread Samuel Holland
All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. For the A83T, r_intc IRQ numbers are offset by 32 from the GIC IRQ numbers. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 +

[PATCH v2 3/9] dt-bindings: irq: Add a compatible for the H3 R_INTC

2020-05-24 Thread Samuel Holland
The Allwinner H3 SoC contains an R_INTC that is, as far as we know, compatible with the R_INTC present in other sun8i/sun50i SoCs starting with the A31. Since the R_INTC hardware is undocumented, introduce a new compatible for the R_INTC variant in this SoC, in case there turns out to be some diffe

[PATCH v2 0/9] sunxi: Support IRQ wakeup from deep sleep

2020-05-24 Thread Samuel Holland
Allwinner sun8i/sun50i SoCs (A31 and newer) have two interrupt controllers: GIC and R_INTC. GIC does not support wakeup. R_INTC handles the external NMI pin, and provides 16-32 IRQs to the ARISC. At least the first 16 of these correspond 1:1 to a block of GIC IRQs starting with the NMI. This serie

Re: [PATCH 1/9] irqchip/sun6i-r: Switch to a stacked irqchip driver

2020-05-24 Thread Samuel Holland
Hello, and thanks for the feedback! I know this is quite the delay in responding; I wanted to make sure my understanding of the hardware was as clear as possible before sending a v2. After experimentation, I came up with a diagram describing the hardware architecture, available here: https://linu

[PATCH 2/2] phy: Remove CONFIG_ARCH_ROCKCHIP check for subdir rockchip

2020-05-24 Thread Tiezhu Yang
If CONFIG_ARCH_ROCKCHIP is not set but COMPILE_TEST is set, the file in the subdir rockchip can not be built due to CONFIG_ARCH_ROCKCHIP check in drivers/phy/Makefile. Since the related configs in drivers/phy/rockchip/Kconfig depend on ARCH_ROCKCHIP, so remove CONFIG_ARCH_ROCKCHIP check for subdir

[PATCH 1/2] phy: rockchip: Fix return value of inno_dsidphy_probe()

2020-05-24 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: b7535a3bc0ba ("phy/rockchip: Add support for Innosilicon MIPI/LVDS/TTL PHY") Signed-off-by: Tiezhu Yang --- drivers/phy/rockchip/phy-rockchip-inno-dsidphy

Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()

2020-05-24 Thread Zenghui Yu
On 2020/5/9 17:56, Hanjun Guo wrote: On 2020/5/9 17:34, Zenghui Yu wrote: Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for IOMMUs"), __get_pci_rid() has become actually unused and can be removed. Signed-off-by: Zenghui Yu Looks good to me, Acked-by: Hanjun Guo Hi Wi

Re: [PATCH v3] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-24 Thread Jaegeuk Kim
Shutdown test is somtimes hung, since it keeps trying to flush dirty node pages in an inifinite loop. Let's drop dirty pages at umount in that case. Signed-off-by: Jaegeuk Kim --- v3: - fix wrong unlock v2: - fix typos fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

linux-next: manual merge of the drm tree with Linus' tree

2020-05-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got conflicts in: drivers/gpu/drm/amd/display/dc/dcn10/dcn10_init.c drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c between commit: 31ecebee9c36 ("drm/amd/display: Defer cursor lock until after VUPDATE") from Linus' tree and commits:

[PATCH] MIPS: Fix IRQ tracing when call handle_fpe()

2020-05-24 Thread YuanJunQing
Register "a1" is unsaved in this function, when CONFIG_TRACE_IRQFLAGS is enabled, the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), and this may change register "a1". The variment of register "a1" may send SIGFPE signal to task when call do_fpe(),and this may kill the task. Signed-off

[PATCH v5 8/8] spi: flags 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' can't be coexit with 'SPI_3WIRE' mode

2020-05-24 Thread dillon . minfei
From: dillon min since chip spi driver need get the transfer direction by 'tx_buf' and 'rx_buf' of 'struct spi_transfer' in 'SPI_3WIRE' mode. so, we need bypass 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' feature in 'SPI_3WIRE' mode Signed-off-by: dillon min --- drivers/spi/spi.c |

[PATCH v5 3/8] ARM: dts: stm32: enable ltdc binding with ili9341, gyro l3gd20 on stm32429-disco board

2020-05-24 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341, gyro l3gd20 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/d

  1   2   3   4   5   6   >