Re: [PATCH] habanalabs: fix up absolute include instructions

2020-07-28 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 08:09:38AM +1000, Stephen Rothwell wrote: > Hi Greg, > > On Tue, 28 Jul 2020 19:18:51 +0200 Greg Kroah-Hartman > wrote: > > > > diff --git a/drivers/misc/habanalabs/common/Makefile > > b/drivers/misc/habanalabs/common/Makefile > > index 97d03b5c8683..b984bfa4face 100644

Re: [PATCH v2 1/1] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2020-07-28 Thread Dmitry Torokhov
On Tue, Jul 28, 2020 at 12:16:37AM +0900, Jiada Wang wrote: > From: Nick Dyer > > The workaround of reading all messages until an invalid is received is a > way of forcing the CHG line high, which means that when using > edge-triggered interrupts the interrupt can be acquired. > > With

Re: [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices

2020-07-28 Thread Eli Cohen
On Tue, Jul 28, 2020 at 02:53:34PM +0800, Jason Wang wrote: > > Just notice Michael's vhost branch can not compile due to this commit: > > commit fee8fe6bd8ccacd27e963b71b4f943be3721779e > Author: Michael S. Tsirkin > Date:   Mon Jul 27 10:51:55 2020 -0400 > >     vdpa: make sure set_features

INFO: rcu detected stall in tc_modify_qdisc

2020-07-28 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:181964e6 fix a braino in cmsghdr_from_user_compat_to_kern() git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=12925e3890 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267

Re: [PATCH] cpufreq: intel_pstate: Fix EPP setting via sysfs in active mode

2020-07-28 Thread Francisco Jerez
"Rafael J. Wysocki" writes: > From: Rafael J. Wysocki > > Because intel_pstate_set_energy_pref_index() reads and writes the > MSR_HWP_REQUEST register without using the cached value of it used by > intel_pstate_hwp_boost_up() and intel_pstate_hwp_boost_down(), those > functions may overwrite

Re: [PATCH] staging: qlge: qlge_dbg: removed comment repition

2020-07-28 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-28 Thread Francisco Jerez
"Rafael J. Wysocki" writes: > On Tuesday, July 28, 2020 4:32:22 AM CEST Francisco Jerez wrote: >> >> "Rafael J. Wysocki" writes: >> >> > On Tuesday, July 21, 2020 1:20:14 AM CEST Francisco Jerez wrote: >> > >> > [cut] >> > >> >> > >> >> > However, in the active mode the only updater of

Re: [PATCH] staging: qlge: qlge_dbg: removed comment repition

2020-07-28 Thread Dhiraj Sharma
Hello, I know that I should ask for reviews etc after a week but the change is for my eudyptula task and until it doesn't get merged little penguin will not pass the task for me so please look at it. Thank You Dhiraj Sharma On Tue, Jul 28, 2020 at 11:56 PM Dhiraj Sharma wrote: > > Inside

Re: [PATCH] thermal: core: Add thermal zone enable/disable notification

2020-07-28 Thread Amit Kucheria
On Tue, Jul 28, 2020 at 4:40 AM Daniel Lezcano wrote: > > Now the calls to enable/disable a thermal zone are centralized in a > call to a function, we can add in these the corresponding netlink > notifications. > > Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria > --- >

Re: [PATCH v1 1/2] scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM"

2020-07-28 Thread Can Guo
Hi Stanley, On 2020-07-29 13:18, Stanley Chu wrote: Some UFS devices require delay after VCC power rail is turned-off. Introduce a device quirk "DELAY_AFTER_LPM" to add 5ms delays after VCC power-off during suspend flow. Just curious, I can understand if you want to add some delays before

Re: PROBLEM: 5.8-rc7 no video output with nouveau on NV36 (regression)

2020-07-28 Thread Nick Bowler
On 2020-07-29, Dave Airlie wrote: > On Wed, 29 Jul 2020 at 15:05, Nick Bowler wrote: >> >> Hi, >> >> After installing Linux 5.8-rc7 I seem to get no video output on my >> NV36 card once the nouveau module is loaded. The display (connected >> to the digital output) simply reports "No Signal". >>

[PATCH] vt: Handle recursion in vc_do_resize().

2020-07-28 Thread Tetsuo Handa
syzbot is reporting OOB read bug in vc_do_resize() [1] caused by memcpy() based on outdated old_{rows,row_size} values, for resize_screen() can recurse into vc_do_resize() which changes vc->vc_{cols,rows} that outdates old_{rows,row_size} values which were read before calling resize_screen().

[PATCH v1 1/2] scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM"

2020-07-28 Thread Stanley Chu
Some UFS devices require delay after VCC power rail is turned-off. Introduce a device quirk "DELAY_AFTER_LPM" to add 5ms delays after VCC power-off during suspend flow. Signed-off-by: Andy Teng Signed-off-by: Peter Wang Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs_quirks.h | 7 +++

[PATCH v1 0/2] scsi: ufs: Introduce and apply DELAY_AFTER_LPM device quirk

2020-07-28 Thread Stanley Chu
Hi, This patchset introduces and applies DELAY_AFTER_LPM device quirk in MediaTek platforms. Stanley Chu (2): scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM" scsi: ufs-mediatek: Apply DELAY_AFTER_LPM quirk to Micron devices drivers/scsi/ufs/ufs-mediatek.c | 2 ++

[PATCH v1 2/2] scsi: ufs-mediatek: Apply DELAY_AFTER_LPM quirk to Micron devices

2020-07-28 Thread Stanley Chu
Micron UFS devices require DELAY_AFTER_LPM device quirk in MediaTek platforms. Signed-off-by: Andy Teng Signed-off-by: Peter Wang Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2020 at 10:40 AM Madhavan T. Venkataraman wrote: > > > > On 7/28/20 12:16 PM, Andy Lutomirski wrote: > > On Tue, Jul 28, 2020 at 9:32 AM Madhavan T. Venkataraman > wrote: > > Thanks. See inline.. > > On 7/28/20 10:13 AM, David Laight wrote: > > From: madve...@linux.microsoft.com

[RFC][PATCH 2/2] dma-heap: Add a system-uncached heap

2020-07-28 Thread John Stultz
This adds a heap that allocates non-contiguous buffers that are marked as writecombined, so they are not cached by the CPU. This is useful, as most graphics buffers are usually not touched by the CPU or only written into once by the CPU. So when mapping the buffer over and over between devices,

[RFC][PATCH 1/2] dma-heap: Keep track of the heap device struct

2020-07-28 Thread John Stultz
Keep track of the heap device struct. This will be useful for special DMA allocations and actions. Cc: Sumit Semwal Cc: Andrew F. Davis Cc: Benjamin Gaignard Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: linux-me...@vger.kernel.org Cc:

[PATCH v2 2/4] dt-bindings: regulator: mp886x: support mps,switch-frequency

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/regulator/mp886x.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mp886x.txt

[PATCH v2 4/4] dt-bindings: regulator: Convert mp886x to json-schema

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Convert the mp886x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/regulator/mp886x.txt | 31 -- .../bindings/regulator/mps,mp886x.yaml| 58 +++ 2 files changed, 58 insertions(+), 31

[PATCH v2 3/4] regulator: mp886x: support setting switch freq

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index

[PATCH v2 0/4] regulator: mp886x: two features and dt json convert

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang This is to improve the mp886x regulator driver support. patch1 implments .set_ramp_delay patch2 and patch3 support the switch freq setting patch4 converts dt binding to json-schema Since v2: - put any schema conversions at the end of the series as Mark suggested.

[PATCHv3] coresight: etm4x: Fix etm4_count race by moving cpuhp callbacks to init

2020-07-28 Thread Sai Prakash Ranjan
etm4_count keeps track of number of ETMv4 registered and on some systems, a race is observed on etm4_count variable which can lead to multiple calls to cpuhp_setup_state_nocalls_cpuslocked(). This function internally calls cpuhp_store_callbacks() which prevents multiple registrations of callbacks

[PATCH v2 1/4] regulator: mp886x: implement set_ramp_delay

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Implement the .set_ramp_delay for MP8867 and MP8869. MP8867 and MP8869 could share the implementation, the only difference is the slew_rates array. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 67 -- 1 file changed, 64

Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2020 at 9:46 PM Gabriel Krisman Bertazi wrote: > > Andy Lutomirski writes: > > > On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi > > wrote: > >> > >> In preparation to remove TIF_IA32, add wrapper that check the process > >> has IA32 ABI without using the flag directly.

Re: PROBLEM: 5.8-rc7 no video output with nouveau on NV36 (regression)

2020-07-28 Thread Dave Airlie
On Wed, 29 Jul 2020 at 15:05, Nick Bowler wrote: > > Hi, > > After installing Linux 5.8-rc7 I seem to get no video output on my > NV36 card once the nouveau module is loaded. The display (connected > to the digital output) simply reports "No Signal". > > I bisected to the following commit, and

Re: [PATCH] ASoC: Intel: Atom: use hardware counter to update hw_ptr

2020-07-28 Thread Cheng-yi Chiang
On Wed, Jul 29, 2020 at 1:31 AM Pierre-Louis Bossart wrote: > > > > On 7/28/20 12:02 PM, Lu, Brent wrote: > >> > >> So if there are already quirks in atom machine drivers to change the period > >> size, why is this patch necessary? > >> > > > > The story is: google implemented the constraint but

Re: [PATCHv2] coresight: etm4x: Fix etm4_count race by moving cpuhp callbacks to init

2020-07-28 Thread Sai Prakash Ranjan
Hi Mike, On 2020-07-29 01:46, Mike Leach wrote: Hi Sai, On Tue, 28 Jul 2020 at 08:51, Sai Prakash Ranjan wrote: etm4_count keeps track of number of ETMv4 registered and on some systems, a race is observed on etm4_count variable which can lead to multiple calls to

PROBLEM: 5.8-rc7 no video output with nouveau on NV36 (regression)

2020-07-28 Thread Nick Bowler
Hi, After installing Linux 5.8-rc7 I seem to get no video output on my NV36 card once the nouveau module is loaded. The display (connected to the digital output) simply reports "No Signal". I bisected to the following commit, and reverting this commit on top of 5.8-rc7 appears to correct the

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > Hi, Guenter > > > > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the > > sequence for wdog operations > > > > On 7/28/20 7:20 PM, Anson Huang wrote: > > >

[PATCH v2] dt-bindings: regulator: Convert sy8824x to json-schema

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- Since v1 -It seems there's something wrong with my last email, so send out a v2 with another email account .../bindings/regulator/silergy,sy8824x.yaml | 40

Re: [PATCH 3/6] arch: x86: Wrap TIF_X32 checks

2020-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi wrote: > > In preparation to remove TIF_X32, add a wrapper that checks the process > is using the X32 ABI without using the flag directly. I'm not sure what the right solution here is, but all three of these functions are in the ELF loading

Re: [PATCH] scsi: 3w-9xxx: Fix endianness issues found by sparse

2020-07-28 Thread Samuel Holland
On 7/27/20 2:18 PM, Arnd Bergmann wrote: > On Sun, Jul 26, 2020 at 9:15 PM Samuel Holland wrote: >> >> The main issue observed was at the call to scsi_set_resid, where the >> byteswapped parameter would eventually trigger the alignment check at >> drivers/scsi/sd.c:2009. At that point, the kernel

RE: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence > for wdog operations > > On 7/28/20 7:20 PM, Anson Huang wrote: > > According to reference manual, the i.MX7ULP WDOG's operations should > > follow below sequence: > > > > 1. disable global interrupts; >

Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-28 Thread Gabriel Krisman Bertazi
Andy Lutomirski writes: > On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi > wrote: >> >> In preparation to remove TIF_IA32, add wrapper that check the process >> has IA32 ABI without using the flag directly. > > Thank you for doing this, but let's please do it right. There is, >

[git pull] drm fixes for 5.8-rc8

2020-07-28 Thread Dave Airlie
Hi Linus, I'm sending this out a bit early, just to give you a chance to reject it or help decide on an rc8. The nouveau fixes missed the last pull by a few hours, and we had a few arm driver/panel/bridge fixes come in. This is possibly a bit more than I'm comfortable sending at this stage, but

Re: [PATCH 02/10] block: virtio-blk: check logical block size

2020-07-28 Thread Martin K. Petersen
Hi Maxim, > Instead of this adding blk_is_valid_logical_block_size allowed me to > trivially convert most of the uses. > > For RFC I converted only some drivers that I am more familiar with > and/or can test but I can remove the driver's own checks in most other > drivers with low chance of

[PATCH] idr: Fix a typo in idr_alloc_cyclic()'s comment

2020-07-28 Thread Wang Long
This patch fix a typo in comment for function idr_alloc_cyclic(). Signed-off-by: Wang Long --- lib/idr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/idr.c b/lib/idr.c index c2cf2c5..47d203f 100644 --- a/lib/idr.c +++ b/lib/idr.c @@ -100,7 +100,7 @@ int

Re: [PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Guenter Roeck
On 7/28/20 7:20 PM, Anson Huang wrote: > According to reference manual, the i.MX7ULP WDOG's operations should > follow below sequence: > > 1. disable global interrupts; > 2. unlock the wdog and wait unlock bit set; > 3. reconfigure the wdog and wait for reconfiguration bit set; > 4. enabel global

Re: [PATCH] scsi: iscsi: Do not put host in iscsi_set_flashnode_param()

2020-07-28 Thread Martin K. Petersen
On Mon, 15 Jun 2020 16:12:26 +0800, Jing Xiangfeng wrote: > If scsi_host_lookup() failes we will jump to put_host, which may > cause panic. Jump to exit_set_fnode to fix it. Applied to 5.9/scsi-queue, thanks! [1/1] scsi: iscsi: Do not put host in iscsi_set_flashnode_param()

Re: [PATCH v1] scsi: ufs-mediatek: Prevent LPM operation on undeclared VCC

2020-07-28 Thread Martin K. Petersen
On Fri, 24 Jul 2020 22:16:27 +0800, Stanley Chu wrote: > In some platforms, VCC regulator may not be declared in device tree > to keep itself "always-on". In this case, hba->vreg_info.vcc is NULL > and shall not be operated during any flow. > > Prevent possible NULL hba->vreg_info.vcc access in

Re: [PATCH v17 17/21] mm/lru: replace pgdat lru_lock with lruvec lock

2020-07-28 Thread Alex Shi
rewrite the commit log. >From 5e9340444632d69cf10c8db521577d0637819c5f Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 26 May 2020 17:27:52 +0800 Subject: [PATCH v17 17/23] mm/lru: replace pgdat lru_lock with lruvec lock This patch moves per node lru_lock into lruvec, thus bring a lru_lock

Re: [PATCH v17 13/21] mm/lru: introduce TestClearPageLRU

2020-07-28 Thread Alex Shi
rewrite the commit log. >From 9310c359b0049e3cc9827b771dc583d504bbf022 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Sat, 25 Apr 2020 12:03:30 +0800 Subject: [PATCH v17 13/23] mm/lru: introduce TestClearPageLRU Currently lru_lock still guards both lru list and page's lru bit, that's ok. but if

Re: [PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-28 Thread chenzhou
Hi Catalin, On 2020/7/28 1:30, Catalin Marinas wrote: > On Fri, Jul 03, 2020 at 11:58:15AM +0800, Chen Zhou wrote: >> commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32") >> broken the arm64 kdump. If the memory reserved for crash dump kernel >> falled in ZONE_DMA32, the devices in

Re: [char-misc-next] Revert "mei: hdcp: Replace one-element array with flexible-array member"

2020-07-28 Thread Gustavo A. R. Silva
On 7/28/20 18:16, Gustavo A. R. Silva wrote: > > > On 7/28/20 18:04, Gustavo A. R. Silva wrote: >> Tomas, >> >> Please, see some comments below... >> >> On 7/28/20 17:29, Winkler, Tomas wrote: >>> >>> Hi Tomas, >>> >>> On 7/28/20 16:41, Tomas Winkler wrote: Greg

[PATCH v4 3/4] docs: Add documentation for userspace client interface

2020-07-28 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 +

[PATCH v4 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-07-28 Thread Hemant Kumar
Introduce mhi_get_no_free_descriptors() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/main.c | 12 include/linux/mhi.h

[RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-07-28 Thread Alison Wang
In the current arm64 defconfig, CONFIG_IRQ_TIME_ACCOUNTING is enabled as default. According to my tests on NXP's LayerScape and i.MX platforms, the system hangs when running the command "stress-ng --hrtimers 1" with CONFIG_IRQ_TIME_ACCOUNTING enabled. Disabling this option, the issue disappears.

[PATCH v4 0/4] user space client interface driver

2020-07-28 Thread Hemant Kumar
V4: - Fix locking to protect proper struct members. - Updated documentation describing uci client driver use cases. - Fixed uci ref counting in mhi_uci_open for error case. - Addressed style related review comments. V3: Added documentation for MHI UCI driver. V2: Added mutex lock to prevent

[PATCH v4 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-07-28 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/internal.h | 1 - include/linux/mhi.h | 3

[PATCH v4 4/4] bus: mhi: clients: Add userspace client interface driver

2020-07-28 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Device file node is created with format /dev/mhi__ Currently it supports LOOPBACK channel. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/Kconfig | 6 +

Re: [PATCH 4/6] arch: x86: Expose psABI on thread_info

2020-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi wrote: > > Expose psABI in thread_info, in preparation for the TIF_IA32 and > TIF_X32 flags removal. NAK. Linux threads don't have a user ABI like this. See my other comments :) --Andy

[PATCH] dax: Fix wrong error-number passed into xas_set_err()

2020-07-28 Thread Hao Li
The error-number passed into xas_set_err() should be negative. Otherwise, the xas_error() will return 0, and grab_mapping_entry() will return the found entry instead of a SIGBUS error when the entry is not a value. And then, the subsequent code path would be wrong. Signed-off-by: Hao Li ---

Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-28 Thread Andy Lutomirski
On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi wrote: > > In preparation to remove TIF_IA32, add wrapper that check the process > has IA32 ABI without using the flag directly. Thank you for doing this, but let's please do it right. There is, fundamentally, no such thing as a "process

Re: [PATCH RESEND 1/2] scsi: megaraid: Remove pci-dma-compat wrapper APIs.

2020-07-28 Thread Martin K. Petersen
Hello Suraj! > The legacy API wrappers in include/linux/pci-dma-compat.h > should go away as it creates unnecessary midlayering > for include/linux/dma-mapping.h APIs, instead use dma-mapping.h > APIs directly. Instead of all these individual patches, please submit a combined patch series for

[RFC PATCH 1/6] mm/memory_hotplug: remove redundant memory block size alignment check

2020-07-28 Thread Jia He
The alignment check has been done by check_hotplug_memory_range(). Hence the redundant one in create_memory_block_devices() can be removed. The similar redundant check is removed in remove_memory_block_devices(). Signed-off-by: Jia He --- drivers/base/memory.c | 8 1 file changed, 8

[RFC PATCH 2/6] resource: export find_next_iomem_res() helper

2020-07-28 Thread Jia He
The helper is to find the lowest iomem resource that covers part of [@start..@end] It is useful when relaxing the alignment check for dax pmem kmem. Signed-off-by: Jia He --- include/linux/ioport.h | 3 +++ kernel/resource.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff

[RFC PATCH 3/6] mm/memory_hotplug: allow pmem kmem not to align with memory_block_size

2020-07-28 Thread Jia He
When dax pmem is probed as RAM device on arm64, previously, kmem_start in dev_dax_kmem_probe() should be aligned with 1G memblock size on arm64 due to SECTION_SIZE_BITS(30). There will be some meta data at the beginning/end of the iomem space, e.g. namespace info and nvdimm label:

[RFC PATCH 6/6] arm64: fall back to vmemmap_populate_basepages if not aligned with PMD_SIZE

2020-07-28 Thread Jia He
In dax pmem kmem (dax pmem used as RAM device) case, the start address might not be aligned with PMD_SIZE e.g. 24000-33fdf : Persistent Memory 24000-2421f : namespace0.0 24240-2bfff : dax0.0 24240-2bfff : System RAM (kmem) pfn_to_page(0x24240) is

[RFC PATCH 4/6] mm/page_alloc: adjust the start,end in dax pmem kmem case

2020-07-28 Thread Jia He
There are 3 cases when doing online pages: - normal RAM, should be aligned with memory block size - persistent memory with ZONE_DEVICE - persistent memory used as normal RAM (kmem) with ZONE_NORMAL, this patch tries to adjust the start_pfn/end_pfn after finding the corresponding resource

[RFC PATCH 5/6] device-dax: relax the memblock size alignment for kmem_start

2020-07-28 Thread Jia He
Previously, kmem_start in dev_dax_kmem_probe should be aligned with SECTION_SIZE_BITS(30), i.e. 1G memblock size on arm64. Even with Dan Williams' sub-section patch series, it was not helpful when adding the dax pmem kmem to memblock: $ndctl create-namespace -e namespace0.0 --mode=devdax --map=dev

[RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment

2020-07-28 Thread Jia He
When enabling dax pmem as RAM device on arm64, I noticed that kmem_start addr in dev_dax_kmem_probe() should be aligned w/ SECTION_SIZE_BITS(30),i.e. 1G memblock size. Even Dan Williams' sub-section patch series [1] had been upstream merged, it was not helpful due to hard limitation of kmem_start:

[PATCH V3] dt-bindings: pci: convert QCOM pci bindings to YAML

2020-07-28 Thread Sivaprakash Murugesan
Convert QCOM pci bindings to YAML schema Reviewed-by: Rob Herring Signed-off-by: Sivaprakash Murugesan --- [V3] * Rebased V2 including recent patches from Ansuel * Addressed Review comments from Rob * Apart from properties commented by Rob interrupt-map is also removed as it is documented

[PATCH 1/5] block: Move bio merge related functions into blk-merge.c

2020-07-28 Thread Baolin Wang
It's better to move bio merge related functions into blk-merge.c, which contains all merge related functions. Signed-off-by: Baolin Wang --- block/blk-core.c | 156 - block/blk-merge.c | 157

[PATCH 2/5] block: Remove redundant blk_mq_sched_allow_merge() validation

2020-07-28 Thread Baolin Wang
Only software queue and kyber IO scheduler will call blk_mq_bio_list_merge() to merge a bio, and kyber IO scheduler did not implement the ops->allow_merge(). Thus we can remove the redundant blk_mq_sched_allow_merge() in blk_mq_bio_list_merge() function. Signed-off-by: Baolin Wang ---

[PATCH 0/5] Some clean-ups for bio merge

2020-07-28 Thread Baolin Wang
Hi, There are some duplicated code when trying to merge bio from pluged list and software queue, thus this patch set did some clean-ups when merging a bio. Any comments are welcome. Thanks. Baolin Wang (5): block: Move bio merge related functions into blk-merge.c block: Remove redundant

[PATCH 5/5] block: Remove __blk_mq_sched_bio_merge() helper

2020-07-28 Thread Baolin Wang
The blk_mq_sched_bio_merge() just wrap the __blk_mq_sched_bio_merge(), and no other places will use __blk_mq_sched_bio_merge(). Thus we can combine these 2 similar functions into one function. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 5 - block/blk-mq-sched.h | 13

[PATCH 3/5] block: Add a new helper to attempt to merge a bio

2020-07-28 Thread Baolin Wang
There are lots of duplicated code when trying to merge a bio from plug list and sw queue, we can introduce a new helper to attempt to merge a bio, which can simplify the blk_mq_bio_list_merge() and blk_attempt_plug_merge(). Signed-off-by: Baolin Wang --- block/blk-merge.c| 47

[PATCH 4/5] block: Remove blk_mq_attempt_merge() function

2020-07-28 Thread Baolin Wang
The small blk_mq_attempt_merge() function is only called by __blk_mq_sched_bio_merge(), just open code it. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/block/blk-mq-sched.c

[PATCH] fat: Add newline after declarations

2020-07-28 Thread Coleman Kane
Add a newline after declarations in muliple places within the fat driver where checkpatch.pl identified this problem. Signed-off-by: Coleman Kane --- fs/fat/cache.c | 1 + fs/fat/dir.c | 6 ++ fs/fat/fatent.c | 8 fs/fat/file.c| 2 ++ fs/fat/inode.c

[PATCH v18 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2020-07-28 Thread Roy Im
This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v18: No changes. v17: No changes. v16: No changes. v15: No changes. v14: No changes. v13: No changes. v12: Corrected file list order. v11: No changes. v10: No changes. v9: No

[PATCH v18 3/3] Input: new da7280 haptic driver

2020-07-28 Thread Roy Im
Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Reviewed-by: Jes Sorensen . Signed-off-by: Roy Im --- v18: - Corrected comments in Kconfig - Updated to

[PATCH v18 2/3] dt-bindings: input: Add document bindings for DA7280

2020-07-28 Thread Roy Im
Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Reviewed-by: Rob Herring . Signed-off-by: Roy Im --- v18: No changes. v17: No changes. v16: No changes. v15: No changes. v14: No changes. v13: No changes. v12: No changes. v11: No changes. v10:

[PATCH v18 0/3] da7280: haptic driver submission

2020-07-28 Thread Roy Im
This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH v18 1/3] MAINTAINERS file update for DA7280 [PATCH v18 2/3] DA7280 DT Binding [PATCH v18 3/3] DA7280 Driver This patch applies against linux-next and v5.8-rc7 Thank you, Roy Im,

[PATCH 2/2] kbuild: sort hostprogs before passing it to ifneq

2020-07-28 Thread Masahiro Yamada
The conditional: ifneq ($(hostprogs),) ... is evaluated to true if $(hostprogs) does not contain any word but whitespace characters. ifneq ($(strip $(hostprogs)),) ... is a safe way to avoid interpreting whitespace as a non-empty value, but I'd rather want to use the side-effect of $(sort

linux-next: manual merge of the net-next tree with the risc-v tree

2020-07-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: lib/Kconfig between commit: 1a479f783857 ("lib: Add a generic version of devmem_is_allowed()") from the risc-v tree and commit: b8265621f488 ("Add pldmfw library for PLDM firmware update") from the net-next tree.

[PATCH] extract-cert: add static to local data

2020-07-28 Thread Masahiro Yamada
Fix the following warning from sparse: scripts/extract-cert.c:74:5: warning: symbol 'kbuild_verbose' was not declared. Should it be static? Signed-off-by: Masahiro Yamada --- scripts/extract-cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extract-cert.c

[PATCH] kconfig: add 'static' to some file-local data

2020-07-28 Thread Masahiro Yamada
Fix some warnings from sparce like follows: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Masahiro Yamada --- scripts/kconfig/lexer.l | 2 +- scripts/kconfig/symbol.c | 14 ++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v3 2/2] soc: mediatek: add mtk-devapc driver

2020-07-28 Thread Neal Liu
On Wed, 2020-07-29 at 10:22 +0800, Chun-Kuang Hu wrote: > Neal Liu 於 2020年7月29日 週三 上午10:10寫道: > > > > Hi Chun-Kuang, > > > > On Tue, 2020-07-28 at 23:35 +0800, Chun-Kuang Hu wrote: > > > Hi, Neal: > > > > > > Neal Liu 於 2020年7月28日 週二 上午11:52寫道: > > > > > > > > Hi Chun-Kuang, > > > > > > > > On

[PATCH 1/2] kbuild: move shared library build rules to scripts/gcc-plugins/Makefile

2020-07-28 Thread Masahiro Yamada
The shared library build rules are currently implemented in scripts/Makefile.host, but actually GCC-plugin is the only user of them. Hence, they do not need to be treewide available. Move all the relevant build rules to scripts/gcc-plugins/Makefile. I also optimized the build steps so *.so is

Re: [PATCH] i2c: mv64xxx: Add bus error recovery

2020-07-28 Thread Chris Packham
Hi Mark, On 8/07/20 9:10 am, Mark Tomlinson wrote: > This adds i2c bus recovery to the mv64xxx driver. > > Implement bus recovery to recover from SCL/SDA stuck low. > > This uses the generic recovery function, setting the clock/data lines as > GPIO pins, and sending 9 clocks to try and recover

[PATCH] net: nixge: fix potential memory leak in nixge_probe()

2020-07-28 Thread Lu Wei
If some processes in nixge_probe() fail, free_netdev(dev) needs to be called to aviod a memory leak. Fixes: 87ab207981ec ("net: nixge: Separate ctrl and dma resources") Fixes: abcd3d6fc640 ("net: nixge: Fix error path for obtaining mac address") Reported-by: Hulk Robot Signed-off-by: Lu Wei ---

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-28 Thread Sean Christopherson
On Fri, Jul 17, 2020 at 02:35:00PM -0700, Fenghua Yu wrote: > A bus lock [1] is acquired either through split locked access to writeback > (WB) > memory or by using locks to uncacheable (UC) memory (e.g. direct device Does SLD not detect the lock to UC memory? > assignment). This is typically

[PATCH] net: ethernet: fix potential memory leak in gemini_ethernet_port_probe()

2020-07-28 Thread Lu Wei
If some processes in gemini_ethernet_port_probe() fail, free_netdev(dev) needs to be called to avoid a memory leak. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- drivers/net/ethernet/cortina/gemini.c | 24

Re: [PATCH 0/9] arm64: Stolen time support

2020-07-28 Thread zhukeqian
Hi Steven, On 2020/7/27 18:48, Steven Price wrote: > On 21/07/2020 04:26, zhukeqian wrote: >> Hi Steven, > > Hi Keqian, > >> On 2019/8/2 22:50, Steven Price wrote: >>> This series add support for paravirtualized time for arm64 guests and >>> KVM hosts following the specification in Arm's

Re: [PATCH] kunit: tool: adjust parse regex

2020-07-28 Thread David Gow
On Wed, Jul 29, 2020 at 10:42 AM Marcelo Schmitt wrote: > > kunit config subcommand terminates with error if .config has a > configuration assigned with a string, for instance: > > CONFIG_CC_VERSION_TEXT="gcc (distro package version) ..." > > This patch adjusts the parse regex to consider such

Re: [PATCH V2] dt-bindings: pci: convert QCOM pci bindings to YAML

2020-07-28 Thread Sivaprakash Murugesan
Hi Rob, On 7/28/2020 9:24 PM, Rob Herring wrote: On Tue, Jul 28, 2020 at 9:27 AM Rob Herring wrote: On Sun, Jul 26, 2020 at 9:07 AM Sivaprakash Murugesan wrote: From: Sivaprakash Murugesan Convert QCOM pci bindings to YAML schema Signed-off-by: Sivaprakash Murugesan --- [v2] -

PROBLEM: IO lockup on reiserfs FS.

2020-07-28 Thread David Niklas
Hello, When running rtorrent (in sync to file mode), my kernel eventually will not write to the disk causing all access to md7 to hang and eventually the kernel will become totally unresponsive. EDIT: I have since gotten a response in the bug tracker and I am filing thins to the reiserfs

Re: PROBLEM: IO lockup on reiserfs FS.

2020-07-28 Thread David Niklas
I should add that in chasing down this bug I have tried all the IO schedulers available (noop deadline and cfq). Cfq is the one I'm now using to reproduce this. Also, I don't know if it makes a difference, but when the system first starts up it takes 20m to get from the login manager to having my

[PATCH] kunit: tool: adjust parse regex

2020-07-28 Thread Marcelo Schmitt
kunit config subcommand terminates with error if .config has a configuration assigned with a string, for instance: CONFIG_CC_VERSION_TEXT="gcc (distro package version) ..." This patch adjusts the parse regex to consider such string assignments. Signed-off-by: Marcelo Schmitt ---

Re: [PATCH] block: fix possible race on blk_get_queue()

2020-07-28 Thread Bart Van Assche
On 2020-07-28 18:51, Luis Chamberlain wrote: > diff --git a/block/blk-core.c b/block/blk-core.c > index d9d632639bd1..febdd8e8d409 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -605,12 +605,18 @@ EXPORT_SYMBOL(blk_alloc_queue); > */ > bool blk_get_queue(struct request_queue *q)

[PATCH v2] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-07-28 Thread Stanley Chu
In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC commands which would call ufshcd_hold() during the command issuing flow. Now if

Re: WARNING: suspicious RCU usage - while installing a VM on a CPU listed under nohz_full

2020-07-28 Thread Wanpeng Li
Hi Nitesh, On Wed, 29 Jul 2020 at 09:00, Wanpeng Li wrote: > > On Tue, 28 Jul 2020 at 22:40, Nitesh Narayan Lal wrote: > > > > Hi, > > > > I have recently come across an RCU trace with the 5.8-rc7 kernel that has > > the > > debug configs enabled while installing a VM on a CPU that is listed

Re: [PATCH v2 05/18] gpiolib: cdev: support GPIO_GET_LINE_IOCTL and GPIOLINE_GET_VALUES_IOCTL

2020-07-28 Thread Kent Gibson
On Sun, Jul 26, 2020 at 09:12:44AM +0800, Kent Gibson wrote: > On Sat, Jul 25, 2020 at 11:51:54PM +0300, Andy Shevchenko wrote: > > On Sat, Jul 25, 2020 at 7:24 AM Kent Gibson wrote: > > > [ snip ] > > > + test_bit(line_idx, (unsigned long > > > *)lc->attrs[i].mask)) > > > >

Re: [PATCH v17 17/21] mm/lru: replace pgdat lru_lock with lruvec lock

2020-07-28 Thread Alex Shi
在 2020/7/29 上午9:27, Alexander Duyck 写道: > On Tue, Jul 28, 2020 at 6:00 PM Alex Shi wrote: >> >> >> >> 在 2020/7/28 下午10:54, Alexander Duyck 写道: >>> On Tue, Jul 28, 2020 at 4:20 AM Alex Shi wrote: 在 2020/7/28 上午7:34, Alexander Duyck 写道: >> @@ -1876,6 +1876,12 @@ static

RE: [PATCH v6 01/15] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-28 Thread Liu, Yi L
> From: Alex Williamson > Sent: Tuesday, July 28, 2020 11:54 PM > > On Mon, 27 Jul 2020 23:27:30 -0700 > Liu Yi L wrote: > > > This patch refactors the vfio_iommu_type1_ioctl() to use switch > > instead of if-else, and each command got a helper function. > > > > Cc: Kevin Tian > > CC: Jacob

RE: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
Hi, Guenter > Subject: RE: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for > wdog operations > > Hi, Guenter > > > > Subject: Re: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the > > sequence for wdog operations > > > > On 7/27/20 11:42 PM, Anson Huang wrote: > > > According

[PATCH] drm/vkms: Fix soft lockup.

2020-07-28 Thread Xu Qiang
A soft deadlock occurs when call hrtimer_cancel in softirq context: a) The main frequency of the machine is very slow b) output->period_ns is very small, even only 1 ns The problem can be solved in the following way: Setting a hrtimer exit flag in the vkms_disable_vblank function

[PATCH V2 2/2] watchdog: imx7ulp: Watchdog should continue running for wait/stop mode

2020-07-28 Thread Anson Huang
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang --- no change. --- drivers/watchdog/imx7ulp_wdt.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH V2 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Anson Huang
According to reference manual, the i.MX7ULP WDOG's operations should follow below sequence: 1. disable global interrupts; 2. unlock the wdog and wait unlock bit set; 3. reconfigure the wdog and wait for reconfiguration bit set; 4. enabel global interrupts. Strictly follow the recommended

  1   2   3   4   5   6   7   8   9   10   >