Re: [RFC PATCH v0 00/19] x86/insn: Add an insn_decode() API

2020-11-25 Thread Masami Hiramatsu
On Tue, 24 Nov 2020 18:46:47 +0100 Borislav Petkov wrote: > On Tue, Nov 24, 2020 at 11:19:33AM +0100, Borislav Petkov wrote: > > In any case, at least the case where I give it > > > > 0x48 0xcf 0x48 0x83 > > > > and say that buf size is 4, should return an error because the second > > insn is

Re: [PATCH v1 1/2] PM: ACPI: PCI: Drop acpi_pm_set_bridge_wakeup()

2020-11-25 Thread Mika Westerberg
On Tue, Nov 24, 2020 at 08:44:00PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The idea behind acpi_pm_set_bridge_wakeup() was to allow bridges to > be reference counted for wakeup enabling, because they may be enabled > to signal wakeup on behalf of their subordinate devices

[GIT PULL for v5.10-rc6] media fixes

2020-11-25 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.10-2 For: - a rand Kconfig fixup for mtk-vcodec; - a fix at h264 handling at cedrus codec driver; - some warning fixes when config PM is not enabled at marvell-ccic; - two

Re: [PATCH] mmc: sdhci: Use more concise device_property_read_u64

2020-11-25 Thread Adrian Hunter
On 25/11/20 5:36 am, Jeremy Linton wrote: > Since we only need a single u64 the _array form is > unnecessarily. Use device_property_read_u64 instead. > > Signed-off-by: Jeremy Linton Thank you :-) Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci.c | 8 > 1 file changed, 4

Re: [PATCH v1 2/2] PM: ACPI: Refresh wakeup device power configuration every time

2020-11-25 Thread Mika Westerberg
On Tue, Nov 24, 2020 at 08:46:38PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > When wakeup signaling is enabled for a bridge for the second (or every > next) time in a row, its existing device wakeup power configuration > may not match the new conditions. For example, some

Re: [PATCH 3/3] media: hfi_venus: Request interrupt for sync cmds

2020-11-25 Thread Alexandre Courbot
On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov wrote: > > From: Vikash Garodia > > For synchronous commands, update the message queue variable. > This would inform video firmware to raise interrupt on host > CPU whenever there is a response for such commands. > > Signed-off-by: Vikash Garodia

Re: [PATCH 1/3] perf/core: Flush PMU internal buffers for per-CPU events

2020-11-25 Thread Michael Ellerman
Namhyung Kim writes: > Hello, > > On Mon, Nov 23, 2020 at 8:00 PM Michael Ellerman wrote: >> >> Namhyung Kim writes: >> > Hi Peter and Kan, >> > >> > (Adding PPC folks) >> > >> > On Tue, Nov 17, 2020 at 2:01 PM Namhyung Kim wrote: >> >> >> >> Hello, >> >> >> >> On Thu, Nov 12, 2020 at 4:54 AM

Re: [PATCH RESEND 1/2] MIPS: cacheinfo: Add missing VCache

2020-11-25 Thread Tiezhu Yang
On 11/03/2020 01:40 PM, Jiaxun Yang wrote: 在 2020/8/22 0:55, Thomas Bogendoerfer 写道: On Thu, Aug 20, 2020 at 08:42:49AM +0800, Jiaxun Yang wrote: Victim Cache is defined by Loongson as per-core unified private Cache. Add this into cacheinfo and make cache levels selfincrement instead of

Re: [PATCH] riscv: defconfig: k210: Disable CONFIG_VT

2020-11-25 Thread Geert Uytterhoeven
Hi Damien, On Wed, Nov 25, 2020 at 7:14 AM Damien Le Moal wrote: > On 2020/11/25 3:57, Geert Uytterhoeven wrote: > > There is no need to enable Virtual Terminal support in the Canaan > > Kendryte K210 defconfigs, as no terminal devices are supported and > > enabled. Hence disable CONFIG_VT, and

Re: [PATCH] efi: EFI_EARLYCON should depend on EFI

2020-11-25 Thread Damien Le Moal
On Tue, 2020-11-24 at 20:16 +0100, Geert Uytterhoeven wrote: > CONFIG_EFI_EARLYCON defaults to yes, and thus is enabled on systems that > do not support EFI, or do not have EFI support enabled, but do satisfy > the symbol's other dependencies. > > While drivers/firmware/efi/ won't be entered

Re: [PATCH] efi: EFI_EARLYCON should depend on EFI

2020-11-25 Thread Ard Biesheuvel
On Wed, 25 Nov 2020 at 09:21, Damien Le Moal wrote: > > On Tue, 2020-11-24 at 20:16 +0100, Geert Uytterhoeven wrote: > > CONFIG_EFI_EARLYCON defaults to yes, and thus is enabled on systems that > > do not support EFI, or do not have EFI support enabled, but do satisfy > > the symbol's other

Re: Linux 5.10-rc4; graphics alignment

2020-11-25 Thread Thomas Zimmermann
Hi Am 24.11.20 um 17:27 schrieb David Laight: From: David Laight Sent: 20 November 2020 15:39 From: Thomas Zimmermann Sent: 20 November 2020 13:42 ... I did a diff from v5.10-rc4 to drm-tip to look for suspicious changes. Some candidates are 8e3784dfef8a ("drm/ast: Reload gamma LUT

Re: [PATCH] arm64: dts: ls1028a: make the eMMC and SD card controllers use fixed indices

2020-11-25 Thread Michael Walle
Hi Yangbo, Hi Shawn, Am 2020-11-25 03:59, schrieb Y.b. Lu: -Original Message- From: Vladimir Oltean Sent: Tuesday, November 24, 2020 7:28 PM To: Y.b. Lu Cc: Michael Walle ; Shawn Guo ; Leo Li ; Rob Herring ; linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; Adrian

Re: [PATCH] riscv: defconfig: k210: Disable CONFIG_VT

2020-11-25 Thread Damien Le Moal
On Wed, 2020-11-25 at 09:20 +0100, Geert Uytterhoeven wrote: > Hi Damien, > > On Wed, Nov 25, 2020 at 7:14 AM Damien Le Moal wrote: > > On 2020/11/25 3:57, Geert Uytterhoeven wrote: > > > There is no need to enable Virtual Terminal support in the Canaan > > > Kendryte K210 defconfigs, as no

[PATCH] nfsd: Fix error return code in nfsd_file_cache_init()

2020-11-25 Thread Huang Guobin
Fix to return PTR_ERR() error code from the error handling case instead of 0 in function nfsd_file_cache_init(), as done elsewhere in this function. Fixes: 65294c1f2c5e7("nfsd: add a new struct file caching facility to nfsd") Signed-off-by: Huang Guobin --- fs/nfsd/filecache.c | 1 + 1 file

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

2020-11-25 Thread Vincent Guittot
On Wed, 25 Nov 2020 at 03:03, Li, Aubrey wrote: > > On 2020/11/25 1:01, Vincent Guittot wrote: > > Hi Aubrey, > > > > Le mardi 24 nov. 2020 à 15:01:38 (+0800), Li, Aubrey a écrit : > >> Hi Vincent, > >> > >> On 2020/11/23 17:27, Vincent Guittot wrote: > >>> Hi Aubrey, > >>> > >>> On Thu, 19 Nov

Re: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-25 Thread Greg Kroah-Hartman
On Tue, Nov 24, 2020 at 10:24:27PM +0100, Oleksandr Natalenko wrote: > Hi. > > On 24.11.2020 15:23, Ard Biesheuvel wrote: > > Surely caused by > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/efivarfs?id=fe5186cf12e30facfe261e9be6c7904a170bd822 > > This also

Re: [PATCH v4 10/18] dt-bindings: usb: Convert DWC USB3 bindings to DT schema

2020-11-25 Thread Serge Semin
On Sat, Nov 21, 2020 at 06:42:28AM -0600, Rob Herring wrote: > On Thu, Nov 12, 2020 at 01:29:46PM +0300, Serge Semin wrote: > > On Wed, Nov 11, 2020 at 02:14:23PM -0600, Rob Herring wrote: > > > On Wed, Nov 11, 2020 at 12:08:45PM +0300, Serge Semin wrote: > > > > DWC USB3 DT node is supposed to be

Re: [PATCH v3 1/4] pwm: pca9685: Switch to atomic API

2020-11-25 Thread Clemens Gruber
On Tue, Nov 24, 2020 at 10:49:27PM -0500, Sven Van Asbroeck wrote: > Hi Clemens, I checked the patch against the datasheet register definitions. > More constructive feedback below. > > On Tue, Nov 24, 2020 at 1:10 PM Clemens Gruber > wrote: > > > > The switch to the atomic API goes hand in hand

Re: linux-next: manual merge of the rdma tree with the arm-soc tree

2020-11-25 Thread Christoph Hellwig
On Wed, Nov 25, 2020 at 12:33:51PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > include/linux/dma-mapping.h > > between commit: > > 16fee29b0735 ("dma-mapping: remove the dma_direct_set_offset export") > > from the arm-soc

Re: [PATCH -tip 12/32] sched: Simplify the core pick loop for optimized case

2020-11-25 Thread Peter Zijlstra
On Tue, Nov 24, 2020 at 12:04:30PM -0500, Joel Fernandes wrote: > Hi Peter, > > On Tue, Nov 24, 2020 at 01:04:38PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 17, 2020 at 06:19:42PM -0500, Joel Fernandes (Google) wrote: > > > + /* > > > + * Optimize for common case where this CPU has no cookies

Re: [PATCH v3 3/4] pwm: pca9685: Support staggered output ON times

2020-11-25 Thread Clemens Gruber
On Tue, Nov 24, 2020 at 10:51:23PM -0500, Sven Van Asbroeck wrote: > On Tue, Nov 24, 2020 at 1:10 PM Clemens Gruber > wrote: > > > > The PCA9685 supports staggered LED output ON times to minimize current > > surges and reduce EMI. > > When this new option is enabled, the ON times of each channel

Re: [PATCH -tip 15/32] sched: Improve snapshotting of min_vruntime for CGroups

2020-11-25 Thread Peter Zijlstra
On Tue, Nov 24, 2020 at 12:07:44PM -0500, Joel Fernandes wrote: > Either way would be Ok with me, I would suggest retaining the history though > so that the details in the changelog are preserved of the issues we faced, > and in the future we can refer back to them. Well, in part that's what we

Re: [PATCH 1/2] sparc: Fix handling of page table constructor failure

2020-11-25 Thread David Hildenbrand
On 25.11.20 04:46, Matthew Wilcox (Oracle) wrote: > The page has just been allocated, so its refcount is 1. free_unref_page() > is for use on pages which have a zero refcount. Use __free_page() > like the other implementations of pte_alloc_one(). > > Fixes: 1ae9ae5f7df7 ("sparc: handle

Re: [PATCH 2/2] mm: Move free_unref_page to mm/internal.h

2020-11-25 Thread David Hildenbrand
On 25.11.20 04:46, Matthew Wilcox (Oracle) wrote: > Code outside mm/ should not be calling free_unref_page(). Also > move free_unref_page_list(). > > Signed-off-by: Matthew Wilcox (Oracle) > --- > include/linux/gfp.h | 2 -- > mm/internal.h | 3 +++ > 2 files changed, 3 insertions(+), 2

[PATCH v5 2/2] usb: typec: Expose Product Type VDOs via sysfs

2020-11-25 Thread Prashant Malani
A PD-capable device can return up to 3 Product Type VDOs as part of its DiscoverIdentity Response (USB PD Spec, Rev 3.0, Version 2.0, Section 6.4.4.3.1). Add sysfs attributes to expose these to userspace. Cc: Benson Leung Cc: Heikki Krogerus Signed-off-by: Prashant Malani Reviewed-by: Heikki

[PATCH v5 1/2] usb: typec: Consolidate sysfs ABI documentation

2020-11-25 Thread Prashant Malani
Both partner and cable have identity VDOs. These are listed separately in the Documentation/ABI/testing/sysfs-class-typec. Factor these out into a common location to avoid the duplication. Signed-off-by: Prashant Malani Acked-by: Heikki Krogerus --- Changes in v5: - Corrected the email address

Re: Ubuntu mainline kernel builds now failing not able to find module.lds file

2020-11-25 Thread Jessica Yu
+++ Salvatore Bonaccorso [25/11/20 07:01 +0100]: Hi Steve, On Fri, Oct 30, 2020 at 12:43:24AM -0500, Steve French wrote: I typically build cifs.ko for testing using the latest Ubuntu mainline build - but building a module in the 5.10-rc1 kernel - while booted to the 5.10-rc1 ubuntu

Re: [PATCH 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer()

2020-11-25 Thread Sergei Shtylyov
Hello! On 24.11.2020 14:25, Lad Prabhakar wrote: In the error path of rpcif_manual_xfer() the value of ret is overwritten by value returned by reset_control_reset() function and thus returning incorrect value to the caller. This patch makes sure the correct value is returned to the caller of

Re: [PATCH -tip 19/32] entry/idle: Enter and exit kernel protection during idle entry and exit

2020-11-25 Thread Peter Zijlstra
On Tue, Nov 24, 2020 at 01:03:43PM -0500, Joel Fernandes wrote: > On Tue, Nov 24, 2020 at 05:13:35PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 17, 2020 at 06:19:49PM -0500, Joel Fernandes (Google) wrote: > > > +static inline void generic_idle_enter(void) > > > +static inline void

Re: [PATCH v4 1/2] usb: typec: Consolidate sysfs ABI documentation

2020-11-25 Thread Prashant Malani
Hi Heikki, On Tue, Nov 24, 2020 at 11:53 PM Heikki Krogerus wrote: > > On Wed, Nov 25, 2020 at 09:46:06AM +0200, Heikki Krogerus wrote: > > On Tue, Nov 24, 2020 at 12:32:35PM -0800, Prashant Malani wrote: > > > Hi, > > > > > > On Tue, Nov 24, 2020 at 12:10:31PM -0800, Prashant Malani wrote: > >

Re: nwl-dsi: fixup mode only for LCDIF input, not DCSS

2020-11-25 Thread Guido Günther
Hi Lukas, On Tue, Nov 24, 2020 at 06:12:17PM +0100, Lukas F. Hartmann wrote: > The fixup of HSYNC and VSYNC should not be done when the input source is > DCSS, or internal display does not work on MNT Reform 2 (open hardware > laptop based on NXP i.MX8M using DCSS->DSI->eDP for internal display).

Re: [PATCH] riscv: defconfig: k210: Disable CONFIG_VT

2020-11-25 Thread Geert Uytterhoeven
Hi Damien, On Wed, Nov 25, 2020 at 7:14 AM Damien Le Moal wrote: > On 2020/11/25 3:57, Geert Uytterhoeven wrote: > > There is no need to enable Virtual Terminal support in the Canaan > > Kendryte K210 defconfigs, as no terminal devices are supported and > > enabled. Hence disable CONFIG_VT, and

Re: [PATCH 1/1] mm: compaction: avoid fast_isolate_around() to set pageblock_skip on reserved pages

2020-11-25 Thread Mike Rapoport
On Wed, Nov 25, 2020 at 07:45:30AM +0100, David Hildenbrand wrote: > > > Am 25.11.2020 um 06:34 schrieb Andrea Arcangeli : > > > > Hello, > > > >> On Mon, Nov 23, 2020 at 02:01:16PM +0100, Vlastimil Babka wrote: > >>> On 11/21/20 8:45 PM, Andrea Arcangeli wrote: > >>> A corollary issue was

Finanziamenti per la realizzazione di progetti redditizi

2020-11-25 Thread kennethscott12122
Mi chiamo Kenneth Scott, sono un finanziere privato e sono disposto a concederti prestiti da 5.000 euro a 50.000.000 euro con un tasso di interesse del 2% sull'intero periodo di rimborso. Ecco le aree in cui posso aiutarti: 1- Finanziamenti per la realizzazione di progetti redditizi. 2-

Re: [PATCH 1/2] sparc: Fix handling of page table constructor failure

2020-11-25 Thread Mike Rapoport
On Wed, Nov 25, 2020 at 03:46:54AM +, Matthew Wilcox (Oracle) wrote: > The page has just been allocated, so its refcount is 1. free_unref_page() > is for use on pages which have a zero refcount. Use __free_page() > like the other implementations of pte_alloc_one(). > > Fixes: 1ae9ae5f7df7

Re: [PATCH 2/2] mm: Move free_unref_page to mm/internal.h

2020-11-25 Thread Mike Rapoport
On Wed, Nov 25, 2020 at 03:46:55AM +, Matthew Wilcox (Oracle) wrote: > Code outside mm/ should not be calling free_unref_page(). Also > move free_unref_page_list(). > > Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Mike Rapoport > --- > include/linux/gfp.h | 2 -- > mm/internal.h

Re: [PATCH 3/5] memory: renesas-rpc-if: Export symbols as GPL

2020-11-25 Thread Sergei Shtylyov
On 24.11.2020 14:25, Lad Prabhakar wrote: Renesas RPC-IF driver is licensed under GPL2.0, to be in sync export the symbols as GPL. Didn't know there's a connection... Suggested-by: Pavel Machek Signed-off-by: Lad Prabhakar Reviewed-by: Sergei Shtylyov [...] MBR, Sergei

Re: [PATCH v6 17/17] RFC: mm: add mmu_notifier argument to follow_pfn

2020-11-25 Thread Daniel Vetter
On Wed, Nov 25, 2020 at 9:13 AM Jason Gunthorpe wrote: > > On Tue, Nov 24, 2020 at 03:28:14PM +0100, Daniel Vetter wrote: > > On Fri, Nov 20, 2020 at 02:30:29PM -0400, Jason Gunthorpe wrote: > > > On Thu, Nov 19, 2020 at 03:41:46PM +0100, Daniel Vetter wrote: > > > > @@ -4805,21 +4824,15 @@

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Sean Young
On Mon, Nov 23, 2020 at 07:58:06AM -0800, James Bottomley wrote: > On Mon, 2020-11-23 at 15:19 +0100, Miguel Ojeda wrote: > > On Sun, Nov 22, 2020 at 11:36 PM James Bottomley > > wrote: > > > It's not about the risk of the changes it's about the cost of > > > implementing them. Even if you

Re: [PATCH] riscv: defconfig: k210: Disable CONFIG_VT

2020-11-25 Thread Damien Le Moal
On 2020/11/25 17:51, Geert Uytterhoeven wrote: > Hi Damien, > > On Wed, Nov 25, 2020 at 7:14 AM Damien Le Moal wrote: >> On 2020/11/25 3:57, Geert Uytterhoeven wrote: >>> There is no need to enable Virtual Terminal support in the Canaan >>> Kendryte K210 defconfigs, as no terminal devices are

Re: [REGRESSION] omapdrm/N900 display broken

2020-11-25 Thread Daniel Vetter
On Tue, Aug 25, 2020 at 3:16 PM Tomi Valkeinen wrote: > > Hi Laurent, > > On 23/08/2020 19:26, Aaro Koskinen wrote: > > Hi, > > > > On Tue, Aug 04, 2020 at 03:39:37PM +0300, Tomi Valkeinen wrote: > >> On 04/08/2020 15:13, Tomi Valkeinen wrote: > > > >>> Can you try to pinpoint a bit where the

[PATCH] drm/ast: Fixed CVE for DP501

2020-11-25 Thread KuoHsiang Chou
[Bug][DP501] 1. For security concerning, P2A have to be disabled by CVE regulation. 2. FrameBuffer reverses last 2MB used for the image of DP501. 3. If P2A is disallowed, the default "ioremap()" behavior is non-cached and could be an alternative accessing on the image of DP501. ---

Re: [PATCH v1] spi: fix client driver breakages when using GPIO descriptors

2020-11-25 Thread Grant Likely
On 11/11/2020 13:36, Linus Walleij wrote: On Wed, Nov 11, 2020 at 1:33 PM Mark Brown wrote: On Wed, Nov 11, 2020 at 02:05:19AM +0100, Linus Walleij wrote: I would say that anything that has: spi->mode = ... is essentially broken. This is not clear to me, most of these settings

Re: [PATCH 1/2] firmware: arm_scmi: Add power_scale_mw_get() interface

2020-11-25 Thread Lukasz Luba
On 11/24/20 4:56 PM, Sudeep Holla wrote: On Tue, Nov 24, 2020 at 10:43:45AM +, Lukasz Luba wrote: Add a new interface to the existing perf_ops and export the information about the power values scale. This would be used by the cpufreq driver and Energy Model framework to set the

Re: [PATCH v1] spi: fix client driver breakages when using GPIO descriptors

2020-11-25 Thread Grant Likely
On 18/11/2020 11:40, Mark Brown wrote: On Wed, Nov 18, 2020 at 02:03:41AM +0100, Linus Walleij wrote: On Mon, Nov 16, 2020 at 10:06 PM Mark Brown wrote: I think the main push in the other direction has always been people who want to not have to write a driver at all and put absolutely

Re: kernel BUG at fs/ext4/inode.c:LINE!

2020-11-25 Thread Jan Kara
On Tue 24-11-20 12:19:12, Matthew Wilcox wrote: > On Mon, Nov 23, 2020 at 08:07:24PM -0800, Hugh Dickins wrote: > > Twice now, when exercising ext4 looped on shmem huge pages, I have crashed > > on the PF_ONLY_HEAD check inside PageWaiters(): ext4_finish_bio() calling > > end_page_writeback()

[PATCH v12 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport Hi, This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated memfd_secret system call The desired protection mode for the memory is configured using flags parameter of the

Re: [PATCH 1/9] regulator: Update DA9121 dt-bindings

2020-11-25 Thread Vincent Whitchurch
On Fri, Nov 20, 2020 at 02:47:42PM +0100, Vincent Whitchurch wrote: > On Fri, Nov 20, 2020 at 01:14:50PM +0100, Adam Ward wrote: > > - buck1: > > -description: > > - Initial data for the Buck1 regulator. > > -$ref: "regulator.yaml#" > > + interrupt-parent: > > +maxItems: 1 > > +

[PATCH v12 03/10] set_memory: allow set_direct_map_*_noflush() for multiple pages

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike

[PATCH v12 01/10] mm: add definition of PMD_PAGE_ORDER

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid

[PATCH v12 05/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_secret()

[PATCH v12 04/10] set_memory: allow querying whether set_direct_map_*() is actually enabled

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and

[PATCH v12 02/10] mmap: make mlock_future_check() global

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index c43ccdddb0f6..ae146a260b14

[PATCH v12 08/10] PM: hibernate: disable when there are active secretmem users

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by:

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

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann --- arch/arm64/include/uapi/asm/unistd.h | 1 +

[PATCH v12 06/10] secretmem: use PMD-size pages to amortize direct map fragmentation

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add

[PATCH v12 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport ---

Re: [PATCH] fpga: dfl: add missing platform_device_put in build_info_create_dev

2020-11-25 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Qinglang-Miao/fpga-dfl-add-missing-platform_device_put-in-build_info_create_dev/20201125-145159 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

[PATCH v12 07/10] secretmem: add memcg accounting

2020-11-25 Thread Mike Rapoport
From: Mike Rapoport Account memory consumed by secretmem to memcg. The accounting is updated when the memory is actually allocated and freed. Signed-off-by: Mike Rapoport Acked-by: Roman Gushchin --- mm/filemap.c | 3 ++- mm/secretmem.c | 36 +++- 2 files

Re: [PATCH] riscv: defconfig: k210: Disable CONFIG_VT

2020-11-25 Thread Geert Uytterhoeven
Hi Damien, On Wed, Nov 25, 2020 at 10:02 AM Damien Le Moal wrote: > On 2020/11/25 17:51, Geert Uytterhoeven wrote: > > On Wed, Nov 25, 2020 at 7:14 AM Damien Le Moal > > wrote: > >> On 2020/11/25 3:57, Geert Uytterhoeven wrote: > >>> There is no need to enable Virtual Terminal support in the

Re: [PATCH 0/2] SCMI performance protocol power scale interface

2020-11-25 Thread Lukasz Luba
Hi Rafael, On 11/24/20 10:43 AM, Lukasz Luba wrote: Hi all, The Energy Model (EM) supports power values expressed in an abstract scale via new API. The SCMI performance protocol provides the information about power scale. This patch set implements the needed interface and updates cpufreq

Re: [PATCH v3] vhost-vdpa: fix page pinning leakage in error path (rework)

2020-11-25 Thread Michael S. Tsirkin
On Thu, Nov 05, 2020 at 06:26:33PM -0500, Si-Wei Liu wrote: > Pinned pages are not properly accounted particularly when > mapping error occurs on IOTLB update. Clean up dangling > pinned pages for the error path. > > The memory usage for bookkeeping pinned pages is reverted > to what it was

[PATCH v3 1/2] siox: Use bus_type functions for probe, remove and shutdown

2020-11-25 Thread Uwe Kleine-König
The eventual goal is to get rid of the callbacks in struct device_driver. Acked-by: Thorsten Scherer Signed-off-by: Uwe Kleine-König --- drivers/siox/siox-core.c | 49 1 file changed, 25 insertions(+), 24 deletions(-) diff --git

[PATCH v3 0/2] siox: two cleanups

2020-11-25 Thread Uwe Kleine-König
Hello, compared to v2 sent starting with Message-Id: 20201124141834.3096325-1-u.kleine-koe...@pengutronix.de: - fix typo in commit log of patch 1 - add Ack by Thorsten for patch 1 Uwe Kleine-König (2): siox: Use bus_type functions for probe, remove and shutdown siox: Make remove callback

[PATCH v3 2/2] siox: Make remove callback return void

2020-11-25 Thread Uwe Kleine-König
The driver core ignores the return value of the remove callback, so don't give siox drivers the chance to provide a value. All siox drivers only allocate devm-managed resources in .probe, so there is no .remove callback to fix. Signed-off-by: Uwe Kleine-König --- drivers/siox/siox-core.c | 5

Re: [PATCH v4] i2c: virtio: add a virtio i2c frontend driver

2020-11-25 Thread Michael S. Tsirkin
On Mon, Oct 12, 2020 at 09:55:55AM +0800, Jie Deng wrote: > Add an I2C bus driver for virtio para-virtualization. > > The controller can be emulated by the backend driver in > any device model software by following the virtio protocol. > > This driver communicates with the backend driver through

Re: [PATCH -tip 18/32] kernel/entry: Add support for core-wide protection of kernel-mode

2020-11-25 Thread Peter Zijlstra
On Tue, Nov 17, 2020 at 06:19:48PM -0500, Joel Fernandes (Google) wrote: > Core-scheduling prevents hyperthreads in usermode from attacking each > other, but it does not do anything about one of the hyperthreads > entering the kernel for any reason. This leaves the door open for MDS > and L1TF

Re: linux-next: stall warnings and deadlock on Arm64 (was: [PATCH] kfence: Avoid stalling...)

2020-11-25 Thread Marco Elver
On Tue, Nov 24, 2020 at 07:30PM +, Mark Rutland wrote: [...] > > > I've just updated that branch with a new version which I hope covers > > > kernel<->kernel transitions too. If you get a chance, would you mind > > > giving that a spin? > > > > > > The HEAD commit should be: > > > > > >

Re: [PATCH v4 07/13] media: controls: Validate H264 stateless controls

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:39, Ezequiel Garcia wrote: > Check that all the fields that correspond or are related > to a H264 specification syntax element have legal values. > > Signed-off-by: Ezequiel Garcia > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 128 +++ >

Re: [PATCH] Revert "usb: cdns3: core: quit if it uses role switch class"

2020-11-25 Thread Roger Quadros
On 25/11/2020 02:36, Peter Chen wrote: On 20-11-24 14:22:25, Roger Quadros wrote: Peter, On 24/11/2020 13:47, Peter Chen wrote: On 20-11-24 12:33:34, Roger Quadros wrote: I am sorry about that. Do you use role switch /sys entry, if you have used, I prefer using "usb-role-switch" property

Re: [PATCH RESEND 0/5] iommu/tegra-smmu: Some pending reviewed changes

2020-11-25 Thread Will Deacon
On Tue, Nov 24, 2020 at 03:12:16PM -0800, Nicolin Chen wrote: > On Wed, Nov 25, 2020 at 02:05:14AM +0300, Dmitry Osipenko wrote: > > 25.11.2020 00:21, Nicolin Chen пишет: > > > These five patches were acked by Thierry and acked-n-tested by > > > Dmitry a while ago. Would it be possible for you to

Re: [PATCH] slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI

2020-11-25 Thread Srinivas Kandagatla
On 25/11/2020 05:42, Bjorn Andersson wrote: Attempting to send a power request during PM operations, when the QMI handle isn't initialized results in a NULL pointer dereference. So check if the QMI handle has been initialized before attempting to post the power requests. Fixes: 917809e2280b

[PATCH] mmc: sdhci-pci-gli: Disable slow mode in HS400 mode for GL9763E

2020-11-25 Thread Ben Chuang
From: Ben Chuang The GL9763E uses 150Mhz (slow mode) by default in HS400 mode. In order to make HS400 mode run at 200Mhz, the slow mode needs to be turned off. Fixes: 1ae1d2d6e555 ("mmc: sdhci-pci-gli: Add Genesys Logic GL9763E support") Signed-off-by: Ben Chuang ---

Re: [PATCH] mmc: sdhci-pci-gli: Disable slow mode in HS400 mode for GL9763E

2020-11-25 Thread Ulf Hansson
On Wed, 25 Nov 2020 at 10:59, Ben Chuang wrote: > > From: Ben Chuang > > The GL9763E uses 150Mhz (slow mode) by default in HS400 mode. In order > to make HS400 mode run at 200Mhz, the slow mode needs to be turned off. > > Fixes: 1ae1d2d6e555 ("mmc: sdhci-pci-gli: Add Genesys Logic GL9763E

[v1] drm/msm/dpu: consider vertical front porch in the prefill bw calculation

2020-11-25 Thread Kalyan Thota
In case of panels with low vertical back porch, the prefill bw requirement will be high as we will have less time(vbp+pw) to fetch and fill the hw latency buffers before start of first line in active period. For ex: Say hw_latency_line_buffers = 24, and if blanking vbp+pw = 10 Here we need to

Re: [PATCH v4 12/13] media: uapi: move H264 stateless controls out of staging

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:39, Ezequiel Garcia wrote: > The H264 stateless controls is ready to be part > of the stable uAPI. > > Re-number the control IDs, move them to the newly > created stateless control class, and updates all > the drivers accordingly. > > Signed-off-by: Ezequiel Garcia > --- >

RE: [EXTERNAL] Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-11-25 Thread Merger, Edgar [AUTOSOL/MAS/AUGS]
I do have also other problems with this unit, when IOMMU is enabled and pci=noats is not set as kernel parameter. [ 2004.265906] amdgpu :0b:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on gfx (-110). [ 2004.266024] [drm:amdgpu_device_delayed_init_work_handler [amdgpu]]

linux-next: manual merge of the akpm-current tree with the kspp tree

2020-11-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/Kconfig between commit: 5a3a47bf8367 ("orphans: Hoist '--orphan-handling' into Kconfig") from the kspp tree and commits: 84d8b3661cc9 ("arm, arm64: move free_unused_memmap() to generic mm") 46b9b00649f6

RE: [PATCH] fpga: dfl: add missing platform_device_put in build_info_create_dev

2020-11-25 Thread Wu, Hao
> Subject: [PATCH] fpga: dfl: add missing platform_device_put in > build_info_create_dev > > platform_device_put is missing when it fails to set fdev->id. Set > a temp value to do sanity check. will this case be covered already by build_info_free()? Hao > > Fixes: 543be3d8c999 ("fpga: add

[PATCH v2 0/2] IPS: Fix up apply_r_mips_26_rel and add KASLR support for Loongson64

2020-11-25 Thread Jinyang He
Abandon the third patch in v1. There are many other factors that should be considered. If possible, I'll fix it later. Jinyang He (2): MIPS: KASLR: Correcte valid bits in apply_r_mips_26_rel() MIPS: Loongson64: Add KASLR support arch/mips/Kconfig | 5 -

[PATCH v2 1/2] MIPS: KASLR: Correcte valid bits in apply_r_mips_26_rel()

2020-11-25 Thread Jinyang He
Apply_r_mips_26_rel() relocates instructions like j, jal and etc. These instructions consist of 6bits function field and 26bits address field. The value of target_addr as follows, = | high 4bits |low 28bits

[PATCH v2 2/2] MIPS: Loongson64: Add KASLR support

2020-11-25 Thread Jinyang He
Provide a weak plat_get_fdt() in relocate.c in case some platform enable USE_OF while plat_get_fdt() is useless. 1MB RELOCATION_TABLE_SIZE is small for Loongson64 because too many instructions should be relocated. 2MB is enough in present. Add KASLR support for Loongson64. KASLR(kernel address

Re: [PATCH RESEND 0/5] iommu/tegra-smmu: Some pending reviewed changes

2020-11-25 Thread Nicolin Chen
On Wed, Nov 25, 2020 at 09:55:10AM +, Will Deacon wrote: > On Tue, Nov 24, 2020 at 03:12:16PM -0800, Nicolin Chen wrote: > > On Wed, Nov 25, 2020 at 02:05:14AM +0300, Dmitry Osipenko wrote: > > > 25.11.2020 00:21, Nicolin Chen пишет: > > > > These five patches were acked by Thierry and

[PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration

2020-11-25 Thread Vadim Pasternak
Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and Celeron CPU - system types MSN2700, MSN2100. Till now all the systems from this class used few types of power units, all equipped with EEPROM device with address space two bytes. Thus, all these devices have

Re: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-25 Thread Oleksandr Natalenko
Hello. On 25.11.2020 09:32, Greg Kroah-Hartman wrote: On Tue, Nov 24, 2020 at 10:24:27PM +0100, Oleksandr Natalenko wrote: Hi. On 24.11.2020 15:23, Ard Biesheuvel wrote: > Surely caused by > >

[PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration

2020-11-25 Thread Vadim Pasternak
Remove PSU EEPROM configuration for systems MSN2700, MSN2100, MSN274x to support the requirement of power unit replacement by "off the shelf" device, matching electrical required parameters. Such device can be equipped with different EEPROM types or even could be not equipped with EEPROM. Patch

[PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration

2020-11-25 Thread Vadim Pasternak
Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and ATOM CPU - system types MSN274x. Till now all the systems from this class used few types of power units, all equipped with EEPROM device with address space two bytes. Thus, all these devices have been

[PATCH] MIPS: Loongson64: Fix up reserving kernel memory range

2020-11-25 Thread Jinyang He
Reserve memory from &_text to &_end. Otherwise if kernel address was modified, the memory range of start_pfn to kernel_start_pfn would be reserved. Then we could not use this range. Signed-off-by: Jinyang He --- arch/mips/loongson64/numa.c | 7 +-- 1 file changed, 5 insertions(+), 2

[PATCH RESEND v2 2/5] iommu/tegra-smmu: Expand mutex protection range

2020-11-25 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 34

[PATCH] MIPS: No need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable()

2020-11-25 Thread Tiezhu Yang
After commit 9cce844abf07 ("MIPS: CPU#0 is not hotpluggable"), c->hotpluggable is 0 for CPU 0 and it will not generate a control file in sysfs for this CPU: [root@linux loongson]# cat /sys/devices/system/cpu/cpu0/online cat: /sys/devices/system/cpu/cpu0/online: No such file or directory

[PATCH RESEND v2 1/5] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-11-25 Thread Nicolin Chen
The tegra_smmu_group_get was added to group devices in different SWGROUPs and it'd return a NULL group pointer upon a mismatch at tegra_smmu_find_group(), so for most of clients/devices, it very likely would mismatch and need a fallback generic_device_group(). But now tegra_smmu_group_get handles

[PATCH RESEND v2 5/5] iommu/tegra-smmu: Add PCI support

2020-11-25 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git

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

2020-11-25 Thread Nicolin Chen
The bus_set_iommu() in tegra_smmu_probe() enumerates all clients to call in tegra_smmu_probe_device() where each client searches its DT node for smmu pointer and swgroup ID, so as to configure an fwspec. But this requires a valid smmu pointer even before mc and smmu drivers are probed. So in

[PATCH RESEND v2 0/5] iommu/tegra-smmu: Some pending reviewed changes

2020-11-25 Thread Nicolin Chen
Changelog v1->v2: * Added Thierry's acks to PATCH-3~5 This is a merged set of resend for previously two series of patches that were reviewed/acked a month ago yet have not got applied. Series-1: https://lkml.org/lkml/2020/9/29/73 "[PATCH v4 0/2] iommu/tegra-smmu: Two followup changes"

Re: [Intel-wired-lan] [PATCH] e1000e: Assign DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME to speed up s2ram

2020-11-25 Thread Chen Yu
Hi Paul, On Tue, Nov 24, 2020 at 04:47:30PM +0100, Paul Menzel wrote: > Dear Chen, > > > Thank you for the patch. > Thanks for reviewing this change. > Am 24.11.20 um 16:32 schrieb Chen Yu: > > The NIC is put in runtime suspend status when there is no wire connected. > > As a result, it is safe

[PATCH RESEND v2 3/5] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-11-25 Thread Nicolin Chen
In tegra_smmu_(de)attach_dev() functions, we poll DTB for each client's iommus property to get swgroup ID in order to prepare "as" and enable smmu. Actually tegra_smmu_configure() prepared an fwspec for each client, and added to the fwspec all swgroup IDs of client DT node in DTB. So this patch

RE: [PATCH] Revert "usb: cdns3: core: quit if it uses role switch class"

2020-11-25 Thread Pawel Laszczak
> >On 25/11/2020 02:36, Peter Chen wrote: >> On 20-11-24 14:22:25, Roger Quadros wrote: >>> Peter, >>> >>> On 24/11/2020 13:47, Peter Chen wrote: On 20-11-24 12:33:34, Roger Quadros wrote: I am sorry about that. Do you use role switch /sys entry, if you have used, I

Re: [PATCH v8 3/3] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-11-25 Thread Lorenzo Pieralisi
On Tue, Nov 24, 2020 at 05:20:37PM -0600, Bjorn Helgaas wrote: > On Wed, Oct 28, 2020 at 10:31:43AM +0900, Kunihiko Hayashi wrote: > > This patch adds misc interrupt handler to detect and invoke PME/AER event. > > > > In UniPhier PCIe controller, PME/AER signals are assigned to the same > >

[PATCH] clocksource/drivers/ingenic: Fix section mismatch

2020-11-25 Thread Daniel Lezcano
The function ingenic_tcu_get_clock() is annotated for the __init section but it is actually called from the online cpu callback. That will lead to a crash if a CPU is hotplugged after boot time. Remove the __init annotatation for the ingenic_tcu_get_clock() function. Fixes: f19d838d08fc

  1   2   3   4   5   6   7   8   9   10   >