My Dear in the lord

2020-07-10 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited the

[PATCH] CREDITS: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH] CREDITS: replace HTTP links with HTTPS ones and add myself

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 23:46 schrieb Jonathan Corbet: On Fri, 10 Jul 2020 21:43:42 +0200 "Alexander A. Klimov" wrote: Regarding the links: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each

WARNING in submit_bio_checks

2020-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=112aaa1f10 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476ed6 dashboard

Re: [PATCH] Replace HTTP links with HTTPS ones: USB MASS STORAGE DRIVER

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 23:35 schrieb Jonathan Corbet: On Fri, 10 Jul 2020 21:36:03 +0200 "Alexander A. Klimov" wrote: 2) Apropos "series" and "as whole"... I stumbled over `git log --oneline |grep -Fwe treewide` and am wondering: *Shouldn't all of these patches even begin with

drivers/gpu/drm/drm_gem_shmem_helper.c:260:17: error: implicit declaration of function 'pgprot_writecombine'; did you mean

2020-07-10 Thread kernel test robot
config: m68k-randconfig-r002-20200710 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

[PATCH v2] panic: prevent panic_timeout * 1000 from overflow

2020-07-10 Thread Changming
From: Changming Liu Since panic_timeout is an integer passed-in through sysctl, the loop boundary panic_timeout * 1000 could overflow and result in a zero-delay panic when panic_timeout is greater than INT_MAX/1000. Fix this by moving 1000 to the left, also in case i/1000 might never be greater

Re: [PATCH v6 13/17] static_call: Add static_call_cond()

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 07:08:25PM -0400, Steven Rostedt wrote: > On Fri, 10 Jul 2020 15:38:44 +0200 > Peter Zijlstra wrote: > > > +static void __static_call_transform(void *insn, enum insn_type type, void > > *func) > > { > > - const void *code = text_gen_insn(opcode, insn, func); > > +

Re: [PATCH v6 15/17] static_call: Allow early init

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 09:14:26PM -0400, Steven Rostedt wrote: > On Fri, 10 Jul 2020 15:38:46 +0200 > Peter Zijlstra wrote: > > > In order to use static_call() to wire up x86_pmu, we need to > > initialize earlier; copy some of the tricks from jump_label to enable > > this. > > > > Primarily

Re: [PATCH v6 14/17] static_call: Handle tail-calls

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 08:23:19PM -0400, Steven Rostedt wrote: > On Fri, 10 Jul 2020 15:38:45 +0200 > Peter Zijlstra wrote: > > @@ -1639,6 +1647,10 @@ static int decode_sections(struct objtoo > > if (ret) > > return ret; > > > > + ret = read_static_call_tramps(file); > > +

Re: [PATCH v6 14/17] static_call: Handle tail-calls

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 08:23:19PM -0400, Steven Rostedt wrote: > On Fri, 10 Jul 2020 15:38:45 +0200 > Peter Zijlstra wrote: > > > GCC can turn our static_call(name)(args...) into a tail call, in which > > case we get a JMP.d32 into the trampoline (which then does a further > > tail-call). > >

splat and freeze (2 instances)

2020-07-10 Thread Ilkka Prusi
Hi, I have to splats followed by freezing, first one was saved in logs but second one is only what I could gather from screen of frozen machine. First one is 5.7.7 and second with 5.8.0-rc4+. Logs from second one could not be saved but part of it could be captured with phonecamera (dmesg

Re: [PATCH] arm64: dts: qcom: sc7180: Add missing properties for Wifi node

2020-07-10 Thread Sibi Sankar
On 2020-07-11 09:07, Rakesh Pillai wrote: -Original Message- From: Doug Anderson Sent: Friday, July 10, 2020 1:36 AM To: Rakesh Pillai Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS ; Evan Green ; Andy Gross ; Bjorn Andersson ; Rob Herring ; linux- arm-msm ; LKML ; Sibi

Re: [PATCH v2] riscv: Allow building with kcov coverage

2020-07-10 Thread Palmer Dabbelt
On Fri, 26 Jun 2020 05:40:56 PDT (-0700), tklau...@distanz.ch wrote: Add ARCH_HAS_KCOV and HAVE_GCC_PLUGINS to the riscv Kconfig. Also disable instrumentation of some early boot code and vdso. Boot-tested on QEMU's riscv64 virt machine. Thanks. This is on for-next (with the ack). I'm boot

Re: [GIT PULL] SMB3 Fixes

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 19:53:30 -0500: > git://git.samba.org/sfrench/cifs-2.6.git tags/5.8-rc4-smb3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5ab39e08ff1558ed80d93f5c5217338f19369a40 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] CodingStyle: Inclusive Terminology

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 17:17:15 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/djbw/linux > tags/inclusive-terminology has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/49decddd39e5f6132ccd7d9fdc3d7c470b0061bb Thank you! --

Re: [GIT PULL] libnvdimm fix for v5.8-rc5

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 18:26:27 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm > tags/libnvdimm-fix-v5.8-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1df0d8960499e58963fd6c8ac75e544f2b417b29 Thank you! --

Re: [GIT] Networking

2020-07-10 Thread pr-tracker-bot
The pull request you sent on Fri, 10 Jul 2020 16:58:15 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5a764898afec0bc097003e8c3e727792289f76d6 Thank you! -- Deet-doot-dot,

Re: [PATCH] fuse_writepages_fill() optimization to avoid WARN_ON in tree_insert

2020-07-10 Thread Miklos Szeredi
On Thu, Jun 25, 2020 at 11:02 AM Vasily Averin wrote: > > In current implementation fuse_writepages_fill() tries to share the code: > for new wpa it calls tree_insert() with num_pages = 0 > then switches to common code used non-modified num_pages > and increments it at the very end. > > Though it

[PATCH 3/3] arm64: Use the new generic copy_oldmem_page()

2020-07-10 Thread Palmer Dabbelt
From: Palmer Dabbelt This is exactly the same as the arm64 code, which I just into lib/ to avoid copying it into the RISC-V port. This builds with defconfig. Signed-off-by: Palmer Dabbelt --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/crash_dump.c | 39

[PATCH 1/3] lib: Add a generic copy_oldmem_page()

2020-07-10 Thread Palmer Dabbelt
From: Palmer Dabbelt A version of this that is identical to the arm64 version was recently copied into the RISC-V port while adding kexec() support. Instead I'd like to put a shared copy in lib/ and use it from the various ports. Signed-off-by: Palmer Dabbelt --- lib/Kconfig| 3

[PATCH 2/3] arm: Use the new generic copy_oldmem_page()

2020-07-10 Thread Palmer Dabbelt
From: Palmer Dabbelt This is exactly the same as the arm64 code, which I just into lib/ to avoid copying it into the RISC-V port. This builds with defconfig and with CRASH_DUMP=y. Signed-off-by: Palmer Dabbelt --- arch/arm/Kconfig | 1 + arch/arm/kernel/Makefile | 1 -

Add and use a generic copy_oldmem_page()

2020-07-10 Thread Palmer Dabbelt
While adding support for kexec, Nick recently copied the arm64 copy_oldmem_page() into the RISC-V port. Since this is shared verbatim with arm and arm64 already, I'd like to add a generic version and so we can use it instead. I haven't converted over the MIPS, PPC, or SH ports: while I think we

Re: [PATCH bpf-next 1/5] bpf: block bpf_get_[stack|stackid] on perf_event with PEBS entries

2020-07-10 Thread Andrii Nakryiko
On Fri, Jul 10, 2020 at 6:30 PM Song Liu wrote: > > Calling get_perf_callchain() on perf_events from PEBS entries may cause > unwinder errors. To fix this issue, the callchain is fetched early. Such > perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY. > > Similarly, calling

RE: [PATCH] arm64: dts: qcom: sc7180: Add missing properties for Wifi node

2020-07-10 Thread Rakesh Pillai
> -Original Message- > From: Doug Anderson > Sent: Friday, July 10, 2020 1:36 AM > To: Rakesh Pillai > Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > ; Evan Green ; > Andy Gross ; Bjorn Andersson > ; Rob Herring ; linux- > arm-msm ; LKML ker...@vger.kernel.org>;

Re: [PATCH -next] device-dax: make dev_dax_kmem_probe() static

2020-07-10 Thread Ira Weiny
On Tue, Jul 07, 2020 at 07:23:40PM +0800, Wei Yongjun wrote: > sparse report warning as follows: > > drivers/dax/kmem.c:22:5: warning: > symbol 'dev_dax_kmem_probe' was not declared. Should it be static? > > dev_dax_kmem_probe() is not used outside of kmem.c, so marks > it static. > >

Re: sound/soc/codecs/zl38060.c:614:34: warning: unused variable 'zl38_dt_ids'

2020-07-10 Thread Nathan Chancellor
On Fri, Jul 10, 2020 at 01:24:59PM +0100, Mark Brown wrote: > On Thu, Jul 09, 2020 at 07:41:00PM -0700, Nathan Chancellor wrote: > > > When CONFIG_SND_SOC_ZL38060 is y, MODULE_DEVICE_TABLE expands to nothing > > so zl38_dt_ids will be unused. This is a pretty common construct in the > > kernel

Re: [PATCH] mm: vmscan: consistent update to pgrefill

2020-07-10 Thread Shakeel Butt
On Fri, Jul 10, 2020 at 7:32 PM Roman Gushchin wrote: > > On Fri, Jul 10, 2020 at 06:14:59PM -0700, Shakeel Butt wrote: > > The vmstat pgrefill is useful together with pgscan and pgsteal stats to > > measure the reclaim efficiency. However vmstat's pgrefill is not updated > > consistently at

Re: [PATCH] Restore gcc check in mips asm/unroll.h

2020-07-10 Thread Nathan Chancellor
On Fri, Jul 10, 2020 at 03:31:00PM -0700, Linus Torvalds wrote: > On Fri, Jul 10, 2020 at 11:43 AM Nick Desaulniers > wrote: > > > > What I'd really like to see as a policy in the kernel going forward in > > that ANY new commit that adds some hack or workaround for a specific > > compiler version

Re: [PATCH] mm: vmscan: consistent update to pgrefill

2020-07-10 Thread Roman Gushchin
On Fri, Jul 10, 2020 at 06:14:59PM -0700, Shakeel Butt wrote: > The vmstat pgrefill is useful together with pgscan and pgsteal stats to > measure the reclaim efficiency. However vmstat's pgrefill is not updated > consistently at system level. It gets updated for both global and memcg > reclaim

[PATCH v2] powerpc/pseries: detect secure and trusted boot state of the system.

2020-07-10 Thread Nayna Jain
The device-tree property to check secure and trusted boot state is different for guests(pseries) compared to baremetal(powernv). This patch updates the existing is_ppc_secureboot_enabled() and is_ppc_trustedboot_enabled() function to add support for pseries. Signed-off-by: Nayna Jain

Re: [PATCH] mips: Remove compiler check in unroll macro

2020-07-10 Thread Nathan Chancellor
On Fri, Jul 10, 2020 at 03:43:43PM -0700, Linus Torvalds wrote: > On Fri, Jul 10, 2020 at 3:34 PM Nathan Chancellor > wrote: > > > > Clang 8 was chosen as a minimum version for this check because there > > were some improvements around __builtin_constant_p in that release. In > > reality, MIPS

[PATCH v4] ARM: dts: vfxxx: Add node for CAAM

2020-07-10 Thread Chris Healy
From: Andrey Smirnov Add node for CAAM device in NXP Vybrid SoC. Signed-off-by: Andrey Smirnov Signed-off-by: Chris Healy Reviewed-by: Fabio Estevam --- v4: - really add reviewed by from Fabio Estevam v3: - put version information in the correct place - add reviewed by from Fabio Estevam

Re: [PATCH -next] : add stub for of_get_next_parent() to fix qcom build error

2020-07-10 Thread Stephen Rothwell
Hi Randy, On Fri, 10 Jul 2020 16:40:03 -0700 Randy Dunlap wrote: > > Are linux-next hashes/tags stable? That depends on the maintainer of the tree I fetch ... In this case the qcom tree. -- Cheers, Stephen Rothwell pgpTdH0HZLMCo.pgp Description: OpenPGP digital signature

Re: [PATCH] hid-input: Fix devices that return multiple bytes in battery report

2020-07-10 Thread Darren Hart
On Fri, Jul 10, 2020 at 8:19 AM Grant Likely wrote: > > Some devices, particularly the 3DConnexion Spacemouse wireless 3D > controllers, return more than just the battery capacity in the battery > report. The Spacemouse devices return an additional byte with a device > specific field. However,

Re: [PATCH] mm: vmscan: consistent update to pgrefill

2020-07-10 Thread Yafang Shao
On Sat, Jul 11, 2020 at 9:15 AM Shakeel Butt wrote: > > The vmstat pgrefill is useful together with pgscan and pgsteal stats to > measure the reclaim efficiency. However vmstat's pgrefill is not updated > consistently at system level. It gets updated for both global and memcg > reclaim however

[PATCH v3] ARM: dts: vfxxx: Add node for CAAM

2020-07-10 Thread Chris Healy
From: Andrey Smirnov Add node for CAAM device in NXP Vybrid SoC. Signed-off-by: Andrey Smirnov Signed-off-by: Chris Healy --- v3: - put version information in the correct place - add reviewed by from Fabio Estevam v2: - fixup commit to show that this patch is from Andrey Smirnov

Re: [PATCH v2 2/2] riscv: Enable context tracking

2020-07-10 Thread Greentime Hu
Palmer Dabbelt 於 2020年7月11日 週六 上午1:30寫道: > > On Wed, 24 Jun 2020 02:03:16 PDT (-0700), greentime...@sifive.com wrote: > > This patch implements and enables context tracking for riscv (which is a > > prerequisite for CONFIG_NO_HZ_FULL support) > > > > It adds checking for previous state in the

Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Jiaxun Yang
在 2020/7/11 9:35, Jiaxun Yang 写道: 在 2020/7/10 16:51, Zhi Li 写道: Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li ---   drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++   1 file

Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Jiaxun Yang
在 2020/7/10 16:51, Zhi Li 写道: Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

Re: [linux-sunxi] [PATCH 01/16] ASoC: sun4i-i2s: Add support for H6 I2S

2020-07-10 Thread Samuel Holland
Jernej, On 7/10/20 2:22 PM, Jernej Škrabec wrote: >> From the description in the manual, this looks off by one. The number of >> BCLKs per LRCK is LRCK_PERIOD + 1. > > Are you sure? Macro SUN8I_I2S_FMT0_LRCK_PERIOD() is defined as follows: > > #define SUN8I_I2S_FMT0_LRCK_PERIOD(period)

Re: [RFC PATCH 14/16] irq: Add support for core-wide protection of IRQ and softirq

2020-07-10 Thread Aubrey Li
On Fri, Jul 10, 2020 at 9:36 PM Vineeth Remanan Pillai wrote: > > Hi Aubrey, > > On Fri, Jul 10, 2020 at 8:19 AM Li, Aubrey wrote: > > > > Hi Joel/Vineeth, > > [...] > > The problem is gone when we reverted this patch. We are running multiple > > uperf threads(equal to cpu number) in a cgroup

Re: [PATCH v2 6/6] riscv: Add KPROBES_ON_FTRACE supported

2020-07-10 Thread Guo Ren
Thx Masami, On Fri, Jul 10, 2020 at 9:50 PM Masami Hiramatsu wrote: > > Hi Guo, > > On Thu, 9 Jul 2020 02:19:14 + > guo...@kernel.org wrote: > > > +/* Ftrace callback handler for kprobes -- called under preepmt disabed */ > > +void kprobe_ftrace_handler(unsigned long ip, unsigned long

[PATCH bpf-next 1/5] bpf: block bpf_get_[stack|stackid] on perf_event with PEBS entries

2020-07-10 Thread Song Liu
Calling get_perf_callchain() on perf_events from PEBS entries may cause unwinder errors. To fix this issue, the callchain is fetched early. Such perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY. Similarly, calling bpf_get_[stack|stackid] on perf_events from PEBS may also cause unwinder

[PATCH bpf-next 4/5] selftests/bpf: add get_stackid_cannot_attach

2020-07-10 Thread Song Liu
This test confirms that BPF program that calls bpf_get_stackid() cannot attach to perf_event with PEBS entry. Signed-off-by: Song Liu --- .../prog_tests/get_stackid_cannot_attach.c| 57 +++ 1 file changed, 57 insertions(+) create mode 100644

[PATCH bpf-next 5/5] selftests/bpf: add callchain_stackid

2020-07-10 Thread Song Liu
This tests new helper function bpf_get_callchain_stackid(), which is the alternative to bpf_get_stackid() for perf_event with PEBS entry. Signed-off-by: Song Liu --- .../bpf/prog_tests/callchain_stackid.c| 61 +++ .../selftests/bpf/progs/callchain_stackid.c | 37

[PATCH bpf-next 2/5] bpf: add callchain to bpf_perf_event_data

2020-07-10 Thread Song Liu
If the callchain is available, BPF program can use bpf_probe_read_kernel() to fetch the callchain, or use it in a BPF helper. Signed-off-by: Song Liu --- include/linux/perf_event.h| 5 - include/linux/trace_events.h | 5 +

[PATCH bpf-next 3/5] bpf: introduce bpf_get_callchain_stackid

2020-07-10 Thread Song Liu
This helper is only used by BPF program attached to perf_event. If the perf_event has PEBS entries, calling get_perf_callchain from BPF program may cause unwinder errors. bpf_get_callchain_stackid serves as alternative to bpf_get_stackid for these BPF programs. Signed-off-by: Song Liu ---

[PATCH bpf-next 0/5] bpf: fix stackmap on perf_events with PEBS

2020-07-10 Thread Song Liu
Calling get_perf_callchain() on perf_events from PEBS entries may cause unwinder errors. To fix this issue, perf subsystem fetches callchain early, and marks perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY. Similar issue exists when BPF program calls get_perf_callchain() via helper

[GIT PULL] libnvdimm fix for v5.8-rc5

2020-07-10 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fix-v5.8-rc5 ...to receive a one line fix for a regression from some of the 'keys' subsystem reworks that landed in -rc1. I had been holding off to see if anything else percolated up, but

Re: [PATCH v6 15/17] static_call: Allow early init

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 15:38:46 +0200 Peter Zijlstra wrote: > In order to use static_call() to wire up x86_pmu, we need to > initialize earlier; copy some of the tricks from jump_label to enable > this. > > Primarily we overload key->next to store a sites pointer when there > are no modules, this

[PATCH] mm: vmscan: consistent update to pgrefill

2020-07-10 Thread Shakeel Butt
The vmstat pgrefill is useful together with pgscan and pgsteal stats to measure the reclaim efficiency. However vmstat's pgrefill is not updated consistently at system level. It gets updated for both global and memcg reclaim however pgscan and pgsteal are updated for only global reclaim. So,

[PATCH] drm: sun4i: hdmi: Fix inverted HPD result

2020-07-10 Thread Chen-Yu Tsai
From: Chen-Yu Tsai When the extra HPD polling in sun4i_hdmi was removed, the result of HPD was accidentally inverted. Fix this by inverting the check. Fixes: bda8eaa6dee7 ("drm: sun4i: hdmi: Remove extra HPD polling") Signed-off-by: Chen-Yu Tsai --- Sorry for the screw-up. ---

Re: [PATCH v16 00/22] per memcg lru_lock

2020-07-10 Thread Alex Shi
Hi Hugh, I believe I own your a 'tested-by' for previous version. Could you like to give a try on the new version and give a reviewed or tested-by if it's fine. Thanks Alex

[PATCH v16 00/22] per memcg lru_lock

2020-07-10 Thread Alex Shi
The new version which bases on v5.8-rc4. Add 2 more patchs: 'mm/thp: remove code path which never got into' 'mm/thp: add tail pages into lru anyway in split_huge_page()' and modified 'mm/mlock: reorder isolation sequence during munlock' Current lru_lock is one for each of node, pgdat->lru_lock,

[PATCH v16 16/22] mm/mlock: reorder isolation sequence during munlock

2020-07-10 Thread Alex Shi
This patch reorder the isolation steps during munlock, move the lru lock to guard each pages, unfold __munlock_isolate_lru_page func, to do the preparation for lru lock change. __split_huge_page_refcount doesn't exist, but we still have to guard PageMlocked and PageLRU for tail page in

[PATCH v16 22/22] mm/lru: revise the comments of lru_lock

2020-07-10 Thread Alex Shi
From: Hugh Dickins Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to fix the incorrect comments in code. Also fixed some zone->lru_lock comment error from ancient time. etc. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey

[PATCH v16 02/22] mm/page_idle: no unlikely double check for idle page counting

2020-07-10 Thread Alex Shi
As func comments mentioned, few isolated page missing be tolerated. So why not do further to drop the unlikely double check. That won't cause more idle pages, but reduce a lock contention. This is also a preparation for later new page isolation feature. Signed-off-by: Alex Shi Cc: Andrew Morton

[PATCH v16 08/22] mm/thp: narrow lru locking

2020-07-10 Thread Alex Shi
lru_lock and page cache xa_lock have no reason with current sequence, put them together isn't necessary. let's narrow the lru locking, but left the local_irq_disable to block interrupt re-entry and statistic update. Hugh Dickins point: split_huge_page_to_list() was already silly,to be using the

[PATCH v16 03/22] mm/compaction: correct the comments of compact_defer_shift

2020-07-10 Thread Alex Shi
There is no compact_defer_limit. It should be compact_defer_shift in use. and add compact_order_failed explanation. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- include/linux/mmzone.h | 1 + mm/compaction.c| 2 +- 2 files

[PATCH v16 01/22] mm/vmscan: remove unnecessary lruvec adding

2020-07-10 Thread Alex Shi
We don't have to add a freeable page into lru and then remove from it. This change saves a couple of actions and makes the moving more clear. The SetPageLRU needs to be kept here for list intergrity. Otherwise: #0 mave_pages_to_lru #1 release_pages

[PATCH v16 04/22] mm/compaction: rename compact_deferred as compact_should_defer

2020-07-10 Thread Alex Shi
The compact_deferred is a defer suggestion check, deferring action does in defer_compaction not here. so, better rename it to avoid confusing. Signed-off-by: Alex Shi Cc: Steven Rostedt Cc: Ingo Molnar Cc: Andrew Morton Cc: Vlastimil Babka Cc: Mike Kravetz Cc: linux-kernel@vger.kernel.org

[PATCH v16 17/22] mm/swap: serialize memcg changes during pagevec_lru_move_fn

2020-07-10 Thread Alex Shi
Hugh Dickins' found a memcg change bug on original version: If we want to change the pgdat->lru_lock to memcg's lruvec lock, we have to serialize mem_cgroup_move_account during pagevec_lru_move_fn. The possible bad scenario would like: cpu 0 cpu 1 lruvec

[PATCH v16 12/22] mm/lru: move lock into lru_note_cost

2020-07-10 Thread Alex Shi
This patch move lru_lock into lru_note_cost. It's a bit ugly and may cost more locking, but it's necessary for later per pgdat lru_lock to per memcg lru_lock change. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org ---

[PATCH v16 14/22] mm/thp: add tail pages into lru anyway in split_huge_page()

2020-07-10 Thread Alex Shi
split_huge_page() must start with PageLRU(head), but lru bit *maybe* cleared by isolate_lru_page, anyway the head still in lru list, since we still held the lru_lock. Signed-off-by: Alex Shi Cc: Kirill A. Shutemov Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc:

[PATCH v16 06/22] mm/thp: clean up lru_add_page_tail

2020-07-10 Thread Alex Shi
Since the first parameter is only used by head page, it's better to make it explicit. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.c | 12 ++-- 1 file

[PATCH v16 09/22] mm/memcg: add debug checking in lock_page_memcg

2020-07-10 Thread Alex Shi
Add a debug checking in lock_page_memcg, then we could get alarm if anything wrong here. Suggested-by: Johannes Weiner Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton Cc: cgro...@vger.kernel.org Cc: linux...@kvack.org Cc:

[PATCH v16 11/22] mm/lru: move lru_lock holding in func lru_note_cost_page

2020-07-10 Thread Alex Shi
It's a clean up patch w/o function changes. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory.c | 3 --- mm/swap.c | 2 ++ mm/swap_state.c | 2 -- mm/workingset.c | 2 -- 4 files changed, 2

[PATCH v16 18/22] mm/lru: replace pgdat lru_lock with lruvec lock

2020-07-10 Thread Alex Shi
This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg charge before lru inserting, page

[PATCH v16 21/22] mm/pgdat: remove pgdat lru_lock

2020-07-10 Thread Alex Shi
Now pgdat.lru_lock was replaced by lruvec lock. It's not used anymore. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Johannes Weiner Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org Cc: cgro...@vger.kernel.org --- include/linux/mmzone.h | 1

[PATCH v16 19/22] mm/lru: introduce the relock_page_lruvec function

2020-07-10 Thread Alex Shi
Use this new function to replace repeated same code, no func change. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: Thomas Gleixner Cc: Andrey Ryabinin Cc: Matthew Wilcox Cc: Mel Gorman Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Tejun Heo Cc:

[PATCH v16 13/22] mm/lru: introduce TestClearPageLRU

2020-07-10 Thread Alex Shi
Combine PageLRU check and ClearPageLRU into a function by new introduced func TestClearPageLRU. This function will be used as page isolation precondition to prevent other isolations some where else. Then there are may non PageLRU page on lru list, need to remove BUG checking accordingly. Hugh

[PATCH v16 07/22] mm/thp: remove code path which never got into

2020-07-10 Thread Alex Shi
split_huge_page() will never call on a page which isn't on lru list, so this code never got a chance to run, and should not be run, to add tail pages on a lru list which head page isn't there. Although the bug was never triggered, it'better be removed for code correctness. BTW, it looks better

[PATCH v16 05/22] mm/thp: move lru_add_page_tail func to huge_memory.c

2020-07-10 Thread Alex Shi
The func is only used in huge_memory.c, defining it in other file with a CONFIG_TRANSPARENT_HUGEPAGE macro restrict just looks weird. Let's move it THP. And make it static as Hugh Dickin suggested. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh

[PATCH v16 10/22] mm/swap: fold vm event PGROTATED into pagevec_move_tail_fn

2020-07-10 Thread Alex Shi
Fold the PGROTATED event collection into pagevec_move_tail_fn call back func like other funcs does in pagevec_lru_move_fn. Now all usage of pagevec_lru_move_fn are same and no needs of the 3rd parameter. It's simply the calling. [l...@intel.com: found a build issue in the original patch, thanks]

[PATCH v16 20/22] mm/vmscan: use relock for move_pages_to_lru

2020-07-10 Thread Alex Shi
From: Hugh Dickins Use the relock function to replace relocking action. And try to save few lock times. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey Ryabinin Cc: Jann Horn Cc: Mel Gorman Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh

[PATCH v16 15/22] mm/compaction: do page isolation first in compaction

2020-07-10 Thread Alex Shi
Johannes Weiner has suggested: "So here is a crazy idea that may be worth exploring: Right now, pgdat->lru_lock protects both PageLRU *and* the lruvec's linked list. Can we make PageLRU atomic and use it to stabilize the lru_lock instead, and then use the lru_lock only serialize list operations?

[GIT PULL] SMB3 Fixes

2020-07-10 Thread Steve French
Please pull the following changes since commit dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258: Linux 5.8-rc4 (2020-07-05 16:20:22 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git tags/5.8-rc4-smb3-fixes for you to fetch changes up to

Re: [PATCH 11/12] device-dax: Add dis-contiguous resource support

2020-07-10 Thread Dan Williams
On Tue, May 12, 2020 at 7:37 AM Joao Martins wrote: > > On 3/23/20 11:55 PM, Dan Williams wrote: > > @@ -561,13 +580,26 @@ static int __alloc_dev_dax_range(struct dev_dax > > *dev_dax, u64 start, > > if (start == U64_MAX) > > return -EINVAL; > > > > + ranges =

[PATCH v2 7/8] drm/msm/dpu: add SM8150 to hw catalog

2020-07-10 Thread Jonathan Marek
This brings up basic video mode functionality for SM8150 DPU. Command mode and dual mixer/intf configurations are not working, future patches will address this. Scaler functionality and multiple planes is also untested. Signed-off-by: Jonathan Marek ---

[PATCH v2 8/8] drm/msm/dpu: add SM8250 to hw catalog

2020-07-10 Thread Jonathan Marek
This brings up basic video mode functionality for SM8250 DPU. Command mode and dual mixer/intf configurations are not working, future patches will address this. Scaler functionality and multiple planes is also untested. Signed-off-by: Jonathan Marek ---

[PATCH v2 6/8] drm/msm/dpu: intf timing path for displayport

2020-07-10 Thread Jonathan Marek
Calculate the correct timings for displayport, from downstream driver. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c

[PATCH v2 2/8] drm/msm/dpu: update UBWC config for sm8150 and sm8250

2020-07-10 Thread Jonathan Marek
Update the UBWC registers to the right values for sm8150 and sm8250. This removes broken dpu_hw_reset_ubwc, which doesn't work because the "force blk offset to zero to access beginning of register region" hack is copied from downstream, where mapped region starts 0x1000 below what is used in the

[PATCH v2 0/8] Initial SM8150 and SM8250 DPU bringup

2020-07-10 Thread Jonathan Marek
These patches bring up SM8150 and SM8250 with basic functionality. Tested with displayport output (single mixer, video mode case). v2: rebased Jonathan Marek (8): drm/msm/dpu: use right setup_blend_config for sm8150 and sm8250 drm/msm/dpu: update UBWC config for sm8150 and sm8250

[PATCH v2 1/8] drm/msm/dpu: use right setup_blend_config for sm8150 and sm8250

2020-07-10 Thread Jonathan Marek
All DPU versions starting from 4.0 use the sdm845 version, so check for that instead of checking each version individually. This chooses the right function for sm8150 and sm8250. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 5 ++--- 1 file changed, 2

[PATCH v2 5/8] drm/msm/dpu: set missing flush bits for INTF_2 and INTF_3

2020-07-10 Thread Jonathan Marek
This fixes flushing of INTF_2 and INTF_3 on SM8150 and SM8250 hardware. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c

[PATCH v2 4/8] drm/msm/dpu: don't use INTF_INPUT_CTRL feature on sdm845

2020-07-10 Thread Jonathan Marek
The INTF_INPUT_CTRL feature is not available on sdm845, so don't set it. This also adds separate feature bits for INTF (based on downstream) instead of using CTL feature bit for it, and removes the unnecessary NULL check in the added bind_pingpong_blk function. Fixes:

[PATCH v2 3/8] drm/msm/dpu: move some sspp caps to dpu_caps

2020-07-10 Thread Jonathan Marek
This isn't something that ever changes between planes, so move it to dpu_caps struct. Making this change will allow more re-use in the "SSPP sub blocks config" part of the catalog, in particular when adding support for SM8150 and SM8250 which have different max_linewidth. This also sets

Re: [PATCH 11/12] device-dax: Add dis-contiguous resource support

2020-07-10 Thread Dan Williams
On Mon, Apr 6, 2020 at 1:22 PM Dan Williams wrote: > > On Mon, Apr 6, 2020 at 3:46 AM Joao Martins wrote: > > > > On 3/23/20 11:55 PM, Dan Williams wrote: > > > > [...] > > > > > static ssize_t dev_dax_resize(struct dax_region *dax_region, > > > struct dev_dax *dev_dax,

Re: [PATCH 11/12] device-dax: Add dis-contiguous resource support

2020-07-10 Thread Dan Williams
On Tue, Mar 24, 2020 at 9:12 AM Joao Martins wrote: > > On 3/23/20 11:55 PM, Dan Williams wrote: > > static ssize_t dev_dax_resize(struct dax_region *dax_region, > > struct dev_dax *dev_dax, resource_size_t size) > > { > > resource_size_t avail =

Re: 5.7 regression: Lots of PCIe AER errors and suspend failure without pcie=noaer

2020-07-10 Thread Robert Hancock
On Fri, Jul 10, 2020 at 6:23 PM Robert Hancock wrote: > > Noticed a problem on my desktop with an Asus PRIME H270-PRO > motherboard after Fedora 32 upgraded to the 5.7 kernel (now on 5.7.8): > periodically there are PCIe AER errors getting spewed in dmesg that > weren't happening before, and this

Re: [PATCH stable v4.9 v2] arm64: entry: Place an SB sequence following an ERET instruction

2020-07-10 Thread Sasha Levin
On Thu, Jul 09, 2020 at 12:50:23PM -0700, Florian Fainelli wrote: From: Will Deacon commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream Some CPUs can speculate past an ERET instruction and potentially perform speculative accesses to memory before processing the exception return. Since

Re: [PATCH 1/2] clk: Export clk_register_composite

2020-07-10 Thread Stephen Boyd
Quoting Wendell Lin (2020-07-01 00:26:21) > clk_register_composite() will be used in mediatek's > clock kernel module, so export it to GPL modules. > > Signed-off-by: Wendell Lin > --- > drivers/clk/clk-composite.c |1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v6 14/17] static_call: Handle tail-calls

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 15:38:45 +0200 Peter Zijlstra wrote: > GCC can turn our static_call(name)(args...) into a tail call, in which > case we get a JMP.d32 into the trampoline (which then does a further > tail-call). > > Teach objtool to recognise and mark these in .static_call_sites and > adjust

Re: [PATCH V1] mmc: sdhci-msm: Set IO pins in low power state during suspend

2020-07-10 Thread Matthias Kaehlcke
Hi, On Fri, Jul 10, 2020 at 04:28:36PM +0530, Veerabhadrarao Badiganti wrote: > Hi Mathias, > > On 7/10/2020 6:22 AM, Matthias Kaehlcke wrote: > > Hi, > > > > On Wed, Jul 08, 2020 at 06:41:20PM +0530, Veerabhadrarao Badiganti wrote: > > > Configure SDHC IO pins with low power configuration when

[GIT PULL] CodingStyle: Inclusive Terminology

2020-07-10 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/djbw/linux tags/inclusive-terminology ...to receive a coding-style update for v5.9. The discussion has tapered off as well as the incoming ack, review, and sign-off tags. I did not see a reason to wait for the next merge

perf: util/syscalltbl.c:43:38: error: ‘SYSCALLTBL_ARM64_MAX_ID’ undeclared here (not in a function)

2020-07-10 Thread Gordan Bobic
I hit this FTBFS earlier today while trying to build the LT 4.19.132 kernel from source: https://lore.kernel.org/patchwork/patch/960281/ The "quick hack" patch mentioned at the bottom of the thread gets it to compile. Is this the correct solution, or is there a better fix? As it stands,

[GIT] Networking

2020-07-10 Thread David Miller
It's been about two weeks since the last batch of fixes, and it shows as we clock in here at 146 non-merge commits: 1) Restore previous behavior of CAP_SYS_ADMIN wrt. loading networking BPF programs, from Maciej Żenczykowski. 2) Fix dropped broadcasts in mac80211 code, from Seevalamuthu

Re: Linux kernel in-tree Rust support

2020-07-10 Thread Linus Torvalds
On Fri, Jul 10, 2020 at 3:59 PM Josh Triplett wrote: > > As I recall, Greg's biggest condition for initial introduction of this > was to do the same kind of "turn this Kconfig option on and turn an > option under it off" trick that LTO uses, so that neither "make > allnoconfig" nor "make

Re: [PATCH v2 2/2] clk: scmi: Fix min and max rate when registering clocks with discrete rates

2020-07-10 Thread Stephen Boyd
Quoting Sudeep Holla (2020-07-09 01:17:05) > Currently we are not initializing the scmi clock with discrete rates > correctly. We fetch the min_rate and max_rate value only for clocks with > ranges and ignore the ones with discrete rates. This will lead to wrong > initialization of rate range when

  1   2   3   4   5   6   7   8   9   10   >