Re: [PATCH v3 22/26] coresight: etm4x: Add necessary synchronization for sysreg access

2020-11-10 Thread Mathieu Poirier
On Tue, Nov 10, 2020 at 10:11:23AM +, Suzuki K Poulose wrote: > On 11/9/20 6:32 PM, Mathieu Poirier wrote: > > On Wed, Oct 28, 2020 at 10:09:41PM +, Suzuki K Poulose wrote: > > > As per the specification any update to the TRCPRGCTLR must be synchronized > > > by a context synchronization

Re: [PATCH] rfkill: Fix use-after-free in rfkill_resume()

2020-11-10 Thread Johannes Berg
On Tue, 2020-11-10 at 16:49 +0800, Claire Chang wrote: > If a device is getting removed or reprobed during resume, use-after-free > might happen. For example, h5_btrtl_resume()[drivers/bluetooth/hci_h5.c] > schedules a work queue for device reprobing. During the reprobing, if > rfkill_set_block()

Re: [PATCH] arm64: tegra186: Add missing CPU PMUs

2020-11-10 Thread Thierry Reding
On Tue, Oct 13, 2020 at 10:58:51AM +0100, Marc Zyngier wrote: > Add the description of CPU PMUs for both the Denver and A57 clusters, > which enables the perf subsystem. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/boot/dts/nvidia/tegra186.dtsi | 28 +++- > 1 file

Re: [PATCH AUTOSEL 5.9 53/55] seq_file: add seq_read_iter

2020-11-10 Thread Sasha Levin
On Tue, Nov 10, 2020 at 10:05:28AM +0100, Christoph Hellwig wrote: Should not be needed in stable in any form. I'll drop it, thanks! -- Thanks, Sasha

Re: [PATCH v2 2/2] dt-bindings: misc: convert fsl, qoriq-mc from txt to YAML

2020-11-10 Thread Laurentiu Tudor
On 11/10/2020 7:20 PM, Rob Herring wrote: > On Mon, Nov 9, 2020 at 4:11 PM Rob Herring wrote: >> >> On Mon, 09 Nov 2020 12:46:35 +0200, Laurentiu Tudor wrote: >>> From: Ionut-robert Aron >>> >>> Convert fsl,qoriq-mc to YAML in order to automate the verification >>> process of dts files. In

Re: [PATCH v3] reboot: allow to specify reboot mode via sysfs

2020-11-10 Thread Matteo Croce
On Tue, Nov 10, 2020 at 3:58 PM Petr Mladek wrote: > > On Mon 2020-11-09 17:45:38, Matteo Croce wrote: > > From: Matteo Croce > > > > The kernel cmdline reboot= option offers some sort of control > > on how the reboot is issued. > > Add handles in sysfs to allow setting these reboot options, so

Re: [PATCH] drm/tegra: sor: Ensure regulators are disabled on teardown

2020-11-10 Thread Thierry Reding
On Tue, Oct 13, 2020 at 10:51:58AM +0100, Marc Zyngier wrote: > The Tegra SOR driver uses the devm infrastructure to request regulators, > but enables them without registering them with the infrastructure. > > This results in the following splat if probing fails for any odd resaon > (such as

Re: [PATCH 3/4] venus: venc: Handle reset encoder state

2020-11-10 Thread Fritz Koenig
On Mon, Nov 9, 2020 at 9:48 PM Fritz Koenig wrote: > > On Thu, Nov 5, 2020 at 3:51 AM Stanimir Varbanov > wrote: > > > > > > > > On 11/4/20 12:44 PM, vgaro...@codeaurora.org wrote: > > > Hi Stan, > > > > > > On 2020-11-03 06:46, Fritz Koenig wrote: > > >> On Fri, Oct 23, 2020 at 5:57 AM Stanimir

Re: [PATCH] arm64: tegra: Fix GIC400 missing GICH/GICV register regions

2020-11-10 Thread Thierry Reding
On Mon, Oct 05, 2020 at 02:32:56PM +0100, Marc Zyngier wrote: > GIC400 has full support for virtualization, and yet the tegra186 > DT doesn't expose the GICH/GICV regions (despite exposing the > maintenance interrupt that only makes sense for virtualization). > > Add the missing regions, based on

[PATCH v2] Documentation: include sign off for reverts

2020-11-10 Thread Aditya Srivastava
Currently, we do not have any documentation on commit reverts regarding the requirement of Signed-off-by tag for it. This may be misleading to the users. Evaluating MISSING_SIGN_OFF checkpatch warnings on v4.13..v5.8 showed that 4 out of 11 cases missing a sign-off are revert commits. Add

RE: [PATCH v7 1/2] dt-bindings: dma: Add bindings for intel LGM SOC

2020-11-10 Thread Thomas Langer
> -Original Message- > From: Reddy, MallikarjunaX > Sent: Montag, 2. November 2020 15:42 > To: Thomas Langer ; dmaeng...@vger.kernel.org; > vk...@kernel.org; devicet...@vger.kernel.org; robh...@kernel.org > Cc: linux-kernel@vger.kernel.org; Shevchenko, Andriy > ;

[PATCH v2] regulator: pfuze100: limit pfuze-support-disable-sw to pfuze{100,200}

2020-11-10 Thread Sean Nyekjaer
Limit the fsl,pfuze-support-disable-sw to the pfuze100 and pfuze200 variants. When enabling fsl,pfuze-support-disable-sw and using a pfuze3000 or pfuze3001, the driver would choose pfuze100_sw_disable_regulator_ops instead of the newly introduced and correct pfuze3000_sw_regulator_ops.

Re: [PATCH v3 0/3] Support NVIDIA Tegra-based Ouya game console

2020-11-10 Thread Thierry Reding
On Sun, Oct 04, 2020 at 01:31:11PM +, Peter Geis wrote: > Good Day, > > This series introduces upstream kernel support for the Ouya game console > device. Please review and apply. Thank you in advance. > > Changelog: > v3: - Reorder aliases per Dmitry Osipenko's review. > - Add sdio

[PATCH] mmc: sdhci-of-arasan: Allow configuring zero tap values

2020-11-10 Thread Manish Narani
Allow configuring the Output and Input tap values with zero to avoid failures in some cases (one of them is SD boot mode) where the output and input tap values may be already set to non-zero. Signed-off-by: Sai Krishna Potthuri Signed-off-by: Manish Narani ---

Re: [PATCH v8 17/18] scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug

2020-11-10 Thread John Garry
On 09/11/2020 14:05, John Garry wrote: On 09/11/2020 13:39, Qian Cai wrote: I suppose I could try do this myself also, but an authentic version would be nicer. The closest one I have here is: https://cailca.coding.net/public/linux/mm/git/files/master/arm64.config but it only selects the

Re: [PATCH v3 1/2] security: add fault injection capability

2020-11-10 Thread Andrey Konovalov
On Thu, Oct 29, 2020 at 7:35 PM Aleksandr Nogikh wrote: > > From: Aleksandr Nogikh > > Add a fault injection capability to call_int_hook macro. This will > facilitate testing of fault tolerance of the code that invokes > security hooks as well as the fault tolerance of the LSM > implementations

Re: [PATCH -next v2] clk: pm_clock: provide stubs for pm_clk_runtime_suspend/_resume

2020-11-10 Thread Rafael J. Wysocki
On Mon, Nov 9, 2020 at 4:21 AM Randy Dunlap wrote: > > Add stubs for pm_clk_runtime_suspend() and pm_clk_runtime_resume() > to fix build errors when CONFIG_PM and CONFIG_PM_CLK are not enabled. > > Fixes these build errors: > > ../drivers/clk/qcom/camcc-sc7180.c: In function

Re: [PATCH v12 4/4] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2020-11-10 Thread William Breathitt Gray
On Tue, Nov 10, 2020 at 10:52:42PM +0530, Syed Nayyar Waris wrote: > On Tue, Nov 10, 2020 at 6:05 PM William Breathitt Gray > wrote: > > > > On Tue, Nov 10, 2020 at 11:02:43AM +0100, Michal Simek wrote: > > > > > > > > > On 09. 11. 20 18:31, William Breathitt Gray wrote: > > > > On Mon, Nov 09,

Re: [PATCH 1/2] dt-bindings: Fix entry name for I/O High Voltage property

2020-11-10 Thread Thierry Reding
On Mon, Oct 26, 2020 at 12:09:01PM +0530, Vidya Sagar wrote: > Correct the name of the I/O High Voltage Property from > 'nvidia,io-high-voltage' to 'nvidia,io-hv'. > > Fixes: 2585a584f844 ("pinctrl: Add Tegra194 pinctrl DT bindings") > Signed-off-by: Vidya Sagar > --- >

RE: How to enable auto-suspend by default

2020-11-10 Thread Limonciello, Mario
> > I guess what Bastien is getting at is for newer devices supported by class > > drivers rather than having to store an allowlist in udev rules, can we set > > the allowlist in the kernel instead. Then distributions that either don't > > use systemd or don't regularly update udev rules from

Re: [PATCH net-next] net: Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO

2020-11-10 Thread Dmytro Shytyi
Variable SLAAC: SLAAC with prefixes of arbitrary length in PIO (randomly generated hostID or stable privacy + privacy extensions). The main problem is that SLAAC RA or PD allocates a /64 by the Wireless carrier 4G, 5G to a mobile hotspot, however segmentation of the /64 via SLAAC is required so

Re: [PATCH v6 22/25] x86/asm: annotate indirect jumps

2020-11-10 Thread Josh Poimboeuf
On Mon, Nov 09, 2020 at 08:29:24PM -0600, Josh Poimboeuf wrote: > On Mon, Nov 09, 2020 at 03:11:41PM -0800, Sami Tolvanen wrote: > > CONFIG_XEN > > > > __switch_to_asm()+0x0: undefined stack state > > xen_hypercall_set_trap_table()+0x0: <=== (sym) With your branch + GCC 9 I can recreate all

[PATCH v3] Documentation: include sign off for reverts

2020-11-10 Thread Aditya Srivastava
Currently, we do not have any documentation on commit reverts regarding the requirement of Signed-off-by tag for it. This may be misleading to the users. Evaluating MISSING_SIGN_OFF checkpatch warnings on v4.13..v5.8 showed that 4 out of 11 cases missing a sign-off are revert commits. Add

[tip: x86/apic] x86/ioapic: Correct the PCI/ISA trigger type selection

2020-11-10 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/apic branch of tip: Commit-ID: aec8da04e4d71afdd4ab3025ea34a6517435f363 Gitweb: https://git.kernel.org/tip/aec8da04e4d71afdd4ab3025ea34a6517435f363 Author:Thomas Gleixner AuthorDate:Tue, 10 Nov 2020 15:34:32 +01:00

[PATCH] ASoC: Fix 7/8 spaces indentation in Kconfig

2020-11-10 Thread Geert Uytterhoeven
Some entries used 7 or 8 spaces instead if a single TAB. Signed-off-by: Geert Uytterhoeven --- sound/soc/codecs/Kconfig | 18 +- sound/soc/generic/Kconfig | 2 +- sound/soc/intel/boards/Kconfig | 2 +- sound/soc/meson/Kconfig| 2 +- sound/soc/pxa/Kconfig

Re: [PATCH v2 0/2] phy: phy-brcm-sata: Allow configuration SATA AFE TX amplitude

2020-11-10 Thread Florian Fainelli
On 10/22/20 1:50 PM, Florian Fainelli wrote: > Hi Vinod, Kishon, > > This patch series allows the configuration of the Broadcom SATA PHY TX > amplitude which may be required in order to meet specific tests. > > Thanks! > > Changes in v2: Vinod, Kishon, can this be applied if you are okay with

Re: [PATCH v2] Documentation: include sign off for reverts

2020-11-10 Thread Drew DeVault
On Tue Nov 10, 2020 at 1:39 PM EDT, Aditya Srivastava wrote: > using your real name (sorry, no pseudonyms or anonymous contributions.) > This will be done for you automatically if you use ``git commit -s``. > +Also reverts should include a Signed-off-by. ``git revert -s`` does > +that for you.

Re: [EXTERNAL] [tip: x86/apic] x86/io_apic: Cleanup trigger/polarity helpers

2020-11-10 Thread Thomas Gleixner
On Tue, Nov 10 2020 at 16:33, David Woodhouse wrote: > On Tue, 2020-11-10 at 10:17 -0600, Tom Lendacky wrote: >> Yep. The warning started triggering with: >> 47bea873cf80 ("x86/msi: Only use high bits of MSI address for DMAR unit") >> >> Here's the backtrace: >> >> [ 15.745929]

Re: [PATCH v2 2/6] firmware: arm_scmi: add SCMIv3.0 Sensors descriptors extensions

2020-11-10 Thread Peter Hilber
Hi Cristian, sorry, I mistakenly used the wrong sender ("Mailing Lists") for the original comment mail. Please see below for my reply. On 10.11.20 18:21, Cristian Marussi wrote: > On Tue, Nov 10, 2020 at 05:00:05PM +0100, Mailing Lists wrote: >> On 26.10.20 21:10, Cristian Marussi wrote: >>> Add

Re: [PATCH v4 bpf-next 1/5] bpf: add in-kernel split BTF support

2020-11-10 Thread Song Liu
> On Nov 9, 2020, at 5:19 PM, Andrii Nakryiko wrote: > > Adjust in-kernel BTF implementation to support a split BTF mode of operation. > Changes are mostly mirroring libbpf split BTF changes, with the exception of > start_id being 0 for in-kernel implementation due to simpler read-only mode.

Re: [PATCH] Documentation: ACPI: fix spelling mistakes

2020-11-10 Thread Rafael J. Wysocki
On Tue, Nov 10, 2020 at 2:03 PM Flavio Suligoi wrote: > > Signed-off-by: Flavio Suligoi > --- > Documentation/firmware-guide/acpi/acpi-lid.rst | 8 > Documentation/firmware-guide/acpi/method-tracing.rst | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git

[PATCH] ACPI: DPTF: Support Alder Lake

2020-11-10 Thread Srinivas Pandruvada
Add Alder Lake ACPI IDs for DPTF devices. Signed-off-by: Srinivas Pandruvada --- drivers/acpi/dptf/dptf_pch_fivr.c | 1 + drivers/acpi/dptf/dptf_power.c | 2 ++ drivers/acpi/dptf/int340x_thermal.c | 6 ++ drivers/acpi/fan.c | 1 + 4 files changed, 10 insertions(+)

RE: [PATCH] x86/mce: Check for hypervisor before enabling additional error logging

2020-11-10 Thread Luck, Tony
I still think there is a reasonable case to claim that this usage is right to check whether it is running as a guest. Look at what it is trying to do ... change the behavior of the platform w.r.t. logging of memory errors. How does that make any sense for a guest ... that doesn't even know

Re: [PATCH] ACPI: DPTF: Support Alder Lake

2020-11-10 Thread Rafael J. Wysocki
On Tue, Nov 10, 2020 at 6:51 PM Srinivas Pandruvada wrote: > > Add Alder Lake ACPI IDs for DPTF devices. > > Signed-off-by: Srinivas Pandruvada > --- > drivers/acpi/dptf/dptf_pch_fivr.c | 1 + > drivers/acpi/dptf/dptf_power.c | 2 ++ > drivers/acpi/dptf/int340x_thermal.c | 6 ++ >

Re: [PATCH v2] coresight: tmc-etr: Assign boolean values to a bool variable

2020-11-10 Thread Mathieu Poirier
On Tue, Nov 10, 2020 at 11:39:15AM +0800, xiakaixu1...@gmail.com wrote: > From: Kaixu Xia > > Fix the following coccinelle warnings: > > ./drivers/hwtracing/coresight/coresight-tmc-etr.c:957:2-15: WARNING: > Assignment of 0/1 to bool variable > > Fix them by assigning boolean values. > >

[PATCH net-next] net: kcov: don't select SKB_EXTENSIONS when there is no NET

2020-11-10 Thread Randy Dunlap
2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20201110.orig/lib/Kconfig.debug +++ linux-next-20201110/lib/Kconfig.debug @@ -1874,7 +1874,7 @@ config KCOV depends on CC_HAS_SANCOV_TRACE_PC || GCC_PLUGINS select DEBUG_FS select GCC_PLUGIN_SANCOV if !CC_HAS_SANC

Re: [Linux-kernel-mentees] [PATCH v3 net] rose: Fix Null pointer dereference in rose_send_frame()

2020-11-10 Thread Jakub Kicinski
On Sun, 8 Nov 2020 00:48:35 +0530 Anmol Karn wrote: > + dev = rose_dev_get(dest); this calls dev_hold internally, you never release that reference in case ..neigh->dev is NULL > + if (rose_loopback_neigh->dev && dev) {

Re: How to enable auto-suspend by default

2020-11-10 Thread Greg KH
On Tue, Nov 10, 2020 at 05:45:43PM +, Limonciello, Mario wrote: > > > I guess what Bastien is getting at is for newer devices supported by class > > > drivers rather than having to store an allowlist in udev rules, can we set > > > the allowlist in the kernel instead. Then distributions that

[GIT PULL] turbostat: update to version 20.09.30

2020-11-10 Thread Len Brown
Hi Linus, Please pull these turbostat related patches. thanks! Len Brown, Intel Open Source Technology Center The following changes since commit e00b62f0b06d0ae2b844049f216807617aff0cdb: x86/cpu: Add Lakefield, Alder Lake and Rocket Lake models to the to Intel CPU family (2020-07-25 12:16:59

Re: Patch "btrfs: sysfs: init devices outside of the chunk_mutex" has been added to the 4.4-stable tree

2020-11-10 Thread Greg KH
On Tue, Nov 10, 2020 at 10:11:15AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > btrfs: sysfs: init devices outside of the chunk_mutex > > to the 4.4-stable tree which can be found at: > >

Re: [PATCH] PM / reboot: Use S5 for reboot

2020-11-10 Thread Rafael J. Wysocki
On Fri, Oct 30, 2020 at 8:07 AM Kai-Heng Feng wrote: > > After reboot, it's not possible to use hotkeys to enter BIOS setup and > boot menu on some HP laptops. > > BIOS folks identified the root cause is the missing _PTS call, and BIOS > is expecting _PTS to do proper reset. > > Using S5 for

Re: [PATCH RESEND 1/2] perf test: Fix a typo in cs-etm testing

2020-11-10 Thread Mathieu Poirier
On Tue, Nov 10, 2020 at 02:34:16PM +0800, Leo Yan wrote: > Fix a typo: s/devce_name/device_name. > > Fixes: fe0aed19b266 ("perf test: Introduce script for Arm CoreSight testing") > Signed-off-by: Leo Yan > --- > I would CC stable too. Reviewed-by: Mathieu Poirier > Resend patches for adding

Re: [ANNOUNCE] v5.10-rc2-rt4

2020-11-10 Thread Sebastian Andrzej Siewior
On 2020-11-09 15:37:03 [+0100], Daniel Wagner wrote: > > I've been staring at the code of signaltest on Friday and I might need > > to stare longer to figure out what it does. > > I hear you. Anyway, I gave the current head a run with lazy preemption > disabled as you asked for. I just sent a

Re: [PATCH v8 2/9] mmap: make mlock_future_check() global

2020-11-10 Thread Mike Rapoport
On Tue, Nov 10, 2020 at 06:17:26PM +0100, David Hildenbrand wrote: > On 10.11.20 16:14, Mike Rapoport wrote: > > From: Mike Rapoport > > > > It will be used by the upcoming secret memory implementation. > > > > Signed-off-by: Mike Rapoport > > --- > > mm/internal.h | 3 +++ > > mm/mmap.c

Re: [PATCH V8 2/5] mfd: Intel Platform Monitoring Technology support

2020-11-10 Thread David E. Box
Hi Geert, On Tue, 2020-11-10 at 11:39 +0100, Geert Uytterhoeven wrote: > Hi David, > > On Sat, Oct 3, 2020 at 3:32 AM David E. Box < > david.e@linux.intel.com> wrote: > > Intel Platform Monitoring Technology (PMT) is an architecture for > > enumerating and accessing hardware monitoring

Re: Patch "RDMA/ucma: Fix error cases around ucma_alloc_ctx()" has been added to the 5.9-stable tree

2020-11-10 Thread Greg KH
On Tue, Nov 10, 2020 at 10:06:26AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > RDMA/ucma: Fix error cases around ucma_alloc_ctx() > > to the 5.9-stable tree which can be found at: > >

Re: [PATCH] arm64: tegra186: Add missing CPU PMUs

2020-11-10 Thread Marc Zyngier
On 2020-11-10 17:36, Thierry Reding wrote: On Tue, Oct 13, 2020 at 10:58:51AM +0100, Marc Zyngier wrote: Add the description of CPU PMUs for both the Denver and A57 clusters, which enables the perf subsystem. Signed-off-by: Marc Zyngier [...] + pmu_denver { +

RE: How to enable auto-suspend by default

2020-11-10 Thread Limonciello, Mario
> On Tue, Nov 10, 2020 at 05:45:43PM +, Limonciello, Mario wrote: > > > > I guess what Bastien is getting at is for newer devices supported by > class > > > > drivers rather than having to store an allowlist in udev rules, can we > set > > > > the allowlist in the kernel instead. Then

Re: Patch "dm raid: fix discard limits for raid1 and raid10" has been added to the 5.9-stable tree

2020-11-10 Thread Greg KH
On Tue, Nov 10, 2020 at 10:06:31AM -0500, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > dm raid: fix discard limits for raid1 and raid10 > > to the 5.9-stable tree which can be found at: > >

Re: [PATCH RESEND 2/2] perf test: Update branch sample parttern for cs-etm

2020-11-10 Thread Mathieu Poirier
On Tue, Nov 10, 2020 at 02:34:17PM +0800, Leo Yan wrote: > Since the commit 943b69ac1884 ("perf parse-events: Set exclude_guest=1 > for user-space counting"), 'exclude_guest=1' is set for user-space > counting; and the branch sample's modifier has been altered, the sample > event name has been

Re: [PATCH v8 5/7] ARM: dts: exynos: Add interconnect properties to Exynos4412 bus nodes

2020-11-10 Thread Krzysztof Kozlowski
On Wed, Nov 04, 2020 at 11:36:55AM +0100, Sylwester Nawrocki wrote: > This patch adds the following properties for Exynos4412 interconnect > bus nodes: > - interconnects: to declare connections between nodes in order to >guarantee PM QoS requirements between nodes, > - #interconnect-cells:

[v2 PATCH 0/5] mm: misc migrate cleanup and improvement

2020-11-10 Thread Yang Shi
Some misc migrate code cleanup and improvement. v2: * Fixed the comments from Zi Yan * Collected Reviewed-by Yang Shi (5): mm: truncate_complete_page is not existed anymore mm: migrate: simplify the logic for handling permanent failure mm: migrate: skip shared exec THP

[v2 PATCH 1/5] mm: truncate_complete_page is not existed anymore

2020-11-10 Thread Yang Shi
The commit 9f4e41f4717832e34cca153ced62b4a1d7e26c0e ("mm: refactor truncate_complete_page()") refactored truncate_complete_page(), and it is not existed anymore, correct the comment in vmscan and migrate to avoid confusion. Reviewed-by: Jan Kara Signed-off-by: Yang Shi --- mm/migrate.c | 2 +-

Re: [PATCH v8 6/7] ARM: dts: exynos: Add interconnects to Exynos4412 mixer

2020-11-10 Thread Krzysztof Kozlowski
On Wed, Nov 04, 2020 at 11:36:56AM +0100, Sylwester Nawrocki wrote: > From: Artur Świgoń > > This patch adds an 'interconnects' property to Exynos4412 DTS in order to > declare the interconnect path used by the mixer. Please note that the > 'interconnect-names' property is not needed when there

[v2 PATCH 5/5] mm: migrate: return -ENOSYS if THP migration is unsupported

2020-11-10 Thread Yang Shi
In the current implementation unmap_and_move() would return -ENOMEM if THP migration is unsupported, then the THP will be split. If split is failed just exit without trying to migrate other pages. It doesn't make too much sense since there may be enough free memory to migrate other pages and

[v2 PATCH 4/5] mm: migrate: clean up migrate_prep{_local}

2020-11-10 Thread Yang Shi
The migrate_prep{_local} never fails, so it is pointless to have return value and check the return value. Reviewed-by: Zi Yan Signed-off-by: Yang Shi --- include/linux/migrate.h | 4 ++-- mm/mempolicy.c | 8 ++-- mm/migrate.c| 8 ++-- 3 files changed, 6

[v2 PATCH 2/5] mm: migrate: simplify the logic for handling permanent failure

2020-11-10 Thread Yang Shi
When unmap_and_move{_huge_page}() returns !-EAGAIN and !MIGRATEPAGE_SUCCESS, the page would be put back to LRU or proper list if it is non-LRU movable page. But, the callers always call putback_movable_pages() to put the failed pages back later on, so it seems not very efficient to put every

[v2 PATCH 3/5] mm: migrate: skip shared exec THP for NUMA balancing

2020-11-10 Thread Yang Shi
The NUMA balancing skip shared exec base page. Since CONFIG_READ_ONLY_THP_FOR_FS was introduced, there are probably shared exec THP, so skip such THPs for NUMA balancing as well. Signed-off-by: Yang Shi --- mm/migrate.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-)

Re: [PATCH net-next 08/11] ath9k: work around false-positive gcc warning

2020-11-10 Thread Kalle Valo
Arnd Bergmann wrote: > gcc-10 shows a false-positive warning with CONFIG_KASAN: > > drivers/net/wireless/ath/ath9k/dynack.c: In function > 'ath_dynack_sample_tx_ts': > include/linux/etherdevice.h:290:14: warning: writing 4 bytes into a region of > size 0 [-Wstringop-overflow=] > 290 |

Re: [PATCH 2/2] ath11k: Handle errors if peer creation fails

2020-11-10 Thread Kalle Valo
Alex Dewar wrote: > ath11k_peer_create() is called without its return value being checked, > meaning errors will be unhandled. Add missing check and, as the mutex is > unconditionally unlocked on leaving this function, simplify the exit > path. > > Addresses-Coverity-ID: 1497531 ("Code

[PATCH v4 4/4] Input: st1232 - add support resolution reading

2020-11-10 Thread Andrej Valek
Hard-coding resolution for st1633 device was wrong. Some of LCDs like YTS700TLBC-02-100C has assembled Sitronix st1633 touchcontroller too. But the resolution is not 320x480 as was hard-coded. Add new function which reads correct resolution directly from register. Signed-off-by: Andrej Valek ---

[PATCH v4 3/4] Input: atmel_mxt_ts - add option to disable firmware loading

2020-11-10 Thread Andrej Valek
Firmware file loadind for mXT336U controller takes too much time (~60s). There is no check that configuration is the same which is already present. This happens always during boot, which makes touchscreen unusable. Add there an option to prevent firmware file loading, but keep it enabled by

[PATCH v4 1/4] Input: goodix - add option to disable firmware loading

2020-11-10 Thread Andrej Valek
Firmware file loadind for GT911 controller takes too much time (~60s). There is no check that configuration is the same which is already present. This happens always during boot, which makes touchscreen unusable. Add there an option to prevent firmware file loading, but keep it enabled by

[PATCH v4 2/4] dt-bindings: touchscreen: goodix: add info about disabling FW loading

2020-11-10 Thread Andrej Valek
Add information about option how to disable FW loading for each boot. Signed-off-by: Andrej Valek --- .../devicetree/bindings/input/touchscreen/goodix.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml

Re: [PATCH] mm: memblock: add more debug logs

2020-11-10 Thread Mike Rapoport
Hi, On Tue, Nov 10, 2020 at 05:49:58PM +0530, Faiyaz Mohammed wrote: > Exact caller of memblock_phys_alloc_range is not available with > "memblock=debug". Below information is not enough for memory accounting. > for example: > [0.00] memblock_reserve:

Re: [v2 PATCH 3/5] mm: migrate: skip shared exec THP for NUMA balancing

2020-11-10 Thread Matthew Wilcox
On Tue, Nov 10, 2020 at 10:12:48AM -0800, Yang Shi wrote: > @@ -2142,6 +2151,10 @@ int migrate_misplaced_transhuge_page(struct mm_struct > *mm, > int page_lru = page_is_file_lru(page); > unsigned long start = address & HPAGE_PMD_MASK; > > + if

[PATCH v4 0/4] Firmware loading option

2020-11-10 Thread Andrej Valek
Add option to prevent firmware/configuration loading during each boot. Andrej Valek (4): Input: goodix - add option to disable firmware loading dt-bindings: touchscreen: goodix: add info about disabling FW loading Input: atmel_mxt_ts - add option to disable firmware loading Input: st1232

Re: [PATCH v6 1/7] arm64: mm: Move reserve_crashkernel() into mem_init()

2020-11-10 Thread Catalin Marinas
On Fri, Nov 06, 2020 at 07:46:29PM +0100, Nicolas Saenz Julienne wrote: > On Thu, 2020-11-05 at 16:11 +, James Morse wrote: > > On 03/11/2020 17:31, Nicolas Saenz Julienne wrote: > > > crashkernel might reserve memory located in ZONE_DMA. We plan to delay > > > ZONE_DMA's initialization after

Re: [PATCH v2] scsi: ufshcd: fix missing destroy_workqueue()

2020-11-10 Thread Asutosh Das (asd)
On 11/9/2020 11:42 PM, Qinglang Miao wrote: Add the missing destroy_workqueue() before return from ufshcd_init in the error handling case as well as in ufshcd_remove. Fixes: 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and other error recovery paths") Suggested-by: Avri Altman

Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver

2020-11-10 Thread Arnaud POULIQUEN
Hi Mathieu, Guennadi, On 11/9/20 6:55 PM, Mathieu Poirier wrote: > On Mon, Nov 09, 2020 at 11:20:24AM +0100, Guennadi Liakhovetski wrote: >> Hi Arnaud, >> >> On Mon, Nov 09, 2020 at 09:48:37AM +0100, Arnaud POULIQUEN wrote: >>> Hi Guennadi, Mathieu, >>> >>> On 11/6/20 6:53 PM, Mathieu Poirier

Re: Duplicated ABI entries - Was: Re: [PATCH v2 20/39] docs: ABI: testing: make the files compatible with ReST output

2020-11-10 Thread Randy Dunlap
On 11/9/20 11:26 PM, Mauro Carvalho Chehab wrote: > Hi Jonathan, > > Let's view ABI from the PoV of a system admin that doesn't know > yet about a certain ABI symbol. > > He'll try to seek for the symbol, more likely using the HTML > documentation. Only very senior system admins might try to

Re: [PATCH RESEND 2/2] perf test: Update branch sample parttern for cs-etm

2020-11-10 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 10, 2020 at 11:08:29AM -0700, Mathieu Poirier escreveu: > On Tue, Nov 10, 2020 at 02:34:17PM +0800, Leo Yan wrote: > > Since the commit 943b69ac1884 ("perf parse-events: Set exclude_guest=1 > > for user-space counting"), 'exclude_guest=1' is set for user-space > > counting; and the

Re: [PATCH 1/6] ARM: dts: exynos: use hyphens in Exynos3250 node names

2020-11-10 Thread Krzysztof Kozlowski
On Thu, Nov 05, 2020 at 07:45:01PM +0100, Krzysztof Kozlowski wrote: > Use hyphens instead of underscores in the Exynos3250 node names which is > expected by naming convention, multiple dtschema files and pointed out > by dtc W=2 builds. Use also generic "ppmu" node name for PPMU nodes to > match

Re: [PATCH] arm64: tegra186: Add missing CPU PMUs

2020-11-10 Thread Thierry Reding
On Tue, Nov 10, 2020 at 06:08:31PM +, Marc Zyngier wrote: > On 2020-11-10 17:36, Thierry Reding wrote: > > On Tue, Oct 13, 2020 at 10:58:51AM +0100, Marc Zyngier wrote: > > > Add the description of CPU PMUs for both the Denver and A57 clusters, > > > which enables the perf subsystem. > > > >

Re: [PATCH 03/24] perf: Add build id data in mmap2 event

2020-11-10 Thread Jiri Olsa
On Tue, Nov 10, 2020 at 11:10:46AM +0100, Jiri Olsa wrote: > On Tue, Nov 10, 2020 at 09:28:51AM +0100, Peter Zijlstra wrote: > > On Mon, Nov 09, 2020 at 10:53:54PM +0100, Jiri Olsa wrote: > > > There's new misc bit for mmap2 to signal there's build > > > id data in it: > > > > > > #define

RE: [PATCH 1/5] misc: Add Synopsys DesignWare xData IP driver

2020-11-10 Thread Gustavo Pimentel
On Tue, Nov 10, 2020 at 17:30:5, Greg Kroah-Hartman wrote: > On Tue, Nov 10, 2020 at 03:17:54PM +, Gustavo Pimentel wrote: > > Hi Greg, > > > > On Mon, Nov 9, 2020 at 17:31:8, Greg Kroah-Hartman > > wrote: > > > > > On Thu, Oct 29, 2020 at 08:13:36PM +0100, Gustavo Pimentel wrote: > > >

Re: [PATCH v12 3/4] selinux: teach SELinux about anonymous inodes

2020-11-10 Thread Lokesh Gidra
Thanks a lot Paul for the reviewing this patch. On Mon, Nov 9, 2020 at 7:12 PM Paul Moore wrote: > > On Fri, Nov 6, 2020 at 10:56 AM Lokesh Gidra wrote: > > > > From: Daniel Colascione > > > > This change uses the anon_inodes and LSM infrastructure introduced in > > the previous patches to

Re: [RFC 00/11] arm64: coresight: Enable ETE and TRBE

2020-11-10 Thread Mathieu Poirier
Hi Anshuman, On Tue, 10 Nov 2020 at 05:45, Anshuman Khandual wrote: > > This series enables future IP trace features Embedded Trace Extension (ETE) > and Trace Buffer Extension (TRBE). This series depends on the ETM system > register instruction support series [0] and the v8.4 Self hosted

net-next test error: BUG: sleeping function called from invalid context in sta_info_move_state

2020-11-10 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a3ce2b10 net: udp: introduce UDP_MIB_MEMERRORS for udp_mem git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12a0df4650 kernel config: https://syzkaller.appspot.com/x/.config?x=7891ad1ca1723c54

memory leak in ath9k_hif_usb_firmware_cb

2020-11-10 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:407ab579 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=134dd02650 kernel config: https://syzkaller.appspot.com/x/.config?x=a3f13716fa0212fd

Re: simplify follow_pte a bit

2020-11-10 Thread Christoph Hellwig
On Thu, Oct 29, 2020 at 11:14:30AM +0100, Christoph Hellwig wrote: > Hi Andrew, > > this small series drops the not needed follow_pte_pmd exports, and > simplifies the follow_pte family of functions a bit. any comments?

Re: [PATCH] arm64: tegra186: Add missing CPU PMUs

2020-11-10 Thread Marc Zyngier
On 2020-11-10 18:22, Thierry Reding wrote: On Tue, Nov 10, 2020 at 06:08:31PM +, Marc Zyngier wrote: On 2020-11-10 17:36, Thierry Reding wrote: > On Tue, Oct 13, 2020 at 10:58:51AM +0100, Marc Zyngier wrote: > > Add the description of CPU PMUs for both the Denver and A57 clusters, > > which

[git pull] coredump/exit race fix

2020-11-10 Thread Al Viro
Fix for multithreaded coredump playing fast and loose with getting registers of secondary threads; if a secondary gets caught in the middle of exit(2), the conditition it will be stopped in for dumper to examine might be unusual enough for things to go wrong. Quite a few architectures are

[PATCH v2 3/3] x86: Print ratio freq_max/freq_base used in frequency invariance calculations

2020-11-10 Thread Giovanni Gherdovich
The value freq_max/freq_base is a fundamental component of frequency invariance calculations. It may come from a variety of sources such as MSRs or ACPI data, tracking it down when troubleshooting a system could be non-trivial. It is worth saving it in the kernel logs. # dmesg | grep 'Estimated

[PATCH v2 0/3] Add support for frequency invariance to AMD EPYC Zen2

2020-11-10 Thread Giovanni Gherdovich
v1 at https://lore.kernel.org/lkml/20201110083936.31994-1-ggherdov...@suse.cz/ Changes wrt v1: - made initialization safe under CPU hotplug. The function init_freq_invariance_cppc now lets only the first caller into init_freq_invariance(). Giovanni Gherdovich (2): x86, sched: Use midpoint

[PATCH v2 2/3] x86, sched: Use midpoint of max_boost and max_P for frequency invariance on AMD EPYC

2020-11-10 Thread Giovanni Gherdovich
Frequency invariant accounting calculations need the ratio freq_curr/freq_max, but freq_max is unknown as it depends on dynamic power allocation between cores: AMD EPYC CPUs implement "Core Performance Boost". Three candidates are considered to estimate this value: - maximum non-boost frequency -

Re: [PATCH v4 bpf-next 1/5] bpf: add in-kernel split BTF support

2020-11-10 Thread Andrii Nakryiko
On Tue, Nov 10, 2020 at 9:50 AM Song Liu wrote: > > > > > On Nov 9, 2020, at 5:19 PM, Andrii Nakryiko wrote: > > > > Adjust in-kernel BTF implementation to support a split BTF mode of > > operation. > > Changes are mostly mirroring libbpf split BTF changes, with the exception of > > start_id

[PATCH v2 1/3] x86, sched: Calculate frequency invariance for AMD systems

2020-11-10 Thread Giovanni Gherdovich
From: Nathan Fontenot This is the first pass in creating the ability to calculate the frequency invariance on AMD systems. This approach uses the CPPC highest performance and nominal performance values that range from 0 - 255 instead of a high and base frquency. This is because we do not have

Re: [PATCH 1/2] mm: unexport follow_pte_pmd

2020-11-10 Thread Matthew Wilcox
On Thu, Oct 29, 2020 at 11:14:31AM +0100, Christoph Hellwig wrote: > follow_pte_pmd is only used by the DAX code, which can't be modular. > > Signed-off-by: Christoph Hellwig Reviewed-by: Matthew Wilcox (Oracle)

Re: [PATCH] ntb: idt: fix error check in ntb_hw_idt.c

2020-11-10 Thread Serge Semin
Hello Wang On Fri, Nov 06, 2020 at 05:43:31PM +0800, Wang Qing wrote: > idt_create_dev never return NULL and fix smatch warning. Thanks for submitting this. For the both changes Acked-by: Serge Semin They are mostly unrelated though. If they weren't trivial I'd have suggested to split them up

Re: [PATCH v3 1/2] security: add fault injection capability

2020-11-10 Thread Aleksandr Nogikh
On Tue, Nov 10, 2020 at 7:43 AM Tetsuo Handa wrote: > [...] > > By the way, fail_lsm_hooks.retval is "signed int" but debugfs_create_u32() > handles "unsigned int". > Do we want to allow lsm_hooks_inject_fail() to inject arbitrary > !IS_ERR_VALUE() values? Thanks for pointing it out.

Re: [PATCH 0/2] Tristate moount option comatibility fixup

2020-11-10 Thread Christoph Hellwig
s/moount/mount/

Re: [PATCH] amd/display/amdgpu_dm: delete same check in if condition

2020-11-10 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Nov 10, 2020 at 9:13 AM Harry Wentland wrote: > > On 2020-11-10 3:03 a.m., Bernard Zhao wrote: > > In function amdgpu_dm_connector_get_modes, drm_edid_is_valid > > will check weather (!edid), no need to check again in the if > > branch. > > > > Signed-off-by:

[PATCH v1 1/2] dt-bindings: arm: Add optional interrupt to smc/hvc SCMI transport

2020-11-10 Thread Jim Quinlan
This change allows the SCMI "platform" to use the smc/hvc transport and to optionally indicate the completion of an SCMI message with an interrupt. This is in contrast to the nominal case where the return of the SMC call indicates message completion. Signed-off-by: Jim Quinlan ---

[PATCH v1 2/2] firmware: arm_scmi: Augment SMC/HVC to allow optional interrupt

2020-11-10 Thread Jim Quinlan
The SMC/HVC SCMI transport is modified to allow the completion of an SCMI message to be indicated by an interrupt rather than the return of the smc call. This accommodates the existing behavior of the BrcmSTB SCMI "platform" whose SW is already out in the field and cannot be changed.

Re: [PATCH 1/2] xfs: show the dax option in mount options.

2020-11-10 Thread Christoph Hellwig
On Mon, Nov 09, 2020 at 08:10:08PM +0100, Michal Suchanek wrote: > xfs accepts both dax and dax_enum but shows only dax_enum. Show both > options. Which is very much intentional. The -o dax was an experimental hack that fortunately is gone now.

Re: [PATCH][next] cpumask: allocate enough space for string and trailing '\0' char

2020-11-10 Thread Paul E. McKenney
On Tue, Nov 10, 2020 at 03:34:05PM +, Colin Ian King wrote: > On 10/11/2020 15:24, Paul E. McKenney wrote: > > On Mon, Nov 09, 2020 at 11:57:15PM -0500, Paul Gortmaker wrote: > >> > >> > >> On 2020-11-09 8:07 p.m., Qian Cai wrote: > >>> On Mon, 2020-11-09 at 13:04 +, Colin King wrote: >

Re: [PATCH v5 1/9] lib: zstd: Add zstd compatibility wrapper

2020-11-10 Thread Christoph Hellwig
On Mon, Nov 09, 2020 at 02:01:41PM -0500, Chris Mason wrote: > You do consistently ask for a shim layer, but you haven???t explained what > we gain by diverging from the documented and tested API of the upstream zstd > project. It???s an important discussion given that we hope to regularly >

Re: [PATCH] mm: memblock: always inline memblock_alloc

2020-11-10 Thread Mike Rapoport
Hi, On Tue, Nov 10, 2020 at 05:50:17PM +0530, Faiyaz Mohammed wrote: > Since memblock_alloc is not getting inlined, memblock_reserve owner info > is lost. Below information is not enough for memory accounting. > for example: > [0.00] memblock_alloc_try_nid: 1490 bytes align=0x40 nid=-1 >

Re: [PATCH] bpf: Fix unsigned 'datasec_id' compared with zero in check_pseudo_btf_id

2020-11-10 Thread Andrii Nakryiko
On Tue, Nov 10, 2020 at 3:50 AM wrote: > > From: Kaixu Xia > > The unsigned variable datasec_id is assigned a return value from the call > to check_pseudo_btf_id(), which may return negative error code. > > Fixes coccicheck warning: > > ./kernel/bpf/verifier.c:9616:5-15: WARNING: Unsigned

<    3   4   5   6   7   8   9   10   11   12   >