Re: [PATCH RFC 2/2] ARM: dts: imx: add devicetree for Tolino Shine 2 HD

2020-08-16 Thread Andreas Kemnade
Hi, On Sun, 16 Aug 2020 17:57:51 +0200 Jonathan Neuschäfer wrote: > On Sun, Aug 16, 2020 at 04:50:58PM +0200, Andreas Kemnade wrote: > > Hi, > > > > Seems that we have different hardware, so the first question is > > first the most interesting thing: how much does the hw actually differ, > >

[PATCH] KVM: x86: kvmclock_init_mem() should be called any way

2020-08-16 Thread Zelin Deng
pvclock data pointers of vCPUs >= HVC_BOOT_ARRAY_SIZE (64) are stored in hvclock_mem wihch is initialized in kvmclock_init_mem(). Here're 3 scenarios in current implementation: - no-kvmclock is set in cmdline. kvm pv clock driver is disabled, no impact. - no-kvmclock-vsyscall is set

linux-next: Fixes tag needs some work in the net tree

2020-08-16 Thread Stephen Rothwell
Hi all, In commit b3b2854dcf70 ("mptcp: sendmsg: reset iter on error redux") Fixes tag Fixes: 35759383133f64d "(mptcp: sendmsg: reset iter on error)" has these problem(s): - Subject does not match target commit subject Just use git log -1 --format='Fixes: %h ("%s")' --

[PATCH v1 4/4] powerpc/process: Remove useless #ifdef CONFIG_PPC_FPU

2020-08-16 Thread Christophe Leroy
Add a stub for __giveup_fpu() when CONFIG_PPC_FPU is not selected, as done for CONFIG_SPE and CONFIG_ALTIVEC. This allows to remove some #ifdef CONFIG_PPC_FPU. Also change one to IS_ENABLED(). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 9 - 1 file changed, 4

[PATCH v1 2/4] powerpc/process: Remove useless #ifdef CONFIG_ALTIVEC

2020-08-16 Thread Christophe Leroy
cpu_has_feature(CPU_FTR_ALTIVEC) returns false when CONFIG_ALTIVEC is not set. There is no need to enclose the test in an #ifdef CONFIG_ALTIVEC. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH v1 1/4] powerpc/process: Remove useless #ifdef CONFIG_VSX

2020-08-16 Thread Christophe Leroy
cpu_has_feature(CPU_FTR_VSX) returns false when CONFIG_VSX is not set. There is no need to enclose the test in an #ifdef CONFIG_VSX. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH v1 3/4] powerpc/process: Remove useless #ifdef CONFIG_SPE

2020-08-16 Thread Christophe Leroy
cpu_has_feature(CPU_FTR_SPE) returns false when CONFIG_SPE is not set. There is no need to enclose the test in an #ifdef CONFIG_SPE. Remove it. CPU_FTR_SPE only exists on 32 bits. Define it as 0 on 64 bits. We have a couple of places like: #ifdef CONFIG_SPE if

[PATCH v1] powerpc/process: Replace an #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) by IS_ENABLED()

2020-08-16 Thread Christophe Leroy
The #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) encloses some printk which can be compiled in all cases. Replace by IS_ENABLED(). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH v1] powerpc/process: Replace an #ifdef CONFIG_PPC_47x by IS_ENABLED()

2020-08-16 Thread Christophe Leroy
isync() is always defined, no need for an #ifdef. Replace it by IS_ENABLED(CONFIG_PPC_47x). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c

[PATCH v1] powerpc/process: Remove unnecessary #ifdef CONFIG_FUNCTION_GRAPH_TRACER

2020-08-16 Thread Christophe Leroy
ftrace_graph_ret_addr() is always defined and returns 'ip' when CONFIG_FUNCTION GRAPH_TRACER is not set. So the #ifdef is not needed, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH v1] powerpc/process: Replace an #ifdef CONFIG_PPC_BOOK3S_64 by IS_ENABLED()

2020-08-16 Thread Christophe Leroy
This #ifdef CONFIG_PPC_BOOK3S_64 calls preload_new_slb_context() when radix is not enabled. radix_enabled() is always defined, and the prototype for preload_new_slb_context() is always present, so the #ifdef is unneeded. Replace it by IS_ENABLED(). Signed-off-by: Christophe Leroy ---

[PATCH v1] powerpc/process: Tag an #endif to help locate the matching #ifdef.

2020-08-16 Thread Christophe Leroy
That #endif is more than 100 lines after the matching #ifdef, and there are several #ifdef/#else/#endif inbetween. Tag it as /* CONFIG_PPC_BOOK3S_64 */ to help locate the matching #ifdef. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v1] powerpc/process: Replace #ifdef CONFIG_KALLSYMS by IS_ENABLED()

2020-08-16 Thread Christophe Leroy
The #ifdef CONFIG_KALLSYMS encloses some printk which can compile in all cases. Replace by IS_ENABLED(). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/process.c

Re: pcm|dmaengine|imx-sdma race condition on i.MX6

2020-08-16 Thread Richard Leitner
On Fri, Aug 14, 2020 at 11:18:10AM +0200, Robin Gong wrote: > > On 2020/08/13 19:23: Richard Leitner wrote: > > Hi, > > we've found a race condition with the PCM on the i.MX6 which results > > in an -EIO for the SNDRV_PCM_IOCTL_READI_FRAMES ioctl after an -EPIPE > > (XRUN). > > > > A possible

Re: [PATCH v12 04/12] dmaengine: imx-sdma: remove duplicated sdma_load_context

2020-08-16 Thread Richard Leitner
On Tue, Aug 11, 2020 at 11:53:43PM +0800, Robin Gong wrote: > Since sdma_transfer_init() will do sdma_load_context before any > sdma transfer, no need once more in sdma_config_channel(). > > Signed-off-by: Robin Gong > Acked-by: Vinod Koul Hi Robin, thanks for the pointer to this patch. As

Re: [PATCH v12 03/12] Revert "dmaengine: imx-sdma: refine to load context only once"

2020-08-16 Thread Richard Leitner
On Tue, Aug 11, 2020 at 11:53:42PM +0800, Robin Gong wrote: > This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because > in spi-imx case, burst length may be changed dynamically. > > Signed-off-by: Robin Gong > Acked-by: Sascha Hauer Hi Robin, thanks for the pointer to this patch.

Re: [PATCH v5 1/3] net: introduce helper sendpage_ok() in include/linux/net.h

2020-08-16 Thread Christoph Hellwig
On Sun, Aug 16, 2020 at 10:55:09AM -0700, Cong Wang wrote: > On Sun, Aug 16, 2020 at 1:36 AM Coly Li wrote: > > > > The original problem was from nvme-over-tcp code, who mistakenly uses > > kernel_sendpage() to send pages allocated by __get_free_pages() without > > __GFP_COMP flag. Such pages

Re: [RFC V2 1/2] arm64/mm: Change THP helpers per generic memory semantics

2020-08-16 Thread Anshuman Khandual
On 07/07/2020 11:14 PM, Catalin Marinas wrote: > On Mon, Jul 06, 2020 at 09:27:04AM +0530, Anshuman Khandual wrote: >> On 07/02/2020 05:41 PM, Catalin Marinas wrote: >>> On Mon, Jun 15, 2020 at 06:45:17PM +0530, Anshuman Khandual wrote: --- a/arch/arm64/include/asm/pgtable.h +++

Re: [PATCH] dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling

2020-08-16 Thread Vinod Koul
On 06-08-20, 13:49, Peter Ujfalusi wrote: > of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. > > If error code is returned (not NULL) then the route should be released and > the router should not be registered for the channel. Applied, thanks -- ~Vinod

Re: [PATCH] phylink: : fix function prototype kernel-doc warning

2020-08-16 Thread Randy Dunlap
On 8/16/20 9:14 PM, David Miller wrote: > From: Randy Dunlap > Date: Sun, 16 Aug 2020 15:25:49 -0700 > >> Fix a kernel-doc warning for the pcs_config() function prototype: >> >> ../include/linux/phylink.h:406: warning: Excess function parameter >> 'permit_pause_to_mac' description in

Re: [PATCH] uprobes: __replace_page() avoid BUG in munlock_vma_page()

2020-08-16 Thread Song Liu
> On Aug 16, 2020, at 1:44 PM, Hugh Dickins wrote: > > syzbot crashed on the VM_BUG_ON_PAGE(PageTail) in munlock_vma_page(), > when called from uprobes __replace_page(). Which of many ways to fix it? > Settled on not calling when PageCompound (since Head and Tail are equals > in this

RE: [PATCH v6 09/15] iommu/vt-d: Check ownership for PASIDs from user-space

2020-08-16 Thread Liu, Yi L
Hi Eric, > From: Auger Eric > Sent: Sunday, August 16, 2020 12:30 AM > > Hi Yi, > > On 7/28/20 8:27 AM, Liu Yi L wrote: > > When an IOMMU domain with nesting attribute is used for guest SVA, a > > system-wide PASID is allocated for binding with the device and the domain. > > For security

Re: [PATCH V3 0/3] x86/entry: simply stack switching when exception on userspace

2020-08-16 Thread Lai Jiangshan
Deeply sorry, the cover-letter was forgotten to send to LKML. Here it is: On 2020/8/17 14:23, Lai Jiangshan wrote: From: Lai Jiangshan 7f2590a110b8("x86/entry/64: Use a per-CPU trampoline stack for IDT entries") has resulted that when exception on userspace, the kernel (error_entry) always

[PATCH V2] arm64: dts: ipq8074: Use the A53 PMU compatible

2020-08-16 Thread Kathiravan T
IPQ8074 has A53 cores, so lets use the corresponding PMU compatible. Signed-off-by: Kathiravan T --- [V2] - Rebased on v5.9-rc1 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi

RE: [PATCH v6 07/15] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-08-16 Thread Liu, Yi L
Thanks, Eric. Regards, Yi Liu > From: Auger Eric > Sent: Sunday, August 16, 2020 12:30 AM > > Yi, > > On 7/28/20 8:27 AM, Liu Yi L wrote: > > This patch allows userspace to request PASID allocation/free, e.g. > > when serving the request from the guest. > > > > PASIDs that are not freed by

[RESEND PATCH v12 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan This patch adds the new IP of Nand Flash Controller(NFC) support on Intel's Lightning Mountain(LGM) SoC. DMA is used for burst data transfer operation, also DMA HW supports aligned 32bit memory address and aligned data access by default. DMA burst of 8

[RESEND PATCH v12 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add YAML file for dt-bindings to support NAND Flash Controller on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Rob Herring --- .../devicetree/bindings/mtd/intel,lgm-nand.yaml| 99 ++ 1 file

[RESEND PATCH v12 0/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
This patch adds the new IP of Nand Flash Controller(NFC) support on Intel's Lightning Mountain(LGM) SoC. DMA is used for burst data transfer operation, also DMA HW supports aligned 32bit memory address and aligned data access by default. DMA burst of 8 supported. Data register used to support the

[PATCH V3 3/3] x86/entry: remove unused sync_regs()

2020-08-16 Thread Lai Jiangshan
From: Lai Jiangshan No more users. Signed-off-by: Lai Jiangshan --- arch/x86/include/asm/traps.h | 1 - arch/x86/kernel/traps.c | 13 - 2 files changed, 14 deletions(-) diff --git a/arch/x86/include/asm/traps.h b/arch/x86/include/asm/traps.h index 714b1a30e7b0..52cd29bde1d0

[PATCH V3 1/3] x86/entry: avoid calling into sync_regs() when entering from userspace

2020-08-16 Thread Lai Jiangshan
From: Lai Jiangshan 7f2590a110b8("x86/entry/64: Use a per-CPU trampoline stack for IDT entries") made a change that when any exception happens on userspace, the entry code will save the pt_regs on the sp0 stack, and then copy it to the thread stack via sync_regs() and switch to thread stack

[PATCH V3 2/3] x86/entry: directly switch to kernel stack when .Lerror_bad_iret

2020-08-16 Thread Lai Jiangshan
From: Lai Jiangshan Directly copy pt_regs to kernel stack when .Lerror_bad_iret. Directly switch to kernel stack when .Lerror_bad_iret. We can see that entry_64.S do the following things back to back when .Lerror_bad_iret: call fixup_bad_iret(), switch to sp0 stack with pt_regs copied call

Re: [PATCH v4 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-16 Thread Tzung-Bi Shih
On Sun, Aug 16, 2020 at 1:20 AM Jiaxin Yu wrote: > > +static int mt6359_platform_driver_probe(struct platform_device *pdev) [snip] > + > + return devm_snd_soc_register_component(>dev, > + _soc_component_driver, > +

Re: [PATCH v2 0/2] dmaengine: ti: k3-psil: Add support for j7200

2020-08-16 Thread Vinod Koul
On 03-08-20, 15:57, Peter Ujfalusi wrote: > Hi, > > Changes since v1: > - Drop unrelated empty line change in patch 1 (k3-psil.c) > > j7200 uses the same DMA hardware but have different set of peripherals, > needing > different PSI-L thread map compared to j721e. > > To simplify the runtime

Re: [PATCH V2] dmaengine: bcm-sba-raid: add missing put_device() call in sba_probe()

2020-08-16 Thread Vinod Koul
On 29-07-20, 20:49, Yu Kuai wrote: > if of_find_device_by_node() succeed, sba_probe() doesn't have a > corresponding put_device(). Thus add a jump target to fix the > exception handling for this function implementation. Applied, thanks -- ~Vinod

Re: [PATCH] dmaengine: at_hdmac: do exception handling appropriately in at_dma_xlate()

2020-08-16 Thread Vinod Koul
On 29-07-20, 20:29, Yu Kuai wrote: > Do several things for exception handing: > > a. check return value of of_find_device_by_node(). > b. call put_device() if memory allocation for 'atslave' failed. > c. if dma_request_channel() failed, call put_device() and kfree(). One patch per change please

Re: [PATCH] dmaengine: ti: omap-dma: Drop of_match_ptr to fix -Wunused-const-variable

2020-08-16 Thread Vinod Koul
On 28-07-20, 19:09, Krzysztof Kozlowski wrote: > The of_device_id is included unconditionally by of.h header and used > in the driver as well. Remove of_match_ptr to fix W=1 compile test > warning with !CONFIG_OF: > > drivers/dma/ti/omap-dma.c:1892:34: warning: 'omap_dma_match' defined but

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-16 Thread Sumit Garg
On Fri, 14 Aug 2020 at 19:48, Daniel Thompson wrote: > > On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > > wrote: > > > > > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > > > On Thu, 13 Aug 2020 at 05:38, Doug

Re: [PATCH 2/4] opp: Track device's resources configuration status

2020-08-16 Thread Viresh Kumar
On 15-08-20, 01:03, Stephen Boyd wrote: > Quoting Viresh Kumar (2020-08-12 21:28:59) > > The OPP core needs to track if the resources of devices are enabled or > > configured or not, as it disables the resources when target_freq is set > > to 0. > > > > Handle that with a separate variable to

Re: [PATCH] upcall: Remove unneeded variable insize

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

Re: [PATCH v1] dmaengine: pch_dma: use generic power management

2020-08-16 Thread Vinod Koul
On 27-07-20, 14:19, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 1:16 PM Vinod Koul wrote: > > On 20-07-20, 17:07, Vaibhav Gupta wrote: > > > Drivers using legacy PM have to manage PCI states and device's PM states > > > themselves. They also need to take care of configuration registers. > >

Re: [PATCH] dmaengine: acpi: Put the CSRT table after using it

2020-08-16 Thread Vinod Koul
On 22-07-20, 17:54, Hanjun Guo wrote: > The acpi_get_table() should be coupled with acpi_put_table() if > the mapped table is not used at runtime to release the table > mapping, put the CSRT table buf after using it. Applied, thanks -- ~Vinod

[PATCH v4] kthread: Add debugobject support

2020-08-16 Thread Qianli Zhao
From: Qianli Zhao Add debugobject support to track the life time of kthread_work which is used to detect reinitialization/free active object problems Add kthread_init_work_onstack()/kthread_init_delayed_work_onstack() for kthread onstack support If we reinitialize a kthread_work that has been

[PATCH] ALSA: hda/realtek: Add model alc298-samsung-headphone

2020-08-16 Thread Mike Pozulp
The very quiet and distorted headphone output bug that afflicted my Samsung Notebook 9 is appearing in many other Samsung laptops. Expose the quirk which fixed my laptop as a model so other users can try it. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207423 Signed-off-by: Mike Pozulp

[PATCH] lib: Convert test_printf.c to KUnit

2020-08-16 Thread Arpitha Raghunandan
Converts test lib/test_printf.c to KUnit. More information about KUnit can be found at https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. KUnit provides a common framework for unit tests in the kernel. Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> --- lib/Kconfig.debug

Re: [PATCH] Makefile: Yes. Finally remove '-Wdeclaration-after-statement'

2020-08-16 Thread Joe Perches
On Mon, 2020-08-17 at 03:37 +, Michael Witten wrote: > Matters of style should probably not be enforced by the build > infrastructure; style is a matter for the maintainer to enforce: I rather doubt style advice should be taken from someone who right justifies fixed pitch block text.

Re: [PATCH] phylink: : fix function prototype kernel-doc warning

2020-08-16 Thread David Miller
From: Randy Dunlap Date: Sun, 16 Aug 2020 15:25:49 -0700 > Fix a kernel-doc warning for the pcs_config() function prototype: > > ../include/linux/phylink.h:406: warning: Excess function parameter > 'permit_pause_to_mac' description in 'pcs_config' > > Fixes: 7137e18f6f88 ("net: phylink: add

[PATCH RESEND 3/5] block: Add a new helper to attempt to merge a bio

2020-08-16 Thread Baolin Wang
There are lots of duplicated code when trying to merge a bio from plug list and sw queue, we can introduce a new helper to attempt to merge a bio, which can simplify the blk_mq_bio_list_merge() and blk_attempt_plug_merge(). Signed-off-by: Baolin Wang --- block/blk-merge.c| 47

[PATCH RESEND 5/5] block: Remove __blk_mq_sched_bio_merge() helper

2020-08-16 Thread Baolin Wang
The blk_mq_sched_bio_merge() just wrap the __blk_mq_sched_bio_merge(), and no other places will use __blk_mq_sched_bio_merge(). Thus we can combine these 2 similar functions into one function. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 5 - block/blk-mq-sched.h | 13

[PATCH RESEND 4/5] block: Remove blk_mq_attempt_merge() function

2020-08-16 Thread Baolin Wang
The small blk_mq_attempt_merge() function is only called by __blk_mq_sched_bio_merge(), just open code it. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/block/blk-mq-sched.c

[PATCH RESEND 1/5] block: Move bio merge related functions into blk-merge.c

2020-08-16 Thread Baolin Wang
It's better to move bio merge related functions into blk-merge.c, which contains all merge related functions. Signed-off-by: Baolin Wang --- block/blk-core.c | 156 - block/blk-merge.c | 157

[PATCH RESEND 2/5] block: Remove redundant blk_mq_sched_allow_merge() validation

2020-08-16 Thread Baolin Wang
Only software queue and kyber IO scheduler will call blk_mq_bio_list_merge() to merge a bio, and kyber IO scheduler did not implement the ops->allow_merge(). Thus we can remove the redundant blk_mq_sched_allow_merge() in blk_mq_bio_list_merge() function. Signed-off-by: Baolin Wang ---

[PATCH RESEND 0/5] Some clean-ups for bio merge

2020-08-16 Thread Baolin Wang
Hi, There are some duplicated code when trying to merge bio from pluged list and software queue, thus this patch set did some clean-ups when merging a bio. Any comments are welcome. Thanks. Baolin Wang (5): block: Move bio merge related functions into blk-merge.c block: Remove redundant

[PATCH] arm64: dts: qcom: sc7180: Fix the LLCC base register size

2020-08-16 Thread Sai Prakash Ranjan
There is only one LLCC logical bank on SC7180 SoC of size 0x5(320KB) not 2MB, so correct the size and fix copy paste mistake from SDM845 which had 4 logical banks. Fixes: 7cee5c742899 ("arm64: dts: qcom: sc7180: Fix node order") Fixes: c831fa26 ("arm64: dts: qcom: sc7180: Add Last level

Re: [PATCH v6 2/2] soc: mediatek: add mt6779 devapc driver

2020-08-16 Thread Neal Liu
Hi Chun-Kuang, On Sat, 2020-08-15 at 11:03 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年8月13日 週四 上午11:33寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

Re: [PATCH] net: handle the return value of pskb_carve_frag_list() correctly

2020-08-16 Thread David Miller
From: linmiaohe Date: Mon, 17 Aug 2020 02:27:23 + > David Miller wrote: >>> + /* split line is in frag list */ >>> + if (k == 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask)) { >>> + /* skb_frag_unref() is not needed here as shinfo->nr_frags = 0. >>> */ >>> +

[PATCH 7/7] MIPS: KVM: Don't use htimer when INTIMER is disabled

2020-08-16 Thread Jiaxun Yang
When INTIMER is disabled by host, the GT compare interrupt will be ignored. Signed-off-by: Jiaxun Yang --- arch/mips/kvm/vz.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 9d03bd0a604a..1d2140f7461a 100644 --- a/arch/mips/kvm/vz.c +++

[PATCH 6/7] MIPS: cevt-r4k: Enable intimer for Loongson CPUs with extimer

2020-08-16 Thread Jiaxun Yang
Loongson64C and Loongson64G have extimer feature, which is sharing Cause.TI with intimer (which is cevt-r4k). To ensure the cevt-r4k's usability, we need to add a callback for clock device to ensure intimer is enabled when cevt-r4k is enabled. Signed-off-by: Jiaxun Yang ---

[PATCH 5/7] MIPS: cevt-r4k: Don't handle IRQ if clockevent is not enabled

2020-08-16 Thread Jiaxun Yang
Some platforms may have shared Cause.TI, bailing out in IRQ handler when clock event is not enabled can give another clock device a chance. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cevt-r4k.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH 4/7] MIPS: Loongson64: Remove custom count sync procudure

2020-08-16 Thread Jiaxun Yang
Now we have hotplug aware reliable sync-r4k, we can simply use that instead of our IPI based implementation. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/smp.h | 1 - arch/mips/loongson64/smp.c | 32 ++-- 2 files changed, 2 insertions(+), 31 deletions(-)

[PATCH 2/7] MIPS: time: Use CPUHUP to handle r4k timer

2020-08-16 Thread Jiaxun Yang
There is no need to hijack initialization procudre to take care of r4k timer we have CPUHP framework to deal with the CPU plug sequence. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/time.h | 28 +++- arch/mips/kernel/cevt-r4k.c | 30

[PATCH 3/7] MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled

2020-08-16 Thread Jiaxun Yang
Now all platforms are sharing sync-r4k procdure, there is no need to let platform to select it. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 880680c0df31..7674f4379d39

[PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly

2020-08-16 Thread Jiaxun Yang
The original sync-r4k did a good job on reducing jitter by determine the "next time value", but it has a limitation that when we have lots of cores, the timewrap on CPU0 will become unaccpetable. That will also happen when CPU Hotplug is enabled and the counter needs to be synchronised at every

[PATCH 0/7] R4000 clock enhancements for Loongson

2020-08-16 Thread Jiaxun Yang
Jiaxun Yang (7): MIPS: sync-r4k: Rework to be many cores firendly MIPS: time: Use CPUHUP to handle r4k timer MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled MIPS: Loongson64: Remove custom count sync procudure MIPS: cevt-r4k: Don't handle IRQ if clockevent

Re: [PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Jens Axboe
On 8/16/20 8:29 PM, Xu Wang wrote: > Using ata_link_info() instead of ata_link_printk(). Applied, thanks. -- Jens Axboe

[PATCH 0/3] KVM: arm64: Some fixes and code adjustments for pvtime ST

2020-08-16 Thread Keqian Zhu
During picking up pvtime LPT support for arm64, I do some trivial fixes for pvtime ST. Keqian Zhu (3): KVM: arm64: Some fixes of PV-time interface document KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type KVM: arm64: Use kvm_write_guest_lock when init stolen time

[PATCH 3/3] KVM: arm64: Use kvm_write_guest_lock when init stolen time

2020-08-16 Thread Keqian Zhu
There is a lock version kvm_write_guest. Use it to simplify code. Signed-off-by: Keqian Zhu --- arch/arm64/kvm/pvtime.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm64/kvm/pvtime.c b/arch/arm64/kvm/pvtime.c index f7b52ce..2b24e7f 100644 ---

[PATCH 2/3] KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type

2020-08-16 Thread Keqian Zhu
ARM64 PV-time ST is configured by userspace through vCPU attribute, and KVM_DEV_TYPE_ARM_PV_TIME is unused. Signed-off-by: Keqian Zhu --- include/uapi/linux/kvm.h | 2 -- tools/include/uapi/linux/kvm.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/uapi/linux/kvm.h

Re: [PATCH] Makefile: Yes. Finally remove '-Wdeclaration-after-statement'

2020-08-16 Thread Michael Witten
Joe Perches (Sun, 16 Aug 2020 10:56:53 -0700): > I rather prefer block declarations instead of > sprinkling declarations around with code. Hey, we all have our guilty pleasures. Fortunately, even with this patch, you'd still be able to indulge in your preferred style, or even enforce it among

[PATCH 1/3] KVM: arm64: Some fixes of PV-time interface document

2020-08-16 Thread Keqian Zhu
Rename PV_FEATURES tp PV_TIME_FEATURES Signed-off-by: Keqian Zhu --- Documentation/virt/kvm/arm/pvtime.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/virt/kvm/arm/pvtime.rst b/Documentation/virt/kvm/arm/pvtime.rst index 687b60d..94bffe2 100644 ---

[RESEND RFC v2 2/2] KVM: VMX: Enable bus lock VM exit

2020-08-16 Thread Chenyi Qiang
Virtual Machine can exploit bus locks to degrade the performance of system. Bus lock can be caused by split locked access to writeback(WB) memory or by using locks on uncacheable(UC) memory. The bus lock is typically >1000 cycles slower than an atomic operation within a cache line. It also

[RESEND RFC v2 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-08-16 Thread Chenyi Qiang
From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0, and single-bit modifiers in bits 31:16. Historically, KVM has only had to worry about handling the "failed

[RESEND RFC v2 0/2] add bus lock VM exit support

2020-08-16 Thread Chenyi Qiang
Resend to rebase on 5.9-rc1. --- Add the support for bus lock VM exit in KVM. It is a sub-feature of bus lock detection. Another sub-feature named bus lock debug exception is blocked due to requirement to rework the HW design: https://lore.kernel.org/lkml/87r1stmi1x@nanos.tec.linutronix.de/

[PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Xu Wang
Using ata_link_info() instead of ata_link_printk(). Signed-off-by: Xu Wang --- drivers/ata/ahci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 0c0a736eb861..fbd8eaa32d32 100644 --- a/drivers/ata/ahci.c +++

[PATCH] upcall: Remove unneeded variable insize

2020-08-16 Thread Xu Wang
Remove unneeded variable insize in venus_pioctl(). Signed-off-by: Xu Wang --- fs/coda/upcall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index eb3b1898da46..903bd7a4ee16 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c @@

[PATCH v8 0/2] phy: Add USB PHY support on Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
The USB PHY provides the optimized for low power dissipation while active, idle, or on standby. Requires minimal external components, a single resistor, for best operation. Supports 10/5-Gbps high-speed data transmission rates through 3-m USB 3.x cable --- v8: - Rebase to V5.9-rc1 v7: - No

[PATCH v8 2/2] phy: Add USB3 PHY support for Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for USB PHY on Intel LGM SoC. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Philipp Zabel --- drivers/phy/Kconfig | 11 ++ drivers/phy/Makefile | 3 +- drivers/phy/phy-lgm-usb.c | 278

[PATCH v8 1/2] dt-bindings: phy: Add USB PHY support for Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add the dt-schema to support USB PHY on Intel LGM SoC Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Rob Herring --- .../devicetree/bindings/phy/intel,lgm-usb-phy.yaml | 58 ++ 1 file changed, 58 insertions(+) create mode 100644

Re: [PATCH] serial: sh-sci: Make sure status register SCxSR is read in correct sequence

2020-08-16 Thread Rob Landley
On 8/16/20 11:22 AM, Prabhakar Mahadev Lad wrote: >> FTR, I gave it a try on the SH7751R-based I-O DATA USL-5P aka Landisk: >> SCIF is affected, and fixed by commit 3dc4db3662366306 ("serial: sh-sci: >> Make sure status register SCxSR is read in correct sequence"). >> > Thank you Geert. > >

Re: [PATCH] bsg-lib: convert comma to semicolon

2020-08-16 Thread Jens Axboe
On 8/16/20 7:16 PM, Xu Wang wrote: > Replace a comma between expression statements by a semicolon. Thanks, applied. -- Jens Axboe

Re: [PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Jens Axboe
On 8/16/20 6:18 PM, Xu Wang wrote: > Using ata_link_info() instead of ata_link_printk(). > > Signed-off-by: Xu Wang > --- > drivers/ata/ahci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index 0c0a736eb861..9d72d907b4ee

[v4,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5

[v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1

Re: [PATCH 10/10] mm/hugetlb: not necessary to abuse temporary page to workaround the nasty free_huge_page

2020-08-16 Thread Wei Yang
On Thu, Aug 13, 2020 at 01:46:38PM +0200, Michal Hocko wrote: >On Tue 11-08-20 14:43:28, Mike Kravetz wrote: >> On 8/10/20 11:54 PM, Michal Hocko wrote: >> > >> > I have managed to forgot all the juicy details since I have made that >> > change. All that remains is that the surplus pages

[v4,0/4] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
v4: fix typos on v3 commit message. v3: 1. revert v2 changes. 2. add 'reset-duration-us' property to declare a minimum delay, which needs to be waited between assert and deassert. 3. add 'mediatek,infra-reset' to compatible. v2 changes: https://patchwork.kernel.org/patch/11697371/ 1. add

[v4,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Introduce ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Such as reset-qcom-aoss.c, it integrates assert and deassert together by 'reset' method. MTK

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[PATCH] ARM: dts: imx7d-zii-rmu2: fix rgmii phy-mode for ksz9031 phy

2020-08-16 Thread Chris Healy
From: Chris Healy Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on the imx7d-zii-rmu2 board. Fix it by switching to phy-mode = "rgmii-id". Fixes: bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")

Re: [PATCH] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
On Sat, Aug 15, 2020 at 7:43 AM David Miller wrote: > > From: Po-Hsu Lin > Date: Thu, 13 Aug 2020 12:44:22 +0800 > > > diff --git a/tools/testing/selftests/net/config > > b/tools/testing/selftests/net/config > > index 3b42c06b..96d2763 100644 > > --- a/tools/testing/selftests/net/config > > +++

[PATCHv2] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the

[v3,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5

[v3,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Introduce ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Such as reset-qcom-aoss.c, it integrates assert and deassert together by 'reset' method. MTK

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v3,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1

[v3,0/6] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
v3: 1. revert v2 changes. 2. add 'reset-duration-us' property to declare a minimum delay, which needs to be waited between assert and deassert. 3. add 'mediatek,infra-reset' to compatible. v2 changes: https://patchwork.kernel.org/patch/11697371/ 1. add 'assert-deassert-together' property to

Re: [PATCH v2] ACPI / APEI: do memory failure on the physical address reported by ARM processor error section

2020-08-16 Thread Xiaofei Tan
@James, Could you help to check if i have fixed your review comments? thanks. On 2020/8/5 17:12, Xiaofei Tan wrote: > After the commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() > synchronise with APEI's irq work") applied, user-mode SEA is > preferentially processed by APEI. Do memory

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-16 Thread Jin, Yao
Hi Arnaldo, On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: Currently if we run 'perf record -e cycles:u', exclude_guest=0. But it doesn't make sense in most cases that we request for user-space counting but we also get the

[PATCH] ARM: dts: vfxxx: Add syscon compatible with ocotp

2020-08-16 Thread Chris Healy
From: Chris Healy Add syscon compatibility with Vybrid ocotp node. This is required to access the UID. Signed-off-by: Chris Healy --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi

Re: [PATCH] net: handle the return value of pskb_carve_frag_list() correctly

2020-08-16 Thread linmiaohe
David Miller wrote: >> +/* split line is in frag list */ >> +if (k == 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask)) { >> +/* skb_frag_unref() is not needed here as shinfo->nr_frags = 0. >> */ >> +if (skb_has_frag_list(skb)) >> +

[PATCHv2] serial: 8250: change lock order in serial8250_do_startup()

2020-08-16 Thread Sergey Senozhatsky
We have a number of "uart.port->desc.lock vs desc.lock->uart.port" lockdep reports coming from 8250 driver; this causes a bit of trouble to people, so let's fix it. The problem is reverse lock order in two different call paths: chain #1: serial8250_do_startup() spin_lock_irqsave(>lock);

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-08-16 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, August 14, 2020 9:24 PM > > The same basic argument goes for all the points - the issue is really > the only uAPI we have for this stuff is under VFIO, and the better > solution is to disagregate that uAPI, not to try and make everything > pretend to be a

  1   2   3   4   >