Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-09 Thread Dave Young
On 08/10/20 at 11:28am, chenzhou wrote: > On 2020/8/8 18:02, Dave Young wrote: > > On 08/01/20 at 09:08pm, Chen Zhou wrote: > >> Now the behavior of crashkernel=X has been changed, which tries low > >> allocation in ZONE_DMA, and fall back to high allocation if it fails. > >> > >> If requized size

RE: [PATCH v4 2/4] fpga: dfl: map feature mmio resources in their own feature drivers

2020-08-09 Thread Wu, Hao
> -Original Message- > From: linux-fpga-ow...@vger.kernel.org > On Behalf Of Xu Yilun > Sent: Monday, August 10, 2020 10:41 AM > To: m...@kernel.org; linux-f...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: t...@redhat.com; lgonc...@redhat.com; Xu, Yilun ; > Wu, Hao ; Matthew

Re: [PATCH 1/2] arm: dts: mt7623: move more display-related nodes to mt7623n.dtsi

2020-08-09 Thread Frank Wunderlich
Am 10. August 2020 02:06:27 MESZ schrieb Chun-Kuang Hu : >Alphabetical order is better. In dts there is alphabetical order but not yet in dtsi...i try to fix this. >> Is the tmds Patch ok? (because review missing) >https://patchwork.kernel.org/patch/11700679/ > >That patch looks really like

[PATCH v2] iio: documentation: light: Add as73211 sysfs documentation

2020-08-09 Thread Christian Eggers
The driver for the as73211 light sensor provides the following not yet documented sysfs entries: - in_intensity_(x|y|z)_raw - in_intensity_(x|y|z)_scale - in_intensity_sampling_frequency(_available) - in_intensity_hardwaregain(_available) - in_intensity_integration_time Signed-off-by: Christian

Re: [PATCH v6 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-08-09 Thread Alexander Graf
On 05.08.20 11:10, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting enclave resources such as memory and CPU. This ioctl interface is mapped to a Nitro Enclaves misc

Re: [PATCH] tty/vt: fix a memory leak in con_insert_unipair

2020-08-09 Thread Jiri Slaby
On 10. 08. 20, 0:14, James Bond wrote: > Syzkaller find a memory leak in con_insert_unipair: > BUG: memory leak > unreferenced object 0x88804893d100 (size 256): > comm "syz-executor.3", pid 16154, jiffies 4295043307 (age 2392.340s) > hex dump (first 32 bytes): > 80 af 88 4e

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Dmitry Osipenko
10.08.2020 03:59, Michał Mirosław пишет: > On Mon, Aug 10, 2020 at 03:21:47AM +0300, Dmitry Osipenko wrote: >> 10.08.2020 01:30, Michał Mirosław пишет: >>> On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: 10.08.2020 00:16, Michał Mirosław пишет: > Simplify regulator

Re: [kbuild-all] Re: drivers/md/dm-mpath.c:524 multipath_clone_and_map() error: double unlocked 'm->lock' (orig line 516)

2020-08-09 Thread Rong Chen
On 8/8/20 10:35 PM, Mike Snitzer wrote: On Sat, Aug 08 2020 at 8:10am -0400, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 449dc8c97089a6e09fb2dac4d92b1b7ac0eb7c1e commit: 374117ad4736c5a4f8012cfe59fc07d9d58191d5 dm

[Linux-kernel-mentees] [PATCH] v4l2-tpg: Fix global-out-of-bounds read in precalculate_color()

2020-08-09 Thread Peilin Ye
precalculate_color() is reading out of `sin` since `tpg->hue` is not being properly checked. Fix it. `cos` is safe, as long as `tpg->hue` is higher than or equal to -192. Fixes: 63881df94d3e ("[media] vivid: add the Test Pattern Generator") Reported-and-tested-by:

[PATCH] ARM: dts: am33xx: add ocp label

2020-08-09 Thread Drew Fustini
Add label to the ocp node in the AM33xx SoC include so that it can be referenced in board-level files like am335x-pocketbeagle.dts Signed-off-by: Drew Fustini --- arch/arm/boot/dts/am33xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi

[PATCH] clk: rockchip: Fix initialization of mux_pll_src_4plls_p

2020-08-09 Thread Nathan Chancellor
A new warning in Clang points out that the initialization of mux_pll_src_4plls_p appears incorrect: ../drivers/clk/rockchip/clk-rk3228.c:140:58: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma?

Re: [PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:34, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: @@ -377,10 +373,7 @@ static inline pte_t __pte(pteval_t val) { pteval_t ret; - if (sizeof(pteval_t) > sizeof(long)) - ret = PVOP_CALLEE2(pteval_t, mmu.make_pte, val, (u64)val >> 32); -

Re: [PATCH v3 2/7] x86/xen: eliminate xen-asm_64.S

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:04, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: With 32-bit pv-guest support removed xen-asm_64.S can be merged with xen-asm.S Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky except for diff --git a/arch/x86/xen/xen-asm.S

Re: [PATCH v3 3/7] x86/xen: drop tests for highmem in pv code

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:22, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: With support for 32-bit pv guests gone pure pv-code no longer needs to test for highmem. Dropping those tests removes the need for flushing in some places. Signed-off-by: Juergen Gross Reviewed-by: Boris

Re: [PATCH v3 1/7] x86/xen: remove 32-bit Xen PV guest support

2020-08-09 Thread Jürgen Groß
On 09.08.20 04:01, Boris Ostrovsky wrote: On 8/7/20 4:38 AM, Juergen Gross wrote: void __init xen_reserve_top(void) { -#ifdef CONFIG_X86_32 - unsigned long top = HYPERVISOR_VIRT_START; - struct xen_platform_parameters pp; - - if

[PATCH 3/3] regulator: unexport regulator_lock/unlock()

2020-08-09 Thread Michał Mirosław
regulator_lock/unlock() was used only to guard regulator_notifier_call_chain(). As no users remain, make the functions internal. Signed-off-by: Michał Mirosław --- drivers/regulator/core.c | 6 ++ include/linux/regulator/driver.h | 3 --- 2 files changed, 2 insertions(+), 7

[PATCH 1/3] regulator: don't require mutex for regulator_notifier_call_chain()

2020-08-09 Thread Michał Mirosław
Since 3801b86aa482 ("regulator: Refactor supply implementation to work as regular consumers") we no longer cascade notifications and so notifier head's built-in rwsem is enough to protect the notifier chain. Remove the requirement to fix one case where rdev->mutex might be forced to be taken

[PATCH 2/3] regulator: remove locking around regulator_notifier_call_chain()

2020-08-09 Thread Michał Mirosław
regulator_notifier_call_chain() doesn't need rdev lock and rdev's existence is assumed in the code anyway. Remove the locks from drivers. Signed-off-by: Michał Mirosław --- drivers/regulator/da9055-regulator.c | 2 -- drivers/regulator/da9062-regulator.c | 2 --

[PATCH 0/3] regulator: unexport regulator_lock/unlock()

2020-08-09 Thread Michał Mirosław
This removes regulator_lock/unlock() calls around regulator_notifier_call_chain() as they are redundant - drivers already have to guarantee regulator_dev's existence during the call. This should make reasoing about the lock easier, as this was the only use outside regulator core code. The only

linux-next: Tree for Aug 10

2020-08-09 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do not add any v5.10 related material to your linux-next included branches until after the merge window closes again. Changes since 20200807: My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning") Non-merge

[RFT PATCH v5] serial: samsung: Removes the IRQ not found warning

2020-08-09 Thread Tamseel Shams
In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP is having 2 interrupt lines. However, in other SoCs like s3c6400, s5pv210, exynos5433, and exynos4210 UART is having only 1 interrupt line. Due to this, "platform_get_irq(platdev, 1)" call in the driver gives the following

[PATCH] tools/objtool: Fix unnecessary jumps

2020-08-09 Thread Youling Tang
There is no need to jump to the "out" tag when "ret < 0", just return directly to "ret". Signed-off-by: Youling Tang --- tools/objtool/check.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index

drivers/video/fbdev/grvga.c:151:26: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: sparc-randconfig-s032-20200810

Re: [PATCH v3 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-09 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on hnaz-linux-mm/master] [also build test ERROR on arm64/for-next/core powerpc/next tip/x86/mm linus/master v5.8 next-20200807] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Shannon Nelson
On 8/9/20 7:38 PM, Xu Wang wrote: A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang Acked-by: Shannon Nelson ---

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Joe Perches
On Sun, 2020-08-09 at 20:50 -0700, Shannon Nelson wrote: > On 8/9/20 8:20 PM, Joe Perches wrote: > > On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: > > > A multiplication for the size determination of a memory allocation > > > indicated that an array data structure should be processed. > > >

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Shannon Nelson
On 8/9/20 8:20 PM, Joe Perches wrote: On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". [] diff --git

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

2020-08-09 Thread Neal Liu
Hi Chun-Kuang, On Fri, 2020-08-07 at 23:52 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年8月7日 週五 上午10:34寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

Re: [PATCH] erofs: Convert to use the fallthrough macro

2020-08-09 Thread Chao Yu
On 2020/8/8 17:21, linmiaohe wrote: From: Miaohe Lin Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Hongxiang Lou Signed-off-by: Miaohe Lin Reviewed-by: Chao Yu Thanks,

[PATCH] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml

2020-08-09 Thread Chris Ruehl
Conversion of the ltc2632 to yaml format and name the file to 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v6: Remove tab and drop unused label Related patches already in linux-next. [PATCH v5 1/3] iio: documentation ltc2632_chip_info add num_channels linux-next commit:

Re: [PATCH v11 5/5] kdump: update Documentation about crashkernel

2020-08-09 Thread chenzhou
On 2020/8/8 18:02, Dave Young wrote: > On 08/01/20 at 09:08pm, Chen Zhou wrote: >> Now the behavior of crashkernel=X has been changed, which tries low >> allocation in ZONE_DMA, and fall back to high allocation if it fails. >> >> If requized size X is too large and leads to very little free memory

Re: Very slow qemu device access

2020-08-09 Thread Matthew Wilcox
On Mon, Aug 10, 2020 at 11:10:49AM +0800, Ming Lei wrote: > On Sun, Aug 09, 2020 at 03:25:22PM +0100, Matthew Wilcox wrote: > > On Sun, Aug 09, 2020 at 10:40:05AM +0800, Ming Lei wrote: > > > Hello Matthew, > > > > > > On Fri, Aug 07, 2020 at 06:44:16PM +0100, Matthew Wilcox wrote: > > > > > > >

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Joe Perches
On Mon, 2020-08-10 at 02:38 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". [] > diff --git

[PATCH v2 0/2] Add mediatek codec mt6359 driver

2020-08-09 Thread Jiaxin Yu
Add mediatek codec (MT6359) driver MT6359 support playback and capture feature. On downlink path, it includes three DACs for handset, headset, and lineout path. On unlink path, it includeds three ADCs for main mic, second mic, 3rd mic, and headset mic. By scenario, select *_MUX widget to create

[PATCH v2 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-08-09 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git

Re: Very slow qemu device access

2020-08-09 Thread Ming Lei
On Sun, Aug 09, 2020 at 03:25:22PM +0100, Matthew Wilcox wrote: > On Sun, Aug 09, 2020 at 10:40:05AM +0800, Ming Lei wrote: > > Hello Matthew, > > > > On Fri, Aug 07, 2020 at 06:44:16PM +0100, Matthew Wilcox wrote: > > > > > > Everything starts going very slowly after this commit: > > > > > >

Re: [PATCH net] net: qcom/emac: Fix missing clk_disable_unprepare() in error path of emac_probe

2020-08-09 Thread wanghai (M)
在 2020/8/7 21:38, Timur Tabi 写道: On 8/6/20 8:54 PM, wanghai (M) wrote: Thanks for your suggestion. May I fix it like this? Yes, this is what I had in mind.  Thanks. Acked-by: Timur Tabi . Thanks for your ack. I just sent a new patch. "[PATCH net] net: qcom/emac: add missed

Re: [PATCH v5 3/3] iio/dac: convert ltc2632.txt to lltc,ltc2632.yaml

2020-08-09 Thread Chris Ruehl
Rob, On 30/4/2020 11:24 pm, Rob Herring wrote: On Mon, Apr 20, 2020 at 12:26:08PM +0800, Chris Ruehl wrote: Conversion of the ltc2632 to yaml format and name the file 'lltc,ltc2632.yaml'. Signed-off-by: Chris Ruehl --- v5: correct require section set maintainer of analog.com v4..v2: no

[PATCH net] net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

2020-08-09 Thread Wang Hai
Fix the missing clk_disable_unprepare() before return from emac_clks_phase1_init() in the error handling case. Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") Reported-by: Hulk Robot Signed-off-by: Wang Hai Acked-by: Timur Tabi ---

[PATCH v4 4/4] fpga: dfl: add support for N3000 Nios private feature

2020-08-09 Thread Xu Yilun
This patch adds support for the Nios handshake private feature on Intel N3000 FPGA Card. The terminology "Nios" stands for the NIOS II - 32 bit embedded soft processor designed for FPGAs. This private feature provides a handshake interface to FPGA Nois firmware, which receives retimer

Re: [kbuild-all] Re: drivers/video/fbdev/pxafb.c:916:24: sparse: sparse: incorrect type in assignment (different address spaces)

2020-08-09 Thread Rong Chen
On 8/7/20 7:53 PM, Luc Van Oostenryck wrote: On Fri, Aug 07, 2020 at 06:37:36PM +0800, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 86cfccb66937dd6cbf26ed619958b9e587e6a115 commit: 670d0a4b10704667765f7d18f7592993d02783aa

arch/x86/platform/efi/efi_64.c:857:18: sparse: sparse: context imbalance in 'efi_thunk_set_variable_nonblocking' - wrong count at exit

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: ea5e1919b44f09fce72d919fbb87f9611fc700a6 efi/x86: Simplify mixed mode call wrapper date: 7 months ago config: x86_64-randconfig-s031-20200810 (attached as

[PATCH] rpc_pipefs: convert comma to semicolon

2020-08-09 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- fs/nfs/blocklayout/rpc_pipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/blocklayout/rpc_pipefs.c b/fs/nfs/blocklayout/rpc_pipefs.c index 9fb067a6f7e0..ef9db135c649 100644

[PATCH] Doc: admin-guide: use correct legends in kernel-parameters.txt

2020-08-09 Thread Randy Dunlap
Documentation/admin-guide/kernel-parameters.rst includes a legend telling us what configurations or hardware platforms are relevant for certain boot options. For X86, it is spelled "X86" and for x86_64, it is spelled "X86-64", so make corrections for those. Signed-off-by: Randy Dunlap Cc:

[PATCH v4 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-09 Thread Xu Yilun
A new bus type "dfl" is introduced for private features which are not initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these private features could be handled by separate driver modules. DFL feature drivers (dfl-fme, dfl-port) will create DFL devices on enumeration. DFL drivers

[PATCH v4 0/4] Modularization of DFL private feature drivers

2020-08-09 Thread Xu Yilun
This patchset makes it possible to develop independent driver modules for DFL private features. It also helps to leverage existing kernel drivers to enable some IP blocks in DFL. Patch #1: An improvement of feature id definition. The feature id will be used as the key field for dfl

[PATCH v4 2/4] fpga: dfl: map feature mmio resources in their own feature drivers

2020-08-09 Thread Xu Yilun
This patch makes preparation for modularization of DFL sub feature drivers. Currently, if we need to support a new DFL sub feature, an entry should be added to fme/port_feature_drvs[] in dfl-fme/port-main.c. And we need to re-compile the whole DFL modules. That make the DFL drivers hard to be

[PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-09 Thread Xu Yilun
The feature id is stored in a 12 bit field in DFH. So a u16 variable is enough for feature id. This patch changes all feature id related places to fit u16. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix Acked-by: Wu Hao --- v3: no change. v4: no change. --- drivers/fpga/dfl-fme-perf.c | 2 +-

[PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-09 Thread Xu Wang
A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++-- 1 file changed, 2

[PATCH] genirq/proc: Show percpu irq affinity

2020-08-09 Thread Yunfeng Ye
When the "affinity=" cmdline parameter is configured, the interrupt affinity displayed in the proc directory does not match with that of the the percu interrupt, and the percu interrupt uses desc->percu_affinity. So show desc->percu_affinity in show_irq_affinity() for percpu interrupt.

[PATCH v3 5/8] mm: HUGE_VMAP arch support cleanup

2020-08-09 Thread Nicholas Piggin
This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-folding of dead code for unsupported levels. This

[PATCH v3 7/8] mm/vmalloc: add vmap_range_noflush variant

2020-08-09 Thread Nicholas Piggin
As a side-effect, the order of flush_cache_vmap() and arch_sync_kernel_mappings() calls are switched, but that now matches the other callers in this file. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git

[PATCH v3 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c

2020-08-09 Thread Nicholas Piggin
This is a generic kernel virtual memory mapper, not specific to ioremap. Signed-off-by: Nicholas Piggin --- include/linux/vmalloc.h | 2 + mm/ioremap.c| 192 mm/vmalloc.c| 191 +++ 3 files

[PATCH v3 1/8] mm/vmalloc: fix vmalloc_to_page for huge vmap mappings

2020-08-09 Thread Nicholas Piggin
vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. Whether or not a vmap is huge depends on the architecture details, alignments, boot options, etc., which the caller can not be expected to know. Therefore HUGE_VMAP is a regression for vmalloc_to_page. This change teaches

[PATCH v3 4/8] lib/ioremap: rename ioremap_*_range to vmap_*_range

2020-08-09 Thread Nicholas Piggin
This will be moved to mm/ and used as a generic kernel virtual mapping function, so re-name it in preparation. Signed-off-by: Nicholas Piggin --- mm/ioremap.c | 55 ++-- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/mm/ioremap.c

[PATCH v3 8/8] mm/vmalloc: Hugepage vmalloc mappings

2020-08-09 Thread Nicholas Piggin
On platforms that define HAVE_ARCH_HUGE_VMAP and support PMD vmaps, vmalloc will attempt to allocate PMD-sized pages first, before falling back to small pages. Allocations which use something other than PAGE_KERNEL protections are not permitted to use huge pages yet, not all callers expect this

[PATCH v3 3/8] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2020-08-09 Thread Nicholas Piggin
The vmalloc mapper operates on a struct page * array rather than a linear physical address, re-name it to make this distinction clear. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/mm/vmalloc.c

[PATCH v3 2/8] mm: apply_to_pte_range warn and fail if a large pte is encountered

2020-08-09 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- mm/memory.c | 60 +++-- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index c39a13b09602..1d5f3093c249 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2260,13 +2260,20 @@

[PATCH v3 0/8] huge vmalloc mappings

2020-08-09 Thread Nicholas Piggin
Not tested on x86 or arm64, would appreciate a quick test there so I can ask Andrew to put it in -mm. Other option is I can disable huge vmallocs for them for the time being. Since v2: - Rebased on vmalloc cleanups, split series into simpler pieces. - Fixed several compile errors and warnings -

Re: [kbuild-all] Re: drivers/virtio/virtio_mem.c:1031 virtio_mem_mb_plug_any_sb() error: uninitialized symbol 'rc'.

2020-08-09 Thread Rong Chen
On 8/8/20 8:44 PM, David Hildenbrand wrote: Am 08.08.2020 um 13:39 schrieb kernel test robot : tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 449dc8c97089a6e09fb2dac4d92b1b7ac0eb7c1e commit: 5f1f79bbc9e26fa9412fa9522f957bb8f030c442 virtio-mem:

[PATCH] mballoc: Replace seq_printf with seq_puts

2020-08-09 Thread Xu Wang
seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang --- fs/ext4/mballoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index c0a331e2feb0..77288e549a95 100644 --- a/fs/ext4/mballoc.c

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

2020-08-09 Thread Baoquan He
On 08/07/20 at 05:12pm, Wei Yang wrote: > Let's always increase surplus_huge_pages and so that free_huge_page > could decrease it at free time. > > Signed-off-by: Wei Yang > --- > mm/hugetlb.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/mm/hugetlb.c

[PATCH] ROMFS: support inode blocks calculation

2020-08-09 Thread Libing Zhou
When use 'stat' tool to display file status, the 'Blocks' field always in '0', this is not good for tool 'du'(e.g.: busybox 'du'), it always output '0' size for the files under ROMFS since such tool calculates number of 512B Blocks. This patch calculates approx. number of 512B blocks based on

microblaze-linux-ld: drivers/net/usb/cdc_ncm.o:undefined reference to `usbnet_cdc_update_filter'

2020-08-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7 commit: e10dcb1b6ba714243ad5a35a11b91cc14103a9a9 net: cdc_ncm: hook into set_rx_mode to admit multicast traffic date: 3 weeks ago config:

[PATCH] yurex: remove needless check before usb_free_coherent()

2020-08-09 Thread Xu Wang
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- drivers/usb/misc/yurex.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index 6e7d34e7fec4..2063ef071393 100644

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-09 Thread Jin, Yao
Hi Peter, On 8/7/2020 5:02 PM, pet...@infradead.org wrote: On Fri, Aug 07, 2020 at 02:24:30PM +0800, Jin, Yao wrote: Hi Peter, On 8/6/2020 7:00 PM, pet...@infradead.org wrote: On Thu, Aug 06, 2020 at 11:18:27AM +0200, pet...@infradead.org wrote: Suppose we have nested virt: L0-hv

Re: [PATCH] powerpc/legacy_serial: Use early_ioremap()

2020-08-09 Thread Chris Packham
On 24/03/20 10:54 am, Chris Packham wrote: > Hi Christophe, > > On Wed, 2020-02-05 at 12:03 +, Christophe Leroy wrote: >> [0.00] ioremap() called early from >> find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead >> > I was just about to dig into this error message and

[PATCH] regulator: sy8827n: Fix W=1 build warning when CONFIG_OF=n

2020-08-09 Thread Jisheng Zhang
Fixing W=1 build warning when no support for device tree is there. Reported-by: kernel test robot Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8827n.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/sy8827n.c b/drivers/regulator/sy8827n.c index

[PATCH] net/nfc/rawsock.c: add CAP_NET_RAW check.

2020-08-09 Thread Qingyu Li
When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Qingyu Li --- net/nfc/rawsock.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index ba5ffd3badd3..b5c867fe3232 100644 ---

[PATCH 1/1] x86/hyperv: Make hv_setup_sched_clock inline

2020-08-09 Thread Michael Kelley
Make hv_setup_sched_clock inline so the reference to pv_ops works correctly with objtool updates to detect noinstr violations. See https://lore.kernel.org/patchwork/patch/1283635/ Signed-off-by: Michael Kelley --- arch/x86/include/asm/mshyperv.h | 12 arch/x86/kernel/cpu/mshyperv.c

[PATCH RESEND for-5.9] MIPS: KVM: Convert a fallthrough comment to fallthrough

2020-08-09 Thread Jiaxun Yang
There is a fallthrough comment being forgotten, GCC complains about it: arch/mips/kvm/emulate.c: In function kvm_mips_emulate_load: arch/mips/kvm/emulate.c:1936:21: error: this statement may fall through 1936 | vcpu->mmio_needed = 1; /* unsigned */ | ~~^~~

Re: [PATCH 2/9] macintosh/via-macii: Poll the device most likely to respond

2020-08-09 Thread Guenter Roeck
Hi, On 8/9/20 3:58 PM, Finn Thain wrote: > On Sun, 9 Aug 2020, Guenter Roeck wrote: > >> Hi, >> >> On Sun, Jun 28, 2020 at 02:23:12PM +1000, Finn Thain wrote: >>> Poll the most recently polled device by default, rather than the lowest >>> device address that happens to be enabled in

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Michał Mirosław
On Mon, Aug 10, 2020 at 03:21:47AM +0300, Dmitry Osipenko wrote: > 10.08.2020 01:30, Michał Mirosław пишет: > > On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: > >> 10.08.2020 00:16, Michał Mirosław пишет: > >>> Simplify regulator locking by removing locking around locking.

[PATCH] sched/fair: Remove the duplicate check from group_has_capacity()

2020-08-09 Thread Qi Zheng
1. The group_has_capacity() function is only called in group_classify(). 2. The following inequality has already been checked in group_is_overloaded() which was also called in group_classify(). (sgs->group_capacity * imbalance_pct) < (sgs->group_runnable *

[PATCH 3/3] drivers/clk/clk-asm9260.c

2020-08-09 Thread YourName
From: Daniel --- drivers/ata/acard-ahci.c | 6 +++--- drivers/bluetooth/bfusb.c | 5 ++--- drivers/clk/clk-asm9260.c | 12 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index 2a04e8abd397..3ffb21f3e88b 100644

Re: [PATCH v7] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-09 Thread Srinivas Pandruvada
On Thu, 2020-08-06 at 14:03 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Allow intel_pstate to work in the passive mode with HWP enabled and > make it set the HWP minimum performance limit (HWP floor) to the > P-state value given by the target frequency supplied by the cpufreq >

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Michał Mirosław
On Mon, Aug 10, 2020 at 03:21:47AM +0300, Dmitry Osipenko wrote: > 10.08.2020 01:30, Michał Mirosław пишет: > > On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: > >> 10.08.2020 00:16, Michał Mirosław пишет: > >>> Simplify regulator locking by removing locking around locking.

Re: [PATCH] gpu/drm: Remove TTM_PL_FLAG_WC of VRAM to fix writecombine issue for Loongson64

2020-08-09 Thread Tiezhu Yang
On 08/09/2020 08:13 PM, Christian König wrote: Am 08.08.20 um 15:50 schrieb Jiaxun Yang: 在 2020/8/8 下午9:41, Thomas Bogendoerfer 写道: On Sat, Aug 08, 2020 at 03:25:02PM +0800, Tiezhu Yang wrote: Loongson processors have a writecombine issue that maybe failed to write back framebuffer used

Re: [PATCH 02/10] mm/hugetlb: make sure to get NULL when list is empty

2020-08-09 Thread Baoquan He
On 08/07/20 at 10:28pm, Wei Yang wrote: > On Fri, Aug 07, 2020 at 08:49:51PM +0800, Baoquan He wrote: > >On 08/07/20 at 05:12pm, Wei Yang wrote: > >> list_first_entry() may not return NULL even when the list is empty. > >> > >> Let's make sure the behavior by using list_first_entry_or_null(), >

Re: [9/9] scsi: ufs: Properly release resources if a task is aborted successfully

2020-08-09 Thread Can Guo
Hi Markus, On 2020-08-10 02:00, Markus Elfring wrote: Thanks, will fix these in next version. Thanks for your adjustment of the proposed commit message. Should the corresponding patch be marked with an other version number?

Re: [PATCH] perf record: Skip side-band event setup if HAVE_LIBBPF_SUPPORT is not set

2020-08-09 Thread Jin, Yao
Hi Arnaldo, On 8/7/2020 8:28 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 07, 2020 at 09:16:29AM -0300, Arnaldo Carvalho de Melo escreveu: Em Fri, Aug 07, 2020 at 09:09:56AM -0300, Arnaldo Carvalho de Melo escreveu: Em Fri, Aug 07, 2020 at 09:08:24AM -0300, Arnaldo Carvalho de Melo

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Dmitry Osipenko
10.08.2020 01:30, Michał Mirosław пишет: > On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: >> 10.08.2020 00:16, Michał Mirosław пишет: >>> Simplify regulator locking by removing locking around locking. rdev->ref >>> is now accessed only when the lock is taken. The code still

Re: regulator: deadlock vs memory reclaim

2020-08-09 Thread Dmitry Osipenko
10.08.2020 01:25, Michał Mirosław пишет: > Hi guys, > > Commit f8702f9e4aa7 ("regulator: core: Use ww_mutex for regulators locking") > from Nov 2018 tried to fix possible deadlocks when handling coupled > regulators. Unfortunately it introduced another possible deadlock, > as discovered by

Re: [PATCH 1/2] arm: dts: mt7623: move more display-related nodes to mt7623n.dtsi

2020-08-09 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月9日 週日 下午3:22寫道: > > > > Am 9. August 2020 02:16:59 MESZ schrieb Chun-Kuang Hu > : > > > >I would like to put all device in mt7623.dtsi with some device's > >status is "disabled" and change its status in platform dtsi. > >I would like to see all device in

WARNING in rcu_irq_exit

2020-08-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17228c6290 kernel config: https://syzkaller.appspot.com/x/.config?x=e0c783f658542f35

[PATCH 2/2] mm/mmap: leverage vma_rb_erase_ignore() to implement vma_rb_erase()

2020-08-09 Thread Wei Yang
These two functions share the same logic except ignore a different vma. Let's reuse the code. Signed-off-by: Wei Yang --- mm/mmap.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index ec780925da94..90b1298d4222 100644 --- a/mm/mmap.c

[PATCH 1/2] mm/mmap: rename __vma_unlink_common() to __vma_unlink()

2020-08-09 Thread Wei Yang
__vma_unlink_common() and __vma_unlink() are counterparts. Since there is not function named __vma_unlink(), let's rename it to __vma_unlink() to make the code more self-explain and easy for audience to understand. Otherwise we may expect there are several variants of vma_unlink and

Re: [PATCH 1/9] macintosh/via-macii: Access autopoll_devs when inside lock

2020-08-09 Thread Finn Thain
On Sun, 9 Aug 2020, Guenter Roeck wrote: > Hi, > > On Sun, Jun 28, 2020 at 02:23:12PM +1000, Finn Thain wrote: > > The interrupt handler should be excluded when accessing the > > autopoll_devs variable. > > > > I am quite baffled by this patch. Other than adding an unnecessary lock > /

[PATCH] clk: bcm2835: add missing release if devm_clk_hw_register fails

2020-08-09 Thread Navid Emamdoost
In the implementation of bcm2835_register_pll(), the allocated pll is leaked if devm_clk_hw_register() fails to register hw. Release pll if devm_clk_hw_register() fails. Signed-off-by: Navid Emamdoost --- drivers/clk/bcm/clk-bcm2835.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: linux-next: build failure after merge of the thunderbolt tree

2020-08-09 Thread Stephen Rothwell
Hi Linus, On Sun, 9 Aug 2020 11:04:28 -0700 Linus Torvalds wrote: > > On Sun, Aug 9, 2020 at 1:19 AM Stephen Rothwell wrote: > > > > I looks like the above report got lost along the way to you :-( > > Hmm. Why didn't I see this as a build failure? > > Oh. Because the USB4_KUNIT_TEST stuff

Re: Please pull NFS server updates for v5.9

2020-08-09 Thread Stephen Rothwell
Hi Chuck, On Sun, 9 Aug 2020 11:44:15 -0400 Chuck Lever wrote: > > The following changes since commit 11ba468877bb23f28956a35e896356252d63c983: > > Linux 5.8-rc5 (2020-07-12 16:34:50 -0700) > > are available in the Git repository at: > > git://git.linux-nfs.org/projects/cel/cel-2.6.git

Re: [PATCH 2/7] drm: rcar-du: Add r8a7742 support

2020-08-09 Thread Laurent Pinchart
Hi Prabhakar, On Sun, Aug 09, 2020 at 09:38:05PM +0100, Lad, Prabhakar wrote: > On Sat, Aug 8, 2020 at 10:02 PM Laurent Pinchart wrote: > > On Fri, Aug 07, 2020 at 06:49:49PM +0100, Lad Prabhakar wrote: > > > Add direct support for the r8a7742 (RZ/G1H). > > > > > > The RZ/G1H shares a common,

Re: [PATCH 2/9] macintosh/via-macii: Poll the device most likely to respond

2020-08-09 Thread Finn Thain
On Sun, 9 Aug 2020, Guenter Roeck wrote: > Hi, > > On Sun, Jun 28, 2020 at 02:23:12PM +1000, Finn Thain wrote: > > Poll the most recently polled device by default, rather than the lowest > > device address that happens to be enabled in autopoll_devs. This improves > > input latency. Re-use

Re: linux-next: manual merge of the fsinfo tree with the vfs tree

2020-08-09 Thread Stephen Rothwell
Hi all, On Mon, 3 Aug 2020 19:05:32 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the fsinfo tree got a conflict in: > > fs/internal.h > > between commits: > > c60166f04283 ("init: add an init_mount helper") > 09267defa36a ("init: add an init_umount helper") > > from

Re: linux-next: manual merge of the iommu tree with the dma-mapping tree

2020-08-09 Thread Stephen Rothwell
Hi all, On Thu, 30 Jul 2020 15:20:06 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the iommu tree got a conflict in: > > drivers/iommu/Kconfig > > between commit: > > 2f9237d4f6df ("dma-mapping: make support for dma ops optional") > > from the dma-mapping tree and

Re: linux-next: manual merge of the sh tree with the csky tree

2020-08-09 Thread Stephen Rothwell
Hi all, On Tue, 28 Jul 2020 10:18:46 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the sh tree got a conflict in: > > tools/testing/selftests/seccomp/seccomp_bpf.c > > between commit: > > f4dd2edafba0 ("csky: add support for SECCOMP and SECCOMP_FILTER") > > from the csky

Re: [PATCH] leds: mt6323: move period calculation

2020-08-09 Thread Pavel Machek
Hi! > Setting the delay_on/off means period needs to be recalculated > anyway. So move the period statements after this check. > > Fixes: 216ec6cc4c19 ("leds: Add LED support for MT6323 PMIC") Makes sense, thanks, applied. Best regards,

[PATCH 2/2] kernel: acct.c: Fixed a coding style issue.

2020-08-09 Thread YourName
From: Daniel Fixed a coding style issue. Signed-off-by: Daniel West --- kernel/acct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/acct.c b/kernel/acct.c index b0c5b3a9f5af..d7cc5f917e11 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -451,7 +451,7 @@ static

Re: [PATCH] regulator: simplify locking

2020-08-09 Thread Michał Mirosław
On Mon, Aug 10, 2020 at 12:40:04AM +0300, Dmitry Osipenko wrote: > 10.08.2020 00:16, Michał Mirosław пишет: > > Simplify regulator locking by removing locking around locking. rdev->ref > > is now accessed only when the lock is taken. The code still smells fishy, > > but now its obvious why. > > >

regulator: deadlock vs memory reclaim

2020-08-09 Thread Michał Mirosław
Hi guys, Commit f8702f9e4aa7 ("regulator: core: Use ww_mutex for regulators locking") from Nov 2018 tried to fix possible deadlocks when handling coupled regulators. Unfortunately it introduced another possible deadlock, as discovered by lockdep (see below), instead. regulator_lock_dependent()

  1   2   3   4   >