[PATCH v3] kvm/x86 : Remove redundant function implement

2020-05-20 Thread Richard
pic_in_kernel(),ioapic_in_kernel() and irqchip_kernel() have the same implementation. Signed-off-by: Peng Hao --- arch/x86/kvm/ioapic.h | 8 ++-- arch/x86/kvm/irq.h | 14 -- arch/x86/kvm/lapic.c | 1 + arch/x86/kvm/mmu/mmu.c | 1 + arch/x86/kvm/x86.c | 1 + 5

Re: [PATCH] kthread: Use TASK_IDLE state for newly created kernel threads

2020-05-20 Thread Greg Kroah-Hartman
On Thu, May 21, 2020 at 07:05:44AM +0530, Pavan Kondeti wrote: > On Wed, May 20, 2020 at 08:18:58PM +0200, Greg Kroah-Hartman wrote: > > On Wed, May 20, 2020 at 05:25:09PM +0530, Pavankumar Kondeti wrote: > > > When kernel threads are created for later use, they will be in > > >

Re: [PATCHv3 4/5] Input: EXC3000: Add support to query model and fw_version

2020-05-20 Thread Dmitry Torokhov
On Wed, May 20, 2020 at 11:25:40PM +0200, Sebastian Reichel wrote: > Hi, > > On Wed, May 20, 2020 at 10:49:52AM -0700, Dmitry Torokhov wrote: > > Hi Sebastian, > > > > On Wed, May 20, 2020 at 05:39:35PM +0200, Sebastian Reichel wrote: > > > Expose model and fw_version via sysfs. Also query the

[RFC PATCH] optee: __optee_enumerate_devices() can be static

2020-05-20 Thread kbuild test robot
Signed-off-by: kbuild test robot --- device.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/device.c b/drivers/tee/optee/device.c index 8263b308efd56..d4931dad07aaa 100644 --- a/drivers/tee/optee/device.c +++ b/drivers/tee/optee/device.c @@ -87,7

Re: [PATCH 2/6] soc: ti: omap-prm: Add basic power domain support

2020-05-20 Thread kbuild test robot
Hi Tony, I love your patch! Perhaps something to improve: [auto build test WARNING on omap/for-next] [also build test WARNING on robh/for-next keystone/next v5.7-rc6 next-20200519] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also

Re: [PATCH] clk: qcom: gcc: Fix parent for gpll0_out_even

2020-05-20 Thread Bjorn Andersson
On Wed 20 May 22:27 PDT 2020, Vinod Koul wrote: > Documentation says that gpll0 is parent of gpll0_out_even, somehow > driver coded that as bi_tcxo, so fix it > > Fixes: 2a1d7eb854bb ("clk: qcom: gcc: Add global clock controller driver for > SM8150") > Reported-by: Jonathan Marek >

Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally

2020-05-20 Thread Tao Xu
On 5/21/2020 12:33 PM, Xiaoyao Li wrote: On 5/21/2020 5:05 AM, Paolo Bonzini wrote: On 20/05/20 18:07, Maxim Levitsky wrote: This msr is only available when the host supports WAITPKG feature. This breaks a nested guest, if the L1 hypervisor is set to ignore unknown msrs, because the only

[PATCH] platform: cros_ec_debugfs: control uptime information request

2020-05-20 Thread Gwendal Grignou
When EC does not support uptime command (EC_CMD_GET_UPTIME_INFO), return -EPROTO to read of /sys/kernel/debug/cros_ec/uptime without calling the EC after the first try. The EC console log will not contain EC_CMD_GET_UPTIME_INFO anymore. Signed-off-by: Gwendal Grignou ---

[PATCH] clk: qcom: gcc: Fix parent for gpll0_out_even

2020-05-20 Thread Vinod Koul
Documentation says that gpll0 is parent of gpll0_out_even, somehow driver coded that as bi_tcxo, so fix it Fixes: 2a1d7eb854bb ("clk: qcom: gcc: Add global clock controller driver for SM8150") Reported-by: Jonathan Marek Signed-off-by: Vinod Koul --- drivers/clk/qcom/gcc-sm8150.c | 3 +-- 1

Re: Re: [PATCH] Input: omap-keypad - fix runtime pm imbalance on error

2020-05-20 Thread dinghao . liu
Fixing this in the PM core will influence all callers of pm_runtime_get_sync(). Therefore I think the better solution is to fix its misused callers. Regards, Dinghao Dmitry Torokhov dmitry.torok...@gmail.com写道: > Hi Dinghao, > > On Wed, May 20, 2020 at 6:35 AM Dinghao Liu wrote: > > > >

[PATCH v1 1/1] drivers: mtd: spi-nor: update read capabilities for w25q64 and s25fl064k

2020-05-20 Thread Rayagonda Kokatanur
Both w25q64 and s25fl064k nor flash support QUAD and DUAL read command, hence update the same in flash_info table. Signed-off-by: Rayagonda Kokatanur --- drivers/mtd/spi-nor/spansion.c | 3 ++- drivers/mtd/spi-nor/winbond.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v3 03/14] remoteproc: Add new operation and flags for synchronistation

2020-05-20 Thread Bjorn Andersson
On Wed 20 May 15:06 PDT 2020, Mathieu Poirier wrote: > On Mon, May 18, 2020 at 05:55:00PM -0700, Bjorn Andersson wrote: > > On Fri 15 May 12:24 PDT 2020, Mathieu Poirier wrote: > > > > > Good day Bjorn, > > > > > > On Wed, May 13, 2020 at 06:32:24PM -0700, Bjorn Andersson wrote: > > > > On Fri

Re: [RFC][PATCH 3/5] thermal: Add support for setting notification thresholds

2020-05-20 Thread Amit Kucheria
Hi Srinivas, On Wed, May 20, 2020 at 11:46 PM Srinivas Pandruvada wrote: > > On Wed, 2020-05-20 at 09:58 +0530, Amit Kucheria wrote: > > On Tue, May 19, 2020 at 5:10 AM Srinivas Pandruvada > > wrote: > > > On Mon, 2020-05-18 at 18:37 +0200, Daniel Lezcano wrote: > > > > On 04/05/2020 20:16,

RE: [PATCH 2/2] soundwire: intel: transition to 3 steps initialization

2020-05-20 Thread Liao, Bard
> -Original Message- > From: Vinod Koul > Sent: Thursday, May 21, 2020 12:37 PM > To: Liao, Bard > Cc: Bard Liao ; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org; ti...@suse.de; broo...@kernel.org; > gre...@linuxfoundation.org; j...@cadence.com; >

powerpc64-linux-ld: mm/page_alloc.o:undefined reference to `node_reclaim_distance'

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

Re: Re: [PATCH] wlcore: fix runtime pm imbalance in wl1271_op_suspend

2020-05-20 Thread dinghao . liu
There is a check against ret after out_sleep tag. If wl1271_configure_suspend_ap() returns an error code, ret will be caught by this check and a warning will be issued. Tony Lindgren t...@atomide.com写道: > * Dinghao Liu [200520 12:58]: > > When wlcore_hw_interrupt_notify() returns an error

Re: linux-next: manual merge of the rcu tree with the powerpc tree

2020-05-20 Thread Stephen Rothwell
Hi all, On Tue, 19 May 2020 17:23:16 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the rcu tree got a conflict in: > > arch/powerpc/kernel/traps.c > > between commit: > > 116ac378bb3f ("powerpc/64s: machine check interrupt update NMI accounting") > > from the powerpc

Re: [PATCH v6 12/12] mmap locking API: convert mmap_sem comments

2020-05-20 Thread Michel Lespinasse
Looks good, thanks ! On Wed, May 20, 2020 at 8:22 PM Andrew Morton wrote: > On Tue, 19 May 2020 22:29:08 -0700 Michel Lespinasse > wrote: > > Convert comments that reference mmap_sem to reference mmap_lock instead. > > This may not be complete.. > > From: Andrew Morton > Subject:

Re: [PATCH v6 05/12] mmap locking API: convert mmap_sem call sites missed by coccinelle

2020-05-20 Thread Michel Lespinasse
Looks good. I'm not sure if you need a review, but just in case: On Wed, May 20, 2020 at 8:23 PM Andrew Morton wrote: > On Tue, 19 May 2020 22:29:01 -0700 Michel Lespinasse > wrote: > > > Convert the last few remaining mmap_sem rwsem calls to use the new > > mmap locking API. These were missed

Re: [PATCH] HID: intel-ish-hid: Replace PCI_DEV_FLAGS_NO_D3 with pci_save_state

2020-05-20 Thread Kai-Heng Feng
Hi Srinivas, > On May 9, 2020, at 01:45, Srinivas Pandruvada > wrote: > > On Tue, 2020-05-05 at 21:17 +0800, Kai-Heng Feng wrote: >> PCI_DEV_FLAGS_NO_D3 should not be used outside of PCI core. >> >> Instead, we can use pci_save_state() to hint PCI core that the device >> should stay at D0

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-20 Thread Andrew Morton
On Thu, 21 May 2020 13:36:28 +0900 Sergey Senozhatsky wrote: > On (20/05/20 18:00), Andrew Morton wrote: > [..] > > I'm wondering if we shold add a kernel puts() (putsk()? yuk) which can > > puts() a string of any length. > > > > I'm counting around 150 instances of printk("%s", ...) and

Re: [PATCH v3] /dev/mem: Revoke mappings when a driver claims the region

2020-05-20 Thread Dan Williams
On Wed, May 20, 2020 at 9:37 PM Dan Williams wrote: > > On Wed, May 20, 2020 at 7:26 PM Matthew Wilcox wrote: > > > > On Wed, May 20, 2020 at 06:35:25PM -0700, Dan Williams wrote: > > > +static struct inode *devmem_inode; > > > + > > > +#ifdef CONFIG_IO_STRICT_DEVMEM > > > +void

Re: [PATCH v3] /dev/mem: Revoke mappings when a driver claims the region

2020-05-20 Thread Dan Williams
On Wed, May 20, 2020 at 7:26 PM Matthew Wilcox wrote: > > On Wed, May 20, 2020 at 06:35:25PM -0700, Dan Williams wrote: > > +static struct inode *devmem_inode; > > + > > +#ifdef CONFIG_IO_STRICT_DEVMEM > > +void revoke_devmem(struct resource *res) > > +{ > > + struct inode *inode =

Re: [PATCH] perf evsel: Get group fd from CPU0 for system wide event

2020-05-20 Thread Jin, Yao
Hi Jiri, On 5/20/2020 3:50 PM, Jiri Olsa wrote: On Wed, May 20, 2020 at 01:36:40PM +0800, Jin, Yao wrote: Hi Jiri, On 5/18/2020 11:28 AM, Jin, Yao wrote: Hi Jiri, On 5/15/2020 4:33 PM, Jiri Olsa wrote: On Fri, May 15, 2020 at 02:04:57PM +0800, Jin, Yao wrote: SNIP I think I get the root

Re: [PATCH 2/2] soundwire: intel: transition to 3 steps initialization

2020-05-20 Thread Vinod Koul
On 21-05-20, 02:23, Liao, Bard wrote: > > -Original Message- > > From: Vinod Koul > > Sent: Wednesday, May 20, 2020 9:54 PM > > To: Bard Liao > > Cc: alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org; > > ti...@suse.de; > > broo...@kernel.org; gre...@linuxfoundation.org;

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-20 Thread Sergey Senozhatsky
On (20/05/20 18:00), Andrew Morton wrote: [..] > I'm wondering if we shold add a kernel puts() (putsk()? yuk) which can > puts() a string of any length. > > I'm counting around 150 instances of printk("%s", ...) and pr_foo("%s", > ...) which could perhaps be converted, thus saving an argument.

Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally

2020-05-20 Thread Xiaoyao Li
On 5/21/2020 5:05 AM, Paolo Bonzini wrote: On 20/05/20 18:07, Maxim Levitsky wrote: This msr is only available when the host supports WAITPKG feature. This breaks a nested guest, if the L1 hypervisor is set to ignore unknown msrs, because the only other safety check that the kernel does is

[PATCH] kbuild: doc: remove documentation about copying Module.symvers around

2020-05-20 Thread Masahiro Yamada
This is a left-over of commit 39808e451fdf ("kbuild: do not read $(KBUILD_EXTMOD)/Module.symvers"). Kbuild no longer supports this way. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/modules.rst | 12 1 file changed, 12 deletions(-) diff --git

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-20 Thread Sergey Senozhatsky
On (20/05/20 13:36), Joe Perches wrote: > > We can split command line in a loop - memchr(pos, ' ') - and > > pr_cont() parts of the command line. pr_cont() has overflow > > control and it flushes cont buffer before it overflows, so > > we should not lose anything. > > It doesn't matter much here,

[PATCH v2] libata: Use per port sync for detach

2020-05-20 Thread Kai-Heng Feng
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 async callbacks that are already scheduled may wait for not-yet-scheduled callbacks, causes a circular

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface(Internet mail)

2020-05-20 Thread 蒋彪
> On May 21, 2020, at 6:26 AM, Joel Fernandes (Google) > wrote: > > Add a per-thread core scheduling interface which allows a thread to tag > itself and enable core scheduling. Based on discussion at OSPM with > maintainers, we propose a prctl(2) interface accepting values of 0 or 1. > 1 -

Re: [RFC V2] mm/vmstat: Add events for PMD based THP migration without split

2020-05-20 Thread Anshuman Khandual
On 05/20/2020 12:45 PM, HORIGUCHI NAOYA(堀口 直也) wrote: > On Mon, May 18, 2020 at 12:12:36PM +0530, Anshuman Khandual wrote: >> This adds the following two new VM events which will help in validating PMD >> based THP migration without split. Statistics reported through these events >> will help

Hi

2020-05-20 Thread Jerry Machel
Hi, I write to inform you of a great business opportunity. My names is Jerry Machel Ivoirien Français, there is a business proposal i will like to discuss with you or your ORG. If it interests you please let me know and let's work it together. Regards Jerry Machel.

Re: [PATCH 09/29] kbuild: disallow multi-word in M= or KBUILD_EXTMOD

2020-05-20 Thread Masahiro Yamada
On Sun, May 17, 2020 at 9:33 PM David Laight wrote: > > From: Masahiro Yamada > > Sent: 17 May 2020 10:49 > > $(firstword ...) in scripts/Makefile.modpost was added by commit > > 3f3fd3c05585 ("[PATCH] kbuild: allow multi-word $M in Makefile.modpost") > > to build multiple external module

[PATCH] ASoC: dt-bindings: simple-card: care missing address #address-cells

2020-05-20 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card will get below error, because it doesn't care about #address-cells at some part. DTC Documentation/devicetree/bindings/sound/simple-card.example.dt.yaml

Re: XHCI vs PCM2903B/PCM2904 part 2

2020-05-20 Thread Rik van Riel
On Wed, 2020-05-20 at 16:34 -0400, Alan Stern wrote: > On Wed, May 20, 2020 at 03:21:44PM -0400, Rik van Riel wrote: > > > > Interesting. That makes me really curious why things are > > getting stuck, now... > > This could be a bug in xhci-hcd. Perhaps the controller's endpoint > state needs

Re: Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-20 Thread dinghao . liu
Hi, Dan, I agree the best solution is to fix __pm_runtime_resume(). But there are also many cases that assume pm_runtime_get_sync() will change PM usage counter on error. According to my static analysis results, the number of these "right" cases are larger. Adjusting __pm_runtime_resume()

[PATCH] init/do_mounts: fix a coding style error

2020-05-20 Thread zhouchuangao
Fix code style errors reported by scripts/checkpatch.pl. Signed-off-by: zhouchuangao --- init/do_mounts.c | 52 ++-- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 29d326b..2f8bd41 100644

Re: [PATCH] arm64: dts: qcom: sc7180: Move mss node to the right place

2020-05-20 Thread Sibi Sankar
On 2020-05-21 06:33, Stephen Boyd wrote: The modem node has an address of 408 and thus should come after tlmm and before gpu. Move the node to the right place to maintainer proper address sort order. Cc: Evan Green Cc: Sibi Sankar Fixes: e14a15eba89a ("arm64: dts: qcom: sc7180: Add Q6V5

[PATCH v5 3/4] mm/memory.c: Add memory read privilege on page fault handling

2020-05-20 Thread Bibo Mao
Here add pte_sw_mkyoung function to make page readable on MIPS platform during page fault handling. This patch improves page fault latency about 10% on my MIPS machine with lmbench lat_pagefault case. It is noop function on other arches, there is no negative influence on those architectures.

[PATCH v5 1/4] MIPS: Do not flush tlb page when updating PTE entry

2020-05-20 Thread Bibo Mao
It is not necessary to flush tlb page on all CPUs if suitable PTE entry exists already during page fault handling, just updating TLB is fine. Here redefine flush_tlb_fix_spurious_fault as empty on MIPS system. V5: - Define update_mmu_cache function specified on MIPS platform, and add page fault

Re: [PATCH v3 4/4] PCI: cadence: Use "dma-ranges" instead of "cdns,no-bar-match-nbits" property

2020-05-20 Thread Kishon Vijay Abraham I
Hi Rob, On 5/19/2020 10:41 PM, Rob Herring wrote: > On Fri, May 8, 2020 at 7:07 AM Kishon Vijay Abraham I wrote: >> >> Cadence PCIe core driver (host mode) uses "cdns,no-bar-match-nbits" >> property to configure the number of bits passed through from PCIe >> address to internal address in

Re: [tip: locking/kcsan] READ_ONCE: Use data_race() to avoid KCSAN instrumentation

2020-05-20 Thread Nathan Chancellor
On Thu, May 21, 2020 at 12:17:12AM +0200, Borislav Petkov wrote: > Hi, > > On Tue, May 12, 2020 at 02:36:53PM -, tip-bot2 for Will Deacon wrote: > > The following commit has been merged into the locking/kcsan branch of tip: > > > > Commit-ID: cdd28ad2d8110099e43527e96d059c5639809680 > >

[PATCH v5 2/4] mm/memory.c: Update local TLB if PTE entry exists

2020-05-20 Thread Bibo Mao
If two threads concurrently fault at the same address, the thread that won the race updates the PTE and its local TLB. For now, the other thread gives up, simply does nothing, and continues. It could happen that this second thread triggers another fault, whereby it only updates its local TLB

[PATCH v5 4/4] MIPS: mm: add page valid judgement in function pte_modify

2020-05-20 Thread Bibo Mao
If original PTE has _PAGE_ACCESSED bit set, and new pte has no _PAGE_NO_READ bit set, we can add _PAGE_SILENT_READ bit to enable page valid bit. Signed-off-by: Bibo Mao --- arch/mips/include/asm/pgtable.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v14 03/11] soc: mediatek: Add basic_clk_name to scp_power_data

2020-05-20 Thread Weiyi Lu
On Mon, 2020-05-18 at 19:52 +0200, Enric Balletbo i Serra wrote: > Hi Weiyi, > > On 15/5/20 5:35, Weiyi Lu wrote: > > On Mon, 2020-05-11 at 14:02 +0800, Weiyi Lu wrote: > >> On Wed, 2020-05-06 at 23:01 +0200, Enric Balletbo i Serra wrote: > >>> Hi Weiyi, > >>> > >>> Thank you for your patch. >

[PATCH v1 2/2] arm64: dts: imx8mn-ddr4-evk: correct ldo1/ldo2 voltage range

2020-05-20 Thread Robin Gong
Correct ldo1 voltage range from wrong high group(3.0v~3.3v) to low group (1.6v~1.9v) because the ldo1 should be 1.8v. Actually, two voltage groups have been supported at bd718x7-regulator driver, hence, just corrrect the voltage range to 1.6v~3.3v. For ldo2@0.8v, correct voltage range too.

[PATCH v1 1/2] arm64: dts: imx8mm-evk: correct ldo1/ldo2 voltage range

2020-05-20 Thread Robin Gong
Correct ldo1 voltage range from wrong high group(3.0v~3.3v) to low group (1.6v~1.9v) because the ldo1 should be 1.8v. Actually, two voltage groups have been supported at bd718x7-regulator driver, hence, just corrrect the voltage range to 1.6v~3.3v. For ldo2@0.8v, correct voltage range too.

Re: [PATCH] soc: fsl: qe: Replace one-element array and use struct_size() helper

2020-05-20 Thread Kees Cook
On Wed, May 20, 2020 at 06:52:21PM -0500, Li Yang wrote: > On Mon, May 18, 2020 at 5:57 PM Kees Cook wrote: > > Hm, looking at this code, I see a few other things that need to be > > fixed: > > > > 1) drivers/tty/serial/ucc_uart.c does not do a be32_to_cpu() conversion > >on the length test

Re: [PATCH -V2] swap: Reduce lock contention on swap cache from swap slots allocation

2020-05-20 Thread Huang, Ying
Andrew Morton writes: > On Wed, 20 May 2020 11:15:02 +0800 Huang Ying wrote: > >> In some swap scalability test, it is found that there are heavy lock >> contention on swap cache even if we have split one swap cache radix >> tree per swap device to one swap cache radix tree every 64 MB trunk in

Re: [PATCH v6 05/12] mmap locking API: convert mmap_sem call sites missed by coccinelle

2020-05-20 Thread Andrew Morton
On Tue, 19 May 2020 22:29:01 -0700 Michel Lespinasse wrote: > Convert the last few remaining mmap_sem rwsem calls to use the new > mmap locking API. These were missed by coccinelle for some reason > (I think coccinelle does not support some of the preprocessor > constructs in these files ?)

Re: [PATCH v6 12/12] mmap locking API: convert mmap_sem comments

2020-05-20 Thread Andrew Morton
On Tue, 19 May 2020 22:29:08 -0700 Michel Lespinasse wrote: > Convert comments that reference mmap_sem to reference mmap_lock instead. This may not be complete.. From: Andrew Morton Subject: mmap-locking-api-convert-mmap_sem-comments-fix fix up linux-next leftovers Cc: Daniel Jordan Cc:

Re: [PATCH] arm64/cpufeature: Move BUG_ON() inside get_arm64_ftr_reg()

2020-05-20 Thread Anshuman Khandual
On 05/20/2020 11:09 PM, Will Deacon wrote: > On Wed, May 20, 2020 at 04:47:11PM +0100, Catalin Marinas wrote: >> On Wed, May 20, 2020 at 01:20:13PM +0100, Will Deacon wrote: >>> On Wed, May 20, 2020 at 06:52:54AM +0530, Anshuman Khandual wrote: There is no way to proceed when requested

[PATCH] [v2] PCI: tegra194: Fix runtime PM imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/pci/controller/dwc/pcie-tegra194.c | 5 ++--- 1 file changed, 2

Re: [PATCH bpf] security: Fix hook iteration for secid_to_secctx

2020-05-20 Thread Alexei Starovoitov
On Wed, May 20, 2020 at 7:02 PM James Morris wrote: > > On Wed, 20 May 2020, Alexei Starovoitov wrote: > > > On Wed, May 20, 2020 at 8:15 AM Casey Schaufler > > wrote: > > > > > > > > > On 5/20/2020 5:56 AM, KP Singh wrote: > > > > From: KP Singh > > > > > > > > secid_to_secctx is not

Re: [PATCH] arm64/cpufeature: Move BUG_ON() inside get_arm64_ftr_reg()

2020-05-20 Thread Anshuman Khandual
On 05/20/2020 05:50 PM, Will Deacon wrote: > Hi Anshuman, > > On Wed, May 20, 2020 at 06:52:54AM +0530, Anshuman Khandual wrote: >> There is no way to proceed when requested register could not be searched in >> arm64_ftr_reg[]. Requesting for a non present register would be an error as >>

Re: [PATCH v3 01/16] spi: dw: Add Tx/Rx finish wait methods to the MID DMA

2020-05-20 Thread Feng Tang
Hi Serge, On Thu, May 21, 2020 at 04:21:51AM +0300, Serge Semin wrote: > Since DMA transfers are performed asynchronously with actual SPI > transaction, then even if DMA transfers are finished it doesn't mean > all data is actually pushed to the SPI bus. Some data might still be > in the

Re: [PATCH v3 0/3] Even moar rpmh cleanups

2020-05-20 Thread Bjorn Andersson
On Wed 20 May 18:21 PDT 2020, Stephen Boyd wrote: > We remove the tcs_is_free() API and then do super micro optimizations on > the irq handler. I haven't tested anything here so most likely there's a > bug (again again)! > > Changes from v2: > * Went back in time and used the v1 patch for the

Re: Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-20 Thread dinghao . liu
Thank you for your advice. I will fix these problems in the next edition of patch. Thierry Reding thierry.red...@gmail.com写道: > On Wed, May 20, 2020 at 04:52:23PM +0800, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > > it returns an error code. Thus a

RE: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-20 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > On Behalf Of Alexandru Elisei > Sent: Wednesday, May 20, 2020 10:31 PM> > Hi, > > On 5/18/20 12:17 PM, Alexandru Elisei wrote: > > Hi, > > > > On 5/18/20 11:45 AM, Mark Rutland wrote:

Re: [PATCH] KVM: PPC: Book3S HV: relax check on H_SVM_INIT_ABORT

2020-05-20 Thread Greg Kurz
On Wed, 20 May 2020 18:51:10 +0200 Laurent Dufour wrote: > The commit 8c47b6ff29e3 ("KVM: PPC: Book3S HV: Check caller of H_SVM_* > Hcalls") added checks of secure bit of SRR1 to filter out the Hcall > reserved to the Ultravisor. > > However, the Hcall H_SVM_INIT_ABORT is made by the Ultravisor

Re: Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-20 Thread dinghao . liu
Thank you for your advice. I think tegra194 is a good choice and I will use it in the next edition of patch. Bjorn Helgaas helg...@kernel.org写道: > On Wed, May 20, 2020 at 11:59:08AM +0200, Thierry Reding wrote: > > On Wed, May 20, 2020 at 04:52:23PM +0800, Dinghao Liu wrote: > > >

Re: [PATCH -V2] swap: Reduce lock contention on swap cache from swap slots allocation

2020-05-20 Thread Andrew Morton
On Wed, 20 May 2020 11:15:02 +0800 Huang Ying wrote: > In some swap scalability test, it is found that there are heavy lock > contention on swap cache even if we have split one swap cache radix > tree per swap device to one swap cache radix tree every 64 MB trunk in > commit 4b3ef9daa4fc

Re: [PATCH v2] Makefile: support compressed debug info

2020-05-20 Thread Masahiro Yamada
On Thu, May 21, 2020 at 4:36 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > As debug information gets larger and larger, it helps significantly save > the size of vmlinux images to compress the information in the debug > information sections. Note: this debug info is typically split off

[PATCH] [v2] PCI: tegra: Fix runtime PM imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Also, call pm_runtime_disable() when pm_runtime_get_sync() returns an error code. Signed-off-by: Dinghao

Re: [PATCH 3.16 00/99] 3.16.84-rc1 review

2020-05-20 Thread Chen-Yu Tsai
On Thu, May 21, 2020 at 5:23 AM Guenter Roeck wrote: > > On 5/20/20 7:13 AM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.84 release. > > There are 99 patches in this series, which will be posted as responses > > to this one. If anyone has any issues with

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

2020-05-20 Thread Yafang Shao
On Thu, May 21, 2020 at 2:00 AM Naresh Kamboju wrote: > > On Wed, 20 May 2020 at 17:26, Naresh Kamboju > wrote: > > > > > > This issue is specific on 32-bit architectures i386 and arm on linux-next > > tree. > > As per the test results history this problem started happening from > > Bad :

RE: [PATCH v3 0/2] Fix PCI HyperV device error handling

2020-05-20 Thread Michael Kelley
From: Lorenzo Pieralisi Sent: Monday, May 11, 2020 4:22 AM > > On Thu, May 07, 2020 at 01:01:26PM +0800, Wei Hu wrote: > > This series better handles some PCI HyperV error cases in general > > and for kdump case. Some of review comments from previous individual > > patch reviews, including

Re: [PATCH v2 08/12] i2c: designware: Introduce platform drivers glue layer interface

2020-05-20 Thread Serge Semin
On Wed, May 20, 2020 at 03:46:11PM +0300, Jarkko Nikula wrote: > Hi > > On 5/10/20 12:50 PM, Serge Semin wrote: > > Seeing the DW I2C platform driver is getting overcomplicated with a lot of > > vendor-specific configs let's introduce a glue-layer interface so new > > platforms which equipped

Re: io_uring vs CPU hotplug, was Re: [PATCH 5/9] blk-mq: don't set data->ctx and data->hctx in blk_mq_alloc_request_hctx

2020-05-20 Thread Ming Lei
On Thu, May 21, 2020 at 12:14:18AM +0200, Thomas Gleixner wrote: > Jens Axboe writes: > > > On 5/20/20 1:41 PM, Thomas Gleixner wrote: > >> Jens Axboe writes: > >>> On 5/20/20 8:45 AM, Jens Axboe wrote: > It just uses kthread_create_on_cpu(), nothing home grown. Pretty sure > they

Re: [PATCH v3] /dev/mem: Revoke mappings when a driver claims the region

2020-05-20 Thread Matthew Wilcox
On Wed, May 20, 2020 at 06:35:25PM -0700, Dan Williams wrote: > +static struct inode *devmem_inode; > + > +#ifdef CONFIG_IO_STRICT_DEVMEM > +void revoke_devmem(struct resource *res) > +{ > + struct inode *inode = READ_ONCE(devmem_inode); > + > + /* > + * Check that the initialization

Re: [PATCH net-next 1/2] net: hns3: adds support for dynamic VLAN mode

2020-05-20 Thread tanhuazhong
On 2020/5/21 9:36, Jakub Kicinski wrote: On Thu, 21 May 2020 09:33:14 +0800 tanhuazhong wrote: On 2020/5/21 5:06, Jakub Kicinski wrote: On Wed, 20 May 2020 09:20:12 +0800 Huazhong Tan wrote: From: GuoJia Liao There is a scenario which needs vNICs enable the VLAN filter in access port,

Re: [patch V6 10/37] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY

2020-05-20 Thread Boris Ostrovsky
On 5/20/20 3:16 PM, Thomas Gleixner wrote: > +__visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs) > +{ > + struct pt_regs *old_regs; > + bool inhcall; > + > + idtentry_enter(regs); > + old_regs = set_irq_regs(regs); > + > +

Re: [RFC][PATCHES] uaccess-related stuff in net/*

2020-05-20 Thread David Miller
From: Al Viro Date: Thu, 21 May 2020 01:36:57 +0100 > On Mon, May 11, 2020 at 05:02:51PM -0700, David Miller wrote: >> From: Al Viro >> Date: Mon, 11 May 2020 05:43:28 +0100 >> >> >Assorted uaccess-related work in net/*. First, there's >> > getting rid of compat_alloc_user_space() mess in

RE: [PATCH 2/2] soundwire: intel: transition to 3 steps initialization

2020-05-20 Thread Liao, Bard
> -Original Message- > From: Vinod Koul > Sent: Wednesday, May 20, 2020 9:54 PM > To: Bard Liao > Cc: alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org; ti...@suse.de; > broo...@kernel.org; gre...@linuxfoundation.org; j...@cadence.com; > srinivas.kandaga...@linaro.org;

Re: [PATCH v2 07/12] i2c: designware: Move Baytrail sem config to the platform if-clause

2020-05-20 Thread Serge Semin
On Wed, May 20, 2020 at 03:16:14PM +0300, Jarkko Nikula wrote: > On 5/10/20 12:50 PM, Serge Semin wrote: > > Currently Intel Baytrail I2C semaphore is a feature of the DW APB I2C > > platform driver. It's a bit confusing to see it's config in the menu at > > some separated place with no reference

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-20 Thread Ramuthevar, Vadivel MuruganX
Hi Mark, Thank you for the review comments... On 20/5/2020 8:43 pm, Mark Brown wrote: On Wed, May 20, 2020 at 08:36:12PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add dt-bindings documentation for Cadence-QSPI controller to support spi based flash memories.

[PATCH] MIPS: DTS: Only build subdir of current platform

2020-05-20 Thread Tiezhu Yang
Add config check in Makefile to only build the subdir of current platform. E.g. without this patch: AR arch/mips/built-in.a AR arch/mips/boot/dts/brcm/built-in.a AR arch/mips/boot/dts/cavium-octeon/built-in.a AR arch/mips/boot/dts/img/built-in.a AR

Re: [PATCH 0/1] x86/boot: lld fix

2020-05-20 Thread Fangrui Song
On 2020-05-20, Arvind Sankar wrote: On Wed, May 20, 2020 at 06:56:53PM -0400, Arvind Sankar wrote: arch/x86/boot/setup.elf currently has an orphan section .text.startup, and lld git as of ebf14d9b6d8b is breaking on 64-bit due to what seems to be a change in behavior on orphan section placement

Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line

2020-05-20 Thread Joe Perches
On Wed, 2020-05-20 at 18:00 -0700, Andrew Morton wrote: > On Wed, 20 May 2020 13:36:45 -0700 Joe Perches wrote: > > > On Wed, 2020-05-20 at 21:10 +0900, Sergey Senozhatsky wrote: > > > On (20/05/19 21:58), Joe Perches wrote: > > > [..] > > > > > Maybe we can > > > > > use here something rather

linux-next: build warning after merge of the v4l-dvb tree

2020-05-20 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb tree, today's linux-next build (x86_84 allmodconfig) produced this warning: drivers/staging/media/atomisp/pci/atomisp_v4l2.c:764:12: warning: 'atomisp_mrfld_power' defined but not used [-Wunused-function] 764 | static int atomisp_mrfld_power(struct

Re: [PATCH bpf] security: Fix hook iteration for secid_to_secctx

2020-05-20 Thread James Morris
On Wed, 20 May 2020, Alexei Starovoitov wrote: > On Wed, May 20, 2020 at 8:15 AM Casey Schaufler > wrote: > > > > > > On 5/20/2020 5:56 AM, KP Singh wrote: > > > From: KP Singh > > > > > > secid_to_secctx is not stackable, and since the BPF LSM registers this > > > hook by default, the

Re: [PATCH v2 04/12] i2c: designware: Convert driver to using regmap API

2020-05-20 Thread Serge Semin
On Wed, May 20, 2020 at 03:16:07PM +0300, Jarkko Nikula wrote: > On 5/10/20 12:50 PM, Serge Semin wrote: > > Seeing the DW I2C driver is using flags-based accessors with two > > conditional clauses it would be better to replace them with the regmap > > API IO methods and to initialize the regmap

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-20 Thread Thinh Nguyen
Thinh Nguyen wrote: > Jun Li wrote: >> Hi >> >>> -Original Message- >>> From: Thinh Nguyen >>> Sent: 2020年5月19日 14:46 >>> To: Jun Li ; Felipe Balbi ; Jun Li >>> >>> Cc: John Stultz ; lkml >>> ; Yu >>> Chen ; Greg Kroah-Hartman >>> ; Rob >>> Herring ; Mark Rutland ; ShuFan >>> Lee >>>

[PATCH] [PATCH]Fixed: line break of pr_cont not take effect in linux-rt

2020-05-20 Thread root
From: 汪勇10269566 Line break of pr_cont not take effect. Use several pr_cont to print continuous paragraph, it is expected to have line break when line ends up with '\n', however the paragraph does not have line break -printk_kthread_func will not print info before log_store insert msg into

[PATCH v3] /dev/mem: Revoke mappings when a driver claims the region

2020-05-20 Thread Dan Williams
Close the hole of holding a mapping over kernel driver takeover event of a given address range. Commit 90a545e98126 ("restrict /dev/mem to idle io memory ranges") introduced CONFIG_IO_STRICT_DEVMEM with the goal of protecting the kernel against scenarios where a /dev/mem user tramples memory that

Re: [PATCH v2 5/6] dmaengine: dw: Introduce max burst length hw config

2020-05-20 Thread Serge Semin
On Tue, May 19, 2020 at 10:37:14PM +0530, Vinod Koul wrote: > On 17-05-20, 22:38, Serge Semin wrote: > > On Fri, May 15, 2020 at 12:09:50PM +0530, Vinod Koul wrote: > > > On 12-05-20, 22:12, Andy Shevchenko wrote: > > > > On Tue, May 12, 2020 at 05:08:20PM +0300, Serge Semin wrote: > > > > > On

Re: [PATCH v5 1/4] rcu/kasan: record and print call_rcu() call stack

2020-05-20 Thread Walter Wu
> On Wed, May 20, 2020 at 2:34 PM Walter Wu wrote: > > > > This feature will record the last two call_rcu() call stacks and > > prints up to 2 call_rcu() call stacks in KASAN report. > > > > When call_rcu() is called, we store the call_rcu() call stack into > > slub alloc meta-data, so that the

[PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-20 Thread Baoquan He
Qian reported that a crash happened in compaction. http://lkml.kernel.org/r/8c537eb7-85ee-4dcf-943e-3cc0ed0df...@lca.pw LTP: starting swapping01 (swapping01 -i 5) page:eaaa refcount:1 mapcount:0 mapping:2243743b index:0x0 flags: 0x1fffe01000(reserved) raw: 001fffe01000

Re: [PATCH v2 4/6] dmaengine: dw: Print warning if multi-block is unsupported

2020-05-20 Thread Serge Semin
On Tue, May 19, 2020 at 10:32:46PM +0530, Vinod Koul wrote: > On 17-05-20, 22:23, Serge Semin wrote: > > On Fri, May 15, 2020 at 12:00:39PM +0530, Vinod Koul wrote: > > > Hi Serge, > > > > > > On 12-05-20, 15:42, Serge Semin wrote: > > > > Vinod, > > > > > > > > Could you join the discussion for

Re: [PATCH net-next 1/2] net: hns3: adds support for dynamic VLAN mode

2020-05-20 Thread Jakub Kicinski
On Thu, 21 May 2020 09:33:14 +0800 tanhuazhong wrote: > On 2020/5/21 5:06, Jakub Kicinski wrote: > > On Wed, 20 May 2020 09:20:12 +0800 Huazhong Tan wrote: > >> From: GuoJia Liao > >> > >> There is a scenario which needs vNICs enable the VLAN filter > >> in access port, while disable the VLAN

Re: [PATCH v2 2/2] [media] mtk-mdp: use pm_runtime in MDP component driver

2020-05-20 Thread Eizan Miyamoto
On Thu, May 7, 2020 at 3:07 AM Enric Balletbo Serra wrote: > > Hi Eizan, > > Thank you for the patch. > > Missatge de Eizan Miyamoto del dia dc., 6 de maig > 2020 a les 10:42: > > > > Without this change, the MDP components are not fully integrated into > > the runtime power management

Re: [PATCH bpf] security: Fix hook iteration for secid_to_secctx

2020-05-20 Thread Alexei Starovoitov
On Wed, May 20, 2020 at 8:15 AM Casey Schaufler wrote: > > > On 5/20/2020 5:56 AM, KP Singh wrote: > > From: KP Singh > > > > secid_to_secctx is not stackable, and since the BPF LSM registers this > > hook by default, the call_int_hook logic is not suitable which > > "bails-on-fail" and casues

Re: [PATCH] kthread: Use TASK_IDLE state for newly created kernel threads

2020-05-20 Thread Pavan Kondeti
On Wed, May 20, 2020 at 08:18:58PM +0200, Greg Kroah-Hartman wrote: > On Wed, May 20, 2020 at 05:25:09PM +0530, Pavankumar Kondeti wrote: > > When kernel threads are created for later use, they will be in > > TASK_UNINTERRUPTIBLE state until they are woken up. This results > > in increased loadavg

Re: [PATCH v2 2/6] dt-bindings: dma: dw: Add max burst transaction length property

2020-05-20 Thread Serge Semin
On Tue, May 19, 2020 at 10:43:04PM +0530, Vinod Koul wrote: > On 17-05-20, 20:47, Serge Semin wrote: > > On Fri, May 15, 2020 at 02:11:13PM +0300, Serge Semin wrote: > > > On Fri, May 15, 2020 at 04:26:58PM +0530, Vinod Koul wrote: > > > > On 15-05-20, 13:51, Andy Shevchenko wrote: > > > > > On

Re: [PATCH net-next 1/2] net: hns3: adds support for dynamic VLAN mode

2020-05-20 Thread tanhuazhong
On 2020/5/21 5:06, Jakub Kicinski wrote: On Wed, 20 May 2020 09:20:12 +0800 Huazhong Tan wrote: From: GuoJia Liao There is a scenario which needs vNICs enable the VLAN filter in access port, while disable the VLAN filter in trunk port. Access port and trunk port can switch according to the

Re: [PATCH v2 5/7] mm: parallelize deferred_init_memmap()

2020-05-20 Thread Alexander Duyck
On Wed, May 20, 2020 at 11:27 AM Daniel Jordan wrote: > > Deferred struct page init is a significant bottleneck in kernel boot. > Optimizing it maximizes availability for large-memory systems and allows > spinning up short-lived VMs as needed without having to leave them > running. It also

[PATCH v3 12/16] spi: dw: Add DW SPI DMA/PCI/MMIO dependency on the DW SPI core

2020-05-20 Thread Serge Semin
Seeing all of the DW SPI driver components like DW SPI DMA/PCI/MMIO depend on the DW SPI core code it's better to use the if-endif conditional kernel config statement to signify that common dependency. Co-developed-by: Georgy Vlasov Signed-off-by: Georgy Vlasov Co-developed-by: Ramil Zaripov

[PATCH v3 14/16] spi: dw: Add DMA support to the DW SPI MMIO driver

2020-05-20 Thread Serge Semin
Since the common code in the spi-dw-dma.c driver is ready to be used by the MMIO driver and now provides a method to generically (on any DT or ACPI-based platforms) retrieve the Tx/Rx DMA channel handlers, we can use it and a set of the common DW SPI DMA callbacks to enable DMA at least for

[PATCH v3 11/16] spi: dw: Remove DW DMA code dependency from DW_DMAC_PCI

2020-05-20 Thread Serge Semin
Since there is a generic method available to initialize the DW SPI DMA interface on any DT and ACPI-based platforms, which in general can be designed with not only DW DMAC but with any DMA engine on board, we can freely remove the CONFIG_DW_DMAC_PCI config from dependency list of

  1   2   3   4   5   6   7   8   9   10   >