Re: INFO: task hung in corrupted (2)

2020-06-10 Thread Jiri Kosina
On Thu, 11 Jun 2020, Peter Hutterer wrote: > based on the line numbers it's the while loop in there which is also the one > that could be unbounded if the hid collection isn't set up correctly or if > we have some other corruption happening. Given the fact this is syzkaller-induced, it's almost c

Re: [PATCH v2 6/6] iio: remove left-over parent assignments

2020-06-10 Thread Ardelean, Alexandru
On Sat, 2020-06-06 at 17:05 +0100, Jonathan Cameron wrote: > [External] > > On Wed, 3 Jun 2020 14:40:23 +0300 > Alexandru Ardelean wrote: > > > These were found by doing some shell magic: > > > > for file in $(git grep -w devm_iio_device_alloc | cut -d: -f1 | sort | uniq) > > ; do >

Re: [PATCH 0/2] PUD/PGDIR entries for linear mapping

2020-06-10 Thread Alex Ghiti
Hi Atish, Le 6/10/20 à 2:32 PM, Atish Patra a écrit : On Wed, Jun 3, 2020 at 8:36 AM Alexandre Ghiti wrote: This small patchset intends to use PUD/PGDIR entries for linear mapping in order to better utilize TLB. At the moment, only PMD entries can be used since on common platforms (qemu/unlea

RE: [PATCH 4.4 00/36] 4.4.227-rc2 review

2020-06-10 Thread Chris Paterson
Hello Greg, > From: stable-ow...@vger.kernel.org On > Behalf Of Greg Kroah-Hartman > Sent: 09 June 2020 20:18 > > This is the start of the stable review cycle for the 4.4.227 release. > There are 36 patches in this series, all will be posted as a response > to this one. If anyone has any issues

RE: [PATCH 4.19 00/25] 4.19.128-rc2 review

2020-06-10 Thread Chris Paterson
Hello Greg, > From: stable-ow...@vger.kernel.org On > Behalf Of Greg Kroah-Hartman > Sent: 09 June 2020 20:19 > > This is the start of the stable review cycle for the 4.19.128 release. > There are 25 patches in this series, all will be posted as a response > to this one. If anyone has any issue

RE: [RFC PATCH 5/5] scsi: ufs: Prepare HPB read for cached sub-region

2020-06-10 Thread Avri Altman
> > +static inline bool ufshpb_is_support_chunk(int transfer_len) > > +{ > > + return transfer_len <= HPB_MULTI_CHUNK_HIGH; > > +} > > The names used in the above function are mysterious. What is a support > chunk? What does "multi chunk high" mean? Please add a comment. HPB1.0 limits transf

Re: [PATCH v3 6/7] venus: Make debug infrastructure more flexible

2020-06-10 Thread Joe Perches
On Thu, 2020-06-11 at 08:26 +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 10, 2020 at 01:23:56PM -0700, Joe Perches wrote: > > On Wed, 2020-06-10 at 12:49 -0700, Joe Perches wrote: > > > On Wed, 2020-06-10 at 15:37 +0200, Greg Kroah-Hartman wrote: > > > > Please work with the infrastructure we hav

Re: [PATCH] dt-bindings: mfd: Ensure 'syscon' has a more specific compatible

2020-06-10 Thread Lee Jones
Arnd, On Wed, 10 Jun 2020, Rob Herring wrote: > Using 'syscon' alone should be avoided as compatible strings should be > specific enough to identify the exact set of registers contained. Update > the schema to ensure at least 2 compatible strings are present. I'm assuming you're okay with this?

drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types)

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 05933aac7b11911955de307a329dc2a7a14b7bd0 ia64: remove now unused machvec indirections date: 10 months ago config: ia64-randconfig-s032-20200611 (attached as

Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-10 Thread Joe Perches
On Thu, 2020-06-11 at 08:25 +0200, SeongJae Park wrote: > From: SeongJae Park > > This patchset 1) adds support of deprecated terms in the 'checkpatch.pl' > and 2) set the 'blacklist' and 'whitelist' as deprecated with > replacement suggestion of 'denylist' and 'allowlist', because the > suggesti

Re: [PATCH v2 1/3] docs: IOMMU user API

2020-06-10 Thread Lu Baolu
Hi Jacob, On 2020/6/11 12:12, Jacob Pan wrote: IOMMU UAPI is newly introduced to support communications between guest virtual IOMMU and host IOMMU. There has been lots of discussions on how it should work with VFIO UAPI and userspace in general. This document is indended to clarify the UAPI des

Re: [PATCH] checkpatch: ignore CamelCase for inttypes.h format specifiers

2020-06-10 Thread Joe Perches
On Wed, 2020-06-10 at 23:01 -0700, Scott Branden wrote: > Hi Joe, > > A few questions about changes below. > > On 2020-06-10 3:22 p.m., Joe Perches wrote: > > On Wed, 2020-06-10 at 14:48 -0700, Scott Branden wrote: > > > On 2020-06-10 2:09 p.m., Joe Perches wrote: > > > > On Wed, 2020-06-10 at 13

[PATCH v4 2/2] scripts/deprecated_terms: Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-10 Thread SeongJae Park
From: SeongJae Park This commit recommends the patches to replace 'blacklist' and 'whitelist' with the 'denylist' and 'allowlist', because the new suggestions are incontrovertible, doesn't make people hurt, and more self-explanatory. Signed-off-by: SeongJae Park --- scripts/deprecated_terms.tx

Re: [PATCH v3 6/7] venus: Make debug infrastructure more flexible

2020-06-10 Thread Greg Kroah-Hartman
On Wed, Jun 10, 2020 at 01:23:56PM -0700, Joe Perches wrote: > On Wed, 2020-06-10 at 12:49 -0700, Joe Perches wrote: > > On Wed, 2020-06-10 at 15:37 +0200, Greg Kroah-Hartman wrote: > > > Please work with the infrastructure we have, we have spent a lot of time > > > and effort to make it uniform to

[PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-10 Thread SeongJae Park
From: SeongJae Park This patchset 1) adds support of deprecated terms in the 'checkpatch.pl' and 2) set the 'blacklist' and 'whitelist' as deprecated with replacement suggestion of 'denylist' and 'allowlist', because the suggestions are incontrovertible, doesn't make people hurt, and more self-ex

[PATCH v4 1/2] checkpatch: support deprecated terms checking

2020-06-10 Thread SeongJae Park
From: SeongJae Park Some terms could be deprecated for various reasons, but it is hard to update the entire old usages. That said, we could at least encourage new patches to use the suggested replacements. This commit adds check of deprecated terms in the 'checkpatch.pl' for that. The script w

[PATCH v12 16/16] mm/lru: revise the comments of lru_lock

2020-06-10 Thread Alex Shi
From: Hugh Dickins Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to fix the incorrect comments in code. Also fixed some zone->lru_lock comment error from ancient time. etc. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey Ry

[PATCH v12 08/16] mm/memcg: add debug checking in lock_page_memcg

2020-06-10 Thread Alex Shi
Add a debug checking in lock_page_memcg, then we could get alarm if anything wrong here. Suggested-by: Johannes Weiner Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton Cc: cgro...@vger.kernel.org Cc: linux...@kvack.org Cc: linux-kernel@vger.

[PATCH v12 07/16] mm/thp: narrow lru locking

2020-06-10 Thread Alex Shi
lru_lock and page cache xa_lock have no reason with current sequence, put them together isn't necessary. let's narrow the lru locking, but left the local_irq_disable/preempt_disable to block interrupt re-entry and statistic update. Signed-off-by: Alex Shi Signed-off-by: Wei Yang Cc: Kirill A. Sh

[PATCH v12 02/16] mm/page_idle: no unlikely double check for idle page counting

2020-06-10 Thread Alex Shi
As func comments mentioned, few isolated page missing be tolerated. So why not do further to drop the unlikely double check. That won't cause more idle pages, but reduce a lock contention. This is also a preparation for later new page isolation feature. Signed-off-by: Alex Shi Cc: Andrew Morton

[PATCH v12 06/16] mm/thp: clean up lru_add_page_tail

2020-06-10 Thread Alex Shi
Since the first parameter is only used by head page, it's better to make it stright. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/huge_memory.c | 12 ++-- 1 file change

[PATCH v12 04/16] mm/compaction: rename compact_deferred as compact_should_defer

2020-06-10 Thread Alex Shi
The compact_deferred is a defer suggestion check, deferring action does in defer_compaction not here. so, better rename it to avoid confusing. Signed-off-by: Alex Shi Cc: Steven Rostedt Cc: Ingo Molnar Cc: Andrew Morton Cc: Vlastimil Babka Cc: Mike Kravetz Cc: linux-kernel@vger.kernel.org Cc

[PATCH v12 05/16] mm/thp: move lru_add_page_tail func to huge_memory.c

2020-06-10 Thread Alex Shi
The func is only used in huge_memory.c, defining it in other file with a CONFIG_TRANSPARENT_HUGEPAGE macro restrict just looks weird. Let's move it THP. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Dickins Cc: linux-kernel@vger.kernel.org Cc: linu

[PATCH v12 11/16] mm/mlock: reorder isolation sequence during munlock

2020-06-10 Thread Alex Shi
This patch reorder the isolation steps during munlock, move the lru lock to guard each pages, unfold __munlock_isolate_lru_page func, to do the preparation for lru lock change. __split_huge_page_refcount doesn't exist, but we still have to guard PageMlocked and PageLRU in __split_huge_page_tail.

[PATCH v12 09/16] mm/lru: introduce TestClearPageLRU

2020-06-10 Thread Alex Shi
Combine PageLRU check and ClearPageLRU into a function by new introduced func TestClearPageLRU. This function will be used as page isolation precondition to prevent other isolations some where else. Then there are may non PageLRU page on lru list, need to remove BUG checking accordingly. As Andre

[PATCH v12 00/16] per memcg lru lock

2020-06-10 Thread Alex Shi
This is a new version which bases on v5.8, only change mm/compaction.c since mm-compaction-avoid-vm_bug_onpageslab-in-page_mapcount.patch removed. Johannes Weiner has suggested: "So here is a crazy idea that may be worth exploring: Right now, pgdat->lru_lock protects both PageLRU *and* the lruve

[PATCH v12 10/16] mm/compaction: do page isolation first in compaction

2020-06-10 Thread Alex Shi
Johannes Weiner has suggested: "So here is a crazy idea that may be worth exploring: Right now, pgdat->lru_lock protects both PageLRU *and* the lruvec's linked list. Can we make PageLRU atomic and use it to stabilize the lru_lock instead, and then use the lru_lock only serialize list operations?

[PATCH v12 01/16] mm/vmscan: remove unnecessary lruvec adding

2020-06-10 Thread Alex Shi
We don't have to add a freeable page into lru and then remove from it. This change saves a couple of actions and makes the moving more clear. The SetPageLRU needs to be kept here for list intergrity. Otherwise: #0 mave_pages_to_lru #1 release_pages

[PATCH v12 12/16] mm/lru: replace pgdat lru_lock with lruvec lock

2020-06-10 Thread Alex Shi
This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg charge before lru inserting, page iso

[PATCH v12 03/16] mm/compaction: correct the comments of compact_defer_shift

2020-06-10 Thread Alex Shi
There is no compact_defer_limit. It should be compact_defer_shift in use. and add compact_order_failed explanation. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- include/linux/mmzone.h | 1 + mm/compaction.c| 2 +- 2 files changed,

[PATCH v12 13/16] mm/lru: introduce the relock_page_lruvec function

2020-06-10 Thread Alex Shi
Use this new function to replace repeated same code. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: Thomas Gleixner Cc: Andrey Ryabinin Cc: Matthew Wilcox Cc: Mel Gorman Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Tejun Heo Cc: linux-kernel@vger.kernel.org Cc: cgro.

[PATCH v12 15/16] mm/pgdat: remove pgdat lru_lock

2020-06-10 Thread Alex Shi
Now pgdat.lru_lock was replaced by lruvec lock. It's not used anymore. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Johannes Weiner Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org Cc: cgro...@vger.kernel.org --- include/linux/mmzone.h | 1 -

[PATCH v12 14/16] mm/vmscan: use relock for move_pages_to_lru

2020-06-10 Thread Alex Shi
From: Hugh Dickins Use the relock function to replace relocking action. And try to save few lock times. Signed-off-by: Hugh Dickins Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Tejun Heo Cc: Andrey Ryabinin Cc: Jann Horn Cc: Mel Gorman Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Hugh Di

[PATCH v8 4/6] clocksource/drivers/timer-riscv: Use per-CPU timer interrupt

2020-06-10 Thread Anup Patel
Instead of directly calling RISC-V timer interrupt handler from RISC-V local interrupt conntroller driver, this patch implements RISC-V timer interrupt as a per-CPU interrupt using per-CPU APIs of Linux IRQ subsystem. Signed-off-by: Anup Patel Reviewed-by: Atish Patra Reviewed-by: Marc Zyngier

[PATCH v8 6/6] RISC-V: Force select RISCV_INTC for CONFIG_RISCV

2020-06-10 Thread Anup Patel
The RISC-V per-HART local interrupt controller driver is mandatory for all RISC-V system (with/without MMU) hence we force select it for CONFIG_RISCV (just like RISCV_TIMER). Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v8 2/6] RISC-V: Rename and move plic_find_hart_id() to arch directory

2020-06-10 Thread Anup Patel
The plic_find_hart_id() can be useful to other interrupt controller drivers (such as RISC-V local interrupt driver) so we rename this function to riscv_of_parent_hartid() and place it in arch directory along with riscv_of_processor_hartid(). Signed-off-by: Anup Patel Reviewed-by: Atish Patra Rev

[PATCH v8 0/6] New RISC-V Local Interrupt Controller Driver

2020-06-10 Thread Anup Patel
This patchset provides a new RISC-V Local Interrupt Controller Driver for managing per-CPU local interrupts. The overall approach is inspired from the way per-CPU local interrupts are handled by Linux ARM64 and ARM GICv3 driver. It is a major re-write over perviously submitted version. (Refer, htt

[PATCH v8 1/6] RISC-V: self-contained IPI handling routine

2020-06-10 Thread Anup Patel
Currently, the IPI handling routine riscv_software_interrupt() does not take any argument and also does not perform irq_enter()/irq_exit(). This patch makes IPI handling routine more self-contained by: 1. Passing "pt_regs *" argument 2. Explicitly doing irq_enter()/irq_exit() 3. Explicitly save/re

[PATCH v8 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-06-10 Thread Anup Patel
The RISC-V per-HART local interrupt controller manages software interrupts, timer interrupts, external interrupts (which are routed via the platform level interrupt controller) and other per-HART local interrupts. We add a driver for the RISC-V local interrupt controller, which eventually replaces

[PATCH v8 5/6] RISC-V: Remove do_IRQ() function

2020-06-10 Thread Anup Patel
The only thing do_IRQ() does is call handle_arch_irq function pointer. We can very well call handle_arch_irq function pointer directly from assembly and remove do_IRQ() function hence this patch. Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- arch/riscv/kernel/entry.S | 4 +++- arch/ris

Re: [PATCH v2] usb: dwc3: Add support for VBUS power control

2020-06-10 Thread Mike Looijmans
Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: mike.looijm...@topicproducts.com W: www.topicproducts.com Please consider the environment before printing this e-mail On 1

Re: [PATCH v11 00/16] per memcg lru lock

2020-06-10 Thread Alex Shi
在 2020/6/10 上午11:22, Hugh Dickins 写道: > On Mon, 8 Jun 2020, Alex Shi wrote: >> 在 2020/6/8 下午12:15, Hugh Dickins 写道: 24 files changed, 487 insertions(+), 312 deletions(-) >>> Hi Alex, >>> >>> I didn't get to try v10 at all, waited until Johannes's preparatory >>> memcg swap cleanup was in m

Re: [PATCH] checkpatch: ignore CamelCase for inttypes.h format specifiers

2020-06-10 Thread Scott Branden
Hi Joe, A few questions about changes below. On 2020-06-10 3:22 p.m., Joe Perches wrote: On Wed, 2020-06-10 at 14:48 -0700, Scott Branden wrote: On 2020-06-10 2:09 p.m., Joe Perches wrote: On Wed, 2020-06-10 at 13:33 -0700, Scott Branden wrote: Ignore CamelCase for inttypes.h for fixed integ

include/asm-generic/irqflags.h:47:9: sparse: sparse: context imbalance in 'cm_queue_work_unlock' - unexpected unlock

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: e83f195aa45c1ffd73b3a950a887e41c260cf194 RDMA/cm: Pull duplicated code into cm_queue_work_unlock() date: 4 weeks ago config: sh-randconfig-s032-20200611 (at

Re: [PATCH] ARM: dts: rockchip: Add marvell BT irq config

2020-06-10 Thread Johan Jonker
On 6/11/20 4:06 AM, Abhishek Pandit-Subedi wrote: > Veyron Jaq and Mighty both use the Marvel 8897 WiFi+BT chip. Add wakeup > and pinctrl block to devicetree so the btmrvl driver can correctly > configure the wakeup interrupt. > > Signed-off-by: Abhishek Pandit-Subedi > Reviewed-by: Reviewed-by:

Re: [PATCH v2] powerpc: Remove inaccessible CMDLINE default

2020-06-10 Thread Christophe Leroy
Le 11/06/2020 à 05:41, Chris Packham a écrit : Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONFIG_CMDLINE_BOOL. For example: $ make ARCH=powerpc defconfig $ cat .config # CONFIG_CMDLINE_BOOL is not set C

[PATCH 2/2] mtd: rawnand: brcmnand: Ecc error handling on EDU transfers

2020-06-10 Thread Kamal Dasu
Implemented ECC correctable and uncorrectable error handling for EDU reads. If ECC correctable bitflips are encountered on EDU transfer, read page again using pio, This is needed due to a controller lmitation where read and corrected data is not transferred to the DMA buffer on ECC errors. This ho

[PATCH 1/2] mtd: rawnand: brcmnand: Don't default to edu transfer

2020-06-10 Thread Kamal Dasu
When flash-dma is absent do not default to using flash-edu. Make sure flash-edu is enabled before setting EDU transfer function. Fixes: a5d53ad26a8b ("mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers") Signed-off-by: Kamal Dasu --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5

Re: [PATCH v6 6/6] blktrace: fix debugfs use after free

2020-06-10 Thread Christoph Hellwig
On Wed, Jun 10, 2020 at 11:31:16PM +, Luis Chamberlain wrote: > On Wed, Jun 10, 2020 at 09:52:13PM +, Luis Chamberlain wrote: > > diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c > > index 7ff2ea5cd05e..5cea04c05e09 100644 > > --- a/kernel/trace/blktrace.c > > +++ b/kernel/tra

[PATCH] pinctrl: meson: fix drive strength register and bit calculation

2020-06-10 Thread Hyeonki Hong
On Wed, Jun 10, 2020 at 03:09:42PM +0200, Jerome Brunet wrote: > > On Wed 10 Jun 2020 at 06:13, hhk7...@gmail.com wrote: > > > From: Hyeonki Hong > > > > If a GPIO bank has greater than 16 pins, PAD_DS_REG is split into two > > registers. However, when register and bit were calculated, the first

[PATCH v2 1/1] checkpatch: add check for NONNETWORKING_BLOCK_COMMENT_STYLE

2020-06-10 Thread Scott Branden
NETWORKING_BLOCK_COMMENT_STYLE is supported by checkpatch but there doesn't seem to be any check for the standard block comment style. Add support for NONNETWORKING_BLOCK_COMMENT_STYLE to check for empty /* on first line of non-networking block comments. Signed-off-by: Scott Branden --- Changes

Re: [RFC PATCH 0/3] Add Documentation for /proc/cpuinfo flags

2020-06-10 Thread Greg KH
On Wed, Jun 10, 2020 at 01:06:58PM -0700, Kyung Min Park wrote: > This RFC series has been reviewed by Dave Hansen. Then why isn't there a "Reviewed-by:" line with his name on it on the patches? Come on, you all know how to do this properly...

[git pull] m68knommu changes for v5.8

2020-06-10 Thread Greg Ungerer
Hi Linus, Please pull the m68knommu changes for v5.8. Regards Greg The following changes since commit 9cb1fd0efd195590b828b9b865421ad345a4a145: Linux 5.7-rc7 (2020-05-24 15:32:54 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

[PATCH v4] scsi: ufs: Fix imprecise load calculation in devfreq window

2020-06-10 Thread Stanley Chu
The UFS load calculation is based on "total_time" and "busy_time" in a devfreq window. However, the source of time is different for both parameters: "busy_time" is assigned from "jiffies" thus has different accuracy from "total_time" which is assigned from ktime_get(). Besides, the time of window

Re: [RFC PATCH] fix use after free in xlog_wait()

2020-06-10 Thread Dave Chinner
On Thu, Jun 11, 2020 at 11:01:38AM +0800, yukuai (C) wrote: > On 2020/6/11 10:28, Dave Chinner wrote > > Actually, it's a lot simpler: > > > > thread1 thread2 > > > > __xfs_trans_commit > > xfs_log_commit_cil > >xlog_wait > > schedule > > xlog_cil

[PATCH v1 RFC 1/2] spi: introduce fallback to pio

2020-06-10 Thread Robin Gong
Add SPI_CONTROLLER_FALLBACK to fallback to pio mode in case dma transfer failed. If spi client driver want to enable this feature please set master->flags with SPI_MASTER_FALLBACK and add master->fallback checking in its can_dma() as spi-imx.c Signed-off-by: Robin Gong --- drivers/spi/spi.c

[PATCH v1 RFC 2/2] spi: spi-imx: add fallback feature

2020-06-10 Thread Robin Gong
Add fallback pio feature for dma transfer failed. Since another whole pio transfer including setup_transfer will be issued by spi core, no need to restore jobs like commit bcd8e7761ec9 ("spi: imx: fallback to PIO if dma setup failure"). Signed-off-by: Robin Gong --- drivers/spi/spi-imx.c | 23 ++

[PATCH v1 RFC 0/2] introduce fallback to pio in spi core

2020-06-10 Thread Robin Gong
Introudce fallback pio way at spi core level so that the tx/rx buffer mapped by spi core for dma could be unmap and fallback pio again. Hence no need the below patch where 'dma_sync_sg_for_devic' to sync fresh data back into 'device' memory and sync to 'cpu' again in spi core. https://www.spinics.n

drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: sparse: incorrect type in assignment (different base types)

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 6482023b9d3350bf1b756ef36e1ea1a1c871879c crypto: marvell - enable OcteonTX cpt options for build date: 3 months ago config: s390-randconfig-s032-20200611 (a

Re: INFO: task hung in corrupted (2)

2020-06-10 Thread Peter Hutterer
On Thu, Jun 04, 2020 at 01:41:07PM +0200, Jiri Kosina wrote: > On Tue, 2 Jun 2020, Andrey Konovalov wrote: > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:b0c3ba31 Merge tag 'fsnotify_for_v5.7-rc8' of > > > git://git.ke.. > > > git tree: upstream

INFO: task hung in do_truncate (2)

2020-06-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=150f296110 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312 das

include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'do_sched_cfs_period_timer' - unexpected unlock

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: ab93a4bc955b3980c699430bc0b633f0d8b607be sched/fair: Remove distribute_running from CFS bandwidth date: 6 weeks ago config: arm64-randconfig-s032-20200611 (

Re: [PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-06-10 Thread Bjorn Andersson
On Wed 10 Jun 02:40 PDT 2020, Paul Cercueil wrote: > Hi, > > Le lun. 8 juin 2020 à 18:10, Suman Anna a écrit : > > Hi Paul, > > > > On 6/8/20 5:46 PM, Paul Cercueil wrote: > > > Hi Suman, > > > > > > > > > On 5/15/20 5:43 AM, Paul Cercueil wrote: > > > > > > > Call pm_runtime_get_sync() before

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-10 Thread Sargun Dhillon
On Wed, Jun 10, 2020 at 07:59:55PM -0700, Kees Cook wrote: > > Yeah, that seems reasonable. Here's the diff for that part: > > diff --git a/include/uapi/linux/seccomp.h b/include/uapi/linux/seccomp.h > index 7b6028b399d8..98bf19b4e086 100644 > --- a/include/uapi/linux/seccomp.h > +++ b/include/ua

Re: [PATCH V2 1/2] mtd: rawnand: qcom: remove write to unavailable register

2020-06-10 Thread Sivaprakash Murugesan
Hi Miquel, On 6/9/2020 7:32 PM, Miquel Raynal wrote: Hi Sivaprakash, Sivaprakash Murugesan wrote on Tue, 9 Jun 2020 16:40:55 +0530: SFLASHC_BURST_CFG register is not available on all ipq nand platforms, it is available only on ipq8064 devices and the nand controller works without configurin

[PATCH v2][RFC] kdump: append kernel build-id string to VMCOREINFO

2020-06-10 Thread Vijay Balakrishna
Make kernel GNU build-id available in VMCOREINFO. Having build-id in VMCOREINFO facilitates presenting appropriate kernel namelist image with debug information file to kernel crash dump analysis tools. Currently VMCOREINFO lacks uniquely identifiable key for crash analysis automation. Regarding

Re: [PATCH V2 2/2] mtd: rawnand: qcom: set BAM mode only if not set already

2020-06-10 Thread Sivaprakash Murugesan
Hi Miquel, Thanks for the review. On 6/9/2020 7:33 PM, Miquel Raynal wrote: Hi Sivaprakash, Sivaprakash Murugesan wrote on Tue, 9 Jun 2020 16:40:56 +0530: BAM mode is set by writing BAM_MODE_EN bit on NAND_CTRL register. NAND_CTRL is an operational register and in BAM mode operational regi

Re: [PATCH v2] usb: gadget: configfs: Fix KASAN use-after-free

2020-06-10 Thread Macpaul Lin
On Thu, 2017-09-01 at 10:25:32 -0700, Kees Cook wrote: > Subject: Re: [PATCH v2] usb: gadget: configfs: Fix KASAN use-after-free > To: Jim Lin > Cc: Felipe Balbi , , LKML > , Greg KH , > Steve Beattie > > > On Tue, Jan 17, 2017 at 1:29 AM, Jim Lin wrote: > > When gadget is disconnected, runnin

[GIT PULL] Mailbox changes for v5.8

2020-06-10 Thread Jassi Brar
Hi Linus, The following changes since commit ffeb595d84811dde16a28b33d8a7cf26d51d51b3: Merge tag 'powerpc-5.7-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2020-05-30 12:28:44 -0700) are available in the Git repository at: git://git.linaro.org/landing-teams/working/fuji

[PATCH v2 2/3] iommu/uapi: Add argsz for user filled data

2020-06-10 Thread Jacob Pan
As IOMMU UAPI gets extended, user data size may increase. To support backward compatibiliy, this patch introduces a size field to each UAPI data structures. It is *always* the responsibility for the user to fill in the correct size. Specific scenarios for user data handling are documented in: Docu

[PATCH v2 0/3] IOMMU user API enhancement

2020-06-10 Thread Jacob Pan
IOMMU user API header was introduced to support nested DMA translation and related fault handling. The current UAPI data structures consist of three areas that cover the interactions between host kernel and guest: - fault handling - cache invalidation - bind guest page tables, i.e. guest PASID

[PATCH v2 1/3] docs: IOMMU user API

2020-06-10 Thread Jacob Pan
IOMMU UAPI is newly introduced to support communications between guest virtual IOMMU and host IOMMU. There has been lots of discussions on how it should work with VFIO UAPI and userspace in general. This document is indended to clarify the UAPI design and usage. The mechenics of how future extensi

[GIT PULL] Crypto Fixes for 5.8

2020-06-10 Thread Herbert Xu
Hi Linus: This push contains a number of fixes to the omap and nitrox drivers. The following changes since commit 58ca0060ec4e51208d2eee12198fc55fd9e4feb3: crypto: hisilicon - fix driver compatibility issue with different versions of devices (2020-05-28 17:27:52 +1000) are available in the G

[PATCH v2 3/3] iommu/vt-d: Sanity check uapi argsz filled by users

2020-06-10 Thread Jacob Pan
IOMMU UAPI data has an argsz field which is filled by user. As the data structures expands, argsz may change. As the UAPI data are shared among different architectures, extensions of UAPI data could be a result of one architecture which has no impact on another. Therefore, these argsz santity check

Fund Application For Project

2020-06-10 Thread Services
Asalam - alikom, I apologise for sending an unexpected message, We are an expert in Finance, Investments and Assets Collateralization. We offer loan / project funding at a low interest rate of 2.5% RIO per anum. Kindly revert back if interested for further proceedings and negotiations. Your

[git pull] drm i915 fixes for rc1

2020-06-10 Thread Dave Airlie
Hi Linus, dhowells reported an oops, and the i915 team tracked it down to a missing fix that didn't have correct tags, they've pulled it in along with two other fixes. I might have some more fixes for rc1, but I might not, taking the day off tomorrow, so probably won't be in a hurry to process an

linux-next: Tree for Jun 11

2020-06-10 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do *not* add v5.9 material to your linux-next included branches until after v5.8-rc1 has been released. Changes since 20200610: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The tip t

[x86/mm] c7b2a6d1af: kernel_BUG_at_arch/x86/mm/physaddr.c

2020-06-10 Thread kernel test robot
Greeting, FYI, we noticed the following commit (built with gcc-9): commit: c7b2a6d1affb732cdb37677f31cc8c2499fbf57c ("[PATCHv2 1/2] x86/mm: Fix boot with some memory above MAXMEM") url: https://github.com/0day-ci/linux/commits/Kirill-A-Shutemov/x86-Fix-boot-with-some-memory-above-MAXMEM/2020060

[PATCH v2] powerpc: Remove inaccessible CMDLINE default

2020-06-10 Thread Chris Packham
Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONFIG_CMDLINE_BOOL. For example: $ make ARCH=powerpc defconfig $ cat .config # CONFIG_CMDLINE_BOOL is not set CONFIG_CMDLINE="" When enabling CONFIG_CMDLINE_BOOL this

[PATCH 2/2] spi: tools: Fix build errors

2020-06-10 Thread Qing Zhang
Fix the following build errors: include/linux/spi 2>&1 || true ln -sf /home/zhangqing/spi.git2/tools/spi/../../include/uapi/linux/spi/spidev.h include/linux/spi/spidev.h make -f /home/zhangqing/spi.git2/tools/build/Makefile.build dir=. obj=spidev_test make[1]: Entering directory '/home/zhangqing

[PATCH 1/2] spi: tools: Make default_tx/rx and input_tx static

2020-06-10 Thread Qing Zhang
Fix the following sparse warning: ./spidev_test.c:50:9: warning: symbol 'default_tx' was not declared. Should it be static? ./spidev_test.c:59:9: warning: symbol 'default_rx' was not declared. Should it be static? ./spidev_test.c:60:6: warning: symbol 'input_tx' was not declared. Should it be s

RE: [PATCH v2] exfat: add missing brelse() calls on error paths

2020-06-10 Thread Namjae Jeon
> If the second exfat_get_dentry() call fails then we need to release "old_bh" > before returning. There > is a similar bug in exfat_move_file(). > > Fixes: 5f2aa075070c ("exfat: add inode operations") > Reported-by: Markus Elfring > Signed-off-by: Dan Carpenter Applied. Thanks!

Re: [PATCH 2/2] net: dsa: qca8k: Improve SGMII interface handling

2020-06-10 Thread Florian Fainelli
On 6/10/2020 12:15 PM, Jonathan McDowell wrote: > This patch improves the handling of the SGMII interface on the QCA8K > devices. Previously the driver did no configuration of the port, even if > it was selected. We now configure it up in the appropriate > PHY/MAC/Base-X mode depending on what p

drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 7 months ago config: s390-randconfig-s032-20200611 (attached as .config)

[PATCH 5/6] spi: altera: move driver name string to header file

2020-06-10 Thread Xu Yilun
This allows other driver to reuse the name string for spi-altera platform device creation. Signed-off-by: Matthew Gerlach Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 6 ++ include/linux/spi/altera.h | 2 ++ 2 files changed, 4 i

[PATCH 6/6] spi: altera: fix size mismatch on 64 bit processors

2020-06-10 Thread Xu Yilun
From: Matthew Gerlach The spi-altera driver was originally written with a 32 bit processor, where sizeof(unsigned long) is 4. On a 64 bit processor sizeof(unsigned long) is 8. Change the structure member to u32 to match the actual size of the control register. Signed-off-by: Matthew Gerlach -

[PATCH 1/6] spi: altera: add 32bit data width transfer support.

2020-06-10 Thread Xu Yilun
Add support for 32bit width data register, then it supports 32bit data width spi slave device and spi transfers. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 14 ++ 1 file changed, 14 inserti

[PATCH 0/6] Add more configuration and regmap support for spi-altera

2020-06-10 Thread Xu Yilun
This patchset adds platform_data for spi-altera, to enable more IP configurations, and creating specific spi client devices. It also adds regmap support, to enable the indirect access to this IP. We have a PCIE based FPGA platform which integrates this IP to communicate with a BMC chip (Intel MAX1

[PATCH 2/6] spi: altera: add SPI core parameters support via platform data.

2020-06-10 Thread Xu Yilun
This patch introduced SPI core parameters in platform data, it allows passing these SPI core parameters via platform data. Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 25 ++--- inc

Re: [patch 113/131] mm: balance LRU lists based on relative thrashing

2020-06-10 Thread Alex Shi
在 2020/6/10 下午1:23, Joonsoo Kim 写道: > 2020년 6월 9일 (화) 오후 11:46, Johannes Weiner 님이 작성: >> >> On Tue, Jun 09, 2020 at 05:15:33PM +0800, Alex Shi wrote: >>> >>> >>> 在 2020/6/4 上午7:03, Andrew Morton 写道: + /* XXX: Move to lru_cache_add() when it supports new vs putback */ >>> >>> Hi Hann

[PATCH 3/6] spi: altera: add platform data for slave information.

2020-06-10 Thread Xu Yilun
This patch introduces platform data for slave information, it allows spi-altera to add new spi devices once master registration is done. Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 11 +++ inc

[PATCH 4/6] spi: altera: use regmap instead of direct mmio register access

2020-06-10 Thread Xu Yilun
This patch adds support for regmap. It allows this driver to be compatible if low layer register access method is changed in some cases. Signed-off-by: Matthew Gerlach Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Russ Weight --- drivers/spi/Kconfig| 1 + drivers/spi/

[PATCH] ext4: fix spelling mistakes in extents.c

2020-06-10 Thread Keyur Patel
Fix spelling issues over the comments in the code. requsted ==> requested deterimined ==> determined insde ==> inside neet ==> need somthing ==> something Signed-off-by: Keyur Patel --- fs/ext4/extents.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/ext4/exte

[PATCH v2] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 8 +++ fs/f2fs/file.c | 143 + 2 files changed, 151 insertion

Re: [PATCH 1/2] net: dsa: qca8k: Switch to PHYLINK instead of PHYLIB

2020-06-10 Thread Florian Fainelli
On 6/10/2020 12:14 PM, Jonathan McDowell wrote: > Update the driver to use the new PHYLINK callbacks, removing the > legacy adjust_link callback. > > Signed-off-by: Jonathan McDowell This looks reasonable to me, Russell would be the person you want to get an Acked-by/Reviewed-by tag from. --

Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/translations/it_IT

2020-06-10 Thread Kees Cook
On Wed, Jun 10, 2020 at 08:11:39PM +0200, Alexander A. Klimov wrote: > Am 10.06.20 um 10:57 schrieb Federico Vaga: > > On Tuesday, June 9, 2020 10:12:41 PM CEST Alexander A. Klimov wrote: > > > Rationale: > > > Reduces attack surface on kernel devs opening the links for MITM > > > as HTTPS traffic

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-10 Thread Jason Wang
On 2020/6/10 下午9:11, Pierre Morel wrote: Protected Virtualisation protects the memory of the guest and do not allow a the host to access all of its memory. Let's refuse a VIRTIO device which does not use IOMMU protected access. Signed-off-by: Pierre Morel --- drivers/s390/virtio/virtio_ccw

[PATCH] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 8 +++ fs/f2fs/file.c | 143 + 2 files changed, 151 insertion

Re: Compile error: linux-next-20200610

2020-06-10 Thread Randy Dunlap
On 6/10/20 8:07 PM, Souptick Joarder wrote: > Hi Stephen, > > While compiling linux-next-20200610, I hit below compile error. > .config file is attached. > > Steps -> > > 1. Download the tar > 2. make defconfig > 3. make -j4 > > In file included fro

Re: [PATCH RFC v6 02/11] vhost: use batched get_vq_desc version

2020-06-10 Thread Jason Wang
On 2020/6/10 下午7:05, Michael S. Tsirkin wrote: +EXPORT_SYMBOL_GPL(vhost_get_vq_desc); /* Reverse the effect of vhost_get_vq_desc. Useful for error handling. */ void vhost_discard_vq_desc(struct vhost_virtqueue *vq, int n) { + unfetch_descs(vq); vq->last_avail_idx -= n; S

  1   2   3   4   5   6   7   8   9   10   >