[PATCH] fs/ntfs: remove unused varible attr_len

2020-11-07 Thread Alex Shi
This varible isn't used anymore, remove it to skip W=1 warning: fs/ntfs/inode.c:2350:6: warning: variable ‘attr_len’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alex Shi Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org ---

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 11:35 PM, Song Bao Hua (Barry Song) wrote: Or do you want this ? (Code B) diff --git a/mm/Kconfig b/mm/Kconfig index 01b0ae0cd9d3..a7ff0d31afd5 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -836,6 +836,7 @@ config PERCPU_STATS config GUP_TEST bool "Enable infrastructure for

Re: About regression caused by commit aea6cb99703e ("regulator: resolve supply after creating regulator")

2020-11-07 Thread Qu Wenruo
Also add Rockchip and device tree mail lists to the CC, just in case we need to update the device tree for RK808. On 2020/11/8 下午3:35, Qu Wenruo wrote: > Hi Michał, > > Recently when testing v5.10-rc2, I found my RK3399 boards failed to boot > from NVME. > > It turns out that, commit

[PATCH] fs/ntfs: remove unused varibles

2020-11-07 Thread Alex Shi
We actually don't use these varibles, so remove them to avoid gcc warning: fs/ntfs/file.c:326:14: warning: variable ‘base_ni’ set but not used [-Wunused-but-set-variable] fs/ntfs/logfile.c:481:21: warning: variable ‘log_page_mask’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alex

RE: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: John Hubbard [mailto:jhubb...@nvidia.com] > Sent: Sunday, November 8, 2020 5:56 PM > To: Randy Dunlap ; Song Bao Hua (Barry Song) > ; a...@linux-foundation.org; > linux...@kvack.org; linux-kernel@vger.kernel.org > Cc: Linuxarm ; Ralph Campbell > ; John Garry

About regression caused by commit aea6cb99703e ("regulator: resolve supply after creating regulator")

2020-11-07 Thread Qu Wenruo
Hi Michał, Recently when testing v5.10-rc2, I found my RK3399 boards failed to boot from NVME. It turns out that, commit aea6cb99703e ("regulator: resolve supply after creating regulator") seems to be the cause. In RK3399 board, vpcie1v8 and vpcie0v9 of the pcie controller is provided by RK808

Re: [PATCH] netfilter: conntrack: fix -Wformat

2020-11-07 Thread Lukas Bulwahn
On Sat, 7 Nov 2020, Joe Perches wrote: > On Fri, 2020-11-06 at 23:55 -0800, Nick Desaulniers wrote: > > Clang is more aggressive about -Wformat warnings when the format flag > > specifies a type smaller than the parameter. Fixes 8 instances of: > > > > warning: format specifies type 'unsigned

[PATCH v5 5/5] arch, mm: make kernel_page_present() always available

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport For architectures that enable ARCH_HAS_SET_MEMORY having the ability to verify that a page is mapped in the kernel direct map can be useful regardless of hibernation. Add RISC-V implementation of kernel_page_present(), update its forward declarations and stubs to be a part

[PATCH v5 3/5] PM: hibernate: make direct map manipulations more explicit

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport When DEBUG_PAGEALLOC or ARCH_HAS_SET_DIRECT_MAP is enabled a page may be not present in the direct map and has to be explicitly mapped before it could be copied. Introduce hibernate_map_page() and hibernation_unmap_page() that will explicitly use

[PATCH v5 4/5] arch, mm: restore dependency of __kernel_map_pages() on DEBUG_PAGEALLOC

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport The design of DEBUG_PAGEALLOC presumes that __kernel_map_pages() must never fail. With this assumption is wouldn't be safe to allow general usage of this function. Moreover, some architectures that implement __kernel_map_pages() have this function guarded by #ifdef

[PATCH v5 2/5] slab: debug: split slab_kernel_map() to map and unmap variants

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport Instead of using slab_kernel_map() with 'map' parameter to remap pages when DEBUG_PAGEALLOC is enabled, use dedicated helpers slab_kernel_map() and slab_kernel_unmap(). Signed-off-by: Mike Rapoport --- mm/slab.c | 26 +++--- 1 file changed, 15

[PATCH v5 0/5] arch, mm: improve robustness of direct map manipulation

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport Hi, During recent discussion about KVM protected memory, David raised a concern about usage of __kernel_map_pages() outside of DEBUG_PAGEALLOC scope [1]. Indeed, for architectures that define CONFIG_ARCH_HAS_SET_DIRECT_MAP it is possible that __kernel_map_pages() would

[PATCH v5 1/5] mm: introduce debug_pagealloc_{map,unmap}_pages() helpers

2020-11-07 Thread Mike Rapoport
From: Mike Rapoport When CONFIG_DEBUG_PAGEALLOC is enabled, it unmaps pages from the kernel direct mapping after free_pages(). The pages than need to be mapped back before they could be used. Theese mapping operations use __kernel_map_pages() guarded with with debug_pagealloc_enabled(). The

[PATCH] x86/tlb: remove unused varible 'cpu'

2020-11-07 Thread Alex Shi
It's not used, we could remove it to avoid a W1 warning: arch/x86/mm/tlb.c:318:6: warning: variable ‘cpu’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alex Shi Cc: Dave Hansen Cc: Andy Lutomirski Cc: x...@kernel.org Cc: "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org ---

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-07 Thread Mike Rapoport
On Sat, Nov 07, 2020 at 04:22:06PM +0100, Stefan Agner wrote: > Most architectures define MAX_PHYSMEM_BITS in asm/sparsemem.h and don't > include it in asm/pgtable.h. Include asm/sparsemem.h directly to get > the MAX_PHYSMEM_BITS define on all architectures. > > This fixes a crash when accessing

[PATCH] security/smack: remove unused varible 'rc'

2020-11-07 Thread Alex Shi
This varible isn't used and can be removed to avoid a gcc warning: security/smack/smack_lsm.c:3873:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alex Shi Cc: Casey Schaufler Cc: James Morris Cc: "Serge E. Hallyn" Cc:

[PATCH] s390/qeth: remove useless if/else

2020-11-07 Thread xiakaixu1987
From: Kaixu Xia Fix the following coccinelle report: ./drivers/s390/net/qeth_l3_main.c:107:2-4: WARNING: possible condition with no effect (if == else) Both branches are the same, so remove them. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/s390/net/qeth_l3_main.c | 5

mmotm 2020-11-07-21-40 uploaded

2020-11-07 Thread akpm
The mm-of-the-moment snapshot 2020-11-07-21-40 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH net-next] net: dlci: Deprecate the DLCI driver (aka the Frame Relay layer)

2020-11-07 Thread Xie He
On Sat, Oct 31, 2020 at 3:04 PM Jakub Kicinski wrote: > > On Sat, 31 Oct 2020 22:41:30 +0100 Arnd Bergmann wrote: > > > > I think it can just go in the bin directly. > > Ack, fine by me. > > > I actually submitted a couple of patches to clean up drivers/net/wan > > last year but didn't follow up

[PATCH 06/19] elf/vdso: Reuse arch_setup_additional_pages() parameters

2020-11-07 Thread Dmitry Safonov
Both parameters of arch_setup_additional_pages() are currently unused. commit fc5243d98ac2 ("[S390] arch_setup_additional_pages arguments") tried to introduce useful arguments, but they still are not used. Remove old parameters and introduce sysinfo_ehdr argument that will be used to return vdso

[PATCH 19/19] mips/vdso: Migrate to user_landing

2020-11-07 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position. Cc: Thomas Bogendoerfer Cc: linux-m...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/mips/Kconfig | 1 + arch/mips/kernel/signal.c | 11 +++

[PATCH 17/19] arm64/vdso: Migrate compat signals to user_landing

2020-11-07 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position. Signed-off-by: Dmitry Safonov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/signal32.c | 17 - arch/arm64/kernel/vdso.c | 2 +- 3

[PATCH 14/19] mm: Add user_landing in mm_struct

2020-11-07 Thread Dmitry Safonov
Instead of having every architecture to define vdso_base/vdso_addr etc, provide a generic mechanism to track landing in userspace. It'll minimize per-architecture difference, the number of callbacks to provide. Originally, it started from thread [1] where the need for .close() callback on

[PATCH 11/19] mm/mmap: Make vm_special_mapping::mremap return void

2020-11-07 Thread Dmitry Safonov
Previously .mremap() callback needed (int) return to provide way to restrict resizing of a special mapping. Now it's restricted by providing .may_split = special_mapping_split. Removing (int) return simplifies further changes to special_mapping_mremap() as it won't need save ret code from the

[PATCH 16/19] arm/vdso: Migrate to user_landing

2020-11-07 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position. Signed-off-by: Dmitry Safonov --- arch/arm/Kconfig | 1 + arch/arm/kernel/process.c | 9 + arch/arm/kernel/signal.c | 6 +- 3 files changed, 7

[PATCH 07/19] elf: Use sysinfo_ehdr in ARCH_DLINFO()

2020-11-07 Thread Dmitry Safonov
Instead mm->context.vdso use the pointer provided by elf loader. That allows to drop the pointer on arm/s390/sparc. Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Dmitry Safonov

[PATCH 09/19] s390/vdso: Remove vdso_base pointer from mm->context

2020-11-07 Thread Dmitry Safonov
Not used any more. Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/s390/include/asm/mmu.h | 1 - arch/s390/kernel/vdso.c | 10 -- 2 files changed, 11 deletions(-) diff --git

[PATCH 12/19] x86/signal: Land on >retcode when vdso isn't mapped

2020-11-07 Thread Dmitry Safonov
Since commit 9fbbd4dd17d0 ("x86: Don't require the vDSO for handling a.out signals") after processing 32-bit signal if there is no vdso mapped frame->retcode is used as a landing. Do the same for rt ia32 signals. This shouldn't be mistaken for encouragement for running binaries with executable

[PATCH 15/19] x86/vdso: Migrate to user_landing

2020-11-07 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping vdso, kernel won't try to land on its previous position. Signed-off-by: Dmitry Safonov --- arch/x86/Kconfig| 1 + arch/x86/entry/common.c | 3 ++- arch/x86/entry/vdso/vma.c | 9 -

[PATCH 10/19] sparc/vdso: Remove vdso pointer from mm->context

2020-11-07 Thread Dmitry Safonov
Not used any more. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/sparc/include/asm/mmu_64.h | 1 - arch/sparc/vdso/vma.c | 5 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/sparc/include/asm/mmu_64.h

[PATCH 08/19] arm/vdso: Remove vdso pointer from mm->context

2020-11-07 Thread Dmitry Safonov
Not used any more. Signed-off-by: Dmitry Safonov --- arch/arm/include/asm/mmu.h | 3 --- arch/arm/kernel/vdso.c | 12 2 files changed, 15 deletions(-) diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h index 1592a4264488..2397b0a19f59 100644 ---

[PATCH 18/19] arm64/vdso: Migrate native signals to user_landing

2020-11-07 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping vdso, kernel won't try to land on its previous position. Signed-off-by: Dmitry Safonov --- arch/arm64/kernel/signal.c | 10 +++--- arch/arm64/kernel/vdso.c | 13 +++-- 2 files changed, 10 insertions(+), 13

[PATCH 13/19] x86/signal: Check if vdso_image_32 is mapped before trying to land on it

2020-11-07 Thread Dmitry Safonov
Provide current_has_vdso_image_32() helper and check it apriory landing attempt on vdso vma. The helper is a macro, not a static inline funciton to avoid linux/sched/task_stack.h inclusion in asm/vdso.h. Signed-off-by: Dmitry Safonov --- arch/x86/entry/common.c | 7 ++-

[PATCH 02/19] elf: Move arch_setup_additional_pages() to generic elf.h

2020-11-07 Thread Dmitry Safonov
Ifdef the function in the header, not in the code. Following kernel style, move it to Kconfig. All it makes it easier to follow when the option is enabled/disabled. Remove re-definition from compat_binfmt_elf, as it's always defined under compat_arch_setup_additional_pages (to be reworked).

[PATCH 03/19] arm64: Use in_compat_task() in arch_setup_additional_pages()

2020-11-07 Thread Dmitry Safonov
Instead of providing compat_arch_setup_additional_pages(), check if the task is compatible from personality, which is set earlier in load_elf_binary(). That will align code with powerpc and sparc, also it'll allow to completely remove compat_arch_setyp_addtional_pages() macro after doing the same

[PATCH 05/19] elf: Remove compat_arch_setup_additional_pages()

2020-11-07 Thread Dmitry Safonov
Now that all users rely on detecting bitness of new-born task checking personality, remove compat_arch_setup_additional_pages() macro, simplifying the code. Signed-off-by: Dmitry Safonov --- fs/compat_binfmt_elf.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/compat_binfmt_elf.c

[PATCH 00/19] Add generic user_landing tracking

2020-11-07 Thread Dmitry Safonov
Started from discussion [1], where was noted that currently a couple of architectures support mremap() for vdso/sigpage, but not munmap(). If an application maps something on the ex-place of vdso/sigpage, later after processing signal it will land there (good luck!) Patches set is based on

[PATCH 04/19] x86: Remove compat_arch_setup_additional_pages()

2020-11-07 Thread Dmitry Safonov
The same as for x32 task, detect ia32 task by in_ia32_syscall(). It's valid as new-execed task is pretending to be in a syscall of relevant bitness/ABI, see the comment near in_32bit_syscall(). Removing compat_arch_setup_additional_pages() provides single point of entry -

[PATCH 01/19] x86/elf: Check in_x32_syscall() in compat_arch_setup_additional_pages()

2020-11-07 Thread Dmitry Safonov
Partly revert commit 3316ec8ccd34 ("x86/elf: Use e_machine to check for x32/ia32 in setup_additional_pages()") and commit 9a29a671902c ("elf: Expose ELF header on arch_setup_additional_pages()". Both patches did a good thing: removed usage of TIF_X32, but with a price of additional macros

Re: [PATCH 1/2] tomoyo: Convert get_user_pages*() to pin_user_pages*()

2020-11-07 Thread John Hubbard
On 11/7/20 8:12 PM, Tetsuo Handa wrote: On 2020/11/08 11:17, John Hubbard wrote: Excuse me, but Documentation/core-api/pin_user_pages.rst says "CASE 5: Pinning in order to _write_ to the data within the page" while tomoyo_dump_page() is for "_read_ the data within the page". Do we want to

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 8:11 PM, Randy Dunlap wrote: ... Look at kconfig-language.rst instead. aha, yes. One thing that could be done (and is done in a few places for other reasons) is to add a Kconfig comment if DEBUG_FS is not enabled: comment "GUP_TEST needs to have DEBUG_FS enabled"

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-07 Thread Florian Fainelli
On 11/7/2020 5:16 PM, Stefan Agner wrote: > On 2020-11-08 01:56, Andrew Morton wrote: >> On Sat, 7 Nov 2020 16:22:06 +0100 Stefan Agner wrote: >> >>> Most architectures define MAX_PHYSMEM_BITS in asm/sparsemem.h and don't >>> include it in asm/pgtable.h. Include asm/sparsemem.h directly to

Re: [PATCH 0/8] simplify ep_poll

2020-11-07 Thread Soheil Hassas Yeganeh
On Sat, Nov 7, 2020 at 8:43 PM Andrew Morton wrote: > > On Fri, 6 Nov 2020 18:16:27 -0500 Soheil Hassas Yeganeh > wrote: > > > From: Soheil Hassas Yeganeh > > > > This patch series is a follow up based on the suggestions and feedback by > > Linus: > >

RE: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: Sunday, November 8, 2020 5:12 PM > To: John Hubbard ; Song Bao Hua (Barry Song) > ; a...@linux-foundation.org; > linux...@kvack.org; linux-kernel@vger.kernel.org > Cc: Linuxarm ; Ralph Campbell > ; John

[PATCH 1/4] x86/cpufeatures: Enumerate #DB for bus lock detection

2020-11-07 Thread Fenghua Yu
A bus lock is acquired either through split locked access to writeback (WB) memory or by using locks to uncacheable (UC) memory (e.g. direct device assignment). This is typically >1000 cycles slower than an atomic operation within a cache line. It also disrupts performance on other cores. Some

[PATCH 3/4] x86/bus_lock: Set rate limit for bus lock

2020-11-07 Thread Fenghua Yu
To enforce user application throttling or mitigations, extend the existing split lock detect kernel parameter: split_lock_detect=ratelimit:N It limits bus lock rate to N per second for non-root users. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/intel.c |

[PATCH 0/4] x86/bus_lock: Enable bus lock detection

2020-11-07 Thread Fenghua Yu
A bus lock [1] is acquired either through split locked access to writeback (WB) memory or by using locks to uncacheable (UC) memory (e.g. direct device assignment). This is typically >1000 cycles slower than an atomic operation within a cache line. It also disrupts performance on other cores.

[PATCH 4/4] Documentation/admin-guide: Change doc for split_lock_detect parameter

2020-11-07 Thread Fenghua Yu
Since #DB for bus lock detect changes the split_lock_detect parameter, update the documentation for the changes. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- Change Log: - Fix a few wording issues (Randy). RFC v2: - Simplify the documentation (Randy).

[PATCH 2/4] x86/bus_lock: Handle warn and fatal in #DB for bus lock

2020-11-07 Thread Fenghua Yu
#DB for bus lock is enabled by bus lock detection bit 2 in DEBUGCTL MSR while #AC for split lock is enabled by split lock detection bit 29 in TEST_CTRL MSR. Delivery of #DB for bus lock in userspace clears DR6[11]. To avoid confusion in identifying #DB, #DB handler sets the bit to 1 before

Re: [PATCH v2] lan743x: correctly handle chips with internal PHY

2020-11-07 Thread Andrew Lunn
On Fri, Nov 06, 2020 at 08:43:24AM -0500, Sven Van Asbroeck wrote: > From: Sven Van Asbroeck > > Commit 6f197fb63850 ("lan743x: Added fixed link and RGMII support") > assumes that chips with an internal PHY will never have a devicetree > entry. This is incorrect: even for these chips, a

Re: [PATCH 1/2] tomoyo: Convert get_user_pages*() to pin_user_pages*()

2020-11-07 Thread Tetsuo Handa
On 2020/11/08 11:17, John Hubbard wrote: >> Excuse me, but Documentation/core-api/pin_user_pages.rst says >> "CASE 5: Pinning in order to _write_ to the data within the page" >> while tomoyo_dump_page() is for "_read_ the data within the page". >> Do we want to convert to pin_user_pages_remote()

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Randy Dunlap
On 11/7/20 7:22 PM, John Hubbard wrote: > On 11/7/20 7:14 PM, John Hubbard wrote: >> On 11/7/20 6:58 PM, Song Bao Hua (Barry Song) wrote: On 11/7/20 2:20 PM, Randy Dunlap wrote: > On 11/7/20 11:16 AM, John Hubbard wrote: >> On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote:

RE: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: John Hubbard [mailto:jhubb...@nvidia.com] > Sent: Sunday, November 8, 2020 4:14 PM > To: Song Bao Hua (Barry Song) ; Randy Dunlap > ; a...@linux-foundation.org; linux...@kvack.org; > linux-kernel@vger.kernel.org > Cc: Linuxarm ; Ralph Campbell > ; John Garry

Re: [PATCH v2] Add-driver-for-STMicroelectronics-PM6764-Voltage-Regulator

2020-11-07 Thread Guenter Roeck
On 11/5/20 11:04 PM, Charles wrote: > Add the pmbus driver for the STMicroelectronics pm6764 voltage regulator. > > the output voltage use the MFR_READ_VOUT 0xD4 > vout value returned is linear11 > > Signed-off-by: Charles Hsu I don't find this patch in hwmon patchwork. Please remember to cc

Re: [PATCH][next] hwmon: corsair-psu: fix unintentional sign extension issue

2020-11-07 Thread Guenter Roeck
On Thu, Nov 05, 2020 at 11:50:19AM +, Colin King wrote: > From: Colin Ian King > > The shifting of the u8 integer data[3] by 24 bits to the left will > be promoted to a 32 bit signed int and then sign-extended to a > long. In the event that the top bit of data[3] is set then all > then all

Re: [v2 PATCH] dt-bindings: display: mediatek: convert the dpi bindings to yaml

2020-11-07 Thread Chun-Kuang Hu
Hi, Jitao: Rob Herring 於 2020年9月24日 週四 上午4:15寫道: > > On Thu, 17 Sep 2020 15:33:05 +0800, Jitao Shi wrote: > > Convert display/mediatek/mediatek,dpi.txt to > > display/mediatek/mediatek,dpi.yaml > > and remove the old text bindings. > > > > Signed-off-by: Jitao Shi > > --- > >

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 7:14 PM, John Hubbard wrote: On 11/7/20 6:58 PM, Song Bao Hua (Barry Song) wrote: On 11/7/20 2:20 PM, Randy Dunlap wrote: On 11/7/20 11:16 AM, John Hubbard wrote: On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote: From: John Hubbard [mailto:jhubb...@nvidia.com] ... But if you

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 6:58 PM, Song Bao Hua (Barry Song) wrote: On 11/7/20 2:20 PM, Randy Dunlap wrote: On 11/7/20 11:16 AM, John Hubbard wrote: On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote: From: John Hubbard [mailto:jhubb...@nvidia.com] ... But if you really disagree, then I'd go with, just

Re: [PATCH 3/3] MAINTAINERS: add files for Mediatek DRM drivers

2020-11-07 Thread Chun-Kuang Hu
+ Vinod: Hi, Chunfeng: Chun-Kuang Hu 於 2020年10月29日 週四 下午11:28寫道: > > Mediatek MIPI DSI phy driver is moved from drivers/gpu/drm/mediatek to > drivers/phy/mediatek, so add the new folder to the Mediatek DRM drivers' > information. Would you like this patch? If so, you could give an acked-by tag

RE: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: John Hubbard [mailto:jhubb...@nvidia.com] > Sent: Sunday, November 8, 2020 1:03 PM > To: Randy Dunlap ; Song Bao Hua (Barry Song) > ; a...@linux-foundation.org; > linux...@kvack.org; linux-kernel@vger.kernel.org > Cc: Linuxarm ; Ralph Campbell > ; John Garry

Re: [PATCH] drm/mediatek: Optimize functions which do not need to return

2020-11-07 Thread Chun-Kuang Hu
Hi, Bernard: Chun-Kuang Hu 於 2020年10月17日 週六 上午10:50寫道: > > Bernard Zhao 於 2020年10月13日 週二 下午4:55寫道: > > > > Function mtk_hdmi_aud_set_input always return 0, no need to > > keep the return value. Functions mtk_hdmi_aud_enable_packet & > > mtk_hdmi_aud_on_off_hw_ncts are the same, these two

[PATCH] arm64: dts: imx: Fix imx8mm-kontron-n801x-s.dtb target

2020-11-07 Thread Nathan Chancellor
$ make -skj"$(nproc)" ARCH=arm64 CROSS_COMPILE=aarch64-linux- \ INSTALL_DTBS_PATH=rootfs distclean defconfig dtbs dtbs_install ... make[3]: *** No rule to make target 'rootfs/freescale/imx8mm-kontron-n801x-s.dts', needed by '__dtbs_install' ... It should be .dtb, not .dts. Fixes: 8668d8b2e67f

Re: [PATCH 1/2] tomoyo: Convert get_user_pages*() to pin_user_pages*()

2020-11-07 Thread John Hubbard
On 11/7/20 5:13 PM, Tetsuo Handa wrote: On 2020/11/08 4:17, John Hubbard wrote: On 11/7/20 1:04 AM, John Hubbard wrote: On 11/7/20 12:24 AM, Souptick Joarder wrote: In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2]

Re: [PATCH v2 4/5] drm/mediatek: add DDP support for MT8167

2020-11-07 Thread Chun-Kuang Hu
Hi, Fabien: Chun-Kuang Hu 於 2020年10月23日 週五 下午11:45寫道: > > Hi, Fabien: > > Fabien Parent 於 2020年10月23日 週五 下午9:31寫道: > > > > Add DDP support for MT8167 SoC. > > Reviewed-by: Chun-Kuang Hu For this patch, applied to mediatek-drm-next [1], thanks. [1]

Re: [PATCH v2 3/5] drm/mediatek: add disp-color MT8167 support

2020-11-07 Thread Chun-Kuang Hu
Hi, Fabien: Fabien Parent 於 2020年10月23日 週五 下午9:31寫道: > > Add support for disp-color on MT8167 SoC. For this patch, applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next Regards, Chun-Kuang. > >

Re: [PATCH v2 1/5] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-11-07 Thread Chun-Kuang Hu
Hi, Fabien: Rob Herring 於 2020年10月30日 週五 下午11:49寫道: > > On Fri, 23 Oct 2020 15:31:26 +0200, Fabien Parent wrote: > > Add binding documentation for the MT8167 SoC For this patch, applied to mediatek-drm-next [1], thanks. [1]

Re: [PATCH 0/8] simplify ep_poll

2020-11-07 Thread Andrew Morton
On Fri, 6 Nov 2020 18:16:27 -0500 Soheil Hassas Yeganeh wrote: > From: Soheil Hassas Yeganeh > > This patch series is a follow up based on the suggestions and feedback by > Linus: > https://lkml.kernel.org/r/CAHk-=wizk=oxuyqpbo8ms41w2pag1kniuv5wdd5qwl-gq1k...@mail.gmail.com Al Viro has

[PATCH v2] HID: sony: support for ghlive ps3/wii u dongles

2020-11-07 Thread Pascal Giard
This commit adds support for the Guitar Hero Live PS3 and Wii U dongles. These dongles require a "magic" USB control message [1] to be sent approximately every 10 seconds otherwise the dongle will not report events where the strumbar is hit while a fret is being held. Also, inspired by a patch

[PATCH] MAINTAINERS: Fix 'W:' prefix in Invensense IMU entry

2020-11-07 Thread Jonathan Neuschäfer
The colon is missing, which can confuse scripts/parse-maintainers.pl. Signed-off-by: Jonathan Neuschäfer --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b75f29d..80defad325f31 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-07 Thread Stefan Agner
On 2020-11-08 01:56, Andrew Morton wrote: > On Sat, 7 Nov 2020 16:22:06 +0100 Stefan Agner wrote: > >> Most architectures define MAX_PHYSMEM_BITS in asm/sparsemem.h and don't >> include it in asm/pgtable.h. Include asm/sparsemem.h directly to get >> the MAX_PHYSMEM_BITS define on all

Re: [PATCH 1/2] tomoyo: Convert get_user_pages*() to pin_user_pages*()

2020-11-07 Thread Tetsuo Handa
On 2020/11/08 4:17, John Hubbard wrote: > On 11/7/20 1:04 AM, John Hubbard wrote: >> On 11/7/20 12:24 AM, Souptick Joarder wrote: >>> In 2019, we introduced pin_user_pages*() and now we are converting >>> get_user_pages*() to the new API as appropriate. [1] & [2] could >>> be referred for more

[PATCH v2] net: atlantic: Remove unnecessary conversion to bool

2020-11-07 Thread xiakaixu1987
From: Kaixu Xia The '!=' expression itself is bool, no need to convert it to bool. Fix the following coccicheck warning: ./drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1477:34-39: WARNING: conversion to bool not needed here Reported-by: Tosk Robot Signed-off-by: Kaixu Xia ---

[PATCH net] net: udp: fix Fast/frag0 UDP GRO

2020-11-07 Thread Alexander Lobakin
While testing UDP GSO fraglists forwarding through driver that uses Fast GRO (via napi_gro_frags()), I was observing lots of out-of-order iperf packets: [ ID] Interval Transfer Bitrate Jitter [SUM] 0.0-40.0 sec 12106 datagrams received out-of-order Simple switch to

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 4:24 PM, Randy Dunlap wrote: On 11/7/20 4:03 PM, John Hubbard wrote: On 11/7/20 2:20 PM, Randy Dunlap wrote: On 11/7/20 11:16 AM, John Hubbard wrote: On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote: ... OK, thanks, I see how you get that list now. JFTR, those are not 42

[PATCH v2] net: ipv4: remove redundant initialization in inet_rtm_deladdr

2020-11-07 Thread Menglong Dong
The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon. Changes since v1: - Remove redundant empty line Signed-off-by: Menglong Dong --- net/ipv4/devinet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/devinet.c

[PATCH v3] applesmc: Re-work SMC comms

2020-11-07 Thread Brad Campbell
G'day Henrik, I noticed you'd also loosened up the requirement for SMC_STATUS_BUSY in read_smc(). I assume that causes problems on the early Macbook. This is revised on the one sent earlier. If you could test this on your Air1,1 it'd be appreciated. Commit fff2d0f701e6 ("hwmon: (applesmc)

Re: [PATCH] scsi: core: fix -Wformat

2020-11-07 Thread Nathan Chancellor
On Sat, Nov 07, 2020 at 12:11:32AM -0800, Nick Desaulniers wrote: > Clang is more aggressive about -Wformat warnings when the format flag > specifies a type smaller than the parameter. Turns out, struct > Scsi_Host's member can_queue is actually an int. Fixes: > > warning: format specifies type

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-07 Thread Andrew Morton
On Sat, 7 Nov 2020 16:22:06 +0100 Stefan Agner wrote: > Most architectures define MAX_PHYSMEM_BITS in asm/sparsemem.h and don't > include it in asm/pgtable.h. Include asm/sparsemem.h directly to get > the MAX_PHYSMEM_BITS define on all architectures. > > This fixes a crash when accessing zram

[PATCH v2 net] ethtool: netlink: add missing netdev_features_change() call

2020-11-07 Thread Alexander Lobakin
After updating userspace Ethtool from 5.7 to 5.9, I noticed that NETDEV_FEAT_CHANGE is no more raised when changing netdev features through Ethtool. That's because the old Ethtool ioctl interface always calls netdev_features_change() at the end of user request processing to inform the kernel that

Re: [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr

2020-11-07 Thread Menglong Dong
Dear Jakub, On Sun, Nov 8, 2020 at 7:48 AM Jakub Kicinski wrote: > > On Fri, 6 Nov 2020 01:42:37 -0500 menglong8.d...@gmail.com wrote: > > From: Menglong Dong > > > > The initialization for 'err' with '-EINVAL' is redundant and > > can be removed, as it is updated soon. > > > > Signed-off-by:

[PATCH] docs: filesystems: Reduce ext2.rst to one top-level heading

2020-11-07 Thread Jonathan Neuschäfer
This prevents the other headings like "Options" and "Specification" from leaking out and being listed separately in the table of contents. Signed-off-by: Jonathan Neuschäfer --- Documentation/filesystems/ext2.rst | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.

2020-11-07 Thread Heiko Stuebner
On Wed, 4 Nov 2020 20:29:31 +0100, Markus Reichl wrote: > After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2. > Correct trigger of LEDs accordingly. > > [1] > https://patchwork.kernel.org/patch/11881427 Applied, thanks! [1/1] arm64: dts: rockchip: Reorder LED triggers from mmc devices

Re: [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance

2020-11-07 Thread Heiko Stuebner
Am Sonntag, 8. November 2020, 01:31:19 CET schrieb Heiko Stuebner: > On Sat, 4 Jul 2020 00:14:13 +0200, Heiko Stuebner wrote: > > Add the now usable adc-joystick node that describes the analog > > joystick connected to two saradc channels from the rk3326 soc. > > Applied, thanks! > > [1/1]

Re: [PATCH] dt-bindings: arm: rockchip: Add Kobol Helios64

2020-11-07 Thread Heiko Stuebner
On Mon, 2 Nov 2020 16:06:58 +0100, Uwe Kleine-König wrote: > Document the new board by Kobol introduced recently in > rockchip/rk3399-kobol-helios64.dts. Applied, thanks! [1/1] dt-bindings: arm: rockchip: Add Kobol Helios64 commit: 62dbf80fc581a8eed7288ed7aca24446054eb616 Best regards, --

Re: [PATCH] arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards.

2020-11-07 Thread Heiko Stuebner
On Wed, 4 Nov 2020 17:23:55 +0100, Markus Reichl wrote: > Recently introduced async probe on mmc devices can shuffle block IDs. > Pin them to fixed values to ease booting in environments where UUIDs > are not practical. Use newly introduced aliases for mmcblk devices from [1]. > > [1] >

Re: [PATCH] arm64: dts: rockchip: add adc joystick to Odroid Go Advance

2020-11-07 Thread Heiko Stuebner
On Sat, 4 Jul 2020 00:14:13 +0200, Heiko Stuebner wrote: > Add the now usable adc-joystick node that describes the analog > joystick connected to two saradc channels from the rk3326 soc. Applied, thanks! [1/1] arm64: dts: rockchip: add adc joystick to Odroid Go Advance commit:

[PATCH v4.19] tools: perf: Fix build error in v4.19.y

2020-11-07 Thread Guenter Roeck
perf may fail to build in v4.19.y with the following error. util/evsel.c: In function ‘perf_evsel__exit’: util/util.h:25:28: error: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type This is observed (at least) with gcc v6.5.0. The underlying problem is the

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread Randy Dunlap
On 11/7/20 4:03 PM, John Hubbard wrote: > On 11/7/20 2:20 PM, Randy Dunlap wrote: >> On 11/7/20 11:16 AM, John Hubbard wrote: >>> On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote: > -Original Message- > From: John Hubbard [mailto:jhubb...@nvidia.com] >>> ... >>     config

Re: [PATCH net-next 1/1] stmmac: intel: change all EHL/TGL to auto detect phy addr

2020-11-07 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 6 Nov 2020 17:43:41 +0800 you wrote: > From: Voon Weifeng > > Set all EHL/TGL phy_addr to -1 so that the driver will automatically > detect it at run-time by probing all the possible 32 addresses. > >

Re: [PATCH] applesmc: Re-work SMC comms v2

2020-11-07 Thread Brad Campbell
On 8/11/20 5:31 am, Henrik Rydberg wrote: > On 2020-11-06 21:02, Henrik Rydberg wrote: >>> So as it stands, it does not work at all. I will continue to check another >>> machine, and see if I can get something working. >> >> On the MacBookAir3,1 the situation is somewhat better. >> >> The first

Re: [RFC net-next 00/28] ndo_ioctl rework

2020-11-07 Thread Jakub Kicinski
On Fri, 6 Nov 2020 23:17:15 +0100 Arnd Bergmann wrote: > Any suggestions on how to proceed? I think the ndo_siocdevprivate > change is the most interesting here, and I would like to get > that merged. Splitting out / eliminating ioctl pass-thry in general seems like a nice clean up. How did you

Re: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS

2020-11-07 Thread John Hubbard
On 11/7/20 2:20 PM, Randy Dunlap wrote: On 11/7/20 11:16 AM, John Hubbard wrote: On 11/7/20 11:05 AM, Song Bao Hua (Barry Song) wrote: -Original Message- From: John Hubbard [mailto:jhubb...@nvidia.com] ...    config GUP_BENCHMARK    bool "Enable infrastructure for

Re: [PATCH] net: usb: fix spelling typo in cdc_ncm.c

2020-11-07 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 6 Nov 2020 15:50:25 +0800 you wrote: > Actually, withing should be within. > > Signed-off-by: Wang Qing > --- > drivers/net/usb/cdc_ncm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the

Re: [PATCH] net: core: fix spelling typo in flow_dissector.c

2020-11-07 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 6 Nov 2020 16:11:49 +0800 you wrote: > withing should be within. > > Signed-off-by: Wang Qing > --- > net/core/flow_dissector.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with

Re: [PATCH net-next 00/13] net: ipa: constrain GSI interrupts

2020-11-07 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Thu, 5 Nov 2020 12:13:54 -0600 you wrote: > The goal of this series is to more tightly control when GSI > interrupts are enabled. This is a long-ish series, so I'll > describe it in parts. > > The first patch is

Re: [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr

2020-11-07 Thread Jakub Kicinski
On Fri, 6 Nov 2020 01:42:37 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The initialization for 'err' with '-EINVAL' is redundant and > can be removed, as it is updated soon. > > Signed-off-by: Menglong Dong How many changes like this are there in the kernel right now?

Re: [PATCH] net: atlantic: Remove unnecessary conversion to bool

2020-11-07 Thread Jakub Kicinski
On Fri, 6 Nov 2020 10:57:59 +0800 xiakaixu1...@gmail.com wrote: > - cfg->is_qos = (tcs != 0 ? true : false); > + cfg->is_qos = (tcs != 0); !!tcs

[PATCH 2/2] remoteproc: stm32: Constify st_rproc_ops

2020-11-07 Thread Rikard Falkeborn
The only usage of st_rproc_ops is to pass its address to rproc_alloc() which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/2] remoteproc: Constify static struct rproc_ops

2020-11-07 Thread Rikard Falkeborn
Constify two static struct rproc_ops which are never modified. These two changes makes all static instances of rproc_ops in the kernel const. Rikard Falkeborn (2): remoteproc: ingenic: Constify ingenic_rproc_ops remoteproc: stm32: Constify st_rproc_ops drivers/remoteproc/ingenic_rproc.c | 2

[PATCH 1/2] remoteproc: ingenic: Constify ingenic_rproc_ops

2020-11-07 Thread Rikard Falkeborn
The only usage of ingenic_rproc_ops is to pass its address to devm_rproc_alloc(), which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/remoteproc/ingenic_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1

  1   2   3   4   >