[PATCH v2] arm64: dts: rockchip: cleanup cpu_thermal node of rk3399-rock960.dts

2021-01-18 Thread Johan Jonker
The cpu_thermal node in the rk3399-rock960.dts file does not reference &cpu_thermal directly to add the board-specific parts, but also repeats all the SoC default properties. Clean the whole thing up and fix alignment. Place new nodes in the correct alphabetical order. Compered to rk3399.dtsi the t

Re: [PATCH v2 0/4] media: sunxi-cir: Cleanup and power management

2021-01-18 Thread Sean Young
On Mon, Jan 18, 2021 at 12:00:44AM -0600, Samuel Holland wrote: > This series cleans up some dead code in the sunxi-cir driver and adds > system power management hooks. > > --- > Changes from v1: > - Unregister the RC device first thing in sunxi_ir_remove() [3] > Thanks. I've tested it on my C

Re: [PATCH v2] nvme: allow use of cmb on v1.4 controllers

2021-01-18 Thread Christoph Hellwig
Thanks, applied to nvme-5.11 with a little tweak to remove the cmbmsc local variable and a comment explaining what is going on.

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-18 Thread Marc Zyngier
Hi Geert, On 2021-01-18 17:39, Geert Uytterhoeven wrote: Hi Saravana, On Fri, Dec 18, 2020 at 4:34 AM Saravana Kannan wrote: Cyclic dependencies in some firmware was one of the last remaining reasons fw_devlink=on couldn't be set by default. Now that cyclic dependencies don't block probing,

Re: [PATCH] KVM: x86: get smi pending status correctly

2021-01-18 Thread Paolo Bonzini
On 18/01/21 09:47, Jay Zhou wrote: The injection process of smi has two steps: QemuKVM Step1: cpu->interrupt_request &= \ ~CPU_INTERRUPT_SMI; kvm_vcpu_ioctl(cpu, KVM_SMI) call kvm_vcpu_ioctl_smi() and

Re: [PATCH] KVM: x86/pmu: Fix HW_REF_CPU_CYCLES event pseudo-encoding in intel_arch_events[]

2021-01-18 Thread Paolo Bonzini
On 30/12/20 09:19, Like Xu wrote: The HW_REF_CPU_CYCLES event on the fixed counter 2 is pseudo-encoded as 0x0300 in the intel_perfmon_event_map[]. Correct its usage. Fixes: 62079d8a4312 ("KVM: PMU: add proper support for fixed counter 2") Signed-off-by: Like Xu --- arch/x86/kvm/vmx/pmu_intel.

Re: [PATCH v3 1/7] regulator: qcom-labibb: Implement voltage selector ops

2021-01-18 Thread Mark Brown
On Mon, Jan 18, 2021 at 06:54:26PM +0100, AngeloGioacchino Del Regno wrote: > Il 18/01/21 13:04, Mark Brown ha scritto: > > Please do not submit new versions of already applied patches, please > > submit incremental updates to the existing code. Modifying existing > > commits creates problems for

Re: [PATCH v2] KVM: x86/pmu: Fix UBSAN shift-out-of-bounds warning in intel_pmu_refresh()

2021-01-18 Thread Paolo Bonzini
On 18/01/21 03:58, Like Xu wrote: Since we know vPMU will not work properly when (1) the guest bit_width(s) of the [gp|fixed] counters are greater than the host ones, or (2) guest requested architectural events exceeds the range supported by the host, so we can setup a smaller left shift value an

Re: [PATCH] PM / devfreq: Add sysfs attributes to simple_ondemand governor

2021-01-18 Thread Lukasz Luba
On 1/18/21 5:17 PM, Greg KH wrote: On Fri, Jan 15, 2021 at 05:05:30PM +, Lukasz Luba wrote: The simple_ondemand devfreq governor is used by quite a few devices, like GPUs, DSPs, memory controllers, etc. It implements algorithm which tries to predict the device frequency based on past stat

Re: linux-next: Tree for Jan 18 (objtool: 2 warnings)

2021-01-18 Thread Josh Poimboeuf
On Mon, Jan 18, 2021 at 09:16:14AM -0800, Randy Dunlap wrote: > On 1/17/21 10:48 PM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20210115: > > > > on x86_64: > > lib/iov_iter.o: warning: objtool: iovec_from_user()+0x157: call to > __ubsan_handle_add_overflow() with UACCESS enable

Re: [Patch v5 2/2] cgroup: svm: Encryption IDs cgroup documentation.

2021-01-18 Thread Randy Dunlap
On 1/15/21 6:32 PM, Vipin Sharma wrote: > Documentation of Encryption IDs controller. This new controller is used > to track and limit usage of hardware memory encryption capabilities on > the CPUs. > > Signed-off-by: Vipin Sharma > Reviewed-by: David Rientjes > Reviewed-by: Dionna Glaze > ---

Re: [PATCH v3 1/7] regulator: qcom-labibb: Implement voltage selector ops

2021-01-18 Thread AngeloGioacchino Del Regno
Il 18/01/21 13:04, Mark Brown ha scritto: On Sun, Jan 17, 2021 at 11:08:24PM +0100, AngeloGioacchino Del Regno wrote: Implement {get,set}_voltage_sel, list_voltage, map_voltage with the useful regulator regmap helpers in order to be able to manage the voltage of LAB (positive) and IBB (negative)

[GIT PULL] SPI fixes for v5.11-rc4

2021-01-18 Thread Mark Brown
The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837: Linux 5.11-rc3 (2021-01-10 14:34:50 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v5.11-rc4 for you to fetch changes up to 4d163ad79b15

Re: [PATCH 1/2] [v2] lib/hexdump: introduce DUMP_PREFIX_UNHASHED for unhashed addresses

2021-01-18 Thread Timur Tabi
On 1/18/21 11:14 AM, Andy Shevchenko wrote: But isn't it good to expose those issues (and fix them)? I suppose. Perhaps even add _ADDRESS to DUMP_PREFIX_UNHASHED, but this maybe too long. I think DUMP_PREFIX_ADDRESS_UNHASHED is too long. What about introducing new two like these:

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-18 Thread Kai-Heng Feng
Hi, On Mon, Jan 18, 2021 at 10:41 PM Benjamin Tissoires wrote: > > Hi, > > On Mon, Jan 18, 2021 at 2:45 PM Kai-Heng Feng > wrote: > > > > Palm ejection stops working on some Elan and Synaptics touchpad after > > commit 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for > > some de

Re: [PATCH v2 bpf-next 2/2] selftests: bpf: Add a new test for bare tracepoints

2021-01-18 Thread Yonghong Song
On 1/18/21 4:18 AM, Qais Yousef wrote: On 01/16/21 18:11, Yonghong Song wrote: On 1/16/21 10:21 AM, Qais Yousef wrote: Reuse module_attach infrastructure to add a new bare tracepoint to check we can attach to it as a raw tracepoint. Signed-off-by: Qais Yousef --- .../bpf/bpf_testmod/b

Re: [PATCH v4] Documentation: livepatch: document reliable stacktrace

2021-01-18 Thread Mark Rutland
Hi Petr, On Mon, Jan 18, 2021 at 03:02:31PM +0100, Petr Mladek wrote: > On Fri 2021-01-15 17:16:17, Mark Brown wrote: > > I've made a few assumptions about preferred behaviour, notably: > > > > * If you can reliably unwind through exceptions, you should (as x86_64 > > does). IIRC this was conf

Re: [PATCH] ARM: kernel: Fix interrupted SMC calls

2021-01-18 Thread Manivannan Sadhasivam
Hi Russel, On Mon, Jan 18, 2021 at 04:08:07PM +, Russell King - ARM Linux admin wrote: > On Mon, Jan 18, 2021 at 09:21:53PM +0530, Manivannan Sadhasivam wrote: > > @@ -27,10 +29,18 @@ UNWIND( .fnstart) > > UNWIND(.save {r4-r7}) > > ldm r12, {r4-r7} > > \instr > > + mov

Re: [kvm-unit-tests PATCH] x86: Add tests for PKS

2021-01-18 Thread Thomas Huth
On 05/11/2020 09.18, Chenyi Qiang wrote: This unit-test is intended to test the KVM support for Protection Keys for Supervisor Pages (PKS). If CR4.PKS is set in long mode, supervisor pkeys are checked in addition to normal paging protections and Access or Write can be disabled via a MSR update wi

Re: [PATCH 2/2] media: dt-bindings: media: venus: Add sdm660 DT schema

2021-01-18 Thread AngeloGioacchino Del Regno
Il 18/01/21 18:21, Stanimir Varbanov ha scritto: On 1/17/21 9:23 PM, AngeloGioacchino Del Regno wrote: Il 17/01/21 16:45, Rob Herring ha scritto: On Fri, 15 Jan 2021 19:52:52 +0100, AngeloGioacchino Del Regno wrote: Add new qcom,sdm660-venus DT binding schema. Signed-off-by: AngeloGioacchin

Re: [PATCH] KVM: Documentation: Fix spec for KVM_CAP_ENABLE_CAP_VM

2021-01-18 Thread Paolo Bonzini
On 15/01/21 17:50, Will Deacon wrote: On Fri, Jan 08, 2021 at 04:53:49PM +, Quentin Perret wrote: The documentation classifies KVM_ENABLE_CAP with KVM_CAP_ENABLE_CAP_VM as a vcpu ioctl, which is incorrect. Fix it by specifying it as a VM ioctl. Fixes: e5d83c74a580 ("kvm: make KVM_CAP_ENABLE

Re: [PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-01-18 Thread Greg Kroah-Hartman
On Fri, Jan 15, 2021 at 04:15:43PM -0500, Al Cooper wrote: > Add a UART driver for the new Broadcom 8250 based STB UART. The new > UART is backward compatible with the standard 8250, but has some > additional features. The new features include a high accuracy baud > rate clock system and DMA suppor

Re: [PATCH 1/2] media: venus: core: Add sdm660 DT compatible and resource struct

2021-01-18 Thread AngeloGioacchino Del Regno
Il 18/01/21 18:21, Stanimir Varbanov ha scritto: Hi Angelo, Thanks for the patch! On 1/15/21 8:52 PM, AngeloGioacchino Del Regno wrote: Add the SDM660 DT compatible and its resource structure, also including support for the Venus pmdomains, in order to support the Venus block in SDM630, SDM636

[PATCH v5 2/2] Documentation: livepatch: document reliable stacktrace

2021-01-18 Thread Mark Brown
From: Mark Rutland Add documentation for reliable stacktrace. This is intended to describe the semantics and to be an aid for implementing architecture support for HAVE_RELIABLE_STACKTRACE. Unwinding is a subtle area, and architectures vary greatly in both implementation and the set of concerns

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-18 Thread Geert Uytterhoeven
Hi Saravana, On Wed, Jan 13, 2021 at 3:34 AM Saravana Kannan wrote: > On Mon, Jan 11, 2021 at 11:11 PM Marek Szyprowski > wrote: > > On 11.01.2021 22:47, Saravana Kannan wrote: > > > On Mon, Jan 11, 2021 at 6:18 AM Marek Szyprowski > > > wrote: > > >> On 11.01.2021 12:12, Marek Szyprowski wrote

watchdog: watchdog_stop_on_reboot()

2021-01-18 Thread Paul Thomas
Hello, I'm going through our out-of-tree commits, and was wondering if there is anything to be done with this one. Basically we remove both watchdog_stop_on_reboot() calls (not sure why there are two to begin with): --- a/drivers/watchdog/cadence_wdt.c +++ b/drivers/watchdog/cadence_wdt.c @@ -330,

[PATCH v5 1/2] Documentation: livepatch: Convert to automatically generated contents

2021-01-18 Thread Mark Brown
Automatically generate the tables of contents for livepatch documentation files that have tables of contents rather than open coding them so things are a little easier to maintain. Signed-off-by: Mark Brown --- Documentation/livepatch/livepatch.rst | 15 +-- Documentation/liv

[PATCH v5 0/2] Documentation: livepatch: Document reliable stacktrace and minor cleanup

2021-01-18 Thread Mark Brown
This series adds a document, mainly written by Mark Rutland, which makes explicit the requirements for implementing reliable stacktrace in order to aid architectures adding this feature. It also updates the other livepatching documents to use automatically generated tables of contents following re

Re: [PATCH V3] mm/compaction: correct deferral logic for proactive compaction

2021-01-18 Thread Vlastimil Babka
On 1/18/21 6:12 PM, Charan Teja Reddy wrote: > should_proactive_compact_node() returns true when sum of the > weighted fragmentation score of all the zones in the node is greater > than the wmark_high of compaction, which then triggers the proactive > compaction that operates on the individual zone

[PATCH v2] thermal/core: Make cooling device state change private

2021-01-18 Thread Daniel Lezcano
The change of the cooling device state should be used by the governor or at least by the core code, not by the drivers themselves. Remove the API usage and move the function declaration to the internal headers. Signed-off-by: Daniel Lezcano Acked-by: Guenter Roeck --- drivers/hwmon/pwm-fan.c

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-18 Thread Geert Uytterhoeven
Hi Saravana, On Fri, Dec 18, 2020 at 4:34 AM Saravana Kannan wrote: > Cyclic dependencies in some firmware was one of the last remaining > reasons fw_devlink=on couldn't be set by default. Now that cyclic > dependencies don't block probing, set fw_devlink=on by default. > > Setting fw_devlink=on

Re: [PATCH] usb: bdc: Remove the BDC PCI driver

2021-01-18 Thread Greg Kroah-Hartman
On Mon, Jan 18, 2021 at 01:54:16PM +0100, Patrik Jakobsson wrote: > On Mon, Jan 18, 2021 at 1:22 PM Felipe Balbi wrote: > > > > > > Hi, > > > > Greg Kroah-Hartman writes: > > >> Al Cooper writes: > > >> > The BDC PCI driver was only used for design verification with > > >> > an PCI/FPGA board. T

Re: [PATCH] KVM: x86/mmu: Remove the defunct update_pte() paging hook

2021-01-18 Thread Paolo Bonzini
On 15/01/21 01:40, Sean Christopherson wrote: Remove the update_pte() shadow paging logic, which was obsoleted by commit 4731d4c7a077 ("KVM: MMU: out of sync shadow core"), but never removed. As pointed out by Yu, KVM never write protects leaf page tables for the purposes of shadow paging, and i

Re: [PATCH bpf-next v2 2/2] docs: bpf: Clarify -mcpu=v3 requirement for atomic ops

2021-01-18 Thread Yonghong Song
On 1/18/21 7:57 AM, Brendan Jackman wrote: Alexei pointed out [1] that this wording is pretty confusing. Here's an attempt to be more explicit and clear. [1] https://lore.kernel.org/bpf/CAADnVQJVvwoZsE1K+6qRxzF7+6CvZNzygnoBW9tZNWJELk5c=q...@mail.gmail.com/T/#m07264fc18fdc43af02fc1320968afefc

Re: [PATCH] KVM: x86: Zap the oldest MMU pages, not the newest

2021-01-18 Thread Paolo Bonzini
On 13/01/21 21:50, Sean Christopherson wrote: Walk the list of MMU pages in reverse in kvm_mmu_zap_oldest_mmu_pages(). The list is FIFO, meaning new pages are inserted at the head and thus the oldest pages are at the tail. Using a "forward" iterator causes KVM to zap MMU pages that were just add

Re: [PATCH] KVM: x86: Add more protection against undefined behavior in rsvd_bits()

2021-01-18 Thread Paolo Bonzini
On 13/01/21 21:45, Sean Christopherson wrote: Add compile-time asserts in rsvd_bits() to guard against KVM passing in garbage hardcoded values, and cap the upper bound at '63' for dynamic values to prevent generating a mask that would overflow a u64. Suggested-by: Paolo Bonzini Signed-off-by: S

Re: [RFC PATCH 0/1] net: arcnet: Fix RESET sequence

2021-01-18 Thread Jakub Kicinski
On Mon, 18 Jan 2021 11:45:44 +0100 Ahmed S. Darwish wrote: > On Mon, Jan 11, 2021 at 02:54:06PM +0100, Ahmed S. Darwish wrote: > > Hi, > > > > On Tue, Dec 22, 2020 at 10:03:37AM +0100, Ahmed S. Darwish wrote: > > ... > > > > > > Included is an RFC patch to fix the points above: if the RESET flag

Re: [PATCH v5] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-18 Thread Sedat Dilek
On Mon, Jan 18, 2021 at 1:39 PM Sedat Dilek wrote: > > On Mon, Jan 18, 2021 at 3:32 AM Bill Wendling wrote: > > > > On Sun, Jan 17, 2021 at 4:27 PM Sedat Dilek wrote: > > > > > > [ big snip ] > > > > [More snippage.] > > > > > [ CC Fangrui ] > > > > > > With the attached... > > > > > >[PATCH

[PATCH] x86/cpu/zhaoxin: Fix wrong lowercase naming and indent

2021-01-18 Thread Isaac Chen
This is printed during kernel boot, match it with other supported x86 cpus. [0.00] KERNEL supported cpus: [0.00] Intel GenuineIntel [0.00] AMD AuthenticAMD [0.00] Hygon HygonGenuine [0.00] Centaur CentaurHauls [0.00]

Re: {standard input}:577: Error: unsupported relocation against base

2021-01-18 Thread Christophe Leroy
Le 05/01/2021 à 11:58, kernel test robot a écrit : tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 commit: 8b8319b181fd9d6821703fef1228b4dcde613a16 powerpc/44x: Don't support 440 when CONFIG_PPC_47x is set I

Re: [PATCH 2/2] sh: boot: avoid unneeded rebuilds under arch/sh/boot/compressed/

2021-01-18 Thread John Paul Adrian Glaubitz
On 1/17/21 12:16 PM, Masahiro Yamada wrote: > Even if none of source code is updated, the following are every time > rebuilt: > > CC arch/sh/boot/compressed/cache.o > SHIPPED arch/sh/boot/compressed/ashiftrt.S > AS arch/sh/boot/compressed/ashiftrt.o > SHIPPED arch/sh/boot/compres

Re: [PATCH] ALSA: hda: Balance runtime/system PM if direct-complete is disabled

2021-01-18 Thread Kai-Heng Feng
On Mon, Jan 18, 2021 at 9:21 PM Takashi Iwai wrote: > > On Mon, 18 Jan 2021 14:09:36 +0100, > Kai-Heng Feng wrote: > > > > HDA controller can't be runtime-suspended after commit 215a22ed31a1 > > ("ALSA: hda: Refactor codjc PM to use direct-complete optimization"), > > which enables direct-complete

Re: [PATCH 1/2] sh: boot: add intermediate vmlinux.bin* to targets instead of extra-y

2021-01-18 Thread John Paul Adrian Glaubitz
On 1/17/21 12:16 PM, Masahiro Yamada wrote: > You do not need to build all of vmlinux.bin* > > They are built on demand as prerequsites of uImage.bin*, hence should > be added to targets instead of extra-y. > > Signed-off-by: Masahiro Yamada > --- > > arch/sh/boot/Makefile | 4 ++-- > 1 file c

Re: [PATCH 1/2] media: venus: core: Add sdm660 DT compatible and resource struct

2021-01-18 Thread Stanimir Varbanov
Hi Angelo, Thanks for the patch! On 1/15/21 8:52 PM, AngeloGioacchino Del Regno wrote: > Add the SDM660 DT compatible and its resource structure, also > including support for the Venus pmdomains, in order to support > the Venus block in SDM630, SDM636, SDM660 and SDA variants. > > This SoC featu

Re: [PATCH v2] fs/proc: Expose RSEQ configuration

2021-01-18 Thread Piotr Figiel
Hi, thanks for review. On Fri, Jan 15, 2021 at 10:44:20AM -0500, Mathieu Desnoyers wrote: > - On Jan 14, 2021, at 1:54 PM, Piotr Figiel fig...@google.com wrote: > Added PeterZ, Paul and Boqun to CC. They are also listed as maintainers of > rseq. > Please CC them in your next round of patches.

Re: [PATCH 00/29] [Set 15] Finally rid W=1 warnings from GPU!

2021-01-18 Thread Daniel Vetter
On Mon, Jan 18, 2021 at 03:09:45PM +, Lee Jones wrote: > On Mon, 18 Jan 2021, Daniel Vetter wrote: > > > On Fri, Jan 15, 2021 at 06:27:15PM +, Zack Rusin wrote: > > > > > > > On Jan 15, 2021, at 13:15, Lee Jones wrote: > > > > > > > > This set is part of a larger effort attempting to cl

Re: [PATCH v2 08/12] ASoC: arizona-jack: convert into a helper library for codec drivers

2021-01-18 Thread Andy Shevchenko
On Sun, Jan 17, 2021 at 6:06 PM Hans de Goede wrote: > > Convert the arizona extcon driver into a helper library for direct use > from the arizona codec-drivers, rather then being bound to a separate > MFD cell. > > Note the probe (and remove) sequence is split into 2 parts: > > 1. The arizona_jac

Re: [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support

2021-01-18 Thread Josh Poimboeuf
On Thu, Jan 14, 2021 at 04:41:28PM -0800, Sami Tolvanen wrote: > I can confirm that all the warnings I previously saw are now fixed, > but I'm seeing a few new ones: > > vmlinux.o: warning: objtool: balance_leaf_when_delete()+0x17d4: stack state > mismatch: cfa1=7+192 cfa2=7+176 > vmlinux.o: warn

[PATCH v2 11/27] mm/memcg: Add folio_memcg, lock_folio_memcg and unlock_folio_memcg

2021-01-18 Thread Matthew Wilcox (Oracle)
The memcontrol code already assumes that page_memcg() will be called with a non-tail page, so make that more natural by wrapping it with a folio API. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/memcontrol.h | 16 mm/memcontrol.c| 36 +

Re: [PATCH 2/2] media: dt-bindings: media: venus: Add sdm660 DT schema

2021-01-18 Thread Stanimir Varbanov
On 1/17/21 9:23 PM, AngeloGioacchino Del Regno wrote: > Il 17/01/21 16:45, Rob Herring ha scritto: >> On Fri, 15 Jan 2021 19:52:52 +0100, AngeloGioacchino Del Regno wrote: >>> Add new qcom,sdm660-venus DT binding schema. >>> >>> Signed-off-by: AngeloGioacchino Del Regno >>> >>> --- >>>   .../bi

[PATCH v2 03/27] mm/vmstat: Add folio stat wrappers

2021-01-18 Thread Matthew Wilcox (Oracle)
Allow page counters to be more readily modified by callers which have a folio. Name these wrappers with 'stat' instead of 'state' as requested by Linus here: https://lore.kernel.org/linux-mm/CAHk-=wj847sudr-kt+46ft3+xffgiwpgthvm7djwgdi4cvr...@mail.gmail.com/ Signed-off-by: Matthew Wilcox (Oracle)

[PATCH v2 01/27] mm: Introduce struct folio

2021-01-18 Thread Matthew Wilcox (Oracle)
We have trouble keeping track of whether we've already called compound_head() to ensure we're not operating on a tail page. Further, it's never clear whether we intend a struct page to refer to PAGE_SIZE bytes or page_size(compound_head(page)). Introduce a new type 'struct folio' that always refe

[PATCH v2 04/27] mm/debug: Add VM_BUG_ON_FOLIO and VM_WARN_ON_ONCE_FOLIO

2021-01-18 Thread Matthew Wilcox (Oracle)
These are the folio equivalents of VM_BUG_ON_PAGE and VM_WARN_ON_ONCE_PAGE. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mmdebug.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/mmdebug.h b/include/linux/mmdebug.h index 5d0767cb424a..77d24e1dc

[PATCH v2 06/27] mm: Add get_folio

2021-01-18 Thread Matthew Wilcox (Oracle)
If we know we have a folio, we can call get_folio() instead of get_page() and save the overhead of calling compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/include/linux/mm.h b/

Re: [PATCH 03/10] drm/atmel-hlcdc: Rename custom plane state variable

2021-01-18 Thread Maxime Ripard
Hi Sam On Fri, Jan 15, 2021 at 09:43:24PM +0100, Sam Ravnborg wrote: > On Fri, Jan 15, 2021 at 01:56:55PM +0100, Maxime Ripard wrote: > > Subsequent reworks will pass the global atomic state in the function > > prototype, and atomic_check and atomic_update already have such a > > variable already.

[PATCH v2 10/27] mm/util: Add folio_mapping and folio_file_mapping

2021-01-18 Thread Matthew Wilcox (Oracle)
These are the folio equivalent of page_mapping() and page_file_mapping(). Adjust page_file_mapping() and page_mapping_file() to use folios internally. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 23 +++ mm/swapfile.c | 6 +++--- mm/util.c |

[PATCH v2 07/27] mm: Create FolioFlags

2021-01-18 Thread Matthew Wilcox (Oracle)
These new functions are the folio analogues of the PageFlags functions. If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio is not a tail page at every invocation. Note that this will also catch the PagePoisoned case as a poisoned page has every bit set, which would include PageTail. Signed

[PATCH v2 09/27] mm: Add folio_index, folio_page and folio_contains

2021-01-18 Thread Matthew Wilcox (Oracle)
folio_index() is the equivalent of page_index() for folios. folio_page() finds the page in a folio for a page cache index. folio_contains() tells you whether a folio contains a particular page cache index. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 23

[PATCH] checkpatch: Improve TYPECAST_INT_CONSTANT test message

2021-01-18 Thread Joe Perches
Improve the TYPECAST_INT_CONSTANT test by showing the suggested conversion for various type of uses like (unsigned int)1 to 1U. Signed-off-by: Joe Perches --- Douglas Gilbert sent me a private email (and in that email said he 'loves to hate checkpatch' ;) complaining that checkpatch warned on th

[PATCH v2 12/27] mm/memcg: Add mem_cgroup_folio_lruvec

2021-01-18 Thread Matthew Wilcox (Oracle)
mem_cgroup_page_lruvec() already expects a head page, so this will add some typesafety once we can remove mem_cgroup_page_lruvec(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/memcontrol.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/memcontrol.h b/include

Re: [PATCH bpf-next v2 1/2] docs: bpf: Fixup atomics markup

2021-01-18 Thread Lukas Bulwahn
On Mon, Jan 18, 2021 at 4:59 PM Brendan Jackman wrote: > > This fixues up the markup to fix a warning, be more consistent with s/fixues/fixes/ ? > use of monospace, and use the correct .rst syntax for (* instead > of _). > > NB this conflicts with Lukas' patch at [1], which just fixes the > wa

[PATCH v2 13/27] mm: Add unlock_folio

2021-01-18 Thread Matthew Wilcox (Oracle)
Convert unlock_page() to call unlock_folio(). By using a folio we avoid a call to compound_head(). This shortens the function from 39 bytes to 25 and removes 4 instructions on x86-64. Those instructions are currently pushed into each caller, but subsequent patches will convert many of the caller

Re: [PATCH] PM / devfreq: Add sysfs attributes to simple_ondemand governor

2021-01-18 Thread Greg KH
On Fri, Jan 15, 2021 at 05:05:30PM +, Lukasz Luba wrote: > The simple_ondemand devfreq governor is used by quite a few devices, like > GPUs, DSPs, memory controllers, etc. It implements algorithm which tries > to predict the device frequency based on past statistics. There are two > tunables fo

Re: linux-next: Tree for Jan 18 (objtool: 2 warnings)

2021-01-18 Thread Randy Dunlap
On 1/17/21 10:48 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210115: > on x86_64: lib/iov_iter.o: warning: objtool: iovec_from_user()+0x157: call to __ubsan_handle_add_overflow() with UACCESS enabled fs/select.o: warning: objtool: do_sys_poll()+0x669: call to __ubsan_handle_sub_

[PATCH] drm/nouveau/svm: fail NOUVEAU_SVM_INIT ioctl on unsupported devices

2021-01-18 Thread Karol Herbst
Fixes a crash when trying to create a channel on e.g. Turing GPUs when NOUVEAU_SVM_INIT was called before. Fixes: eeaf06ac1a558 ("drm/nouveau/svm: initial support for shared virtual memory") Signed-off-by: Karol Herbst --- drivers/gpu/drm/nouveau/nouveau_svm.c | 4 1 file changed, 4 insert

Re: [PATCH] thermal: power allocator: Add control for non-power actor devices

2021-01-18 Thread Lukasz Luba
On 1/18/21 4:07 PM, Daniel Lezcano wrote: On 05/01/2021 20:01, Lukasz Luba wrote: The cooling devices which are used in IPA should provide power mapping functions. The callback functions are used for power estimation and state setting. When these functions are missing IPA ignores such cooling

Re: [PATCH v3 6/7] iommu/mediatek: Gather iova in iommu_unmap to achieve tlb sync once

2021-01-18 Thread Robin Murphy
On 2021-01-18 16:58, Will Deacon wrote: On Mon, Jan 18, 2021 at 04:35:22PM +, Robin Murphy wrote: On 2020-12-16 10:36, Yong Wu wrote: In current iommu_unmap, this code is: iommu_iotlb_gather_init(&iotlb_gather); ret = __iommu_unmap(domain, iova, size, &iotlb_gather);

[PATCH v2 18/27] mm/filemap: Convert wait_on_page_locked_async to wait_on_folio_locked_async

2021-01-18 Thread Matthew Wilcox (Oracle)
This saves a few calls to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 648f78577ab7..e997f4424ed9 100644 --- a/mm/filemap.c +++ b/mm/filemap.

[PATCH] drm/nouveau/svm: fail NOUVEAU_SVM_INIT ioctl on unsupported devices

2021-01-18 Thread Karol Herbst
Fixes a crash when trying to create a channel on e.g. Turing GPUs when NOUVEAU_SVM_INIT was called before. Fixes: eeaf06ac1a558 ("drm/nouveau/svm: initial support for shared virtual memory") Signed-off-by: Karol Herbst --- drivers/gpu/drm/nouveau/nouveau_svm.c | 4 1 file changed, 4 insert

[PATCH v2 20/27] mm: Convert wait_on_page_bit to wait_on_folio_bit

2021-01-18 Thread Matthew Wilcox (Oracle)
We must deal with folios here otherwise we'll get the wrong waitqueue and fail to receive wakeups. Signed-off-by: Matthew Wilcox (Oracle) --- fs/afs/write.c | 2 +- include/linux/pagemap.h | 14 ++- mm/filemap.c| 54 ++--- mm/page

Re: [PATCH 1/2] [v2] lib/hexdump: introduce DUMP_PREFIX_UNHASHED for unhashed addresses

2021-01-18 Thread Andy Shevchenko
On Mon, Jan 18, 2021 at 09:57:55AM -0600, Timur Tabi wrote: > On 1/18/21 4:03 AM, Andy Shevchenko wrote: > > On Sun, Jan 17, 2021 at 12:12 AM Timur Tabi wrote: ... > > Any user of this? (For the record, I don't see any other mail except this > > one) > It's patch #2 of this set. I haven't got

[PATCH V3] mm/compaction: correct deferral logic for proactive compaction

2021-01-18 Thread Charan Teja Reddy
should_proactive_compact_node() returns true when sum of the weighted fragmentation score of all the zones in the node is greater than the wmark_high of compaction, which then triggers the proactive compaction that operates on the individual zones of the node. But proactive compaction runs on the z

[PATCH v2 14/27] mm: Add lock_folio

2021-01-18 Thread Matthew Wilcox (Oracle)
This is like lock_page() but for use by callers who know they have a folio. Convert __lock_page() to be __lock_folio(). This saves one call to compound_head() per contended call to lock_page(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 21 +++-- mm/fil

Re: [PATCH v9 15/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2021-01-18 Thread Dave Jiang
On 1/4/2021 8:29 AM, Kishon Vijay Abraham I wrote: Add support for EPF PCI-Express Non-Transparent Bridge (NTB) device. This driver is platform independent and could be used by any platform which have multiple PCIe endpoint instances configured using the pci-epf-ntb driver. The driver connnects

[PATCH v2 16/27] mm: Convert lock_page_async to lock_folio_async

2021-01-18 Thread Matthew Wilcox (Oracle)
When the caller already has a folio, this saves a call to compound_head(). If not, the call to compound_head() is merely moved. Signed-off-by: Matthew Wilcox (Oracle) --- fs/io_uring.c | 2 +- include/linux/pagemap.h | 14 +++--- mm/filemap.c| 6 +++--- 3 files ch

[PATCH v2 17/27] mm/filemap: Convert lock_page_for_iocb to lock_folio_for_iocb

2021-01-18 Thread Matthew Wilcox (Oracle)
The callers will eventually all have a folio, but for now do the conversion at the call sites. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 95015bc57bb7..648f78577ab7 100

[PATCH v2 19/27] mm/filemap: Convert end_page_writeback to end_folio_writeback

2021-01-18 Thread Matthew Wilcox (Oracle)
Add a wrapper function for users that are not yet converted to folios. With a distro config, this function shrinks from 213 bytes to 105 bytes due to elimination of repeated calls to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 6 +- mm/filemap.c

[PATCH v2 25/27] mm: Convert test_clear_page_writeback to test_clear_folio_writeback

2021-01-18 Thread Matthew Wilcox (Oracle)
The one caller of test_clear_page_writeback() already has a folio, so make it clear that test_clear_page_writeback() operates on the entire folio. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 2 +- mm/filemap.c | 2 +- mm/page-writeback.c| 18 ++

Re: [PATCH 2/2] sh: boot: avoid unneeded rebuilds under arch/sh/boot/compressed/

2021-01-18 Thread John Paul Adrian Glaubitz
Hi Masahiro! On 1/17/21 5:21 PM, Masahiro Yamada wrote: >> This patch doesn't apply for me while the first one applies without problems: >> >> glaubitz@epyc:..glaubitz/linux-git> git am ../sh-patches-2021/\[PATCH\ >> 1_2\]\ sh\:\ boot\:\ add\ intermediate\ vmlinux.bin\*\ to\ targets\ instead\ >>

[PATCH v2 22/27] mm: Add wait_on_folio_locked & wait_on_folio_locked_killable

2021-01-18 Thread Matthew Wilcox (Oracle)
Turn wait_on_page_locked() and wait_on_page_locked_killable() into wrappers. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 619bfc6ea1

[PATCH v2 26/27] mm/filemap: Convert page wait queues to be folios

2021-01-18 Thread Matthew Wilcox (Oracle)
Reinforce that if we're waiting for a bit in a struct page, that's actually in the head page by changing the type from page to folio. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 6 +++--- mm/filemap.c| 30 -- 2 files changed, 19 i

Re: [PATCH v2 6/7] platform: x86: Add intel_skl_int3472 driver

2021-01-18 Thread Laurent Pinchart
Hi Hans, On Mon, Jan 18, 2021 at 04:32:54PM +0100, Hans de Goede wrote: > On 1/18/21 4:23 PM, andriy.shevche...@linux.intel.com wrote: > > On Mon, Jan 18, 2021 at 02:51:30PM +, Barnabás Pőcze wrote: > >> 2021. január 18., hétfő 14:51 keltezéssel, Andy Shevchenko írta: > >> > >>> On Mon, Jan 18

[PATCH v2 27/27] cachefiles: Switch to wait_page_key

2021-01-18 Thread Matthew Wilcox (Oracle)
Cachefiles was relying on wait_page_key and wait_bit_key being the same layout, which is fragile. Now that wait_page_key is exposed in the pagemap.h header, we can remove that fragility. Also switch it to use the folio directly instead of the page. Signed-off-by: Matthew Wilcox (Oracle) --- fs

[PATCH v2 24/27] mm/filemap: Convert wake_up_page_bit to wake_up_folio_bit

2021-01-18 Thread Matthew Wilcox (Oracle)
All callers have a folio, so use it directly. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 4ece44f694f6..a2d9ee6e78ae 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -108

[PATCH v2 23/27] mm: Convert lock_page_or_retry to lock_folio_or_retry

2021-01-18 Thread Matthew Wilcox (Oracle)
There's already a hidden compound_head() call in trylock_page(), so just make it explicit in the caller, which may later have a folio for its own reasons. This saves a call to compound_head() inside __lock_page_or_retry(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 10

[PATCH v2 15/27] mm: Add lock_folio_killable

2021-01-18 Thread Matthew Wilcox (Oracle)
This is like lock_page_killable() but for use by callers who know they have a folio. Convert __lock_page_killable() to be __lock_folio_killable(). This saves one call to compound_head() per contended call to lock_page_killable(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap

[PATCH v2 08/27] mm: Handle per-folio private data

2021-01-18 Thread Matthew Wilcox (Oracle)
Add folio_private() and set_folio_private() which mirror page_private() and set_page_private() -- ie folio private data is the same as page private data. Turn attach_page_private() into attach_folio_private() and reimplement attach_page_private() as a wrapper. No filesystem which uses page privat

YOU HAVE WON

2021-01-18 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

[PATCH v2 21/27] mm: Add wait_for_stable_folio and wait_on_folio_writeback

2021-01-18 Thread Matthew Wilcox (Oracle)
Add compatibility wrappers for code which has not yet been converted to use folios. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 12 ++-- mm/page-writeback.c | 27 +-- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/inc

[PATCH v2 05/27] mm: Add put_folio

2021-01-18 Thread Matthew Wilcox (Oracle)
If we know we have a folio, we can call put_folio() instead of put_page() and save the overhead of calling compound_head(). Also skips the devmap checks. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --

[PATCH v2 00/27] Page folios

2021-01-18 Thread Matthew Wilcox (Oracle)
just an introduction. I have dozens more patches in progress which you can find at https://git.infradead.org/users/willy/pagecache.git/shortlog/refs/heads/folio (currently based on next-20210118) The focus for this patch series is on introducing infrastructure. The big correctness proof that exists

[PATCH v2 02/27] mm: Add folio_pgdat

2021-01-18 Thread Matthew Wilcox (Oracle)
This is just a convenience wrapper for callers with folios; pgdat can be reached from tail pages as well as head pages. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 0858af6479a

Re: [PATCH v3 6/7] iommu/mediatek: Gather iova in iommu_unmap to achieve tlb sync once

2021-01-18 Thread Will Deacon
On Mon, Jan 18, 2021 at 04:35:22PM +, Robin Murphy wrote: > On 2020-12-16 10:36, Yong Wu wrote: > > In current iommu_unmap, this code is: > > > > iommu_iotlb_gather_init(&iotlb_gather); > > ret = __iommu_unmap(domain, iova, size, &iotlb_gather); > > iommu_iotlb_sync(domain, &iotlb_

Re: [PATCH] sh_eth: Fix power down vs. is_opened flag ordering

2021-01-18 Thread Sergei Shtylyov
On 1/18/21 6:08 PM, Geert Uytterhoeven wrote: > sh_eth_close() does a synchronous power down of the device before > marking it closed. Revert the order, to make sure the device is never > marked opened while suspended. > > While at it, use pm_runtime_put() instead of pm_runtime_put_sync(), as >

Re: [PATCH RFC v1 0/3] Introduce vfio-pci-core subsystem

2021-01-18 Thread Jason Gunthorpe
On Mon, Jan 18, 2021 at 02:38:06PM +0100, Cornelia Huck wrote: > > These devices will be seen on the Auxiliary bus as: > > mlx5_core.vfio_pci.2048 -> > > ../../../devices/pci:00/:00:02.0/:05:00.0/:06:00.0/:07:00.0/mlx5_core.vfio_pci.2048 > > mlx5_core.vfio_pci.2304 -> > > ../

Re: [PATCH v2 10/13] mfd: hi6421-spmi-pmic: move driver from staging

2021-01-18 Thread Lee Jones
On Mon, 18 Jan 2021, Mauro Carvalho Chehab wrote: > This driver is ready for mainstream. So, move it out of staging. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 133 +++ > MAINTAINERS | 7 + > drivers/m

Re: [RFC PATCH v2 08/13] virtio/vsock: dequeue callback for SOCK_SEQPACKET.

2021-01-18 Thread Stefano Garzarella
On Fri, Jan 15, 2021 at 08:43:24AM +0300, Arseny Krasnov wrote: This adds transport callback and it's logic for SEQPACKET dequeue. Callback fetches RW packets from rx queue of socket until whole record is copied(if user's buffer is full, user is not woken up). This is done to not stall sender, be

Re: [PATCH v3 0/5] Expose RPi4's bootloader configuration

2021-01-18 Thread Srinivas Kandagatla
On 12/01/2021 14:23, Nicolas Saenz Julienne wrote: Soon to be released versions of RPi4's firmware will take of care passing their bootloader's configuration[1] to the OS by copying it into memory and creating a reserved memory node in the board's DT. By modeling this reserved memory node as a

Re: Multiple MODALIAS= in uevent file confuses userspace

2021-01-18 Thread Andy Shevchenko
On Mon, Jan 18, 2021 at 05:40:36PM +0100, Greg Kroah-Hartman wrote: > On Mon, Jan 18, 2021 at 05:27:44PM +0200, Andy Shevchenko wrote: > > On Mon, Jan 18, 2021 at 03:58:18PM +0100, Greg Kroah-Hartman wrote: > > > On Mon, Jan 18, 2021 at 04:48:53PM +0200, Andy Shevchenko wrote: > > > > On Mon, Jan 1

WARNING in smk_set_cipso

2021-01-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:65f0d241 Merge tag 'sound-5.11-rc4' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136656f750 kernel config: https://syzkaller.appspot.com/x/.config?x=ee2266946ed36986 das

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