[RFC PATCH v3 02/13] af_vsock: prepare 'vsock_connectible_recvmsg()'

2021-01-25 Thread Arseny Krasnov
This prepares 'vsock_connectible_recvmg()' to call SEQPACKET receive loop: 1) Some shared check left in this function, then socket type specific receive loop is called. 2) Stream receive loop is moved to separate function. Signed-off-by: Arseny Krasnov --- net/vmw_vsock/af_vsock.c | 242

Re: [PATCH] drivers: dma: qcom: bam_dma: Manage clocks when controlled_remotely is set

2021-01-25 Thread Thara Gopinath
Hi Shawn, On 1/23/21 2:19 AM, Shawn Guo wrote: On Fri, Jan 22, 2021 at 10:44:09AM -0500, Thara Gopinath wrote: Hi Shawn, Thanks for the review On 1/22/21 12:10 AM, Shawn Guo wrote: On Thu, Jan 21, 2021 at 09:52:51PM -0500, Thara Gopinath wrote: When bam dma is "controlled remotely", thus

[PATCH] drm/amd/display: use div_s64() for 64-bit division

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The open-coded 64-bit division causes a link error on 32-bit machines: ERROR: modpost: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! Use the div_s64() to perform the division here.

Re: Issue in dmesg time with lockless ring buffer

2021-01-25 Thread John Ogness
On 2021-01-22, "J. Avila" wrote: > When doing some internal testing on a 5.10.4 kernel, we found that the > time taken for dmesg seemed to increase from the order of milliseconds > to the order of seconds when the dmesg size approached the ~1.2MB > limit. After doing some digging, we found that

[STABLE BACKPORT v2 4.4.y, 4.9.y and 4.14.y] compiler.h: Raise minimum version of GCC to 5.1 for arm64

2021-01-25 Thread Will Deacon
commit dca5244d2f5b94f1809f0c02a549edf41ccd5493 upstream. GCC versions >= 4.9 and < 5.1 have been shown to emit memory references beyond the stack pointer, resulting in memory corruption if an interrupt is taken after the stack pointer has been adjusted but before the reference has been executed.

Re: [PATCH net-next v2 1/2] dt-bindings: net: dsa: add MT7530 GPIO controller binding

2021-01-25 Thread Andrew Lunn
On Mon, Jan 25, 2021 at 12:43:21PM +0800, DENG Qingfang wrote: > Add device tree binding to support MT7530 GPIO controller. > > Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn Andrew

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-25 Thread Michal Hocko
On Wed 20-01-21 17:21:46, Uladzislau Rezki (Sony) wrote: > For a single argument we can directly request a page from a caller > context when a "carry page block" is run out of free spots. Instead > of hitting a slow path we can request an extra page by demand and > proceed with a fast path. > > A

Thoughts on sharing KVM tracepoints [was:Re: [PATCH 2/2] KVM: nVMX: trace nested vm entry]

2021-01-25 Thread Maxim Levitsky
On Thu, 2021-01-21 at 14:27 -0800, Sean Christopherson wrote: > On Thu, Jan 21, 2021, Maxim Levitsky wrote: > > This is very helpful to debug nested VMX issues. > > > > Signed-off-by: Maxim Levitsky > > --- > > arch/x86/kvm/trace.h | 30 ++ > >

Re: [PATCH v5 13/21] arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line

2021-01-25 Thread Suzuki K Poulose
On 1/25/21 10:50 AM, Marc Zyngier wrote: As we want to be able to disable VHE at runtime, let's match "id_aa64mmfr1.vh=" from the command line as an override. This doesn't have much effect yet as our boot code doesn't look at the cpufeature, but only at the HW registers. Signed-off-by: Marc

Re: [PATCH v4 2/4] mm: failfast mode with __GFP_NORETRY in alloc_contig_range

2021-01-25 Thread Michal Hocko
On Thu 21-01-21 09:55:00, Minchan Kim wrote: > Contiguous memory allocation can be stalled due to waiting > on page writeback and/or page lock which causes unpredictable > delay. It's a unavoidable cost for the requestor to get *big* > contiguous memory but it's expensive for *small* contiguous >

Re: [PATCH V3] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt

2021-01-25 Thread Linus Walleij
On Mon, Jan 25, 2021 at 5:18 AM Hailong Fan wrote: > When flipping the polarity will be generated interrupt under certain > circumstances, but GPIO external signal has not changed. > Then, mask the interrupt before polarity setting, and clear the > unexpected interrupt after trigger type setting

Re: [PATCH] drm/amd/display: use div_s64() for 64-bit division

2021-01-25 Thread Arnd Bergmann
On Mon, Jan 25, 2021 at 1:51 PM Chen, Guchun wrote: > > [AMD Public Use] > > Hi Arnd Bergmann, > > Thanks for your patch. This link error during compile has been fixed by below > commit and been submitted to drm-next branch already. > > 5da047444e82 drm/amd/display: fix 64-bit division issue on

Re: [PATCH] regulator: pf8x00: set ramp_delay for bucks

2021-01-25 Thread Mark Brown
On Mon, Jan 25, 2021 at 10:27:00AM +0100, Christoph Fritz wrote: > This patch sets ramp_delay for bucks to the max value given by the > datasheet. Please don't send new patches in reply to old threads, it buries things and makes it much harder to follow what's going on. Start a new thread for

Re: [PATCH] i915: Fix DRM_I915_WERROR dependencies

2021-01-25 Thread Arnd Bergmann
On Mon, Jan 25, 2021 at 1:33 PM Chris Wilson wrote: > > Quoting Arnd Bergmann (2021-01-25 12:26:44) > > From: Arnd Bergmann > > > > CONFIG_DRM_I915_DEBUG now selects CONFIG_DRM_I915_WERROR, but fails > > to honor its dependencies: > > > > WARNING: unmet direct dependencies detected for

[PATCH 1/1] mfd: da9063: Support SMBus and I2C mode

2021-01-25 Thread Mark Jonas
From: Hubert Streidl By default the PMIC DA9063 2-wire interface is SMBus compliant. This means the PMIC will automatically reset the interface when the clock signal ceases for more than the SMBus timeout of 35 ms. If the I2C driver / device is not capable of creating atomic I2C transactions, a

Re: [PATCH] cmd_dtc: Enable generation of device tree symbols

2021-01-25 Thread Cyril Brulebois
Hi, Uwe Kleine-König (2021-01-25): > Adding the -@ switch to dtc results in the binary devicetrees containing > a list of symbolic references and their paths. This is necessary to > apply device tree overlays e.g. on Raspberry Pi as described on >

Re: [PATCH] spi: spi-au1550: pr_err instead of printk

2021-01-25 Thread Mark Brown
On Sat, Jan 23, 2021 at 04:03:44AM +0100, corentin noel wrote: > Signed-off-by: corentin noel This doesn't apply against current code, please check and resend. It should apply against my tree which already has your previous patches including the one which > if (!ddma_memid) > -

Re: [PATCH v13 09/12] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-01-25 Thread David Hildenbrand
On 17.01.21 16:10, Muchun Song wrote: > Add a kernel parameter hugetlb_free_vmemmap to enable the feature of > freeing unused vmemmap pages associated with each hugetlb page on boot. The description completely lacks a description of the changes performed in arch/x86/mm/init_64.c. [...] > ---

[PATCH -next] kernel/sys.c: Remove unused including

2021-01-25 Thread Zou Wei
Fix the following versioncheck warning: kernel/sys.c:42:1: unused including Reported-by: Hulk Robot Signed-off-by: Zou Wei --- kernel/sys.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sys.c b/kernel/sys.c index e6fd8b8..8ecd3c5 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@

[PATCH v3 1/3] dt-bindings:drm/bridge:anx7625:add HDCP support flag and swing reg

2021-01-25 Thread Xin Ji
Add 'bus-type' and 'data-lanes' define for port0, add HDCP support flag and DP tx lane0 and lane1 swing register array define. Signed-off-by: Xin Ji --- .../bindings/display/bridge/analogix,anx7625.yaml | 57 -- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] drm/i915/gem: fix non-SMP build failure

2021-01-25 Thread Chris Wilson
Quoting Arnd Bergmann (2021-01-25 12:25:34) > From: Arnd Bergmann > > The x86-specific wbinvd_on_all_cpus() function is exported > through asm/smp.h, causing a build failure in the i915 driver > when SMP is disabled: > > drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of >

[PATCH] drm/amd/display: fix unused variable warning

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann After all users of the 'dm' warnings got hidden in an #ifdef, the compiler started warning about it being unused: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: error: unused variable 'dm' [-Werror,-Wunused-variable] Add another such #ifdef. Fixes:

[RFC PATCH v3 08/13] virtio/vsock: fetch length for SEQPACKET record

2021-01-25 Thread Arseny Krasnov
This adds transport callback which tries to fetch record begin marker from socket's rx queue. It is called from af_vsock.c before reading data packets of record. Signed-off-by: Arseny Krasnov --- include/linux/virtio_vsock.h| 1 + net/vmw_vsock/virtio_transport_common.c | 33

[PATCH] usb: host: ehci-tegra: fix Kconfig depencies

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann Selecting the chipidea driver from the old Kconfig symbol can lead to a missing dependency: WARNING: unmet direct dependencies detected for USB_CHIPIDEA Depends on [m]: USB_SUPPORT [=y] && (USB_EHCI_HCD [=y] && USB_GADGET [=m] || USB_EHCI_HCD [=y] && !USB_GADGET [=m] ||

[RFC PATCH v3 10/13] virtio/vsock: rest of SOCK_SEQPACKET support

2021-01-25 Thread Arseny Krasnov
This adds rest of logic for SEQPACKET: 1) Shared functions for packet sending now set valid type of packet according socket type. 2) SEQPACKET specific function like SEQ_BEGIN send and data dequeue. 3) TAP support for SEQPACKET is not so easy if it is necessary to send whole record to TAP

[PATCH -next] net/mlx5: Remove unused including

2021-01-25 Thread Zou Wei
Fix the following versioncheck warning: drivers/net/ethernet/mellanox/mlx5/core/main.c:53:1: unused including Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] mmc: aspeed: move kunit test into separate module

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann Having both the driver and the unit test in the same module leads to a link failure because of the extra init/exit functions: drivers/mmc/host/sdhci-of-aspeed-test.c:98:1: error: redefinition of '__inittest' kunit_test_suite(aspeed_sdhci_test_suite); Make it a separate

[RFC PATCH v3 03/13] af_vsock: implement SEQPACKET rx loop

2021-01-25 Thread Arseny Krasnov
This adds receive loop for SEQPACKET. It looks like receive loop for SEQPACKET, 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 is no sense for these values in SEQPACKET case. 3) It waits

[PATCH -next] scsi: gdth: Remove unused including

2021-01-25 Thread Zou Wei
Fix the following versioncheck warning: drivers/scsi/gdth.c:85:1: unused including Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/scsi/gdth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index f43bd53..f949001 100644 ---

[PATCH] kasan: export kasan_poison

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann The unit test module fails to build after adding a reference to kasan_poison: ERROR: modpost: "kasan_poison" [lib/test_kasan.ko] undefined! Export this symbol to make it available to loadable modules. Fixes: b9b322c2bba9 ("kasan: add match-all tag tests") Signed-off-by:

[PATCH] [5.8 regression] net: ks8851: fix link error

2021-01-25 Thread Arnd Bergmann
From: Arnd Bergmann An object file cannot be built for both loadable module and built-in use at the same time: arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common': ks8851_common.c:(.text+0xf80): undefined reference to `__this_module' Change the

Re: [PATCH v3] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-25 Thread Ahmad Fatoum
On 25.01.21 12:49, Marc Kleine-Budde wrote: > On 1/25/21 12:21 PM, Ahmad Fatoum wrote: >> For non-DMA usage, we have an easy way to associate a timestamp with a >> sample: iio_pollfunc_store_time stores a timestamp in the primary >> trigger IRQ handler and stm32_adc_trigger_handler runs in the

Re: [PATCH 2/2] drm/dp_mst: Align mst link rate with soure rate

2021-01-25 Thread Ville Syrjälä
On Wed, Jan 13, 2021 at 01:51:00PM +0200, Jani Nikula wrote: > On Wed, 13 Jan 2021, Koba Ko wrote: > > After read the link rate from MST hub, align with > > maximum source rate. > > > > Signed-off-by: Koba Ko > > --- > > drivers/gpu/drm/drm_dp_mst_topology.c | 8 > >

Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass

2021-01-25 Thread Mel Gorman
On Mon, Jan 25, 2021 at 07:37:55PM +0800, Li, Aubrey wrote: > > It's interesting that patch 3 would make any difference on x64 given that > > it's SMT2. The scan depth should have been similar. It's somewhat expected > > that it will not be a universal win, particularly once the utilisation > > is

Re: [PATCH v5 07/21] arm64: Simplify init_el2_state to be non-VHE only

2021-01-25 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:05AM +, Marc Zyngier wrote: > As init_el2_state is now nVHE only, let's simplify it and drop > the VHE setup. > > Signed-off-by: Marc Zyngier > Acked-by: David Brazdil Acked-by: Catalin Marinas

RE: [PATCH] mmc: core: Apply trim broken quirk to R1J57L

2021-01-25 Thread Bough Chen
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2021年1月25日 18:47 > To: Ulf Hansson > Cc: Wang, Xiaolei ; Bough Chen > ; Pali Rohár ; Lee Jones > ; linux-...@vger.kernel.org; Linux Kernel Mailing List > > Subject: Re: [PATCH] mmc: core: Apply trim broken

Re: [PATCH V4 4/4] virtio-mem: check against mhp_get_pluggable_range() which memory we can hotplug

2021-01-25 Thread David Hildenbrand
On 25.01.21 03:58, Anshuman Khandual wrote: > From: David Hildenbrand > > Right now, we only check against MAX_PHYSMEM_BITS - but turns out there > are more restrictions of which memory we can actually hotplug, especially > om arm64 or s390x once we support them: we might receive something like

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-25 Thread Xu, Like
On 2021/1/25 19:13, Peter Zijlstra wrote: On Mon, Jan 25, 2021 at 04:08:22PM +0800, Like Xu wrote: Hi Peter, On 2021/1/22 17:56, Peter Zijlstra wrote: On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: On Fri, Jan 15, 2021, Andi Kleen wrote: I'm asking about ucode/hardare.

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-25 Thread Jiri Pirko
Thu, Jan 21, 2021 at 06:36:05PM CET, k...@kernel.org wrote: >On Thu, 21 Jan 2021 14:21:52 +0200 Ido Schimmel wrote: >> On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: >> > Add new trap action HARD_DROP, which can be used by the >> > drivers to register traps, where it's impossible

RE: [RFC PATCH] sched/fair: first try to fix the scheduling impact of NUMA diameter > 2

2021-01-25 Thread Valentin Schneider
On 25/01/21 03:13, Song Bao Hua (Barry Song) wrote: > As long as NUMA diameter > 2, building sched_domain by sibling's child domain > will definitely create a sched_domain with sched_group which will span > out of the sched_domain >+--+ +--++---+

Re: [PATCH v2 4/4] arm: dts: add 8devices Habanero DVK

2021-01-25 Thread Robert Marko
On Fri, Jan 22, 2021 at 7:56 PM Bjorn Andersson wrote: > > On Fri 02 Oct 12:41 CDT 2020, Robert Marko wrote: > > > On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > > > > > 8devices Habanero DVK is a dual-band SoM development kit based on Qualcomm > > > IPQ4019 + QCA8075 platform. > > > > >

Re: [PATCH] media: vidtv: remove redundant quote

2021-01-25 Thread Hans Verkuil
On 19/01/2021 02:09, chiguoqing wrote: > Repeated references string.h > > Signed-off-by: Wen Zhang checkpatch gives me: ERROR: Missing Signed-off-by: line by nominal patch author 'chiguoqing ' Can you fix this? Regards, Hans > --- > drivers/media/test-drivers/vidtv/vidtv_psi.c |

[RFC PATCH v3 06/13] af_vsock: update comments for stream sockets

2021-01-25 Thread Arseny Krasnov
This replaces 'stream' to 'connect oriented' in comments as SEQPACKET is also connect oriented. Signed-off-by: Arseny Krasnov --- net/vmw_vsock/af_vsock.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c

[RFC PATCH v3 04/13] af_vsock: implement send logic for SOCK_SEQPACKET

2021-01-25 Thread Arseny Krasnov
This adds some logic to current stream enqueue function for SEQPACKET support: 1) Send record begin marker with length of record. 2) Return value from enqueue function is wholevrecord length or error for SOCK_SEQPACKET. Signed-off-by: Arseny Krasnov --- include/net/af_vsock.h | 1 +

[RFC PATCH v3 05/13] af_vsock: rest of SEQPACKET support

2021-01-25 Thread Arseny Krasnov
This does rest of SOCK_SEQPACKET support: 1) Adds socket ops for SEQPACKET type. 2) Allows to create socket with SEQPACKET type. Signed-off-by: Arseny Krasnov --- net/vmw_vsock/af_vsock.c | 71 1 file changed, 71 insertions(+) diff --git

[PATCH v5 13/21] arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line

2021-01-25 Thread Marc Zyngier
As we want to be able to disable VHE at runtime, let's match "id_aa64mmfr1.vh=" from the command line as an override. This doesn't have much effect yet as our boot code doesn't look at the cpufeature, but only at the HW registers. Signed-off-by: Marc Zyngier Acked-by: David Brazdil ---

[PATCH v5 20/21] arm64: Defer enabling pointer authentication on boot core

2021-01-25 Thread Marc Zyngier
From: Srinivas Ramana Defer enabling pointer authentication on boot core until after its required to be enabled by cpufeature framework. This will help in controlling the feature dynamically with a boot parameter. Signed-off-by: Ajay Patil Signed-off-by: Prasad Sodagudi Signed-off-by:

[PATCH v5 16/21] arm64: Make kvm-arm.mode={nvhe, protected} an alias of id_aa64mmfr1.vh=0

2021-01-25 Thread Marc Zyngier
Admitedly, passing id_aa64mmfr1.vh=0 on the command-line isn't that easy to understand, and it is likely that users would much prefer write "kvm-arm.mode=nvhe", or "...=protected". So here you go. This has the added advantage that we can now always honor the "kvm-arm.mode=protected" option, even

Re: [PATCH] kgdb: use new API for breakpoint tasklet

2021-01-25 Thread Daniel Thompson
On Sat, Jan 23, 2021 at 07:42:37PM +0100, Emil Renner Berthing wrote: > This converts the kgdb_tasklet_breakpoint to use the new API in > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > The new API changes the argument passed to the callback function, but > fortunately the

Re: [PATCH v5 00/10] sunxi: Support IRQ wakeup from deep sleep

2021-01-25 Thread Maxime Ripard
On Sat, Jan 23, 2021 at 12:26:26AM -0600, Samuel Holland wrote: > On 1/22/21 4:47 AM, Maxime Ripard wrote: > > On Thu, Jan 21, 2021 at 07:33:54PM -0600, Samuel Holland wrote: > >> On 1/21/21 2:35 PM, Marc Zyngier wrote: > >>> On Sun, 17 Jan 2021 23:50:30 -0600, Samuel Holland wrote: >

[PATCH v5 15/21] arm64: Add an aliasing facility for the idreg override

2021-01-25 Thread Marc Zyngier
In order to map the override of idregs to options that a user can easily understand, let's introduce yet another option array, which maps an option to the corresponding idreg options. Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas Acked-by: David Brazdil ---

Re: [PATCH 3/3] blk-mq: Use llist_head for blk_cpu_done

2021-01-25 Thread Sebastian Andrzej Siewior
On 2021-01-25 08:30:12 [+], Christoph Hellwig wrote: > > +static void blk_mq_complete_send_ipi(struct request *rq) > > +{ > > + struct llist_head *list; > > + unsigned int cpu; > > + > > + cpu = rq->mq_ctx->cpu; > > + list = _cpu(blk_cpu_done, cpu); > > + if (llist_add(>ipi_list,

[PATCH v5 14/21] arm64: Honor VHE being disabled from the command-line

2021-01-25 Thread Marc Zyngier
Finally we can check whether VHE is disabled on the command line, and not enable it if that's the user's wish. Signed-off-by: Marc Zyngier Acked-by: David Brazdil --- arch/arm64/kernel/asm-offsets.c | 3 +++ arch/arm64/kernel/hyp-stub.S| 11 +++ 2 files changed, 14 insertions(+)

[PATCH v5 21/21] arm64: cpufeatures: Allow disabling of Pointer Auth from the command-line

2021-01-25 Thread Marc Zyngier
In order to be able to disable Pointer Authentication at runtime, whether it is for testing purposes, or to work around HW issues, let's add support for overriding the ID_AA64ISAR1_EL1.{GPI,GPA,API,APA} fields. This is further mapped on the arm64.nopauth command-line alias. Signed-off-by: Marc

[PATCH v5 11/21] arm64: Extract early FDT mapping from kaslr_early_init()

2021-01-25 Thread Marc Zyngier
As we want to parse more options very early in the kernel lifetime, let's always map the FDT early. This is achieved by moving that code out of kaslr_early_init(). No functionnal change expected. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Acked-by: David Brazdil ---

[PATCH v5 19/21] arm64: cpufeatures: Allow disabling of BTI from the command-line

2021-01-25 Thread Marc Zyngier
In order to be able to disable BTI at runtime, whether it is for testing purposes, or to work around HW issues, let's add support for overriding the ID_AA64PFR1_EL1.BTI field. This is further mapped on the arm64.nobti command-line alias. Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas

Re: [PATCH] percpu: fix clang modpost warning in pcpu_build_alloc_info()

2021-01-25 Thread Arnd Bergmann
On Tue, Jan 5, 2021 at 1:55 AM Dennis Zhou wrote: > > On Mon, Jan 04, 2021 at 04:46:51PM -0700, Nathan Chancellor wrote: > > On Thu, Dec 31, 2020 at 09:28:52PM +, Dennis Zhou wrote: > > > > > Hi Nathan, > > > > > Hi Dennis, > > > > I did a bisect of the problematic config against defconfig

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

2021-01-25 Thread Hans Verkuil
On 18/01/2021 18:45, AngeloGioacchino Del Regno wrote: > 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

RE: [RFC PATCH v3 0/2] scheduler: expose the topology of clusters and add cluster scheduler

2021-01-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] > Sent: Wednesday, January 13, 2021 12:00 AM > To: Morten Rasmussen ; Tim Chen > > Cc: Song Bao Hua (Barry Song) ; > valentin.schnei...@arm.com; catalin.mari...@arm.com; w...@kernel.org; >

[PATCH v5 10/21] arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()

2021-01-25 Thread Marc Zyngier
__read_sysreg_by_encoding() is used by a bunch of cpufeature helpers, which should take the feature override into account. Let's do that. For a good measure (and because we are likely to need to further down the line), make this helper available to the rest of the non-modular kernel. Code that

[PATCH v3 0/3] Add MIPI rx DPI support

2021-01-25 Thread Xin Ji
Hi all, this patch series implement MIPI rx DPI feature. Please help to review. This is the v3 version, any mistakes, please let me know, I'll fix it in the next series. Change history: v3: Fix Rob Herring, Dan Carpenter, Nicolas comments - Split the patch, fix not correct return data - Fix

[RFC PATCH v3 00/13] virtio/vsock: introduce SOCK_SEQPACKET support

2021-01-25 Thread Arseny Krasnov
This patchset impelements support of SOCK_SEQPACKET for virtio transport. As SOCK_SEQPACKET guarantees to save record boundaries, so to do it, new packet operation was added: it marks start of record (with record length in header), such packet doesn't carry any data. To send

[PATCH v5 17/21] KVM: arm64: Document HVC_VHE_RESTART stub hypercall

2021-01-25 Thread Marc Zyngier
For completeness, let's document the HVC_VHE_RESTART stub. Signed-off-by: Marc Zyngier Acked-by: David Brazdil --- Documentation/virt/kvm/arm/hyp-abi.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/virt/kvm/arm/hyp-abi.rst

[PATCH v5 18/21] arm64: Move "nokaslr" over to the early cpufeature infrastructure

2021-01-25 Thread Marc Zyngier
Given that the early cpufeature infrastructure has borrowed quite a lot of code from the kaslr implementation, let's reimplement the matching of the "nokaslr" option with it. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Acked-by: David Brazdil --- arch/arm64/kernel/idreg-override.c |

Re: [PATCH 2/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-01-25 Thread David Hildenbrand
On 25.01.21 11:56, Oscar Salvador wrote: > On Mon, Jan 25, 2021 at 11:39:55AM +0100, Oscar Salvador wrote: >>> Interresting, so we automatically support differeing sizeof(struct >>> page). I guess it will be problematic in case of sizeof(struct page) != >>> 64, because then, we might not have

[PATCH v5 12/21] arm64: cpufeature: Add an early command-line cpufeature override facility

2021-01-25 Thread Marc Zyngier
In order to be able to override CPU features at boot time, let's add a command line parser that matches options of the form "cpureg.feature=value", and store the corresponding value into the override val/mask pair. No features are currently defined, so no expected change in functionality.

Re: [RFC PATCH] perf: Handle multiple formatted AUX records

2021-01-25 Thread Peter Zijlstra
On Mon, Jan 25, 2021 at 10:45:06AM +, Suzuki K Poulose wrote: > On 1/25/21 10:25 AM, Peter Zijlstra wrote: > > Since we have a whole u64, do we want to reserve a whole nibble (or > > maybe even a byte) for a format type? Because with a single bit like > > this, we'll kick ourselves when we

Re: [PATCH 2/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-01-25 Thread Oscar Salvador
On Mon, Jan 25, 2021 at 11:39:55AM +0100, Oscar Salvador wrote: > > Interresting, so we automatically support differeing sizeof(struct > > page). I guess it will be problematic in case of sizeof(struct page) != > > 64, because then, we might not have multiples of 2MB for the memmap of a > > memory

[PATCH v5 07/21] arm64: Simplify init_el2_state to be non-VHE only

2021-01-25 Thread Marc Zyngier
As init_el2_state is now nVHE only, let's simplify it and drop the VHE setup. Signed-off-by: Marc Zyngier Acked-by: David Brazdil --- arch/arm64/include/asm/el2_setup.h | 36 +++--- arch/arm64/kernel/head.S | 2 +- arch/arm64/kvm/hyp/nvhe/hyp-init.S | 2 +-

[PATCH v5 05/21] arm64: Initialise as nVHE before switching to VHE

2021-01-25 Thread Marc Zyngier
As we are aiming to be able to control whether we enable VHE or not, let's always drop down to EL1 first, and only then upgrade to VHE if at all possible. This means that if the kernel is booted at EL2, we always start with a nVHE init, drop to EL1 to initialise the the kernel, and only then

[PATCH v5 08/21] arm64: Move SCTLR_EL1 initialisation to EL-agnostic code

2021-01-25 Thread Marc Zyngier
We can now move the initial SCTLR_EL1 setup to be used for both EL1 and EL2 setup. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Acked-by: David Brazdil --- arch/arm64/kernel/head.S | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel/head.S

Re: [PATCH] mmc: core: Apply trim broken quirk to R1J57L

2021-01-25 Thread Fabio Estevam
Hi Haibo, Could you please take a look? Thanks On Thu, Jan 21, 2021 at 10:26 AM Ulf Hansson wrote: > > + Fabio, Haibo > > On Thu, 21 Jan 2021 at 10:54, Wang, Xiaolei > wrote: > > > > Hi > > > > >Are you sure this is an eMMC problem and not a mmc host driver issue? > > > > >Can you elaborate

Re: [v4 PATCH 08/11] mm: vmscan: use per memcg nr_deferred of shrinker

2021-01-25 Thread Kirill Tkhai
On 22.01.2021 02:06, Yang Shi wrote: > Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's > nr_deferred > will be used in the following cases: > 1. Non memcg aware shrinkers > 2. !CONFIG_MEMCG > 3. memcg is disabled by boot parameter > > Signed-off-by: Yang Shi >

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-25 Thread Dietmar Eggemann
On 22/01/2021 20:10, Joel Fernandes wrote: > Hi Vincent, > > Thanks for reply. Please see the replies below: > > On Fri, Jan 22, 2021 at 05:56:22PM +0100, Vincent Guittot wrote: >> On Fri, 22 Jan 2021 at 16:46, Joel Fernandes (Google) >> wrote: >>> >>> On an octacore ARM64 device running

RE: [PATCH] lkdtm: fix memory copy size for WRITE_KERN

2021-01-25 Thread David Laight
From: Candle Sun > Sent: 25 January 2021 08:56 > > From: Candle Sun > > Though do_overwritten() follows do_nothing() in source code, the final > memory address order is determined by compiler. We can't always assume > address of do_overwritten() is bigger than do_nothing(). At least the > Clang

Re: [PATCH 1/2] printk: Add new pr_*_deferred_once() variants

2021-01-25 Thread Peter Zijlstra
On Sat, Jan 23, 2021 at 11:37:40PM +, Qais Yousef wrote: > To allow users in code where printk is not allowed. > > Signed-off-by: Qais Yousef > --- > include/linux/printk.h | 24 > 1 file changed, 24 insertions(+) > > diff --git a/include/linux/printk.h

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-25 Thread Like Xu
Hi Peter, On 2021/1/22 17:56, Peter Zijlstra wrote: On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: On Fri, Jan 15, 2021, Andi Kleen wrote: I'm asking about ucode/hardare. Is the "guest pebs buffer write -> PEBS PMI" guaranteed to be atomic? Of course not. So there's

Re: [PATCH 1/2] arm64: boot: dts: add new dts for hellcat & petra

2021-01-25 Thread Michal Simek
Hi Daniel, On 1/22/21 9:32 PM, Daniel Walker (danielwa) wrote: > On Fri, Jan 22, 2021 at 09:48:53AM +0100, Michal Simek wrote: >> Hi Daniel, >> >> On 1/22/21 12:12 AM, Daniel Walker wrote: >>> Add Petra and Hellcat dts file. These platforms are based on >>> the Xilinx Zynqmp platform. >>> >>>

Re: [RFC PATCH] perf: Handle multiple formatted AUX records

2021-01-25 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 03:18:29PM +, Suzuki K Poulose wrote: > CoreSight PMU supports aux-buffer for the ETM tracing. The trace > generated by the ETM (associated with individual CPUs, like Intel PT) > is captured by a separate IP (CoreSight TMC-ETR/ETF until now). > > The TMC-ETR applies

linux-next boot error: WARNING in cfg80211_register_netdevice

2021-01-25 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:59fa6a16 Add linux-next specific files for 20210125 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1647f4bf50 kernel config: https://syzkaller.appspot.com/x/.config?x=ae5f53cc82a45e0d dashboard

[PATCH 1/3] dt-bindings: pinctrl: at91-pio4: add slew-rate

2021-01-25 Thread Claudiu Beznea
Document slew-rate DT binding for SAMA7G5. Signed-off-by: Claudiu Beznea --- .../devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt

[PATCH 3/3] pinctrl: at91-pio4: fix "Prefer 'unsigned int' to bare use of 'unsigned'"

2021-01-25 Thread Claudiu Beznea
Fix "Prefer 'unsigned int' to bare use of 'unsigned'" checkpatch.pl warning. Signed-off-by: Claudiu Beznea --- drivers/pinctrl/pinctrl-at91-pio4.c | 110 +++- 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c

Re: [PATCH v2] lan743x: add virtual PHY for PHY-less devices

2021-01-25 Thread Sergej Bauer
On Saturday, January 23, 2021 4:32:38 AM MSK Andrew Lunn wrote: > > it migth be helpful for developers work on userspace networking tools with > > PHY-less lan743x > > (the interface even could not be brought up) > > > of course, there nothing much to do without TP port but the difference is > >

[PATCH 3/3 v2] blk-mq: Use llist_head for blk_cpu_done

2021-01-25 Thread Sebastian Andrzej Siewior
With llist_head it is possible to avoid the locking (the irq-off region) when items are added. This makes it possible to add items on a remote CPU without additional locking. llist_add() returns true if the list was previously empty. This can be used to invoke the SMP function call / raise sofirq

Re: linux-next boot error: WARNING in cfg80211_register_netdevice

2021-01-25 Thread Johannes Berg
On Mon, 2021-01-25 at 01:52 -0800, syzbot wrote: > > [ cut here ] > WARNING: CPU: 0 PID: 1 at net/wireless/core.c:1336 > cfg80211_register_netdevice+0x235/0x330 net/wireless/core.c:1336 > Yes, umm. I accidentally *copied* that line a few lines further down rather than

[PATCH] tee: optee: remove need_resched() before cond_resched()

2021-01-25 Thread Jens Wiklander
Testing need_resched() before cond_resched() is not needed as an equivalent test is done internally in cond_resched(). So drop the need_resched() test. Fixes: dcb3b06d9c34 ("tee: optee: replace might_sleep with cond_resched") Signed-off-by: Jens Wiklander --- drivers/tee/optee/call.c | 3 +-- 1

Re: [PATCH v4 1/5] v4l: Add new Colorimetry Class

2021-01-25 Thread Hans Verkuil
On 20/01/2021 10:26, Stanimir Varbanov wrote: > Add Colorimetry control class for colorimetry controls > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 5 + > include/uapi/linux/v4l2-controls.h | 4 > 2 files changed, 9 insertions(+) > > diff --git

Re: [PATCH v2 1/1] x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula

2021-01-25 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 09:40:38PM +0100, Giovanni Gherdovich wrote: > This workload is constant in time, so instead of using the PELT sum we can > pretend that scale invariance is obtained with > > util_inv = util_raw * freq_curr / freq_max1[formula-1] > > where util_raw is the PELT

[PATCH 0/4] Add Support for SM8350 UFS

2021-01-25 Thread Vinod Koul
This series adds support for UFS found in SM8350 SoC. First we add UFS HC compatible strings, along with missing one for SM8250. This can go thru SCSI subssystem. Then we add binding for UFS phy and new regsiters and nw offsets specific to SM8350 followed by UFS phy tables. This can go thru phy

[PATCH 2/4] dt-bindings: phy: qcom,qmp: Add SM8350 UFS PHY bindings

2021-01-25 Thread Vinod Koul
Add the compatible strings for the UFS PHY found on SM8350 SoC. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml

[PATCH 3/4] phy: qcom-qmp: Add UFS v4 registers found in SM8350

2021-01-25 Thread Vinod Koul
Add the registers for few new registers found in SM8350. Also the UFS phy used in SM8350 seems to have different offsets than V4 phy, although it claims it is v4 phy, so add the new offsets with SM8350 tag instead of V4 tag. Signed-off-by: Vinod Koul --- drivers/phy/qualcomm/phy-qcom-qmp.h | 27

Re: [PATCH v2 1/1] x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula

2021-01-25 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 09:40:38PM +0100, Giovanni Gherdovich wrote: > 1. PROBLEM DESCRIPTION (over-utilization and schedutil) > > The problem happens on CPU-bound workloads spanning a large number of cores. > In this case schedutil won't select the maximum P-State. Actually, it's > likely that

[PATCH v2 net 0/1] net: fec: Fix temporary RMII clock reset on link up

2021-01-25 Thread Laurent Badel
v2: fixed a compilation warning The FEC drivers performs a "hardware reset" of the MAC module when the link is reported to be up. This causes a short glitch in the RMII clock due to the hardware reset clearing the receive control register which controls the MII mode. It seems that some link

Re: [PATCH] hwmon: (dell-smm) Add XPS 15 L502X to fan control blacklist

2021-01-25 Thread Pali Rohár
On Saturday 23 January 2021 18:46:08 Thomas Hebb wrote: > It has been reported[0] that the Dell XPS 15 L502X exhibits similar > freezing behavior to the other systems[1] on this blacklist. The issue > was exposed by a prior change of mine to automatically load > dell_smm_hwmon on a wider set of

Re: [PATCH] KVM: x86/mmu: improve robustness of some functions

2021-01-25 Thread Paolo Bonzini
On 25/01/21 10:54, Vitaly Kuznetsov wrote: What if we do something like (completely untested): diff --git a/arch/x86/kvm/mmu/mmu_internal.h b/arch/x86/kvm/mmu/mmu_internal.h index bfc6389edc28..5ec15e4160b1 100644 --- a/arch/x86/kvm/mmu/mmu_internal.h +++ b/arch/x86/kvm/mmu/mmu_internal.h @@

Re: [PATCH] sh: fix sparse annotation in SH's __get_user_check()

2021-01-25 Thread Oliver Hartkopp
On 23.01.21 18:32, Luc Van Oostenryck wrote: The pointer in get_user() and friends is supposed to be a __user pointer. But in SH's implementation of __get_user_check(), the pointer is assigned to a local variable __gu_addr which is lacking the __user annotation. As consequence, a warning is

Re: [PATCH] regulator: pf8x00: set ramp_delay for bucks

2021-01-25 Thread Adrien Grassein
Le lun. 25 janv. 2021 à 10:27, Christoph Fritz a écrit : > > This patch sets ramp_delay for bucks to the max value given by the > datasheet. > > Signed-off-by: Christoph Fritz > --- > drivers/regulator/pf8x00-regulator.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

[PATCH v2 1/3] arm64: dts: qcom: Add device tree for BQ Aquaris X5 (Longcheer L8910)

2021-01-25 Thread Jonathan Albrieux
BQ Aquaris X5 (Longcheer L8910) is a smartphone using the MSM8916 SoC. Add device tree with initial support for: - SDHCI (internal and external storage) - USB Device Mode - UART - Regulators - WiFi/BT - Volume buttons - Vibrator - Touchkeys backlight This device tree is based on

Re: [PATCH] drm/i915/gvt: fix uninitialized return in intel_gvt_update_reg_whitelist()

2021-01-25 Thread Chris Wilson
Quoting Dan Carpenter (2021-01-25 08:48:30) > Smatch found an uninitialized variable bug in this code: > > drivers/gpu/drm/i915/gvt/cmd_parser.c:3191 > intel_gvt_update_reg_whitelist() > error: uninitialized symbol 'ret'. > > The first thing that Smatch complains about is that "ret"

[PATCH] lkdtm: fix memory copy size for WRITE_KERN

2021-01-25 Thread Candle Sun
From: Candle Sun Though do_overwritten() follows do_nothing() in source code, the final memory address order is determined by compiler. We can't always assume address of do_overwritten() is bigger than do_nothing(). At least the Clang we are using places do_overwritten() before do_nothing() in

<    6   7   8   9   10   11   12   >