Re: [PATCH v2] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-15 Thread Xiongfeng Wang
On 2019/8/11 16:07, Lukas Wunner wrote: > On Mon, Aug 05, 2019 at 08:32:58PM +0800, Xiongfeng Wang wrote: >> When we remove a slot by sysfs. >> 'pci_stop_and_remove_bus_device_locked()' will be called. This function >> will get the global mutex lock 'pci_rescan_remove_lock', and remove the >>

[tip:perf/core] perf intel-pt: Add brief documentation for PEBS via Intel PT

2019-08-15 Thread tip-bot for Adrian Hunter
Commit-ID: 243384dd25c8ea721c5c82a229eaf33cbd1bfd52 Gitweb: https://git.kernel.org/tip/243384dd25c8ea721c5c82a229eaf33cbd1bfd52 Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:06 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf

[tip:perf/core] perf tools: Add aux-output config term

2019-08-15 Thread tip-bot for Adrian Hunter
Commit-ID: 1b9921546a9641aefc4a52c1c635b96b67142993 Gitweb: https://git.kernel.org/tip/1b9921546a9641aefc4a52c1c635b96b67142993 Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:05 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf tools:

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-15 Thread Greentime Hu
Hi Logan, On Thu, Aug 15, 2019 at 6:21 AM Logan Gunthorpe wrote: > > Hey, > > On 2019-08-14 7:35 a.m., Greentime Hu wrote: > > How about this fix? Not sure if it is good for everyone. > > I applied your fix to the patch and it seems ok. But it doesn't seem to > work on a recent version of the

[tip:perf/core] perf tools: Add itrace option 'o' to synthesize aux-output events

2019-08-15 Thread tip-bot for Adrian Hunter
Commit-ID: 181ebb5e23a5e480f6d6aa2816a9c4aaa65afa59 Gitweb: https://git.kernel.org/tip/181ebb5e23a5e480f6d6aa2816a9c4aaa65afa59 Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:03 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf tools:

[tip:perf/core] perf intel-pt: Process options for PEBS event synthesis

2019-08-15 Thread tip-bot for Adrian Hunter
Commit-ID: 9e64cefe4335b0f2799956d3f3cca8bb652d950f Gitweb: https://git.kernel.org/tip/9e64cefe4335b0f2799956d3f3cca8bb652d950f Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:04 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf

[tip:perf/core] perf ftrace: Improve error message about capability to use ftrace

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 73e5de70dca00344cb48e018131a4cadec0fabf0 Gitweb: https://git.kernel.org/tip/73e5de70dca00344cb48e018131a4cadec0fabf0 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 12 Aug 2019 17:27:11 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300

[tip:perf/core] perf tools: Add aux_output attribute flag

2019-08-15 Thread tip-bot for Adrian Hunter
Commit-ID: 5a4b58e5d64ac7ebca175ffd8d74ca1b5cb0a01f Gitweb: https://git.kernel.org/tip/5a4b58e5d64ac7ebca175ffd8d74ca1b5cb0a01f Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:02 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf tools:

[tip:perf/core] perf ftrace: Use CAP_SYS_ADMIN instead of euid==0

2019-08-15 Thread tip-bot for Igor Lubashev
Commit-ID: c766f3df635de14295e410c6dd5410bc416c24a0 Gitweb: https://git.kernel.org/tip/c766f3df635de14295e410c6dd5410bc416c24a0 Author: Igor Lubashev AuthorDate: Wed, 7 Aug 2019 10:44:17 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf ftrace:

[tip:perf/core] perf record: Add an option to take an AUX snapshot on exit

2019-08-15 Thread tip-bot for Alexander Shishkin
Commit-ID: ce7b0e426ef359ee1d4a6126314ee3547a8eed87 Gitweb: https://git.kernel.org/tip/ce7b0e426ef359ee1d4a6126314ee3547a8eed87 Author: Alexander Shishkin AuthorDate: Tue, 6 Aug 2019 17:41:01 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf

[tip:perf/core] perf tools: Add CAP_SYSLOG define for older systems

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 083c1359b0e03867a8c7effd21d4c0be3639f336 Gitweb: https://git.kernel.org/tip/083c1359b0e03867a8c7effd21d4c0be3639f336 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 13 Aug 2019 11:38:19 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300

[tip:perf/core] perf tools: Add NO_LIBCAP=1 to the minimal build test

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 97993bd6eb89bf08649c01d4d57453feca4314f8 Gitweb: https://git.kernel.org/tip/97993bd6eb89bf08649c01d4d57453feca4314f8 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 12 Aug 2019 16:43:08 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300

[PATCH -next] ASoC: 88pm860x: remove unused variables 'pcm_switch_controls' and 'aif1_mux'

2019-08-15 Thread YueHaibing
sound/soc/codecs/88pm860x-codec.c:533:38: warning: pcm_switch_controls defined but not used [-Wunused-const-variable=] sound/soc/codecs/88pm860x-codec.c:560:38: warning: aif1_mux defined but not used [-Wunused-const-variable=] They are never used, so can be removed. Reported-by: Hulk Robot

Re: [PATCH 7/8] parisc: don't set ARCH_NO_COHERENT_DMA_MMAP

2019-08-15 Thread James Bottomley
On Thu, 2019-08-08 at 19:00 +0300, Christoph Hellwig wrote: > parisc is the only architecture that sets ARCH_NO_COHERENT_DMA_MMAP > when an MMU is enabled. AFAIK this is because parisc CPUs use VIVT > caches, We're actually VIPT but the same principle applies. > which means exporting normally

Re: [PATCH] virtio-net: lower min ring num_free for efficiency

2019-08-15 Thread Jason Wang
On 2019/8/15 下午4:36, 冉 jiang wrote: On 2019/8/15 11:17, Jason Wang wrote: On 2019/8/15 上午11:11, 冉 jiang wrote: On 2019/8/15 11:01, Jason Wang wrote: On 2019/8/14 上午10:06, ? jiang wrote: This change lowers ring buffer reclaim threshold from 1/2*queue to budget for better performance.

[tip:perf/core] perf tools: Add helpers to use capabilities if present

2019-08-15 Thread tip-bot for Igor Lubashev
Commit-ID: c22e150e3afa6f8db2300bd510e4ac26bbee1bf3 Gitweb: https://git.kernel.org/tip/c22e150e3afa6f8db2300bd510e4ac26bbee1bf3 Author: Igor Lubashev AuthorDate: Wed, 7 Aug 2019 10:44:14 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:48:39 -0300 perf tools:

[tip:perf/core] tools build: Add capability-related feature detection

2019-08-15 Thread tip-bot for Igor Lubashev
Commit-ID: 74d5f3d06f707eb5f7e1908ad88954bde02000ce Gitweb: https://git.kernel.org/tip/74d5f3d06f707eb5f7e1908ad88954bde02000ce Author: Igor Lubashev AuthorDate: Wed, 7 Aug 2019 10:44:14 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 17:14:14 -0300 tools build:

[PATCH -next] ASoC: cs42l56: remove unused variable 'adc_swap_enum'

2019-08-15 Thread YueHaibing
sound/soc/codecs/cs42l56.c:206:30: warning: adc_swap_enum defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/cs42l56.c | 8 1 file changed, 8 deletions(-) diff --git

[tip:perf/core] perf top: Collapse and resort all evsels in a group

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 40d81772dac45643cecc7add0e95356072265754 Gitweb: https://git.kernel.org/tip/40d81772dac45643cecc7add0e95356072265754 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 9 Aug 2019 16:44:34 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

Re: [PATCH v4 2/7] x86: kvm: svm: propagate errors from skip_emulated_instruction()

2019-08-15 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Wed, Aug 14, 2019 at 11:34:52AM +0200, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >> > x86_emulate_instruction() doesn't set vcpu->run->exit_reason when emulation >> > fails with EMULTYPE_SKIP, i.e. this will exit to userspace with garbage in >> >

[PATCH -next] ASoC: es8328: Fix copy-paste error in es8328_right_line_controls

2019-08-15 Thread YueHaibing
It seems 'es8328_rline_enum' should be used in es8328_right_line_controls Fixes: 567e4f98922c ("ASoC: add es8328 codec driver") Signed-off-by: YueHaibing --- sound/soc/codecs/es8328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/es8328.c

[tip:perf/core] perf trace: Fix segmentation fault when access syscall info on arm64

2019-08-15 Thread tip-bot for Leo Yan
Commit-ID: 3e70008a6021fffd2cd1614734603ea970773060 Gitweb: https://git.kernel.org/tip/3e70008a6021fffd2cd1614734603ea970773060 Author: Leo Yan AuthorDate: Fri, 9 Aug 2019 18:47:52 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300 perf trace: Fix

[tip:perf/core] perf hist: Remove dummy entries when finding real ones.

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 5f8b4d5d237a3e2e35509da4e63769ae5c82c085 Gitweb: https://git.kernel.org/tip/5f8b4d5d237a3e2e35509da4e63769ae5c82c085 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 9 Aug 2019 17:56:06 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

Re: [PATCH] virtio-net: lower min ring num_free for efficiency

2019-08-15 Thread Jason Wang
On 2019/8/15 下午4:36, 冉 jiang wrote: On 2019/8/15 11:17, Jason Wang wrote: On 2019/8/15 上午11:11, 冉 jiang wrote: On 2019/8/15 11:01, Jason Wang wrote: On 2019/8/14 上午10:06, ? jiang wrote: This change lowers ring buffer reclaim threshold from 1/2*queue to budget for better performance.

[tip:perf/core] perf hists: Do not link a pair if already linked

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7d1a5efa20dbfea97cb93b99c67ce5cd5c4a4dbc Gitweb: https://git.kernel.org/tip/7d1a5efa20dbfea97cb93b99c67ce5cd5c4a4dbc Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 7 Aug 2019 10:45:30 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[tip:perf/core] perf top: Set display thread COMM to help with debugging

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 1205a2719e52b6b52e0f9c0011554419da0377a0 Gitweb: https://git.kernel.org/tip/1205a2719e52b6b52e0f9c0011554419da0377a0 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 6 Aug 2019 11:20:42 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[tip:perf/core] perf vendor events intel: Add Icelake V1.00 event file

2019-08-15 Thread tip-bot for Haiyan Song
Commit-ID: b115df076d337a727017538d11d7d46f5bcbff15 Gitweb: https://git.kernel.org/tip/b115df076d337a727017538d11d7d46f5bcbff15 Author: Haiyan Song AuthorDate: Wed, 12 Jun 2019 16:15:42 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300 perf vendor

[PATCH -next] ASoC: es8328: remove unused variable 'pga_tlv'

2019-08-15 Thread YueHaibing
sound/soc/codecs/es8328.c:102:35: warning: pga_tlv defined but not used [-Wunused-const-variable=] They are never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/es8328.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH -next] ASoC: wm8737: Fix copy-paste error in wm8737_snd_controls

2019-08-15 Thread YueHaibing
sound/soc/codecs/wm8737.c:112:29: warning: high_3d defined but not used [-Wunused-const-variable=] 'high_3d' should be used for 3D High Cut-off. Reported-by: Hulk Robot Fixes: 2a9ae13a2641 ("ASoC: Add initial WM8737 driver") Signed-off-by: YueHaibing --- sound/soc/codecs/wm8737.c | 2 +- 1

[tip:perf/core] perf tools: Fix paths in include statements

2019-08-15 Thread tip-bot for Luke Mujica
Commit-ID: 2b75863b0845764529e01014a5c90664d8044cbe Gitweb: https://git.kernel.org/tip/2b75863b0845764529e01014a5c90664d8044cbe Author: Luke Mujica AuthorDate: Fri, 19 Jul 2019 13:22:53 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300 perf tools:

[tip:perf/core] perf test vfs_getname: Disable ~/.perfconfig to get default output

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 4fe94ce1c6ba678b5f12b94bb9996eea4fc99e85 Gitweb: https://git.kernel.org/tip/4fe94ce1c6ba678b5f12b94bb9996eea4fc99e85 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 11:37:44 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[tip:perf/core] perf config: Document the PERF_CONFIG environment variable

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 5de9e5fda05b580c036e1fec6e2d8bf78eb2ac9d Gitweb: https://git.kernel.org/tip/5de9e5fda05b580c036e1fec6e2d8bf78eb2ac9d Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 11:30:37 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[PATCH -next] ASoC: tlv320aic31xx: remove unused variable 'cm_m_enum'

2019-08-15 Thread YueHaibing
sound/soc/codecs/tlv320aic31xx.c:261:29: warning: cm_m_enum defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/tlv320aic31xx.c | 1 - 1 file changed, 1 deletion(-) diff --git

[tip:perf/core] perf config: Honour $PERF_CONFIG env var to specify alternate .perfconfig

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 61a461fcbd62d42c29a1ea6a9cc3838ad9f49401 Gitweb: https://git.kernel.org/tip/61a461fcbd62d42c29a1ea6a9cc3838ad9f49401 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 11:20:55 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[tip:perf/core] perf session: Avoid infinite loop when seeing invalid header.size

2019-08-15 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 57fc032ad643ffd018d66bd4c1bd3a91de4841e8 Gitweb: https://git.kernel.org/tip/57fc032ad643ffd018d66bd4c1bd3a91de4841e8 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 30 Jul 2019 10:58:41 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 12 Aug 2019 16:26:02 -0300

[PATCH -next] ASoC: tlv320aic23: remove unused variable 'tlv320aic23_rec_src'

2019-08-15 Thread YueHaibing
sound/soc/codecs/tlv320aic23.c:70:29: warning: tlv320aic23_rec_src defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/tlv320aic23.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH] scsi: fcoe: remove redundant call to skb_transport_header

2019-08-15 Thread Colin King
From: Colin Ian King Pointer fh is being assigned a return value from the call to skb_transport_header however this value is never read and fh is being re-assigned immediately afterwards with a new value. Since there are side-effects from calling skb_transport_header the call is redundant and

[PATCH -next] ASoC: rt1011: remove unused variable 'dac_vol_tlv' and 'adc_vol_tlv'

2019-08-15 Thread YueHaibing
sound/soc/codecs/rt1011.c:981:35: warning: dac_vol_tlv defined but not used [-Wunused-const-variable=] sound/soc/codecs/rt1011.c:982:35: warning: adc_vol_tlv defined but not used [-Wunused-const-variable=] They are never used, so can be removed. Signed-off-by: YueHaibing ---

Re: [PATCH 12/16] arm64: prefer __section from compiler_attributes.h

2019-08-15 Thread Miguel Ojeda
On Thu, Aug 15, 2019 at 11:08 AM Miguel Ojeda wrote: > > On Thu, Aug 15, 2019 at 12:20 AM Nick Desaulniers > wrote: > > > > This lone patch of the series is just cosmetic, but patch 14/16 fixes > > a real boot issue: > > https://github.com/ClangBuiltLinux/linux/issues/619 > > Miguel, I'd like to

Re: [PATCH 12/16] arm64: prefer __section from compiler_attributes.h

2019-08-15 Thread Miguel Ojeda
On Thu, Aug 15, 2019 at 12:20 AM Nick Desaulniers wrote: > > This lone patch of the series is just cosmetic, but patch 14/16 fixes > a real boot issue: > https://github.com/ClangBuiltLinux/linux/issues/619 > Miguel, I'd like to get that one landed ASAP; the rest are just for > consistency. Ah,

[PATCH -next] ASoC: max98371: remove unused variable 'max98371_noload_gain_tlv'

2019-08-15 Thread YueHaibing
sound/soc/codecs/max98371.c:157:35: warning: max98371_noload_gain_tlv defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/max98371.c | 4 1 file changed, 4 deletions(-) diff --git

Re: /sys/devices/system/cpu/vulnerabilities/ doesn't show all known CPU vulnerabilities

2019-08-15 Thread Thomas Gleixner
On Wed, 14 Aug 2019, Kernel User wrote: > On Wed, 14 Aug 2019 09:04:57 +0200 Borislav Petkov wrote: > > > IMO, what you want does not belong in sysfs but in documentation. > > How would documentation (a fixed static text file) tell whether a > particular system is vulnerable or not? > > > I

[PATCH -next] ASoC: cs4349: Use PM ops 'cs4349_runtime_pm'

2019-08-15 Thread YueHaibing
sound/soc/codecs/cs4349.c:358:32: warning: cs4349_runtime_pm defined but not used [-Wunused-const-variable=] cs4349_runtime_pm ops already defined, it seems we should enable it. Reported-by: Hulk Robot Fixes: e40da86 ("ASoC: cs4349: Add support for Cirrus Logic CS4349") Signed-off-by:

Re: [PATCH -next] mm/kmemleak: increase the max mem pool to 1M

2019-08-15 Thread Catalin Marinas
On Wed, Aug 14, 2019 at 02:32:52PM -0400, Qian Cai wrote: > There are some machines with slow disk and fast CPUs. When they are > under memory pressure, it could take a long time to swap before the OOM > kicks in to free up some memory. As the results, it needs a large > mem pool for kmemleak or

[PATCH -next] ASoC: cs42l73: remove unused variables 'vsp_output_mux' and 'xsp_output_mux'

2019-08-15 Thread YueHaibing
sound/soc/codecs/cs42l73.c:276:38: warning: vsp_output_mux defined but not used [-Wunused-const-variable=] sound/soc/codecs/cs42l73.c:279:38: warning: xsp_output_mux defined but not used [-Wunused-const-variable=] They are never used, so can be removed. Reported-by: Hulk Robot Signed-off-by:

Re: [stable] Deleting "mt7621-mmc" with "interesting" license?

2019-08-15 Thread Pavel Machek
On Thu 2019-08-15 10:44:06, Greg KH wrote: > On Thu, Aug 15, 2019 at 09:59:27AM +0200, Pavel Machek wrote: > > On Thu 2019-08-15 09:51:32, Greg KH wrote: > > > On Thu, Aug 15, 2019 at 09:13:50AM +0200, Pavel Machek wrote: > > > > Hi! > > > > > > > > I realize that "interesting" license is not on

Re: [PATCH v5] perf machine: arm/arm64: Improve completeness for kernel address space

2019-08-15 Thread Adrian Hunter
On 15/08/19 11:25 AM, Leo Yan wrote: > Arm and arm64 architecture reserve some memory regions prior to the > symbol '_stext' and these memory regions later will be used by device > module and BPF jit. The current code misses to consider these memory > regions thus any address in the regions will

Re: [PATCH] ata: libahci_platform: Add of_node_put() before loop exit

2019-08-15 Thread Hans de Goede
Hi, On 15-08-19 08:00, Nishka Dasgupta wrote: Each iteration of for_each_child_of_node puts the previous node, but in the case of a goto from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before three such goto statements. Issue found with Coccinelle.

Re: [PATCH v3 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-15 Thread Uwe Kleine-König
Hello Baolin, On Thu, Aug 15, 2019 at 04:16:32PM +0800, Baolin Wang wrote: > On Thu, 15 Aug 2019 at 14:15, Uwe Kleine-König > wrote: > > On Thu, Aug 15, 2019 at 11:34:27AM +0800, Baolin Wang wrote: > > > On Wed, 14 Aug 2019 at 23:03, Uwe Kleine-König > > > wrote: > > > > On Wed, Aug 14, 2019 at

for_each_child_of_node semantics are broken (was [PATCH] ata: libahci_platform: Add of_node_put() before loop exit)

2019-08-15 Thread Hans de Goede
Hi Nishka, On 15-08-19 08:00, Nishka Dasgupta wrote: Each iteration of for_each_child_of_node puts the previous node, but in the case of a goto from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before three such goto statements. Issue found with

Re: WARNING in is_bpf_text_address

2019-08-15 Thread Daniel Borkmann
On 8/11/19 10:36 AM, Hillf Danton wrote: On Sun, 11 Aug 2019 08:24:09 +0800 syzbot has found a reproducer for the following crash on: HEAD commit:451577f3 Merge tag 'kbuild-fixes-v5.3-3' of git://git.kern.. git tree: upstream console output:

[PATCH 06/10] PCI: layerscape: Modify the MSIX to the doorbell way

2019-08-15 Thread Xiaowei Bao
The layerscape platform use the doorbell way to trigger MSIX interrupt in EP mode. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pci-layerscape-ep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c

[PATCH 02/10] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-08-15 Thread Xiaowei Bao
Add the doorbell mode of MSI-X in EP mode. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pcie-designware-ep.c | 14 ++ drivers/pci/controller/dwc/pcie-designware.h| 14 ++ 2 files changed, 28 insertions(+) diff --git

[PATCH 03/10] PCI: designware-ep: Move the function of getting MSI capability forward

2019-08-15 Thread Xiaowei Bao
Move the function of getting MSI capability to the front of init function, because the init function of the EP platform driver will use the return value by the function of getting MSI capability. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pcie-designware-ep.c | 7 --- 1 file

[PATCH 04/10] dt-bindings: pci: layerscape-pci: add compatible strings for ls1088a and ls2088a

2019-08-15 Thread Xiaowei Bao
Add compatible strings for ls1088a and ls2088a. Signed-off-by: Xiaowei Bao --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt

[PATCH 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-15 Thread Xiaowei Bao
Add multiple PFs support for DWC, different PF have different config space, we use pf-offset property which get from the DTS to access the different pF config space. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pcie-designware-ep.c | 97 +-

[PATCH 09/10] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2019-08-15 Thread Xiaowei Bao
Add PCIe EP node for ls1088a to support EP mode. Signed-off-by: Xiaowei Bao --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 32 ++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi

[PATCH 05/10] PCI: layerscape: Modify the way of getting capability with different PEX

2019-08-15 Thread Xiaowei Bao
The different PCIe controller in one board may be have different capability of MSI or MSIX, so change the way of getting the MSI capability, make it more flexible. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pci-layerscape-ep.c | 28 +++--- 1 file changed, 21

[PATCH 08/10] dt-bindings: PCI: Add the pf-offset property

2019-08-15 Thread Xiaowei Bao
Add the pf-offset property for multiple PF. Signed-off-by: Xiaowei Bao --- Documentation/devicetree/bindings/pci/designware-pcie.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt

[PATCH 07/10] PCI: layerscape: Fix some format issue of the code

2019-08-15 Thread Xiaowei Bao
Fix some format issue of the code in EP driver. Signed-off-by: Xiaowei Bao --- drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c

[PATCH 10/10] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2019-08-15 Thread Xiaowei Bao
Add LS1088a in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in LS1088a. Signed-off-by: Xiaowei Bao --- drivers/misc/pci_endpoint_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index

Re: [RESEND PATCH 1/2 -mm] mm: account lazy free pages separately

2019-08-15 Thread Michal Hocko
On Wed 14-08-19 21:51:47, Yang Shi wrote: > > > On 8/14/19 4:08 AM, Michal Hocko wrote: > > On Mon 12-08-19 10:00:17, Yang Shi wrote: > > > > > > On 8/12/19 2:34 AM, Michal Hocko wrote: > > > > On Fri 09-08-19 16:54:43, Yang Shi wrote: > > > > > On 8/9/19 11:26 AM, Yang Shi wrote: > > > > > >

Re: [stable] Deleting "mt7621-mmc" with "interesting" license?

2019-08-15 Thread Greg KH
On Thu, Aug 15, 2019 at 09:59:27AM +0200, Pavel Machek wrote: > On Thu 2019-08-15 09:51:32, Greg KH wrote: > > On Thu, Aug 15, 2019 at 09:13:50AM +0200, Pavel Machek wrote: > > > Hi! > > > > > > I realize that "interesting" license is not on a list of bugs suitable > > > for -stable, but on the

[PATCH] staging: rtl8192u: fix up indentation of a statement

2019-08-15 Thread Colin King
From: Colin Ian King There is a statement that is indented one level too deeply, remove the extraneous tab. Addresses-Coverity: ("Identation does not match nesting level") Signed-off-by: Colin Ian King --- drivers/staging/rtl8192u/r8190_rtl8256.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v8 03/28] x86/asm: annotate relocate_kernel

2019-08-15 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 12:38:29PM +0200, Jiri Slaby wrote: > There are functions in relocate_kernel which are not annotated. This ^ _{32,64}.c > makes automatic annotations rather hard. So annotate all the functions

[PATCH] hexagon: drop empty and unused free_initrd_mem

2019-08-15 Thread Mike Rapoport
hexagon never reserves or initializes initrd and the only mention of it is the empty free_initrd_mem() function. As we have a generic implementation of free_initrd_mem(), there is no need to define an empty stub for the hexagon implementation and it can be dropped. Signed-off-by: Mike Rapoport

Re: [PATCH 08/11] drm/msm/hdmi: silence -EPROBE_DEFER warning

2019-08-15 Thread Linus Walleij
On Thu, Aug 15, 2019 at 2:49 AM Brian Masney wrote: > Silence a warning message due to an -EPROBE_DEFER error to help cleanup > the system boot log. > > Signed-off-by: Brian Masney Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 2/2] mm: memcontrol: flush percpu slab vmstats on kmem offlining

2019-08-15 Thread Michal Hocko
On Wed 14-08-19 21:54:12, Roman Gushchin wrote: > On Wed, Aug 14, 2019 at 01:32:42PM +0200, Michal Hocko wrote: > > On Mon 12-08-19 15:29:11, Roman Gushchin wrote: > > > I've noticed that the "slab" value in memory.stat is sometimes 0, > > > even if some children memory cgroups have a non-zero

Re: [PATCH v6 1/5] dt-bindings: media: Add Allwinner A10 CSI binding

2019-08-15 Thread Chen-Yu Tsai
Hi, Sorry for chiming in so late. On Thu, Jul 11, 2019 at 8:15 PM Maxime Ripard wrote: > > The Allwinner A10 CMOS Sensor Interface is a camera capture interface also > used in later (A10s, A13, A20, R8 and GR8) SoCs. > > On some SoCs, like the A10, there's multiple instances of that controller,

[PATCH 1/2] perf cs-etm: Support sample flags 'insn' and 'insnlen'

2019-08-15 Thread Leo Yan
The synthetic branch and instruction samples are missed to set instruction related info, thus perf tool fails to display samples with flags '-F,+insn,+insnlen'. CoreSight trace decoder has provided sufficient information to decide the instruction size based on the isa type: A64/A32 instruction

[PATCH] tools/power x86_energy_perf_policy: remove unneeded check

2019-08-15 Thread Dan Carpenter
The "i" variable is an int. The condition doesn't really make sense. Since we ensure that "i" is in the 0 to 0xff range on the following lines it's not required and this patch deletes it. Signed-off-by: Dan Carpenter --- tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c | 2 -- 1

Re: [PATCH v8 05/14] media: rkisp1: add Rockchip ISP1 subdev driver

2019-08-15 Thread Sakari Ailus
Hi Helen, On Wed, Aug 14, 2019 at 09:58:05PM -0300, Helen Koike wrote: ... > >> +static int rkisp1_isp_sd_set_fmt(struct v4l2_subdev *sd, > >> + struct v4l2_subdev_pad_config *cfg, > >> + struct v4l2_subdev_format *fmt) > >> +{ > >> + struct

[PATCH v5] perf machine: arm/arm64: Improve completeness for kernel address space

2019-08-15 Thread Leo Yan
Arm and arm64 architecture reserve some memory regions prior to the symbol '_stext' and these memory regions later will be used by device module and BPF jit. The current code misses to consider these memory regions thus any address in the regions will be taken as user space mode, but perf cannot

AW: [PATCH v2] kernel/resource.c: invalidate parent when freed resource has childs

2019-08-15 Thread Schmid, Carsten
>>When a resource is freed and has children, the childrens are > > s/childrens/children/ > oh, missed that. Too many children ... ;-) >>+ __release_child_resources(tmp, warn); > > This function will release all the children. > > Is this what Linus suggest? > > From his code

Re: [PATCH] mm/oom: Add killed process selection information

2019-08-15 Thread Michal Hocko
On Wed 14-08-19 23:06:04, Edward Chron wrote: > For an OOM event: print oom_score_adj value for the OOM Killed process > to document what the oom score adjust value was at the time the process > at the time of the OOM event. The value can be set by the user and it > effects the resulting oom_score

Re: [PATCH 05/11] drm/bridge: analogix-anx78xx: correct value of TX_P0

2019-08-15 Thread Linus Walleij
On Thu, Aug 15, 2019 at 2:49 AM Brian Masney wrote: > When attempting to configure this driver on a Nexus 5 phone (msm8974), > setting up the dummy i2c bus for TX_P0 would fail due to an -EBUSY > error. The downstream MSM kernel sources [1] shows that the proper value > for TX_P0 is 0x78, not

Re: [PATCH] mm/oom: Add killed process selection information

2019-08-15 Thread Michal Hocko
On Wed 14-08-19 23:24:51, Edward Chron wrote: > On Mon, Aug 12, 2019 at 4:42 AM Michal Hocko wrote: > > > > On Fri 09-08-19 15:15:18, Edward Chron wrote: > > [...] > > > So it is optimal if you only have to go and find the correct log and > > > search > > > or run your script(s) when you

Re: [PATCH v3 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-15 Thread Baolin Wang
Hi Uwe, On Thu, 15 Aug 2019 at 14:15, Uwe Kleine-König wrote: > > Hello Baolin, > > On Thu, Aug 15, 2019 at 11:34:27AM +0800, Baolin Wang wrote: > > On Wed, 14 Aug 2019 at 23:03, Uwe Kleine-König > > wrote: > > > > > > On Wed, Aug 14, 2019 at 08:46:11PM +0800, Baolin Wang wrote: > > > > > > + >

[PATCH v2] arm: dts: rockchip: fix vcc_host_5v regulator for usb3 host

2019-08-15 Thread Kever Yang
According to rock64 schemetic V2 and V3, the VCC_HOST_5V output is controlled by USB_20_HOST_DRV, which is the same as VCC_HOST1_5V. Signed-off-by: Kever Yang --- Changes in v2: - remove enable-active-high property arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 11 ++- 1 file

Re: [PATCH v5 01/18] xfs: compat_ioctl: use compat_ptr()

2019-08-15 Thread Christoph Hellwig
In many ways I'd actually much rather have a table driven approach. Let me try something..

Re: [PATCH] clk: sunxi: Don't call clk_hw_get_name() on a hw that isn't registered

2019-08-15 Thread Maxime Ripard
On Wed, Aug 14, 2019 at 09:10:37PM -0700, Stephen Boyd wrote: > The implementation of clk_hw_get_name() relies on the clk_core > associated with the clk_hw pointer existing. If of_clk_hw_register() > fails, there isn't a clk_core created yet, so calling clk_hw_get_name() > here fails. Extract the

[tip:x86/urgent] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-15 Thread tip-bot for Tony Luck
Commit-ID: 5ed1c835ed8b522ce25071cc2d56a9a09bd5b59e Gitweb: https://git.kernel.org/tip/5ed1c835ed8b522ce25071cc2d56a9a09bd5b59e Author: Tony Luck AuthorDate: Wed, 14 Aug 2019 16:40:30 -0700 Committer: Borislav Petkov CommitDate: Thu, 15 Aug 2019 09:54:05 +0200 MAINTAINERS, x86/CPU:

Re: [stable] Deleting "mt7621-mmc" with "interesting" license?

2019-08-15 Thread Pavel Machek
On Thu 2019-08-15 09:51:32, Greg KH wrote: > On Thu, Aug 15, 2019 at 09:13:50AM +0200, Pavel Machek wrote: > > Hi! > > > > I realize that "interesting" license is not on a list of bugs suitable > > for -stable, but on the other hand, this tends to scare corporate > > lawyers... so perhaps we

[PATCH v2] selftests: net: tcp_fastopen_backup_key.sh: fix shellcheck issue

2019-08-15 Thread Anders Roxell
When running tcp_fastopen_backup_key.sh the following issue was seen in a busybox environment. ./tcp_fastopen_backup_key.sh: line 33: [: -ne: unary operator expected Shellcheck showed the following issue. $ shellcheck tools/testing/selftests/net/tcp_fastopen_backup_key.sh In

Re: [PATCH] selftests: net: tcp_fastopen_backup_key.sh: fix shellcheck issue

2019-08-15 Thread Anders Roxell
On Thu, 15 Aug 2019 at 01:35, wrote: > > > > > -Original Message- > > From: Anders Roxell > > > > When running tcp_fastopen_backup_key.sh the following issue was seen in > > a busybox environment. > > ./tcp_fastopen_backup_key.sh: line 33: [: -ne: unary operator expected > > > >

Re: [PATCH v5 01/18] xfs: compat_ioctl: use compat_ptr()

2019-08-15 Thread Arnd Bergmann
On Thu, Aug 15, 2019 at 9:13 AM Christoph Hellwig wrote: > > On Thu, Aug 15, 2019 at 07:37:53AM +1000, Dave Chinner wrote: > > > @@ -576,7 +576,7 @@ xfs_file_compat_ioctl( > > > case XFS_IOC_SCRUB_METADATA: > > > case XFS_IOC_BULKSTAT: > > > case XFS_IOC_INUMBERS: > > > -

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-15 Thread Borislav Petkov
On Wed, Aug 14, 2019 at 04:40:30PM -0700, Tony Luck wrote: > There are a few different subsystems in the kernel that depend on > model specific behaviour (perf, EDAC, power, ...). Easier for just > one person to have the task to get new model numbers included instead > of having these groups trip

Re: [PATCH v4 15/21] ARM: dts: imx6ull-colibri: reduce v_batt current in power off

2019-08-15 Thread Oleksandr Suvorov
On Mon, Aug 12, 2019 at 5:24 PM Philippe Schenker wrote: > > From: Max Krummenacher > > Reduce the current drawn from VCC_BATT when the main power on the 3V3 > pins to the module are switched off. > > This switches off SoC internal pull resistors which are provided on the > module for TAMPER7

Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-15 Thread Sergey Senozhatsky
On (08/09/19 09:24), Jia He wrote: > Commit 3e5903eb9cff ("vsprintf: Prevent crash when dereferencing invalid > pointers") prevents most crash except for %pD. > There is an additional pointer dereferencing before dentry_name. > > At least, vma->file can be NULL and be passed to printk %pD in >

Re: WARNING in is_bpf_text_address

2019-08-15 Thread Will Deacon
Hi Bart, On Sat, Aug 10, 2019 at 05:24:06PM -0700, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:451577f3 Merge tag 'kbuild-fixes-v5.3-3' of git://git.kern.. > git tree: upstream > console output:

Re: [stable] Deleting "mt7621-mmc" with "interesting" license?

2019-08-15 Thread Greg KH
On Thu, Aug 15, 2019 at 09:13:50AM +0200, Pavel Machek wrote: > Hi! > > I realize that "interesting" license is not on a list of bugs suitable > for -stable, but on the other hand, this tends to scare corporate > lawyers... so perhaps we should remove the driver in -stable, too? > > Upstream

Re: [PATCH v4 4/8] printk: Replace strncmp with str_has_prefix

2019-08-15 Thread Sergey Senozhatsky
On (08/14/19 12:49), Petr Mladek wrote: > On Fri 2019-08-09 15:10:34, Chuhong Yuan wrote: > > strncmp(str, const, len) is error-prone because len > > is easy to have typo. > > The example is the hard-coded len has counting error > > or sizeof(const) forgets - 1. > > So we prefer using newly

[PATCH] Revert "KVM: x86/mmu: Zap only the relevant pages when removing a memslot"

2019-08-15 Thread Paolo Bonzini
This reverts commit 4e103134b862314dc2f2f18f2fb0ab972adc3f5f. Alex Williamson reported regressions with device assignment with this patch. Even though the bug is probably elsewhere and still latent, this is needed to fix the regression. Fixes: 4e103134b862 ("KVM: x86/mmu: Zap only the relevant

[PATCH linux-next] qcom: qcs404: remove COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404

2019-08-15 Thread Mao Wenan
There is one compilation error when CONFIG_INTERCONNECT_QCOM_QCS404=y and CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well as CONFIG_COMPILE_TEST=y, but CONFIG_QCOM_SMD_RPM is not set, logs as below: drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send': smd-rpm.c:(.text+0xe4):

[PATCH][iio-next] iio: light: noa1305: fix missing break in a switch statement

2019-08-15 Thread Colin King
From: Colin Ian King There is a missing break for the NOA1305_INTEGR_TIME_400MS case, fix it by adding it in. Addresses-Coverity: ("Missing break in switch") Fixes: 741172d18e8a ("iio: light: noa1305: Add support for NOA1305") Signed-off-by: Colin Ian King --- drivers/iio/light/noa1305.c | 1

Re: [PATCH v4 17/21] ARM: dts: imx6ull: improve can templates

2019-08-15 Thread Oleksandr Suvorov
On Mon, Aug 12, 2019 at 5:24 PM Philippe Schenker wrote: > > From: Max Krummenacher > > Add the pinmuxing and a inactive node for flexcan1 on SODIMM 55/63 > and move the inactive flexcan nodes to imx6ull-colibri-eval-v3.dtsi > where they belong. > > Note that this commit does not enable flexcan

[PATCH 1/2] KVM: x86: fix reporting of AMD speculation bug CPUID leaf

2019-08-15 Thread Paolo Bonzini
The AMD_* bits have to be set from the vendor-independent feature and bug flags, because KVM_GET_SUPPORTED_CPUID does not care about the vendor and they should be set on Intel processors as well. On top of this, SSBD, STIBP and AMD_SSB_NO bit were not set, and VIRT_SSBD does not have to be added

[PATCH 2/2] KVM: x86: always expose VIRT_SSBD to guests

2019-08-15 Thread Paolo Bonzini
Even though it is preferrable to use SPEC_CTRL (represented by X86_FEATURE_AMD_SSBD) instead of VIRT_SPEC, VIRT_SPEC is always supported anyway because otherwise it would be impossible to migrate from old to new CPUs. Make this apparent in the result of KVM_GET_SUPPORTED_CPUID as well. Cc:

[PATCH 0/2] KVM: x86: fixes for AMD speculation bug CPUID leaf

2019-08-15 Thread Paolo Bonzini
Patch 1 fixes the reporting of bugs and mitigations via the 0x8000_0008 CPUID leaf on Intel processors. Patch 2 fixes the reporting of VIRT_SPEC availability on AMD processors. Paolo Paolo Bonzini (2): KVM: x86: fix reporting of AMD speculation bug CPUID leaf KVM: x86: always expose

Re: Kernel 5.3.x, 5.2.2+: VMware player suspend on 64/32 bit guests

2019-08-15 Thread Thomas Gleixner
Woody, On Tue, 13 Aug 2019, Woody Suwalski wrote: > On Mon, Aug 12, 2019 at 1:24 PM Thomas Gleixner wrote: > > The ACPI handler is not the culprit. This is either an emulation bug or > > something really strange. Can you please use a WARN_ON() if the loop is > > exited via the timeout so we can

<    3   4   5   6   7   8   9   >