[PATCH 3/3] arm64: dts: rockchip: drop separate opp table on rk3399-puma

2021-02-25 Thread Heiko Stuebner
From: Heiko Stuebner We're using OPPs with a range now, so the fact that the cpu regulator on puma can't provide the needed 5mV steps requested in the minimal voltage values can be handled automatically by the opp framework. Signed-off-by: Heiko Stuebner ---

[PATCH 2/3] arm64: dts: rockchip: used range'd gpu opps on rk3399

2021-02-25 Thread Heiko Stuebner
From: Heiko Stuebner Similar to the cpu opps, also use opps with a range on the gpu. (min, preferred, max). The voltage just needs to be higher than the minimum and this allows the regulator more freedom if it can't provide the exact voltage specified, but just say 5mV higher, as can be seen on

[PATCH 1/3] arm64: dts: rockchip: synchronize rk3399 opps with vendor kernel

2021-02-25 Thread Heiko Stuebner
From: Heiko Stuebner The vendor-kernel did increase the minimum voltage for some low frequency opps to 825mV citing stability reasons. So do that in mainline as well and also use the ranged notation the vendor-kernel switched to, to give a bit more flexibility for different regulator setups.

Re: [drm/i915/gt] 8c3b1ba0e7: perf-sanity-tests.Parse_event_definition_strings.fail

2021-02-25 Thread Jiri Olsa
On Thu, Feb 25, 2021 at 04:06:23PM +0800, Jin, Yao wrote: > Hi Chris, Arnaldo, Jiri, > > We observe the parsing error for "software/xxx/" on some platforms. > > For example, > > # perf stat -e software/r1a/ -a -- sleep 1 > event syntax error: 'software/r1a/' > \___ parser

[RESEND PATCH 1/2] ARM64: enable GENERIC_FIND_FIRST_BIT

2021-02-25 Thread Yury Norov
ARM64 doesn't implement find_first_{zero}_bit in arch code and doesn't enable it in a config. It leads to using find_next_bit() which is less efficient: : 0: aa0003e4mov x4, x0 4: aa0103e0mov x0, x1 8: b4000181cbz x1, 38 c:

[PATCH 0/2] arch: enable GENERIC_FIND_FIRST_BIT for MIPS and ARM64

2021-02-25 Thread Yury Norov
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 not new at all and well-tested. It provides more optimized code and

[PATCH 2/2] MIPS: enable GENERIC_FIND_FIRST_BIT

2021-02-25 Thread Yury Norov
From: Alexander Lobakin MIPS doesn't have architecture-optimized bitsearching functions, like find_{first,next}_bit() etc. It's absolutely harmless to enable GENERIC_FIND_FIRST_BIT as this functionality is not new at all and well-tested. It provides more optimized code and saves some .text

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

2021-02-25 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

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

2021-02-25 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

[PATCH v3 2/3] dt-bindings: mtd: Add a property to declare secure regions in NAND chips

2021-02-25 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

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Emil Renner Berthing
On Thu, 25 Feb 2021 at 13:55, Arnd Bergmann wrote: > > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable

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

2021-02-25 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

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

2021-02-25 Thread Jorgen Hansen
> On 18 Feb 2021, at 06:36, Arseny Krasnov wrote: > > This moves wait loop for data to dedicated function, because later > it will be used by SEQPACKET data receive loop. > > Signed-off-by: Arseny Krasnov > --- > net/vmw_vsock/af_vsock.c | 155 +-- > 1 file

[PATCH] iwlwifi: fix link error without CONFIG_IWLMVM

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann A runtime check that was introduced recently failed to check for the matching Kconfig symbol: ld.lld: error: undefined symbol: iwl_so_trans_cfg >>> referenced by drv.c >>> net/wireless/intel/iwlwifi/pcie/drv.o:(iwl_pci_probe) Fixes: 930be4e76f26 ("iwlwifi: add

Re: [PATCH] RDMA/hw/hfi1/tid_rdma: remove unnecessary conversion to bool

2021-02-25 Thread Tom Talpey
On 2/25/2021 4:26 AM, Jiapeng Chong wrote: Fix the following coccicheck warnings: ./drivers/infiniband/hw/hfi1/tid_rdma.c:1118:36-41: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/infiniband/hw/hfi1/tid_rdma.c | 2 +- 1 file

Re: [PATCH] certs: select PKCS7_MESSAGE_PARSER if needed

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 3:12 PM David Howells wrote: > > Arnd Bergmann wrote: > > > + select PKCS7_MESSAGE_PARSER if INTEGRITY_PLATFORM_KEYRING > > I think a better way to do it is to add a separate config option for dealing > with revocation certs, which is part of what I suggested here: >

[PATCH] drm/amd/display: fix 64-bit integer division

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann The new display synchronization code caused a regression on all 32-bit architectures: ld.lld: error: undefined symbol: __aeabi_uldivmod >>> referenced by dce_clock_source.c >>> >>> gpu/drm/amd/display/dc/dce/dce_clock_source.o:(get_pixel_clk_frequency_100hz)

[PATCH] mtd: mtdcore: constify name param in mtd_bdi_init

2021-02-25 Thread Tomas Winkler
The bdi name is not modified by the function, it should be const. Signed-off-by: Tomas Winkler --- drivers/mtd/mtdcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index db5167eacaa4..80fb69453ebe 100644 ---

[PATCH 1/3] net: mscc: ocelot: select NET_DEVLINK

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann Without this option, the driver fails to link: ld.lld: error: undefined symbol: devlink_sb_register >>> referenced by ocelot_devlink.c >>> >>> net/ethernet/mscc/ocelot_devlink.o:(ocelot_devlink_sb_register) in archive >>> drivers/built-in.a >>> referenced by

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-25 Thread Mike Rapoport
On Thu, Feb 25, 2021 at 07:38:19AM -0500, George Kennedy wrote: > On 2/25/2021 3:53 AM, Mike Rapoport wrote: > > Hi George, > > > > > On 2/24/2021 5:37 AM, Mike Rapoport wrote: > > > > On Tue, Feb 23, 2021 at 04:46:28PM -0500, George Kennedy wrote: > > > > > Mike, > > > > > > > > > > Still no

Re: [PATCH] sched/pelt: Fix task util_est update filtering

2021-02-25 Thread Vincent Guittot
On Mon, 22 Feb 2021 at 10:24, Vincent Donnefort wrote: > > On Fri, Feb 19, 2021 at 11:48:28AM +0100, Vincent Guittot wrote: > > On Tue, 16 Feb 2021 at 17:39, wrote: > > > > > > From: Vincent Donnefort > > > > > > Being called for each dequeue, util_est reduces the number of its updates > > > by

Re: [PATCH v2 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-02-25 Thread Tony Krowiak
On 2/25/21 8:53 AM, Tony Krowiak wrote: On 2/25/21 6:28 AM, Halil Pasic wrote: On Wed, 24 Feb 2021 22:28:50 -0500 Tony Krowiak wrote: static void vfio_ap_mdev_unset_kvm(struct ap_matrix_mdev *matrix_mdev) { - kvm_arch_crypto_clear_masks(matrix_mdev->kvm); -

[PATCH 10/13] PCI: MSI: Let PCI host bridges declare their reliance on MSI domains

2021-02-25 Thread Marc Zyngier
The new 'no_msi' attribute solves the problem of advertising the lack of MSI capability for host bridges that know for sure that there will be no MSI for their end-points. However, there is a whole class of host bridges that cannot know whether MSIs will be provided or not, as they rely on other

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-25 Thread George Kennedy
On 2/25/2021 9:57 AM, Mike Rapoport wrote: On Thu, Feb 25, 2021 at 07:38:19AM -0500, George Kennedy wrote: On 2/25/2021 3:53 AM, Mike Rapoport wrote: Hi George, On 2/24/2021 5:37 AM, Mike Rapoport wrote: On Tue, Feb 23, 2021 at 04:46:28PM -0500, George Kennedy wrote: Mike, Still no

Re: [PATCH v1 1/1] i2c: cht-wc: Use fwnode for the controller and IRQ domain

2021-02-25 Thread Andy Shevchenko
On Thu, Feb 25, 2021 at 5:11 AM Hans de Goede wrote: > On 2/24/21 1:51 PM, Andy Shevchenko wrote: > > On Tue, Feb 23, 2021 at 08:25:35PM +0100, Hans de Goede wrote: > >> On 2/23/21 6:22 PM, Andy Shevchenko wrote: > >>> It's better to describe the I²C controller and associated IRQ domain with >

Re: [PATCH] direct-io: Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset()

2021-02-25 Thread Jeff Moyer
Y, Yang, Yang Li writes: > Fix the following coccicheck warning: > ./fs/direct-io.c:1155:7-23: WARNING: kmem_cache_zalloc should be used > for dio, instead of kmem_cache_alloc/memset > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > fs/direct-io.c | 4 +--- > 1 file changed, 1

[RESEND PATCH v2 2/2] pstore: Add buffer start check during init

2021-02-25 Thread Mukesh Ojha
From: Huang Yiwei In a scenario of panic, when we use DRAM to store log instead of persistant storage and during warm reset when we copy these data outside of ram. Missing check on prz->start(write position) can cause crash because it can be any value and can point outside the mapped region. So

[PATCH 3/4] kbuild: separate out vmlinux.lds generation

2021-02-25 Thread Masahiro Yamada
This is a preparation for the CONFIG_TRIM_UNUSED_KSYMS improvement. In the new implementation of CONFIG_TRIM_UNUSED_KSYMS (next commit), unused export symbols are trimmed at the link stage. Kbuild needs to build the entire tree to know which symbols are needed by modules for symbol resolution.

[PATCH 0/4] kbuild: build speed improvment of CONFIG_TRIM_UNUSED_KSYMS

2021-02-25 Thread Masahiro Yamada
Now CONFIG_TRIM_UNUSED_KSYMS is revived, but Linus is still unhappy about the build speed. I re-implemented this feature, and the build time cost is now almost unnoticeable level. I hope this makes Linus happy. Masahiro Yamada (4): kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

[PATCH 4/4] kbuild: re-implement CONFIG_TRIM_UNUSED_KSYMS to make it work in one-pass

2021-02-25 Thread Masahiro Yamada
Commit a555bdd0c58c ("Kbuild: enable TRIM_UNUSED_KSYMS again, with some guarding") re-enabled this feature, but Linus is still unhappy about the build time. The reason of the slowness is the recursion - after updating (, which contains all symbols needed by modules), Kbuild begins the second

[PATCH v9 7/9] crypto: Add math to support fast NIST P384

2021-02-25 Thread Stefan Berger
From: Saulo Alessandre * crypto/ecc.c - change ecc_get_curve to accept nist_p384 - add vli_mmod_fast_384 - change some routines to pass ecc_curve forward until vli_mmod_fast * crypto/ecc.h - add ECC_CURVE_NIST_P384_DIGITS - change ECC_MAX_DIGITS to P384 size Signed-off-by: Saulo

Re: [PATCH 3/4] hwmon: smpro: Add Ampere's Altra smpro-hwmon driver

2021-02-25 Thread Guenter Roeck
On 2/25/21 2:18 AM, Quan Nguyen wrote: > This commit adds support for Ampere SMpro hwmon driver. This driver > supports accessing various CPU sensors provided by the SMpro co-processor > including temperature, power, voltages, and current. > > Signed-off-by: Quan Nguyen > --- >

Re: [PATCH v2] perf tools: perf_event_paranoid and kptr_restrict may crash on 'perf top'

2021-02-25 Thread Jiri Olsa
On Thu, Feb 25, 2021 at 02:25:30PM +0800, Jackie Liu wrote: > After install the libelf-dev package and compiling perf, kptr_restrict=2 > and perf_event_paranoid=3 will cause perf top to crash, because the > value of /proc/kallsyms cannot be obtained, which leads to > info->jited_ksyms == NULL. In

Re: [PATCH] memblock: fix section mismatch warning

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 4:08 PM Mike Rapoport wrote: > On Thu, Feb 25, 2021 at 03:06:27PM +0100, Arnd Bergmann wrote: > > On Thu, Feb 25, 2021 at 2:47 PM David Hildenbrand wrote: > > > > > > (I don't see why to not inline that function, but I am obviously not a > > > compiler person :) ) > > > >

Re: Re: [PATCH v3 1/9] media: hevc: Modify structures to follow H265 ITU spec

2021-02-25 Thread Jernej Škrabec
Hi Ezequiel, Dne četrtek, 25. februar 2021 ob 14:09:52 CET je Ezequiel Garcia napisal(a): > Hi Benjamin, > > Thanks for the good work. > > On Mon, 2021-02-22 at 13:23 +0100, Benjamin Gaignard wrote: > > The H.265 ITU specification (section 7.4) define the general > > slice segment header

[PATCH 1/1] tracing/tools: fix a couple of spelling mistakes

2021-02-25 Thread Viktor Rosendahl
From: Colin Ian King There is a spelling mistake in the -g help option, I believe it should be "graph". There is also a spelling mistake in a warning message. Fix both mistakes. Signed-off-by: Colin Ian King Signed-off-by: Viktor Rosendahl --- tools/tracing/latency/latency-collector.c | 6

[PATCH 0/1] Fix for the latency-collector

2021-02-25 Thread Viktor Rosendahl
Hi Steve, I am not sure what is the correct approach to handle this latency-collector fix. Can you take it into your queue? best regards, Viktor Colin Ian King (1): tracing/tools: fix a couple of spelling mistakes tools/tracing/latency/latency-collector.c | 6 +++--- 1 file changed, 3

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

2021-02-25 Thread Arseny Krasnov
On 25.02.2021 17:24, Jorgen Hansen wrote: >> On 18 Feb 2021, at 06:36, Arseny Krasnov >> wrote: >> >> This moves wait loop for data to dedicated function, because later >> it will be used by SEQPACKET data receive loop. >> >> Signed-off-by: Arseny Krasnov >> --- >> net/vmw_vsock/af_vsock.c |

Re: [PATCH 1/1] net: fec: ptp: avoid register access when ipg clock is disabled

2021-02-25 Thread Richard Cochran
On Thu, Feb 25, 2021 at 03:05:32PM +0100, Heiko Thiery wrote: > But the explanation why it is currently disabled that way can be found > in the commit 91c0d987a9788dcc5fe26baafd73bf9242b68900. Okay, without re-factoring the entire driver, I agree that the gettime lock up aught to be fixed in a

Re: [PATCH BUGFIX/IMPROVEMENT 6/6] block, bfq: merge bursts of newly-created queues

2021-02-25 Thread Paolo Valente
> Il giorno 26 gen 2021, alle ore 17:15, Jens Axboe ha > scritto: > > On 1/26/21 3:51 AM, Paolo Valente wrote: >> @@ -2809,6 +2853,12 @@ void bfq_release_process_ref(struct bfq_data *bfqd, >> struct bfq_queue *bfqq) >> bfqq != bfqd->in_service_queue) >>

Re: [PATCH 1/1] Revert "iommu/iova: Retry from last rb tree node if iova search fails"

2021-02-25 Thread John Garry
On 29/01/2021 12:03, Robin Murphy wrote: On 2021-01-29 09:48, Leizhen (ThunderTown) wrote: Currently, we are thinking about the solution to the problem. However, because the end time of v5.11 is approaching, this patch is sent first. However, that commit was made for a reason - how do we

Re: [PATCH 2/2] of/fdt: Append bootloader arguments when CMDLINE_EXTEND=y

2021-02-25 Thread Marc Zyngier
On Thu, 25 Feb 2021 12:59:21 +, Will Deacon wrote: > > The Kconfig help text for CMDLINE_EXTEND is sadly duplicated across all > architectures that implement it (arm, arm64, powerpc, riscv and sh), but > they all seem to agree that the bootloader arguments will be appended to > the

Re: [PATCH] i2c: designware: Get right data length

2021-02-25 Thread 乱石
Hi, 在 2021/2/25 19:19, Andy Shevchenko 写道: On Thu, Feb 25, 2021 at 10:35:28AM +0800, Liguang Zhang wrote: IC_DATA_CMD[11] indicates the first data byte received after the address phase for receive transfer in Master receiver or Slave receiver mode, this bit was set in some transfer flow.

Re: [PATCH] memblock: fix section mismatch warning

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 2:47 PM David Hildenbrand wrote: > > On 25.02.21 14:38, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The inlining logic in clang-13 is rewritten to often not inline > > some functions that were inlined by all earlier compilers. > > > > In case of the memblock

[PATCH] recordmcount: Fix the wrong use of w* in arm64_is_fake_mcount()

2021-02-25 Thread Li Huafei
When cross-compiling the kernel, the endian of the target machine and the local machine may not match, at this time the recordmcount tool needs byte reversal when processing elf's variables to get the correct value. w* callback function is used to solve this problem, w is used for 4-byte variable

tasks-trace RCU: question about grace period forward progress

2021-02-25 Thread Mathieu Desnoyers
Hi Paul, Answering a question from Peter on IRC got me to look at rcu_read_lock_trace(), and I see this: static inline void rcu_read_lock_trace(void) { struct task_struct *t = current; WRITE_ONCE(t->trc_reader_nesting, READ_ONCE(t->trc_reader_nesting) + 1); barrier();

[PATCH 2/2] PCI: controller: avoid building empty drivers

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann There are harmless warnings when compile testing the kernel with CONFIG_TRIM_UNUSED_KSYMS: drivers/pci/controller/dwc/pcie-al.o: no symbols drivers/pci/controller/pci-thunder-ecam.o: no symbols drivers/pci/controller/pci-thunder-pem.o: no symbols The problem here is that

Re: [PATCH 2/3] net: dsa: tag_ocelot_8021q: fix driver dependency

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 3:43 PM Vladimir Oltean wrote: > > On Thu, Feb 25, 2021 at 03:38:32PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When the ocelot driver code is in a library, the dsa tag > > code cannot be built-in: > > > > ld.lld: error: undefined symbol:

Re: [RFC] KVM: x86: Support KVM VMs sharing SEV context

2021-02-25 Thread Tom Lendacky
On 2/24/21 9:44 PM, Steve Rutherford wrote: On Wed, Feb 24, 2021 at 1:00 AM Nathan Tempelman wrote: @@ -1186,6 +1195,10 @@ int svm_register_enc_region(struct kvm *kvm, if (!sev_guest(kvm)) return -ENOTTY; + /* If kvm is mirroring encryption context it isn't

[PATCH] net: phy: make mdio_bus_phy_suspend/resume as __maybe_unused

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann When CONFIG_PM_SLEEP is disabled, the compiler warns about unused functions: drivers/net/phy/phy_device.c:273:12: error: unused function 'mdio_bus_phy_suspend' [-Werror,-Wunused-function] static int mdio_bus_phy_suspend(struct device *dev)

Re: [PATCH v24 2/4] scsi: ufs: L2P map management for HPB read

2021-02-25 Thread Bean Huo
On Wed, 2021-02-24 at 13:54 +0900, Daejun Park wrote: > +static int ufshpb_init_mem_wq(void) > +{ > + int ret; > + unsigned int pool_size; > + > + ufshpb_mctx_cache = kmem_cache_create("ufshpb_mctx_cache", > + sizeof(struct > ufshpb_map_ctx),

Re: [PATCH v2] i2c: designware: Get right data length

2021-02-25 Thread Andy Shevchenko
On Thu, Feb 25, 2021 at 10:26:31PM +0800, Liguang Zhang wrote: > IC_DATA_CMD[11] indicates the first data byte received after the address > phase for receive transfer in Master receiver or Slave receiver mode, > this bit was set in some transfer flow. IC_DATA_CMD[7:0] contains the > data to be

[PATCH 07/13] PCI: MSI: Kill default_teardown_msi_irqs()

2021-02-25 Thread Marc Zyngier
It doesn't have any caller left. Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 11 +-- include/linux/msi.h | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 79b5a995bd02..d9c73c173c14 100644 --- a/drivers/pci/msi.c

[PATCH 08/13] PCI: MSI: Let PCI host bridges declare their lack of MSI handling

2021-02-25 Thread Marc Zyngier
From: Thomas Gleixner Some PCI host bridges cannot deal with MSIs at all. This has the unfortunate effect of triggering ugly warnings when an end-point driver requests MSIs. Instead, let the bridge advertise such lack of MSIs, so that it can be flagged correctly by the core code.

[PATCH 12/13] PCI: MSI: Document the various ways of ending up with NO_MSI

2021-02-25 Thread Marc Zyngier
We have now 4 ways of ending up with NO_MSI being set. Document them. Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d9c73c173c14..425abcdfcaca 100644 ---

[PATCH 11/13] PCI: Make pci_host_common_probe() declare its reliance on MSI domains

2021-02-25 Thread Marc Zyngier
The generic PCI host driver relies on MSI domains for MSIs to be provided to its end-points. Make this dependency explicit. This cures the warnings occuring on arm/arm64 VMs when booted with PCI virtio devices and no MSI controller (no GICv3 ITS, for example). It is likely that other drivers

[PATCH 13/13] PCI: quirks: Refactor advertising of the NO_MSI flag

2021-02-25 Thread Marc Zyngier
The few quirks that deal with NO_MSI tend to be copy-paste heavy. Refactor them so that the hierarchy of conditions is slightly cleaner. Signed-off-by: Marc Zyngier --- drivers/pci/quirks.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/pci/quirks.c

Re: [PATCH] Input: i8042: Remove unneeded variable

2021-02-25 Thread kernel test robot
Hi angkery, Thank you for the patch! Yet something to improve: [auto build test ERROR on input/next] [also build test ERROR on v5.11 next-20210225] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https

Re: [PATCH v7 1/2] scsi: ufs: Enable power management for wlun

2021-02-25 Thread Adrian Hunter
On 25/02/21 5:00 am, Asutosh Das wrote: > During runtime-suspend of ufs host, the scsi devices are > already suspended and so are the queues associated with them. > But the ufs host sends SSU to wlun during its runtime-suspend. > During the process blk_queue_enter checks if the queue is not in >

Re: [PATCH] kgdb: Fix to kill breakpoints on initmem after boot

2021-02-25 Thread Daniel Thompson
On Wed, Feb 24, 2021 at 01:46:52PM +0530, Sumit Garg wrote: > Currently breakpoints in kernel .init.text section are not handled > correctly while allowing to remove them even after corresponding pages > have been freed. > > Fix it via killing .init.text section breakpoints just prior to initmem

Re: [PATCH] recordmcount: Fix the wrong use of w* in arm64_is_fake_mcount()

2021-02-25 Thread Will Deacon
On Thu, Feb 25, 2021 at 09:44:26AM -0500, Steven Rostedt wrote: > This requires an acked-by from one of the ARM64 maintainers. > > -- Steve > > > On Thu, 25 Feb 2021 22:07:47 +0800 > Li Huafei wrote: > > > When cross-compiling the kernel, the endian of the target machine and > > the local

Re: [PATCH 1/2] mt76: mt7915: fix unused 'mode' variable

2021-02-25 Thread Kalle Valo
Arnd Bergmann writes: > From: Arnd Bergmann > > clang points out a possible corner case in the mt7915_tm_set_tx_cont() > function if called with invalid arguments: > > drivers/net/wireless/mediatek/mt76/mt7915/testmode.c:593:2: warning: variable > 'mode' is used uninitialized whenever switch

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

2021-02-25 Thread David Hildenbrand
On 24.02.21 16:39, Mike Rapoport wrote: 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

[GIT PULL] ext4 changes for v5.12

2021-02-25 Thread Theodore Ts'o
The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac: Linux 5.11-rc6 (2021-01-31 13:50:09 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to

[PATCH v9 5/9] x509: Add OID for NIST P384 and extend parser for it

2021-02-25 Thread Stefan Berger
From: Saulo Alessandre * crypto/asymmetric_keys/x509_cert_parser.c - prepare x509 parser to load nist_secp384r1 * include/linux/oid_registry.h - add OID_id_secp384r1 Signed-off-by: Saulo Alessandre Tested-by: Stefan Berger --- crypto/asymmetric_keys/x509_cert_parser.c | 3 +++

[PATCH v9 6/9] crypto: Add NIST P384 curve parameters

2021-02-25 Thread Stefan Berger
From: Saulo Alessandre * crypto/ecc_curve_defs.h - add nist_p384 params * include/crypto/ecdh.h - add ECC_CURVE_NIST_P384 Signed-off-by: Saulo Alessandre Tested-by: Stefan Berger --- crypto/ecc_curve_defs.h | 32 include/crypto/ecdh.h | 1 + 2 files

Re: [PATCH] recordmcount: Fix the wrong use of w* in arm64_is_fake_mcount()

2021-02-25 Thread Steven Rostedt
On Thu, 25 Feb 2021 16:01:17 + Will Deacon wrote: > Acked-by: Will Deacon Thanks! > > But you know you could avoid these sorts of problems by moving to little > endian along with everybody else? ;) But then how do we find these bug? -- Steve

[PATCH v9 8/9] ecdsa: Register NIST P384 and extend test suite

2021-02-25 Thread Stefan Berger
From: Saulo Alessandre * crypto/ecdsa.c - add ecdsa_nist_p384_init_tfm - register and unregister P384 tfm * crypto/testmgr.c - add test vector for P384 on vector of tests * crypto/testmgr.h - add test vector params for P384(sha1, sha224, sha256, sha384 and sha512) Signed-off-by:

[PATCH v9 1/9] crypto: Add support for ECDSA signature verification

2021-02-25 Thread Stefan Berger
From: Stefan Berger Add support for parsing the parameters of a NIST P256 or NIST P192 key. Enable signature verification using these keys. The new module is enabled with CONFIG_ECDSA: Elliptic Curve Digital Signature Algorithm (NIST P192, P256 etc.) is A NIST cryptographic standard

[PATCH 2/4] mmc: core: Prepare to support SD UHS-II cards

2021-02-25 Thread Ulf Hansson
The SD UHS-II interface was introduced to the SD spec v4.00 several years ago. The interface is fundamentally different from an electrical and a protocol point of view, comparing to the legacy SD interface. However, the legacy SD protocol is supported through a specific transport layer (SD-TRAN)

[PATCH 0/4] mmc: core: Preparations to support SD UHS-II cards

2021-02-25 Thread Ulf Hansson
A series [1] that has been collaborative worked upon by Takahiro Akashi (Linaro) and Ben Chuang (Genesys Logic) is targeting to add SD UHS-II support to the mmc subsystem. Throughout the reviews, we realized that the changes affecting the mmc core to support the UHS-II interface/protocol might

[PATCH 1/4] mmc: core: Cleanup printing of speed mode at card insertion

2021-02-25 Thread Ulf Hansson
The current print of the bus speed mode in mmc_add_card() has grown over the years and is now difficult to parse. Let's clean up the code and also take the opportunity to properly announce "DDR" for eMMCs as "high speed DDR", which is according to the eMMC spec. Signed-off-by: Ulf Hansson ---

[BISECTED] Kernel 5.11.x breaks pulseaudio

2021-02-25 Thread Heinz Diehl
Hi, from kernel 5.11 on, pulseaudio always resamples audio to the sample rate specified by default-sample-rate, despite "avoid-resampling = true". Audio that matches alternate-sample-rate is resampled in the same way. This means that both "alternate-sample-rate" and "avoid-resampling=true" are no

[PATCH] memblock: fix section mismatch warning

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann The inlining logic in clang-13 is rewritten to often not inline some functions that were inlined by all earlier compilers. In case of the memblock interfaces, this exposed a harmless bug of a missing __init annotation: WARNING: modpost: vmlinux.o(.text+0x507c0a): Section

Re: [PATCH v1 1/4] ACPI: processor: Get rid of ACPICA message printing

2021-02-25 Thread Hanjun Guo
On 2021/2/25 2:06, Rafael J. Wysocki wrote: On Tue, Feb 23, 2021 at 3:45 PM Rafael J. Wysocki wrote: On Tue, Feb 23, 2021 at 12:31 PM Hanjun Guo wrote: On 2021/2/23 2:59, Rafael J. Wysocki wrote: Index: linux-pm/drivers/acpi/processor_idle.c

Re: [PATCH] media: exynos4-is: add missing call to of_node_put()

2021-02-25 Thread Krzysztof Kozlowski
On Thu, 25 Feb 2021 at 10:04, Yang Li wrote: > > In one of the error paths of the for_each_child_of_node() loop in > fimc_md_parse_one_endpoint, add missing call to of_node_put(). > > Fix the following coccicheck warning: > ./drivers/media/platform/exynos4-is/media-dev.c:489:1-23: WARNING: >

Re: [PATCH v14 02/11] x86: kdump: make the lower bound of crash kernel reservation consistent

2021-02-25 Thread Catalin Marinas
On Thu, Feb 25, 2021 at 03:08:46PM +0800, Baoquan He wrote: > On 02/24/21 at 02:35pm, Catalin Marinas wrote: > > On Sat, Jan 30, 2021 at 03:10:16PM +0800, Chen Zhou wrote: > > > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > > > index da769845597d..27470479e4a3 100644 > > > ---

Re: [PATCH 2/3] net: dsa: tag_ocelot_8021q: fix driver dependency

2021-02-25 Thread Vladimir Oltean
On Thu, Feb 25, 2021 at 03:38:32PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the ocelot driver code is in a library, the dsa tag > code cannot be built-in: > > ld.lld: error: undefined symbol: ocelot_can_inject > >>> referenced by tag_ocelot_8021q.c > >>>

[RFC v3] scripts: kernel-doc: fix typedef support for struct/union parsing

2021-02-25 Thread Aditya Srivastava
Currently, there are ~1290 occurrences in 447 files in the kernel tree 'typedef struct/union' syntax for defining some struct/union. However, kernel-doc currently does not support that syntax. Of the ~1290 occurrences, there are four occurrences in ./include/linux/zstd.h with typedef struct/union

[PATCH 3/4] KVM: x86: pending exception must be be injected even with an injected event

2021-02-25 Thread Maxim Levitsky
Injected events should not block a pending exception, but rather, should either be lost or be delivered to the nested hypervisor as part of exitintinfo/IDT_VECTORING_INFO (if nested hypervisor intercepts the pending exception) Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 7

Re: [PATCH 2/3] net: dsa: tag_ocelot_8021q: fix driver dependency

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 4:07 PM Vladimir Oltean wrote: > On Thu, Feb 25, 2021 at 03:49:08PM +0100, Arnd Bergmann wrote: > > On Thu, Feb 25, 2021 at 3:47 PM Arnd Bergmann wrote: > > > On Thu, Feb 25, 2021 at 3:43 PM Vladimir Oltean wrote: > > > > On Thu, Feb 25, 2021 at 03:38:32PM +0100, Arnd

[PATCH 4/4] kvm: WIP separation of injected and pending exception

2021-02-25 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/kvm_host.h | 23 +- arch/x86/include/uapi/asm/kvm.h | 14 +- arch/x86/kvm/svm/nested.c | 62 +++--- arch/x86/kvm/svm/svm.c | 8 +- arch/x86/kvm/vmx/nested.c | 114 +- arch/x86/kvm/vmx/vmx.c | 14 +-

[PATCH] media: vivid: fix assignment of dev->fbuf_out_flags

2021-02-25 Thread Colin King
From: Colin Ian King Currently the chroma_flags and alpha_flags are being zero'd with a bit-wise mask and the following statement should be bit-wise or'ing in the new flag bits but instead is making a direct assignment. Fix this by using the |= operator rather than an assignment.

[PATCH 2/4] KVM: x86: mmu: initialize fault.async_page_fault in walk_addr_generic

2021-02-25 Thread Maxim Levitsky
This field was left uninitialized by a mistake. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/mmu/paging_tmpl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/mmu/paging_tmpl.h b/arch/x86/kvm/mmu/paging_tmpl.h index d9f66cc459e84..3dc9a25772bd8 100644 ---

[PATCH 0/4] RFC/WIP: KVM: separate injected and pending exception + few more fixes

2021-02-25 Thread Maxim Levitsky
clone of "kernel-starship-5.11" Maxim Levitsky (4): KVM: x86: determine if an exception has an error code only when injecting it. KVM: x86: mmu: initialize fault.async_page_fault in walk_addr_generic KVM: x86: pending exception must be be injected even with an injected event kvm:

[PATCH 1/4] KVM: x86: determine if an exception has an error code only when injecting it.

2021-02-25 Thread Maxim Levitsky
A page fault can be queued while vCPU is in real paged mode on AMD, and AMD manual asks the user to always intercept it (otherwise result is undefined). The resulting VM exit, does have an error code. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/x86.c | 13 + 1 file changed, 9

[PATCH 2/4] export.h: make __ksymtab_strings per-symbol section

2021-02-25 Thread Masahiro Yamada
The export symbol tables are placed on own sections (__ksymtab*+) and sorted by SORT (an alias of SORT_BY_NAME) because the module subsystem uses the binary search for symbol resolution. We did not have a good reason to do so for __ksymtab_strings, but now I have. To make

[PATCH v2] ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256

2021-02-25 Thread chris . chiu
From: Chris Chiu The Acer SWIFT Swift SF314-54/55 laptops with ALC256 cannot detect both the headset mic and the internal mic. Introduce new fixup to enable the jack sense and the headset mic. However, the internal mic actually connects to Intel SST audio. It still needs Intel SST support to

Re: [PATCH v2 1/2] libperf: Add perf_evlist__reset_id_hash()

2021-02-25 Thread Jiri Olsa
On Thu, Feb 25, 2021 at 12:51:47PM +0900, Namhyung Kim wrote: > Add the perf_evlist__reset_id_hash() function as an internal function > so that it can be called by perf to reset the hash table. This is > necessary for perf stat to run the workload multiple times. > > Signed-off-by: Namhyung Kim

Re: [PATCH 3/3] net: dsa: mt7530: add GPIOLIB dependency

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 4:52 PM DENG Qingfang wrote: > > Hi Arnd, > > On Thu, Feb 25, 2021 at 10:40 PM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > The new gpio support may be optional at runtime, but it requires > > building against gpiolib: > > > > ERROR: modpost:

Re: [RFC PATCH] drm/vkms: Add support for virtual hardware mode

2021-02-25 Thread Zack Rusin
On 2/25/21 4:09 AM, Daniel Vetter wrote: On Wed, Feb 24, 2021 at 11:55 AM Sumera Priyadarsini wrote: Add a virtual hardware or vblank-less mode as a module to enable VKMS to emulate virtual graphic drivers. This mode can be enabled by setting enable_virtual_hw=1 at the time of loading VKMS.

Re: [PATCH] arm64: dts: mediatek: Add gce client reg for display subcomponents

2021-02-25 Thread Enric Balletbo Serra
Hi Hsin-Yi, Thank you for the patch. Missatge de Hsin-Yi Wang del dia dl., 1 de febr. 2021 a les 12:05: > > Add mediatek,gce-client-reg for ccorr, aal, gamma, dither. > > Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") > Signed-off-by: Hsin-Yi Wang FWIW this removes

Re: [PATCH v2] mm: vmstat: fix /proc/sys/vm/stat_refresh generating false warnings

2021-02-25 Thread Hugh Dickins
On Wed, 24 Feb 2021, Roman Gushchin wrote: > On Tue, Feb 23, 2021 at 11:24:23PM -0800, Hugh Dickins wrote: > > On Thu, 6 Aug 2020, Andrew Morton wrote: > > > On Thu, 6 Aug 2020 16:38:04 -0700 Roman Gushchin wrote: > > > > August, yikes, I thought it was much more recent. > > > > > > > > > it

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Joe Perches
On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > Add a new verbose mode to checkpatch. The verbose test > descriptions are read from the checkpatch documentation > file at `Documentation/dev-tools/checkpatch.rst`. > > The verbose mode is optional and can be enabled by the > flag -v or

Re: [RFC 0/6] x86: prefetch_page() vDSO call

2021-02-25 Thread Matthew Wilcox
On Thu, Feb 25, 2021 at 04:56:50PM +, Nadav Amit wrote: > > > On Feb 25, 2021, at 4:16 AM, Matthew Wilcox wrote: > > > > On Wed, Feb 24, 2021 at 11:29:04PM -0800, Nadav Amit wrote: > >> Just as applications can use prefetch instructions to overlap > >> computations and memory accesses,

Re: [RFC PATCH] drm/vkms: Add support for virtual hardware mode

2021-02-25 Thread Gerd Hoffmann
On Thu, Feb 25, 2021 at 11:32:08AM +0100, Daniel Vetter wrote: > On Thu, Feb 25, 2021 at 11:25:20AM +0100, Gerd Hoffmann wrote: > > On Thu, Feb 25, 2021 at 10:09:42AM +0100, Daniel Vetter wrote: > > > On Wed, Feb 24, 2021 at 11:55 AM Sumera Priyadarsini > > > wrote: > > > > > > > > Add a virtual

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-02-25 Thread Tom Rix
The first patch is a fix that is targeted for stable. Tom On 2/25/21 5:07 AM, Gong, Richard wrote: > Hi Moritz, > > Sorry for asking. > > When you have chance, can you help review the version 5 patchset submitted on > 02/09/21? > > Regards, > Richard > > -Original Message- > From:

[PATCH v17 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-02-25 Thread Muchun Song
When the "struct page size" crosses page boundaries we cannot make use of this feature. Let free_vmemmap_pages_per_hpage() return zero if that is the case, most of the functions can be optimized away. Signed-off-by: Muchun Song Reviewed-by: Miaohe Lin Reviewed-by: Oscar Salvador ---

Re: [virtio-dev] Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-25 Thread Cornelia Huck
On Thu, 25 Feb 2021 12:36:07 +0800 Jason Wang wrote: > On 2021/2/24 7:12 下午, Cornelia Huck wrote: > > On Wed, 24 Feb 2021 17:29:07 +0800 > > Jason Wang wrote: > > > >> On 2021/2/23 6:58 下午, Cornelia Huck wrote: > >>> On Tue, 23 Feb 2021 18:31:07 +0800 > >>> Jason Wang wrote: > The

[PATCH] arm64: dts: ti: k3-j721e-main: Update the speed modes supported and their itap delay values for MMCSD subsystems

2021-02-25 Thread Aswath Govindraju
According to latest errata of J721e [1], HS400 mode is not supported in MMCSD0 subsystem (i2024) and SDR104 mode is not supported in MMCSD1/2 subsystems (i2090). Therefore, replace mmc-hs400-1_8v with mmc-hs200-1_8v in MMCSD0 subsystem and add a sdhci mask to disable SDR104 speed mode. Also,

  1   2   3   4   5   6   7   8   9   10   >