Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-04-29 Thread Johannes Weiner
On Wed, Apr 29, 2020 at 06:53:03PM +0800, Yafang Shao wrote: > On Wed, Apr 29, 2020 at 6:15 PM Michal Hocko wrote: > > > > On Tue 28-04-20 19:26:47, Chris Down wrote: > > > From: Yafang Shao > > > > > > A cgroup can have both memory protection and a memory limit to isolate > > > it from its

Re: [PATCH v3 07/17] arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domains

2020-04-29 Thread Rajendra Nayak
On 4/29/2020 5:57 AM, Matthias Kaehlcke wrote: On Tue, Apr 28, 2020 at 07:02:55PM +0530, Rajendra Nayak wrote: Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak

[PATCH v2 2/2] media: v4l: xilinx: Add Xilinx UHD-SDI Rx Subsystem driver

2020-04-29 Thread Vishal Sagar
The Xilinx UHD-SDI Rx subsystem soft IP is used to capture native SDI streams from SDI sources like SDI broadcast equipment like cameras and mixers. This block outputs either native SDI, native video or AXI4-Stream compliant data stream for further processing. Please refer to PG290 for details.

[PATCH v2 0/2] Add support for Xilinx UHD-SDI Receiver subsystem

2020-04-29 Thread Vishal Sagar
Xilinx SMPTE UHD-SDI Receiver Subsystem The SMPTE UHD-SDI Receiver (RX) Subsystem allows you to quickly create systems based on SMPTE SDI protocols. It receives unaligned native SDI streams from the SDI GT PHY and outputs an AXI4-Stream video stream,

Re: [PATCH] net: dsa: mv88e6xxx: remove duplicate assignment of struct members

2020-04-29 Thread Russell King - ARM Linux admin
On Wed, Apr 29, 2020 at 10:10:01PM +0800, Jason Yan wrote: > These struct members named 'phylink_validate' was assigned twice: > > static const struct mv88e6xxx_ops mv88e6190_ops = { > .. > .phylink_validate = mv88e6390_phylink_validate, > .. > .phylink_validate =

Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-04-29 Thread Yafang Shao
On Wed, Apr 29, 2020 at 10:03 PM Johannes Weiner wrote: > > On Wed, Apr 29, 2020 at 12:15:10PM +0200, Michal Hocko wrote: > > On Tue 28-04-20 19:26:47, Chris Down wrote: > > > From: Yafang Shao > > > > > > A cgroup can have both memory protection and a memory limit to isolate > > > it from its

[PATCH v2 1/2] media: dt-bindings: media: xilinx: Add Xilinx UHD-SDI Receiver Subsystem

2020-04-29 Thread Vishal Sagar
Add bindings documentation for Xilinx UHD-SDI Receiver Subsystem. The Xilinx UHD-SDI Receiver Subsystem consists of SMPTE UHD-SDI (RX) IP core, an SDI RX to Video Bridge IP core to convert SDI video to native video and a Video In to AXI4-Stream IP core to convert native video to AXI4-Stream.

Re: [PATCH v3 05/17] drm/msm/dpu: Use OPP API to set clk/perf state

2020-04-29 Thread Rajendra Nayak
On 4/29/2020 5:44 AM, Matthias Kaehlcke wrote: On Tue, Apr 28, 2020 at 07:02:53PM +0530, Rajendra Nayak wrote: On some qualcomm platforms DPU needs to express a perforamnce state requirement on a power domain depennding on the clock rates. Use OPP table from DT to register with OPP framework

Re: [PATCH v3 -next] drm/mediatek: Fix Kconfig warning

2020-04-29 Thread Chun-Kuang Hu
Hi, YueHaibing: YueHaibing 於 2020年4月29日 週三 下午3:14寫道: > > WARNING: unmet direct dependencies detected for MTK_MMSYS > Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && > COMMON_CLK_MT8173_MMSYS [=n] > Selected by [y]: > - DRM_MEDIATEK [=y] && HAS_IOMEM [=y] && DRM [=y] &&

Re: [PATCH v3 03/17] arm64: dts: sdm845: Add OPP table for all qup devices

2020-04-29 Thread Rajendra Nayak
On 4/29/2020 5:32 AM, Matthias Kaehlcke wrote: Hi Rajendra, On Tue, Apr 28, 2020 at 07:02:51PM +0530, Rajendra Nayak wrote: qup has a requirement to vote on the performance state of the CX domain in sdm845 devices. Add OPP tables for these and also add power-domains property for all qup

Re: [PATCH net v2] net: macb: fix an issue about leak related system resources

2020-04-29 Thread Nicolas Ferre
On 29/04/2020 at 15:56, Dejin Zheng wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe A call of the function macb_init() can fail in the function fu540_c000_init. The related system resources were not released then. use

Re: [PATCH] ASoC: fsl_easrc: Check NULL pinter before dereference

2020-04-29 Thread Mark Brown
On Fri, Apr 24, 2020 at 08:30:04PM +0800, Shengjiu Wang wrote: > The patch 955ac624058f: "ASoC: fsl_easrc: Add EASRC ASoC CPU DAI > drivers" from Apr 16, 2020, leads to the following Smatch complaint: This doesn't apply against current code, please check and resend. signature.asc Description:

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-29 Thread Eric Blake
[meta-comment] On 4/29/20 4:35 AM, Yan Zhao wrote: On Wed, Apr 29, 2020 at 04:22:01PM +0800, Dr. David Alan Gilbert wrote: [...] This patchset introduces a migration_version attribute under sysfs of VFIO Mediated devices. Hmm, several pages with up to 16 levels of quoting, with editors

Re: [PATCH v4 01/10] loop: Factor out loop size validation

2020-04-29 Thread Ming Lei
On Wed, Apr 29, 2020 at 04:03:32PM +0200, Martijn Coenen wrote: > Ensuring we don't truncate loff_t when casting to sector_t is done in > multiple places; factor it out. > > Signed-off-by: Martijn Coenen > --- > drivers/block/loop.c | 25 - > 1 file changed, 20

Re: [PATCH v12 4/8] iommu/vt-d: Add bind guest PASID support

2020-04-29 Thread Auger Eric
Hi, On 4/27/20 10:34 PM, Jacob Pan wrote: > On Fri, 24 Apr 2020 10:47:45 + > "Tian, Kevin" wrote: > >>> From: Jacob Pan >>> Sent: Wednesday, April 22, 2020 2:53 AM >>> >>> When supporting guest SVA with emulated IOMMU, the guest PASID >>> table is shadowed in VMM. Updates to guest vIOMMU

Re: [PATCH v2 1/2] hwmon: (pmbus/isl68137) add debugfs config and black box endpoints

2020-04-29 Thread Guenter Roeck
On Mon, Apr 27, 2020 at 12:07:29PM -0500, Grant Peltier wrote: > On Sat, Apr 25, 2020 at 10:43:18AM -0700, Guenter Roeck wrote: > > On Wed, Apr 22, 2020 at 12:27:14PM -0500, Grant Peltier wrote: > > > Add debugfs endpoints to support features of 2nd generation Renesas > > > digital multiphase

[PATCH] rtlwifi: remove comparison of 0/1 to bool variable

2020-04-29 Thread Jason Yan
The variable 'rtlpriv->rfkill.rfkill_state' is bool and can directly assigned to bool values. Fix the following coccicheck warning: drivers/net/wireless/realtek/rtlwifi/core.c:1725:14-42: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Jason Yan ---

[PATCH] video: fbdev: valkyriefb.c: fix warning comparing pointer to 0

2020-04-29 Thread Jason Yan
Fix the following coccicheck warning: drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to 0, suggest !E drivers/video/fbdev/valkyriefb.c:334:12-13: WARNING comparing pointer to 0 drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to 0 Signed-off-by: Jason

[PATCH] net: dsa: mv88e6xxx: remove duplicate assignment of struct members

2020-04-29 Thread Jason Yan
These struct members named 'phylink_validate' was assigned twice: static const struct mv88e6xxx_ops mv88e6190_ops = { .. .phylink_validate = mv88e6390_phylink_validate, .. .phylink_validate = mv88e6390_phylink_validate, }; static const struct mv88e6xxx_ops

[PATCH] KVM: MIPS: use true,false for bool variable

2020-04-29 Thread Jason Yan
Fix the following coccicheck warning: arch/mips/kvm/mips.c:82:1-28: WARNING: Assignment of 0/1 to bool variable arch/mips/kvm/mips.c:88:1-28: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- arch/mips/kvm/mips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH] scsi: qla2xxx: Make qla_set_ini_mode() return void

2020-04-29 Thread Jason Yan
The return value is not used by the caller and the local variable 'rc' is not needed. So make qla_set_ini_mode() return void and remove 'rc'. This also fixes the following coccicheck warning: drivers/scsi/qla2xxx/qla_attr.c:1906:5-7: Unneeded variable: "rc". Return "0" on line 2180

[PATCH] drm/ast: remove duplicate assignment of ast_crtc_funcs member

2020-04-29 Thread Jason Yan
The struct member 'set_config' was assigned twice: static const struct drm_crtc_funcs ast_crtc_funcs = { .reset = ast_crtc_reset, .set_config = drm_crtc_helper_set_config, .. .set_config = drm_atomic_helper_set_config, .. }; Since the second one is

Re: [PATCH v3 09/17] mmc: sdhci-msm: Fix error handling for dev_pm_opp_of_add_table()

2020-04-29 Thread Rajendra Nayak
On 4/28/2020 11:59 PM, Ulf Hansson wrote: On Tue, 28 Apr 2020 at 15:39, Rajendra Nayak wrote: Even though specifying OPP's in device tree is optional, ignoring all errors reported by dev_pm_opp_of_add_table() means we can't distinguish between a missing OPP table and a wrong/buggy OPP

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Joerg Roedel
On Wed, Apr 29, 2020 at 10:07:31AM -0400, Steven Rostedt wrote: > Talking with Mathieu about this on IRC, he pointed out that my code does > have a vzalloc() that is called: > > in trace_pid_write() > > pid_list->pids = vzalloc((pid_list->pid_max + 7) >> 3); > > This is done when -P1,2 is

Re: [PATCH] usb: raw-gadget: fix gadget endpoint selection

2020-04-29 Thread Alan Stern
On Wed, 29 Apr 2020, Andrey Konovalov wrote: > On Wed, Apr 29, 2020 at 3:14 AM Alan Stern wrote: > > > > On Tue, 28 Apr 2020, Andrey Konovalov wrote: > > > > > Hi Alan, > > > > > > This patch uses the approach that I mentioned in the discussion about > > > endpoint selection. Does this look

Re: [Skiboot] [PATCH v8 3/3] Self save API integration

2020-04-29 Thread Vaidyanathan Srinivasan
* Pratik Rajesh Sampat [2020-04-23 16:24:38]: > The commit makes the self save API available outside the firmware by defining > an OPAL wrapper. > This wrapper has a similar interface to that of self restore and expects the > cpu pir, SPR number, minus the value of that SPR to be passed in its >

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Steven Rostedt
On Wed, 29 Apr 2020 08:28:54 -0400 Steven Rostedt wrote: > On Wed, 29 Apr 2020 12:59:41 +0200 > Joerg Roedel wrote: > > > > use_temporary_mm() { > > > switch_mm_irqs_off() { > > > load_new_mm_cr3() { > > > write_cr3() <<--- Lock up! > > > > I don't see how it could

Re: [PATCH v3 05/17] drm/msm/dpu: Use OPP API to set clk/perf state

2020-04-29 Thread Rajendra Nayak
On 4/28/2020 10:02 PM, Rob Clark wrote: On Tue, Apr 28, 2020 at 6:39 AM Rajendra Nayak wrote: On some qualcomm platforms DPU needs to express a perforamnce state s/perforamnce/performance/ requirement on a power domain depennding on the clock rates. s/depennding/depending/ Use OPP

[PATCH v3] mm/vmscan.c: change prototype for shrink_page_list

2020-04-29 Thread Maninder Singh
'commit 3c710c1ad11b ("mm, vmscan: extract shrink_page_list reclaim counters into a struct")' changed data type for the function, so changing return type for funciton and its caller. Signed-off-by: Vaneet Narang Signed-off-by: Maninder Singh --- v1 -> v2: position of variable changed

Re: [PATCH v3 6/6] loop: be paranoid on exit and prevent new additions / removals

2020-04-29 Thread Ming Lei
On Wed, Apr 29, 2020 at 07:46:27AM +, Luis Chamberlain wrote: > Be pedantic on removal as well and hold the mutex. > This should prevent uses of addition while we exit. > > Signed-off-by: Luis Chamberlain > --- > drivers/block/loop.c | 4 > 1 file changed, 4 insertions(+) > > diff

Re: [PATCH v8 2/3] API to verify the STOP API and image compatibility

2020-04-29 Thread Vaidyanathan Srinivasan
* Pratik Rajesh Sampat [2020-04-23 16:24:37]: > From: Prem Shanker Jha > > Commit defines a new API primarily intended for OPAL to determine > cpu register save API's compatibility with HOMER layout and > self save restore. It can help OPAL determine if version of > API integrated with OPAL is

Re: [PATCH v3 0/9] Add a new LOOP_SET_FD_AND_STATUS ioctl

2020-04-29 Thread Martijn Coenen
On Tue, Apr 28, 2020 at 4:57 PM Martijn Coenen wrote: > and it allows requesting a partition scan. It makes sense to maintain > that behavior, but what about LO_FLAGS_DIRECT_IO? I think you're > proposing LOOP_SET_STATUS(64) should keep ignoring that like it used > to? I've just sent a v4 which

Re: [PATCH 5.6 000/167] 5.6.8-rc1 review

2020-04-29 Thread Guenter Roeck
On Tue, Apr 28, 2020 at 08:22:56PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.6.8 release. > There are 167 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.4 000/168] 5.4.36-rc1 review

2020-04-29 Thread Guenter Roeck
On Tue, Apr 28, 2020 at 08:22:54PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.36 release. > There are 168 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v4 01/10] loop: Factor out loop size validation

2020-04-29 Thread Martijn Coenen
Ensuring we don't truncate loff_t when casting to sector_t is done in multiple places; factor it out. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c

[PATCH v4 06/10] loop: Factor out configuring loop from status

2020-04-29 Thread Martijn Coenen
Factor out this code into a separate function, so it can be reused by other code more easily. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 117 +-- 1 file changed, 67 insertions(+), 50 deletions(-) diff --git a/drivers/block/loop.c

Re: [PATCH 4.19 000/131] 4.19.119-rc1 review

2020-04-29 Thread Guenter Roeck
On Tue, Apr 28, 2020 at 08:23:32PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.119 release. > There are 131 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v4 02/10] loop: Factor out setting loop device size

2020-04-29 Thread Martijn Coenen
This code is used repeatedly. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 396b8bd4d75c..6643e48ad71c 100644 ---

[PATCH v4 05/10] loop: Remove figure_loop_size()

2020-04-29 Thread Martijn Coenen
This function was now only used by loop_set_capacity(). Just open code the remaining code in the caller instead. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/drivers/block/loop.c

[PATCH v4 09/10] loop: Clean up LOOP_SET_STATUS lo_flags handling.

2020-04-29 Thread Martijn Coenen
LOOP_SET_STATUS(64) will actually allow some lo_flags to be modified; in particular, LO_FLAGS_AUTOCLEAR can be set and cleared, whereas LO_FLAGS_PARTSCAN can be set to request a partition scan. Make this explicit by updating the UAPI to include the flags that can be set/cleared using this ioctl.

[PATCH v4 08/10] loop: Rework lo_ioctl() __user argument casting

2020-04-29 Thread Martijn Coenen
In preparation for a new ioctl that needs to copy_from_user(); makes the code easier to read as well. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index

[PATCH v4 10/10] loop: Add LOOP_CONFIGURE ioctl

2020-04-29 Thread Martijn Coenen
This allows userspace to completely setup a loop device with a single ioctl, removing the in-between state where the device can be partially configured - eg the loop device has a backing file associated with it, but is reading from the wrong offset. Besides removing the intermediate state,

Re: [PATCH v5 0/4] Charge loop device i/o to issuing cgroup

2020-04-29 Thread Dan Schatzberg
On Wed, Apr 29, 2020 at 07:47:34AM +1000, Dave Chinner wrote: > On Tue, Apr 28, 2020 at 12:13:46PM -0400, Dan Schatzberg wrote: > > The loop device runs all i/o to the backing file on a separate kworker > > thread which results in all i/o being charged to the root cgroup. This > > allows a loop

[PATCH v4 07/10] loop: Move loop_set_status_from_info() and friends up

2020-04-29 Thread Martijn Coenen
So we can use it without forward declaration. This is a separate commit to make it easier to verify that this is just a move, without functional modifications. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 206 +-- 1 file changed, 103

[PATCH v4 00/10] Add a new LOOP_CONFIGURE ioctl

2020-04-29 Thread Martijn Coenen
This series introduces a new ioctl that makes it possible to atomically configure a loop device. Previously, if you wanted to set parameters such as the offset on a loop device, this required calling LOOP_SET_FD to set the backing file, and then LOOP_SET_STATUS to set the offset. However, in

Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-04-29 Thread Johannes Weiner
On Wed, Apr 29, 2020 at 12:15:10PM +0200, Michal Hocko wrote: > On Tue 28-04-20 19:26:47, Chris Down wrote: > > From: Yafang Shao > > > > A cgroup can have both memory protection and a memory limit to isolate > > it from its siblings in both directions - for example, to prevent it > > from being

[PATCH v4 04/10] loop: Refactor loop_set_status() size calculation

2020-04-29 Thread Martijn Coenen
figure_loop_size() calculates the loop size based on the passed in parameters, but at the same time it updates the offset and sizelimit parameters in the loop device configuration. That is a somewhat unexpected side effect of a function with this name, and it is only only needed by one of the two

[PATCH v4 03/10] loop: Switch to set_capacity_revalidate_and_notify()

2020-04-29 Thread Martijn Coenen
This was recently added to block/genhd.c, and takes care of both updating the capacity and notifying userspace of the new size. Signed-off-by: Martijn Coenen --- drivers/block/loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/loop.c

Re: [Skiboot] [PATCH v8 1/3] Self Save: Introducing Support for SPR Self Save

2020-04-29 Thread Vaidyanathan Srinivasan
* Pratik Rajesh Sampat [2020-04-23 16:24:36]: > From: Prem Shanker Jha > > The commit is a merger of commits that makes the following changes: > 1. Commit fixes some issues with code found during integration test > - replacement of addi with xor instruction during self save API. > -

Re: [PATCH 2/2] gpio: xilinx: Add irq support to the driver

2020-04-29 Thread Daniel Mack
Hi Srinivas, Thanks for these patches. We're using them on a custom board, and I have some remarks as they didn't work as intended. See below. On 2/17/20 11:57 AM, Srinivas Neeli wrote: > Allocate single chip for both channels. > Add irq support to the driver. > Supporting rising edge

Re: [PATCH v3 -next] drm/mediatek: Fix Kconfig warning

2020-04-29 Thread Enric Balletbo i Serra
Hi YueHaibing, Thank you for your patch. On 29/4/20 9:13, YueHaibing wrote: > WARNING: unmet direct dependencies detected for MTK_MMSYS > Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && > COMMON_CLK_MT8173_MMSYS [=n] > Selected by [y]: > - DRM_MEDIATEK [=y] && HAS_IOMEM [=y]

Re: [Ksummit-discuss] [PATCH v2 0/3] Maintainer Entry Profiles

2020-04-29 Thread Roman Bolshakov
On 9/11/19 5:40 PM, Martin K. Petersen wrote: > After the Plumbers session last year I wrote this for SCSI based on a > prior version by Christoph. It's gone a bit stale but I'll update it to > match your template. > Hi Martin, The Maintainer profile is very helpful. Are you planning to send

[PATCH v2 4/4] MAINTAINERS: Add entry for wsen-itds accelerometer sensor

2020-04-29 Thread Saravanan Sekar
Add MAINTAINERS entry for wsen-itds accelerometer sensor driver. Signed-off-by: Saravanan Sekar --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 32a95d162f06..d70b31910cdb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18167,6 +18167,13

Re: [PATCH -next] ALSA: seq: oss: remove unused inline function snd_seq_oss_timer_is_realtime

2020-04-29 Thread Takashi Iwai
On Wed, 29 Apr 2020 15:28:05 +0200, YueHaibing wrote: > > There's no callers in-tree. > > Signed-off-by: YueHaibing Applied, thanks. Takashi

Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections

2020-04-29 Thread Sai Prakash Ranjan
On 2020-04-29 19:19, Suzuki K Poulose wrote: On 04/29/2020 12:47 PM, Sai Prakash Ranjan wrote: On 2020-04-28 17:53, Sai Prakash Ranjan wrote: On 2020-04-27 19:23, Suzuki K Poulose wrote: On 04/27/2020 10:45 AM, Mike Leach wrote: [...] This is not sufficient. You must prevent another

Re: [PATCH v3 3/5] w1_therm: Optimizing read timing by checking device resolution. Updating documentation

2020-04-29 Thread Akira shimahara
Le mercredi 29 avril 2020 à 15:47 +0200, Greg KH a écrit : > On Wed, Apr 29, 2020 at 03:33:20PM +0200, Akira Shimahara wrote: > > Patch for enhacement of w1_therm module. Added features : > > - Optimized conversion time regarding to device resolution > > - Dedicated sysfs entry for, resolution

Re: [PATCH v4] Add new uio device for PCI with dynamic memory allocation

2020-04-29 Thread Stahl, Manuel
On Mi, 2020-04-29 at 11:41 +0200, gre...@linuxfoundation.org wrote: > On Wed, Apr 29, 2020 at 07:51:01AM +, Stahl, Manuel wrote: > > On Di, 2020-04-28 at 15:54 +0200, gregkh @ linuxfoundation . org wrote: > > > On Thu, Apr 16, 2020 at 06:38:30PM +0200, Manuel Stahl wrote: > > > > > > > > + *

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-04-29 Thread Jon Hunter
On 29/04/2020 13:35, Dmitry Osipenko wrote: > 29.04.2020 11:55, Thierry Reding пишет: > ... It's not "papering over an issue". The bug can't be fixed properly without introducing I2C atomic transfers support for a late suspend phase, I don't see any other solutions for now. Stable

_

2020-04-29 Thread Akira shimahara
Le mercredi 29 avril 2020 à 15:46 +0200, Greg KH a écrit : > On Wed, Apr 29, 2020 at 03:32:04PM +0200, Akira Shimahara wrote: > > Patch for enhacement of w1_therm module. > > Adding ext_power sysfs entry (RO). Return the power status of the > > device: > > - 0: device parasite powered > > - 1:

[PATCH v2 1/5] scsi: ufs: allow legacy UFS devices to enable WriteBooster

2020-04-29 Thread Stanley Chu
WriteBooster feature may be supported by some legacy UFS devices (i.e., < 3.1) by upgrading firmware. To enable WriteBooster feature in such devices, relax the entrance condition of ufshcd_wb_probe() to allow host driver to check those devices' WriteBooster capability. WriteBooster feature can

[PATCH v2 3/5] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-04-29 Thread Stanley Chu
According to UFS specification, there are two WriteBooster mode of operations: "LU dedicated buffer" mode and "shared buffer" mode. In the "LU dedicated buffer" mode, the WriteBooster Buffer is dedicated to a logical unit. If the device supports the "LU dedicated buffer" mode, this mode is

[PATCH net v2] net: macb: fix an issue about leak related system resources

2020-04-29 Thread Dejin Zheng
A call of the function macb_init() can fail in the function fu540_c000_init. The related system resources were not released then. use devm_platform_ioremap_resource() to replace ioremap() to fix it. Fixes: c218ad559020ff9 ("macb: Add support for SiFive FU540-C000") Cc: Andy Shevchenko

[PATCH v2 2/5] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-04-29 Thread Stanley Chu
For preparation of LU Dedicated buffer mode support on WriteBooster feature, "index" parameter shall be added and allowed to be specified by callers. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs-sysfs.c | 2 +- drivers/scsi/ufs/ufshcd.c| 28

[PATCH] gpio: exar: Fix bad handling for ida_simple_get error path

2020-04-29 Thread Takashi Iwai
The commit 7ecced0934e5 ("gpio: exar: add a check for the return value of ida_simple_get fails") added a goto jump to the common error handler for ida_simple_get() error, but this is wrong in two ways: it doesn't set the proper return code and, more badly, it invokes ida_simple_remove() with a

[PATCH v2 4/5] scsi: ufs-mediatek: enable WriteBooster capability

2020-04-29 Thread Stanley Chu
Enable WriteBooster capability on MediaTek UFS platforms. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs-mediatek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index

[PATCH v2 5/5] scsi: ufs: cleanup WriteBooster feature

2020-04-29 Thread Stanley Chu
Small cleanup as below items, 1. Use ufshcd_is_wb_allowed() directly instead of ufshcd_wb_sup() since ufshcd_wb_sup() just returns the result of ufshcd_is_wb_allowed(). 2. In ufshcd_suspend(), "else if (!ufshcd_is_runtime_pm(pm_op)) can be simplified to "else" since both have the same

[PATCH v2 0/5] scsi: ufs: support LU Dedicated buffer type for WriteBooster

2020-04-29 Thread Stanley Chu
Hi, This patchset adds LU dedicated buffer mode support for WriteBooster. In the meanwhile, enable WriteBooster capability on MediaTek UFS platforms. v1 -> v2: - Change the definition name of WriteBooster buffer mode to correspond to specification (Bean Huo) - Add patch #5: "scsi: ufs:

Re: [PATCH v3] mm/slub: Fix incorrect interpretation of s->offset

2020-04-29 Thread Waiman Long
On 4/29/20 9:53 AM, Waiman Long wrote: In a couple of places in the slub memory allocator, the code uses "s->offset" as a check to see if the free pointer is put right after the object. That check is no longer true with commit 3202fa62fb43 ("slub: relocate freelist pointer to middle of object").

[PATCH v3] mm/slub: Fix incorrect interpretation of s->offset

2020-04-29 Thread Waiman Long
In a couple of places in the slub memory allocator, the code uses "s->offset" as a check to see if the free pointer is put right after the object. That check is no longer true with commit 3202fa62fb43 ("slub: relocate freelist pointer to middle of object"). As a result, echoing "1" into the

Re: [PATCH v3 1/3] driver core: Revert default driver_deferred_probe_timeout value to 0

2020-04-29 Thread Mark Brown
On Wed, Apr 29, 2020 at 03:46:04PM +0200, Marek Szyprowski wrote: > On 22.04.2020 22:32, John Stultz wrote: > > Fixes: c8c43cee29f6 ("driver core: Fix driver_deferred_probe_check_state() > > logic") > > Signed-off-by: John Stultz > Please also revert dca0b44957e5 "regulator: Use >

Re: [PATCH v10 3/5] usb: xhci: Add support for Renesas controller with memory

2020-04-29 Thread Mathias Nyman
On 24.4.2020 13.14, Vinod Koul wrote: > Some rensas controller like uPD720201 and uPD720202 need firmware to be > loaded. Add these devices in table and invoke renesas firmware loader > functions to check and load the firmware into device memory when > required. > > Signed-off-by: Vinod Koul >

Re: [PATCH v3 1/5] w1_therm: fix reset_select_slave. Creating w1_therm.h

2020-04-29 Thread Akira shimahara
Le mercredi 29 avril 2020 à 15:43 +0200, Greg KH a écrit : > On Wed, Apr 29, 2020 at 03:30:48PM +0200, Akira Shimahara wrote: > > Patch for enhancement of w1_therm module. > > - Creating a w1_therm.h file to clean up the code and documenting > > it. > > - fix reset_select_slave function:

Re: [PATCH v3 3/5] w1_therm: Optimizing read timing by checking device resolution. Updating documentation

2020-04-29 Thread Greg KH
On Wed, Apr 29, 2020 at 03:33:20PM +0200, Akira Shimahara wrote: > Patch for enhacement of w1_therm module. Added features : > - Optimized conversion time regarding to device resolution > - Dedicated sysfs entry for, resolution set/get, eeprom save/restore, > and additionnal temperature

Re: [PATCH v3 2/5] w1_therm: adding sysfs entry to check device power

2020-04-29 Thread Greg KH
On Wed, Apr 29, 2020 at 03:32:04PM +0200, Akira Shimahara wrote: > Patch for enhacement of w1_therm module. > Adding ext_power sysfs entry (RO). Return the power status of the device: > - 0: device parasite powered > - 1: device externally powered > - xx: xx is kernel error > > Creating

Re: [PATCH v12 6/8] iommu/vt-d: Add svm/sva invalidate function

2020-04-29 Thread Auger Eric
Hi Jacob, On 4/21/20 8:52 PM, Jacob Pan wrote: > When Shared Virtual Address (SVA) is enabled for a guest OS via > vIOMMU, we need to provide invalidation support at IOMMU API and driver > level. This patch adds Intel VT-d specific function to implement > iommu passdown invalidate API for shared

Re: [PATCH v3 1/3] driver core: Revert default driver_deferred_probe_timeout value to 0

2020-04-29 Thread Marek Szyprowski
Hi John, On 22.04.2020 22:32, John Stultz wrote: > This patch addresses a regression in 5.7-rc1+ > > In commit c8c43cee29f6 ("driver core: Fix > driver_deferred_probe_check_state() logic"), we both cleaned up > the logic and also set the default driver_deferred_probe_timeout > value to 30 seconds

Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections

2020-04-29 Thread Suzuki K Poulose
On 04/29/2020 12:47 PM, Sai Prakash Ranjan wrote: On 2020-04-28 17:53, Sai Prakash Ranjan wrote: On 2020-04-27 19:23, Suzuki K Poulose wrote: On 04/27/2020 10:45 AM, Mike Leach wrote: [...] This is not sufficient. You must prevent another session trying to enable the other port of the

Re: [PATCH v2] drm/panel: simple: Support reset GPIOs

2020-04-29 Thread Wadim Egorov
Hi Sam, you've asked in another thread [1] if there is any known simple panel that requires a reset. We have a Densitron DMT070WSNLCMI-1E Panel (compatible to avic,tm070ddh03) with some reset timing requirements, [2] Page 20. So it would be nice to see this patch accepted. [1]

Re: [PATCH v2] pwm: sun4i: direct clock output support for Allwinner A64

2020-04-29 Thread Uwe Kleine-König
On Tue, Apr 28, 2020 at 06:41:50PM +0200, Peter Vasil wrote: > Allwinner A64 is capable of a direct clock output on PWM (see A64 > User Manual chapter 3.10). Add support for this in the sun4i PWM > driver. > > Signed-off-by: Peter Vasil LGTM Acked-by: Uwe Kleine-König Best regards Uwe --

Re: [PATCH v3 1/5] w1_therm: fix reset_select_slave. Creating w1_therm.h

2020-04-29 Thread Greg KH
On Wed, Apr 29, 2020 at 03:30:48PM +0200, Akira Shimahara wrote: > Patch for enhancement of w1_therm module. > - Creating a w1_therm.h file to clean up the code and documenting it. > - fix reset_select_slave function: w1_reset_select_slave() from w1_io.c > could not be used here because a

Re: [PATCH] [v2] amdgpu: fix gcc-4.8 build warnings

2020-04-29 Thread Kazlauskas, Nicholas
On 2020-04-29 5:20 a.m., Arnd Bergmann wrote: Older compilers warn about initializers with incorrect curly braces: drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: error: missing braces around initializer

[PATCH v3 14/25] iomap: Inline data shouldn't see large pages

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Assert that we're not seeing large pages in functions that read/write inline data, rather than zeroing out the tail. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- fs/iomap/buffered-io.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v3 03/25] mm: Introduce thp_order

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Like compound_order() except 0 when THP is disabled. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/huge_mm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index e944f9757349..1f6245091917

[PATCH v3 12/25] iomap: Support large pages in read paths

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Use thp_size() instead of PAGE_SIZE, offset_in_thp() instead of offset_in_page() and bio_for_each_thp_segment_all(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-)

[PATCH v3 13/25] iomap: Support large pages in write paths

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Use thp_size() instead of PAGE_SIZE and offset_in_thp() instead of offset_in_page(). Also simplify the logic in iomap_do_writepage() for determining end of file. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 43

[PATCH v3 11/25] iomap: Support large pages in iomap_adjust_read_range

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Pass the struct page instead of the iomap_page so we can determine the size of the page. Use offset_in_thp() instead of offset_in_page() and use thp_size() instead of PAGE_SIZE. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 15

[PATCH v3 02/34] iommu: Add def_domain_type() callback in iommu_ops

2020-04-29 Thread Joerg Roedel
From: Sai Praneeth Prakhya Some devices are reqired to use a specific type (identity or dma) of default domain when they are used with a vendor iommu. When the system level default domain type is different from it, the vendor iommu driver has to request a new default domain with

[PATCH v3 00/34] iommu: Move iommu_group setup to IOMMU core code

2020-04-29 Thread Joerg Roedel
Hi, here is the third version of this patch-set. Older versions can be found here: v1: https://lore.kernel.org/lkml/20200407183742.4344-1-j...@8bytes.org/ (Has some more introductory text) v2: https://lore.kernel.org/lkml/20200414131542.25608-1-j...@8bytes.org/

[PATCH v3 18/25] mm: Allow large pages to be added to the page cache

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" We return -EEXIST if there are any non-shadow entries in the page cache in the range covered by the large page. If there are multiple shadow entries in the range, we set *shadowp to one of them (currently the one at the highest index). If that turns out to be

[PATCH v3 15/25] xfs: Support large pages

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" There is one place which assumes the size of a page; fix it. Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_aops.c | 2 +- fs/xfs/xfs_super.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c

[PATCH v3 05/25] fs: Add a filesystem flag for large pages

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" The page cache needs to know whether the filesystem supports pages > PAGE_SIZE. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index

[PATCH v3 16/25] mm: Make prep_transhuge_page return its argument

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" By permitting NULL or order-0 pages as an argument, and returning the argument, callers can write: return prep_transhuge_page(alloc_pages(...)); instead of assigning the result to a temporary variable and conditionally passing that to

[PATCH v3 20/25] mm: Remove page fault assumption of compound page size

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" A compound page in the page cache will not necessarily be of PMD size, so check explicitly. Signed-off-by: Matthew Wilcox (Oracle) --- mm/memory.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index

[PATCH v3 06/25] fs: Introduce i_blocks_per_page

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This helper is useful for both large pages in the page cache and for supporting block size larger than page size. Convert some example users (we have a few different ways of writing this idiom). Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph

[PATCH v3 10/25] iomap: Support arbitrarily many blocks per page

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Size the uptodate array dynamically. Now that this array is protected by a spinlock, we can use bitmap functions to set the bits in this array instead of a loop around set_bit(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 27

[PATCH v3 09/25] bio: Add bio_for_each_thp_segment_all

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Iterate once for each THP page instead of once for each base page. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/bio.h | 13 + include/linux/bvec.h | 23 +++ 2 files changed, 36 insertions(+) diff --git

[PATCH v3 02/25] mm: Introduce thp_size

2020-04-29 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This is like page_size(), but compiles down to just PAGE_SIZE if THP are disabled. Convert the users of hpage_nr_pages() which would prefer this interface. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/nvdimm/btt.c| 4 +--- drivers/nvdimm/pmem.c | 6

[PATCH v3 07/34] iommu: Add probe_device() and release_device() call-backs

2020-04-29 Thread Joerg Roedel
From: Joerg Roedel Add call-backs to 'struct iommu_ops' as an alternative to the add_device() and remove_device() call-backs, which will be removed when all drivers are converted. The new call-backs will not setup IOMMU groups and domains anymore, so also add a probe_finalize() call-back where

[PATCH v3 06/34] iommu/amd: Return -ENODEV in add_device when device is not handled by IOMMU

2020-04-29 Thread Joerg Roedel
From: Joerg Roedel When check_device() fails on the device, it is not handled by the IOMMU and amd_iommu_add_device() needs to return -ENODEV. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v2 0/4] Add driver for wsen-itds accelerometer sensor

2020-04-29 Thread Saravanan Sekar
changes in v2: - added ABI document - fixed review comments in v1 - removed vendor entry changes (merged in v1) The patch series add support for wurth elektronic wsen-itds 3-axis accelerometer. Driver supports the acceleration, temperature data reading and supports configuring of output data

<    5   6   7   8   9   10   11   12   13   14   >