Re: [PATCH] xtensa: move CONFIG_CPU_*_ENDIAN defines to Kconfig

2021-03-13 Thread Masahiro Yamada
On Sat, Mar 13, 2021 at 5:57 PM Max Filippov wrote: > > On Fri, Mar 12, 2021 at 7:14 AM Masahiro Yamada wrote: > > > > Move the definition of CONFIG_CPU_*_ENDIAN to Kconfig, the best place > > for CONFIG options. > > > > I slightly simplified the test code. You can use the -P option to suppress

[PATCH] umh: fix some spelling mistakes

2021-03-13 Thread zhouchuangao
Fix some spelling mistakes, and modify the order of the parameter comments to be consistent with the order of the parameters passed to the function. Signed-off-by: zhouchuangao --- kernel/umh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/umh.c b/kernel/umh.c

Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S

2021-03-13 Thread Robin Murphy
On 2021-03-13 03:25, Tianling Shen wrote: This adds support for the NanoPi R4S from FriendlyArm. Rockchip RK3399 SoC 1GB DDR3 or 4GB LPDDR4 RAM Gigabit Ethernet (WAN) Gigabit Ethernet (PCIe) (LAN) USB 3.0 Port x 2 MicroSD slot Reset button WAN - LAN - SYS LED [initial DTS file]

[GIT PULL] Kbuild fixes for v5.12-rc3

2021-03-13 Thread Masahiro Yamada
Hi Linus, Please pull Kbuild fixes. Thanks. The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git

[PATCH v2 net-next 6/6] skbuff: micro-optimize {,__}skb_header_pointer()

2021-03-13 Thread Alexander Lobakin
{,__}skb_header_pointer() helpers exist mainly for preventing accesses-beyond-end of the linear data. In the vast majorify of cases, they bail out on the first condition. All code going after is mostly a fallback. Mark the most common branch as 'likely' one to move it in-line. Also,

[PATCH v2 net-next 5/6] ethernet: constify eth_get_headlen()'s @data argument

2021-03-13 Thread Alexander Lobakin
It's used only for flow dissection, which now takes constant data pointers. Signed-off-by: Alexander Lobakin --- include/linux/etherdevice.h | 2 +- net/ethernet/eth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/etherdevice.h

[PATCH v2 net-next 4/6] linux/etherdevice.h: misc trailing whitespace cleanup

2021-03-13 Thread Alexander Lobakin
Caught by the text editor. Fix it separately from the actual changes. Signed-off-by: Alexander Lobakin --- include/linux/etherdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 2e5debc0373c..bcb2f81baafb

[PATCH v2 net-next 2/6] skbuff: make __skb_header_pointer()'s data argument const

2021-03-13 Thread Alexander Lobakin
The function never modifies the input buffer, so @data argument can be marked as const. This implies one harmless cast-away. Signed-off-by: Alexander Lobakin --- include/linux/skbuff.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/skbuff.h

[PATCH v2 net-next 3/6] flow_dissector: constify raw input @data argument

2021-03-13 Thread Alexander Lobakin
Flow Dissector code never modifies the input buffer, neither skb nor raw data. Make @data argument const for all of the Flow dissector's functions. Signed-off-by: Alexander Lobakin --- include/linux/skbuff.h | 15 ++--- include/net/flow_dissector.h | 2 +-

[PATCH v2 net-next 1/6] flow_dissector: constify bpf_flow_dissector's data pointers

2021-03-13 Thread Alexander Lobakin
BPF Flow dissection programs are read-only and don't touch input buffers. Mark @data and @data_end in struct bpf_flow_dissector as const in preparation for global input constifying. Signed-off-by: Alexander Lobakin --- include/net/flow_dissector.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 net-next 0/6] skbuff: micro-optimize flow dissection

2021-03-13 Thread Alexander Lobakin
This little number makes all of the flow dissection functions take raw input data pointer as const (1-5) and shuffles the branches in __skb_header_pointer() according to their hit probability. The result is +20 Mbps per flow/core with one Flow Dissector pass per packet. This affects RPS (with

[PATCH v1 3/4] ALSA: hda/cirrus: Fix CS42L42 Headset Mic volume control name

2021-03-13 Thread Vitaly Rodionov
From: Stefan Binding Existing name "Headset Mic Volume Control" causes multiple Microphone entries to appear in UI. Using name "Mic Volume Control" ensures only a single Microphone entry exists when the Headset is connected. Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500

[PATCH v1 0/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups

2021-03-13 Thread Vitaly Rodionov
This series of patches will address comments by Pierre-Louis Bossart, cleans up patch_cirrus.c source, reducing checkpatch.pl warnings from 19 to 0, fixing an issue reported by Canonical: BugLink: https://bugs.launchpad.net/bugs/1918378, and makes the CS8409 patch more generic by using fixups.

[PATCH v1 2/4] ALSA: hda/cirrus: Cleanup patch_cirrus.c code.

2021-03-13 Thread Vitaly Rodionov
From: Stefan Binding Minor changes, clean up code, remove unnecessary initialization of variables, reduced number of warnings from ./scripts/checkpatch.pl from 19 to 0 Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly

[PATCH v1 1/4] ALSA: hda/cirrus: Add error handling into CS8409 I2C functions

2021-03-13 Thread Vitaly Rodionov
From: Stefan Binding Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov Changes in v1: - No changes --- sound/pci/hda/patch_cirrus.c | 95 +--- 1 file changed, 56 insertions(+),

[PATCH v1 4/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups.

2021-03-13 Thread Vitaly Rodionov
From: Stefan Binding CS8409/CS42L42 Driver currently does most of the platform specific setup inside the main body of the code, however, this setup can be moved into fixup functions, to make the driver more generic. Making the driver more generic, allows the driver to use the

Re: [PATCH v3] mfd: ntxec: Support for EC in Tolino Shine 2 HD

2021-03-13 Thread Jonathan Neuschäfer
On Sat, Mar 13, 2021 at 11:42:58AM +0100, Andreas Kemnade wrote: > Add the version of the EC in the Tolino Shine 2 HD > to the supported versions. It seems not to have an RTC > and does not ack data written to it. > The vendor kernel happily ignores write errors, using > I2C via userspace i2c-set

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-13 Thread Borislav Petkov
On Sat, Mar 13, 2021 at 09:49:23AM +0100, Borislav Petkov wrote: > Lemme rerun here with clang. clang11 is almost twice as slow as gcc but difference is still negligible: ~0.6 seconds. ./tools/perf/perf stat --repeat 5 --sync --pre=/root/bin/pre-build-kernel.sh -- make -s -j9 LLVM=1 LLVM_IAS=1

[PATCH] lightnvm: remove duplicate include in lightnvm.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/ioctl.h' included in 'lightnvm.h' is duplicated. It is also included in the 33th line. Signed-off-by: Zhang Yunkai --- include/uapi/linux/lightnvm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/uapi/linux/lightnvm.h b/include/uapi/linux/lightnvm.h index

[patch V3 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-13 Thread Thomas Gleixner
From: Thomas Gleixner Subject: signal: Allow tasks to cache one sigqueue struct Date: Wed, 03 Mar 2021 15:20:25 +0100 From: Thomas Gleixner The idea for this originates from the real time tree to make signal delivery for realtime applications more efficient. In quite some of these application

Re: [PATCH v2] mfd: ntxec: Support for EC in Tolino Shine 2 HD

2021-03-13 Thread Jonathan Neuschäfer
On Wed, Mar 10, 2021 at 09:55:45AM +, Lee Jones wrote: > On Mon, 08 Mar 2021, Andreas Kemnade wrote: [...] > > -static const struct mfd_cell ntxec_subdevices[] = { > > +static const struct mfd_cell ntxec_subdev[] = { > > { .name = "ntxec-rtc" }, > > { .name = "ntxec-pwm" }, > > }; > >

[PATCH] signal: remove duplicate include in signal.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/string.h' included in 'signal.h' is duplicated. It is also included in the 7th line. Signed-off-by: Zhang Yunkai --- include/linux/signal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/signal.h b/include/linux/signal.h index

[PATCH] mtd:rawnand: remove duplicate include in rawnand.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/mtd/nand.h' included in 'rawnand.h' is duplicated. It is also included in the 17th line. Signed-off-by: Zhang Yunkai --- include/linux/mtd/rawnand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index

Re: [PATCH] kswapd: no need reclaim cma pages triggered by unmovable allocation

2021-03-13 Thread kernel test robot
suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/zhou/kswapd-no-need-reclaim-cma-pages-triggered-by-unmovable-allocation/20210313-163541 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git

[PATCH] lightnvm: remove duplicate include in lightnvm.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/blkdev.h' and 'uapi/linux/lightnvm.h' included in 'lightnvm.h' is duplicated.It is also included in the 5th and 7th line. Signed-off-by: Zhang Yunkai --- include/linux/lightnvm.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/lightnvm.h

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-13 Thread Jarkko Sakkinen
On Fri, Mar 12, 2021 at 01:21:54PM -0800, Sean Christopherson wrote: > On Thu, Mar 11, 2021, Kai Huang wrote: > > From: Jarkko Sakkinen > > > > EREMOVE takes a page and removes any association between that page and > > an enclave. It must be run on a page before it can be added into > > another

Re: [PATCH v9 0/4] Introduce TEE based Trusted Keys support

2021-03-13 Thread Jarkko Sakkinen
On Fri, Mar 12, 2021 at 08:30:36AM -0800, James Bottomley wrote: > On Fri, 2021-03-12 at 18:26 +0200, Jarkko Sakkinen wrote: > > On Wed, Mar 10, 2021 at 02:26:27PM -0800, James Bottomley wrote: > > > On Wed, 2021-03-10 at 21:56 +0200, Jarkko Sakkinen wrote: > > > [...] > > > > I also need to apply

[PATCH v3] mfd: ntxec: Support for EC in Tolino Shine 2 HD

2021-03-13 Thread Andreas Kemnade
Add the version of the EC in the Tolino Shine 2 HD to the supported versions. It seems not to have an RTC and does not ack data written to it. The vendor kernel happily ignores write errors, using I2C via userspace i2c-set also shows the error. So add a quirk to ignore that error. PWM can be

[PATCH] ia64: fix format strings for err_inject

2021-03-13 Thread Sergei Trofimovich
Fix warning with %lx / u64 mismatch: arch/ia64/kernel/err_inject.c: In function 'show_resources': arch/ia64/kernel/err_inject.c:62:22: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u64' {aka 'long long unsigned int'} 62 | return

[PATCH] ia64: fix format string for ia64-acpi-cpu-freq

2021-03-13 Thread Sergei Trofimovich
Fix warning with %lx / s64 mismatch: CC [M] drivers/cpufreq/ia64-acpi-cpufreq.o drivers/cpufreq/ia64-acpi-cpufreq.c: In function 'processor_get_pstate': warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 's64' {aka 'long long int'}

Re: [PATCH] mm/huge_memory.c: use helper function migration_entry_to_page()

2021-03-13 Thread Miaohe Lin
Hi: On 2021/3/13 18:32, Miaohe Lin wrote: > It's more recommended to use helper function migration_entry_to_page() to > get the page via migration entry. We can also enjoy the PageLocked() > check there. > > Signed-off-by: Miaohe Lin My bad! I have send this patch inside another patch series.

[PATCH] crash_dump: remove duplicate include in crash_dump.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/pgtable.h' included in 'crash_dump.h' is duplicated. It is also included in the 8th line. Signed-off-by: Zhang Yunkai --- include/linux/crash_dump.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h index

[PATCH 2/6] mm/huge_memory.c: make get_huge_zero_page() return bool

2021-03-13 Thread Miaohe Lin
It's guaranteed that huge_zero_page will not be NULL if huge_zero_refcount is increased successfully. When READ_ONCE(huge_zero_page) is returned, there must be a huge_zero_page and it can be replaced with returning 'true' when we do not care about the value of huge_zero_page. We can thus make it

[PATCH 5/6] mm/huge_memory.c: remove unused macro TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAG

2021-03-13 Thread Miaohe Lin
The commit 4958e4d86ecb ("mm: thp: remove debug_cow switch") forgot to remove TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAG macro. Remove it here. Signed-off-by: Miaohe Lin --- include/linux/huge_mm.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h

[PATCH 3/6] mm/huge_memory.c: rework the function do_huge_pmd_numa_page() slightly

2021-03-13 Thread Miaohe Lin
The current code that checks if migrating misplaced transhuge page is needed is pretty hard to follow. Rework it and add a comment to make its logic more clear and improve readability. Signed-off-by: Miaohe Lin --- mm/huge_memory.c | 11 +-- 1 file changed, 5 insertions(+), 6

[PATCH 0/6] Some cleanups for huge_memory

2021-03-13 Thread Miaohe Lin
Hi all, This series contains cleanups to rework some function logics to make it more readable, use helper function and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (6): mm/huge_memory.c: rework the function vma_adjust_trans_huge() mm/huge_memory.c: make

[PATCH 6/6] mm/huge_memory.c: use helper function migration_entry_to_page()

2021-03-13 Thread Miaohe Lin
It's more recommended to use helper function migration_entry_to_page() to get the page via migration entry. We can also enjoy the PageLocked() check there. Signed-off-by: Miaohe Lin --- mm/huge_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/huge_memory.c

[PATCH 4/6] mm/huge_memory.c: remove redundant PageCompound() check

2021-03-13 Thread Miaohe Lin
The !PageCompound() check limits the page must be head or tail while !PageHead() further limits it to page head only. So !PageHead() check is equivalent here. Signed-off-by: Miaohe Lin --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c

[PATCH] mm/huge_memory.c: use helper function migration_entry_to_page()

2021-03-13 Thread Miaohe Lin
It's more recommended to use helper function migration_entry_to_page() to get the page via migration entry. We can also enjoy the PageLocked() check there. Signed-off-by: Miaohe Lin --- mm/huge_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/huge_memory.c

[PATCH 1/6] mm/huge_memory.c: rework the function vma_adjust_trans_huge()

2021-03-13 Thread Miaohe Lin
The current implementation of vma_adjust_trans_huge() contains some duplicated codes. Add helper function to get rid of these codes to make it more succinct. Signed-off-by: Miaohe Lin --- mm/huge_memory.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff

Re: [PATCH] ACPI: video: Add missing callback back for Sony VPCEH3U1E

2021-03-13 Thread Pavel Machek
On Fri 2021-03-12 11:24:30, chris.c...@canonical.com wrote: > From: Chris Chiu > > The .callback of the quirk for Sony VPCEH3U1E was unintetionally > removed by the commit 25417185e9b5 ("ACPI: video: Add DMI quirk > for GIGABYTE GB-BXBT-2807"). Add it back to make sure the quirk > for Sony

Re: MaxLinear, please maintain your drivers was Re: [PATCH] leds: lgm: fix gpiolib dependency

2021-03-13 Thread Pavel Machek
Hi! > Sorry for the hiccup due to missing email address in the email chain during > the ownership transition. > > Henceforth, I will be the maintainer for all kernel drivers/code related to > “formerly Intel’s now MaxLinear’s” Lightning Mountain SoC. > > Please send any Lightning Mountain SoC

Re: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation.

2021-03-13 Thread Tejun Heo
On Fri, Mar 12, 2021 at 02:59:04PM -0800, Jacob Pan wrote: > Our primary goal is to limit the amount of IOASIDs that VMs can allocate. > If a VM is migrated to a different cgroup, I think we need to > charge/uncharge the destination/source cgroup in order enforce the limit. I > am not an expert

Re: [PATCH] arm64: dts: qcom: pm8150: Enable RTC

2021-03-13 Thread Vinod Koul
On 05-01-21, 16:10, Bjorn Andersson wrote: > The PM8150 comes with everything the RTC needs, so let's just leave it > enabled instead of having to explicitly enable it for all boards. > In effect this patch enables the RTC on the SM8150 MTP and the SM8250 > HDK. Reviewed-by: Vinod Koul --

Re: [PATCH 1/2] ata: delete redundant printing of return value

2021-03-13 Thread Sergei Shtylyov
Hello again. :-) Now, 2 patches to the different files shouldn't have and identical subject! And the patch subject should reflect the exact patch locus, e.g. "sata_highbank: delete redundant printing of return value". On 3/13/21 10:47 AM, Wang Qing wrote: > platform_get_irq() has already

Re: [PATCH 1/2] ata: delete redundant printing of return value

2021-03-13 Thread Sergei Shtylyov
Hello! The patch subject should reflect the exact patch locus, e.g. "ata: libahci_platform: delete redundant printing of return value". On 3/13/21 10:46 AM, Wang Qing wrote: > platform_get_irq() has already checked and printed the return value, > the printing here is nothing special, it is

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-03-13 Thread Henning Schild
Am Mon, 8 Mar 2021 14:20:16 +0200 schrieb Andy Shevchenko : > From: Jonathan Yong > > There is already one and at least one more user is coming which > requires an access to Primary to Sideband bridge (P2SB) in order to > get IO or MMIO bar hidden by BIOS. Create a library to access P2SB > for

[PATCH] drm/mediatek: crtc: Make config-updating atomic

2021-03-13 Thread Chun-Kuang Hu
While updating config, the irq would occur and get the partial config, so use variable config_updating to make updating atomic. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] x86/kvm: Fix broken irq restoration in kvm_wait

2021-03-13 Thread Paolo Bonzini
On 13/03/21 01:57, Wanpeng Li wrote: A third option would be to split the paths. In the end, it's only the ptr/val line that's shared. I just sent out a formal patch for my alternative fix, I think the whole logic in kvm_wait is more clear w/ my version. I don't know, having three "if"s in

Re: [rfc, PATCH v1 0/7] PCI: introduce p2sb helper

2021-03-13 Thread Henning Schild
Am Mon, 8 Mar 2021 14:20:13 +0200 schrieb Andy Shevchenko : > There are a few users and even at least one more is coming > that would like to utilize p2sb mechanisms like hide/unhide > a device from PCI configuration space. Tried this for my usecase and can confirm it to work as expected.

Re: [v4] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-03-13 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Chiqijun/PCI-Add-reset-quirk-for-Huawei-Intelligent-NIC-virtual-function/20210313-152632 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next config: sparc-randconfig-s031

Re: [PATCH v2 4/7] CMDLINE: powerpc: convert to generic builtin command line

2021-03-13 Thread Christophe Leroy
Le 09/03/2021 à 22:40, Daniel Walker a écrit : On Tue, Mar 09, 2021 at 08:56:47AM +0100, Christophe Leroy wrote: So we are referencing a function that doesn't exist (namely prom_strlcat). But it works because cmdline_add_builtin_custom() looks like a function but is in fact an obscure macro

Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-13 Thread Alexandre Belloni
On 12/03/2021 14:57:54+0100, Enrico Weigelt, metux IT consult wrote: > On 02.03.21 06:30, Drew Fustini wrote: > > Hi folks, > > > Add "pinmux-select" to debugfs which will activate a pin function for a > > given pin group: > > > >echo "" > pinmux-select > > > > The write operation

[PATCH v2 3/3] riscv: Prepare ptdump for vm layout dynamic addresses

2021-03-13 Thread Alexandre Ghiti
This is a preparatory patch for sv48 support that will introduce dynamic PAGE_OFFSET. Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...) whose addresses depend on PAGE_OFFSET become dynamic and can't be used to statically initialize the array used by ptdump to identify the

[PATCH v2 2/3] Documentation: riscv: Add documentation that describes the VM layout

2021-03-13 Thread Alexandre Ghiti
This new document presents the RISC-V virtual memory layout and is based one the x86 one: it describes the different limits of the different regions of the virtual address space. Signed-off-by: Alexandre Ghiti --- Documentation/riscv/index.rst | 1 + Documentation/riscv/vm-layout.rst | 63

Re: [PATCH 0/3] Move kernel mapping outside the linear mapping

2021-03-13 Thread Alex Ghiti
Hi Palmer, Le 3/9/21 à 9:54 PM, Palmer Dabbelt a écrit : On Thu, 25 Feb 2021 00:04:50 PST (-0800), a...@ghiti.fr wrote: I decided to split sv48 support in small series to ease the review. This patchset pushes the kernel mapping (modules and BPF too) to the last 4GB of the 64bit address space,

[PATCH v2 1/3] riscv: Move kernel mapping outside of linear mapping

2021-03-13 Thread Alexandre Ghiti
This is a preparatory patch for relocatable kernel and sv48 support. The kernel used to be linked at PAGE_OFFSET address therefore we could use the linear mapping for the kernel mapping. But the relocated kernel base address will be different from PAGE_OFFSET and since in the linear mapping, two

[PATCH v2 0/3] Move kernel mapping outside the linear mapping

2021-03-13 Thread Alexandre Ghiti
I decided to split sv48 support in small series to ease the review. This patchset pushes the kernel mapping (modules and BPF too) to the last 4GB of the 64bit address space, this allows to: - implement relocatable kernel (that will come later in another patchset) that requires to move the

Re: [PATCH] rpadlpar: fix potential drc_name corruption in store functions

2021-03-13 Thread Michal Suchánek
On Wed, Mar 10, 2021 at 04:30:21PM -0600, Tyrel Datwyler wrote: > Both add_slot_store() and remove_slot_store() try to fix up the drc_name > copied from the store buffer by placing a NULL terminator at nbyte + 1 > or in place of a '\n' if present. However, the static buffer that we > copy the

[tip:master] BUILD SUCCESS 013b16d0327a637f130c6697117f5bf78cc1d3dc

2021-03-13 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: 013b16d0327a637f130c6697117f5bf78cc1d3dc Merge branch 'x86/alternatives' elapsed time: 723m configs tested: 111 configs skipped: 2 The following configs have been built successfully. More configs may

Re: [PATCH] drivers: tty: vt: vt.c: fix NULL dereference crash

2021-03-13 Thread Hassan Shahbazi
On Fri, Mar 12, 2021 at 09:33:37AM +0100, Greg KH wrote: > On Sun, Mar 07, 2021 at 12:56:43PM +0200, Hassan Shahbazi wrote: > > Fix a NULL deference crash on hiding the cursor. > > > > Reported by: syzbot > > https://syzkaller.appspot.com/bug?id=defb47bf56e1c14d5687280c7bb91ce7b608b94b > > > >

Re: slow boot with 7fef431be9c9 ("mm/page_alloc: place pages to tail in __free_pages_core()")

2021-03-13 Thread David Hildenbrand
> Am 13.03.2021 um 05:04 schrieb Liang, Liang (Leo) : > > [AMD Public Use] > > Hi David, > > Which benchmark tool you prefer? Memtest86+ or else? Hi Leo, I think you want something that runs under Linux natively. I‘m planning on coding up a kernel module to walk all 4MB pages in the

[PATCH v3 0/2] Improve KASAN_VMALLOC support

2021-03-13 Thread Alexandre Ghiti
This patchset improves KASAN vmalloc implementation by fixing an oversight where kernel page table was not flushed in patch 1 and by reworking the kernel page table PGD level population in patch 2. Changes in v3: - Split into 2 patches - Add reviewed-by Changes in v2: - Quiet kernel test robot

Re: [PATCH] xtensa: move CONFIG_CPU_*_ENDIAN defines to Kconfig

2021-03-13 Thread Max Filippov
On Fri, Mar 12, 2021 at 7:14 AM Masahiro Yamada wrote: > > Move the definition of CONFIG_CPU_*_ENDIAN to Kconfig, the best place > for CONFIG options. > > I slightly simplified the test code. You can use the -P option to suppress > linemarker generation. The grep command is unneeded. > > $ echo

Re: [PATCH] seq_file: Unconditionally use vmalloc for buffer

2021-03-13 Thread Greg Kroah-Hartman
On Fri, Mar 12, 2021 at 12:55:58PM -0800, Kees Cook wrote: > The sysfs interface to seq_file continues to be rather fragile, as seen > with some recent exploits[1]. Move the seq_file buffer to the vmap area > (while retaining the accounting flag), since it has guard pages that > will catch and

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-13 Thread Borislav Petkov
On Sat, Mar 13, 2021 at 06:26:15AM +0100, Sedat Dilek wrote: > x86/jump_label: Mark arguments as const to satisfy asm constraints Where do I find this patch? > x86: Remove dynamic NOP selection > objtool,x86: Use asm/nops.h > > My benchmark was to build a Linux-kernel with LLVM/Clang

[PATCH v3 2/2] riscv: Cleanup KASAN_VMALLOC support

2021-03-13 Thread Alexandre Ghiti
When KASAN vmalloc region is populated, there is no userspace process and the page table in use is swapper_pg_dir, so there is no need to read SATP. Then we can use the same scheme used by kasan_populate_p*d functions to go through the page table, which harmonizes the code. In addition, make use

[PATCH v3 1/2] riscv: Ensure page table writes are flushed when initializing KASAN vmalloc

2021-03-13 Thread Alexandre Ghiti
Make sure that writes to kernel page table during KASAN vmalloc initialization are made visible by adding a sfence.vma. Signed-off-by: Alexandre Ghiti Reviewed-by: Palmer Dabbelt --- arch/riscv/mm/kasan_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/mm/kasan_init.c

Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-13 Thread Drew Fustini
On Fri, Mar 12, 2021 at 02:57:54PM +0100, Enrico Weigelt, metux IT consult wrote: > On 02.03.21 06:30, Drew Fustini wrote: > > Hi folks, > > > Add "pinmux-select" to debugfs which will activate a pin function for a > > given pin group: > > > >echo "" > pinmux-select > > > > The write

[linux-stable-rc CI] Test report for 5.10.24-rc1 /arm64

2021-03-13 Thread hulkrobot
Kernel repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git Branch: linux-5.10.y Arch: arm64 Version: 5.10.24-rc1 Commit: e725551e82d7dce92673b0bef6430fc8e903fb72 Compiler: gcc version 7.3.0 (GCC)

[PATCH v4 4/6] KVM: arm64: GICv4.1: Try to save VLPI state in save_pending_tables

2021-03-13 Thread Shenming Lu
After pausing all vCPUs and devices capable of interrupting, in order to save the states of all interrupts, besides flushing the states in kvm’s vgic, we also try to flush the states of VLPIs in the virtual pending tables into guest RAM, but we need to have GICv4.1 and safely unmap the vPEs first.

[PATCH v4 6/6] KVM: arm64: GICv4.1: Give a chance to save VLPI state

2021-03-13 Thread Shenming Lu
Before GICv4.1, we don't have direct access to the VLPI state. So we simply let it fail early when encountering any VLPI in saving. But now we don't have to return -EACCES directly if on GICv4.1. Let’s change the hard code and give a chance to save the VLPI state (and preserve the UAPI).

[PATCH v4 3/6] KVM: arm64: GICv4.1: Add function to get VLPI state

2021-03-13 Thread Shenming Lu
With GICv4.1 and the vPE unmapped, which indicates the invalidation of any VPT caches associated with the vPE, we can get the VLPI state by peeking at the VPT. So we add a function for this. Signed-off-by: Shenming Lu --- arch/arm64/kvm/vgic/vgic-v4.c | 19 +++

[PATCH v4 2/6] irqchip/gic-v3-its: Drop the setting of PTZ altogether

2021-03-13 Thread Shenming Lu
GICv4.1 gives a way to get the VLPI state, which needs to map the vPE first, and after the state read, we may remap the vPE back while the VPT is not empty. So we can't assume that the VPT is empty at the first map. Besides, the optimization of PTZ is probably limited since the HW should be fairly

[PATCH v4 5/6] KVM: arm64: GICv4.1: Restore VLPI pending state to physical side

2021-03-13 Thread Shenming Lu
From: Zenghui Yu When setting the forwarding path of a VLPI (switch to the HW mode), we can also transfer the pending state from irq->pending_latch to VPT (especially in migration, the pending states of VLPIs are restored into kvm’s vgic first). And we currently send "INT+VSYNC" to trigger a

[PATCH v4 0/6] KVM: arm64: Add VLPI migration support on GICv4.1

2021-03-13 Thread Shenming Lu
Hi, In GICv4.1, migration has been supported except for (directly-injected) VLPI. And GICv4.1 Spec explicitly gives a way to get the VLPI's pending state (which was crucially missing in GICv4.0). So we make VLPI migration capable on GICv4.1 in this series. In order to support VLPI migration, we

[PATCH v4 1/6] irqchip/gic-v3-its: Add a cache invalidation right after vPE unmapping

2021-03-13 Thread Shenming Lu
From: Marc Zyngier Since there may be a direct read from the CPU side to the VPT after unmapping the vPE, we add a cache coherency maintenance at the end of its_vpe_irq_domain_deactivate() to ensure the validity of the VPT read later. Signed-off-by: Marc Zyngier Signed-off-by: Shenming Lu ---

[PATCH] drivers: net: vxlan.c: Fix declaration issue

2021-03-13 Thread Sanjana Srinidhi
Added a blank line after structure declaration. This is done to maintain code uniformity. Signed-off-by: Sanjana Srinidhi --- drivers/net/vxlan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 666dd201c3d5..7665817f3cb6 100644 ---

[PATCH] kswapd: no need reclaim cma pages triggered by unmovable allocation

2021-03-13 Thread zhou
From: zhou xianrong For purpose of better migration cma pages are allocated after failure movalbe allocations and are used normally for file pages or anonymous pages. In reclaim path many cma pages if configurated are reclaimed from lru lists in kswapd mainly or direct reclaim triggered by

Re: [PATCH 2/3] Documentation: riscv: Add documentation that describes the VM layout

2021-03-13 Thread Alex Ghiti
Hi Arnd, Le 3/11/21 à 3:42 AM, Arnd Bergmann a écrit : On Wed, Mar 10, 2021 at 8:12 PM Alex Ghiti wrote: Le 3/10/21 à 6:42 AM, Arnd Bergmann a écrit : On Thu, Feb 25, 2021 at 12:56 PM Alex Ghiti wrote: Le 2/25/21 à 5:34 AM, David Hildenbrand a écrit : ||

[PATCH] sound: soc: fsl: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in module_platform_driver(), so remove it. Signed-off-by: Wang Qing --- sound/soc/fsl/imx-hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index dbbb761..cd0235a --- a/sound/soc/fsl/imx-hdmi.c +++

[PATCH] sound: soc: codecs: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in module_platform_driver(), so remove it. Signed-off-by: Wang Qing --- sound/soc/codecs/lpass-rx-macro.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index c9c21d22..5b9d4e9 ---

[PATCH] mailbox: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in platform_create_bundle(), so remove it. Signed-off-by: Wang Qing --- drivers/mailbox/pcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index ef9ecd1..4b1a2d2 --- a/drivers/mailbox/pcc.c +++

Re: [PATCH V1] arm64: dts: qcom: sc7280: Add nodes for eMMC and SD card

2021-03-13 Thread sbhanu
On 2021-03-10 19:17, sbh...@codeaurora.org wrote: On 2021-03-10 01:32, Bjorn Andersson wrote: On Tue 09 Mar 13:18 CST 2021, Shaik Sajida Bhanu wrote: Add nodes for eMMC and SD card on sc7280. Signed-off-by: Shaik Sajida Bhanu --- This change is depends on the below patch series:

[linux-stable-rc CI] Test report for 5.10.24-rc1 /x86

2021-03-13 Thread hulkrobot
Kernel repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git Branch: linux-5.10.y Arch: x86 Version: 5.10.24-rc1 Commit: e725551e82d7dce92673b0bef6430fc8e903fb72 Compiler: gcc version 7.3.0 (GCC)

Re: [PATCH 4/4] integrity: Load mokx variables into the blacklist keyring

2021-03-13 Thread David Howells
Eric Snowberg wrote: > If MOKx will be available thru a config table in the next shim, > I'll prepare a follow on patch to add this support. Can this go separately, or would it be better rolled into the existing patchset? David

[PATCH] ARM:sa1100: remove duplicate include in hackkit.c

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/tty.h' included in 'hackkit.c' is duplicated. It is also included in the 13th line. Signed-off-by: Zhang Yunkai --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index

Re: [PATCH v2 6/6] pinctrl: Ingenic: Add support for new Ingenic SoCs.

2021-03-13 Thread Zhou Yanjie
Hi, On 2021/3/12 下午9:42, Paul Cercueil wrote: Hi Zhou, Le jeu. 11 mars 2021 à 23:21, 周琰杰 (Zhou Yanjie) a écrit : Add support for probing the pinctrl-ingenic driver on the JZ4730 SoC, the JZ4750 SoC, the JZ4755 SoC, the JZ4775 SoC and the X2000 SoC from Ingenic. The driver of JZ4730 is

[PATCH] dt-bindings: i2c: Add device clock-stretch time via dts

2021-03-13 Thread qii.wang
From: Qii Wang tSU,STA/tHD,STA/tSU,STOP maybe out of spec due to device clock-stretching or circuit loss, we could get device clock-stretch time from dts to adjust these parameters to meet the spec via EXT_CONF register. Signed-off-by: Qii Wang ---

Re: [PATCH v2 2/6] pinctrl: Ingenic: Add support for read the pin configuration of X1830.

2021-03-13 Thread Zhou Yanjie
Hi Paul, On 2021/3/12 下午9:31, Paul Cercueil wrote: Hi Zhou, Le jeu. 11 mars 2021 à 23:21, 周琰杰 (Zhou Yanjie) a écrit : Add X1830 support in "ingenic_pinconf_get()", so that it can read the configuration of X1830 SoC correctly. Signed-off-by: 周琰杰 (Zhou Yanjie) This is a fix, so it needs a

Re: [PATCH v2 1/6] pinctrl: Ingenic: Add missing pins to the JZ4770 MAC MII group.

2021-03-13 Thread Zhou Yanjie
Hi Paul, On 2021/3/12 下午9:05, Paul Cercueil wrote: Hi, Le jeu. 11 mars 2021 à 23:21, 周琰杰 (Zhou Yanjie) a écrit : The MII group of JZ4770's MAC should have 7 pins, add missing pins to the MII group. Signed-off-by: 周琰杰 (Zhou Yanjie) No Fixes: tag? And if the bug wasn't introduced in

[RESEND] i2c: mediatek: Get device clock-stretch time via dts

2021-03-13 Thread qii.wang
From: Qii Wang tSU,STA/tHD,STA/tSU,STOP maybe out of spec due to device clock-stretching or circuit loss, we could get device clock-stretch time from dts to adjust these parameters to meet the spec via EXT_CONF register. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 6 +-

[PATCH v1 12/14] mm: multigenerational lru: user space interface

2021-03-13 Thread Yu Zhao
Add a sysfs file /sys/kernel/mm/lru_gen/enabled so user space can enable and disable multigenerational lru at runtime. Add a sysfs file /sys/kernel/mm/lru_gen/spread so user space can spread pages out across multiple generations. More generations make the background aging more aggressive. Add a

[PATCH v1 13/14] mm: multigenerational lru: Kconfig

2021-03-13 Thread Yu Zhao
Add configuration options for multigenerational lru. Signed-off-by: Yu Zhao --- mm/Kconfig | 29 + 1 file changed, 29 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index 24c045b24b95..3a5bcc2d7a45 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -872,4 +872,33 @@

[PATCH v1 14/14] mm: multigenerational lru: documentation

2021-03-13 Thread Yu Zhao
Add Documentation/vm/multigen_lru.rst. Signed-off-by: Yu Zhao --- Documentation/vm/index.rst| 1 + Documentation/vm/multigen_lru.rst | 210 ++ 2 files changed, 211 insertions(+) create mode 100644 Documentation/vm/multigen_lru.rst diff --git

[PATCH v1 08/14] mm/vmscan.c: refactor shrink_node()

2021-03-13 Thread Yu Zhao
Heuristics in shrink_node() are rather independent and can be refactored into a separate function to improve readability. Signed-off-by: Yu Zhao --- mm/vmscan.c | 186 +++- 1 file changed, 98 insertions(+), 88 deletions(-) diff --git

[PATCH v1 10/14] mm: multigenerational lru: core

2021-03-13 Thread Yu Zhao
Evictable pages are divided into multiple generations for each lruvec. The youngest generation number is stored in max_seq for both anon and file types as they are aged on an equal footing. The oldest generation numbers are stored in min_seq[2] separately for anon and file types as clean file

[PATCH v1 11/14] mm: multigenerational lru: page activation

2021-03-13 Thread Yu Zhao
In the page fault path, we want to add pages to the per-zone lists index by max_seq as they cannot be evicted without going through the aging first. For anon pages, we rename lru_cache_add_inactive_or_unevictable() to lru_cache_add_page_vma() and add a new parameter, which is set to true in the

[PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-03-13 Thread Yu Zhao
Add an infrastructure that maintains either a system-wide mm_struct list or per-memcg mm_struct lists. Multiple threads can concurrently work on the same mm_struct list, and each of them will be given a different mm_struct. Those who finish early can optionally wait on the rest after the iterator

[PATCH v1 07/14] mm/pagewalk.c: add pud_entry_post() for post-order traversals

2021-03-13 Thread Yu Zhao
Add a new callback pud_entry_post() to struct mm_walk_ops so that page table walkers can visit the non-leaf PMD entries of a PUD entry after they have visited with the leaf PTE entries. This allows page table walkers who clear the accessed bit to take advantage of the last commit, in a similar way

<    1   2   3   4   5   >