[PATCH V2 1/4] Squashfs: avoid out of bounds writes in decompressors

2021-02-08 Thread Phillip Lougher
This is a regression introduced by the patch "migrate from ll_rw_block usage to BIO". Sysbot/Syskaller has reported a number of "out of bounds writes" and "unable to handle kernel paging request in squashfs_decompress" errors which have been identified as a regression introduced by the above

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> > >"If the requested field of the HPB Region or HPB Sub-Region is out > > > of > > > range, then the device shall terminate the command by sending > > > RESPONSE > > > UPIU with CHECK CONDITION status, with the SENSE KEY set to ILLEGAL > > > REQUEST, and the additional sense code set to INVALID

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> + > > +static void ufshpb_kick_map_work(struct ufshpb_lu *hpb) > > +{ > > +bool ret = true; > > -> ret = false; > > > +unsigned long flags; > > + > > +spin_lock_irqsave(>rsp_list_lock, flags); > > +if (!list_empty(>lh_inact_rgn) || > >

[PATCH V2 0/4] Squashfs: fix BIO migration regression and add sanity checks

2021-02-08 Thread Phillip Lougher
Hi all, Patch [1/4] fixes a regression introduced by the "migrate from ll_rw_block usage to BIO" patch, which has produced a number of Sysbot/Syzkaller reports. Patches [2/4], [3/4], and [4/4] fix a number of filesystem corruption issues which have produced Sysbot reports in the id, inode and

[PATCH] Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

2021-02-08 Thread Nikolai Kostrigin
ThinkPad L13 Gen2 has both touchpad and trackpoint. PNP: LEN2146 PNP0f13 With the default protocol (elantech-smbus) trackpoint is not operating, while touchpad does. Changing to elantech renders both operational. Signed-off-by: Nikolai Kostrigin --- drivers/input/mouse/elantech.c | 1 + 1 file

Re: [PATCH v10 3/7] Documentation: ACPI: Document _DSE object usage for enum power state

2021-02-08 Thread Sakari Ailus
Hi Randy, On Fri, Feb 05, 2021 at 04:56:47PM -0800, Randy Dunlap wrote: > On 2/5/21 5:25 AM, Sakari Ailus wrote: > > Document the use of the _DSE object for setting desirable power state > > during probe. > > > > Signed-off-by: Sakari Ailus > > Reviewed-by: Tomasz Figa > > --- > >

[PATCH v3] kdb: Refactor env variables get/set code

2021-02-08 Thread Sumit Garg
Add two new kdb environment access methods as kdb_setenv() and kdb_printenv() in order to abstract out environment access code from kdb command functions. Also, replace (char *)0 with NULL as an initializer for environment variables array. Signed-off-by: Sumit Garg Reviewed-by: Douglas Anderson

Re: [PATCH v2] kdb: Refactor env variables get/set code

2021-02-08 Thread Sumit Garg
Hi Daniel, On Fri, 5 Feb 2021 at 23:06, Daniel Thompson wrote: > > On Thu, Feb 04, 2021 at 03:44:20PM +0530, Sumit Garg wrote: > > @@ -318,6 +318,65 @@ int kdbgetintenv(const char *match, int *value) > > } > > > > /* > > + * kdb_setenv() - Alter an existing environment variable or create a new

Re: [PATCH v4 3/3] arm64: dts: reset: add microchip sparx5 switch reset driver

2021-02-08 Thread Steen Hegelund
Hi Rob, On Fri, 2021-02-05 at 16:35 -0600, Rob Herring wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Wed, Jan 20, 2021 at 09:19:21AM +0100, Steen Hegelund wrote: > > This provides reset driver support for the Microchip Sparx5 PCB134

Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-08 Thread Finn Thain
On Sun, 7 Feb 2021, Xiaofei Tan wrote: > Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI drivers. > There are no function changes, but may speed up if interrupt happen too > often. This change doesn't necessarily work on platforms that support nested interrupts. Were you able to

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) > > struct scsi_device *sdev; > > > > shost_for_each_device(sdev, hba->host) { > > - hpb = sdev->hostdata; > > + hpb = ufshpb_get_hpb_data(sdev); > > if (!hpb) > >

[PATCH v10 net-next 10/15] net: mvpp2: add RXQ flow control configurations

2021-02-08 Thread stefanc
From: Stefan Chulski This patch adds RXQ flow control configurations. Flow control disabled by default. Minimum ring size limited to 1024 descriptors. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 35 +-

[PATCH v10 net-next 08/15] net: mvpp2: add FCA RXQ non occupied descriptor threshold

2021-02-08 Thread stefanc
From: Stefan Chulski The firmware needs to monitor the RX Non-occupied descriptor bits for flow control to move to XOFF mode. These bits need to be unmasked to be functional, but they will not raise interrupts as we leave the RX exception summary bit in MVPP2_ISR_RX_TX_MASK_REG clear.

[PATCH v10 net-next 07/15] net: mvpp2: add FCA periodic timer configurations

2021-02-08 Thread stefanc
From: Stefan Chulski Flow Control periodic timer would be used if port in XOFF to transmit periodic XOFF frames. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 ++ drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 45 2 files

Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Can Guo
On 2021-02-08 16:03, Daejun Park wrote: @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) >struct scsi_device *sdev; > >shost_for_each_device(sdev, hba->host) { > - hpb = sdev->hostdata; > + hpb = ufshpb_get_hpb_data(sdev); >if (!hpb) >

[PATCH v10 net-next 09/15] net: mvpp2: enable global flow control

2021-02-08 Thread stefanc
From: Stefan Chulski This patch enables global flow control in FW and in the phylink validate mask. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 11 +-- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 30 +++- 2 files changed, 37

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

2021-02-08 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 v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-08 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.11-rc5-mmotm-2021-01-27-23-30, with secretmem and related patches dropped from there, I can rebase whatever way you prefer. This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-02-08 Thread Geert Uytterhoeven
Hi Mauro, On Mon, Feb 8, 2021 at 9:49 AM Mauro Carvalho Chehab wrote: > Em Mon, 8 Feb 2021 09:33:14 +0100 > Geert Uytterhoeven escreveu: > > On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab > > wrote: > > > Em Mon, 8 Feb 2021 11:32:08 +1100 > > > Stephen Rothwell escreveu: > > > > > > >

Re: [PATCH] ARM: configs: sama5_defconfig: add QSPI driver

2021-02-08 Thread Tudor.Ambarus
On 2/8/21 10:21 AM, nicolas.fe...@microchip.com wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > From: Nicolas Ferre > > Add Quad SPI driver to the sama5 defconfig. This driver is needed for > sama5d2 SoC. > > Signed-off-by: Nicolas

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
>>> @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) >>> > struct scsi_device *sdev; >>> > >>> > shost_for_each_device(sdev, hba->host) { >>> > -hpb = sdev->hostdata; >>> > +hpb = ufshpb_get_hpb_data(sdev); >>> > if

[PATCH v15 3/8] mm: hugetlb: free the vmemmap pages associated with each HugeTLB page

2021-02-08 Thread Muchun Song
Every HugeTLB has more than one struct page structure. We __know__ that we only use the first 4(HUGETLB_CGROUP_MIN_ORDER) struct page structures to store metadata associated with each HugeTLB. There are a lot of struct page structures associated with each HugeTLB page. For tail pages, the value

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

2021-02-08 Thread Muchun Song
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 HugeTLB page instead of looping forever trying to allocate the

[PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-08 Thread Luo Jiaxing
There is no need to use API with _irqsave in hard IRQ handler, So replace those with spin_lock. Luo Jiaxing (2): gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler() gpio: grgpio: Replace spin_lock_irqsave with spin_lock in grgpio_irq_handler()

Re: [PATCH] printk: avoid prb_first_valid_seq() where possible

2021-02-08 Thread John Ogness
On 2021-02-08, Sergey Senozhatsky wrote: > Can we please also ask the kernel test robot to test this patch? LKP is an automated service. The problem was reported for an older commit. The new patch will not apply. I will try to contact the LKP team and see how we can get some sort of

Re: [PATCH] memory: samsung: exynos5422-dmc: Correct function names in kerneldoc

2021-02-08 Thread Lukasz Luba
On 2/6/21 11:17 AM, Krzysztof Kozlowski wrote: Correct kerneldoc to fix W=1 warnings: drivers/memory/samsung/exynos5422-dmc.c:290: warning: expecting prototype for find_target_freq_id(). Prototype was for find_target_freq_idx() instead

Re: [PATCH v1 5/7] ARM i.MX6q: remove Atheros AR8035 SmartEEE fixup

2021-02-08 Thread Oleksij Rempel
On Wed, Feb 03, 2021 at 09:56:28AM +, Russell King - ARM Linux admin wrote: > On Wed, Feb 03, 2021 at 10:18:55AM +0100, Oleksij Rempel wrote: > > This fixup removes the Lpi_en bit. > > > > If this patch breaks functionality of your board, use following device > > tree properties: > > > >

Re: [PATCH 2/2] dt-bindings: display: Add "disable-hpd" binding

2021-02-08 Thread Neil Armstrong
Hi, On 31/01/2021 10:57, Mykyta Poturai wrote: > Add the "disable-hpd" binding, used to disable hotplug detected > functionality in the driver. When it's enabled the driver assumes that > the connector is always connected and disables the hotplug detect > related IRQ. DT describes the hardware,

Re: [PATCH] MAINTAINERS: rectify BROADCOM PMB (POWER MANAGEMENT BUS) DRIVER

2021-02-08 Thread Rafał Miłecki
On 2021-02-08 08:16, Lukas Bulwahn wrote: Commit 8bcac4011ebe ("soc: bcm: add PM driver for Broadcom's PMB") includes a new MAINTAINERS section BROADCOM PMB (POWER MANAGEMENT BUS) DRIVER with 'drivers/soc/bcm/bcm-pmb.c', but the file was actually added at 'drivers/soc/bcm/bcm63xx/bcm-pmb.c'.

[PATCH] media: ti-vpe: Simplify bool comparison

2021-02-08 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/media/platform/ti-vpe/vpdma.c:946:5-26: WARNING: Comparison to bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/media/platform/ti-vpe/vpdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v7 20/23] arm64: cpufeatures: Allow disabling of BTI from the command-line

2021-02-08 Thread Marc Zyngier
In order to be able to disable BTI at runtime, whether it is for testing purposes, or to work around HW issues, let's add support for overriding the ID_AA64PFR1_EL1.BTI field. This is further mapped on the arm64.nobti command-line alias. Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas

[PATCH v7 11/23] arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()

2021-02-08 Thread Marc Zyngier
__read_sysreg_by_encoding() is used by a bunch of cpufeature helpers, which should take the feature override into account. Let's do that. For a good measure (and because we are likely to need to further down the line), make this helper available to the rest of the non-modular kernel. Code that

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Jürgen Groß
On 08.02.21 11:23, Andrew Cooper wrote: On 08/02/2021 09:50, Jan Beulich wrote: On 08.02.2021 10:44, Andrew Cooper wrote: On 06/02/2021 10:49, Juergen Gross wrote: The ring buffer for user events is used in the local system only, so smp barriers are fine for ensuring consistency.

Re: [PATCH RFC 3/7] kvm: x86: XSAVE state and XFD MSRs context switch

2021-02-08 Thread Paolo Bonzini
On 07/02/21 16:42, Jing Liu wrote: |In KVM, "guest_fpu" serves for any guest task working on this vcpu during vmexit and vmenter. We provide a pre-allocated guest_fpu space and entire "guest_fpu.state_mask" to avoid each dynamic features detection on each vcpu task. Meanwhile, to ensure

[PATCH v5] lockdep: Allow tuning tracing capacity constants.

2021-02-08 Thread Tetsuo Handa
Since syzkaller continues various test cases until the kernel crashes, syzkaller tends to examine more locking dependencies than normal systems. As a result, syzbot is reporting that the fuzz testing was terminated due to hitting upper limits lockdep can track [1] [2] [3]. Since analysis via

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-02-08 Thread Alvin Šipraga
Hi Arend, On 1/19/21 11:03 AM, Alvin Šipraga wrote: > Hi, > > On 1/19/21 9:30 AM, Arend Van Spriel wrote: >> On 1/15/2021 3:57 PM, Alvin Šipraga wrote: >>> Hi Arend, >>> >>> On 1/15/21 3:10 PM, Arend Van Spriel wrote: + Johannes - netdevs On 1/14/2021 5:36 PM, 'Alvin Šipraga'

[RFC PATCH 0/2] Make alloc_contig_range handle Hugetlb pages

2021-02-08 Thread Oscar Salvador
Hi, I promised to Mike to have a look into this a few weeks ago. This is my first attempt. I carried out some tests with a module that tries to allocate with alloc_contig_range() from a range where we have free and in-use hugetlb pages. So far I did not spot any problem and it worked. Please,

[RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-08 Thread Oscar Salvador
alloc_contig_range is not prepared to handle hugetlb pages and will fail if it ever sees one, but since they can be migrated as any other page (LRU and Movable), it makes sense to also handle them. For now, do it only when coming from alloc_contig_range. Signed-off-by: Oscar Salvador ---

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Jan Beulich
On 08.02.2021 11:23, Andrew Cooper wrote: > On 08/02/2021 09:50, Jan Beulich wrote: >> On 08.02.2021 10:44, Andrew Cooper wrote: >>> On 06/02/2021 10:49, Juergen Gross wrote: The ring buffer for user events is used in the local system only, so smp barriers are fine for ensuring

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

2021-02-08 Thread Yicong Yang
On 2021/2/6 4:08, Bjorn Helgaas wrote: > On Fri, Feb 05, 2021 at 10:28:32AM -0800, Guenter Roeck wrote: >> On Fri, Feb 05, 2021 at 05:44:13PM +0800, Yicong Yang wrote: >>> From: Junhao He >>> >>> Use subdir-ccflags-* instead of ccflags-* to inherit the debug >>> settings from Kconfig when

Re: [PATCH 7/7] xen/evtchn: read producer index only once

2021-02-08 Thread Jan Beulich
On 08.02.2021 11:41, Jürgen Groß wrote: > On 08.02.21 10:48, Jan Beulich wrote: >> On 06.02.2021 11:49, Juergen Gross wrote: >>> In evtchn_read() use READ_ONCE() for reading the producer index in >>> order to avoid the compiler generating multiple accesses. >>> >>> Signed-off-by: Juergen Gross

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

2021-02-08 Thread Michal Hocko
On Mon 08-02-21 11:32:11, David Hildenbrand wrote: > On 08.02.21 11:18, Michal Hocko wrote: > > On Mon 08-02-21 10:49:18, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > It is unsafe to allow saving of secretmem areas to the hibernation > > > snapshot as they would be visible after

[PATCH v3 05/11] mm, fsdax: Refactor memory-failure handler for dax mapping

2021-02-08 Thread Shiyang Ruan
The current memory_failure_dev_pagemap() can only handle single-mapped dax page for fsdax mode. The dax page could be mapped by multiple files and offsets if we let reflink feature & fsdax mode work together. So, we refactor current implementation to support handle memory failure on each file

Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree

2021-02-08 Thread Krzysztof Kozlowski
On Fri, Feb 05, 2021 at 05:39:51AM +0900, Hector Martin wrote: > This currently supports: > > * SMP (via spin-tables) > * AIC IRQs > * Serial (with earlycon) > * Framebuffer > > A number of properties are dynamic, and based on system firmware > decisions that vary from version to version. These

[PATCH v3 06/11] mm, pmem: Implement ->memory_failure() in pmem driver

2021-02-08 Thread Shiyang Ruan
Call the ->memory_failure() which is implemented by pmem driver, in order to finally notify filesystem to handle the corrupted data. The handler which collects and kills processes are moved into mf_dax_mapping_kill_procs(), which will be called by filesystem. Keep the old handler in order to

[PATCH v3 04/11] block_dev: Introduce bd_corrupted_range() for block device

2021-02-08 Thread Shiyang Ruan
As is show in the call tree: ... pgmap->ops->memory_failure() gendisk->fops->corrupted_range() sb->s_ops->currupted_range() ... currupted_range() is called from disk(pmem) to superblock(filesystem). Thus, we need to introduce a helper function to obtain the superblock from a given disk.

Re: [PATCH v3 mm 11/13] kasan: inline HW_TAGS helper functions

2021-02-08 Thread Marco Elver
On Fri, Feb 05, 2021 at 06:34PM +0100, Andrey Konovalov wrote: > Mark all static functions in common.c and kasan.h that are used for > hardware tag-based KASAN as inline to avoid unnecessary function calls. > > Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver > --- >

[PATCH v3 02/11] blk: Introduce ->corrupted_range() for block device

2021-02-08 Thread Shiyang Ruan
In fsdax mode, the memory failure happens on block device. So, it is needed to introduce an interface for block devices. Each kind of block device can handle the memory failure in ther own ways. Signed-off-by: Shiyang Ruan --- include/linux/blkdev.h | 2 ++ 1 file changed, 2 insertions(+)

[PATCH v3 08/11] dm: Introduce ->rmap() to find bdev offset

2021-02-08 Thread Shiyang Ruan
Pmem device could be a target of mapped device. In order to obtain superblock on the mapped device, we introduce this to translate offset from target device to md device. Currently, we implement it on linear target, which is easy to do the translation. Other targets will be supported in the

Re: [PATCH] iommu/mediatek: Fix error code in probe()

2021-02-08 Thread Joerg Roedel
On Fri, Feb 05, 2021 at 03:46:17PM +0300, Dan Carpenter wrote: > drivers/iommu/mtk_iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied, thanks.

Re: [PATCH] MAINTAINERS: repair file pattern in MEDIATEK IOMMU DRIVER

2021-02-08 Thread Joerg Roedel
On Mon, Feb 08, 2021 at 02:35:25PM +0800, Yong Wu wrote: > On Mon, 2021-02-08 at 07:10 +0100, Lukas Bulwahn wrote: > > Commit 6af4873852c4 ("MAINTAINERS: Add entry for MediaTek IOMMU") mentions > > the pattern 'drivers/iommu/mtk-iommu*', but the files are actually named > > with an underscore, not

[PATCH] ASoC: soc-pcm: change error message to debug message

2021-02-08 Thread Shengjiu Wang
This log message should be a debug message, because it doesn't return directly but continue next loop. Signed-off-by: Shengjiu Wang --- sound/soc/soc-pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index

[PATCH] mm/hugetlb: use helper huge_page_size() to get hugepage size

2021-02-08 Thread Miaohe Lin
We can use helper huge_page_size() to get the hugepage size directly to simplify the code slightly. Signed-off-by: Miaohe Lin --- mm/hugetlb.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 18628f8dbfb0..6cdb59d8f663 100644

Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR

2021-02-08 Thread Miklos Szeredi
On Mon, Feb 8, 2021 at 3:00 AM Dave Chinner wrote: > > On Wed, Feb 03, 2021 at 04:03:06PM +0100, Miklos Szeredi wrote: > > On Wed, Feb 3, 2021 at 3:56 PM Matthew Wilcox wrote: > > > > > But let's talk specifics. What does CIFS need to contact the server for? > > > Could it be cached earlier? >

[PATCH v10 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode

2021-02-08 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v10 net-next 11/15] net: mvpp2: add ethtool flow control configuration support

2021-02-08 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change.

[PATCH] mm/hugetlb: Remove redundant VM_BUG_ON_PAGE on putback_active_hugepage()

2021-02-08 Thread Miaohe Lin
PageHead(page) is implicitly checked in set_page_huge_active() via the PageHeadHuge(page) check. So remove this explicit one. Signed-off-by: Miaohe Lin --- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 6cdb59d8f663..bbbe013a3a2d 100644 ---

Re: [PATCH v4 0/8] Make fw_devlink=on more forgiving

2021-02-08 Thread Marek Szyprowski
Hi Saravana, On 05.02.2021 23:26, Saravana Kannan wrote: > There are a lot of devices/drivers where they never have a struct device > created for them or the driver initializes the hardware without ever > binding to the struct device. > > This series is intended to avoid any boot regressions due

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

2021-02-08 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 v17 09/10] arch, mm: wire up memfd_secret system call where relevant

2021-02-08 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 Acked-by: Catalin Marinas Cc: Alexander Viro Cc: Andy Lutomirski Cc:

[PATCH v15 1/8] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-02-08 Thread Muchun Song
Move bootmem info registration common API to individual bootmem_info.c. And we will use {get,put}_page_bootmem() to initialize the page for the vmemmap pages or free the vmemmap pages to buddy in the later patch. So move them out of CONFIG_MEMORY_HOTPLUG_SPARSE. This is just code movement without

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

2021-02-08 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 Cc:

[PATCH v15 2/8] mm: hugetlb: introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2021-02-08 Thread Muchun Song
The option HUGETLB_PAGE_FREE_VMEMMAP allows for the freeing of some vmemmap pages associated with pre-allocated HugeTLB pages. For example, on X86_64 6 vmemmap pages of size 4KB each can be saved for each 2MB HugeTLB page. 4094 vmemmap pages of size 4KB each can be saved for each 1GB HugeTLB page.

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

2021-02-08 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 secretmem feature is off by default and the user must

[PATCH v15 7/8] mm: hugetlb: gather discrete indexes of tail page

2021-02-08 Thread Muchun Song
For HugeTLB page, there are more metadata to save in the struct page. But the head struct page cannot meet our needs, so we have to abuse other tail struct page to store the metadata. In order to avoid conflicts caused by subsequent use of more tail struct pages, we can gather these discrete

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

2021-02-08 Thread Muchun Song
All the infrastructure is ready, so we introduce nr_free_vmemmap_pages field in the hstate to indicate how many vmemmap pages associated with a HugeTLB page that can be freed to buddy allocator. And initialize it in the hugetlb_vmemmap_init(). This patch is actual enablement of the feature.

[PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-08 Thread Luo Jiaxing
There is no need to use API with _irqsave in hard IRQ handler, So replace those with spin_lock. Luo Jiaxing (2): gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler() gpio: grgpio: Replace spin_lock_irqsave with spin_lock in grgpio_irq_handler()

[PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-08 Thread Luo Jiaxing
There is no need to use API with _irqsave in omap_gpio_irq_handler(), because it already be in a irq-disabled context. Signed-off-by: Luo Jiaxing --- drivers/gpio/gpio-omap.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-omap.c

[PATCH for next v1 2/2] gpio: grgpio: Replace spin_lock_irqsave with spin_lock in grgpio_irq_handler()

2021-02-08 Thread Luo Jiaxing
There is no need to use API with _irqsave in grgpio_irq_handler(), because it already be in a irq-disabled context. Signed-off-by: Luo Jiaxing --- drivers/gpio/gpio-grgpio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-grgpio.c

[PATCH v5 1/7] gpio: ep93xx: fix BUG_ON port F usage

2021-02-08 Thread Nikita Shubin
Two index spaces and ep93xx_gpio_port are confusing. Instead add a separate struct to store necessary data and remove ep93xx_gpio_port. - add struct to store IRQ related data for each IRQ capable chip - replace offset array with defined offsets - add IRQ registers offset for each IRQ capable

[PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-08 Thread Luo Jiaxing
There is no need to use API with _irqsave in omap_gpio_irq_handler(), because it already be in a irq-disabled context. Signed-off-by: Luo Jiaxing --- drivers/gpio/gpio-omap.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-omap.c

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-08 Thread Jason Wang
On 2021/2/8 下午2:37, Eli Cohen wrote: On Mon, Feb 08, 2021 at 12:27:18PM +0800, Jason Wang wrote: On 2021/2/6 上午7:07, Si-Wei Liu wrote: On 2/3/2021 11:36 PM, Eli Cohen wrote: When a change of memory map occurs, the hardware resources are destroyed and then re-created again with the new

[PATCH V10 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-02-08 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 51 ++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git

[PATCH V10 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-02-08 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V10 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-02-08 Thread peng . fan
From: Peng Fan V10: Per Rob's comments, fix patch 1/10 V9: Per Mathieu's comments, update the tile of yaml in patch 2/10 update the Kconfig and MODULE_DESCRIPTION, I merge this change in patch 8/10, since this is a minor change, I still keep Mathieu's R-b tag. If any objection, I

RE: [RESEND PATCH v3 3/5] misc: Add Synopsys DesignWare xData IP driver to Kconfig

2021-02-08 Thread Gustavo Pimentel
On Mon, Feb 8, 2021 at 7:34:8, Leon Romanovsky wrote: > On Tue, Feb 02, 2021 at 05:56:36PM +0100, Gustavo Pimentel wrote: > > Add Synopsys DesignWare xData IP driver to Kconfig. > > > > This driver enables/disables the PCIe traffic generator module > > pertain to the Synopsys DesignWare

[PATCH v8 0/9] add ECDH and CURVE25519 algorithms support for Kunpeng 930

2021-02-08 Thread Meng Yu
1. Move curve ID from the key into the algorithm name (like 'ecdh-nist-pxxx' so we get its tfm like 'crypto_alloc_kpp("ecdh-nist-p256", 0, 0)'), in 'crypto/ecc.c' (has been verified by testmgr) and 'crypto/atmel-ecc.c' (only compiled, not do test), and modify 'testmgr.c' and

[PATCH v8 9/9] crypto: hisilicon/hpre - add 'CURVE25519' algorithm

2021-02-08 Thread Meng Yu
Enable 'CURVE25519' algorithm in Kunpeng 930. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/Kconfig| 1 + drivers/crypto/hisilicon/hpre/hpre.h| 2 + drivers/crypto/hisilicon/hpre/hpre_crypto.c | 366 +++- 3 files

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Jürgen Groß
On 08.02.21 10:38, Jan Beulich wrote: On 06.02.2021 11:49, Juergen Gross wrote: The ring buffer for user events is used in the local system only, so smp barriers are fine for ensuring consistency. Reported-by: Andrew Cooper Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich Albeit I

[PATCH] bpf: Simplify bool comparison

2021-02-08 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/bpf/bpf_dbg.c:893:32-36: WARNING: Comparison to bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/bpf/bpf_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/bpf_dbg.c b/tools/bpf/bpf_dbg.c index

Re: [PATCH v3] kdb: Simplify kdb commands registration

2021-02-08 Thread Daniel Thompson
On Fri, Jan 29, 2021 at 03:47:07PM +0530, Sumit Garg wrote: > @@ -1011,25 +1005,17 @@ int kdb_parse(const char *cmdstr) > ++argv[0]; > } > > - for_each_kdbcmd(tp, i) { > - if (tp->cmd_name) { > - /* > - * If this

[PATCH v8 5/9] crypto: move curve_id of ECDH to algorithm name

2021-02-08 Thread Meng Yu
1. Move curve id of ECDH from the key into the algorithm name instead in crypto; 2. Modify 'testmgr.c' and 'testmgr.h' to adapt the modification. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecdh.c | 72 +++

[PATCH v7 00/23] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-02-08 Thread Marc Zyngier
It recently came to light that there is a need to be able to override some CPU features very early on, before the kernel is fully up and running. The reasons for this range from specific feature support (such as using Protected KVM on VHE HW, which is the main motivation for this work) to errata

[PATCH v7 01/23] arm64: Fix labels in el2_setup macros

2021-02-08 Thread Marc Zyngier
If someone happens to write the following code: b 1f init_el2_state vhe 1: [...] they will be in for a long debugging session, as the label "1f" will be resolved *inside* the init_el2_state macro instead of after it. Not really what one expects. Instead, rewite

[PATCH v7 16/23] arm64: Add an aliasing facility for the idreg override

2021-02-08 Thread Marc Zyngier
In order to map the override of idregs to options that a user can easily understand, let's introduce yet another option array, which maps an option to the corresponding idreg options. Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas Acked-by: David Brazdil ---

[PATCH v7 14/23] arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line

2021-02-08 Thread Marc Zyngier
As we want to be able to disable VHE at runtime, let's match "id_aa64mmfr1.vh=" from the command line as an override. This doesn't have much effect yet as our boot code doesn't look at the cpufeature, but only at the HW registers. Signed-off-by: Marc Zyngier Acked-by: David Brazdil Acked-by:

[PATCH v7 21/23] arm64: Defer enabling pointer authentication on boot core

2021-02-08 Thread Marc Zyngier
From: Srinivas Ramana Defer enabling pointer authentication on boot core until after its required to be enabled by cpufeature framework. This will help in controlling the feature dynamically with a boot parameter. Signed-off-by: Ajay Patil Signed-off-by: Prasad Sodagudi Signed-off-by:

[PATCH v7 19/23] arm64: Move "nokaslr" over to the early cpufeature infrastructure

2021-02-08 Thread Marc Zyngier
Given that the early cpufeature infrastructure has borrowed quite a lot of code from the kaslr implementation, let's reimplement the matching of the "nokaslr" option with it. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Acked-by: David Brazdil --- arch/arm64/kernel/idreg-override.c |

Re: [PATCH 2/7] xen/events: don't unmask an event channel when an eoi is pending

2021-02-08 Thread Ross Lagerwall
On 2021-02-06 10:49, Juergen Gross wrote: > An event channel should be kept masked when an eoi is pending for it. > When being migrated to another cpu it might be unmasked, though. > > In order to avoid this keep two different flags for each event channel > to be able to distinguish "normal"

Re: [PATCH] mtd: spi-nor: boya: add support for boya by25q128as

2021-02-08 Thread Tudor.Ambarus
Hi, George, On 2/7/21 2:30 PM, George Brooke wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Adds support for the Boya Microelectronics BY25Q128AS 128 Mbit flash. > I tested this on the Creality WB-01 embedded device which uses this, >

Re: [PATCH 1/2] KVM: selftests: Keep track of memslots more efficiently

2021-02-08 Thread Andrew Jones
On Mon, Feb 08, 2021 at 11:16:41AM +0100, Andrew Jones wrote: > > diff --git a/tools/testing/selftests/kvm/lib/rbtree.c > > b/tools/testing/selftests/kvm/lib/rbtree.c > > new file mode 100644 > > index ..a703f0194ea3 > > --- /dev/null > > +++ b/tools/testing/selftests/kvm/lib/rbtree.c

[RFC PATCH 2/2] mm,page_alloc: Make alloc_contig_range handle free hugetlb pages

2021-02-08 Thread Oscar Salvador
Free hugetlb pages are trickier to handle as to in order to guarantee no userspace appplication disruption, we need to replace the current free hugepage with a new one. In order to do that, a new function called alloc_and_dissolve_huge_page in introduced. This function will first try to get a new

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-08 Thread David Hildenbrand
On 08.02.21 11:13, Song Bao Hua (Barry Song) wrote: -Original Message- From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On Behalf Of David Hildenbrand Sent: Monday, February 8, 2021 9:22 PM To: Song Bao Hua (Barry Song) ; Matthew Wilcox Cc: Wangzhou (B) ;

Re: rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-02-08 Thread Kalle Valo
Emil Renner Berthing wrote: > In commit d3ccc14dfe95 most of the tasklets in this driver was > updated to the new API. However for the rx_work_tasklet only the > type of the callback was changed from > void _rtl_rx_work(unsigned long data) > to > void _rtl_rx_work(struct tasklet_struct *t).

[PATCH] drm/qxl: properly handle device init failures

2021-02-08 Thread Gerd Hoffmann
Specifically do not try release resources which where not allocated in the first place. Cc: Tong Zhang Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 3 +++ drivers/gpu/drm/qxl/qxl_kms.c | 4 2 files changed, 7 insertions(+) diff --git

Re: [PATCH RESEND] wl1251: cmd: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > -ENOMEM has been used as a return value,it is not necessary to > assign it, and if kzalloc fail,not need free it,so just return > -ENOMEM when kzalloc fail. > > Signed-off-by: wengjianfeng You sent the previous version just five days ago:

Re: [PATCH 7/7] xen/evtchn: read producer index only once

2021-02-08 Thread Jürgen Groß
On 08.02.21 11:51, Jan Beulich wrote: On 08.02.2021 11:41, Jürgen Groß wrote: On 08.02.21 10:48, Jan Beulich wrote: On 06.02.2021 11:49, Juergen Gross wrote: In evtchn_read() use READ_ONCE() for reading the producer index in order to avoid the compiler generating multiple accesses.

Re: [PATCH v2] powerpc/uprobes: Validation for prefixed instruction

2021-02-08 Thread Ravi Bangoria
On 2/6/21 11:36 PM, Oleg Nesterov wrote: On 02/04, Ravi Bangoria wrote: +static int get_instr(struct mm_struct *mm, unsigned long addr, u32 *instr) +{ + struct page *page; + struct vm_area_struct *vma; + void *kaddr; + unsigned int gup_flags = FOLL_FORCE |

[PATCH v3 09/11] md: Implement ->corrupted_range()

2021-02-08 Thread Shiyang Ruan
With the support of ->rmap(), it is possible to obtain the superblock on a mapped device. Signed-off-by: Shiyang Ruan --- drivers/md/dm.c | 61 + 1 file changed, 61 insertions(+) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index

[PATCH] MIPS: Add basic support for ptrace single step

2021-02-08 Thread Tiezhu Yang
In the current code, arch_has_single_step() is not defined on MIPS, that means MIPS does not support instruction single-step for user mode. Delve is a debugger for the Go programming language, the ptrace syscall PtraceSingleStep() failed [1] on MIPS and then the single step function can not work

  1   2   3   4   5   6   7   8   9   10   >