[PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-07-28 Thread Perry Yuan
From: perry_yuan The patch control battery charging thresholds when system is under custom charging mode through smbios API and driver`s sys attributes.It also set the percentage bounds for custom charge. Start value must lie in the range [50, 95],End value must lie in the range [55, 100],END mus

Re: [V9fs-developer] [PATCH kernel] 9p/trans_fd: Check file mode at opening

2020-07-28 Thread Greg Kurz
On Wed, 29 Jul 2020 08:14:49 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Tue, Jul 28, 2020: > > > The "fd" transport layer uses 2 file descriptors passed externally > > > and calls kernel_write()/kernel_read() on these. If files were opened > > > without FMODE_WRITE/FMODE_READ, WARN_ON_O

Re: [PATCH 7/7] modules: inherit TAINT_PROPRIETARY_MODULE

2020-07-28 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 08:27:11AM +0200, Christoph Hellwig wrote: > If a TAINT_PROPRIETARY_MODULE exports symbol, inherit the tain flag s/tain/taint/ > for all modules importing these symbols, and don't allow loading > symbols from TAINT_PROPRIETARY_MODULE modules if the module previously > impo

Re: [PATCH v2 04/14] iio: sx9310: Remove acpi and of table macros

2020-07-28 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 2:05 AM Daniel Campello wrote: > > Avoids unused warnings due to acpi/of table macros. Reviewed-by: Andy Shevchenko > Reported-by: kbuild test robot > Signed-off-by: Daniel Campello > --- > > Changes in v2: > - Added #include > > drivers/iio/proximity/sx9310.c | 6 +

Re: [PATCH 06/15] iio: sx9310: Align memory

2020-07-28 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 12:26 AM Daniel Campello wrote: > On Tue, Jul 28, 2020 at 12:11 PM Andy Shevchenko > wrote: > > On Tue, Jul 28, 2020 at 6:15 PM Daniel Campello > > wrote: ... > > > - __be16 buffer[SX9310_NUM_CHANNELS + > > > - 4]; /* 64-bit data + 64-bit time

Re: [PATCH 3/4] perf auxtrace: Add new itrace options for ARMv8.3-SPE

2020-07-28 Thread Leo Yan
On Fri, Jul 24, 2020 at 05:16:06PM +0800, Wei Li wrote: > This patch is to add two options to synthesize events which are > described as below: > > 'u': synthesize unaligned address access events > 'v': synthesize partial/empty predicated SVE events > > This two options will be used by ARM SPE

Re: [PATCH v7 1/8] scsi: ufs: Add checks before setting clk-gating states

2020-07-28 Thread Stanley Chu
On Tue, 2020-07-28 at 13:00 +0800, Can Guo wrote: > Clock gating features can be turned on/off selectively which means its > state information is only important if it is enabled. This change makes > sure that we only look at state of clk-gating if it is enabled. > > Signed-off-by: Can Guo > Revie

[PATCH v2 1/3] cpuidle-pseries: Set the latency-hint before entering CEDE

2020-07-28 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" As per the PAPR, each H_CEDE call is associated with a latency-hint to be passed in the VPA field "cede_latency_hint". The CEDE states that we were implicitly entering so far is CEDE with latency-hint = 0. This patch explicitly sets the latency hint corresponding to the

[PATCH v2 3/3] cpuidle-pseries : Fixup exit latency for CEDE(0)

2020-07-28 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" We are currently assuming that CEDE(0) has exit latency 10us, since there is no way for us to query from the platform. However, if the wakeup latency of an Extended CEDE state is smaller than 10us, then we can be sure that the exit latency of CEDE(0) cannot be more than

[PATCH v2 2/3] cpuidle-pseries: Add function to parse extended CEDE records

2020-07-28 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently we use CEDE with latency-hint 0 as the only other idle state on a dedicated LPAR apart from the polling "snooze" state. The platform might support additional extended CEDE idle states, which can be discovered through the "ibm,get-system-parameter" rtas-call ma

[PATCH v2 0/3] cpuidle-pseries: Parse extended CEDE information for idle.

2020-07-28 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Hi, This is a v2 of the patch series to parse the extended CEDE information in the pseries-cpuidle driver. The v1 of this patchset can be found here : https://lore.kernel.org/linuxppc-dev/1594120299-31389-1-git-send-email-...@linux.vnet.ibm.com/ The change from v1 -->

linux-next: manual merge of the kvm tree with the tip tree

2020-07-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kernel/kvm.c between commits: b037b09b9058 ("x86/entry: Rename idtentry_enter/exit_cond_rcu() to idtentry_enter/exit()") a27a0a55495c ("x86/entry: Cleanup idtentry_enter/exit") from the tip tree and commits:

Re: [PATCH 5/9] phy: qcom-qmp: use correct values for ipq8074 gen2 pcie phy init

2020-07-28 Thread Sivaprakash Murugesan
On 7/13/2020 11:25 AM, Vinod Koul wrote: On 05-07-20, 14:47, Sivaprakash Murugesan wrote: There were some problem in ipq8074 gen2 pcie phy init sequence, fix Can you please describe these problems, it would help review to understand the issues and also for future reference to you Hi Vinod,

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

2020-07-28 Thread David Hildenbrand
> Am 29.07.2020 um 05:35 schrieb 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,

Re: [PATCH] reset: Fix and extend kerneldoc

2020-07-28 Thread Philipp Zabel
Hi Krzysztof, On Tue, 2020-07-28 at 19:10 +0200, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > drivers/reset/core.c:50: warning: Function parameter or member 'array' > not described in 'reset_control' > drivers/reset/core.c:50: warning: Function parameter

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

2020-07-28 Thread Dmitry Torokhov
Hi Roy, On Wed, Jul 29, 2020 at 11:59:40AM +0900, Roy Im wrote: > 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. A few questions/suggestions... > > Reviewed-by: Je

Re: Linux kernel in-tree Rust support

2020-07-28 Thread Josh Triplett
On Tue, Jul 28, 2020 at 10:40:38PM +0200, Pavel Machek wrote: > > We just need to make sure that any kernel CI infrastructure tests that > > right away, then, so that failures don't get introduced by a patch from > > someone without a Rust toolchain and not noticed until someone with a > > Rust too

[GIT PULL] 9p update for 5.8

2020-07-28 Thread Dominique Martinet
Sorry for the late request, I took some time to fix my test setup and to be convinced these two patches are worth sending now and not wait until the next merge window. (the "weird" -2 at the end of the tag is because I had already used 9p-for-5.8 for the original -rc1 pull) The following changes

Re: linux-next: build failure after merge of the vfs tree

2020-07-28 Thread Christoph Hellwig
Thanks, I've sent out a fixed version.

[v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-28 Thread Crystal Guo
merge all the reset numbers in one head file. Signed-off-by: Crystal Guo --- include/dt-bindings/reset-controller/mtk-resets.h | 13 + 1 file changed, 13 insertions(+) create mode 100644 include/dt-bindings/reset-controller/mtk-resets.h diff --git a/include/dt-bindings/reset-contro

[v2,1/3] dt-bindings: watchdog: modify description for mt2712 and mt8183

2020-07-28 Thread Crystal Guo
Besides watchdog, mt2712 and mt8183 also provide sub-system software reset features. But mt6589 not support this feature. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/de

[v3,3/3] watchdog: mtk_wdt: merge all the reset numbers in one head file

2020-07-28 Thread Crystal Guo
mt8xxx-resets.h actually just used to define TOPRGU_SW_RST_NUM. Instead of resubmit a new mt8xxx-reset.h for a new IC, merge all the reset numbers in one head file. Signed-off-by: Crystal Guo --- drivers/watchdog/mtk_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dri

[v2,0/3] mtk_wdt: merge all the reset numbers in one head file

2020-07-28 Thread Crystal Guo
This series patches merge all the reset numbers in one head file v2 changes: merge all the reset numbers in one head file, instead of pass the reset number via DTS (v1). v1 changes: https://patchwork.kernel.org/patch/11688915/ https://patchwork.kernel.org/patch/11688925/ https://patchwork.kernel

Re: [PATCH 2/4] perf: arm-spe: Add support for ARMv8.3-SPE

2020-07-28 Thread Leo Yan
On Fri, Jul 24, 2020 at 05:16:05PM +0800, Wei Li wrote: > Armv8.3 extends the SPE by adding: > - Alignment field in the Events packet, and filtering on this event > using PMSEVFR_EL1. > - Support for the Scalable Vector Extension (SVE). > > The main additions for SVE are: > - Recording the vecto

[PATCH 3/7] modules: mark each_symbol_section static

2020-07-28 Thread Christoph Hellwig
each_symbol_section is only used inside of module.c. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 9 - kernel/module.c| 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 90bdc362be3681..b79

[PATCH 6/7] modules: return licensing information from find_symbol

2020-07-28 Thread Christoph Hellwig
Report the GPLONLY status through a new argument. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 2 +- kernel/module.c| 16 +++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index b79219eed83c5

[PATCH 4/7] modules: unexport __module_text_address

2020-07-28 Thread Christoph Hellwig
__module_text_address is only used by built-in code. Signed-off-by: Christoph Hellwig --- kernel/module.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index feeaa9629eb179..d241866f9d4a2b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -4508,7 +4508,

[PATCH 5/7] modules: unexport __module_address

2020-07-28 Thread Christoph Hellwig
__module_address is only used by built-in code. Signed-off-by: Christoph Hellwig --- kernel/module.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index d241866f9d4a2b..54e853c7212f72 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -4469,7 +4469,6 @@

[PATCH 7/7] modules: inherit TAINT_PROPRIETARY_MODULE

2020-07-28 Thread Christoph Hellwig
If a TAINT_PROPRIETARY_MODULE exports symbol, inherit the tain flag for all modules importing these symbols, and don't allow loading symbols from TAINT_PROPRIETARY_MODULE modules if the module previously imported gplonly symbols. Add a anti-circumvention devices so people don't accidentally get th

[PATCH 2/7] modules: mark find_symbol static

2020-07-28 Thread Christoph Hellwig
find_symbol is only used in module.c. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 11 --- kernel/module.c| 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index f1fdbeef2153a8..90bdc362be3681

inherit TAINT_PROPRIETARY_MODULE

2020-07-28 Thread Christoph Hellwig
Hi Jessica, we've had a bug in our resolution of _GPL modules since day one, that is a module can claim to be GPL licensed and use _GPL exports, while it also depends on symbols from non-GPL modules. This is used as a circumvention of the _GPL exports by using a small shim module using the _GPL e

[PATCH 1/7] modules: mark ref_module static

2020-07-28 Thread Christoph Hellwig
ref_module isn't used anywhere outside of module.c. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 1 - kernel/module.c| 6 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 2e6670860d275f..f1fdbeef2

[PATCH v2] PCI: Fix kerneldoc of pci_vc_do_save_buffer()

2020-07-28 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/pci/vc.c:188: warning: Excess function parameter 'name' description in 'pci_vc_do_save_buffer' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Fix subject --- drivers/pci/vc.c | 1 - 1 file changed, 1 deletion(-) diff --g

Re: [RFC PATCH] uvcvideo: Add mapping for HEVC payloads

2020-07-28 Thread Dmitry Buzdyk
Hi Laurent, On Tue, Jul 28, 2020 at 03:17:21AM +0300, Laurent Pinchart wrote: > Hi Dmitry, > > Sorry for the late reply. > > Mauro, there's a question for your below. > > On Tue, Jul 28, 2020 at 09:25:46AM +1000, Dmitry Buzdyk wrote: > > Hi Laurent, > > > > Had you a chance to review USB descr

[PATCH] perf/x86/svm: Convert 'perf kvm stat report' output lowercase to uppercase

2020-07-28 Thread Haiwei Li
From: Haiwei Li The reason output of 'perf kvm stat report --event=vmexit' is uppercase on VMX and lowercase on SVM. To be consistent with VMX, convert lowercase to uppercase. Signed-off-by: Haiwei Li --- arch/x86/include/uapi/asm/svm.h | 184 +- tool

linux-next: manual merge of the rcu tree with the tip tree

2020-07-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rcu tree got a conflict in: arch/x86/entry/common.c between commit: bdcd178ada90 ("x86/entry: Use generic interrupt entry/exit code") from the tip tree and commit: 20f165b7d2c8 ("rcu: Remove unused __rcu_is_watching() function") from the rcu tree

Re: [PATCH v3 18/19] firmware: Add request_partial_firmware_into_buf()

2020-07-28 Thread Takashi Iwai
On Wed, 29 Jul 2020 03:17:39 +0200, Luis Chamberlain wrote: > > Long ago Takashi had some points about this strategy breaking > compressed file use. Was that considered? As long as I read the patch, it tries to skip both the compressed and the fallback loading when FW_OPT_PARTIAL is set, which is

Re: Re: Re: [PATCH v18 06/14] mm/damon: Implement callbacks for the virtual memory address spaces

2020-07-28 Thread SeongJae Park
On Tue, 28 Jul 2020 10:42:11 -0700 Shakeel Butt wrote: > On Mon, Jul 27, 2020 at 2:03 AM SeongJae Park wrote: > > > > On Mon, 27 Jul 2020 00:34:54 -0700 Greg Thelen wrote: > > > > > SeongJae Park wrote: > > > > > > > From: SeongJae Park > > > > > > > > This commit introduces a reference imple

Re: [PATCH v4 09/10] Powerpc/smp: Create coregroup domain

2020-07-28 Thread Srikar Dronamraju
* Valentin Schneider [2020-07-28 16:03:11]: Hi Valentin, Thanks for looking into the patches. > On 27/07/20 06:32, Srikar Dronamraju wrote: > > Add percpu coregroup maps and masks to create coregroup domain. > > If a coregroup doesn't exist, the coregroup domain will be degenerated > > in favou

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

2020-07-28 Thread Greg KH
On Tue, Jul 28, 2020 at 08:46:35PM -0700, Hemant Kumar wrote: > 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. >

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

2020-07-28 Thread Stanley Chu
Hi Can, On Wed, 2020-07-29 at 13:31 +0800, Can Guo wrote: > 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.

[PATCH] drm/dp_mst: Add ddc i2c device links for DP MST connectors

2020-07-28 Thread Sam McNally
As of commit d8bd15b37d32 ("drm/dp_mst: Fix the DDC I2C device registration of an MST port"), DP MST DDC I2C devices are consistently parented to the underlying DRM device, making it challenging to associate the ddc i2c device with its connector from userspace. Given the need for further refactori

Re: [V9fs-developer] [PATCH kernel] 9p/trans_fd: Check file mode at opening

2020-07-28 Thread Dominique Martinet
Greg Kurz wrote on Tue, Jul 28, 2020: > > The "fd" transport layer uses 2 file descriptors passed externally > > and calls kernel_write()/kernel_read() on these. If files were opened > > without FMODE_WRITE/FMODE_READ, WARN_ON_ONCE() will fire. There already is a fix in linux-next as a39c46067c84

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-28 Thread Ard Biesheuvel
On Wed, 29 Jul 2020 at 04:51, Masami Hiramatsu wrote: > > On Tue, 28 Jul 2020 20:51:08 +0300 > Ard Biesheuvel wrote: > > > On Tue, 28 Jul 2020 at 16:35, Masami Hiramatsu wrote: > > > > > > On Tue, 28 Jul 2020 13:56:43 +0300 > > > Ard Biesheuvel wrote: > > > > > > > On Tue, 28 Jul 2020 at 11:17,

[PATCH 2/4 v2] compat: lift compat_s64 and compat_u64 to

2020-07-28 Thread Christoph Hellwig
lift the compat_s64 and compat_u64 definitions into common code using the COMPAT_FOR_U64_ALIGNMENT symbol for the x86 special case. Signed-off-by: Christoph Hellwig --- Changes since v1: fix a typo arch/arm64/include/asm/compat.h | 2 -- arch/mips/include/asm/compat.h| 2 -- arch/parisc/

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

2020-07-28 Thread Dhiraj Sharma
> > 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. >

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 level-tri

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 i

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 dashboard

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 the

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 includ

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 hwp_req_

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 func

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 > --- > drivers/therm

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 tur

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(). Mini

[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 ++ drivers/scsi/ufs/ufs_q

[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 b/drivers/scsi/

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, we

[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: dri-de...@lists.freedeskto

[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 b/Documentation

[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 de

[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 3

[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. Jishe

[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 f

[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 in

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

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 d

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 cpuhp_setup_state_nocalls_

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 iss

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: > > > Accor

[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, > fundame

[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 I

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 intr

[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 idr_alloc(struc

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() https://git.ker

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 L

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 fo

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 w

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 cr

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 please

[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 + Documentation/

[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. CO

[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 multi

[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 --- fs/d

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 wi

  1   2   3   4   5   6   7   8   9   10   >