[PATCHv2 3/4] arm64: dts: qcom: sc7280: Add AOSS QMP node

2021-03-15 Thread Sai Prakash Ranjan
Add a DT node for the AOSS QMP on SC7280 SoC. Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 6c6fa4fa1b0f..ae3d2b3136

Re: [PATCH v3] mm: huge_memory: a new debugfs interface for splitting THP tests.

2021-03-15 Thread Zi Yan
On 15 Mar 2021, at 8:07, Kirill A. Shutemov wrote: > On Thu, Mar 11, 2021 at 07:57:12PM -0500, Zi Yan wrote: >> From: Zi Yan >> >> We do not have a direct user interface of splitting the compound page >> backing a THP > > But we do. You expand it. > >> and there is no need unless we want to expos

Re: [PATCH 30/38] dt-bindings: power: supply: lp8727: Convert to DT schema format

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:52 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/lp8727_charger.txt | 43 --- > .../bindings/power/supply/ti,lp8727.yaml | 112 ++ > 2 files chan

Re: [PATCH v1 00/14] Multigenerational LRU

2021-03-15 Thread Yang Shi
On Fri, Mar 12, 2021 at 11:57 PM Yu Zhao wrote: > > TLDR > > The current page reclaim is too expensive in terms of CPU usage and > often making poor choices about what to evict. We would like to offer > a performant, versatile and straightforward augment. > > Repo > > git fetch https://l

Re: [PATCH v15 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-15 Thread Dmitry Osipenko
15.03.2021 01:31, Michał Mirosław пишет: > On Thu, Mar 11, 2021 at 08:22:54PM +0300, Dmitry Osipenko wrote: >> Display controller (DC) performs isochronous memory transfers, and thus, >> has a requirement for a minimum memory bandwidth that shall be fulfilled, >> otherwise framebuffer data can't be

Re: [PATCH v2] seq_file: Unconditionally use vmalloc for buffer

2021-03-15 Thread Al Viro
On Mon, Mar 15, 2021 at 10:48:51AM -0700, Kees Cook wrote: > The sysfs interface to seq_file continues to be rather fragile, as seen > with some recent exploits[1]. Move the seq_file buffer to the vmap area > (while retaining the accounting flag), since it has guard pages that > will catch and stop

Re: [PATCH v7] do_wait: make PIDTYPE_PID case O(1) instead of O(n)

2021-03-15 Thread Oleg Nesterov
On 03/14, Jim Newsome wrote: > > Since v5: > * Switched back to explicitly looking up by tgid and then pid. OK, as I said I won't argue, still looks good to me. Reviewed-by: Oleg Nesterov

Re: [PATCH v16 6/9] arm64: mte: Conditionally compile mte_enable_kernel_*()

2021-03-15 Thread Catalin Marinas
On Mon, Mar 15, 2021 at 01:20:16PM +, Vincenzo Frascino wrote: > mte_enable_kernel_*() are not needed if KASAN_HW is disabled. > > Add ash defines around the functions to conditionally compile the > functions. > > Signed-off-by: Vincenzo Frascino Acked-by: Catalin Marinas (BTW, Andrey now

Re: [PATCH] selftests/timers: Fix spelling mistake "clocksourc" -> "clocksource"

2021-03-15 Thread John Stultz
On Mon, Mar 15, 2021 at 5:33 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in a comment. Fix it. > > Signed-off-by: Colin Ian King Akcde-yb: John Stultz I kid, I kid! My apologies and thanks! Acked-by: John Stultz

Re: [PATCH v2] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-03-15 Thread Mike Kravetz
On 3/12/21 7:11 PM, Miaohe Lin wrote: > On 2021/3/13 3:09, Mike Kravetz wrote: >> On 3/1/21 4:05 AM, Miaohe Lin wrote: >>> The current implementation of hugetlb_cgroup for shared mappings could have >>> different behavior. Consider the following two scenarios: >>> >>> 1.Assume initial css reference

Re: [PATCH] selftests: timers: remove unneeded semicolon

2021-03-15 Thread John Stultz
On Mon, Mar 15, 2021 at 1:08 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./tools/testing/selftests/timers/inconsistency-check.c:75:2-3: Unneeded > semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong No objection here. Thanks for sending this along.

[PATCH v1 1/1] gpiolib: Assign fwnode to parent's if no primary one provided

2021-03-15 Thread Andy Shevchenko
In case when the properties are supplied in the secondary fwnode (for example, built-in device properties) the fwnode pointer left unassigned. This makes unable to retrieve them. Assign fwnode to parent's if no primary one provided. Fixes: 7cba1a4d5e16 ("gpiolib: generalize devprop_gpiochip_set_n

[PATCHv2] dt-bindings: mailbox: qcom-ipcc: Add compatible for SC7280

2021-03-15 Thread Sai Prakash Ranjan
Add IPCC compatible for SC7280 SoC. Cc: Manivannan Sadhasivam Cc: Jassi Brar Signed-off-by: Sai Prakash Ranjan Reviewed-by: Manivannan Sadhasivam Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documen

[PATCH net-next v5 4/6] net: qualcomm: rmnet: use masks instead of C bit-fields

2021-03-15 Thread Alex Elder
The actual layout of bits defined in C bit-fields (e.g. int foo : 3) is implementation-defined. Structures defined in address this by specifying all bit-fields twice, to cover two possible layouts. I think this pattern is repetitive and noisy, and I find the whole notion of compiler "bitfield en

[PATCH net-next v5 1/6] net: qualcomm: rmnet: mark trailer field endianness

2021-03-15 Thread Alex Elder
The fields in the checksum trailer structure used for QMAP protocol RX packets are all big-endian format, so define them that way. It turns out these fields are never actually used by the RMNet code. The start offset is always assumed to be zero, and the length is taken from the other packet heade

Re: [PATCH v1 1/1] gpiolib: Assign fwnode to parent's if no primary one provided

2021-03-15 Thread Andy Shevchenko
On Mon, Mar 15, 2021 at 08:44:30PM +0200, Andy Shevchenko wrote: > In case when the properties are supplied in the secondary fwnode > (for example, built-in device properties) the fwnode pointer left > unassigned. This makes unable to retrieve them. > > Assign fwnode to parent's if no primary one

[PATCH net-next v5 3/6] net: qualcomm: rmnet: kill RMNET_MAP_GET_*() accessor macros

2021-03-15 Thread Alex Elder
The following macros, defined in "rmnet_map.h", assume a socket buffer is provided as an argument without any real indication this is the case. RMNET_MAP_GET_MUX_ID() RMNET_MAP_GET_CD_BIT() RMNET_MAP_GET_PAD() RMNET_MAP_GET_CMD_START() RMNET_MAP_GET_LENGTH() What they hide is pr

Re: [PATCH v3 0/4] mm/slub: Fix count_partial() problem

2021-03-15 Thread Vlastimil Babka
On 3/9/21 4:25 PM, Xunlei Pang wrote: > count_partial() can hold n->list_lock spinlock for quite long, which > makes much trouble to the system. This series eliminate this problem. Before I check the details, I have two high-level comments: - patch 1 introduces some counting scheme that patch 4 t

[PATCH net-next v5 2/6] net: qualcomm: rmnet: simplify some byte order logic

2021-03-15 Thread Alex Elder
In rmnet_map_ipv4_ul_csum_header() and rmnet_map_ipv6_ul_csum_header() the offset within a packet at which checksumming should commence is calculated. This calculation involves byte swapping and a forced type conversion that makes it hard to understand. Simplify this by computing the offset in ho

[PATCH net-next v5 6/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header

2021-03-15 Thread Alex Elder
Replace the use of C bit-fields in the rmnet_map_ul_csum_header structure with a single two-byte (big endian) structure member, and use masks to encode or get values within it. The content of these fields can be accessed using simple bitwise AND and OR operations on the (host byte order) value of

[PATCH net-next v5 0/6] net: qualcomm: rmnet: stop using C bit-fields

2021-03-15 Thread Alex Elder
Version 5 of this series responds to a suggestion made by Alexander Duyck, to determine the offset to the checksummed range of a packet using skb_network_header_len() on patch 2. I have added his Reviewed-by tag to all (other) patches, and removed Bjorn's from patch 2. The change required some up

[PATCH net-next v5 5/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum trailer

2021-03-15 Thread Alex Elder
Replace the use of C bit-fields in the rmnet_map_dl_csum_trailer structure with a single one-byte field, using constant field masks to encode or get at embedded values. Signed-off-by: Alex Elder Reviewed-by: Bjorn Andersson Reviewed-by: Alexander Duyck --- v3: - Use BIT(x) and don't use u8_get_

[PATCH v1 1/1] gpio: mockup: Drop duplicate NULL check in gpio_mockup_unregister_pdevs()

2021-03-15 Thread Andy Shevchenko
Since platform_device_unregister() is NULL-aware, we don't need to duplicate this check. Remove it and fold the rest of the code. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c

Re: [RFC v2] net: sched: implement TCQ_F_CAN_BYPASS for lockless qdisc

2021-03-15 Thread Jakub Kicinski
On Mon, 15 Mar 2021 11:10:18 +0800 Yunsheng Lin wrote: > @@ -606,6 +623,11 @@ static const u8 prio2band[TC_PRIO_MAX + 1] = { > */ > struct pfifo_fast_priv { > struct skb_array q[PFIFO_FAST_BANDS]; > + > + /* protect against data race between enqueue/dequeue and > + * qdisc->empty

Re: [PATCH v4] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-15 Thread Dmitry Osipenko
15.03.2021 06:35, Nicolin Chen пишет: > This patch dumps all active mapping entries from pagetable > to a debugfs directory named "mappings". > > Ataching an example: Attaching > > SWGROUP: hc > ASID: 0 > reg: 0x250 > PTB_ASID: 0xe0080004 > as->pd_dma: 0x80004000 > { > [1023] 0xf008000b

Re: [GIT pull] locking/urgent for v5.12-rc3

2021-03-15 Thread Linus Torvalds
On Mon, Mar 15, 2021 at 10:03 AM Josh Poimboeuf wrote: > > Though instead of using objtool, it can be done in the module linker > script: This is obviously the way to go, but it raises another question: do we guarantee that functions are aligned? We actually have a couple of 32-bit x86 sub-archi

Re: [PATCH v3 net-next 4/6] linux/etherdevice.h: misc trailing whitespace cleanup

2021-03-15 Thread Jakub Kicinski
On Mon, 15 Mar 2021 09:38:57 + Alexander Lobakin wrote: > From: Vladimir Oltean > Date: Sun, 14 Mar 2021 23:04:53 +0200 > > > On Sun, Mar 14, 2021 at 11:11:32AM +, Alexander Lobakin wrote: > > > Caught by the text editor. Fix it separately from the actual changes. > > > > > > Signed-off

Re: [RFC PATCH v2 0/8] arm64: Implement reliable stack trace

2021-03-15 Thread Madhavan T. Venkataraman
On 3/15/21 11:57 AM, madve...@linux.microsoft.com wrote: > Proper termination of the stack trace > = > > In the unwinder, check the following for properly terminating the stack > trace: > > - Check every frame to see if it is task_pt_regs(stack)->stack

Re: [PATCH 1/2] futex: Fix irq mismatch in exit_pi_state_list()

2021-03-15 Thread Davidlohr Bueso
On Mon, 15 Mar 2021, Peter Zijlstra wrote: Or am I reading this wrong? No, I read it wrong. Please ignore this patch, there are rather a few cases that do this trickery. Thanks, Davidlohr

Re: [PATCH] docs: admin-guide: cgroup-v1: Fix typos in the file memory.rst

2021-03-15 Thread Jonathan Corbet
Bhaskar Chowdhury writes: > s/overcommited/overcommitted/ > s/Overcommiting/Overcommitting/ > > Signed-off-by: Bhaskar Chowdhury > --- > Documentation/admin-guide/cgroup-v1/memory.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/admin-guide/cgroup-v

Re: [PATCH v3 0/4] mm/slub: Fix count_partial() problem

2021-03-15 Thread Roman Gushchin
On Mon, Mar 15, 2021 at 07:49:57PM +0100, Vlastimil Babka wrote: > On 3/9/21 4:25 PM, Xunlei Pang wrote: > > count_partial() can hold n->list_lock spinlock for quite long, which > > makes much trouble to the system. This series eliminate this problem. > > Before I check the details, I have two h

Re: [PATCH v4 1/3] x86/sgx: Use sgx_free_epc_page() in sgx_reclaim_pages()

2021-03-15 Thread Jarkko Sakkinen
On Mon, Mar 15, 2021 at 08:32:13AM -0700, Dave Hansen wrote: > On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > > Replace the ad-hoc code with a sgx_free_epc_page(), in order to make sure > > that all the relevant checks and book keeping is done, while freeing a > > borrowed EPC page, and remove redund

Re: [PATCH v4 7/7] dt-bindings: clock: tegra: Convert to schema

2021-03-15 Thread Dmitry Osipenko
15.03.2021 18:53, Rob Herring пишет: > On Fri, Mar 12, 2021 at 07:36:32PM +0300, Dmitry Osipenko wrote: >> Convert NVIDIA Tegra clock bindings to schema. >> >> Signed-off-by: Dmitry Osipenko >> --- >> .../bindings/clock/nvidia,tegra-car.yaml | 118 ++ >> .../bindings/clock/nv

[PATCH v3 1/4] ALSA: hda/cirrus: Add error handling into CS8409 I2C functions

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Also removing 2 redundant cs8409_i2c_read() calls, as we already did read them in a code above. Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov Changes in v1: - No changes Changes in v2: -

[PATCH v3 3/4] ALSA: hda/cirrus: Fix CS42L42 Headset Mic volume control name

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Existing name "Headset Mic Volume Control" causes multiple Microphone entries to appear in UI. Using name "Mic Volume Control" ensures only a single Microphone entry exists when the Headset is connected. Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 S

[PATCH v3 2/4] ALSA: hda/cirrus: Cleanup patch_cirrus.c code.

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Minor changes, clean up code, remove unnecessary initialization of variables, reduced number of warnings from ./scripts/checkpatch.pl from 19 to 0 Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodio

[PATCH v3 4/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups.

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding CS8409/CS42L42 Driver currently does most of the platform specific setup inside the main body of the code, however, this setup can be moved into fixup functions, to make the driver more generic. Making the driver more generic, allows the driver to use the cs_parse_auto_confi

[PATCH v3 0/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups

2021-03-15 Thread Vitaly Rodionov
This series of patches will address comments by Pierre-Louis Bossart, cleans up patch_cirrus.c source, reducing checkpatch.pl warnings from 19 to 0, fixing an issue reported by Canonical: BugLink: https://bugs.launchpad.net/bugs/1918378, and makes the CS8409 patch more generic by using fixups. St

[PATCH] jfs: fix use-after-free in lbmIODone

2021-03-15 Thread Anirudh Rayabharam
Fix use-after-free by waiting for ongoing IO to complete before freeing lbufs in lbmLogShutdown. Add a counter in struct jfs_log to keep track of the number of in-flight IO operations and a wait queue to wait on for the IO operations to complete. Reported-by: syzbot+5d2008bd1f1b722ba...@syzkaller.

Re: [PATCH 2/3] arm64: dts: qcom: sm8150: add iommus to qups

2021-03-15 Thread Bhupesh Sharma
Hello Caleb, Thanks for the patch. Some nitpicks inline: On Wed, 10 Mar 2021 at 22:02, Caleb Connolly wrote: > > Hook up the SMMU for doing DMA over i2c. Some peripherals like > touchscreens easily exceed 32-bytes per transfer, causing errors and > lockups without this. > > Signed-off-by: Caleb

[PATCH v2 0/2] Add Realtek Otto GPIO support

2021-03-15 Thread Sander Vanheule
Add support for the GPIO controller employed by Realtek in multiple series of MIPS SoCs. These include the supported RTL838x and RTL839x. The register layout also matches the one found in the GPIO controller of other (Lexra-based) SoCs such as RTL8196E, RTL8197D, and RTL8197F. For the platform nam

[PATCH v2 2/2] gpio: Add Realtek Otto GPIO support

2021-03-15 Thread Sander Vanheule
Realtek MIPS SoCs (platform name Otto) have GPIO controllers with up to 64 GPIOs, divided over two banks. Each bank has a set of registers for 32 GPIOs, with support for edge-triggered interrupts. Each GPIO bank consists of four 8-bit GPIO ports (ABCD and EFGH). Most registers pack one bit per GPI

[PATCH v2 1/2] dt-bindings: gpio: Binding for Realtek Otto GPIO

2021-03-15 Thread Sander Vanheule
Add a binding description for Realtek's GPIO controller found on several of their MIPS-based SoCs (codenamed Otto), such as the RTL838x and RTL839x series of switch SoCs. A fallback binding 'realtek,otto-gpio' is provided for cases where the actual port ordering is not known yet, and enabling the

[syzbot] WARNING in io_ring_exit_work

2021-03-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:b01d57bf Add linux-next specific files for 20210310 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10ae049ed0 kernel config: https://syzkaller.appspot.com/x/.config?x=95af83fd326c2b5 dashboard l

Re: [PATCH] docs/zh_CN: fix original link unknown document warning

2021-03-15 Thread Jonathan Corbet
Wu XiangCheng writes: > fix original link unknown document warning in zh_CN/admin-guide/README.rst > and admin-guide/unicode.rst which introduced by commit: > > 550c8399d017 ("docs/zh_CN: Add zh_CN/admin-guide/README.rst") > > Reported-by: Stephen Rothwell > Signed-off-by: Wu XiangCheng > ---

Re: [PATCH 2/2] gpio: Add Realtek Otto GPIO support

2021-03-15 Thread Sander Vanheule
On Mon, 2021-03-15 at 16:10 +0100, Linus Walleij wrote: > On Mon, Mar 15, 2021 at 9:26 AM Sander Vanheule > wrote: > > > Realtek MIPS SoCs (platform name Otto) have GPIO controllers with > > up to > > 64 GPIOs, divided over two banks. Each bank has a set of registers > > for > > 32 GPIOs, with su

RE: linux-next: manual merge of the hyperv tree with the tip tree

2021-03-15 Thread Michael Kelley
From: Stephen Rothwell Sent: Sunday, March 14, 2021 8:35 PM > > Hi all, > > Today's linux-next merge of the hyperv tree got a conflict in: > > arch/x86/include/asm/mshyperv.h > > between commit: > > a0e2bf7cb700 ("x86/paravirt: Switch time pvops functions to use > static_call()") > > f

Re: [PATCH v4 00/25] Page folios

2021-03-15 Thread Christoph Hellwig
On Mon, Mar 15, 2021 at 01:38:04PM +0100, Michal Hocko wrote: > I tend to agree here as well. The level compoud_head has spread out > silently is just too large. There are people coming up with all sorts of > optimizations to workaround that, and they are quite right that this is > somehing worth d

Re: [Patch v3 0/2] cgroup: New misc cgroup controller

2021-03-15 Thread Michal Koutný
On Fri, Mar 12, 2021 at 09:49:26AM -0800, Vipin Sharma wrote: > I will add some more information in the cover letter of the next version. Thanks. > Each one coming up with their own interaction is a duplicate effort > when they all need similar thing. Could this be expressed as a new BPF hook (w

Re: [kbuild-all] Re: [PATCH] gcov: fail build on gcov_info size mismatch

2021-03-15 Thread Linus Torvalds
On Sun, Mar 14, 2021 at 7:32 PM Rong Chen wrote: > > It can be reproduced with '-a' option in dash: Oh, ok. That kind of explains it. 'dash' is trash. Please somebody make a bug report. > $ a="!" > $ [ "$a" = ".size" ] > $ [ "$a" = ".size" -a "$b" = ".LPBX0," ] > sh: 2: [: =

Re: [PATCH v3] mm: huge_memory: a new debugfs interface for splitting THP tests.

2021-03-15 Thread Yang Shi
On Mon, Mar 15, 2021 at 11:37 AM Zi Yan wrote: > > On 15 Mar 2021, at 8:07, Kirill A. Shutemov wrote: > > > On Thu, Mar 11, 2021 at 07:57:12PM -0500, Zi Yan wrote: > >> From: Zi Yan > >> > >> We do not have a direct user interface of splitting the compound page > >> backing a THP > > > > But we d

Re: [PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-15 Thread Jarkko Sakkinen
On Mon, Mar 15, 2021 at 09:03:21AM -0700, Dave Hansen wrote: > On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > > Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, > > and free them using sgx_free_epc_page(). Do two passes, as for SECS pages > > the first round can fail, if all

Re: (subset) [PATCH 0/2] arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64

2021-03-15 Thread Catalin Marinas
On Thu, 25 Feb 2021 05:56:58 -0800, Yury Norov wrote: > MIPS and ARM64 don't implement find_first_{zero}_bit in arch code and > don't enable it in config. It leads to using find_next_bit() which is > less efficient: > > It's beneficial to enable GENERIC_FIND_FIRST_BIT as this functionality > is no

Re: [PATCH 3/3] arm64: dts: qcom: sm8150: add i2c nodes

2021-03-15 Thread Bhupesh Sharma
Hi Caleb, Thanks for the patch. On Wed, 10 Mar 2021 at 22:02, Caleb Connolly wrote: > > Tested on the OnePlus 7 Pro (including DMA). > > Signed-off-by: Caleb Connolly > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 521 +++ > 1 file changed, 521 insertions(+) > > diff --

Re: [PATCH v3 6/7] sched/fair: Filter out locally-unsolvable misfit imbalances

2021-03-15 Thread Valentin Schneider
On 15/03/21 16:13, Vincent Guittot wrote: > On Thu, 11 Mar 2021 at 13:05, Valentin Schneider > wrote: >> >> Consider the following (hypothetical) asymmetric CPU capacity topology, >> with some amount of capacity pressure (RT | DL | IRQ | thermal): >> >> DIE [ ] >> MC [][] >>

Re: [PATCH 1/3] arm64: dts: qcom: sm8150: add other QUP nodes

2021-03-15 Thread Bhupesh Sharma
Hello Caleb, On Wed, 10 Mar 2021 at 22:02, Caleb Connolly wrote: > > Add the first and third qupv3 nodes used to hook > up peripherals on some devices. > > Signed-off-by: Caleb Connolly > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 25 + > 1 file changed, 25 insertions(

[PATCH v4] mfd: ntxec: Support for EC in Tolino Shine 2 HD

2021-03-15 Thread Andreas Kemnade
Add the version of the EC in the Tolino Shine 2 HD to the supported versions. It seems not to have an RTC and does not ack data written to it. The vendor kernel happily ignores write errors, using I2C via userspace i2c-set also shows the error. So add a quirk to ignore that error. PWM can be succe

Re: [PATCH] Documentation/features: mark BATCHED_UNMAP_TLB_FLUSH doesn't apply to ARM64

2021-03-15 Thread Jonathan Corbet
Barry Song writes: > BATCHED_UNMAP_TLB_FLUSH is used on x86 to do batched tlb shootdown by > sending one IPI to TLB flush all entries after unmapping pages rather > than sending an IPI to flush each individual entry. > On arm64, tlb shootdown is done by hardware. Flush instructions are > innersha

Re: [PATCH] arm64: dts: qcom: sc7180: Fix sc7180-qmp-usb3-dp-phy reg sizes

2021-03-15 Thread Dmitry Baryshkov
On Mon, 15 Mar 2021 at 20:39, Douglas Anderson wrote: > > As per Dmitry Baryshkov [1]: > a) The 2nd "reg" should be 0x3c because "Offset 0x38 is >USB3_DP_COM_REVISION_ID3 (not used by the current driver though)." > b) The 3rd "reg" "is a serdes region and qmp_v3_dp_serdes_tbl contains >reg

Re: [PATCH v1 1/1] mmc: sdhci-acpi: Add support for NVIDIA BlueField-3 SoC

2021-03-15 Thread Adrian Hunter
On 15/03/21 7:00 pm, Liming Sun wrote: > Thanks Adrian. Yes, I did consider adding this ACPI support into > sdhci-of-dwcmshc.c, but not sure which one is the preferred way. > Is this (sdhci-of-dwcmshc.c) what you recommend? I'll post the revised > changes in patch v2. Yes, that is generally pref

Re: BUG: KASAN: use-after-free in __list_add_valid+0x81/0xa0 (5.11-rc4)

2021-03-15 Thread Mikhail Gavrilov
On Tue, 9 Mar 2021 at 07:31, Hillf Danton wrote: > At the first glance, the zero pointer goes out of the box of race because > > 1/ the Call Trace shows it is the free path (of the supposed race victim), > > 2/ on the race winner side however either list_del or list_del_init >would not leave a

Re: [PATCH v3 0/4] mm/slub: Fix count_partial() problem

2021-03-15 Thread Yang Shi
On Mon, Mar 15, 2021 at 12:15 PM Roman Gushchin wrote: > > > On Mon, Mar 15, 2021 at 07:49:57PM +0100, Vlastimil Babka wrote: > > On 3/9/21 4:25 PM, Xunlei Pang wrote: > > > count_partial() can hold n->list_lock spinlock for quite long, which > > > makes much trouble to the system. This series eli

Re: [PATCH v4 3/3] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()

2021-03-15 Thread Jarkko Sakkinen
On Mon, Mar 15, 2021 at 09:35:03AM -0700, Dave Hansen wrote: > On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > > Background > > == > > > > EPC section is covered by one or more SRAT entries that are associated with > > one and only one PXM (NUMA node). The motivation behind this patch is to >

Re: arm64: kernel/sys.c - silence initialization warnings.

2021-03-15 Thread Christoph Hellwig
On Mon, Mar 15, 2021 at 11:14:34AM +, Catalin Marinas wrote: > We do similar initialisation in arch/arm64/kernel/sys32.c and > arch/arm64/kernel/traps.c for example. It's a pretty common pattern > throughout the kernel. > > So we either treat W=1 output as diff against the vanilla kernel when

Re: [PATCH v2 net-next] net: dsa: b53: mmap: Add device tree support

2021-03-15 Thread Jakub Kicinski
On Mon, 15 Mar 2021 16:11:40 +0100 Álvaro Fernández Rojas wrote: > Add device tree support to b53_mmap.c while keeping platform devices support. > > Signed-off-by: Álvaro Fernández Rojas > --- > v2: add change suggested by Florian Fainelli (less "OF-centric") and replace > brcm,ports property

Re: [PATCH v3 3/7] sched/fair: Add more sched_asym_cpucapacity static branch checks

2021-03-15 Thread Valentin Schneider
Hi Vincent, Thanks for taking another look at this. On 15/03/21 15:18, Vincent Guittot wrote: > On Thu, 11 Mar 2021 at 13:05, Valentin Schneider > wrote: >> >> Rik noted a while back that a handful of >> >> sd->flags & SD_ASYM_CPUCAPACITY >> >> & family in the CFS load-balancer code aren't g

Re: [PATCH v3 4/7] sched/fair: Introduce a CPU capacity comparison helper

2021-03-15 Thread Valentin Schneider
On 15/03/21 15:24, Vincent Guittot wrote: >> @@ -113,6 +113,13 @@ int __weak arch_asym_cpu_priority(int cpu) >> */ >> #define fits_capacity(cap, max)((cap) * 1280 < (max) * 1024) >> >> +/* >> + * The margin used when comparing CPU capacities. >> + * is 'cap1' noticeably greater than 'cap

Re: [RFC] scripts: kernel-doc: avoid warnings due to initial commented lines in file

2021-03-15 Thread Jonathan Corbet
Aditya writes: >> The opening comment mark /** is used for kernel-doc comments [1] >> >> [1] >> https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#how-to-format-kernel-doc-comments >> > > Hi Markus! > That's true. But the content inside the comment does not follow > kernel-doc for

Re: [PATCH v1 3/5] dt-bindings: arm: Add cpu-idle-states to Tegra194 CPU nodes

2021-03-15 Thread Sowjanya Komatineni
Re-sending as it went out as HTML instead of plain text. On 3/15/21 11:13 AM, Sowjanya Komatineni wrote: Hi Sudeep, I see you are one of the maintainer of PSCI driver. Please add any other right persons if you think should also agree/comment. Can you please comment on below 2 items based o

Re: [PATCH] docs: dt: submitting-patches: Fix grammar in subsystem section

2021-03-15 Thread Jonathan Corbet
Geert Uytterhoeven writes: > Reword the subsystem bindings section to make sense, from a grammatical > point of view. > > Signed-off-by: Geert Uytterhoeven > --- > Documentation/devicetree/bindings/submitting-patches.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v4 1/3] x86/sgx: Use sgx_free_epc_page() in sgx_reclaim_pages()

2021-03-15 Thread Jarkko Sakkinen
On Mon, Mar 15, 2021 at 09:06:29PM +0200, Jarkko Sakkinen wrote: > On Mon, Mar 15, 2021 at 08:32:13AM -0700, Dave Hansen wrote: > > On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > > > Replace the ad-hoc code with a sgx_free_epc_page(), in order to make sure > > > that all the relevant checks and book

Re: [PATCHv3 2/6] arm64: don't use GENERIC_IRQ_MULTI_HANDLER

2021-03-15 Thread Christoph Hellwig
On Mon, Mar 15, 2021 at 11:56:25AM +, Mark Rutland wrote: > From: Marc Zyngier > > In subsequent patches we want to allow irqchip drivers to register as > FIQ handlers, with a set_handle_fiq() function. To keep the IRQ/FIQ > paths similar, we want arm64 to provide both set_handle_irq() and >

Re: [PATCH v3] Expose the bus kernel docs to the build docs.

2021-03-15 Thread Jonathan Corbet
Wren Turkal writes: > Before, the bus type related APIs that were defined in the > include/linux/device/bus.h were not referenced anywhere in the docs, so > I linked it to the bus types api documentation. This should really be phrased in the imperative style as described in Documentation/process

[ANNOUNCE] Git v2.31.0

2021-03-15 Thread Junio C Hamano
The latest feature release Git v2.31.0 is now available at the usual places. It is comprised of 679 non-merge commits since v2.30.0, contributed by 85 people, 23 of which are new faces [*]. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public reposito

[PATCH mel-git] Followup: Update [PATCH 7/7] in Mel's series

2021-03-15 Thread Jesper Dangaard Brouer
This patch is against Mel's git-tree: git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git Using branch: mm-bulk-rebase-v4r2 but replacing the last patch related to the page_pool using __alloc_pages_bulk(). https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/log/?h=mm-bulk-reb

[PATCH mel-git] net: page_pool: use alloc_pages_bulk in refill code path

2021-03-15 Thread Jesper Dangaard Brouer
There are cases where the page_pool need to refill with pages from the page allocator. Some workloads cause the page_pool to release pages instead of recycling these pages. For these workload it can improve performance to bulk alloc pages from the page-allocator to refill the alloc cache. For XDP

Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver

2021-03-15 Thread Doug Anderson
Hi, On Sat, Mar 13, 2021 at 10:11 PM Srinivasa Rao Mandadapu wrote: > > From: Ajit Pandey > > Add dai link for supporting lpass I2S driver, which is used > for audio capture and playback. > Add lpass-cpu node with pin controls and i2s primary > and secondary dai-links You missed Stephen's comm

Re: [PATCH net v2] net: hdlc_x25: Prevent racing between "x25_close" and "x25_xmit"/"x25_rx"

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Sun, 14 Mar 2021 04:21:01 -0700 you wrote: > "x25_close" is called by "hdlc_close" in "hdlc.c", which is called by > hardware drivers' "ndo_stop" function. > "x25_xmit" is called by "hdlc_start_xmit" in "hdlc.c", which is har

Re: [PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-03-15 Thread Rik van Riel
On Sat, 2021-03-13 at 00:57 -0700, Yu Zhao wrote: > +/* > + * After pages are faulted in, they become the youngest generation. > They must > + * go through aging process twice before they can be evicted. After > first scan, > + * their accessed bit set during initial faults are cleared and they >

Re: [PATCH v4 00/25] Page folios

2021-03-15 Thread Matthew Wilcox
On Mon, Mar 15, 2021 at 07:09:04PM +, Christoph Hellwig wrote: > On Mon, Mar 15, 2021 at 01:38:04PM +0100, Michal Hocko wrote: > > I tend to agree here as well. The level compoud_head has spread out > > silently is just too large. There are people coming up with all sorts of > > optimizations t

Re: [PATCH 00/38] Convert power-supply DT bindings to YAML

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel wrote: > > Hi, > > I keep getting patches for existing drivers, that modify DT behaviour > without updating the binding file. Let's move everything to DT schema > files, so that this can easily be cached automatically by dtbs_check. > > After this

Re: [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz

2021-03-15 Thread Doug Anderson
Hi, On Sat, Mar 13, 2021 at 10:11 PM Srinivasa Rao Mandadapu wrote: > > This is a trgodor variant, required to have sound node variable > for coachz specific platform. > > Signed-off-by: Srinivasa Rao Mandadapu > Reviewed-by: Stephen Boyd > --- > arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.

Re: [PATCH] scsi: qla2xxx: use dma_pool_zalloc instead

2021-03-15 Thread Himanshu Madhani
> On Mar 12, 2021, at 8:41 PM, Wang Qing wrote: > > use dma_pool_zalloc instead of dma_pool_alloc and memset > > Signed-off-by: Wang Qing > --- > drivers/scsi/qla2xxx/qla_os.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/s

Re: [PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-15 Thread Dave Hansen
On 3/15/21 12:14 PM, Jarkko Sakkinen wrote: > On Mon, Mar 15, 2021 at 09:03:21AM -0700, Dave Hansen wrote: >> On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: >>> Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, >>> and free them using sgx_free_epc_page(). Do two passes, as for

Re: [PATCH net-next v2] bonding: Added -ENODEV interpret for slaves option

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sun, 14 Mar 2021 22:56:29 +0800 you wrote: > When the incorrect interface name is stored in the slaves/active_slave > option of the bonding sysfs, the kernel does not record the log that > interface does not exist. > >

Re: [PATCH net-next 1/1] net: stmmac: add per-queue TX & RX coalesce ethtool support

2021-03-15 Thread Jakub Kicinski
On Mon, 15 Mar 2021 14:44:48 +0800 Ong Boon Leong wrote: > Extending the driver to support per-queue RX and TX coalesce settings in > order to support below commands: > > To show per-queue coalesce setting:- > $ ethtool --per-queue queue_mask --show-coalesce > > To set per-queue coalesce setti

Re: [RFC PATCH] docs: Group arch-specific documentation under "CPU Architectures"

2021-03-15 Thread Jonathan Corbet
Jonathan Neuschäfer writes: > To declutter the top-level table of contents (the side bar), this > patch reduces the architecture-specfic documentation to one top-level > item, "CPU Architectures". > > Signed-off-by: Jonathan Neuschäfer > --- > > As a side effect, the TOC in index.html effectivel

RE: [PATCH v9 5/7] arm64: hyperv: Initialize hypervisor on boot

2021-03-15 Thread Sunil Muthuswamy
> static int num_standard_resources; > @@ -340,6 +341,9 @@ void __init __no_sanitize_address setup_arch(char > **cmdline_p) > if (acpi_disabled) > unflatten_device_tree(); > > + /* Do after acpi_boot_table_init() so local FADT is available */ > + hyperv_early_init();

Re: [PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress

2021-03-15 Thread kernel test robot
-mm master config: arc-randconfig-r024-20210315 (attached as .config) compiler: arceb-elf-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https

Re: [PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress

2021-03-15 Thread kernel test robot
-mm master config: riscv-randconfig-r026-20210315 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a28facba1ccdc957f386b7753f4958307f1bfde8) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress

2021-03-15 Thread kernel test robot
-mm master config: powerpc64-randconfig-r012-20210315 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a28facba1ccdc957f386b7753f4958307f1bfde8) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH v3][next] xfs: Replace one-element arrays with flexible-array members

2021-03-15 Thread Gustavo A. R. Silva
On 3/10/21 22:47, Darrick J. Wong wrote: > On Wed, Mar 10, 2021 at 10:23:02PM -0600, Gustavo A. R. Silva wrote: >> There is a regular need in the kernel to provide a way to declare having >> a dynamically sized set of trailing elements in a structure. Kernel code >> should always use “flexible a

Re: [PATCH 5.10 113/290] net: dsa: implement a central TX reallocation procedure

2021-03-15 Thread Vladimir Oltean
+Andrew, Vivien, On Mon, Mar 15, 2021 at 02:53:26PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > From: Vladimir Oltean > > [ Upstream commit a3b0b6479700a5b0af2c631cb2ec0fb7a0d978f2 ] > > At the moment, taggers are left with the task of ensuring that the skb > headers

[PATCH v2] staging: comedi: cb_pcidas64: fix request_irq() warn

2021-03-15 Thread Tong Zhang
request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by userspace and we don't want to break userspace, so we are changing the parameter

Re: [PATCH] docs: don't include Documentation/Kconfig twice

2021-03-15 Thread Jonathan Corbet
Sergei Trofimovich writes: > Before the change there were two inclusions of Documentation/Kconfig: > lib/Kconfig.debug:source "Documentation/Kconfig" > Kconfig: source "Documentation/Kconfig" > > Kconfig also included 'source "lib/Kconfig.debug"'. > > Noticed as two 'make menuconfig' entr

[PATCH v2] staging: comedi: cb_pcidas: fix request_irq() warn

2021-03-15 Thread Tong Zhang
request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by userspace and we don't want to break userspace, so we are changing the parameter

Re: [PATCH net 1/1] net: phylink: Fix phylink_err() function name error in phylink_major_config

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 15 Mar 2021 12:33:42 +0800 you wrote: > if pl->mac_ops->mac_finish() failed, phylink_err should use > "mac_finish" instead of "mac_prepare". > > Fixes: b7ad14c2fe2d4 ("net: phylink: re-implement interface configuration

Re: [PATCH net-next 0/6] net: pcs, stmmac: add C37 AN SGMII support

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Mon, 15 Mar 2021 13:27:05 +0800 you wrote: > Hi all, > > This patch series adds MAC-side SGMII support to stmmac driver and it is > changed as follow:- > > 1/6: Refactor the current C73 implementation in pcs-xpcs to p

Re: [PATCH] staging: comedi: replace slash in name

2021-03-15 Thread Tong Zhang
Thanks Ian, I have submitted a v2 patch based on your suggestions. Thanks, - Tong On Mon, Mar 15, 2021 at 6:48 AM Ian Abbott wrote: > > On 15/03/2021 10:44, Ian Abbott wrote: > > On 14/03/2021 03:57, Tong Zhang wrote: > >> request_irq() wont accept a name which contains slash so we need to > >> r

Re: [PATCH v4] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-15 Thread Nicolin Chen
On Mon, Mar 15, 2021 at 09:53:09PM +0300, Dmitry Osipenko wrote: > 15.03.2021 06:35, Nicolin Chen пишет: > > This patch dumps all active mapping entries from pagetable > > to a debugfs directory named "mappings". > > > > Ataching an example: > > Attaching > > > > > SWGROUP: hc > > ASID: 0 > > r

<    1   2   3   4   5   6   7   8   9   10   >