Re: [RFC 2/3] arm64/hugetlb: Enable HUGETLB_PAGE_SIZE_VARIABLE

2021-02-05 Thread David Hildenbrand
On 04.02.21 08:01, Anshuman Khandual wrote: MAX_ORDER which invariably depends on FORCE_MAX_ZONEORDER can be a variable for a given page size, depending on whether TRANSPARENT_HUGEPAGE is enabled or not. In certain page size and THP combinations HUGETLB_PAGE_ORDER can be greater than MAX_ORDER,

Re: [PATCH 0/9] KVM: x86: Move common exit handlers to x86.c

2021-02-05 Thread Paolo Bonzini
On 05/02/21 01:57, Sean Christopherson wrote: Paolo, I based this on kvm/queue under the assumption it can all wait until 5.13. I don't think there's anything urgent here, and the conflicts with the stuff in kvm/nested-svm are annoying. Let me know if you want me to rebase anything/all to get

[PATCH v4 1/5] KVM: VMX: Introduce PKS VMCS fields

2021-02-05 Thread Chenyi Qiang
PKS(Protection Keys for Supervisor Pages) is a feature that extends the Protection Key architecture to support thread-specific permission restrictions on supervisor pages. A new PKS MSR(PKRS) is defined in kernel to support PKS, which holds a set of permissions associated with each protection

Re: [PATCH 2/2] can: m_can: m_can_class_allocate_dev(): remove impossible error return judgment

2021-02-05 Thread Xulin Sun
On 2021/2/5 下午4:19, Marc Kleine-Budde wrote: On 05.02.2021 15:25:59, Xulin Sun wrote: If the previous can_net device has been successfully allocated, its private data structure is impossible to be empty, remove this redundant error return judgment. Otherwise, memory leaks for alloc_candev()

Re: [RFC][PATCH v6 1/7] drm: Add a sharable drm page-pool implementation

2021-02-05 Thread Christian König
Am 05.02.21 um 09:06 schrieb John Stultz: This adds a shrinker controlled page pool, closely following the ttm_pool logic, which is abstracted out a bit so it can be used by other non-ttm drivers. Cc: Daniel Vetter Cc: Christian Koenig Cc: Sumit Semwal Cc: Liam Mark Cc: Chris Goldsworthy

[PATCH 3/5] i2c: stm32f7: add support for DNF i2c-digital-filter binding

2021-02-05 Thread Alain Volmat
Add the support for the i2c-digital-filter binding, allowing to enable the digital filter via the device-tree and indicate its value in the DT. Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-)

[PATCH 4/5] ARM: dts: stm32: enable the analog filter for all I2C nodes in stm32mp151

2021-02-05 Thread Alain Volmat
Enable the analog filter for all I2C nodes of the stm32mp151. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stm32mp151.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 3c75abacb374..558fc8fb38b6

[PATCH 0/5] i2c: stm32: filter binding support & debug info

2021-02-05 Thread Alain Volmat
This serie add support for the analog and digital filter binding for the stm32f7 i2c driver. An additional patch add also debug informations, displayed in case of errors. Alain Volmat (5): i2c: stm32f7: fix configuration of the digital filter i2c: stm32f7: support DT binding i2c-analog-filter

[PATCH 1/5] i2c: stm32f7: fix configuration of the digital filter

2021-02-05 Thread Alain Volmat
The digital filter related computation are present in the driver however the programming of the filter within the IP is missing. The maximum value for the DNF is wrong and should be 15 instead of 16. Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver") Signed-off-by: Alain Volmat ---

Re: [GIT PULL] Floppy patch for 5.12

2021-02-05 Thread Jiri Kosina
On Thu, 4 Feb 2021, Kurt Garloff wrote: > >> The following changes since commit > >> 0d7389718c32ad6bb8bee7895c91e2418b6b26aa: > >> > >> Merge tag 'nvme-5.21-2020-02-02' of git://git.infradead.org/nvme into > >> for-5.12/drivers (2021-02-02 07:11:47 -0700) > >> > >> are available in the Git

Re: [PATCH V7 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-02-05 Thread Geert Uytterhoeven
Hi Viresh, Thanks for your patch (which I only noticed because it appeared in dt-rh/for-next ;-) On Fri, Jan 29, 2021 at 8:31 AM Viresh Kumar wrote: > Add support for building DT overlays (%.dtbo). The overlay's source file > will have the usual extension, i.e. .dts, though the blob will have

Re: [PATCH RESEND] entry: Use different define for selector variable in SUD

2021-02-05 Thread Thomas Gleixner
Gabriel, On Thu, Feb 04 2021 at 13:40, Gabriel Krisman Bertazi wrote: > Michael Kerrisk suggested that, from an API perspective, it is a bad > idea to share the PR_SYS_DISPATCH_ defines between the prctl operation > and the selector variable. Therefore, define two new constants to be > used by

RE: Old platforms: bring out your dead

2021-02-05 Thread David Laight
> We have open-hardware implementation for 486, AFAICT, thanks to MISTer > project. I'm not aware of open 586 core. > > Being able to run recent Linux on open hardware sounds fun. Putting a 486 on an fpga might be 'interesting'. But it has a lot of 'cruft' (like 286 protected mode) that you

Re: [PATCH V3 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-02-05 Thread Viresh Kumar
On 03-02-21, 11:45, Ionela Voinescu wrote: > Therefore, I think system level invariance management (checks and > call to rebuild_sched_domains_energy()) also needs to move from arm64 > code to arch_topology code. Here is the 3rd patch of this series then :) From: Viresh Kumar Date: Fri, 5 Feb

[PATCH] mm/hugetlb: use helper huge_page_size() to simplify the hugetlb_vm_op_pagesize()

2021-02-05 Thread Miaohe Lin
We can use helper huge_page_size() to get the size of the pages allocated when backing a VMA directly to make the code more simplified. Signed-off-by: Miaohe Lin --- mm/hugetlb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index

Re: [PATCH v4 4/5] KVM: MMU: Add support for PKS emulation

2021-02-05 Thread Paolo Bonzini
On 05/02/21 09:37, Chenyi Qiang wrote: |In addition to the pkey check for user pages, advertise pkr_mask also to cache the conditions where protection key checks for supervisor pages are needed. Add CR4_PKS in mmu_role_bits to track the pkr_mask update on a per-mmu basis. In original cache

Re: [PATCH v4 2/5] KVM: X86: Expose PKS to guest

2021-02-05 Thread Paolo Bonzini
On 05/02/21 09:37, Chenyi Qiang wrote: + /* +* PKS is not yet implemented for shadow paging. +* If not support VM_{ENTRY, EXIT}_LOAD_IA32_PKRS, +* don't expose the PKS as well. +*/ + if (enable_ept && cpu_has_load_ia32_pkrs()) +

Re: [PATCH v4 0/5] KVM: PKS Virtualization support

2021-02-05 Thread Paolo Bonzini
On 05/02/21 09:37, Chenyi Qiang wrote: Protection Keys for Supervisor Pages(PKS) is a feature that extends the Protection Keys architecture to support thread-specific permission restrictions on supervisor pages. PKS works similar to an existing feature named PKU(protecting user pages). They

Re: [PATCH] staging: fbtft replaced udelay with usleep_range

2021-02-05 Thread Greg KH
On Fri, Feb 05, 2021 at 02:41:13PM +0530, Mayank Suman wrote: > According to Documentation/timers/timers-howto.rst, usleep_range is > preffered over udelay for >=10us delay. > > Signed-off-by: Mayank Suman ALWAYS test build your patches before sending them out to the world for review. You

Re: [PATCH] perf tools: Simplify the calculation of variables

2021-02-05 Thread Jiri Olsa
On Fri, Feb 05, 2021 at 11:54:15AM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./tools/perf/util/header.c:3809:18-20: WARNING !A || A && B is > equivalent to !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > tools/perf/util/header.c | 2

Re: [PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2021-02-05 Thread Nicolin Chen
Hi Guillaume, On Thu, Feb 04, 2021 at 09:24:23PM -0800, Nicolin Chen wrote: > > Please let us know if you need any help debugging this issue or > > to try a fix on this platform. > > Yes, I don't have any Tegra124 platform to run. It'd be very nice > if you can run some debugging patch (I can

Re: [PATCH 09/11] dts: a3700: enable dma coherence for PCIE interface

2021-02-05 Thread Marcin Wojtas
Hi Kosta, śr., 3 lut 2021 o 14:32 napisał(a): > > From: Stefan Chulski > > Enavble PCIe dma coherence for A3700 platform > While at it, can we also add: --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -71,6 +71,7 @@ soc {

[RFC: timer passthrough 7/9] KVM: vmx: save the initial value of host tscd

2021-02-05 Thread Zhimin Feng
Record the host tscd value. Signed-off-by: Zhimin Feng --- arch/x86/kvm/vmx/vmx.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index a12da3cef86d..98eca70d4251 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -251,8

Re: [PATCH 0/6] Support second Image Signal Processor on rk3399

2021-02-05 Thread Heiko Stübner
Hi Sebastian, Am Freitag, 5. Februar 2021, 07:43:35 CET schrieb Sebastian Fricke: > On 03.02.2021 20:54, Heiko Stübner wrote: > >Am Mittwoch, 3. Februar 2021, 19:14:22 CET schrieb Sebastian Fricke: > >> I have tested your patch set on my nanoPC-T4, here is a complete log > >> with: > >> -

Re: [PATCH 2/2] KVM: x86: Restore all 64 bits of DR6 and DR7 during RSM on x86-64

2021-02-05 Thread Paolo Bonzini
On 05/02/21 02:24, Sean Christopherson wrote: Restore the full 64-bit values of DR6 and DR7 when emulating RSM on x86-64, as defined by both Intel's SDM and AMD's APM. Note, bits 63:32 of DR6 and DR7 are reserved, so this is a glorified nop unless the SMM handler is poking into SMRAM, which it

Re: [PATCH v2] mm/hugetlb: remove redundant check in preparing and destroying gigantic page

2021-02-05 Thread David Hildenbrand
On 02.02.21 12:20, yanfei...@windriver.com wrote: From: Yanfei Xu Gigantic page is a compound page and its order is more than 1. Thus it must be available for hpage_pincount. Let's remove the redundant check for gigantic page. Signed-off-by: Yanfei Xu --- mm/hugetlb.c | 7 ++- 1 file

Re: [PATCH] mm/mlock: stop counting mlocked pages when none vma is found

2021-02-05 Thread David Hildenbrand
On 04.02.21 12:07, Miaohe Lin wrote: There will be no vma satisfies addr < vm_end when find_vma() returns NULL. Thus it's meaningless to traverse the vma list below because we can't find any vma to count mlocked pages. Stop counting mlocked pages in this case to save some vma list traversal

Re: [PATCH] builddeb: Don't look for a missing Module.symvers

2021-02-05 Thread Masahiro Yamada
On Fri, Feb 5, 2021 at 5:21 AM Sean Anderson wrote: > > If deb-pkg is run with CONFIG_MODULES disabled, then make fails with > > find: ‘Module.symvers’: No such file or directory > make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 1 > make[3]: *** [Makefile:1523: intdeb-pkg] Error 2 >

Re: [RFC][PATCH v6 3/7] drm: ttm_pool: Rework ttm_pool_free_page to allow us to use it as a function pointer

2021-02-05 Thread Christian König
Am 05.02.21 um 09:06 schrieb John Stultz: This refactors ttm_pool_free_page(), and by adding extra entries to ttm_pool_page_dat, we then use it for all allocations, which allows us to simplify the arguments needed to be passed to ttm_pool_free_page(). This is a clear NAK since the peer page

[PATCH] arch: arm: mach-imx: Fix a spelling in the file pm-imx5.c

2021-02-05 Thread Bhaskar Chowdhury
s/confgiured/configured/ Signed-off-by: Bhaskar Chowdhury --- arch/arm/mach-imx/pm-imx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/pm-imx5.c b/arch/arm/mach-imx/pm-imx5.c index e9962b48e30c..2e3af2bc7758 100644 --- a/arch/arm/mach-imx/pm-imx5.c

Re: [PATCH] nios2: fixed broken sys_clone syscall

2021-02-05 Thread Christian Brauner
On Fri, Feb 05, 2021 at 09:23:38AM +0100, Andreas Oetken wrote: > From: Andreas Oetken > > The tls pointer must be pushed on the stack prior to calling nios2_clone > as it is the 5th function argument. Prior handling of the tls pointer was > done inside former called function copy_thread_tls

[PATCH v4 2/5] KVM: X86: Expose PKS to guest

2021-02-05 Thread Chenyi Qiang
Protection Keys for Supervisor Pages (PKS) is a feature that extends the Protection Keys architecture to support thread-specific permission restrictions on supervisor pages, which extends an existing feature named PKU (for user-mode pages). PKS uses IA32_PKRS MSR (PKRS) at index 0x6E1 to allow

[PATCH v4 0/5] KVM: PKS Virtualization support

2021-02-05 Thread Chenyi Qiang
Protection Keys for Supervisor Pages(PKS) is a feature that extends the Protection Keys architecture to support thread-specific permission restrictions on supervisor pages. PKS works similar to an existing feature named PKU(protecting user pages). They both perform an additional check after all

Re: [PATCH v14 6/8] mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate

2021-02-05 Thread Miaohe Lin
Hi: On 2021/2/5 16:22, Oscar Salvador wrote: > On Fri, Feb 05, 2021 at 03:29:43PM +0800, Miaohe Lin wrote: >>> + if (likely(vmemmap_pages > RESERVE_VMEMMAP_NR)) >>> + h->nr_free_vmemmap_pages = vmemmap_pages - RESERVE_VMEMMAP_NR; >> >> Not a problem. Should we set

Re: [PATCH] kallsyms: fix nonconverging kallsyms table with lld

2021-02-05 Thread Masahiro Yamada
On Fri, Feb 5, 2021 at 12:30 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > ARM randconfig builds with lld sometimes show a build failure > from kallsyms: > > Inconsistent kallsyms data > Try make KALLSYMS_EXTRA_PASS=1 as a workaround > > The problem is the veneers/thunks getting added

Re: [PATCH v4] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2021-02-05 Thread Huacai Chen
Hi, Chenyang, On Fri, Feb 5, 2021 at 4:33 PM Chenyang Li wrote: > > This patch adds an initial DRM driver for the Loongson LS7A1000 > bridge chip(LS7A). The LS7A bridge chip contains two display > controllers, support dual display output. The maximum support for > each channel display is to

[PATCH 5/5] i2c: stm32f7: indicate the address being accessed on errors

2021-02-05 Thread Alain Volmat
To help debugging issues, add the address of the slave being accessed when getting an error. Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c

Re: [PATCH 2/2] can: m_can: m_can_class_allocate_dev(): remove impossible error return judgment

2021-02-05 Thread Marc Kleine-Budde
On 05.02.2021 16:46:16, Xulin Sun wrote: > On 2021/2/5 下午4:19, Marc Kleine-Budde wrote: > > On 05.02.2021 15:25:59, Xulin Sun wrote: > > > If the previous can_net device has been successfully allocated, its > > > private data structure is impossible to be empty, remove this redundant > > > error

Re: [PATCH v3] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-02-05 Thread Marco Felsch
On 21-02-04 19:15, Oliver Graute wrote: > On 02/02/21, Marco Felsch wrote: > > Hi Oliver, > > > > On 21-02-02 18:35, Oliver Graute wrote: > > > Add support for the Solomon Goldentek Display Model: GKTW70SDAD1SD > > > to panel-simple. > > > > > > The panel spec from Variscite can be found at: > >

Re: [PATCH v17 1/7] arm/arm64: Probe for the presence of KVM hypervisor

2021-02-05 Thread Steven Price
On 02/02/2021 14:11, Marc Zyngier wrote: From: Will Deacon Although the SMCCC specification provides some limited functionality for describing the presence of hypervisor and firmware services, this is generally applicable only to functions designated as "Arm Architecture Service Functions" and

Re: [GIT PULL] Fix for cros_ec_typec for USB for v5.12 merge window

2021-02-05 Thread Greg KH
On Thu, Feb 04, 2021 at 11:24:59AM -0800, Benson Leung wrote: > Hi Greg, > > I found a bug in the typec driver you pulled earlier this week > and Prashant developed a fix. > > The following changes since commit 64eaa0fa66ac55965f793a8b65730299854e55cd: > > platform/chrome: cros_ec_typec: Fix

[PATCH] mm/arm64: Correct obsolete comment in do_page_fault()

2021-02-05 Thread Miaohe Lin
commit d8ed45c5dcd4 ("mmap locking API: use coccinelle to convert mmap_sem rwsem call sites") has convertd down_read_trylock() to mmap_read_trylock(). But it forgot to update the relevant comment. Signed-off-by: Miaohe Lin --- arch/arm64/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v14 8/8] mm: hugetlb: optimize the code with the help of the compiler

2021-02-05 Thread Oscar Salvador
On Thu, Feb 04, 2021 at 11:50:43AM +0800, Muchun Song wrote: > We cannot optimize if a "struct page" crosses page boundaries. If > it is true, we can optimize the code with the help of a compiler. > When free_vmemmap_pages_per_hpage() returns zero, most functions are > optimized by the compiler.

[PATCH] staging: fbtft replaced udelay with usleep_range

2021-02-05 Thread Mayank Suman
According to Documentation/timers/timers-howto.rst, usleep_range is preffered over udelay for >=10us delay. Signed-off-by: Mayank Suman --- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- drivers/staging/fbtft/fb_ra8875.c | 4 ++-- drivers/staging/fbtft/fb_tinylcd.c | 4 ++--

Re: [PATCH v14 6/8] mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate

2021-02-05 Thread Miaohe Lin
On 2021/2/5 16:56, Oscar Salvador wrote: > On Fri, Feb 05, 2021 at 04:39:26PM +0800, Miaohe Lin wrote: >> Hi: >> On 2021/2/5 16:22, Oscar Salvador wrote: >>> On Fri, Feb 05, 2021 at 03:29:43PM +0800, Miaohe Lin wrote: > + if (likely(vmemmap_pages > RESERVE_VMEMMAP_NR)) > +

Re: [PATCH] mm/memtest: Add ARCH_USE_MEMTEST

2021-02-05 Thread Vladimir Murzin
Hi Anshuman, On 2/5/21 4:10 AM, Anshuman Khandual wrote: > early_memtest() does not get called from all architectures. Hence enabling > CONFIG_MEMTEST and providing a valid memtest=[1..N] kernel command line > option might not trigger the memory pattern tests as would be expected in > normal

Re: [PATCH v3 09/13] vhost/vdpa: remove vhost_vdpa_config_validate()

2021-02-05 Thread Stefano Garzarella
On Fri, Feb 05, 2021 at 11:27:32AM +0800, Jason Wang wrote: On 2021/2/5 上午1:22, Stefano Garzarella wrote: get_config() and set_config() callbacks in the 'struct vdpa_config_ops' usually already validated the inputs. Also now they can return an error, so we don't need to validate them here

Re: [PATCH] staging: qlge/qlge_main: Use min_t instead of min

2021-02-05 Thread Amey Narkhede
On 21/02/04 03:58PM, Nathan Chancellor wrote: > On Fri, Feb 05, 2021 at 03:24:51AM +0530, ameynarkhed...@gmail.com wrote: > > From: Amey Narkhede > > > > Use min_t instead of min function in qlge/qlge_main.c > > Fixes following checkpatch.pl warning: > > WARNING: min() should probably be

Re: [PATCH 1/2] PCI: also set up legacy files only after sysfs init

2021-02-05 Thread Daniel Vetter
On Thu, Feb 4, 2021 at 10:50 PM Bjorn Helgaas wrote: > > [+cc Oliver, Pali, Krzysztof] > > s/also/Also/ in subject > > On Thu, Feb 04, 2021 at 05:58:30PM +0100, Daniel Vetter wrote: > > We are already doing this for all the regular sysfs files on PCI > > devices, but not yet on the legacy io

Re: [PATCH v14 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-05 Thread Muchun Song
On Thu, Feb 4, 2021 at 11:54 AM Muchun Song wrote: > > When we free a HugeTLB page to the buddy allocator, we should allocate the > vmemmap pages associated with it. But we may cannot allocate vmemmap pages > when the system is under memory pressure, in this case, we just refuse to > free the

Re: Old platforms: bring out your dead

2021-02-05 Thread Pavel Machek
On Fri 2021-02-05 09:13:03, David Laight wrote: > > We have open-hardware implementation for 486, AFAICT, thanks to MISTer > > project. I'm not aware of open 586 core. > > > > Being able to run recent Linux on open hardware sounds fun. > > Putting a 486 on an fpga might be 'interesting'. > But

Re: [RFC][PATCH 1/2] x86: remove duplicate TSC DEADLINE MSR definitions

2021-02-05 Thread Borislav Petkov
On Thu, Mar 05, 2020 at 09:47:06AM -0800, Dave Hansen wrote: > > There are two definitions for the TSC deadline MSR in msr-index.h, > one with an underscore and one without. Axe one of them and move > all the references over to the other one. > > Cc: x...@kernel.org > Cc: Peter Zijlstra > >

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-02-05 Thread Christoph Hellwig
This is a pattern we've seen in a few other net driver, so we should be ok. It just is rather hairy and needs a good justification, which seems to be given here.

Re: [PATCH] sound: x86: Trivial spell fixes throughout the file intel_hdmi_audio.c

2021-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2021 10:32:14 +0100, Bhaskar Chowdhury wrote: > > > > s/confgiuration/configuration/ > s/Calculte/Calculate/ > s/unreference/unreferenced/ The last one isn't correct. It was meant as a positive form, so if any, it's "unrefer", but "reference" could be used as a verb in the tech

Re: [PATCH V7 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-02-05 Thread Geert Uytterhoeven
Hi Viresh, On Fri, Feb 5, 2021 at 10:25 AM Viresh Kumar wrote: > On 05-02-21, 10:02, Geert Uytterhoeven wrote: > > Thanks for your patch > > (which I only noticed because it appeared in dt-rh/for-next ;-) > > > > On Fri, Jan 29, 2021 at 8:31 AM Viresh Kumar > > wrote: > > > Add support for

[PATCH] media: rc/ite-cir: replace spin_lock_irqsave by spin_lock in hard IRQ

2021-02-05 Thread Daode Huang
It is redundant to do irqsave and irqrestore in hardIRQ context. Signed-off-by: Daode Huang --- drivers/media/rc/ite-cir.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 0c62295..4a51ca80 100644 ---

Re: [PATCH] ARM: kexec: Fix panic after TLB are invalidated

2021-02-05 Thread Russell King - ARM Linux admin
On Fri, Feb 05, 2021 at 12:40:54AM +, Giancarlo Ferrari wrote: > Russell, > > On Fri, Feb 05, 2021 at 12:18:33AM +, Russell King - ARM Linux admin > wrote: > > On Thu, Feb 04, 2021 at 11:48:42PM +, Giancarlo Ferrari wrote: > > > Can I ask about having it integrated ? > > > > Thanks

[PATCH 2/4] hwmon: Use subdir-ccflags-* to inherit debug flag

2021-02-05 Thread Yicong Yang
From: Junhao He Use subdir-ccflags-* instead of ccflags-* to inherit the debug settings from Kconfig when traversing subdirectories. Suggested-by: Bjorn Helgaas Signed-off-by: Junhao He Signed-off-by: Yicong Yang --- drivers/hwmon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/4] pps: Use subdir-ccflags-* to inherit debug flag

2021-02-05 Thread Yicong Yang
From: Junhao He Use subdir-ccflags-* instead of ccflags-* to inherit the debug settings from Kconfig when traversing subdirectories. Suggested-by: Bjorn Helgaas Signed-off-by: Junhao He Signed-off-by: Yicong Yang --- drivers/pps/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 1/2] mmc: mmci: enable MMC_CAP_NEED_RSP_BUSY

2021-02-05 Thread Ulf Hansson
- trimmed cc-list On Thu, 4 Feb 2021 at 13:08, wrote: > > From: Yann Gautier > > To properly manage commands awaiting R1B responses, the capability > MMC_CAP_NEED_RSP_BUSY is enabled in mmci driver, for variants that > manage busy detection. > This R1B management needs both the flags

Re: [PATCH 4/4] staging: comedi: Use subdir-ccflags-* to inherit debug flag

2021-02-05 Thread Greg KH
On Fri, Feb 05, 2021 at 05:44:15PM +0800, Yicong Yang wrote: > From: Junhao He > > Use subdir-ccflags-* instead of ccflags-* to inherit the debug > settings from Kconfig when traversing subdirectories. Again, explain _why_. Please read the section entitled "The canonical patch format" in the

[tip: x86/sgx] x86/sgx: Drop racy follow_pfn() check

2021-02-05 Thread tip-bot2 for Daniel Vetter
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: dc9b7be557ca94301ea5c06c0d72307e642ffb18 Gitweb: https://git.kernel.org/tip/dc9b7be557ca94301ea5c06c0d72307e642ffb18 Author:Daniel Vetter AuthorDate:Thu, 04 Feb 2021 19:45:19 +01:00 Committer:

[PATCH] net/mlx5: docs: correct section reference in table of contents

2021-02-05 Thread Lukas Bulwahn
Commit 142d93d12dc1 ("net/mlx5: Add devlink subfunction port documentation") refers to a section 'mlx5 port function' in the table of contents, but includes a section 'mlx5 function attributes' instead. Hence, make htmldocs warns: mlx5.rst:16: WARNING: Unknown target name: "mlx5 port

[PATCH v4 5/7] gpio: ep93xx: Fix typo s/hierarchial/hierarchical

2021-02-05 Thread Nikita Shubin
Fix typo in comment. Signed-off-by: Nikita Shubin --- drivers/gpio/gpio-ep93xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 6208a8010ff5..d330bff4d9f9 100644 --- a/drivers/gpio/gpio-ep93xx.c +++

[GIT PULL] KVM fixes for 5.11-rc7

2021-02-05 Thread Paolo Bonzini
Linus, The following changes since commit 9a78e15802a87de2b08dfd1bd88e855201d2c8fa: KVM: x86: allow KVM_REQ_GET_NESTED_STATE_PAGES outside guest mode for VMX (2021-01-25 18:54:09 -0500) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus

[RFC][PATCH v6 7/7] dma-buf: system_heap: Add deferred freeing to the system heap

2021-02-05 Thread John Stultz
Utilize the deferred free helper library in the system heap. This provides a nice performance bump and puts the system heap performance on par with ION. Cc: Daniel Vetter Cc: Christian Koenig Cc: Sumit Semwal Cc: Liam Mark Cc: Chris Goldsworthy Cc: Laura Abbott Cc: Brian Starkey Cc:

[RFC][PATCH v6 3/7] drm: ttm_pool: Rework ttm_pool_free_page to allow us to use it as a function pointer

2021-02-05 Thread John Stultz
This refactors ttm_pool_free_page(), and by adding extra entries to ttm_pool_page_dat, we then use it for all allocations, which allows us to simplify the arguments needed to be passed to ttm_pool_free_page(). This is critical for allowing the free function to be called by the sharable

[PATCH v4 6/7] gpio: ep93xx: refactor ep93xx_gpio_add_bank

2021-02-05 Thread Nikita Shubin
- replace plain numbers with girq->num_parents in devm_kcalloc - replace plain numbers with girq->num_parents for port F - refactor i - 1 to i + 1 to make loop more readable - combine getting IRQ's loop and setting handler's into single loop Signed-off-by: Nikita Shubin ---

[RFC][PATCH v6 2/7] drm: ttm_pool: Rename the ttm_pool_dma structure to ttm_pool_page_dat

2021-02-05 Thread John Stultz
This patch simply renames the ttm_pool_dma structure to ttm_pool_page_dat, as we will extend it to store more then just dma related info in it. Cc: Daniel Vetter Cc: Christian Koenig Cc: Sumit Semwal Cc: Liam Mark Cc: Chris Goldsworthy Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya

Re: [PATCH v2 4/4] KVM: x86: Expose Architectural LBR CPUID and its XSAVES bit

2021-02-05 Thread Xu, Like
Hi Paolo, I am wondering if it is acceptable for you to review the minor Architecture LBR patch set without XSAVES for v5.12 ? As far as I know, the guest Arch LBR  can still work without XSAVES support. --- thx,likexu On 2021/2/4 8:59, Xu, Like wrote: On 2021/2/3 22:37, Paolo Bonzini wrote:

RE: [PATCH] scsi: ufs: print the counter of each event history

2021-02-05 Thread Avri Altman
> > > Since only print the recorded event history list, > add to print the counter value. > > Signed-off-by: DooHyun Hwang Reviewed-by: Avri Altman Btw, You have the counter now in ufs-debugfs as well. Thanks, Avri

[PATCH] nios2: fixed broken sys_clone syscall

2021-02-05 Thread Andreas Oetken
From: Andreas Oetken The tls pointer must be pushed on the stack prior to calling nios2_clone as it is the 5th function argument. Prior handling of the tls pointer was done inside former called function copy_thread_tls using the r8 register from the current_pt_regs directly. This was a bad

Re: [PATCH v3 07/11] iio: add reference to iio buffer on iio_dev_attr

2021-02-05 Thread Alexandru Ardelean
On Thu, Feb 4, 2021 at 8:16 PM Jonathan Cameron wrote: > > On Mon, 1 Feb 2021 16:51:01 +0200 > Alexandru Ardelean wrote: > > > This change adds a reference to a 'struct iio_buffer' object on the > > iio_dev_attr object. This way, we can use the created iio_dev_attr objects > > on per-buffer

Re: [PATCH] mm: memcontrol: fix missing wakeup oom task

2021-02-05 Thread Michal Hocko
On Fri 05-02-21 14:23:10, Muchun Song wrote: > We call memcg_oom_recover() in the uncharge_batch() to wakeup OOM task > when page uncharged, but for the slab pages, we do not do this when page > uncharged. How does the patch deal with this? > When we drain per cpu stock, we also should do this.

Re: [PATCH 1/2] Add namespace tags that can be used for matching without pinning a ns

2021-02-05 Thread David Howells
Jarkko Sakkinen wrote: > > + * init_ns_common - Initialise the common part of a namespace > > Nit: init_ns_common() Interesting. The majority of code doesn't put the brackets in. > I've used lately (e.g. arch/x86/kernel/cpu/sgx/ioctl.c) along the lines: > > * Return: > * - 0:

[PATCH v4 4/5] KVM: MMU: Add support for PKS emulation

2021-02-05 Thread Chenyi Qiang
In addition to the pkey check for user pages, advertise pkr_mask also to cache the conditions where protection key checks for supervisor pages are needed. Add CR4_PKS in mmu_role_bits to track the pkr_mask update on a per-mmu basis. In original cache conditions of pkr_mask, U/S bit in page tables

Re: [PATCH v4 2/7] gpio: gpio-ep93xx: Fix single irqchip with multi gpiochips

2021-02-05 Thread Alexander Sverdlin
Hi! On Fri, 2021-02-05 at 11:05 +0300, Nikita Shubin wrote: > Fixes the following warnings which results in interrupts disabled on > port B/F: > > gpio gpiochip1: (B): detected irqchip that is shared with multiple gpiochips: > please fix the driver. > gpio gpiochip5: (F): detected irqchip that

Re: [RFC -V5 1/6] NUMA balancing: optimize page placement for memory tiering system

2021-02-05 Thread Huang, Ying
Hillf Danton writes: > On Thu, 4 Feb 2021 18:10:51 +0800 Huang Ying wrote: >> With the advent of various new memory types, some machines will have >> multiple types of memory, e.g. DRAM and PMEM (persistent memory). The >> memory subsystem of these machines can be called memory tiering >>

[PATCH v4 5/5] KVM: VMX: Enable PKS for nested VM

2021-02-05 Thread Chenyi Qiang
PKS MSR passes through guest directly. Configure the MSR to match the L0/L1 settings so that nested VM runs PKS properly. Signed-off-by: Chenyi Qiang --- arch/x86/kvm/vmx/nested.c | 37 +++-- arch/x86/kvm/vmx/vmcs12.c | 2 ++ arch/x86/kvm/vmx/vmcs12.h | 6

RE: [PATCH] scsi: ufs: print the counter of each event history

2021-02-05 Thread DooHyun Hwang
>> >> Since only print the recorded event history list, add to print the >> counter value. >> >> Signed-off-by: DooHyun Hwang >Reviewed-by: Avri Altman > >Btw, You have the counter now in ufs-debugfs as well. > >Thanks, >Avri Thank you for your review and information. I hope to be able to

Re: [PATCH] mm: memcontrol: remove rcu_read_lock from get_mem_cgroup_from_page

2021-02-05 Thread Michal Hocko
On Fri 05-02-21 14:27:19, Muchun Song wrote: > The get_mem_cgroup_from_page() is called under page lock, so the page > memcg cannot be changed under us. Where is the page lock enforced? > Also, css_get is enough because page > has a reference to the memcg. tryget used to be there to guard

Re: [PATCH v3 08/13] vdpa: add return value to get_config/set_config callbacks

2021-02-05 Thread Stefano Garzarella
Adding Eli in the loop. On Fri, Feb 05, 2021 at 11:20:11AM +0800, Jason Wang wrote: On 2021/2/5 上午1:22, Stefano Garzarella wrote: All implementations of these callbacks already validate inputs. Let's return an error from these callbacks, so the caller doesn't need to validate the input

Re: [PATCH] hugetlb_cgroup: use helper pages_per_huge_page() in hugetlb_cgroup

2021-02-05 Thread David Hildenbrand
On 05.02.21 09:45, Miaohe Lin wrote: We could use helper function pages_per_huge_page() to get the number of pages in a hstate to simplify the code slightly. Signed-off-by: Miaohe Lin --- mm/hugetlb_cgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH] drivers: gpu: drm: msn: disp: dpu1: Fixed couple of spellings in the file dpu_hw_top.h

2021-02-05 Thread Bhaskar Chowdhury
s/confguration/configuration/ s/Regsiters/Registers/ Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h

Re: [PATCH][next][V2] iommu/mediatek: Fix unsigned domid comparison with less than zero

2021-02-05 Thread Joerg Roedel
On Thu, Feb 04, 2021 at 03:00:01PM +, Colin King wrote: > drivers/iommu/mtk_iommu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.

Re: [PATCH v14 0/8] Free some vmemmap pages of HugeTLB page

2021-02-05 Thread Oscar Salvador
On Thu, Feb 04, 2021 at 11:50:35AM +0800, Muchun Song wrote: > Changelog in v13 -> v14: > - Refuse to free the HugeTLB page when the system is under memory pressure. > - Use GFP_ATOMIC to allocate vmemmap pages instead of GFP_KERNEL. > - Rebase to linux-next 20210202. > - Fix and add some

[PATCH] drivers: scsi: File ipr.c gets few spelling fixes

2021-02-05 Thread Bhaskar Chowdhury
s/Enablement/Entablement/ s/specfied/specified/ s/confgurations/configurations/ Signed-off-by: Bhaskar Chowdhury --- drivers/scsi/ipr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index e451102b9a29..c12c0a309c54 100644

Re: [RFC PATCH 01/11] iommu/arm-smmu-v3: Add feature detection for HTTU

2021-02-05 Thread Keqian Zhu
Hi Robin and Jean, On 2021/2/5 3:50, Robin Murphy wrote: > On 2021-01-28 15:17, Keqian Zhu wrote: >> From: jiangkunkun >> >> The SMMU which supports HTTU (Hardware Translation Table Update) can >> update the access flag and the dirty state of TTD by hardware. It is >> essential to track dirty

Re: [PATCH] HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming

2021-02-05 Thread Jiri Kosina
On Sat, 30 Jan 2021, Filipe Laíns wrote: > From: Filipe Laíns > > In e400071a805d6229223a98899e9da8c6233704a1 I added support for the > receiver that comes with the G602 device, but unfortunately I screwed up > during testing and it seems the keyboard events were actually not being > sent to

Re: [PATCH v4 2/5] KVM: X86: Expose PKS to guest

2021-02-05 Thread Paolo Bonzini
On 05/02/21 09:37, Chenyi Qiang wrote: diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c index 57718716cc70..8027f854c600 100644 --- a/arch/x86/mm/pkeys.c +++ b/arch/x86/mm/pkeys.c @@ -390,3 +390,9 @@ void pks_key_free(int pkey) __clear_bit(pkey, _key_allocation_map); }

[PATCH v2] staging: qlge/qlge_main: Use min_t instead of min

2021-02-05 Thread ameynarkhede02
From: Amey Narkhede Use min_t instead of min function in qlge/qlge_main.c Fixes following checkpatch.pl warning: WARNING: min() should probably be min_t(int, MAX_CPUS, num_online_cpus()) Signed-off-by: Amey Narkhede --- Changes in v2: - Remove superfluous int cast from num_online_cpus

Re: [PATCH v3 10/11] iio: buffer: introduce support for attaching more IIO buffers

2021-02-05 Thread Alexandru Ardelean
On Thu, Feb 4, 2021 at 8:39 PM Jonathan Cameron wrote: > > On Mon, 1 Feb 2021 16:51:04 +0200 > Alexandru Ardelean wrote: > > > With this change, calling iio_device_attach_buffer() will actually attach > > more buffers. > > Right now this doesn't do any validation of whether a buffer is attached

Re: [External] Re: [PATCH v14 0/8] Free some vmemmap pages of HugeTLB page

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 4:59 PM Oscar Salvador wrote: > > On Thu, Feb 04, 2021 at 11:50:35AM +0800, Muchun Song wrote: > > Changelog in v13 -> v14: > > - Refuse to free the HugeTLB page when the system is under memory > > pressure. > > - Use GFP_ATOMIC to allocate vmemmap pages instead of

Re: [printk] b031a684bf: INFO:rcu_tasks_detected_stalls_on_tasks

2021-02-05 Thread Petr Mladek
On Thu 2021-02-04 22:38:02, John Ogness wrote: > On 2021-01-22, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-9): > > > > commit: b031a684bfd01d633c79d281bd0cf11c2f834ada ("printk: remove > > logbuf_lock writer-protection of ringbuffer") > >

[PATCH] MIPS: crash_dump.c: Simplify copy_oldmem_page()

2021-02-05 Thread Youling Tang
Replace kmap_atomic_pfn() with kmap_local_pfn() which is preemptible and can take page faults. Remove the indirection of the dump page and the related cruft which is not longer required. Remove unused or redundant header files. Signed-off-by: Youling Tang --- arch/mips/kernel/crash_dump.c |

[PATCH] sound: x86: Trivial spell fixes throughout the file intel_hdmi_audio.c

2021-02-05 Thread Bhaskar Chowdhury
s/confgiuration/configuration/ s/Calculte/Calculate/ s/unreference/unreferenced/ Signed-off-by: Bhaskar Chowdhury --- sound/x86/intel_hdmi_audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c index

Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

2021-02-05 Thread Marcin Wojtas
Hi Kosta, Let me chime in. śr., 3 lut 2021 o 17:57 Kostya Porotchkin napisał(a): > > Hello, Russell, > I agree that this patch needs rework. > I will definitely do it and issue a new version. > > > On Wed, Feb 03, 2021 at 02:50:45PM +, Kostya Porotchkin wrote: > > > [KP] So for older

Re: [PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-02-05 Thread Robert Foss
On Thu, 4 Feb 2021 at 23:25, Nicolas Boichat wrote: > > On Thu, Feb 4, 2021 at 8:59 PM Andrzej Hajda wrote: > > > > > > W dniu 04.02.2021 o 13:34, Nicolas Boichat pisze: > > > On Thu, Feb 4, 2021 at 8:07 PM Robert Foss wrote: > > >> Hi Xin, > > >> > > >> Thanks for the patch. > > >> > > >> On

Re: [PATCH 05/18] tty: serial: samsung_tty: add support for Apple UARTs

2021-02-05 Thread Hector Martin 'marcan'
On 05/02/2021 08.55, kernel test robot wrote: drivers/tty/serial/samsung_tty.c:60: warning: "NO_IRQ" redefined 60 | #define NO_IRQ -1 Turns out arm (32) defines NO_IRQ. Replaced with NOT_IN_IRQ for v2. -- Hector Martin "marcan" (mar...@marcan.st) Public Key: https://mrcn.st/pub

Re: [PATCH 1/2] spi: spi-mem: add spi_mem_dtr_supports_op()

2021-02-05 Thread Miquel Raynal
Hi Pratyush, Pratyush Yadav wrote on Thu, 4 Feb 2021 19:42:17 +0530: > spi_mem_default_supports_op() rejects DTR ops by default to ensure that > the controller drivers that haven't been updated with DTR support > continue to reject them. It also makes sure that controllers that don't > support

  1   2   3   4   5   6   7   8   9   10   >