[BUG] NULL ptr deref in css_free_rwork_fn

2020-09-15 Thread Stefan Wahren
Hi, i noticed a regular crash (NULL pointer dereference) on my ARM i.MX28 board using the current mainline kernel (last tested version Linux 5.9-rc5). I also tested Linux 5.8, but i wasn't able to reproduce with this version, so i assume this is a regression. The crash happens mostly short after b

Re: [PATCH 3/4] sched/fair: minimize concurrent LBs between domain level

2020-09-15 Thread Vincent Guittot
On Tue, 15 Sep 2020 at 21:04, Valentin Schneider wrote: > > > On 14/09/20 11:03, Vincent Guittot wrote: > > sched domains tend to trigger simultaneously the load balance loop but > > the larger domains often need more time to collect statistics. This > > slowness makes the larger domain trying to

[PATCH] USB: PHY: JZ4770: fix ptr_ret.cocci warnings

2020-09-15 Thread kernel test robot
From: kernel test robot drivers/phy/ingenic/phy-ingenic-usb.c:348:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: 周琰杰 (Zhou Yanjie) Signed-off-by: kernel test robot --- url: htt

Re: [PATCH 2/4] sched/fair: reduce minimal imbalance threshold

2020-09-15 Thread Vincent Guittot
On Tue, 15 Sep 2020 at 21:04, Valentin Schneider wrote: > > > On 14/09/20 11:03, Vincent Guittot wrote: > > The 25% default imbalance threshold for DIE and NUMA domain is large > > enough to generate significant unfairness between threads. A typical > > example is the case of 11 threads running on

Re: [PATCH v2] hwmon: intel-m10-bmc-hwmon: add hwmon support for Intel MAX 10 BMC

2020-09-15 Thread Xu Yilun
On Tue, Sep 15, 2020 at 10:22:32PM -0700, Guenter Roeck wrote: > On 9/15/20 8:14 PM, Xu Yilun wrote: > > This patch adds hwmon functionality for Intel MAX 10 BMC chip. This BMC > > chip connects to a set of sensor chips to monitor current, voltage, > > thermal and power of different components on b

Re: [[PATCH]] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged

2020-09-15 Thread Michal Hocko
On Tue 15-09-20 08:48:08, Vijay Balakrishna wrote: > > > On 9/15/2020 1:18 AM, Michal Hocko wrote: > > On Mon 14-09-20 09:57:02, Vijay Balakrishna wrote: > > > > > > > > > On 9/14/2020 7:33 AM, Michal Hocko wrote: > > > > On Thu 10-09-20 13:47:39, Vijay Balakrishna wrote: > > > > > When memory

Re: general protection fault in unlink_file_vma

2020-09-15 Thread linmiaohe
> >Hello, > >syzbot has tested the proposed patch but the reproducer is still triggering an >issue: >kernel panic: Fatal exception > >RBP: 0001 R08: R09: >R10: 7ffd30630720 R11: R12: 0118d940 >R13: 0118d940 R14: fff

[PATCH] staging: rtl8188eu: clean up blank line style issues

2020-09-15 Thread Michael Straube
Add missing and remove unnecessary blank lines to clear the following checkpatch issues. WARNING: Missing a blank line after declarations CHECK: Please use a blank line after function/struct/union/enum declarations CHECK: Blank lines aren't necessary before a close brace '}' CHECK: Please don't us

[PATCH V2 2/4] cpufreq: stats: Remove locking

2020-09-15 Thread Viresh Kumar
The locking isn't required anymore as stats can get updated only from one place at a time. Remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 3

[PATCH V2 3/4] cpufreq: stats: Enable stats for fast-switch as well

2020-09-15 Thread Viresh Kumar
Now that all the blockers are gone for enabling stats in fast-switching case, enable it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 6 +- drivers/cpufreq/cpufreq_stats.c | 6 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.

Re: [RFC PATCH V3 09/21] mmc: sdhci: add UHS-II related definitions in headers

2020-09-15 Thread Adrian Hunter
On 15/09/20 9:47 am, AKASHI Takahiro wrote: > Adrian, > > On Fri, Aug 21, 2020 at 05:04:16PM +0300, Adrian Hunter wrote: >> On 10/07/20 2:10 pm, Ben Chuang wrote: >>> From: AKASHI Takahiro >>> >>> Add UHS-II related definitions in shdci.h and sdhci-uhs2.h. >>> >>> Signed-off-by: Ben Chuang >>> S

[PATCH] Input: elants_i2c - fix typo for an attribute to show calibration count

2020-09-15 Thread Johnny Chuang
Fixed typo for command from 0xE0 to 0xD0. commit cf520c643012 ("Input: elants_i2c - provide an attribute to show calibration count") There is an non-touch case by non-calibration after update firmware. Elan could know calibrate or not by calibration count. The value of '0x' means we didn't ca

[PATCH V2 1/4] cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()

2020-09-15 Thread Viresh Kumar
In order to prepare for lock-less stats update, add support to defer any updates to it until cpufreq_stats_record_transition() is called. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 75 - 1 file changed, 56 insertions(+), 19 deletions(-) dif

[PATCH V2 4/4] cpufreq: Move traces and update to policy->cur to cpufreq core

2020-09-15 Thread Viresh Kumar
The cpufreq core handles the updates to policy->cur and recording of cpufreq trace events for all the governors except schedutil's fast switch case. Move that as well to cpufreq core for consistency and readability. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c| 14 +

[PATCH V2 0/4] cpufreq: Record stats with fast-switching

2020-09-15 Thread Viresh Kumar
Hi, We disabled recording cpufreq stats when fast switching was introduced to the cpufreq core as the cpufreq stats required to take a spinlock and that can't be allowed (for performance reasons) on scheduler's hot path. Here is an attempt to get rid of the lock and bring back the support. V1-V2

[PATCH] dmaengine: qcom: Add ADM driver

2020-09-15 Thread Jonathan McDowell
From: Andy Gross (I'm not sure how best to attribute this. It's originally from Andy Gross, the version I picked up was a later version from Thomas Pedersen, and I can't find clear indication of why the latest version wasn't applied. The device tree details were added back in September 2014. The

Re: [RFC PATCH V3 15/21] mmc: sdhci: UHS-II support, modify set_power() to handle vdd2

2020-09-15 Thread Adrian Hunter
On 15/09/20 9:24 am, AKASHI Takahiro wrote: > Adrain, > > On Mon, Sep 14, 2020 at 09:36:02AM +0300, Adrian Hunter wrote: >> On 14/09/20 8:45 am, AKASHI Takahiro wrote: >>> Adrian, >>> >>> On Fri, Aug 21, 2020 at 05:11:18PM +0300, Adrian Hunter wrote: On 10/07/20 2:11 pm, Ben Chuang wrote: >>>

Providing machine info for reported bugs

2020-09-15 Thread Dmitry Vyukov
Hello, We've recently added a feature to collect some machine info on syzbot and provide it with crashes, in the case it is useful for debugging/understanding what happened. Here are 2 example crashes, check out "VM info" column for crashes: https://syzkaller.appspot.com/bug?id=7f42f0f8b846287851

Re: [PATCH] media: vidtv: fix build on 32bit architectures

2020-09-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Sep 2020 15:05:09 -0300 "Daniel W. S. Almeida" escreveu: > From: Daniel W. S. Almeida > > Fix the following error for builds on 32bit architectures: > > ERROR: modpost: "__udivdi3" > [drivers/media/test-drivers/vidtv/dvb-vidtv-bridge.ko] undefined! > > Which is due to 64bit divisio

RE: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-15 Thread Ran Wang
Hi Ard, On Wednesday, September 16, 2020 2:11 PM, Ard Biesheuvel wrote: > Subject: Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support > > On 9/16/20 3:32 AM, Ran Wang wrote: > > Hi Ard, > > > > On Tuesday, September 15, 2020 7:10 PM, Ard Biesheuvel wrote: > >> Subject: Re: [PATCH v1] soc: fsl: rcpm:

Re: [Linux-kernel-mentees][PATCH] rtl8150: set memory to all 0xFFs on failed register reads

2020-09-15 Thread Petko Manolov
On 20-09-16 08:22:27, Greg KH wrote: > On Wed, Sep 16, 2020 at 10:35:40AM +0530, Anant Thazhemadam wrote: > > get_registers() copies whatever memory is written by the > > usb_control_msg() call even if the underlying urb call ends up failing. > > > > If get_registers() fails, or ends up reading 0

Re: [linux-next PATCH] rapidio: Fix error handling path

2020-09-15 Thread John Hubbard
On 9/15/20 8:42 PM, Souptick Joarder wrote: There is an error when pin_user_pages_fast() returns -ERRNO and inside error handling path driver end up calling unpin_user_pages() with -ERRNO which is not correct. > This patch will fix the problem. How about: rio_dma_transfer() attempts to clamp t

Re: [PATCH 03/13] dt-bindings: arm: fsl: Fix matching Purism Librem5 phones

2020-09-15 Thread Krzysztof Kozlowski
On Mon, Sep 14, 2020 at 04:33:43PM -0600, Rob Herring wrote: > On Fri, 04 Sep 2020 16:53:02 +0200, Krzysztof Kozlowski wrote: > > All Purism Librem5 phones have three compatibles so they need their own > > entry to fix dbts_check warnings like: > > > > arch/arm64/boot/dts/freescale/imx8mq-librem

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-15 Thread Oded Gabbay
On Wed, Sep 16, 2020 at 9:25 AM Greg Kroah-Hartman wrote: > > On Tue, Sep 15, 2020 at 11:49:12PM +0300, Oded Gabbay wrote: > > On Tue, Sep 15, 2020 at 11:42 PM David Miller wrote: > > > > > > From: Oded Gabbay > > > Date: Tue, 15 Sep 2020 20:10:08 +0300 > > > > > > > This is the second version o

[PATCH 5.4 000/130] 5.4.66-rc3 review

2020-09-15 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.66 release. There are 130 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 know. Responses should be made by Fri, 18 Sep 2020 06:35:01 +. Anything rec

Re: [PATCH] soc: qcom: apr: Fixup the error displayed on lookup failure

2020-09-15 Thread Greg KH
On Tue, Sep 15, 2020 at 09:12:32PM +0530, Sibi Sankar wrote: > APR client incorrectly prints out "ret" variable on pdr_add_lookup failure, > it should be printing the error value returned by the lookup instead. > > Fixes: 8347356626028 ("soc: qcom: apr: Add avs/audio tracking functionality") > Sig

Re: [PATCH v2 1/2] scsi: ufs: Abort tasks before clear them from doorbell

2020-09-15 Thread Can Guo
On 2020-09-16 04:21, Martin K. Petersen wrote: Can, Do you know when can this change be picked up in scsi-queue-5.10? If I push my fixes to ufshcd_abort() on scsi-queue-5.10, they will run into conflicts with this one again, right? How should I move forward now? You should be able to use 5.10

[PATCH v2] crypto: stm32/crc32 - Avoid lock if hardware is already used

2020-09-15 Thread Nicolas Toromanoff
If STM32 CRC device is already in use, calculate CRC by software. This will release CPU constraint for a concurrent access to the hardware, and avoid masking irqs during the whole block processing. Fixes: 7795c0baf5ac ("crypto: stm32/crc32 - protect from concurrent accesses") Signed-off-by: Nico

Re: [PATCH] trace: Fix race in trace_open and buffer resize call

2020-09-15 Thread Gaurav Kohli
On 9/15/2020 11:43 PM, Steven Rostedt wrote: Actually available reader lock is not helping here(&cpu_buffer->reader_lock), So i took ring buffer mutex lock to resolve this(this came on 4.19/5.4), in latest tip it is trace buffer lock. Due to this i have exported api. I'm saying, why don't y

Re: [PATCH v3 1/3] mm: replace memmap_context by meminit_context

2020-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2020 at 03:26:24PM +0200, Laurent Dufour wrote: > The memmap_context enum is used to detect whether a memory operation is due > to a hot-add operation or happening at boot time. > > Make it general to the hotplug operation and rename it as meminit_context. > > There is no function

Re: 回复: RCU: Question on force_qs_rnp

2020-09-15 Thread Zhang,Qiang
On 9/16/20 2:06 AM, Paul E. McKenney wrote: On Tue, Sep 15, 2020 at 01:16:39PM +0800, Zhang,Qiang wrote: On 9/15/20 11:41 AM, Paul E. McKenney wrote: On Tue, Sep 15, 2020 at 03:18:23AM +, Zhang, Qiang wrote: 发件人: Paul E. McKenney 发送时间: 2020年

[PATCH 1/4] perf evsel: Add evsel__clone() function

2020-09-15 Thread Namhyung Kim
The evsel__clone() is to create an exactly same evsel from same attributes. Note that metric events will be handled by later patch. It will be used by perf stat to generate separate events for each cgroup. Signed-off-by: Namhyung Kim --- tools/perf/util/evsel.c | 85 +++

[PATCH 4/4] perf test: Add expand cgroup event test

2020-09-15 Thread Namhyung Kim
It'll expand given events for cgroups A, B and C. $ ./perf test -v expansion 69: Event expansion for cgroups : --- start --- test child forked, pid 983140 metric expr 1 / IPC for CPI metric expr instructions / cycles for IPC found event instructions found event

[PATCH 3/4] perf tools: Copy metric events properly when expand cgroups

2020-09-15 Thread Namhyung Kim
The metricgroup__copy_metric_events() is to handle metrics events when expanding event for cgroups. As the metric events keep pointers to evsel, it should be refreshed when events are cloned during the operation. The perf_stat__collect_metric_expr() is also called in case an event has a metric di

[PATCHSET v2 0/4] perf stat: Expand events for each cgroup

2020-09-15 Thread Namhyung Kim
Hello, When we profile cgroup events with perf stat, it's very annoying to specify events and cgroups on the command line as it requires the mapping between events and cgroups. (Note that perf record can use cgroup sampling but it's not usable for perf stat). I guess most cases we just want to u

[PATCH 2/4] perf stat: Add --for-each-cgroup option

2020-09-15 Thread Namhyung Kim
The --for-each-cgroup option is a syntax sugar to monitor large number of cgroups easily. Current command line requires to list all the events and cgroups even if users want to monitor same events for each cgroup. This patch addresses that usage by copying given events for each cgroup on user's b

Re: [PATCH 6/9] f2fs: zstd: Switch to the zstd-1.4.6 API

2020-09-15 Thread Chao Yu
Hi Nick, remove not related mailing list. On 2020/9/16 11:43, Nick Terrell wrote: From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is more efficient because it uses the single-pass API instead of the streaming API. The streaming API is not necessary

[PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset

2020-09-15 Thread Christoph Hellwig
From: Jim Quinlan The new field 'dma_range_map' in struct device is used to facilitate the use of single or multiple offsets between mapping regions of cpu addrs and dma addrs. It subsumes the role of "dev->dma_pfn_offset" which was only capable of holding a single uniform offset and had no regi

Re: [PATCH 5.8 000/177] 5.8.10-rc1 review

2020-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2020 at 08:54:24PM -0600, Shuah Khan wrote: > On 9/15/20 3:06 PM, Shuah Khan wrote: > > On 9/15/20 8:11 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 5.8.10 release. > > > There are 177 patches in this series, all will be posted as a respon

Re: [PATCH 5.4 000/130] 5.4.66-rc2 review

2020-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2020 at 08:58:54PM -0500, Dan Rue wrote: > On Tue, Sep 15, 2020 at 08:31:17PM -0400, Sasha Levin wrote: > > On Tue, Sep 15, 2020 at 03:17:32PM -0500, Dan Rue wrote: > > > On Tue, Sep 15, 2020 at 06:45:55PM +0200, Greg Kroah-Hartman wrote: > > > > This is the start of the stable revi

[PATCH 5/6] usb: don't inherity DMA properties for USB devices

2020-09-15 Thread Christoph Hellwig
As the comment in usb_alloc_dev correctly states, drivers can't use the DMA API on usb device, and at least calling dma_set_mask on them is highly dangerous. Unlike what the comment states upper level drivers also can't really use the presence of a dma mask to check for DMA support, as the dma_mas

Re: [PATCH] dt-bindings: power: Correct interrupt flags in examples

2020-09-15 Thread Krzysztof Kozlowski
On Tue, Sep 15, 2020 at 10:54:11AM -0600, Rob Herring wrote: > On Tue, 08 Sep 2020 16:59:22 +0200, Krzysztof Kozlowski wrote: > > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > > These are simple defines so they could be used in DTS but they will not > > have the same mean

[PATCH 4/6] ARM/keystone: move the DMA offset handling under ifdef CONFIG_ARM_LPAE

2020-09-15 Thread Christoph Hellwig
The DMA offset notifier can only be used if PHYS_OFFSET is at least KEYSTONE_HIGH_PHYS_START, which can't be represented by a 32-bit phys_addr_t. Currently the code compiles fine despite that, a pending change to the DMA offset handling would create a compiler warning for this case. Add an ifdef

Re: [PATCH v2 2/4] Input: omap4-keypad - Fix handling of platform_get_irq() error

2020-09-15 Thread Dmitry Torokhov
On Tue, Sep 15, 2020 at 11:06 PM Krzysztof Kozlowski wrote: > > On Wed, 16 Sep 2020 at 02:54, Dmitry Torokhov > wrote: > > > > On Fri, Aug 28, 2020 at 04:57:42PM +0200, Krzysztof Kozlowski wrote: > > > platform_get_irq() returns -ERRNO on error. In such case comparison > > > to 0 would pass the

[PATCH] Documentation: admin-guide: fix kernel-parameters.txt sort order

2020-09-15 Thread Randy Dunlap
From: Randy Dunlap Sort entries in kernel-parameters.txt roughly into dictionary order. I know this isn't perfect, but it's a huge improvement. Signed-off-by: Randy Dunlap Cc: Andrew Morton Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- When is the best time to merge a patch like this?

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-15 Thread Christoph Hellwig
On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > It was discovered while implementing userspace emulation of fchmodat > AT_SYMLINK_NOFOLLOW (using O_PATH and procfs magic symlinks; otherwise > it's not possible to target symlinks with chmod operations) that some > filesystems erroneou

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2020 at 11:49:12PM +0300, Oded Gabbay wrote: > On Tue, Sep 15, 2020 at 11:42 PM David Miller wrote: > > > > From: Oded Gabbay > > Date: Tue, 15 Sep 2020 20:10:08 +0300 > > > > > This is the second version of the patch-set to upstream the GAUDI NIC code > > > into the habanalabs dr

Re: [RFC PATCH V3 13/21] mmc: sdhci: UHS-II support, skip signal_voltage_switch()

2020-09-15 Thread AKASHI Takahiro
On Wed, Sep 16, 2020 at 09:01:20AM +0300, Adrian Hunter wrote: > On 15/09/20 9:03 am, AKASHI Takahiro wrote: > > Ben, Adrian, > > > > On Mon, Sep 14, 2020 at 11:08:14AM +0300, Adrian Hunter wrote: > >> On 14/09/20 9:40 am, AKASHI Takahiro wrote: > >>> Adrian, > >>> > >>> On Fri, Aug 21, 2020 at 05

[PATCH 3/6] ARM/dma-mapping: move various helpers from dma-mapping.h to dma-direct.h

2020-09-15 Thread Christoph Hellwig
Move the helpers to translate to and from direct mapping DMA addresses to dma-direct.h. This not only is the most logical place, but the new placement also avoids dependency loops with pending commits. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- arch/arm/common/dmabounce.c

[PATCH -next] ARM: zx: use devm_platform_ioremap_resource

2020-09-15 Thread Qinglang Miao
Use the helper function that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Note that error handling on the result of a call to platform_get_resource() is unneeded either when the value is passed to devm_ioremap_resource(), so remove it. Signed-off-by: Qinglang Mi

[PATCH -next] crypto: qat - remove unnecessary mutex_init()

2020-09-15 Thread Qinglang Miao
The mutex adf_ctl_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/q

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-15 Thread Christoph Hellwig
On Wed, Sep 16, 2020 at 08:18:15AM +0200, Greg KH wrote: > On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > > It was discovered while implementing userspace emulation of fchmodat > > AT_SYMLINK_NOFOLLOW (using O_PATH and procfs magic symlinks; otherwise > > it's not possible to target

[PATCH -next] macintosh: smu_sensors: use for_each_child_of_node() macro

2020-09-15 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/macintosh/windfarm_smu_sensors.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/macintosh/windfarm_smu_sensors.c b/drivers/macintosh/windfarm_smu_sensors.c index

[PATCH -next] s390/ap: remove unnecessary spin_lock_init()

2020-09-15 Thread Qinglang Miao
The spinlock ap_poll_timer_lock is initialized statically. It is unnecessary to initialize by spin_lock_init(). Signed-off-by: Qinglang Miao --- drivers/s390/crypto/ap_bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 24a19

Re: [Linux-kernel-mentees][PATCH] rtl8150: set memory to all 0xFFs on failed register reads

2020-09-15 Thread Greg KH
On Wed, Sep 16, 2020 at 10:35:40AM +0530, Anant Thazhemadam wrote: > get_registers() copies whatever memory is written by the > usb_control_msg() call even if the underlying urb call ends up failing. > > If get_registers() fails, or ends up reading 0 bytes, meaningless and > junk register values

[PATCH -next] thermal: core: remove unnecessary mutex_init()

2020-09-15 Thread Qinglang Miao
The mutex poweroff_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/thermal/thermal_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index a6616e530..

RE: [PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-15 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Mike Kravetz [mailto:mike.krav...@oracle.com] > Sent: Wednesday, September 16, 2020 8:57 AM > To: linux...@kvack.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-m...@vger.kernel.org > Cc: Roman Gushchin ; Song Bao Hua (Barry S

[PATCH -next] powerpc/powernv: fix wrong warning message in opalcore_config_init()

2020-09-15 Thread Qinglang Miao
The logic of the warn output is incorrect. The two args should be exchanged. Signed-off-by: Qinglang Miao --- arch/powerpc/platforms/powernv/opal-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal-core.c b/arch/powerpc/platforms/powern

[PATCH 2/6] ARM/dma-mapping: remove dma_to_virt

2020-09-15 Thread Christoph Hellwig
dma_to_virt is entirely unused, remove it. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/dma-mapping.h| 18 +- arch/arm/mach-omap1/include/mach/memory.h | 4 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.

[PATCH -next] drivers/macintosh/smu.c: use for_each_child_of_node() macro

2020-09-15 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/macintosh/smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index 96684581a..45875e8c6 100644 --- a/drivers/macintosh/s

[PATCH -next] scsi: qedf: use vzalloc() instead of vmalloc() and memset(0)

2020-09-15 Thread Qinglang Miao
Use vzalloc() instead of vmalloc() and memset(0) to clean the code. Signed-off-by: Qinglang Miao --- drivers/scsi/qedf/qedf_dbg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qedf/qedf_dbg.c b/drivers/scsi/qedf/qedf_dbg.c index e0387e495..0d2aed828 100644 --

[PATCH -next] scsi: bnx2i: remove unnecessary mutex_init()

2020-09-15 Thread Qinglang Miao
The mutex bnx2i_dev_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/scsi/bnx2i/bnx2i_init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 6018c

[PATCH -next] MIPS: OCTEON: use devm_platform_ioremap_resource

2020-09-15 Thread Qinglang Miao
Note that error handling on the result of a call to platform_get_resource() is unneeded when the value is passed to devm_ioremap_resource(), so remove it. Then use the helper function that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Qinglang Miao

[PATCH -next] PCI: rpadlpar: use for_each_child_of_node() and for_each_node_by_name

2020-09-15 Thread Qinglang Miao
Use for_each_child_of_node() and for_each_node_by_name macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/pci/hotplug/rpadlpar_core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpad

[PATCH -next] scsi: bnx2fc: remove unnecessary mutex_init()

2020-09-15 Thread Qinglang Miao
The mutex bnx2fc_dev_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index

[PATCH -next] scsi: dpt_i2o: remove unnecessary spin_lock_init()

2020-09-15 Thread Qinglang Miao
The spinlock adpt_post_wait_lock is initialized statically. It is unnecessary to initialize by spin_lock_init(). Signed-off-by: Qinglang Miao --- drivers/scsi/dpt_i2o.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 4251212ac..79e69d9c9 1

[PATCH -next] irqchip/gic-v3: use for_each_matching_node() macro

2020-09-15 Thread Qinglang Miao
Use for_each_matching_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c | 3 +-- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +-- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +-- 3 files changed, 3 insertions(+), 6

[PATCH -next] scsi: fnic: remove unnecessary spin_lock_init()

2020-09-15 Thread Qinglang Miao
The spinlock fnic_list_lock is initialized statically. It is unnecessary to initialize by spin_lock_init(). Signed-off-by: Qinglang Miao --- drivers/scsi/fnic/fnic_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 825834

[PATCH -next] fbdev: nvidia: use for_each_child_of_node() macro

2020-09-15 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/video/fbdev/nvidia/nv_of.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/nvidia/nv_of.c b/drivers/video/fbdev/nvidia/nv_of.c index 5f3e5179c..d20b87

[PATCH -next] serial: pmac_zilog: use for_each_child_of_node() macro

2020-09-15 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- drivers/tty/serial/pmac_zilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c index 96e7aa479..063484b22 100644 -

[PATCH -next] aoe: remove unnecessary mutex_init()

2020-09-15 Thread Qinglang Miao
The mutex ktio_spawn_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/block/aoe/aoecmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index 313f0b946..d5d4a846

Re: [RFC PATCH v3] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices

2020-09-15 Thread Huacai Chen
Hi, Bjorn, On Tue, Sep 15, 2020 at 4:38 PM Bjorn Helgaas wrote: > > On Tue, Sep 15, 2020 at 09:36:13AM +0800, Huacai Chen wrote: > > Hi, Tiezhu, > > > > On Mon, Sep 14, 2020 at 7:25 PM Tiezhu Yang wrote: > > > > > > On 09/14/2020 05:46 PM, Huacai Chen wrote: > > > > Hi, Tiezhu, > > > > > > > > O

Re: [btrfs] 3b54a0a703: WARNING:at_fs/btrfs/inode.c:#btrfs_finish_ordered_io[btrfs]

2020-09-15 Thread Oliver Sang
sr intel_rapl_common skx_edac > >>>> x86_pkg_temp_thermal intel_po > >>>> werclamp coretemp kvm_intel ipmi_ssif kvm irqbypass ast drm_vram_helper > >>>> crct10dif_pclmul drm_ttm_helper crc32_pclmul ttm crc32c_intel > >>>> gh

[PATCH 1/6] ARM/dma-mapping: remove a __arch_page_to_dma #error

2020-09-15 Thread Christoph Hellwig
The __arch_page_to_dma hook is long gone. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/dma-mapping.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index bdd80ddbca3451..70d95677656044 100644 --- a/arch

Re: [PATCH] dma-direct: Fix potential NULL pointer dereference

2020-09-15 Thread Christoph Hellwig
On Tue, Sep 15, 2020 at 04:46:17PM -0400, Thomas Tai wrote: > I tried out the suggested changes, and it successfully warned the null > pointer without panic. I notice that there are some places outside the > dma-direct, which calls dma_capable(). > > https://elixir.bootlin.com/linux/v5.9-rc5/sour

Re: [PATCH] Doc: admin-guide: Add entry for kvm_cma_resv_ratio kernel param

2020-09-15 Thread Randy Dunlap
On 9/15/20 11:11 PM, sathn...@linux.vnet.ibm.com wrote: > From: Satheesh Rajendran > > Add document entry for kvm_cma_resv_ratio kernel param which > is used to alter the KVM contiguous memory allocation percentage > for hash pagetable allocation used by hash mode PowerPC KVM guests. > > Cc: lin

Re: [PATCH v2 2/2] vfs: add fchmodat2 syscall

2020-09-15 Thread Greg KH
On Tue, Sep 15, 2020 at 08:23:38PM -0400, Rich Felker wrote: > POSIX defines fchmodat as having a 4th argument, flags, that can be > AT_SYMLINK_NOFOLLOW. Support for changing the access mode of symbolic > links is optional (EOPNOTSUPP allowed if not supported), but this flag > is important even on

[PATCH v2] dt-bindings: mfd: Convert rn5t618 to json-schema

2020-09-15 Thread Andreas Kemnade
Convert the RN5T618 binding to DT schema format. Also clearly state which regulators are available. Signed-off-by: Andreas Kemnade --- Changes in v2: - drop irq description Due to its .txt-format history BSD license was not added. .../bindings/mfd/ricoh,rn5t618.yaml | 111

[PATCH v2] ARM: zx: remove redundant dev_err call in zx296702_pd_probe()

2020-09-15 Thread Qinglang Miao
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Qinglang Miao --- arch/arm/mach-zx/zx296702-pm-domain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-zx/zx296702-pm-

Re: [PATCH v2 1/2] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

2020-09-15 Thread Krzysztof Kozlowski
On Tue, Sep 15, 2020 at 01:44:44PM -0600, Rob Herring wrote: > On Thu, 10 Sep 2020 18:19:32 +0200, Krzysztof Kozlowski wrote: > > The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch > > screen. In such case the second interrupt is required. This second > > interrupt can be anyway p

Re: [PATCH v12 00/14] mtd: spi-nor: add xSPI Octal DTR support

2020-09-15 Thread Vignesh Raghavendra
On 9/15/20 1:17 PM, Pratyush Yadav wrote: > On 15/09/20 12:16PM, Vignesh Raghavendra wrote: >> >> >> On 9/3/20 10:42 PM, Pratyush Yadav wrote: >>> Hi, >>> >>> This series adds support for Octal DTR flashes in the SPI NOR framework, >>> and then adds hooks for the Cypress Semper and Micron Xcella

support range based offsets in dma-direct v3

2020-09-15 Thread Christoph Hellwig
Hi all, this series adds range-based offsets to the dma-direct implementation. The guts of the change are a patch from Jim with some modifications from me, but to do it nicely we need to ARM patches to prepare for it as well. Changes since v2: - fix a mismerge - return (phys_addr_t)-1 from tra

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-15 Thread Greg KH
On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > It was discovered while implementing userspace emulation of fchmodat > AT_SYMLINK_NOFOLLOW (using O_PATH and procfs magic symlinks; otherwise > it's not possible to target symlinks with chmod operations) that some > filesystems erroneou

Re: [Linux-kernel-mentees] [PATCH] fs: fix KMSAN uninit-value bug by initializing nd in do_file_open_root

2020-09-15 Thread Greg KH
On Wed, Sep 16, 2020 at 10:56:56AM +0530, Anant Thazhemadam wrote: > The KMSAN bug report for the bug indicates that there exists; > Local variable nd@do_file_open_root created at: > do_file_open_root+0xa4/0xb40 fs/namei.c:3385 > do_file_open_root+0xa4/0xb40 fs/namei.c:3385 What does this "e

Re: [PATCH v2 02/15] dt-bindings: gpio: convert bindings for Maxim MAX732x family to dtschema

2020-09-15 Thread Krzysztof Kozlowski
On Sat, Sep 12, 2020 at 11:58:22AM +0200, Linus Walleij wrote: > On Thu, Sep 10, 2020 at 7:58 PM Krzysztof Kozlowski wrote: > > > Convert the Maxim MAX732x family of GPIO expanders bindings to device > > tree schema by merging it with existing PCA95xx schema. These are quite > > similar so mergi

[PATCH] fsl: imx-audmix : Replace seq_printf with seq_puts

2020-09-15 Thread Xu Wang
A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang --- sound/soc/fsl/imx-audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

Re: [PATCH] vboxsf: fix comparison of signed char constant with unsigned char array elements

2020-09-15 Thread Hans de Goede
Hi, On 9/15/20 6:03 PM, Colin King wrote: From: Colin Ian King The comparison of signed char constants with unsigned char array elements leads to checks that are always false. Fix this by declaring the VBSF_MOUNT_SIGNATURE_BYTE* macros as octal unsigned int constants rather than as signed char

Re: [PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset

2020-09-15 Thread Christoph Hellwig
On Tue, Sep 15, 2020 at 01:55:01PM -0600, Mathieu Poirier wrote: > That did the trick - the stm32 platform driver's probe() function completes > and > the remote processor is operatinal. > > That being said the value returned by function dma_to_pfn() > is 0x137fff in the original code and 0x

Re: [PATCH -next 1/3] rtlwifi: rtl8723ae: fix comparison pointer to bool warning in rf.c

2020-09-15 Thread Kalle Valo
Zheng Bin wrote: > Fixes coccicheck warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.c:52:5-22: WARNING: > Comparison to bool > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.c:482:6-14: WARNING: > Comparison to bool > > Signed-off-by: Zheng Bin 3 patches applied to wireles

[PATCH] Doc: admin-guide: Add entry for kvm_cma_resv_ratio kernel param

2020-09-15 Thread sathnaga
From: Satheesh Rajendran Add document entry for kvm_cma_resv_ratio kernel param which is used to alter the KVM contiguous memory allocation percentage for hash pagetable allocation used by hash mode PowerPC KVM guests. Cc: linux-kernel@vger.kernel.org Cc: kvm-...@vger.kernel.org Cc: linuxppc-...

Re: [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c

2020-09-15 Thread Kalle Valo
Zheng Bin wrote: > Fixes coccicheck warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1584:14-18: WARNING: > Comparison to bool > > Signed-off-by: Zheng Bin 3 patches applied to wireless-drivers-next.git, thanks. 6996e70f1fe4 rtlwifi: rtl8188ee: fix comparison pointer to boo

Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-15 Thread Ard Biesheuvel
On 9/16/20 3:32 AM, Ran Wang wrote: Hi Ard, On Tuesday, September 15, 2020 7:10 PM, Ard Biesheuvel wrote: Subject: Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support On 9/15/20 1:06 PM, kuldip dwivedi wrote: Add ACPI support in fsl RCPM driver. This is required to support ACPI S3 state. S3 is th

Re: [PATCH] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-15 Thread Christoph Hellwig
On Mon, Sep 14, 2020 at 04:10:38PM -0700, Dan Williams wrote: > You also need to fix up ext4_break_layouts() and > xfs_break_dax_layouts() to expect ->_refcount is 0 instead of 1. This > also needs some fstests exposure. While we're at it, can we add a wait_fsdax_unref helper macro that hides the

Re: [PATCH net-next RFC v4 10/15] net/mlx5: Add support for devlink reload action fw activate

2020-09-15 Thread Jiri Pirko
Tue, Sep 15, 2020 at 10:28:44PM CEST, mo...@nvidia.com wrote: > >On 9/15/2020 4:37 PM, Jiri Pirko wrote: >> Tue, Sep 15, 2020 at 02:44:02PM CEST, mo...@nvidia.com wrote: >> > On 9/14/2020 4:54 PM, Jiri Pirko wrote: >> > > Mon, Sep 14, 2020 at 08:07:57AM CEST, mo...@mellanox.com wrote: >> > > >> >

Re: [PATCH v2 4/4] Input: sun4i-ps2 - Fix handling of platform_get_irq() error

2020-09-15 Thread Krzysztof Kozlowski
On Wed, 16 Sep 2020 at 03:01, Dmitry Torokhov wrote: > > On Fri, Aug 28, 2020 at 04:57:44PM +0200, Krzysztof Kozlowski wrote: > > platform_get_irq() returns -ERRNO on error. In such case comparison > > to 0 would pass the check. > > > > Fixes: e443631d20f5 ("Input: serio - add support for Alwinne

Re: [PATCH] qtnfmac: Remove unused macro QTNF_DMP_MAX_LEN

2020-09-15 Thread Kalle Valo
YueHaibing wrote: > There is no caller in tree, so remove it. > > Signed-off-by: YueHaibing Patch applied to wireless-drivers-next.git, thanks. edadae4778b0 qtnfmac: Remove unused macro QTNF_DMP_MAX_LEN -- https://patchwork.kernel.org/patch/11765841/ https://wireless.wiki.kernel.org/en/dev

Re: [PATCH] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-15 Thread Christoph Hellwig
> diff --git a/include/linux/mm.h b/include/linux/mm.h > index 517751310dd2..5a82037a4b26 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -1093,34 +1093,6 @@ static inline bool is_zone_device_page(const struct > page *page) > #ifdef CONFIG_DEV_PAGEMAP_OPS > void free_devmap_man

Re: rtw88: rtw8822c: eliminate code duplication, use native swap() function

2020-09-15 Thread Kalle Valo
Ivan Safonov wrote: > swap_u32() duplicate native swap(), so replace swap_u32() with swap(). > > Signed-off-by: Ivan Safonov Patch applied to wireless-drivers-next.git, thanks. d10f6af58ef4 rtw88: rtw8822c: eliminate code duplication, use native swap() function -- https://patchwork.kernel.

Re: [PATCH] brcmsmac: phy_lcn: Eliminate defined but not used 'lcnphy_rx_iqcomp_table_rev0'

2020-09-15 Thread Kalle Valo
Jason Yan wrote: > This addresses the following gcc warning with "make W=1": > > drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:361:25: > warning: ‘lcnphy_rx_iqcomp_table_rev0’ defined but not used > [-Wunused-const-variable=] > 361 | struct lcnphy_rx_iqcomp lcnphy_rx_iqcomp_ta

Re: [PATCH] wlcore: Remove unused macro WL1271_SUSPEND_SLEEP

2020-09-15 Thread Kalle Valo
YueHaibing wrote: > commit 45aa7f071b06 ("wlcore: Use generic runtime pm calls for wowlan elp > configuration") > left behind this, remove it. > > Signed-off-by: YueHaibing Patch applied to wireless-drivers-next.git, thanks. d06e2f8b41b6 wlcore: Remove unused macro WL1271_SUSPEND_SLEEP --

  1   2   3   4   5   6   7   8   9   10   >