[syzbot] BUG: using smp_processor_id() in preemptible code in __do_user_fault

2021-03-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a74e6a01 Merge tag 's390-5.12-3' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14f67ae6d0 kernel config: https://syzkaller.appspot.com/x/.config?x=c7ac5ce2d1160e16 das

[PATCH] ASoC: qcom: lpass-cpu: Fix lpass dai ids parse

2021-03-11 Thread Srinivasa Rao Mandadapu
The max boundary check while parsing dai ids makes sound card registration fail after common up dai ids. Fixes: cd3484f7f1386 (ASoC: dt-bindings: lpass: Fix and common up lpass dai ids) Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c | 2 +- 1 file changed, 1 insertion(+),

Re: Errant readings on LM81 with T2080 SoC

2021-03-11 Thread Wolfram Sang
> Bummer. What is really weird is that you see clock stretching under > CPU load. Normally clock stretching is triggered by the device, not > by the host. One example: Some hosts need an interrupt per byte to know if they should send ACK or NACK. If that interrupt is delayed, they stretch the clo

Re: [PATCH] perf tools: Remove redundant code

2021-03-11 Thread kajoljain
On 3/10/21 8:48 AM, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./tools/perf/util/evlist.c:1315:5-8: Unneeded variable: "err". Return "- > ENOMEM" on line 1340. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > tools/perf/util/evlist.c | 3 +-- > 1 fi

[RFC -V6 0/6] NUMA balancing: optimize memory placement for memory tiering system

2021-03-11 Thread Huang Ying
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 system, because the performance of the different types of memory are usually different. After

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

2021-03-11 Thread Huang Ying
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 system, because the performance of the different types of memory are usually different. In suc

[RFC -V6 2/6] memory tiering: add page promotion counter

2021-03-11 Thread Huang Ying
To distinguish the number of the memory tiering promoted pages from that of the originally inter-socket NUMA balancing migrated pages. The counter is per-node (count in the target node). So this can be used to identify promotion imbalance among the NUMA nodes. Signed-off-by: "Huang, Ying" Cc: An

[RFC -V6 4/6] memory tiering: hot page selection with hint page fault latency

2021-03-11 Thread Huang Ying
To optimize page placement in a memory tiering system with NUMA balancing, the hot pages in the slow memory node need to be identified. Essentially, the original NUMA balancing implementation selects the mostly recently accessed (MRU) pages as the hot pages. But this isn't a very good algorithm to

[RFC -V6 3/6] memory tiering: skip to scan fast memory

2021-03-11 Thread Huang Ying
If the NUMA balancing isn't used to optimize the page placement among sockets but only among memory types, the hot pages in the fast memory node couldn't be migrated (promoted) to anywhere. So it's unnecessary to scan the pages in the fast memory node via changing their PTE/PMD mapping to be PROT_

[RFC -V6 5/6] memory tiering: rate limit NUMA migration throughput

2021-03-11 Thread Huang Ying
In NUMA balancing memory tiering mode, the hot slow memory pages could be promoted to the fast memory node via NUMA balancing. But this incurs some overhead too. So that sometimes the workload performance may be hurt. To avoid too much disturbing to the workload in these situations, we should ma

Re: v3: scsi: ufshcd: use a macro for UFS versions

2021-03-11 Thread Bean Huo
On Wed, 2021-03-10 at 15:33 +, Caleb Connolly wrote: > When using a device with UFS > 2.1 the error "invalid UFS version" is > misleadingly printed. There was a patch for this almost a year > ago to which this solution was suggested. > > This series replaces the use of the growing UFSHCI_VERSI

Re: [v8,5/7] PCI: mediatek-gen3: Add MSI support

2021-03-11 Thread Marc Zyngier
On 2021-03-11 00:05, Pali Rohár wrote: On Wednesday 24 February 2021 14:11:30 Jianjun Wang wrote: +static int mtk_msi_bottom_domain_alloc(struct irq_domain *domain, + unsigned int virq, unsigned int nr_irqs, + void *arg) +

[RFC -V6 6/6] memory tiering: adjust hot threshold automatically

2021-03-11 Thread Huang Ying
It isn't easy for the administrator to determine the hot threshold. So in this patch, a method to adjust the hot threshold automatically is implemented. The basic idea is to control the number of the candidate promotion pages to match the promotion rate limit. If the hint page fault latency of a

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Wed 10-03-21 21:43:16, Andrew Morton wrote: > On Wed, 10 Mar 2021 18:13:21 -0800 Mike Kravetz > wrote: > > > put_page does not correctly handle all calling contexts for hugetlb > > pages. This was recently discussed in the threads [1] and [2]. > > > > free_huge_page is the routine called fo

Re: [PATCH v5 05/10] scsi: ufshpb: Region inactivation in host mode

2021-03-11 Thread Can Guo
On 2021-03-02 21:24, Avri Altman wrote: I host mode, the host is expected to send HPB-WRITE-BUFFER with In host mode, buffer-id = 0x1 when it inactivates a region. Use the map-requests pool as there is no point in assigning a designated cache for umap-requests. Signed-off-by: Avri Altman -

Re: [PATCH 0/2] software node: Two fixes

2021-03-11 Thread Heikki Krogerus
On Wed, Mar 10, 2021 at 03:30:09PM +0100, Rafael J. Wysocki wrote: > On Wed, Mar 10, 2021 at 3:16 PM Rafael J. Wysocki wrote: > > > > On Wed, Mar 10, 2021 at 8:36 AM Heikki Krogerus > > wrote: > > > > > > On Tue, Mar 09, 2021 at 02:51:22PM +0100, Rafael J. Wysocki wrote: > > > > On Tue, Mar 9, 20

Re: [RFC PATCH v3 2/3] blk-mq: Freeze and quiesce all queues for tagset in elevator_exit()

2021-03-11 Thread John Garry
On 11/03/2021 00:58, Ming Lei wrote: Indeed, blk_mq_queue_tag_busy_iter() already does take a reference to its queue usage counter when called, and the queue cannot be frozen to switch IO scheduler until all refs are dropped. This ensures no stale references to IO scheduler requests will be seen

[PATCH] MAINTAINERS: Add entry for the software nodes

2021-03-11 Thread Heikki Krogerus
Making Andy and myself (Heikki) the designated reviewers of the thing. The software node mailing list shall be linux-a...@vger.kernel.org for now. Signed-off-by: Heikki Krogerus --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f032f45bc95

[no subject]

2021-03-11 Thread george mike
Hallo Ich heiße George Mike. Ich bin von Beruf Rechtsanwalt. Ich möchte dir anbieten engster Verwandter meines Klienten. Sie erben die Gesamtsumme (8,5 Millionen US-Dollar). Dollar, die mein Kunde vor seinem Tod auf der Bank gelassen hat. Mein Klient ist ein Staatsangehöriger Ihres Landes, der mi

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Wed 10-03-21 18:13:21, Mike Kravetz wrote: > put_page does not correctly handle all calling contexts for hugetlb > pages. This was recently discussed in the threads [1] and [2]. > > free_huge_page is the routine called for the final put_page of huegtlb > pages. Since at least the beginning of

Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax

2021-03-11 Thread Neal Gompa
On Wed, Mar 10, 2021 at 7:53 PM Dan Williams wrote: > > On Wed, Mar 10, 2021 at 6:27 AM Matthew Wilcox wrote: > > > > On Wed, Mar 10, 2021 at 08:21:59AM -0600, Goldwyn Rodrigues wrote: > > > On 13:02 10/03, Matthew Wilcox wrote: > > > > On Wed, Mar 10, 2021 at 07:30:41AM -0500, Neal Gompa wrote:

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 09:26:03, Michal Hocko wrote: > On Wed 10-03-21 18:13:21, Mike Kravetz wrote: > > put_page does not correctly handle all calling contexts for hugetlb > > pages. This was recently discussed in the threads [1] and [2]. > > > > free_huge_page is the routine called for the final put_p

Re: [PATCH v1] usb: typec: tcpci: Refactor tcpc_presenting_cc1_rd macro

2021-03-11 Thread Heikki Krogerus
On Wed, Mar 10, 2021 at 02:35:36PM -0800, Badhri Jagan Sridharan wrote: > Defining one macro instead of two for tcpc_presenting_*_rd. > This is a follow up of the comment left by Heikki Krogerus. > > https://patchwork.kernel.org/project/linux-usb/patch/ > 20210304070931.1947316-1-bad...@google.com

Re: [PATCH 4.14 00/20] 4.14.225-rc1 review

2021-03-11 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 18:56, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.14.225 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me k

Re: [PATCH 4/9] drm: remove the drm file system

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 04:32:34PM +, Al Viro wrote: > On Tue, Mar 09, 2021 at 04:53:43PM +0100, Christoph Hellwig wrote: > > Just use the generic anon_inode file system. > > Are you changing the lifetime rules for that module? The core drm module is pinned by the actual drivers that use the

Re: [PATCH 4.9 00/11] 4.9.261-rc1 review

2021-03-11 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 18:56, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.9.261 release. > There are 11 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kn

Re: [PATCH v2 2/2] mm/memcg: set memcg when split page

2021-03-11 Thread Michal Hocko
Johannes, Hugh, what do you think about this approach? If we want to stick with split_page approach then we need to update the missing place Matthew has pointed out. On Tue 09-03-21 14:03:36, Michal Hocko wrote: > On Tue 09-03-21 12:32:55, Matthew Wilcox wrote: > > On Tue, Mar 09, 2021 at 10:02:0

Re: [PATCH 4.4 0/7] 4.4.261-rc1 review

2021-03-11 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 18:57, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.4.261 release. > There are 7 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

[PATCH] x86/brk: Drop RESERVE_BRK_ARRAY()

2021-03-11 Thread Cao jin
Since a13f2ef168cb ("x86/xen: remove 32-bit Xen PV guest support"), RESERVE_BRK_ARRAY() has no user anymore, let's drop it. Update related comments too. Signed-off-by: Cao jin --- arch/x86/include/asm/setup.h | 5 - arch/x86/kernel/setup.c | 6 +++--- 2 files changed, 3 insertions(+),

[PATCH] z3fold: prevent reclaim/free race for headless pages

2021-03-11 Thread Thomas Hebb
commit ca0246bb97c2 ("z3fold: fix possible reclaim races") introduced the PAGE_CLAIMED flag "to avoid racing on a z3fold 'headless' page release." By atomically testing and setting the bit in each of z3fold_free() and z3fold_reclaim_page(), a double-free was avoided. However, commit dcf5aedb24f8 (

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

2021-03-11 Thread Michal Hocko
On Wed 10-03-21 15:28:51, Paul E. McKenney wrote: > On Wed, Mar 10, 2021 at 02:10:12PM -0800, Mike Kravetz wrote: > > On 3/10/21 1:49 PM, Paul E. McKenney wrote: > > > On Wed, Mar 10, 2021 at 10:11:22PM +0100, Michal Hocko wrote: > > >> On Wed 10-03-21 10:56:08, Mike Kravetz wrote: > > >>> On 3/10/

Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-11 Thread Mel Gorman
On Wed, Mar 10, 2021 at 03:46:50PM -0800, Andrew Morton wrote: > On Wed, 10 Mar 2021 10:46:15 + Mel Gorman > wrote: > > > This patch adds a new page allocator interface via alloc_pages_bulk, > > and __alloc_pages_bulk_nodemask. A caller requests a number of pages > > to be allocated and adde

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 04:29:51PM +, Al Viro wrote: > On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > > Just use the generic anon_inode file system. > > Umm... The only problem I see here is the lifetime rules for > that module, and that's not something introduced in thi

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

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

Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

2021-03-11 Thread Peter Zijlstra
On Thu, Mar 11, 2021 at 05:36:06AM +0200, Jarkko Sakkinen wrote: > Does it do any harm to put it there unconditionally? Blows up your text footprint and I$ pressure. These instructions are 4 bytes each. Aside from that, they're a NOP, so only consume front-end resources (hopefully) on older CPUs

Re: [External] Re: [PATCH v18 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 12:26:32, Muchun Song wrote: > On Wed, Mar 10, 2021 at 11:19 PM Michal Hocko wrote: > > > > On Mon 08-03-21 18:28:02, Muchun Song wrote: [...] > > > @@ -1771,8 +1813,12 @@ int dissolve_free_huge_page(struct page *page) > > > h->free_huge_pages--; > > > h

Re: [External] Re: [PATCH v18 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-03-11 Thread Muchun Song
On Thu, Mar 11, 2021 at 10:58 AM Muchun Song wrote: > > On Wed, Mar 10, 2021 at 10:14 PM Michal Hocko wrote: > > > > [I am sorry for a late review] > > Thanks for your review. > > > > > On Mon 08-03-21 18:27:59, Muchun Song wrote: > > > Move bootmem info registration common API to individual boot

[PATCH] net/rds: Fix a use after free in rds_message_map_pages

2021-03-11 Thread Lv Yunlong
In rds_message_map_pages, rds_message_put() will free rm. Maybe store the value of rm->data.op_sg ahead of rds_message_put() is better. Otherwise other threads could allocate the freed chunk and may change the value of rm->data.op_sg. Signed-off-by: Lv Yunlong --- net/rds/message.c | 3 ++- 1 fi

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 06:13:21PM -0800, Mike Kravetz wrote: > from irq context. Changing the check in the code from !in_task to > in_atomic would handle the situations when called with irqs disabled. It does not. local_irq_disable() does not change preempt_count().

Re: [PATCH 0/5] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-11 Thread Mel Gorman
On Wed, Mar 10, 2021 at 03:47:04PM -0800, Andrew Morton wrote: > On Wed, 10 Mar 2021 10:46:13 + Mel Gorman > wrote: > > > This series introduces a bulk order-0 page allocator with sunrpc and > > the network page pool being the first users. > > > > Right now, the [0/n] doesn't even tell us

Re: [PATCH] perf annotate: Fix sample events lost in stdio mode

2021-03-11 Thread Yang Jihong
Hello, On 2021/3/6 16:28, Yang Jihong wrote: In hist__find_annotations function, since have a hist_entry per IP for the same symbol, we free notes->src to signal already processed this symbol in stdio mode; when annotate, entry will skipped if notes->src is NULL to avoid repeated output. Howe

Re: [PATCH 1/5] perf metricgroup: Support printing metrics for arm64

2021-03-11 Thread John Garry
On 06/03/2021 19:34, Jiri Olsa wrote: On Fri, Mar 05, 2021 at 11:06:58AM +, John Garry wrote: Hi Jirka, - struct pmu_events_map *map = perf_pmu__find_map(NULL); + struct pmu_events_map *map = find_cpumap(); so this is just for arm at the moment right? Yes - but to be more ac

Re: [External] Re: [PATCH v18 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-03-11 Thread Muchun Song
On Thu, Mar 11, 2021 at 4:46 PM Michal Hocko wrote: > > On Thu 11-03-21 12:26:32, Muchun Song wrote: > > On Wed, Mar 10, 2021 at 11:19 PM Michal Hocko wrote: > > > > > > On Mon 08-03-21 18:28:02, Muchun Song wrote: > [...] > > > > @@ -1771,8 +1813,12 @@ int dissolve_free_huge_page(struct page *pa

Re: [PATCH v2 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-11 Thread Christian König
Am 10.03.21 um 23:13 schrieb Felix Kuehling: On 2021-03-09 11:50 a.m., Felix Kuehling wrote: Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link against the exported functions. If the GPU driver is built-in but the IOMMU driver is a loadable module, the kfd_iommu.c file is ind

Re: [External] Re: [PATCH v18 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 14:34:04, Muchun Song wrote: > On Wed, Mar 10, 2021 at 11:28 PM Michal Hocko wrote: > > > > On Mon 08-03-21 18:28:03, Muchun Song wrote: > > > Because we reuse the first tail vmemmap page frame and remap it > > > with read-only, we cannot set the PageHWPosion on some tail pages. >

[PATCH] bootconfig: Update prototype of setup_boot_config()

2021-03-11 Thread Cao jin
Parameter "cmdline" has no use, drop it. Signed-off-by: Cao jin --- init/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init/main.c b/init/main.c index c68d784376ca..621a11ed18fb 100644 --- a/init/main.c +++ b/init/main.c @@ -404,7 +404,7 @@ static int __init bo

Re: [PATCH] vmscan: retry without cache trim mode if nothing scanned

2021-03-11 Thread Huang, Ying
Hi, Butt, Shakeel Butt writes: > On Wed, Mar 10, 2021 at 4:47 PM Huang, Ying wrote: >> >> From: Huang Ying >> >> In shrink_node(), to determine whether to enable cache trim mode, the >> LRU size is gotten via lruvec_page_state(). That gets the value from >> a per-CPU counter (mem_cgroup_per_n

[PATCH v9.1 6/8] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-11 Thread Mirela Rabulea (OSS)
From: Mirela Rabulea V4L2 driver for the JPEG encoder/decoder from i.MX8QXP/i.MX8QM application processors. The multi-planar buffers API is used. Baseline and extended sequential jpeg decoding is supported. Progressive jpeg decoding is not supported by the IP. Supports encode and decode of vario

Re: [External] Re: [PATCH v18 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 16:45:51, Muchun Song wrote: > On Thu, Mar 11, 2021 at 10:58 AM Muchun Song wrote: > > > > On Wed, Mar 10, 2021 at 10:14 PM Michal Hocko wrote: > > > > > > [I am sorry for a late review] > > > > Thanks for your review. > > > > > > > > On Mon 08-03-21 18:27:59, Muchun Song wrote: >

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-11 Thread 堀口 直也
On Wed, Mar 10, 2021 at 02:10:42PM +0800, Aili Yao wrote: > On Fri, 5 Mar 2021 15:55:25 + > "Luck, Tony" wrote: > > > > From the walk, it seems we have got the virtual address, can we just send > > > a SIGBUS with it? > > > > If the walk wins the race and the pte for the poisoned page is

Re: [External] Re: [PATCH v18 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 15:33:20, Muchun Song wrote: > On Wed, Mar 10, 2021 at 11:41 PM Michal Hocko wrote: > > > > On Mon 08-03-21 18:28:07, Muchun Song wrote: > > > When the "struct page size" crosses page boundaries we cannot > > > make use of this feature. Let free_vmemmap_pages_per_hpage() > > > retu

Re: [PATCH v26 2/4] scsi: ufs: L2P map management for HPB read

2021-03-11 Thread Can Guo
On 2021-03-03 14:28, Daejun Park wrote: This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each s

Re: rtc: rtc-m48t59: rtc-m48t59.0: IRQ index 0 not found

2021-03-11 Thread Alexandre Belloni
Hello, On 10/03/2021 10:53:34+0100, Corentin Labbe wrote: > Hello > > On my SPARC sunblade 100, I got this: > [ 13.613727] rtc-m48t59 rtc-m48t59.0: IRQ index 0 not found > [ 13.805777] rtc-m48t59 rtc-m48t59.0: registered as rtc0 > [ 14.385092] rtc-m48t59 rtc-m48t59.0: setting system clock t

[PATCH v2] f2fs: allow to change discard policy based on cached discard cmds

2021-03-11 Thread Sahitya Tummala
With the default DPOLICY_BG discard thread is ioaware, which prevents the discard thread from issuing the discard commands. On low RAM setups, it is observed that these discard commands in the cache are consuming high memory. This patch aims to relax the memory pressure on the system due to f2fs pe

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 09:46:30, Peter Zijlstra wrote: > On Wed, Mar 10, 2021 at 06:13:21PM -0800, Mike Kravetz wrote: > > from irq context. Changing the check in the code from !in_task to > > in_atomic would handle the situations when called with irqs disabled. > > It does not. local_irq_disable() does

RE: [PATCH v5 05/10] scsi: ufshpb: Region inactivation in host mode

2021-03-11 Thread Avri Altman
> > On 2021-03-02 21:24, Avri Altman wrote: > > I host mode, the host is expected to send HPB-WRITE-BUFFER with > > In host mode, Done. > > static int ufshpb_issue_umap_all_req(struct ufshpb_lu *hpb) > > { > > return ufshpb_issue_umap_req(hpb, NULL); > > @@ -1115,6 +1122,10 @@ static voi

[PATCH v5 0/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v5 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

Re: [External] Re: [PATCH v18 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-03-11 Thread Muchun Song
On Thu, Mar 11, 2021 at 4:53 PM Michal Hocko wrote: > > On Thu 11-03-21 16:45:51, Muchun Song wrote: > > On Thu, Mar 11, 2021 at 10:58 AM Muchun Song > > wrote: > > > > > > On Wed, Mar 10, 2021 at 10:14 PM Michal Hocko wrote: > > > > > > > > [I am sorry for a late review] > > > > > > Thanks for

[tip: perf/urgent] x86/perf: Use RET0 as default for guest_get_msrs to handle "no PMU" case

2021-03-11 Thread tip-bot2 for Sean Christopherson
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: c8e2fe13d1d1f3a02842b7b909d4e4846a4b6a2c Gitweb: https://git.kernel.org/tip/c8e2fe13d1d1f3a02842b7b909d4e4846a4b6a2c Author:Sean Christopherson AuthorDate:Tue, 09 Mar 2021 09:10:19 -08:00 C

Re: [External] Re: [PATCH v18 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-03-11 Thread Muchun Song
On Thu, Mar 11, 2021 at 4:55 PM Michal Hocko wrote: > > On Thu 11-03-21 15:33:20, Muchun Song wrote: > > On Wed, Mar 10, 2021 at 11:41 PM Michal Hocko wrote: > > > > > > On Mon 08-03-21 18:28:07, Muchun Song wrote: > > > > When the "struct page size" crosses page boundaries we cannot > > > > make

Re: [PATCH]] drm/amdgpu/gfx9: add gfxoff quirk

2021-03-11 Thread Daniel Gomez
On Wed, 10 Mar 2021 at 18:06, Alex Deucher wrote: > > On Wed, Mar 10, 2021 at 11:37 AM Daniel Gomez wrote: > > > > Disabling GFXOFF via the quirk list fixes a hardware lockup in > > Ryzen V1605B, RAVEN 0x1002:0x15DD rev 0x83. > > > > Signed-off-by: Daniel Gomez > > --- > > > > This patch is a co

[PATCH v2] dt-bindings: timer: renesas,cmt: add r8a779a0 CMT support

2021-03-11 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- Changes since V1: * none, but additional testing was done which revealed that this CMT in deed behaves the same as other Gen3 SoCs. There was one hickup which seemed unique to V3U but has been reproduced with M3N meanwhile. This is something we need to tackle

Re: [PATCH v7 11/17] remoteproc: Properly deal with the resource table when detaching

2021-03-11 Thread Arnaud POULIQUEN
Hi Mathieu, Just a minor comment, with that Reviewed-by: Arnaud Pouliquen On 3/10/21 10:10 PM, Mathieu Poirier wrote: > If it is possible to detach the remote processor, keep an untouched > copy of the resource table. That way we can start from the same > resource table without having to worry

[PATCH] iio: kfifo: add devm_iio_triggered_buffer_setup_ext variant

2021-03-11 Thread Alexandru Ardelean
This is similar to the {devm_}iio_triggered_buffer_setup_ext variants added via commit 5164c7889857 ("iio: triggered-buffer: add {devm_}iio_triggered_buffer_setup_ext variants"). These can be used to pass extra buffer attributes to the buffer object. This is a bit of temporary mechanism (hopefully

Re: [RFT PATCH v3 12/27] of/address: Add infrastructure to declare MMIO as non-posted

2021-03-11 Thread Arnd Bergmann
On Wed, Mar 10, 2021 at 6:01 PM Rob Herring wrote: > > On Wed, Mar 10, 2021 at 1:27 AM Hector Martin wrote: > > > > On 10/03/2021 07.06, Rob Herring wrote: > > >> My main concern here is that this creates an inconsistency in the device > > >> tree representation that only works because PCI driver

Re: [EXT] Re: [PATCH v9 6/8] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-11 Thread Mirela Rabulea
On Thu, 2021-03-11 at 08:27 +0100, Hans Verkuil wrote: > Caution: EXT Email > > Hi Mirela, > > On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > > > > > +static const struct of_device_id mxc_jpeg_match[] = { > > + { > > + .compatible = "nxp,imx8qxp-jpgdec", > > + .

[PATCH] drivers: spi: cadence: set cqspi to the driver_data field of struct device

2021-03-11 Thread Meng . Li
From: Meng Li When initialize cadence qspi controller, it is need to set cqspi to the driver_data field of struct device, because it will be used in function cqspi_remove/suspend/resume(). Otherwise, there will be a crash trace as below when invoking these finctions. Call trace: cqspi_suspend+0x

Re: [External] Re: [PATCH v18 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-11 Thread Muchun Song
On Thu, Mar 11, 2021 at 4:50 PM Michal Hocko wrote: > > On Thu 11-03-21 14:34:04, Muchun Song wrote: > > On Wed, Mar 10, 2021 at 11:28 PM Michal Hocko wrote: > > > > > > On Mon 08-03-21 18:28:03, Muchun Song wrote: > > > > Because we reuse the first tail vmemmap page frame and remap it > > > > wi

Re: [PATCH v7 12/17] remoteproc: Properly deal with the resource table when stopping

2021-03-11 Thread Arnaud POULIQUEN
On 3/11/21 12:53 AM, Bjorn Andersson wrote: > On Wed 10 Mar 15:10 CST 2021, Mathieu Poirier wrote: > >> When a remote processor that was attached to is stopped, special care >> must be taken to make sure the shutdown process is similar to what >> it would be had it been started by the remotepro

Re: [RFC v2 3/5] arm64: socfpga: rename ARCH_STRATIX10 to ARCH_SOCFPGA64

2021-03-11 Thread Arnd Bergmann
On Thu, Mar 11, 2021 at 8:08 AM Krzysztof Kozlowski wrote: > On 10/03/2021 17:42, Arnd Bergmann wrote: > > On Wed, Mar 10, 2021 at 4:54 PM Krzysztof Kozlowski > > wrote: > >> On 10/03/2021 16:47, Krzysztof Kozlowski wrote: > >>> This edac Altera driver is very weird... it uses the same compatible

Re: [PATCH 00/13] Add binding updates and DT files for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
On 3/11/2021 5:43 AM, Bjorn Andersson wrote: On Fri 12 Feb 01:28 CST 2021, Rajendra Nayak wrote: This series includes a few minor binding updates and base device tree files (to boot to shell) for SC7280 SoC and the IDP board using this SoC. The series is dependent on a few driver patches to

Re: [PATCH] staging: rtl8723bs: align comments

2021-03-11 Thread Joe Perches
On Wed, 2021-03-10 at 20:48 +0300, Dan Carpenter wrote: > You need to have a space character after the '*'. Perhaps YA checkpatch test... --- scripts/checkpatch.pl | 15 +++ 1 file changed, 15 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f42e5ba16d9b

[PATCH v5] powerpc/uprobes: Validation for prefixed instruction

2021-03-11 Thread Ravi Bangoria
As per ISA 3.1, prefixed instruction should not cross 64-byte boundary. So don't allow Uprobe on such prefixed instruction. There are two ways probed instruction is changed in mapped pages. First, when Uprobe is activated, it searches for all the relevant pages and replace instruction in them. In

Re: [PATCH v2 03/14] arm64: dts: sc7280: Add basic dts/dtsi files for sc7280 soc

2021-03-11 Thread Rajendra Nayak
On 3/4/2021 5:37 AM, Stephen Boyd wrote: Quoting Rajendra Nayak (2021-03-03 04:17:47) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi new file mode 100644 index 000..4a56d9c --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -0,0 +1,299 @

Re: [PATCH v5] printk: Userspace format enumeration support

2021-03-11 Thread Petr Mladek
On Wed 2021-03-10 12:17:51, Chris Down wrote: > Hey Petr, > > Chris Down writes: > >$ head -1 vmlinux; shuf -n 5 vmlinux > ># filename:line function "format" > ><5> block/blk-settings.c:661 disk_stack_limits "%s: Warning: Device %s > > is misaligned\n" > ><4> kernel/trace/trace.c

Re: [PATCH] infiniband/core: Fix a use after free in cm_work_handler

2021-03-11 Thread Leon Romanovsky
On Wed, Mar 10, 2021 at 06:21:53PM -0800, Lv Yunlong wrote: > In cm_work_handler, it calls destory_cm_id() to release > the initial reference of cm_id_priv taken by iw_create_cm_id() > and free the cm_id_priv. After destory_cm_id(), iwcm_deref_id > (cm_id_priv) will be called and cause a use after

Re: [RFC PATCH 1/5] rpmb: add Replay Protected Memory Block (RPMB) subsystem

2021-03-11 Thread Hector Martin
On 11/03/2021 09.36, Linus Walleij wrote: It is not intended to store keys in a way that is somehow safer than other mechanisms. After all, you need to securely store the RPMB key to begin with; you might as well use that to encrypt a keystore on any random block device. The typical use-case me

Re: [PATCH v2] dt-bindings: timer: renesas,cmt: add r8a779a0 CMT support

2021-03-11 Thread Geert Uytterhoeven
On Thu, Mar 11, 2021 at 10:09 AM Wolfram Sang wrote: > Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical pe

[PATCH][next] usb: mtu3: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Colin King
From: Colin Ian King The variable u3_ports_disabed contains a spelling mistake, rename it to u3_ports_disabled. Signed-off-by: Colin Ian King --- drivers/usb/mtu3/mtu3_host.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/

Re: [PATCH v2] dt-bindings: timer: renesas,cmt: add r8a779a0 CMT support

2021-03-11 Thread Niklas Söderlund
Hi Wolfram, Thanks for your patch. On 2021-03-11 10:09:18 +0100, Wolfram Sang wrote: > Signed-off-by: Wolfram Sang Reviewed-by: Niklas Söderlund > --- > > Changes since V1: > * none, but additional testing was done which revealed that this CMT > in deed behaves the same as other Gen3 SoCs.

k210-sysctl.c:undefined reference to `k210_clk_early_init'

2021-03-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a74e6a014c9d4d4161061f770c9b4f98372ac778 commit: c6ca7616f7d5c2ce166280107ba74db1d528fcb7 clk: Add RISC-V Canaan Kendryte K210 clock driver date: 2 weeks ago config: riscv-randconfig-r006-20210311

[PATCH][next] drm/amdgpu: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Colin King
From: Colin Ian King There is a spelling mistake in a drm debug message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/am

RE: The killing of ideal_nops[]

2021-03-11 Thread David Laight
From: Peter Zijlstra ... > Below is the latest version which I just pushed out to my git tree so > that the robots can have a go at it. Why not delete the indirection table? So you end up with: > +#ifndef CONFIG_64BIT > + > +/* > + * Generic 32bit nops from GAS: > + * > + * 1: nop > + * 2: movl

[PATCH] thermal: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Colin King
From: Colin Ian King There is a spelling mistake in a comment, fix it. Signed-off-by: Colin Ian King --- include/uapi/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/thermal.h b/include/uapi/linux/thermal.h index c105054cbb57..9aa2fedfa309

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Peter Zijlstra
On Thu, Mar 11, 2021 at 10:01:22AM +0100, Michal Hocko wrote: > On Thu 11-03-21 09:46:30, Peter Zijlstra wrote: > > On Wed, Mar 10, 2021 at 06:13:21PM -0800, Mike Kravetz wrote: > > > from irq context. Changing the check in the code from !in_task to > > > in_atomic would handle the situations when

Re: [RFC] mm: Enable generic pfn_valid() to handle early sections with memmap holes

2021-03-11 Thread Will Deacon
On Thu, Mar 11, 2021 at 01:22:53PM +0530, Anshuman Khandual wrote: > On 3/8/21 2:25 PM, Mike Rapoport wrote: > > On Mon, Mar 08, 2021 at 08:57:53AM +0530, Anshuman Khandual wrote: > >> Platforms like arm and arm64 have redefined pfn_valid() because their early > >> memory sections might have contai

[PATCH] staging: rtl8723bs: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Colin King
From: Colin Ian King There is a spelling mistake in a comment, fix it. Signed-off-by: Colin Ian King --- drivers/staging/rtl8723bs/include/wifi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wi

Re: 'make O=' indigestion with module signing

2021-03-11 Thread David Howells
Valdis Klētnieks wrote: > What i *expected* was that multiple builds with different O= would each > generate themselves a unique signing key and put it in their own O= directory > and stay out of each other's way. Hmmm... Works for me. I use separate build dirs all the time. What version of t

Re: [PATCH v5] printk: Userspace format enumeration support

2021-03-11 Thread Petr Mladek
On Wed 2021-03-10 13:16:43, Greg Kroah-Hartman wrote: > On Wed, Mar 10, 2021 at 12:12:57PM +, Chris Down wrote: > > Greg Kroah-Hartman writes: > > > On Wed, Mar 10, 2021 at 02:30:31AM +, Chris Down wrote: > > > > + ps->file = debugfs_create_file(pi_get_module_name(mod), 0444, > > > >

Re: [PATCH] ASoC: soc-core: fix DMI handling

2021-03-11 Thread Jean Delvare
On Wed, 10 Mar 2021 13:39:27 -0600, Pierre-Louis Bossart wrote: > When DMI information is not present, trying to assign the card long > name results in the following warning. > > WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! > > The initial solution suggested was to test if

Re: [PATCH] kernel/irq: export irq_gc_set_wake

2021-03-11 Thread Marc Zyngier
On Wed, 10 Mar 2021 22:58:50 +, Linus Walleij wrote: > > On Fri, Mar 5, 2021 at 9:07 AM Jianqun Xu wrote: > > > Module driver may use irq_gc_set_wake. > > > > Signed-off-by: Jianqun Xu > > Aha there it is, perfect! > > Marc/Thomas: can I have an ACK to apply this patch to the > pin contr

Re: [PATCH v1 1/3] binder: BINDER_FREEZE ioctl

2021-03-11 Thread Li Li
On Wed, Mar 10, 2021 at 11:33 PM Greg KH wrote: > > On Wed, Mar 10, 2021 at 02:52:49PM -0800, Li Li wrote: > > if (target_proc) { > > binder_inner_proc_lock(target_proc); > > + target_proc->outstanding_txns--; > > + WARN_ON(target_proc->outstanding_txns

Re: [External] Re: [PATCH v18 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 17:08:34, Muchun Song wrote: > On Thu, Mar 11, 2021 at 4:55 PM Michal Hocko wrote: > > > > On Thu 11-03-21 15:33:20, Muchun Song wrote: > > > On Wed, Mar 10, 2021 at 11:41 PM Michal Hocko wrote: > > > > > > > > On Mon 08-03-21 18:28:07, Muchun Song wrote: > > > > > When the "struc

[PATCH] powerpc/prom: remove unneeded semicolon

2021-03-11 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/kernel/prom_init.c:2986:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/kernel/prom_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/prom_init.c b

[PATCH] ftrace: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Colin King
From: Colin Ian King There is a spelling mistake in a comment, fix it. Signed-off-by: Colin Ian King --- arch/csky/kernel/probes/ftrace.c | 2 +- arch/riscv/kernel/probes/ftrace.c | 2 +- arch/x86/kernel/kprobes/ftrace.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/

[PATCH] mmc: sdhci: Use "mmc" directly rather than "host->mmc"

2021-03-11 Thread Jisheng Zhang
Clean up the code to use the "mmc" directly instead of "host->mmc". If the code sits in hot code path, this clean up also brings trvial performance improvement. Take the sdhci_post_req() for example: before the patch: ... 8d0: a9be7bfdstp x29, x30, [sp, #-32]! 8d4:

[PATCH] mmc: sdio: fix a typo in the comment of SDIO_SD_REV_3_00

2021-03-11 Thread Jisheng Zhang
I believe "Spev" is typo, should be "Spec". Signed-off-by: Jisheng Zhang --- include/linux/mmc/sdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mmc/sdio.h b/include/linux/mmc/sdio.h index e28769991e82..2a05d1ac4f0e 100644 --- a/include/linux/mmc/sdio.h +++

Re: [PATCH 5.4 00/24] 5.4.105-rc1 review

2021-03-11 Thread Samuel Zou
On 2021/3/10 21:24, gre...@linuxfoundation.org wrote: From: Greg Kroah-Hartman This is the start of the stable review cycle for the 5.4.105 release. There are 24 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please l

Re: [PATCH v2] nvme-tcp: Check if request has started before processing it

2021-03-11 Thread Daniel Wagner
Hi Sagi, On Fri, Mar 05, 2021 at 11:57:30AM -0800, Sagi Grimberg wrote: > Daniel, again, there is nothing specific about this to nvme-tcp, > this is a safeguard against a funky controller (or a different > bug that is hidden by this). As far I can tell, the main difference between nvme-tcp and FC

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