Re: [PATCH v2 1/4] hmm: Device exclusive memory access

2021-02-22 Thread Alistair Popple
On Friday, 19 February 2021 8:47:41 PM AEDT Christoph Hellwig wrote: > > page = migration_entry_to_page(swpent); > > else if (is_device_private_entry(swpent)) > > page = device_private_entry_to_page(swpent); > > + else if (is_device_excl

Re: [PATCH 5/8] arm64: irq: add a default handle_irq panic function

2021-02-22 Thread Marc Zyngier
On 2021-02-22 09:59, Mark Rutland wrote: On Fri, Feb 19, 2021 at 11:39:01AM +, Mark Rutland wrote: If we accidentally unmask IRQs before we've registered an IRQ controller, handle_arch_irq will be NULL, and the IRQ exception handler will branch to a bogus address. To make this easier to d

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-22 Thread Oscar Salvador
On Mon, Feb 22, 2021 at 06:31:12PM +0800, Muchun Song wrote: > On Mon, Feb 22, 2021 at 5:25 PM Michal Hocko wrote: > > > > On Sat 20-02-21 12:20:36, Muchun Song wrote: > > > On Fri, Feb 19, 2021 at 10:12 PM Michal Hocko wrote: > > [...] > > > > What about hugetlb page poisoning on HW failure (res

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-22 Thread David Hildenbrand
On 22.02.21 10:38, David Hildenbrand wrote: On 17.02.21 17:19, James Bottomley wrote: On Tue, 2021-02-16 at 18:16 +0100, David Hildenbrand wrote: [...] The discussion regarding migratability only really popped up because this is a user-visible thing and not being able to migrate can be a re

Re: [RFC PATCH v5 01/19] af_vsock: update functions for connectible socket

2021-02-22 Thread Stefano Garzarella
On Thu, Feb 18, 2021 at 08:36:03AM +0300, Arseny Krasnov wrote: This prepares af_vsock.c for SEQPACKET support: some functions such as setsockopt(), getsockopt(), connect(), recvmsg(), sendmsg() are shared between both types of sockets, so rename them in general manner. Signed-off-by: Arseny Kra

Re: [PATCH v5 01/22] media: camss: Fix vfe_isr_comp_done() documentation

2021-02-22 Thread Robert Foss
On Fri, 19 Feb 2021 at 22:05, Nicolas Dufresne wrote: > > Hi Robert, > > not really a review, but I noticed > > Le mercredi 17 février 2021 à 12:21 +0100, Robert Foss a écrit : > > Function name is comment is wrong, and was changed to be > > in Thanks bud! > > > the same as

Re: [PATCH v11 01/13] vfio: VFIO_IOMMU_SET_PASID_TABLE

2021-02-22 Thread Auger Eric
Hi Keqian, On 2/2/21 1:34 PM, Keqian Zhu wrote: > Hi Eric, > > On 2020/11/16 19:00, Eric Auger wrote: >> From: "Liu, Yi L" >> >> This patch adds an VFIO_IOMMU_SET_PASID_TABLE ioctl >> which aims to pass the virtual iommu guest configuration >> to the host. This latter takes the form of the so-ca

[PATCH v6 0/1] mm: fix initialization of struct page for holes in memory layout

2021-02-22 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.11-mmotm-2021-02-18-18-29 with the previous version reverted Commit 73a6e474cb37 ("mm: memmap_init: iterate over memblock regions rather that check each PFN") exposed several issues with the memory map initialization and these patches fix tho

Re: [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting

2021-02-22 Thread Xiaoming Ni
On 2021/2/22 18:16, Greg KH wrote: On Mon, Feb 22, 2021 at 03:03:28PM +0800, Xiaoming Ni wrote: From: Thomas Gleixner commit ac31c7ff8624409ba3c4901df9237a616c187a5d upstream. This commit is already in the 4.9 tree. If the backport was incorrect, say that here, and describe what went wrong an

Re: [PATCH v4 1/4] PCI: Introduce pcim_alloc_irq_vectors()

2021-02-22 Thread Robert Richter
On 20.02.21 00:46:49, Dejin Zheng wrote: > > On 18.02.21 23:04:55, Dejin Zheng wrote: > > > + if (!dr || !dr->enabled) > here checks whether the pci device is enabled. What is the purpose of this? The device "is_managed" or not. -Robert

[PATCH v6 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

2021-02-22 Thread Mike Rapoport
From: Mike Rapoport There could be struct pages that are not backed by actual physical memory. This can happen when the actual memory bank is not a multiple of SECTION_SIZE or when an architecture does not register memory holes reserved by the firmware as memblock.memory. Such pages are currentl

Re: [RFC PATCH v5 01/19] af_vsock: update functions for connectible socket

2021-02-22 Thread Arseny Krasnov
On 22.02.2021 13:50, Stefano Garzarella wrote: > On Thu, Feb 18, 2021 at 08:36:03AM +0300, Arseny Krasnov wrote: >> This prepares af_vsock.c for SEQPACKET support: some functions such >> as setsockopt(), getsockopt(), connect(), recvmsg(), sendmsg() are >> shared between both types of sockets, so

[PATCH 4.9.257 0/1] Bugfix for 781691c797de ("futex: Avoid violating the 10th rule of futex")

2021-02-22 Thread Zheng Yejian
This patch may fix the following bug: Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/futex.c?h=linux-4.9.y&id=282aeb477a10d09cc5c4d73c54bb996964723f96 > static int __fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q, >

[PATCH 4.9.257 1/1] futex: Fix OWNER_DEAD fixup

2021-02-22 Thread Zheng Yejian
From: Peter Zijlstra commit a97cb0e7b3f4c6297fd857055ae8e895f402f501 upstream. Both Geert and DaveJ reported that the recent futex commit: c1e2f0eaf015 ("futex: Avoid violating the 10th rule of futex") introduced a problem with setting OWNER_DEAD. We set the bit on an uninitialized variable

Re: [PATCH v4 1/4] PCI: Introduce pcim_alloc_irq_vectors()

2021-02-22 Thread Robert Richter
On 19.02.21 17:15:50, Krzysztof Wilczyński wrote: > Hi Robert, > > [...] > > Obiously this is meant here: > > > > if (!pci_is_managed(dev)) > [...] > > A question to improve my understanding for future reference. Was the > previous approach of checking for "enabled" flag from struct pci_dev

Re: [PATCH V3 2/2] cpufreq: cppc: Add support for frequency invariance

2021-02-22 Thread Ionela Voinescu
Hey, Some test results: On Thursday 18 Feb 2021 at 16:35:38 (+), Ionela Voinescu wrote: [..] > > +static void __init cppc_freq_invariance_init(void) > > +{ [..] > > + > > + ret = cppc_get_perf_ctrs(i, &fb_ctrs); > > + if (!ret) > > + per_cpu(cppc_fi->prev

Re: [PATCH] drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features

2021-02-22 Thread Nicolas Boichat
On Mon, Feb 22, 2021 at 3:21 PM Andrzej Hajda wrote: > > Hi Nicolas, > > W dniu 22.02.2021 o 06:31, Nicolas Boichat pisze: > > On Mon, Feb 22, 2021 at 3:08 AM Laurent Pinchart > > wrote: > >> Hi Nicolas, > >> > >> Thank you for the patch. > >> > >> On Thu, Feb 11, 2021 at 11:33:55AM +0800, Nicola

Re: [RFC PATCH v2 16/26] KVM: arm64: Prepare Hyp memory protection

2021-02-22 Thread Quentin Perret
Hi Sean, On Friday 19 Feb 2021 at 10:32:58 (-0800), Sean Christopherson wrote: > On Wed, Feb 03, 2021, Will Deacon wrote: > > On Fri, Jan 08, 2021 at 12:15:14PM +, Quentin Perret wrote: > > ... > > > > +static inline unsigned long hyp_s1_pgtable_size(void) > > > +{ > > ... > > > > +

arch/mips/pci/pci-ar2315.c:173:12: warning: no previous prototype for function 'phys_to_dma'

2021-02-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 31caf8b2a847214be856f843e251fc2ed2cd1075 commit: 5ceda74093a5c1c3f42a02b894df031f3bbc9af1 dma-direct: rename and cleanup __phys_to_dma date: 5 months ago config: mips-randconfig-r032-20210222 (attached as

Re: [PATCH V3 2/2] cpufreq: cppc: Add support for frequency invariance

2021-02-22 Thread Viresh Kumar
On 22-02-21, 11:00, Ionela Voinescu wrote: > Hey, > > Some test results: Nice, I haven't responded earlier as Vincent was also testing the stuff out later last week and was planning to do it more this week. > On Thursday 18 Feb 2021 at 16:35:38 (+), Ionela Voinescu wrote: > [..] > > > +stati

Re: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-22 Thread Kieran Bingham
Hi Barry On 21/02/2021 21:35, Barry Song wrote: > lx_current depends on the per_cpu current_task which exists on x86 only: > > arch$ git grep current_task | grep -i per_cpu > x86/include/asm/current.h:DECLARE_PER_CPU(struct task_struct *, current_task); > x86/kernel/cpu/common.c:DEFINE_PER_CPU(st

[tip: objtool/core] objtool: Fix stack-swizzle for FRAME_POINTER=y

2021-02-22 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 23e34c5988088b8bb4c55905973ca76114cb33ee Gitweb: https://git.kernel.org/tip/23e34c5988088b8bb4c55905973ca76114cb33ee Author:Peter Zijlstra AuthorDate:Thu, 18 Feb 2021 17:14:10 +01:00 Commi

Re: [PATCH v13 1/7] arm64: mte: Add asynchronous mode support

2021-02-22 Thread Vincenzo Frascino
On 2/12/21 9:21 PM, Andrey Konovalov wrote: > On Thu, Feb 11, 2021 at 4:34 PM Vincenzo Frascino > wrote: >> >> MTE provides an asynchronous mode for detecting tag exceptions. In >> particular instead of triggering a fault the arm64 core updates a >> register which is checked by the kernel after th

Re: [RFC PATCH v5 01/19] af_vsock: update functions for connectible socket

2021-02-22 Thread Stefano Garzarella
On Mon, Feb 22, 2021 at 01:58:11PM +0300, Arseny Krasnov wrote: On 22.02.2021 13:50, Stefano Garzarella wrote: On Thu, Feb 18, 2021 at 08:36:03AM +0300, Arseny Krasnov wrote: This prepares af_vsock.c for SEQPACKET support: some functions such as setsockopt(), getsockopt(), connect(), recvmsg()

Re: [PATCH v6 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

2021-02-22 Thread Mike Rapoport
Somehow I've managed to break the threading, the cover letter is here: https://lore.kernel.org/lkml/20210222105400.28583-1-r...@kernel.org On Mon, Feb 22, 2021 at 12:57:28PM +0200, Mike Rapoport wrote: > From: Mike Rapoport > > There could be struct pages that are not backed by actual physical

Re: [PATCH v13 7/7] kasan: don't run tests in async mode

2021-02-22 Thread Vincenzo Frascino
On 2/12/21 9:44 PM, Andrey Konovalov wrote: >> I think we have time to fix this properly ;), so I'd rather not add this >> patch at all. > Yeah, this patch can be dropped. > > I have a prototype of async support for tests working. I'll apply it > on top of the next version Vincenzo posts and share

Re: [PATCH v8 0/3] CPUFreq: Add support for opp-sharing cpus

2021-02-22 Thread Sudeep Holla
On Mon, Feb 22, 2021 at 10:09:04AM +0530, Viresh Kumar wrote: > On 19-02-21, 19:16, Sudeep Holla wrote: > > Hi Viresh, > > > > On Fri, Feb 19, 2021 at 09:49:44AM +0530, Viresh Kumar wrote: > > > On 18-02-21, 22:23, Nicola Mazzucato wrote: > > > > Hi Viresh, > > > > > > > > In this V8 I have addre

Re: [PATCH v2 0/7] Allocate memmap from hotadded memory (per device)

2021-02-22 Thread Oscar Salvador
On Wed, Feb 17, 2021 at 11:18:59AM +0100, Oscar Salvador wrote: > On Tue, Feb 09, 2021 at 02:38:47PM +0100, Oscar Salvador wrote: > > Hi, > > > > here is v2. > > > > Changes from v1 -> v2 > > - Addressed feedback from David > > - Fence off the feature in case struct page size is not > >mult

[PATCH V4 0/2] cpufreq: cppc: Add support for frequency invariance

2021-02-22 Thread Viresh Kumar
Hello, CPPC cpufreq driver is used for ARM servers and this patch series tries to provide counter-based frequency invariance support for them in the absence for architecture specific counters (like AMUs). This is tested by: - /me with some hacks on Hikey, as I didn't have access to the right ha

[PATCH V4 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-02-22 Thread Viresh Kumar
This patch attempts to make it generic enough so other parts of the kernel can also provide their own implementation of scale_freq_tick() callback, which is called by the scheduler periodically to update the per-cpu freq_scale variable. The implementations now need to provide 'struct scale_freq_da

[PATCH V4 2/2] cpufreq: cppc: Add support for frequency invariance

2021-02-22 Thread Viresh Kumar
The Frequency Invariance Engine (FIE) is providing a frequency scaling correction factor that helps achieve more accurate load-tracking. Normally, this scaling factor can be obtained directly with the help of the cpufreq drivers as they know the exact frequency the hardware is running at. But that

Re: [PATCH] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-22 Thread Pkshih
On Mon, 2021-02-22 at 09:27 +0200, Kalle Valo wrote: > 陈浩 writes: > > > By git blame command, I know that the assignment of .driver.pm = > > RTW_PM_OPS > > > > was in commit 44bc17f7f5b3b("rtw88: support wowlan feature for > > 8822c"), > > > > and another commit 7dc7c41607d19("avoid unused functi

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Aili Yao
On Mon, 22 Feb 2021 11:22:06 +0100 Borislav Petkov wrote: > On Mon, Feb 22, 2021 at 06:08:19PM +0800, Aili Yao wrote: > > So why would intel provide this MCG_STATUS_RIPV flag, it's better to > > remove it as it will never be set, and all the related logic for this > > flag is really needed ? >

[PATCH] regulator: pca9450: Reset PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-02-22 Thread Schrempf Frieder
From: Frieder Schrempf The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default. This causes the preset values to be used instead, which are set to 850 mV by default. To fix this w

[PATCH v2 2/9] dt-bindings: phy: cadence-torrent: Add binding for refclk driver

2021-02-22 Thread Kishon Vijay Abraham I
Add binding for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/phy-cadence-torrent.yaml | 20 --- include/dt-bindings/phy/phy-cadence-torrent.h | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-)

[PATCH v2 0/9] AM64: Add SERDES bindings and driver support

2021-02-22 Thread Kishon Vijay Abraham I
AM64 uses the same SERDES as in J7200, however AM642 EVM doesn't have a clock generator (unlike J7200 base board). Here the clock from the SERDES has to be routed to the PCIE connector. This series adds support to drive reference clock output from SERDES and also adds SERDES (torrent) and SERDES wr

[PATCH v2 1/9] dt-bindings: phy: ti,phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper

2021-02-22 Thread Kishon Vijay Abraham I
Add bindings for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/ti,phy-j721e-wiz.yaml| 10 ++--- include/dt-bindings/phy/phy-ti.h | 21 +++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 include/dt-b

[PATCH v2 3/9] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-02-22 Thread Kishon Vijay Abraham I
AM64 has a single lane SERDES which can be configured to be used with either PCIe or USB. Define the possilbe values for the SERDES function in AM64 SoC here. Signed-off-by: Kishon Vijay Abraham I Acked-by: Peter Rosin --- include/dt-bindings/mux/ti-serdes.h | 5 + 1 file changed, 5 inserti

[PATCH v2 4/9] phy: ti: j721e-wiz: Remove "regmap_field" from wiz_clk_{mux|div}_sel

2021-02-22 Thread Kishon Vijay Abraham I
Both "struct wiz_clk_div_sel" and "struct wiz_clk_mux_sel" are static data that is common for all wiz instances. Including "struct regmap_field" for each of the wiz instances can yield undesirable results. Move "struct regmap_field" out of "struct wiz_clk_div_sel" and "struct wiz_clk_mux_sel" and m

[PATCH v2 5/9] phy: ti: j721e-wiz: Delete "clk_div_sel" clk provider during cleanup

2021-02-22 Thread Kishon Vijay Abraham I
commit 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") modeled both MUX clocks and DIVIDER clocks in wiz. However during cleanup, it removed only the MUX clock provider. Remove the DIVIDER clock provider here. Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add su

[PATCH v2 7/9] phy: ti: j721e-wiz: Model the internal clocks without device tree input

2021-02-22 Thread Kishon Vijay Abraham I
commit 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") modeled the internal clocks depending on the subnodes that are populated in device tree. However recent discussions in the mailing list [1] suggested to just add #clock cells in the parent DT node and mod

[PATCH v2 9/9] phy: cadence-torrent: Add support to drive refclk out

2021-02-22 Thread Kishon Vijay Abraham I
cmn_refclk_ lines in Torrent SERDES is used for connecting external reference clock. cmn_refclk_ can also be configured to output the reference clock. Model this derived reference clock as a "clock" so that platforms like AM642 EVM can enable it. This is used by PCIe to use the same refclk both in

[PATCH v2 6/9] phy: ti: j721e-wiz: Configure full rate divider for AM64

2021-02-22 Thread Kishon Vijay Abraham I
The frequency of the txmclk between PCIe and SERDES has changed to 250MHz from 500MHz. Configure full rate divider for AM64 accordingly. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/ti/phy-j721e-wiz.c | 39 +++--- 1 file changed, 36 insertions(+), 3 deletions

Re: [PATCH 5/8] arm64: irq: add a default handle_irq panic function

2021-02-22 Thread Mark Rutland
On Mon, Feb 22, 2021 at 10:48:11AM +, Marc Zyngier wrote: > On 2021-02-22 09:59, Mark Rutland wrote: > > On Fri, Feb 19, 2021 at 11:39:01AM +, Mark Rutland wrote: > > > +void (*handle_arch_irq)(struct pt_regs *) __ro_after_init = > > > default_handle_irq; > > > > > > int __init set_handle

[PATCH v2 8/9] phy: ti: j721e-wiz: Enable reference clock output in cmn_refclk_

2021-02-22 Thread Kishon Vijay Abraham I
cmn_refclk_ lines in Torrent SERDES is used for connecting external reference clock. cmn_refclk_ can also be configured to output the reference clock. In order to drive the refclk out from the SERDES (Cadence Torrent), PHY_EN_REFCLK should be set in SERDES_RST of WIZ. Model PHY_EN_REFCLK as a clock

Re: [RFC][PATCH 2/2] x86/retpoline: Compress retpolines

2021-02-22 Thread Peter Zijlstra
On Fri, Feb 19, 2021 at 08:14:39AM +0100, Borislav Petkov wrote: > On Thu, Feb 18, 2021 at 05:59:40PM +0100, Peter Zijlstra wrote: > > By using int3 as a speculation fence instead of lfence, we can shrink > > the longest alternative to just 15 bytes: > > > > 0: e8 05 00 00 00 callq a

[PATCH V2] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-02-22 Thread ultrachin
From: Chen Xiaoguang In order to use the computer efficiently we usually deploy online tasks and offline tasks in the same computer. The online tasks are more important than the offline tasks and are latency sensitive we should make sure the online tasks preempt the offline tasks as soon as poss

Re: [PATCH v2 0/7] Allocate memmap from hotadded memory (per device)

2021-02-22 Thread David Hildenbrand
On 22.02.21 12:15, Oscar Salvador wrote: On Wed, Feb 17, 2021 at 11:18:59AM +0100, Oscar Salvador wrote: On Tue, Feb 09, 2021 at 02:38:47PM +0100, Oscar Salvador wrote: Hi, here is v2. Changes from v1 -> v2 - Addressed feedback from David - Fence off the feature in case struct page size i

RE: R: [PATCH v1] watchdog: wdat: add param. to start wdog on module insertion

2021-02-22 Thread Flavio Suligoi
Hi Guenter > >>>const struct wdat_instruction *instr, u32 *value) { @@ -437,6 > >>> +443,8 @@ static int wdat_wdt_probe(struct platform_device > >> *pdev) > >>> } > >>> > >>> wdat_wdt_boot_status(wdat); > >>> + if (start_enabled) > >>> + wdat_wdt_start(&wdat->wdd); > >> > >> No ob

Re: [RFC PATCH v5 02/19] af_vsock: separate wait data loop

2021-02-22 Thread Stefano Garzarella
On Thu, Feb 18, 2021 at 08:36:33AM +0300, Arseny Krasnov wrote: This moves wait loop for data to dedicated function, because later it will be used by SEQPACKET data receive loop. The patch LGTM, maybe just add a line in the commit message with something like this: While moving the code a

Re: [PATCH] sched/fair: Fix task utilization accountability in cpu_util_next()

2021-02-22 Thread Vincent Donnefort
Hi Quentin, On Mon, Feb 22, 2021 at 10:11:03AM +, Quentin Perret wrote: > Hey Vincent, > > On Monday 22 Feb 2021 at 09:54:01 (+), vincent.donnef...@arm.com wrote: > > From: Vincent Donnefort > > > > Currently, cpu_util_next() estimates the CPU utilization as follows: > > > > max(cpu_

Re: [RFC][PATCH 1/2] x86/retpoline: Simplify retpolines

2021-02-22 Thread Peter Zijlstra
On Thu, Feb 18, 2021 at 05:59:39PM +0100, Peter Zijlstra wrote: > Currently out retpolines consist of 2 symbols, > __x86_indirect_thunk_\reg, which is the compiler target, and > __x86_retpoline_\reg, which is the actual retpoline. Both are > consecutive in code and aligned such that for any one reg

Re: [PATCH v2] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-22 Thread Pkshih
On Mon, 2021-02-22 at 12:29 +0200, Kalle Valo wrote: > Hao Chen writes: > > > The laptop's wifi disconnect after the laptop HONOR MagicBook 14 > > sleep to S3/S4 and wake up. > > > > The dmesg of kernel report: > > "[   99.990168] pcieport :00:01.2: can't change power state from D3hot > > to

[PATCH v3 3/4] dt-bindings: PCI: ti,j721e: Add endpoint mode dt-bindings for TI's AM64 SoC

2021-02-22 Thread Kishon Vijay Abraham I
Add endpoint mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff

[PATCH v3 1/4] dt-bindings: PCI: ti,j721e: Add binding to represent refclk to the connector

2021-02-22 Thread Kishon Vijay Abraham I
Add binding to represent refclk to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml| 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/D

[PATCH v3 0/4] AM64: Add PCIe bindings and driver support

2021-02-22 Thread Kishon Vijay Abraham I
AM64 uses the same PCIe controller as in J7200, however AM642 EVM doesn't have a clock generator (unlike J7200 base board). Here the clock from the SERDES has to be routed to the PCIE connector. This series provides an option for the pci-j721e.c driver to drive reference clock output to the connect

[PATCH v3 4/4] PCI: j721e: Add support to provide refclk to PCIe connector

2021-02-22 Thread Kishon Vijay Abraham I
Add support to provide refclk to PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pci-j721e.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cad

[PATCH v3 2/4] dt-bindings: PCI: ti,j721e: Add host mode dt-bindings for TI's AM64 SoC

2021-02-22 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml| 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --g

Re: [PATCH 5/8] arm64: irq: add a default handle_irq panic function

2021-02-22 Thread Marc Zyngier
On 2021-02-22 11:25, Mark Rutland wrote: On Mon, Feb 22, 2021 at 10:48:11AM +, Marc Zyngier wrote: On 2021-02-22 09:59, Mark Rutland wrote: > On Fri, Feb 19, 2021 at 11:39:01AM +, Mark Rutland wrote: > > +void (*handle_arch_irq)(struct pt_regs *) __ro_after_init = > > default_handle_irq;

Re: [PATCH v5 12/22] media: camss: Remove per VFE power domain toggling

2021-02-22 Thread Andrey Konovalov
Hi Robert, Thank you for your patch! On 17.02.2021 14:21, Robert Foss wrote: For Titan ISPs clocks fail to re-enable during vfe_get() after any vfe has been halted and its corresponding power domain power has been detached. OK. Since all of the clocks depend on all of the PDs, per VFE PD de

Re: [RFC PATCH v5 03/19] af_vsock: separate receive data loop

2021-02-22 Thread Stefano Garzarella
On Thu, Feb 18, 2021 at 08:36:50AM +0300, Arseny Krasnov wrote: This moves STREAM specific data receive logic to dedicated function: '__vsock_stream_recvmsg()', while checks that will be same for both types of socket are in shared function: 'vsock_connectible_recvmsg()'. I'm not a native speake

Re: [PATCH 1/2] mmc: uniphier-sd: Fix an error handling path in uniphier_sd_probe()

2021-02-22 Thread Masahiro Yamada
On Sat, Feb 20, 2021 at 11:31 PM Christophe JAILLET wrote: > > A 'uniphier_sd_clk_enable()' call should be balanced by a corresponding > 'uniphier_sd_clk_disable()' call. > This is done in the remove function, but not in the error handling path of > the probe. > > Add the missing call. > > Fixes:

Re: [PATCH] btrfs: ref-verify: use 'inline void' keyword ordering

2021-02-22 Thread Geert Uytterhoeven
On Fri, Feb 19, 2021 at 7:57 AM Randy Dunlap wrote: > Fix build warnings of function signature when CONFIG_STACKTRACE is not > enabled by reordering the 'inline' and 'void' keywords. > > ../fs/btrfs/ref-verify.c:221:1: warning: ‘inline’ is not at beginning of > declaration [-Wold-style-declaratio

Re: [PATCH 2/2] mmc: uniphier-sd: Fix a resource leak in the remove function

2021-02-22 Thread Masahiro Yamada
On Sat, Feb 20, 2021 at 11:31 PM Christophe JAILLET wrote: > > A 'tmio_mmc_host_free()' call is missing in the remove function, in order > to balance a 'tmio_mmc_host_alloc()' call in the probe. > This is done in the error handling path of the probe, but not in the remove > function. > > Add the m

Re: [PATCH net] net: l2tp: reduce log level when passing up invalid packets

2021-02-22 Thread Tom Parkin
On Sat, Feb 20, 2021 at 10:56:33 +0100, Matthias Schiffer wrote: > On 2/19/21 9:12 PM, Tom Parkin wrote: > > On Fri, Feb 19, 2021 at 20:06:15 +0100, Matthias Schiffer wrote: > > > Before commit 5ee759cda51b ("l2tp: use standard API for warning log > > > messages"), it was possible for userspace a

[PATCH 2/2] usb: dwc3: add an alternate path in vbus_draw callback

2021-02-22 Thread Ray Chi
This patch adds an alternate path in vbus_draw callback through power supply property POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT. Signed-off-by: Ray Chi --- drivers/usb/dwc3/gadget.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/

[PATCH 0/2] an additional path to control charging current

2021-02-22 Thread Ray Chi
Currently, VBUS draw callback does no action when the generic PHYs are used. The patches add an additional path to control charging current through power supply property POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT. Ray Chi (2): usb: dwc3: add a power supply for current control usb: dwc3: add an alte

Re: [PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-22 Thread Marc Zyngier
On Mon, 22 Feb 2021 04:58:41 +, pna...@codeaurora.org wrote: > > On 2021-02-17 15:45, Marc Zyngier wrote: [...] > > +1 on that. Even if, as I suspect, this is targeting some unspecified > > hypervisor that is not KVM, the first course of action should be for > > this to be implemented in the

[PATCH 1/2] usb: dwc3: add a power supply for current control

2021-02-22 Thread Ray Chi
Currently, VBUS draw callback does no action when the generic PHYs are used. This patch adds an additional path to control charging current through power supply interface. Signed-off-by: Ray Chi --- drivers/usb/dwc3/core.c | 15 +++ drivers/usb/dwc3/core.h | 4 2 files changed,

[PATCH v2] regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-02-22 Thread Schrempf Frieder
From: Frieder Schrempf The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset values are used instead, which are set to 850 mV. To fix this we clear the

Re: [RFC PATCH v5 04/19] af_vsock: implement SEQPACKET receive loop

2021-02-22 Thread Stefano Garzarella
On Thu, Feb 18, 2021 at 08:37:15AM +0300, Arseny Krasnov wrote: This adds receive loop for SEQPACKET. It looks like receive loop for STREAM, but there is a little bit difference: 1) It doesn't call notify callbacks. 2) It doesn't care about 'SO_SNDLOWAT' and 'SO_RCVLOWAT' values, because there

Re: [PATCH 4.9.257 1/1] futex: Fix OWNER_DEAD fixup

2021-02-22 Thread Lee Jones
On Mon, 22 Feb 2021, Zheng Yejian wrote: > From: Peter Zijlstra > > commit a97cb0e7b3f4c6297fd857055ae8e895f402f501 upstream. > > Both Geert and DaveJ reported that the recent futex commit: > > c1e2f0eaf015 ("futex: Avoid violating the 10th rule of futex") > > introduced a problem with sett

Re: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-22 Thread Bean Huo
On Mon, 2021-02-22 at 18:31 +0900, Daejun Park wrote: > +} > +static DEVICE_ATTR_RW(requeue_timeout_ms); > + > +static struct attribute *hpb_dev_param_attrs[] = { > + &dev_attr_requeue_timeout_ms.attr, > +}; here, you lost a NULL member at the end of attribute struct. Bean

Re: [PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-02-22 Thread Dmitry V. Levin
On Mon, Feb 22, 2021 at 11:04:43AM +0100, Piotr Figiel wrote: [...] > --- a/include/uapi/linux/ptrace.h > +++ b/include/uapi/linux/ptrace.h > @@ -102,6 +102,14 @@ struct ptrace_syscall_info { > }; > }; > > +#define PTRACE_GET_RSEQ_CONFIGURATION0x420f > + > +struct ptrace_rseq_confi

Re: [PATCH v4] ARM: Implement SLS mitigation

2021-02-22 Thread Will Deacon
On Fri, Feb 19, 2021 at 03:08:13PM -0800, Jian Cai wrote: > This patch adds CONFIG_HARDEN_SLS_ALL that can be used to turn on > -mharden-sls=all, which mitigates the straight-line speculation > vulnerability, speculative execution of the instruction following some > unconditional jumps. Notice -mha

[PATCH 0/3] Add support for secure regions in Qcom NANDc driver

2021-02-22 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these region

[PATCH 3/3] mtd: rawnand: qcom: Add support for secure regions in NAND memory

2021-02-22 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these region

[PATCH 2/3] dt-bindings: mtd: Add a property to declare secure regions in Qcom NANDc

2021-02-22 Thread Manivannan Sadhasivam
On a typical end product, a vendor may choose to secure some regions in the NAND memory which are supposed to stay intact between FW upgrades. The access to those regions will be blocked by a secure element like Trustzone. So the normal world software like Linux kernel should not touch these region

[PATCH 1/3] dt-bindings: mtd: Convert Qcom NANDc binding to YAML

2021-02-22 Thread Manivannan Sadhasivam
Convert Qcom NANDc devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/mtd/qcom,nandc.yaml | 196 ++ .../devicetree/bindings/mtd/qcom_nandc.txt| 142 - 2 files changed, 196 insertions(+), 142 deletions(-) create mode 100

Re: [PATCH v13 4/7] arm64: mte: Enable TCO in functions that can read beyond buffer limits

2021-02-22 Thread Vincenzo Frascino
On 2/12/21 5:21 PM, Catalin Marinas wrote: >> + >> +/* >> + * This function is called on each active smp core at boot >> + * time, hence we do not need to take cpu_hotplug_lock again. >> + */ >> +static_branch_enable_cpuslocked(&mte_async_mode); >> } > Sorry, I missed the cp

Re: [PATCH v4] kdb: Simplify kdb commands registration

2021-02-22 Thread Daniel Thompson
On Thu, Feb 18, 2021 at 05:39:58PM +0530, Sumit Garg wrote: > Simplify kdb commands registration via using linked list instead of > static array for commands storage. > > Signed-off-by: Sumit Garg > --- > > Changes in v4: > - Fix kdb commands memory allocation issue prior to slab being available

[GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.12. There will be a conflict with the devicetree tree. It's OK to just take their side of the conflict, we'll fix up the minor behaviour change that causes in a follow-up patch. There's also a trivial co

Re: [PATCH] kprobes: Fix to delay the kprobes jump optimization

2021-02-22 Thread Masami Hiramatsu
On Fri, 19 Feb 2021 12:04:42 -0800 "Paul E. McKenney" wrote: > On Fri, Feb 19, 2021 at 02:58:30PM -0500, Steven Rostedt wrote: > > On Fri, 19 Feb 2021 11:47:44 -0800 > > "Paul E. McKenney" wrote: > > > > > Could you please add the following Reported-by tags? > > > > > > Reported-by: Sebastian

Re: [PATCH 5/8] arm64: irq: add a default handle_irq panic function

2021-02-22 Thread Mark Rutland
On Mon, Feb 22, 2021 at 11:43:13AM +, Marc Zyngier wrote: > On 2021-02-22 11:25, Mark Rutland wrote: > > On Mon, Feb 22, 2021 at 10:48:11AM +, Marc Zyngier wrote: > > > On 2021-02-22 09:59, Mark Rutland wrote: > > > > On Fri, Feb 19, 2021 at 11:39:01AM +, Mark Rutland wrote: > > > > > +

Re: [PATCH 4.9.257 1/1] futex: Fix OWNER_DEAD fixup

2021-02-22 Thread Greg KH
On Mon, Feb 22, 2021 at 11:54:24AM +, Lee Jones wrote: > On Mon, 22 Feb 2021, Zheng Yejian wrote: > > > From: Peter Zijlstra > > > > commit a97cb0e7b3f4c6297fd857055ae8e895f402f501 upstream. > > > > Both Geert and DaveJ reported that the recent futex commit: > > > > c1e2f0eaf015 ("futex:

Re: [RFC PATCH v5 05/19] af_vsock: separate wait space loop

2021-02-22 Thread Stefano Garzarella
On Thu, Feb 18, 2021 at 08:37:54AM +0300, Arseny Krasnov wrote: This moves loop that waits for space on send to separate function, because it will be used for SEQ_BEGIN/SEQ_END sending before and after data transmission. Waiting for SEQ_BEGIN/SEQ_END is needed because such packets carries SEQPACK

Re: [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting

2021-02-22 Thread Greg KH
On Mon, Feb 22, 2021 at 06:54:06PM +0800, Xiaoming Ni wrote: > On 2021/2/22 18:16, Greg KH wrote: > > On Mon, Feb 22, 2021 at 03:03:28PM +0800, Xiaoming Ni wrote: > > > From: Thomas Gleixner > > > > > > commit ac31c7ff8624409ba3c4901df9237a616c187a5d upstream. > > This commit is already in the 4.9

Re: [PATCH] usbnet: ipheth: fix connectivity with iOS 14

2021-02-22 Thread Oliver Neukum
Am Sonntag, den 21.02.2021, 10:42 + schrieb Sam Bingner: > There seems to be a problem with this patch: > > Whenever the iPhone sends a packet to the tethered device that is 1500 bytes > long, it gets the error "ipheth 1-1:4.2: ipheth_rcvbulk_callback: urb status: > -79" on the connected dev

Re: [RFC][PATCH 0/3] New thermal interface allowing IPA to get max power

2021-02-22 Thread Lukasz Luba
Hi Daniel, On 2/22/21 10:22 AM, Daniel Lezcano wrote: Hi Lukasz, sorry for the delay, it took more time to finish my current work before commenting these patches. No worries, thank you looking at this. On 26/01/2021 11:39, Lukasz Luba wrote: Hi all, This patch set tries to add the missi

Re: [PATCH -next] IB/mlx5: Add missing error code

2021-02-22 Thread kernel test robot
Hi YueHaibing, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20210219] url: https://github.com/0day-ci/linux/commits/YueHaibing/IB-mlx5-Add-missing-error-code/20210222-162815 base:abaf6f60176f1ae9d946d63e4db63164600b7b1a config: arc-allyesconfig

[PATCH 5.11 01/12] Xen/x86: dont bail early from clear_foreign_p2m_mapping()

2021-02-22 Thread Greg Kroah-Hartman
From: Jan Beulich commit a35f2ef3b7376bfd0a57f7844bd7454389aae1fc upstream. Its sibling (set_foreign_p2m_mapping()) as well as the sibling of its only caller (gnttab_map_refs()) don't clean up after themselves in case of error. Higher level callers are expected to do so. However, in order for th

[PATCH 5.11 00/12] 5.11.1-rc1 review

2021-02-22 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.11.1 release. There are 12 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 24 Feb 2021 12:07:46 +. Anything rece

[PATCH 5.11 11/12] Bluetooth: btusb: Always fallback to alt 1 for WBS

2021-02-22 Thread Greg Kroah-Hartman
From: Trent Piepho commit 517b693351a2d04f3af1fc0e506ac7e1346094de upstream. When alt mode 6 is not available, fallback to the kernel <= 5.7 behavior of always using alt mode 1. Prior to kernel 5.8, btusb would always use alt mode 1 for WBS (Wide Band Speech aka mSBC aka transparent SCO). In c

[PATCH 5.11 10/12] tty: protect tty_write from odd low-level tty disciplines

2021-02-22 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 3342ff2698e9720f4040cc458a2744b2b32f5c3a upstream. Al root-caused a new warning from syzbot to the ttyprintk tty driver returning a write count larger than the data the tty layer actually gave it. Which confused the tty write code mightily, and with the new iov_iter

[PATCH 5.11 02/12] Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()

2021-02-22 Thread Greg Kroah-Hartman
From: Jan Beulich commit b512e1b077e5ccdbd6e225b15d934ab12453b70a upstream. We should not set up further state if either mapping failed; paying attention to just the user mapping's status isn't enough. Also use GNTST_okay instead of implying its value (zero). This is part of XSA-361. Signed-o

[PATCH 5.11 12/12] media: pwc: Use correct device for DMA

2021-02-22 Thread Greg Kroah-Hartman
From: Matwey V. Kornilov commit 69c9e825e812ec6d663e64ebf14bd3bc7f37e2c7 upstream. This fixes the following newly introduced warning: [ 15.518253] [ cut here ] [ 15.518941] WARNING: CPU: 0 PID: 246 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x1a8/0x1d0 [ 15.52

[PATCH 5.11 03/12] Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages()

2021-02-22 Thread Greg Kroah-Hartman
From: Jan Beulich commit dbe5283605b3bc12ca45def09cc721a0a5c853a2 upstream. We may not skip setting the field in the unmap structure when GNTMAP_device_map is in use - such an unmap would fail to release the respective resources (a page ref in the hypervisor). Otoh the field doesn't need setting

[PATCH 5.11 04/12] Xen/gntdev: correct error checking in gntdev_map_grant_pages()

2021-02-22 Thread Greg Kroah-Hartman
From: Jan Beulich commit ebee0eab08594b2bd5db716288a4f1ae5936e9bc upstream. Failure of the kernel part of the mapping operation should also be indicated as an error to the caller, or else it may assume the respective kernel VA is okay to access. Furthermore gnttab_map_refs() failing still requi

[PATCH 5.11 05/12] xen/arm: dont ignore return errors from set_phys_to_machine

2021-02-22 Thread Greg Kroah-Hartman
From: Stefano Stabellini commit 36bf1dfb8b266e089afa9b7b984217f17027bf35 upstream. set_phys_to_machine can fail due to lack of memory, see the kzalloc call in arch/arm/xen/p2m.c:__set_phys_to_machine_multi. Don't ignore the potential return error in set_foreign_p2m_mapping, returning it to the

[PATCH 5.10 10/29] mt76: mt7915: fix endian issues

2021-02-22 Thread Greg Kroah-Hartman
From: Felix Fietkau [ Upstream commit cee236e1489ecca9d23d6ce6f60d126cc651a5ba ] Multiple MCU messages were using u16/u32 fields without endian annotations or conversions Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Fixes: 5517f78b0063 ("mt76: mt7915: enable

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