Re: [RFC PATCH 2/4] cpufreq: acpi-cpufreq: Add processor to the ignore PSD override list

2020-12-07 Thread Wei Huang
On 12/7/20 4:30 PM, Borislav Petkov wrote: > On Mon, Dec 07, 2020 at 04:07:52PM -0600, Wei Huang wrote: >> I think we shouldn't override zen2 if _PSD is correct. In my opinion, >> there are two approaches: >> >> * Keep override_acpi_psd() >> Let us keep the original quirk and

Re: [PATCH v2 bpf-next 0/3] bpf: support module BTF in BTF display helpers

2020-12-07 Thread Andrii Nakryiko
On Sat, Dec 5, 2020 at 4:44 PM Alan Maguire wrote: > > > On Sat, 5 Dec 2020, Yonghong Song wrote: > > > > > > > __builtin_btf_type_id() is really only supported in llvm12 > > and 64bit return value support is pushed to llvm12 trunk > > a while back. The builtin is introduced in llvm11 but has a >

[PATCH] f2fs: introduce sb_status sysfs node

2020-12-07 Thread Chao Yu
Introduce /sys/fs/f2fs//stat/sb_status to show superblock status in real time. Signed-off-by: Chao Yu --- Documentation/ABI/testing/sysfs-fs-f2fs | 5 fs/f2fs/sysfs.c | 36 + 2 files changed, 41 insertions(+) diff --git

Re: [PATCH 01/11] mm: use add_page_to_lru_list()

2020-12-07 Thread Alex Shi
Reviewed-by: Alex Shi 在 2020/12/8 上午6:09, Yu Zhao 写道: > There is add_page_to_lru_list(), and move_pages_to_lru() should reuse > it, not duplicate it. > > Signed-off-by: Yu Zhao > --- > mm/vmscan.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/mm/vmscan.c

[tip:x86/cleanups] BUILD SUCCESS 72ebb5ff806f9a421a2a53cdfe6c4ebbab243bd5

2020-12-07 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20201207 i386 randconfig-a004-20201207 i386 randconfig-a001

[PATCH v2] f2fs: compress: deny setting unsupported compress algorithm

2020-12-07 Thread Chao Yu
If kernel doesn't support certain kinds of compress algorithm, deny to set them as compress algorithm of f2fs via 'compress_algorithm=%s' mount option. Signed-off-by: Chao Yu --- v2: - fix wrong message in log. fs/f2fs/super.c | 16 1 file changed, 16 insertions(+) diff --git

Re: [PATCH] bpf: propagate __user annotations properly

2020-12-07 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 7 Dec 2020 13:37:20 +0100 you wrote: > __htab_map_lookup_and_delete_batch() stores a user pointer in the local > variable ubatch and uses that in copy_{from,to}_user(), but ubatch misses a > __user annotation. > >

Re: [f2fs-dev] [PATCH RESEND] f2fs: compress: deny setting unsupported compress algorithm

2020-12-07 Thread Chao Yu
On 2020/12/8 9:09, Chao Yu wrote: On 2020/12/8 2:16, Eric Biggers wrote: On Mon, Dec 07, 2020 at 05:56:09PM +0800, Chao Yu wrote: If kernel doesn't support certain kinds of compress algorithm, deny to set them as compress algorithm of f2fs via 'compress_algorithm=%s' mount option.

Re: [PATCH bpf-next v4 11/11] bpf: Document new atomic instructions

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: Document new atomic instructions. Signed-off-by: Brendan Jackman Ack with minor comments below. Acked-by: Yonghong Song --- Documentation/networking/filter.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH v6] f2fs: compress: add compress_inode to cache compressed blocks

2020-12-07 Thread Chao Yu
Support to use address space of inner inode to cache compressed block, in order to improve cache hit ratio of random read. Signed-off-by: Chao Yu --- v6: - improve document readability. - add "f2fs_" prefix for global functions. Documentation/filesystems/f2fs.rst | 3 + fs/f2fs/compress.c

Re: [PATCH 2/3] mmc: core: make hs400 independent from hs200 init

2020-12-07 Thread Chris Ruehl
On 3/12/2020 5:33 pm, Chris Ruehl wrote: Move mmc_select_hs400() out from hs200 init path and make hs400 independent. The patch makes quite some changes and needs to be reviewed carefully. In function mmc_select_timing() call for mmc_select_hs400(). HS400 requires a host bus with of 8bit,

Re: [PATCH v3 1/2] dt-bindings: hwlock: add sun8i_hwspinlock documentation

2020-12-07 Thread Samuel Holland
On 12/7/20 10:12 AM, Maxime Ripard wrote: > Hi, > > On Mon, Dec 07, 2020 at 05:05:03PM +0100, Wilken Gottwalt wrote: >> Adds documentation on how to use the sun8i_hwspinlock driver for sun8i >> compatible SoCs. >> >> Signed-off-by: Wilken Gottwalt >> --- >>

Re: [PATCH bpf-next v4 10/11] bpf: Add tests for new BPF atomic operations

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: The prog_test that's added depends on Clang/LLVM features added by Yonghong in commit 286daafd6512 (was https://reviews.llvm.org/D72184 ). Note the use of a define called ENABLE_ATOMICS_TESTS: this is used to: - Avoid breaking the build for

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-07 Thread S.j. Wang
Hi > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > Error log: > > > sysfs: cannot create duplicate filename > '/bus/platform/devices/3000.bus' > > > > > > The spba bus name is duplicate with

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-07 Thread Gao Xiang
Hi Chao, On Mon, Dec 07, 2020 at 09:23:44AM +0800, Gao Xiang wrote: > Previously, we played around with magical page->mapping for short-lived > temporary pages since we need to identify different types of pages in > the same pcluster but both invalidated and short-lived temporary pages > can have

[PATCH v4] f2fs: compress: support chksum

2020-12-07 Thread Chao Yu
This patch supports to store chksum value with compressed data, and verify the integrality of compressed data while reading the data. The feature can be enabled through specifying mount option 'compress_chksum'. Signed-off-by: Chao Yu --- v4: - enhance readability - remove WARN_ON_ONCE()

Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

2020-12-07 Thread Steve Rutherford
On Mon, Dec 7, 2020 at 12:42 PM Sean Christopherson wrote: > > On Sun, Dec 06, 2020, Paolo Bonzini wrote: > > On 03/12/20 01:34, Sean Christopherson wrote: > > > On Tue, Dec 01, 2020, Ashish Kalra wrote: > > > > From: Brijesh Singh > > > > > > > > KVM hypercall framework relies on alternative

Re: [PATCH v3 1/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPU binding

2020-12-07 Thread Liu Ying
On Mon, 2020-12-07 at 10:56 -0600, Rob Herring wrote: > On Mon, 07 Dec 2020 11:20:55 +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qxp/qm Display Processing Unit. > > > > Signed-off-by: Liu Ying > > --- > > Note that this depends on the 'two cell binding' clock patch set which has

Re: [PATCH v2 3/3] dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema

2020-12-07 Thread Leizhen (ThunderTown)
On 2020/12/8 7:10, Rob Herring wrote: > On Fri, Dec 04, 2020 at 09:42:36AM +0800, Zhen Lei wrote: >> Convert the Hisilicon reset controller binding to DT schema format using >> json-schema. >> >> Signed-off-by: Zhen Lei >> --- >> .../bindings/reset/hisilicon,hi3660-reset.txt | 44

RE: [PATCH 00/20] ethernet: ucc_geth: assorted fixes and simplifications

2020-12-07 Thread Qiang Zhao
On 06/12/2020 05:12, Rasmus Villemoes wrote: > -Original Message- > From: Rasmus Villemoes > Sent: 2020年12月6日 5:12 > To: Jakub Kicinski > Cc: Leo Li ; David S. Miller ; > Qiang Zhao ; net...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org; >

Fordern Sie noch heute Ihre gespendeten Mittel an.

2020-12-07 Thread Charles Jackson Jr
-- Ihr E-Mail-Konto wurde für eine Spende von $ 3.500.000,00 USD für wohltätige Zwecke ausgewählt. Antworten Sie auf die folgende E-Mail, um weitere Informationen zu erhalten E-Mail: michaelfis...@gmail.com

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-07 Thread Pavel Begunkov
On 08/12/2020 01:37, Al Viro wrote: > On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: >> Handle task works and lock it earlier before it starts killing off >> task's resources like mm. io_uring makes use of it a lot and it'd >> nicer to have all added task_work finding tasks in a

RE: [PATCH 0/2] two UFS changes

2020-12-07 Thread Alim Akhtar
Hi Bean, > -Original Message- > From: Bean Huo > Sent: 08 December 2020 00:32 > To: alim.akh...@samsung.com; avri.alt...@wdc.com; > asuto...@codeaurora.org; j...@linux.ibm.com; > martin.peter...@oracle.com; stanley@mediatek.com; > bean...@micron.com; bvanass...@acm.org;

linux-next: manual merge of the amdgpu tree with the pci tree

2020-12-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/pci/pcie/err.c between commits: 8f1bbfbc3596 ("PCI/ERR: Rename reset_link() to reset_subordinates()") 0791721d8007 ("PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()") 05e9ae19ab83 ("PCI/ERR: Add

Re: [RFC][PATCH] ftrace/selftests: Add binary test to verify ring buffer timestamps

2020-12-07 Thread Steven Rostedt
Masami? -- Steve On Tue, 1 Dec 2020 16:06:56 -0500 Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > A bug was reported about the ftrace ring buffer going backwards: > > Link: https://lore.kernel.org/r/20201124223917.795844-1-elav...@google.com > > In debugging this code, I

Re: [PATCH bpf-next v9 00/34] bpf: switch to memcg-based memory accounting

2020-12-07 Thread Andrii Nakryiko
On Fri, Dec 4, 2020 at 4:37 PM Daniel Borkmann wrote: > > On 12/3/20 4:26 AM, Roman Gushchin wrote: > > On Wed, Dec 02, 2020 at 06:54:46PM -0800, Alexei Starovoitov wrote: > >> On Tue, Dec 1, 2020 at 1:59 PM Roman Gushchin wrote: > >>> > >>> 5) Cryptic -EPERM is returned on exceeding the limit.

[PATCH 1/3] mm: Drop first_index/last_index in zap_details

2020-12-07 Thread Peter Xu
The first_index/last_index parameters in zap_details are actually only used in unmap_mapping_range_tree(). At the meantime, this function is only called by unmap_mapping_pages() once. Instead of passing these two variables through the whole stack of page zapping code, remove them from

Re: [PATCH 6/6] mm/gup: migrate pinned pages out of movable zone

2020-12-07 Thread Daniel Jordan
Jason Gunthorpe writes: > On Fri, Dec 04, 2020 at 03:05:46PM -0500, Daniel Jordan wrote: >> Well Alex can correct me, but I went digging and a comment from the >> first type1 vfio commit says the iommu API didn't promise to unmap >> subpages of previous mappings, so doing page at a time gave

[PATCH 2/3] mm: Introduce zap_details.zap_flags

2020-12-07 Thread Peter Xu
Instead of trying to introduce one variable for every new zap_details fields, let's introduce a flag so that it can start to encode true/false informations. Let's start to use this flag first to clean up the only check_mapping variable. Firstly, the name "check_mapping" implies this is a

[PATCH 3/3] mm: Introduce ZAP_FLAG_SKIP_SWAP

2020-12-07 Thread Peter Xu
Firstly, the comment in zap_pte_range() is misleading because it checks against details rather than check_mappings, so it's against what the code did. Meanwhile, it's confusing too on not explaining why passing in the details pointer would mean to skip all swap entries. New user of zap_details

[PATCH 0/3] mm: Some rework on zap_details

2020-12-07 Thread Peter Xu
Posted this small series out to rework zap_details a bit, before adding something new in. Hopefully it makes things slighly clearer. Smoke test only. Please have a look, thanks. Peter Xu (3): mm: Drop first_index/last_index in zap_details mm: Introduce zap_details.zap_flags mm: Introduce

Re: [PATCH v2 2/2] drivers: gpio: add virtio-gpio guest driver

2020-12-07 Thread Jason Wang
On 2020/12/7 下午5:33, Enrico Weigelt, metux IT consult wrote: On 07.12.20 04:48, Jason Wang wrote: Hi, Not a native speaker but event sounds like something driver read from device. Looking at the below lists, most of them except for VIRTIO_GPIO_EV_HOST_LEVEL looks more like a command. okay,

[PATCH 3/3] userfaultfd/selftests: Hint the test runner on required privilege

2020-12-07 Thread Peter Xu
Now userfaultfd test program requires either root or ptrace privilege due to the signal/event tests. When UFFDIO_API failed, hint the test runner about this fact verbosely. Signed-off-by: Peter Xu --- tools/testing/selftests/vm/userfaultfd.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 0/3] userfaultfd: selftests: Small fixes

2020-12-07 Thread Peter Xu
There're some very trivial fixes that I kept locally to userfaultfd selftest program. Please have a look, thanks. Peter Xu (3): userfaultfd/selftests: Always dump something in modes userfaultfd/selftests: Fix retval check for userfaultfd_open() userfaultfd/selftests: Hint the test runner

[PATCH 2/3] userfaultfd/selftests: Fix retval check for userfaultfd_open()

2020-12-07 Thread Peter Xu
userfaultfd_open() returns 1 for errors rather than negatives. Fix it on all the callers so when UFFDIO_API failed the test will bail out. Signed-off-by: Peter Xu --- tools/testing/selftests/vm/userfaultfd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 1/3] userfaultfd/selftests: Always dump something in modes

2020-12-07 Thread Peter Xu
BOUNCE_POLL is a special bit that if cleared it means "READ" instead. Dump that too otherwise we'll see tests with empty modes. Signed-off-by: Peter Xu --- tools/testing/selftests/vm/userfaultfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/vm/userfaultfd.c

Re: [External] Re: [RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-07 Thread Muchun Song
On Tue, Dec 8, 2020 at 3:46 AM Roman Gushchin wrote: > > On Sun, Dec 06, 2020 at 06:14:48PM +0800, Muchun Song wrote: > > the global and per-node counters are stored in pages, however memcg > > and lruvec counters are stored in bytes. This scheme looks weird. > > So convert all vmstat slab

Re: [External] Re: [RESEND PATCH v2 00/12] Convert all vmstat counters to pages or bytes

2020-12-07 Thread Muchun Song
On Tue, Dec 8, 2020 at 4:33 AM Hugh Dickins wrote: > > On Mon, 7 Dec 2020, Roman Gushchin wrote: > > On Mon, Dec 07, 2020 at 04:02:54PM +0100, Michal Hocko wrote: > > > > > > As I've said the THP accounting change makes more sense to me because it > > > allows future changes which are already

Re: [PATCH v2 0/3] occ: Add support for P10

2020-12-07 Thread Joel Stanley
On Sat, 21 Nov 2020 at 18:55, Guenter Roeck wrote: > > On Fri, Nov 20, 2020 at 11:33:12AM +1030, Joel Stanley wrote: > > Hi Guenter, here's v2 of this series on behalf of Eddie. I made the > > change to the compatible string that we spoke about in v2, and I'm happy > > for these to go through the

Re: [PATCH 00/19] rcu/nocb: De-offload and re-offload support v4

2020-12-07 Thread Boqun Feng
Hi Frederic, On Fri, Nov 13, 2020 at 01:13:15PM +0100, Frederic Weisbecker wrote: > This keeps growing up. Rest assured, most of it is debug code and sanity > checks. > > Boqun Feng found that holding rnp lock while updating the offloaded > state of an rdp isn't needed, and he was right despite

Re: [External] Re: [RESEND PATCH v2 00/12] Convert all vmstat counters to pages or bytes

2020-12-07 Thread Muchun Song
On Mon, Dec 7, 2020 at 11:02 PM Michal Hocko wrote: > > On Mon 07-12-20 22:52:30, Muchun Song wrote: > > On Mon, Dec 7, 2020 at 9:00 PM Michal Hocko wrote: > > > > > > On Sun 06-12-20 18:14:39, Muchun Song wrote: > > > > Hi, > > > > > > > > This patch series is aimed to convert all THP vmstat

[RESEND v3 6/6] arm64: dts: allwinner: a100: Enable cpufreq on a100

2020-12-07 Thread Shuosheng Huang
Enable cpufreq for all CPU cores on a100. Signed-off-by: Shuosheng Huang --- .../allwinner/sun50i-a100-allwinner-perf1.dts| 16 arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git

[RESEND v3 5/6] arm64: dts: allwinner: a100: Add Add CPU Operating Performance Points table

2020-12-07 Thread Shuosheng Huang
Add an Operating Performance Points table for the CPU cores to enable Dynamic Voltage & Frequency Scaling on the A100. Signed-off-by: Shuosheng Huang --- .../allwinner/sun50i-a100-allwinner-perf1.dts | 1 + .../dts/allwinner/sun50i-a100-cpu-opp.dtsi| 90 +++ 2 files

[PATCH v3 4/6] arm64: dts: allwinner: a100: Add CPU speed grade efuse cell

2020-12-07 Thread Shuosheng Huang
Add CPU speed grade efuse cell for a100. Signed-off-by: Shuosheng Huang --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi index

Re: [PATCH v2 2/2] drivers: gpio: add virtio-gpio guest driver

2020-12-07 Thread Jason Wang
On 2020/12/7 下午9:53, Michael S. Tsirkin wrote: On Mon, Dec 07, 2020 at 11:12:50AM +0800, Jason Wang wrote: On 2020/12/6 上午3:32, Michael S. Tsirkin wrote: On Sat, Dec 05, 2020 at 08:59:55AM +0100, Enrico Weigelt, metux IT consult wrote: On 04.12.20 04:35, Jason Wang wrote: ---

[PATCH v3 1/6] cpufreq: sun50i: add efuse_xlate to get efuse version.

2020-12-07 Thread Shuosheng Huang
It's better to use efuse_xlate to extract the differentiated part regarding different SoC. Signed-off-by: Shuosheng Huang --- drivers/cpufreq/sun50i-cpufreq-nvmem.c | 72 +- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git

[PATCH v3 3/6] arm64: dts: allwinner: a100: Add clocks to CPU cores

2020-12-07 Thread Shuosheng Huang
Add clocks to CPU cores for a100. Signed-off-by: Shuosheng Huang --- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi index

[PATCH v3 2/6] cpufreq: sun50i: add a100 cpufreq support

2020-12-07 Thread Shuosheng Huang
Add cpufreq nvmem based for allwinner a100 SoC, it's similar to h6. Signed-off-by: Shuosheng Huang --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/sun50i-cpufreq-nvmem.c | 32 ++ 2 files changed, 33 insertions(+) diff --git

Re: [PATCH] mm,memory_failure: Always pin the page in madvise_inject_error

2020-12-07 Thread 堀口 直也
On Mon, Dec 07, 2020 at 10:48:18AM +0100, Oscar Salvador wrote: > madvise_inject_error() uses get_user_pages_fast to translate the > address we specified to a page. > After [1], we drop the extra reference count for memory_failure() path. > That commit says that memory_failure wanted to keep the

Re: [PATCH] docs/zh_CN: Improve Cinese transolation quality.

2020-12-07 Thread Alex Shi
在 2020/12/7 下午9:05, Ran Wang 写道: >>> +:ref:`cn_development_followthrough` 介绍了提交补丁之后发生的事情;至此工作实际 >> is it bybond 80 chars? > On my part this line is aligned with context (on vim), and pass checkpatch.pl > check, En, right, maybe a line alignment? but it depends on different editors. it's

Re: [PATCH] mm,memory_failure: Always pin the page in madvise_inject_error

2020-12-07 Thread 堀口 直也
On Mon, Dec 07, 2020 at 06:22:00PM -0800, Andrew Morton wrote: > On Mon, 7 Dec 2020 10:48:18 +0100 Oscar Salvador wrote: > > > madvise_inject_error() uses get_user_pages_fast to translate the > > address we specified to a page. > > After [1], we drop the extra reference count for

Re: [PATCH 6/6] mm/gup: migrate pinned pages out of movable zone

2020-12-07 Thread Daniel Jordan
Pavel Tatashin writes: > On Fri, Dec 4, 2020 at 3:06 PM Daniel Jordan > wrote: >> >> Jason Gunthorpe writes: >> >> > On Wed, Dec 02, 2020 at 08:34:32PM -0500, Pavel Tatashin wrote: >> >> What I meant is the users of the interface do it incrementally not in >> >> large chunks. For example: >>

Re: [External] Re: [RESEND PATCH v2 00/12] Convert all vmstat counters to pages or bytes

2020-12-07 Thread Muchun Song
On Tue, Dec 8, 2020 at 2:51 AM Randy Dunlap wrote: > > On 12/7/20 7:02 AM, Michal Hocko wrote: > > On Mon 07-12-20 22:52:30, Muchun Song wrote: > >> On Mon, Dec 7, 2020 at 9:00 PM Michal Hocko wrote: > >>> > >>> On Sun 06-12-20 18:14:39, Muchun Song wrote: > Hi, > > This patch

linux-next: manual merge of the drm tree with the pci tree

2020-12-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/vga/vga_switcheroo.c between commit: 99efde6c9bb7 ("PCI/PM: Rename pci_wakeup_bus() to pci_resume_bus()") from the pci tree and commit: 9572e6693cd7 ("vga_switcheroo: simplify the return expression of

Re: [External] Re: [PATCH v7 00/15] Free some vmemmap pages of hugetlb page

2020-12-07 Thread Muchun Song
On Tue, Dec 8, 2020 at 2:38 AM Oscar Salvador wrote: > > On Fri, Dec 04, 2020 at 11:39:31AM +0800, Muchun Song wrote: > > On Fri, Dec 4, 2020 at 7:49 AM Mike Kravetz wrote: > > > As previously mentioned, I feel qualified to review the hugetlb changes > > > and some other closely related changes.

Re: [PATCH] mm,memory_failure: Always pin the page in madvise_inject_error

2020-12-07 Thread Andrew Morton
On Mon, 7 Dec 2020 10:48:18 +0100 Oscar Salvador wrote: > madvise_inject_error() uses get_user_pages_fast to translate the > address we specified to a page. > After [1], we drop the extra reference count for memory_failure() path. > That commit says that memory_failure wanted to keep the pin in

RE: [PATCH v3] exfat: Avoid allocating upcase table using kcalloc()

2020-12-07 Thread Sungjong Seo
> The table for Unicode upcase conversion requires an order-5 allocation, > which may fail on a highly-fragmented system: > > pool-udisksd: page allocation failure: order:5, > mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), > nodemask=(null),cpuset=/,mems_allowed=0 > CPU: 4 PID: 3756880 Comm:

Re: [PATCH net-next] bonding: set xfrm feature flags more sanely

2020-12-07 Thread Jakub Kicinski
On Sat, 5 Dec 2020 12:40:03 -0500 Jarod Wilson wrote: > We can remove one of the ifdef blocks here, and instead of setting both > the xfrm hw_features and features flags, then unsetting the the features > flags if not in AB, wait to set the features flags if we're actually in AB > mode. > > Cc:

Re: [PATCH 2/2] ARM: dts: aspeed: Add LCLK to lpc-snoop

2020-12-07 Thread Joel Stanley
On Wed, 2 Dec 2020 at 05:16, John Wang wrote: > Can you add a note here about why we are adding these so it's clear is a fix/enhancement? Also add a Fixes line for both patches. > Signed-off-by: John Wang Reviewed-by: Joel Stanley > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 1 + >

Re: [PATCH bpf-next v3 12/14] bpf: Pull tools/build/feature biz into selftests Makefile

2020-12-07 Thread Andrii Nakryiko
On Mon, Dec 7, 2020 at 3:00 AM Brendan Jackman wrote: > > On Fri, Dec 04, 2020 at 11:00:24AM -0800, Andrii Nakryiko wrote: > > On Fri, Dec 4, 2020 at 1:41 AM Brendan Jackman wrote: > > > > > > On Thu, Dec 03, 2020 at 01:01:27PM -0800, Andrii Nakryiko wrote: > > > > On Thu, Dec 3, 2020 at 8:07 AM

Re: [PATCH 1/2] misc: Add clock control logic into Aspeed LPC SNOOP driver

2020-12-07 Thread Joel Stanley
On Wed, 2 Dec 2020 at 05:16, John Wang wrote: > > From: Jae Hyun Yoo > > If LPC SNOOP driver is registered ahead of lpc-ctrl module, LPC > SNOOP block will be enabled without heart beating of LCLK until > lpc-ctrl enables the LCLK. This issue causes improper handling on > host interrupts when

Re: [PATCH net v1 2/2] net: dsa: microchip: improve port count comments

2020-12-07 Thread Jakub Kicinski
On Tue, 8 Dec 2020 00:31:16 +0100 Andrew Lunn wrote: > On Sat, Dec 05, 2020 at 10:28:14AM -0500, Sven Van Asbroeck wrote: > > From: Sven Van Asbroeck > > > > Port counts in microchip dsa drivers can be quite confusing: > > on the ksz8795, ksz_chip_data->port_cnt excludes the cpu port, > > yet on

Re: [PATCH v2 1/3] reset: hisilicon: correct vendor prefix

2020-12-07 Thread Leizhen (ThunderTown)
On 2020/12/8 7:08, Rob Herring wrote: > On Fri, Dec 04, 2020 at 09:42:34AM +0800, Zhen Lei wrote: >> The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly >> stated in "vendor-prefixes.yaml". > > Yes, but you can't fix this as changing it breaks compability between > DTBs and

linux-next: build failure after merge of the nand tree

2020-12-07 Thread Stephen Rothwell
613b6e4e3baa ("mtd: rawnand: Add NAND controller support on Intel LGM SoC") I have used the nand tree from next-20201207 for today. -- Cheers, Stephen Rothwell pgpD5y7OT7Wx9.pgp Description: OpenPGP digital signature

[PATCH v6 7/7] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller

2020-12-07 Thread Jonathan Neuschäfer
Enable the Netronix EC on the Kobo Aura ebook reader. Several features are still missing: - Frontlight/backlight. The vendor kernel drives the frontlight LED using the PWM output of the EC and an additional boost pin that increases the brightness. - Battery monitoring - Interrupts for

[PATCH v6 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2020-12-07 Thread Jonathan Neuschäfer
The Netronix EC provides a PWM output which is used for the backlight on some ebook readers. This patches adds a driver for the PWM output. The .get_state callback is not implemented, because the PWM state can't be read back from the hardware. Signed-off-by: Jonathan Neuschäfer --- v6: - Move

[PATCH v6 6/7] MAINTAINERS: Add entry for Netronix embedded controller

2020-12-07 Thread Jonathan Neuschäfer
Let's make sure I'll notice when there are patches for the NTXEC drivers. Signed-off-by: Jonathan Neuschäfer --- v4-v6: - no changes v3: - https://lore.kernel.org/lkml/20200924192455.2484005-7-j.neuschae...@gmx.net/ - Remove pwm and rtc bindings v2: -

[PATCH v6 5/7] rtc: New driver for RTC in Netronix embedded controller

2020-12-07 Thread Jonathan Neuschäfer
With this driver, mainline Linux can keep its time and date in sync with the vendor kernel. Advanced functionality like alarm and automatic power-on is not yet supported. Signed-off-by: Jonathan Neuschäfer Acked-by: Alexandre Belloni --- v6: - no changes v5: - Add Alexandre Belloni's A-b -

Re: [PATCH] arch: fix 'unexpected IRQ trap at vector' warnings

2020-12-07 Thread Michael Ellerman
"Enrico Weigelt, metux IT consult" writes: > All archs, except Alpha, print out the irq number in hex, but the message > looks like it was a decimal number, which is quite confusing. Fixing this > by adding "0x" prefix. Arguably decimal would be better, /proc/interrupts and /proc/irq/ both use

Re: [PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-07 Thread Andrew Lunn
On Mon, Dec 07, 2020 at 08:43:32PM +0100, Jean Pihet wrote: > Hi Andrew, > > On Tue, Dec 1, 2020 at 9:45 PM Andrew Lunn wrote: > > > > > Configure the host port of the switch to match the host interface > > > settings. This is useful when the switch is directly connected to the > > > host MAC

[PATCH] fs: Kill DCACHE_DONTCACHE dentry even if DCACHE_REFERENCED is set

2020-12-07 Thread Hao Li
If DCACHE_REFERENCED is set, fast_dput() will return true, and then retain_dentry() have no chance to check DCACHE_DONTCACHE. As a result, the dentry won't be killed and the corresponding inode can't be evicted. In the following example, the DAX policy can't take effects unless we do a drop_caches

[PATCH] fs: Handle I_DONTCACHE in iput_final() instead of generic_drop_inode()

2020-12-07 Thread Hao Li
If generic_drop_inode() returns true, it means iput_final() can evict this inode regardless of whether it is dirty or not. If we check I_DONTCACHE in generic_drop_inode(), any inode with this bit set will be evicted unconditionally. This is not the desired behavior because I_DONTCACHE only means

Re: [RFC PATCH 0/4] Reduce worst-case scanning of runqueues in select_idle_sibling

2020-12-07 Thread Li, Aubrey
On 2020/12/7 23:42, Mel Gorman wrote: > On Mon, Dec 07, 2020 at 04:04:41PM +0100, Vincent Guittot wrote: >> On Mon, 7 Dec 2020 at 10:15, Mel Gorman wrote: >>> >>> This is a minimal series to reduce the amount of runqueue scanning in >>> select_idle_sibling in the worst case. >>> >>> Patch 1

Re: [PATCH] net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux

2020-12-07 Thread Jakub Kicinski
On Mon, 07 Dec 2020 10:31:46 +0100 Jerome Brunet wrote: > > The m250_sel mux clock uses bit 4 in the PRG_ETH0 register. Fix this by > > shifting the PRG_ETH0_CLK_M250_SEL_MASK accordingly as the "mask" in > > struct clk_mux expects the mask relative to the "shift" field in the > > same struct. > >

Re: [PATCH v3 07/11] dt-bindings: phy: convert MIP DSI PHY binding to YAML schema

2020-12-07 Thread Chunfeng Yun
On Mon, 2020-12-07 at 15:19 -0600, Rob Herring wrote: > On Wed, Nov 18, 2020 at 04:21:22PM +0800, Chunfeng Yun wrote: > > Convert MIPI DSI PHY binding to YAML schema mediatek,dsi-phy.yaml > > > > Cc: Chun-Kuang Hu > > Signed-off-by: Chunfeng Yun > > --- > > v3: new patch > > --- > >

Re: [PATCH] arm64: enable GENERIC_FIND_FIRST_BIT

2020-12-07 Thread Yury Norov
(CC: Alexey Klimov) On Mon, Dec 7, 2020 at 3:25 AM Will Deacon wrote: > > On Sat, Dec 05, 2020 at 08:54:06AM -0800, Yury Norov wrote: > > ARM64 doesn't implement find_first_{zero}_bit in arch code and doesn't > > enable it in config. It leads to using find_next_bit() which is less > > efficient:

Re: [PATCH] scsi: qla4xxx: remove redundant assignment to variable rval

2020-12-07 Thread Martin K. Petersen
Colin, > The variable rval is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v2] mtd: spi-nor: macronix: enable 4-bit BP support for MX25L6405D

2020-12-07 Thread Sieng Piaw Liew
Enable 4-bit Block Protect support for MX256405D and its variants using the same ID. Tested on Innacom W3400V6 router with MX25L6406E chip. https://github.com/openwrt/openwrt/pull/3501 Signed-off-by: Sieng Piaw Liew --- Changes in v2: - Add SPI_NOR_HAS_LOCK which SPI_NOR_4BIT_BP required.

Re: [PATCH] dpaa2-mac: Add a missing of_node_put after of_device_is_available

2020-12-07 Thread Jakub Kicinski
On Mon, 7 Dec 2020 15:04:58 + Ioana Ciornei wrote: > On Sun, Dec 06, 2020 at 04:13:39PM +0100, Christophe JAILLET wrote: > > Add an 'of_node_put()' call when a tested device node is not available. > > > > Fixes:94ae899b2096 ("dpaa2-mac: add PCS support through the Lynx module") > >

Re: [PATCH] powerpc/mm: Fix KUAP warning by providing copy_from_kernel_nofault_allowed()

2020-12-07 Thread Michael Ellerman
Christophe Leroy writes: > Le 07/12/2020 à 01:24, Michael Ellerman a écrit : >> Christophe Leroy writes: >>> Since commit c33165253492 ("powerpc: use non-set_fs based maccess >>> routines"), userspace access is not granted anymore when using >>> copy_from_kernel_nofault() >>> >>> However,

[RFC PATCH v6] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-12-07 Thread Aubrey Li
Add idle cpumask to track idle cpus in sched domain. Every time a CPU enters idle, the CPU is set in idle cpumask to be a wakeup target. And if the CPU is not in idle, the CPU is cleared in idle cpumask during scheduler tick to ratelimit idle cpumask update. When a task wakes up to select an idle

[PATCH] remoteproc: qcom: Fix potential NULL dereference in adsp_init_mmio()

2020-12-07 Thread Zhang Changzhong
platform_get_resource() may fail and in this case a NULL dereference will occur. Fix it to use devm_platform_ioremap_resource() instead of calling platform_get_resource() and devm_ioremap(). This is detected by Coccinelle semantic patch. @@ expression pdev, res, n, t, e, e1, e2; @@ res =

[PATCH] slimbus: qcom: fix potential NULL dereference in qcom_slim_prg_slew()

2020-12-07 Thread Zhang Changzhong
platform_get_resource_byname() may fail and in this case a NULL dereference will occur. Fix it to use devm_platform_ioremap_resource_byname() instead of calling platform_get_resource_byname() and devm_ioremap(). This is detected by Coccinelle semantic patch. @@ expression pdev, res, n, t, e,

[PATCH net] net: ll_temac: Fix potential NULL dereference in temac_probe()

2020-12-07 Thread Zhang Changzhong
platform_get_resource() may fail and in this case a NULL dereference will occur. Fix it to use devm_platform_ioremap_resource() instead of calling platform_get_resource() and devm_ioremap(). This is detected by Coccinelle semantic patch. @@ expression pdev, res, n, t, e, e1, e2; @@ res =

Re: [PATCH][next] drm/mediatek: avoid dereferencing a null hdmi_phy on an error message

2020-12-07 Thread Chunfeng Yun
On Mon, 2020-12-07 at 15:09 +, Colin King wrote: > From: Colin Ian King > > Currently there is a null pointer check for hdmi_phy that implies it > may be null, however a dev_err messages dereferences this potential null > pointer. Avoid a null pointer dereference by only emitting the

Re: [PATCH bpf-next v4 09/11] bpf: Add bitwise atomic instructions

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: This adds instructions for atomic[64]_[fetch_]and atomic[64]_[fetch_]or atomic[64]_[fetch_]xor All these operations are isomorphic enough to implement with the same verifier, interpreter, and x86 JIT code, hence being a single commit. The main

Re: [PATCH bpf-next v4 07/11] bpf: Add instructions for atomic_[cmp]xchg

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: This adds two atomic opcodes, both of which include the BPF_FETCH flag. XCHG without the BPF_FETCH flag would naturally encode atomic_set. This is not supported because it would be of limited value to userspace (it doesn't imply any barriers).

Re: [PATCH bpf-next v4 06/11] bpf: Add BPF_FETCH field / create atomic_fetch_add instruction

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: The BPF_FETCH field can be set in bpf_insn.imm, for BPF_ATOMIC instructions, in order to have the previous value of the atomically-modified memory location loaded into the src register after an atomic op is carried out. Suggested-by: Yonghong Song

Re: [PATCH V2 0/3] blk-mq/nvme-loop: use nvme-loop's lock class for addressing lockdep false positive warning

2020-12-07 Thread Ming Lei
On Thu, Dec 03, 2020 at 09:26:35AM +0800, Ming Lei wrote: > Hi, > > Qian reported there is hang during booting when shared host tagset is > introduced on megaraid sas. Sumit reported the whole SCSI probe takes > about ~45min in his test. > > Turns out it is caused by nr_hw_queues increased,

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-07 Thread Al Viro
On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: > Handle task works and lock it earlier before it starts killing off > task's resources like mm. io_uring makes use of it a lot and it'd > nicer to have all added task_work finding tasks in a consistent state. > > Signed-off-by:

Re: [PATCH v2 2/2] perf-stat: enable counting events for BPF programs

2020-12-07 Thread Song Liu
> On Dec 7, 2020, at 2:07 PM, Jiri Olsa wrote: > > On Thu, Dec 03, 2020 at 10:13:10PM -0800, Song Liu wrote: > > SNIP > >> +#include "bpf_skel/bpf_prog_profiler.skel.h" >> + >> +static inline void *u64_to_ptr(__u64 ptr) >> +{ >> +return (void *)(unsigned long)ptr; >> +} >> + >> +static

Re: [PATCH bpf-next v4 05/11] bpf: Move BPF_STX reserved field check into BPF_STX verifier code

2020-12-07 Thread Yonghong Song
On 12/7/20 8:07 AM, Brendan Jackman wrote: I can't find a reason why this code is in resolve_pseudo_ldimm64; since I'll be modifying it in a subsequent commit, tidy it up. Signed-off-by: Brendan Jackman Acked-by: Yonghong Song

Re: [PATCH v2] scsi: qla2xxx: remove trailing semicolon in macro definition

2020-12-07 Thread Martin K. Petersen
Tom, > The macro use will already have a semicolon. Remove unneeded escaped > newline. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v14 09/10] arch, mm: wire up memfd_secret system call were relevant

2020-12-07 Thread Andrew Morton
On Mon, 7 Dec 2020 18:00:06 +0200 Mike Rapoport wrote: > > > > I can't see where was it defined for arm64 after it looks like Andrew has > > deleted the above chunk. Thus, we have a warning using this .config: > > > > https://cailca.coding.net/public/linux/mm/git/files/master/arm64.config > >

Re: [PATCH] scsi: fnic: fix error return code in fnic_probe()

2020-12-07 Thread Martin K. Petersen
Zhang, > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [f2fs-dev] [PATCH v3] f2fs: compress: support chksum

2020-12-07 Thread Chao Yu
On 2020/12/8 9:26, Jaegeuk Kim wrote: On 12/08, Chao Yu wrote: On 2020/12/8 4:37, Eric Biggers wrote: On Thu, Nov 26, 2020 at 06:32:09PM +0800, Chao Yu wrote: + if (!ret && fi->i_compress_flag & 1 << COMPRESS_CHKSUM) { This really could use some parentheses. People shouldn't have to

Re: [PATCH] ufshcd: fix Wsometimes-uninitialized warning

2020-12-07 Thread Martin K. Petersen
Arnd, > clang complains about a possible code path in which a variable is > used without an initialization: > > drivers/scsi/ufs/ufshcd.c:7690:3: error: variable 'sdp' is used uninitialized > whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > BUG_ON(1); >

I am Vice Chairman of Hang Seng Bank, I have Important Matter to Discuss with you concerning my late client. Died without a NEXT OF KIN. Send me your private email for full details inf

2020-12-07 Thread Dr Raymond Chien Hang Seng
E-Mail: dr2987...@gmail.com

Re: [PATCH v3] scsi: NCR5380: Remove context check

2020-12-07 Thread Martin K. Petersen
Ahmed, > NCR5380_poll_politely2() uses in_interrupt() and irqs_disabled() to > check if it is safe to sleep. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-12-07 Thread Nicolin Chen
On Sun, Dec 06, 2020 at 06:41:59PM +0800, Shengjiu Wang wrote: > The driver is initially designed for sound card using HDMI > interface on i.MX platform. There is internal HDMI IP or > external HDMI modules connect with SAI or AUD2HTX interface. > It supports both transmitter and receiver devices.

<    1   2   3   4   5   6   7   8   9   10   >