Re: [PATCH] fs/dcache: fix typos and sentence disorder

2021-03-18 Thread Al Viro
On Thu, Mar 18, 2021 at 03:00:20PM +, Matthew Wilcox wrote: > On Thu, Mar 18, 2021 at 10:31:53PM +0800, Xiaofeng Cao wrote: > > change 'sould' to 'should' > > change 'colocated' to 'collocated' > > uh. collocated is incorrect. colocated is correct. >

[PATCH] brcmsmac: fix shift on 4 bit masked value

2021-03-18 Thread Colin King
From: Colin Ian King The calculation of offtune_val seems incorrect, the u16 value in pi->tx_rx_cal_radio_saveregs[2] is being masked with 0xf0 and then shifted 8 places right so that always ends up as a zero result. I believe the intended shift was 4 bits to the right. Fix this. [Note: not

Re: [PATCH 0/5] qcom: wcnss: Allow overriding firmware form DT

2021-03-18 Thread Bjorn Andersson
On Thu 18 Mar 11:56 CDT 2021, Jeffrey Hugo wrote: > form -> from in the subject? > Seems like I only failed in the cover letter, right? Regards, Bjorn > On Thu, Mar 11, 2021 at 5:34 PM Bjorn Andersson > wrote: > > > > The wireless subsystem found in Qualcomm MSM8974 and MSM8916 among others

Re: Checkpatch still worries about include/asm/ ?

2021-03-18 Thread Dwaipayan Ray
On Thu, Mar 18, 2021 at 10:33 PM Lukas Bulwahn wrote: > > On Thu, Mar 18, 2021 at 5:47 PM Dwaipayan Ray wrote: > > > > Hello, > > include/asm/ got removed a long time back (probably v1.1.45). > > Checkpatch still worries about that: > > > > if ($realfile =~ m@^include/asm/@) { > >

Re: [PATCH v4 2/2] crypto: qat: ADF_STATUS_PF_RUNNING should be set after adf_dev_init

2021-03-18 Thread Giovanni Cabiddu
Just a minor comment on the commit message: crypto: qat: ADF_STATUS_PF_RUNNING ... ^ Patches to the qat driver have the following headline: crypto: qat - not crypto: qat : Regards, -- Giovanni On Thu, Mar 18, 2021 at 12:21:05PM -0400, Tong Zhang wrote: >

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Leon Romanovsky
On Thu, Mar 18, 2021 at 10:39:35AM -0600, Alex Williamson wrote: > On Thu, 18 Mar 2021 11:09:34 +0200 > Leon Romanovsky wrote: <...> > > I'm lost here, does vfio-pci use sysfs interface or internal to the kernel > > API? > > > > If it is latter then we don't really need sysfs, if not, we still

[PATCH v2 2/4] dt-bindings: ti: dpll: add spread spectrum support

2021-03-18 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi --- (no changes since v1) .../devicetree/bindings/clock/ti/dpll.txt | 20 +++ 1 file changed, 20 insertions(+) diff --git

[PATCH v2 1/4] clk: ti: fix typo in routine description

2021-03-18 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/dpll3xxx.c b/drivers/clk/ti/dpll3xxx.c index

[PATCH v2 3/4] ARM: dts: am33xx-clocks: add spread spectrum support

2021-03-18 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruh73x RM, SSC is supported only for LCD and MPU PLLs. Signed-off-by: Dario Binacchi --- Changes in v2: - Remove SSC registers from dpll_core_ck@490 node (SSC is not supported) - Add SSC

[PATCH v2 4/4] clk: ti: add am33xx spread spectrum clock support

2021-03-18 Thread Dario Binacchi
The patch enables spread spectrum clocking (SSC) for MPU and LCD PLLs. As reported by the TI spruh73x RM, SSC is only supported for the DISP/LCD and MPU PLLs on am33xx device. SSC is not supported for DDR, PER, and CORE PLLs. Calculating the required values and setting the registers accordingly

Re: [PATCH] selftests/kvm: add get_msr_index_features

2021-03-18 Thread Paolo Bonzini
On 18/03/21 18:03, Andrew Jones wrote: TEST_GEN_PROGS_x86_64 = x86_64/cr4_cpuid_sync_test +TEST_GEN_PROGS_x86_64 += x86_64/get_msr_index_features Maybe we should give up trying to keep an alphabetic order. FWIW I had fixed that but yeah maybe we should just give up. +int main(int argc,

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Amey Narkhede
On 21/03/18 07:22PM, Leon Romanovsky wrote: > On Thu, Mar 18, 2021 at 10:39:35AM -0600, Alex Williamson wrote: > > On Thu, 18 Mar 2021 11:09:34 +0200 > > Leon Romanovsky wrote: > > <...> > > > > I'm lost here, does vfio-pci use sysfs interface or internal to the > > > kernel API? > > > > > > If

Re: [PATCH 5/9] objtool: Rework rebuild_reloc logic

2021-03-18 Thread Josh Poimboeuf
On Thu, Mar 18, 2021 at 06:04:25PM +0100, Peter Zijlstra wrote: > On Thu, Mar 18, 2021 at 11:36:40AM -0500, Josh Poimboeuf wrote: > > > I was thinking you could get a section changed without touching > > > relocations, but while that is theoretically possible, it is exceedingly > > > unlikely (and

Re: [PATCH master] module: remove never implemented MODULE_SUPPORTED_DEVICE

2021-03-18 Thread Leon Romanovsky
On Thu, Mar 18, 2021 at 10:36:36AM -0700, Linus Torvalds wrote: > On Thu, Mar 18, 2021 at 12:55 AM Leon Romanovsky wrote: > > > > > > Also, your email seems to have swallowed spaces at the ends of lines. > > > > > > I can (and did) apply the patch with "--whitespace=fix", but that then > > >

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

2021-03-18 Thread Rafael J. Wysocki
On Thu, Mar 18, 2021 at 6:33 PM Asutosh Das (asd) wrote: > > On 3/18/2021 7:00 AM, Rafael J. Wysocki wrote: > > On Wed, Mar 17, 2021 at 7:37 AM Adrian Hunter > > wrote: > >> > >> On 16/03/21 10:35 pm, Asutosh Das (asd) wrote: > >>> On 3/16/2021 12:48 AM, Adrian Hunter wrote: > On 16/03/21

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

2021-03-18 Thread Tony Krowiak
On 3/17/21 7:17 PM, Halil Pasic wrote: On Wed, 10 Mar 2021 10:05:59 -0500 Tony Krowiak wrote: - ret = vfio_ap_mdev_reset_queues(mdev); + matrix_mdev = mdev_get_drvdata(mdev); Is it guaranteed that matrix_mdev can't be NULL here? If yes, please remind me of the

Re: [PATCH] KVM: X86: Fix missing local pCPU when executing wbinvd on all dirty pCPUs

2021-03-18 Thread Paolo Bonzini
On 12/03/21 03:45, Wanpeng Li wrote: From: Wanpeng Li We should execute wbinvd on all dirty pCPUs when guest wbinvd exits to maintain datat consistency in order to deal with noncoherent DMA. smp_call_function_many() does not execute the provided function on the local core, this patch replaces

Re: [PATCH] sh: kernel: Fix a typo

2021-03-18 Thread Randy Dunlap
On 3/18/21 3:44 AM, Bhaskar Chowdhury wrote: > > s/archtecture/architecture/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/sh/kernel/relocate_kernel.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/sh/kernel/relocate_kernel.S >

Re: [PATCH] drm/msm/dp: Fixed couple of typos

2021-03-18 Thread Randy Dunlap
On 3/17/21 11:26 PM, Bhaskar Chowdhury wrote: > s/modueles/modules/ two different places > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/gpu/drm/msm/dp/dp_power.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH RESEND] PCI: dwc: Fix MSI not work after resume

2021-03-18 Thread Bjorn Helgaas
On Mon, Mar 01, 2021 at 11:10:31AM +0800, Jisheng Zhang wrote: > After we move dw_pcie_msi_init() into core -- dw_pcie_host_init(), the > MSI stops working after resume. Because dw_pcie_host_init() is only > called once during probe. To fix this issue, we move dw_pcie_msi_init() > to

Re: [PATCH v3] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-18 Thread Mark Brown
On Wed, 17 Mar 2021 19:08:24 +0800, Brent Lu wrote: > This patch adds jsl_rt5682_rt1015p which supports the RT5682 headset > codec and ALC1015Q-VB speaker amplifier combination on JasperLake > platform. > > This driver also supports ALC1015Q-CG if running in auto-mode. > Following table shows the

Re: [PATCH] PM: domains: Don't runtime resume devices at genpd_prepare()

2021-03-18 Thread Rafael J. Wysocki
On Thu, Mar 4, 2021 at 8:30 PM Ulf Hansson wrote: > > Runtime resuming a device upfront in the genpd_prepare() callback, to check > if there is a wakeup pending for it, seems like an unnecessary thing to do. > The PM core already manages these kind of things in a common way in >

[tip: x86/sgx] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread tip-bot2 for Jarkko Sakkinen
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 51ab30eb2ad4c4a61f827dc18863cd70dc46dc32 Gitweb: https://git.kernel.org/tip/51ab30eb2ad4c4a61f827dc18863cd70dc46dc32 Author:Jarkko Sakkinen AuthorDate:Thu, 18 Mar 2021 01:53:30 +02:00

[tip: x86/sgx] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()

2021-03-18 Thread tip-bot2 for Jarkko Sakkinen
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 5b8719504e3adf47646273781591ad439b3c3c7a Gitweb: https://git.kernel.org/tip/5b8719504e3adf47646273781591ad439b3c3c7a Author:Jarkko Sakkinen AuthorDate:Thu, 18 Mar 2021 01:53:31 +02:00

[GIT PULL] VFIO fixes for v5.12-rc4

2021-03-18 Thread Alex Williamson
Hi Linus, The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0: Linux 5.12-rc3 (2021-03-14 14:41:02 -0700) are available in the Git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v5.12-rc4 for you to fetch changes up to

[syzbot] BUG: soft lockup in do_wp_page (4)

2021-03-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:bf152b0b Merge tag 'for_linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17d5264ed0 kernel config: https://syzkaller.appspot.com/x/.config?x=2c9917c41f0bc04b

Re: [PATCH 0/5] qcom: wcnss: Allow overriding firmware form DT

2021-03-18 Thread Jeffrey Hugo
form -> from in the subject? On Thu, Mar 11, 2021 at 5:34 PM Bjorn Andersson wrote: > > The wireless subsystem found in Qualcomm MSM8974 and MSM8916 among others > needs > platform-, and perhaps even board-, specific firmware. Add support for > providing this in devicetree.

[PATCH] drm/i915/dpcd_bl: Don't try vesa interface unless specified by VBT

2021-03-18 Thread Lyude Paul
Looks like that there actually are another subset of laptops on the market that don't support the Intel HDR backlight interface, but do advertise support for the VESA DPCD backlight interface despite the fact it doesn't seem to work. Note though I'm not entirely clear on this - on one of the

Re: [PATCH] I2C: JZ4780: Fix bug for Ingenic X1000.

2021-03-18 Thread Greg KH
On Fri, Mar 19, 2021 at 12:25:43AM +0800, 周琰杰 (Zhou Yanjie) wrote: > Only send "X1000_I2C_DC_STOP" when last byte, or it will cause > error when I2C write operation. > > Fixes: 21575a7a8d4c ("I2C: JZ4780: Add support for the X1000.") > > Signed-off-by: 周琰杰 (Zhou Yanjie) > --- >

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Amey Narkhede
On 21/03/18 04:57PM, Leon Romanovsky wrote: > On Thu, Mar 18, 2021 at 07:52:52PM +0530, Amey Narkhede wrote: > > On 21/03/18 11:09AM, Leon Romanovsky wrote: > > > On Wed, Mar 17, 2021 at 11:31:40AM -0600, Alex Williamson wrote: > > > > On Wed, 17 Mar 2021 15:58:40 +0200 > > > > Leon Romanovsky

Re: [PATCH] mm/slub: Add slub_debug option to panic on memory corruption

2021-03-18 Thread Kees Cook
On Thu, Mar 18, 2021 at 01:56:05PM +0100, Vlastimil Babka wrote: > I was going to suggest adding a panic_on_taint parameter... but turns out it > was > already added last year! And various memory corruption detections already use > TAINT_BAD_PAGE, including SLUB. > If anything's missing an

[PATCH v2 13/17] arm64: use __pa_function

2021-03-18 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function address references with the address of the function's CFI jump table entry. This means that __pa_symbol(function) returns the physical address of the jump table entry, which can lead to address space confusion as the jump table points to the

[PATCH v2 14/17] arm64: add __nocfi to functions that jump to a physical address

2021-03-18 Thread Sami Tolvanen
Disable CFI checking for functions that switch to linear mapping and make an indirect call to a physical address, since the compiler only understands virtual addresses and the CFI check for such indirect calls would always fail. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook ---

[PATCH v2 15/17] arm64: add __nocfi to __apply_alternatives

2021-03-18 Thread Sami Tolvanen
__apply_alternatives makes indirect calls to functions whose address is taken in assembly code using the alternative_cb macro. With non-canonical CFI, the compiler won't replace these function references with the jump table addresses, which trips CFI. Disable CFI checking in the function to work

[PATCH v2 16/17] KVM: arm64: Disable CFI for nVHE

2021-03-18 Thread Sami Tolvanen
Disable CFI for the nVHE code to avoid address space confusion. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/kvm/hyp/nvhe/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile

[PATCH v2 10/17] lkdtm: use __va_function

2021-03-18 Thread Sami Tolvanen
To ensure we take the actual address of a function in kernel text, use __va_function. Otherwise, with CONFIG_CFI_CLANG, the compiler replaces the address with a pointer to the CFI jump table, which is actually in the module when compiled with CONFIG_LKDTM=m. Signed-off-by: Sami Tolvanen

[PATCH v2 17/17] arm64: allow CONFIG_CFI_CLANG to be selected

2021-03-18 Thread Sami Tolvanen
Select ARCH_SUPPORTS_CFI_CLANG to allow CFI to be enabled. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5656e7aacd69..2eefdbc3e3c9 100644 --- a/arch/arm64/Kconfig +++

Re: [PATCH 2/2] arm64: stacktrace: Add skip when task == current

2021-03-18 Thread Mark Rutland
On Thu, Mar 18, 2021 at 04:17:24PM +, Catalin Marinas wrote: > On Wed, Mar 17, 2021 at 07:34:16PM +, Mark Rutland wrote: > > On Wed, Mar 17, 2021 at 06:36:36PM +, Catalin Marinas wrote: > > > On Wed, Mar 17, 2021 at 02:20:50PM +, Chen Jun wrote: > > > > On ARM64, cat

[PATCH 1/2] arm64: dts: fsl-ls1028a-kontron-sl28: move MTD partitions

2021-03-18 Thread Michael Walle
Move the MTD partitions to the partitions subnode. This is the new way to specify the partitions, see Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml Signed-off-by: Michael Walle --- .../freescale/fsl-ls1028a-kontron-sl28.dts| 94 ++- 1 file changed, 49

[PATCH 2/2] arm64: dts: fsl-ls1028a-kontron-sl28: combine unused partitions

2021-03-18 Thread Michael Walle
The failsafe partitions for the DP firmware and for AT-F are unused. If AT-F will ever be supported in the failsafe mode, then it will be a FIT image. Thus fold the unused partitions into the failsafe bootloader one to have enough storage if the bootloader image will grow. While at it, remove the

[PATCH-tip 4/5] locking/locktorture: Pass thread id to lock/unlock functions

2021-03-18 Thread Waiman Long
To allow the lock and unlock functions in locktorture to access per-thread information, we need to pass some hint on how to locate those information. One way to do this is to pass in a unique thread id which can then be used to access a global array for thread specific information. Change the

[PATCH-tip 3/5] locking/ww_mutex: Remove DEFINE_WW_MUTEX() macro

2021-03-18 Thread Waiman Long
The current DEFINE_WW_MUTEX() macro fails to properly set up the lockdep key of the ww_mutexes causing potential circular locking dependency splat. Though it is possible to add more macro magic to make it work, but the result is rather ugly. Since locktorture was the only user of

[PATCH-tip 1/5] locking/ww_mutex: Revert "Treat ww_mutex_lock() like a trylock"

2021-03-18 Thread Waiman Long
It turns out that treating ww_mutex_lock() as a trylock will fail to catch real deadlock hazard like: mutex_lock(); ww_mutex_lock(, ctx); ww_mutex_lock(, ctx); mutex_lock(); The current lockdep code should be able to handle mixed lock ordering of

[PATCH-tip 2/5] locking/locktorture: Fix false positive circular locking splat in ww_mutex test

2021-03-18 Thread Waiman Long
In order to avoid false positive circular locking lockdep splat when runnng the ww_mutex torture test, we need to make sure that the ww_mutexes have the same lock class as the acquire_ctx. This means the ww_mutexes must have the same lockdep key as the acquire_ctx. Unfortunately the current

[PATCH-tip 5/5] locking/locktorture: locking/locktorture: Fix incorrect use of ww_acquire_ctx in ww_mutex test

2021-03-18 Thread Waiman Long
The ww_acquire_ctx structure for ww_mutex needs to persist for a complete lock/unlock cycle. In the ww_mutex test in locktorture, however, both ww_acquire_init() and ww_acquire_fini() are called within the lock function only. This causes a lockdep splat of "WARNING: Nested lock was not taken" when

[PATCH-tip 0/5] locking/locktorture: Fix locktorture ww_mutex test problems

2021-03-18 Thread Waiman Long
This is a follow-up patch series for the previous patchset on fixing locktorture ww_mutex test problem [1]. The first 3 patches of that series were merged into tip. It turns out that the last one of the three wasn't quite right. So this patch series revert the last patch. The rests of the patch

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

2021-03-18 Thread Asutosh Das (asd)
On 3/18/2021 7:00 AM, Rafael J. Wysocki wrote: On Wed, Mar 17, 2021 at 7:37 AM Adrian Hunter wrote: On 16/03/21 10:35 pm, Asutosh Das (asd) wrote: On 3/16/2021 12:48 AM, Adrian Hunter wrote: On 16/03/21 12:22 am, Asutosh Das (asd) wrote: On 3/14/2021 1:11 AM, Adrian Hunter wrote: On

Re: [PATCH] kbuild: rebuild GCC plugins when the compiler is upgraded

2021-03-18 Thread Josh Poimboeuf
On Wed, Mar 10, 2021 at 10:44:46PM +0900, Masahiro Yamada wrote: > > Masahiro, > > > > Ping. Do you have a better approach for building GCC plugins in the > > external module directory? > > > I am not sure if building GCC plugins in the external module directory > is the right approach. I'm

Re: [RFC PATCH v2 3/8] arm64: Terminate the stack trace at TASK_FRAME and EL0_FRAME

2021-03-18 Thread Mark Brown
On Mon, Mar 15, 2021 at 11:57:55AM -0500, madve...@linux.microsoft.com wrote: > + /* Terminal record, nothing to unwind */ > + if (fp == (unsigned long) regs->stackframe) { > + if (regs->frame_type == TASK_FRAME || > + regs->frame_type == EL0_FRAME) > +

Re: [PATCH] watchdog: Remove MV64x60 watchdog driver

2021-03-18 Thread Guenter Roeck
On 3/18/21 10:25 AM, Christophe Leroy wrote: > Commit 92c8c16f3457 ("powerpc/embedded6xx: Remove C2K board support") > removed the last selector of CONFIG_MV64X60. > > Therefore CONFIG_MV64X60_WDT cannot be selected anymore and > can be removed. > > Signed-off-by: Christophe Leroy Reviewed-by:

Re: (subset) [RFC PATCH v3 0/3] Add support for Qualcomm MFD PMIC register layout

2021-03-18 Thread Mark Brown
On Wed, 10 Mar 2021 16:39:51 -0800, Guru Das Srinagesh wrote: > Changes from v2: > - Split up framework changes patch for better comprehension. > - Dropped PM8008 driver example and converted it into example code in cover > letter and commit text. > - Added more info in cover letter and commit

Re: [PATCH 00/23] ASoC: codecs: remove cppcheck warnings

2021-03-18 Thread Mark Brown
On Fri, 12 Mar 2021 12:22:23 -0600, Pierre-Louis Bossart wrote: > Lots of small fixes in various codec drivers that should have no > functional impact. > > Pierre-Louis Bossart (23): > ASoC: ab8500-codec: remove useless structure > ASoC: ad1836: remove useless return > ASoC: adau1977:

Re: [PATCH v3] ASoC: Intel: Skylake: skl-topology: fix -frame-larger-than

2021-03-18 Thread Mark Brown
On Sun, 14 Mar 2021 18:39:08 -0700, Nick Desaulniers wrote: > Fixes: > sound/soc/intel/skylake/skl-topology.c:3613:13: warning: stack frame > size of 1304 bytes in function 'skl_tplg_complete' > [-Wframe-larger-than=] > > struct snd_ctl_elem_value is 1224 bytes in my configuration. > > [...]

Re: [PATCH v5 00/17] Fix reset controls and RPM of NVIDIA Tegra ASoC drivers

2021-03-18 Thread Mark Brown
On Sun, 14 Mar 2021 18:44:42 +0300, Dmitry Osipenko wrote: > This series adds missing hardware reset controls to I2S and AC97 drivers, > corrects runtime PM usage and drivers probe/remove order. Currently drivers > happen to work properly because reset is implicitly deasserted by tegra-clk >

Re: [PATCH] hwmon: add driver for NZXT Kraken X42/X52/X62/X72

2021-03-18 Thread Guenter Roeck
On 3/18/21 9:48 AM, Jonas Malaco wrote: > These are "all-in-one" CPU liquid coolers that can be monitored and > controlled through a proprietary USB HID protocol. > > While the models have differently sized radiators and come with varying > numbers of fans, they are all indistinguishable at the

Re: [PATCH v16 0/9] arm64: ARMv8.5-A: MTE: Add async mode support

2021-03-18 Thread Catalin Marinas
On Mon, Mar 15, 2021 at 01:20:10PM +, Vincenzo Frascino wrote: > This patchset implements the asynchronous mode support for ARMv8.5-A > Memory Tagging Extension (MTE), which is a debugging feature that allows > to detect with the help of the architecture the C and C++ programmatic > memory

Re: [PATCH] PM / Domains: Fix integer overflows on u32 bit multiplies

2021-03-18 Thread Rafael J. Wysocki
On Sun, Feb 7, 2021 at 11:47 PM Colin King wrote: > > From: Colin Ian King > > There are three occurrances of u32 variables being multiplied by > 1000 using 32 bit multiplies and the result being assigned to a > 64 bit signed integer. These can potentially lead to a 32 bit > overflows, so fix

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

2021-03-18 Thread Adrian Hunter
On 18/03/21 7:58 pm, Asutosh Das (asd) wrote: > On 3/18/2021 10:54 AM, Rafael J. Wysocki wrote: >> On Thu, Mar 18, 2021 at 6:33 PM Asutosh Das (asd) >> wrote: >>> >>> On 3/18/2021 7:00 AM, Rafael J. Wysocki wrote: On Wed, Mar 17, 2021 at 7:37 AM Adrian Hunter wrote: > > On

[PATCH] swiotlb: Add swiotlb=off to disable SWIOTLB

2021-03-18 Thread Florian Fainelli
It may be useful to disable the SWIOTLB completely for testing or when a platform is known not to have any DRAM addressing limitations what so ever. Signed-off-by: Florian Fainelli --- Documentation/admin-guide/kernel-parameters.txt | 1 + include/linux/swiotlb.h | 1 +

Re: [PATCH] swiotlb: Add swiotlb=off to disable SWIOTLB

2021-03-18 Thread Florian Fainelli
On 3/18/2021 12:18 PM, Florian Fainelli wrote: > It may be useful to disable the SWIOTLB completely for testing or when a > platform is known not to have any DRAM addressing limitations what so > ever. > > Signed-off-by: Florian Fainelli Christoph, in addition to this change, how would you

Re: [PATCH] powerpc/embedded6xx: Remove CONFIG_MV64X60

2021-03-18 Thread Wolfram Sang
On Thu, Mar 18, 2021 at 05:25:07PM +, Christophe Leroy wrote: > Commit 92c8c16f3457 ("powerpc/embedded6xx: Remove C2K board support") > moved the last selector of CONFIG_MV64X60. > > As it is not a user selectable config, it can be removed. > > Signed-off-by: Christophe Leroy Acked-by:

[patch 0/2] x86/ioapic: Restore the ignore IRQ2 routing entry logic

2021-03-18 Thread Thomas Gleixner
Cure for the IRQ2 ignore logic which got lost during the irqdomain conversion and a related sanity check. Thanks, tglx

[patch 1/2] x86/ioapic: Ignore IRQ2 again

2021-03-18 Thread Thomas Gleixner
Vitali ran into an issue with hotplugging CPU0 on an Amazon instance where the matrix allocator claimed to be out of vectors. He analyzed it down to the point that IRQ2, the PIC cascade interrupt, which is supposed to be not ever routed to the IO/APIC ended up having an interrupt vector assigned

Re: [PATCH RFC 2/2] genirq/matrix: WARN_ON_ONCE() when cm->allocated/m->total_allocated go negative

2021-03-18 Thread Thomas Gleixner
On Thu, Mar 18 2021 at 08:58, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: >> There is a way more useful way to handle this. In such a case the bit is >> NOT set in the alloc map. So: >> >> if (!WARN_ON_ONCE(test_and_clear_bit(bit, cm->alloc_map))) >> return; >> >> would have

[patch 2/2] x86/vector: Add a sanity check to prevent IRQ2 allocations

2021-03-18 Thread Thomas Gleixner
To prevent another incidental removal of the IRQ2 ignore logic in the IO/APIC code going unnoticed add a sanity check. Add some commentry at the other place which ignores IRQ2 while at it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/vector.c | 13 + 1 file changed, 13

Re: [PATCH] audit: log nftables configuration change events once per table

2021-03-18 Thread kernel test robot
Hi Richard, Thank you for the patch! Yet something to improve: [auto build test ERROR on pcmoore-audit/next] [also build test ERROR on nf/master nf-next/master linux/master linus/master v5.12-rc3 next-20210318] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH] init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM

2021-03-18 Thread Enrico Weigelt, metux IT consult
On 24.02.21 17:23, Guenter Roeck wrote: Unfortunately that does not reflect reality, which was the reason for the above two commits. Problem here is that the cost is not paid by the driver authors, but by architectures which don't support HAS_IOMEM, specifically s390. Driver authors tend to

Re: [PATCH 0/3] static_call() vs __exit fixes

2021-03-18 Thread Jarkko Sakkinen
On Thu, Mar 18, 2021 at 12:31:56PM +0100, Peter Zijlstra wrote: > Hi, > > After more poking a new set of patches to fix static_call() vs __exit > functions. These patches replace the patch I posted yesterday: > > https://lkml.kernel.org/r/yfh6br61b5gk8...@hirez.programming.kicks-ass.net > >

Re: [PATCH v2 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-18 Thread Gabriel Krisman Bertazi
Shreeya, > utf8data.h_shipped has a large database table which is an auto-generated > decodification trie for the unicode normalization functions. > It is not necessary to carry this large table in the kernel hence make > Thanks for the v2. This is looking much better! I have a few comments

[PATCH v2] virt_wifi: Return micros for BSS TSF values

2021-03-18 Thread A. Cody Schuffelen
cfg80211_inform_bss expects to receive a TSF value, but is given the time since boot in nanoseconds. TSF values are expected to be at microsecond scale rather than nanosecond scale. Signed-off-by: A. Cody Schuffelen --- drivers/net/wireless/virt_wifi.c | 5 +++-- 1 file changed, 3

Re: [PATCH 3/3] KVM: SVM: allow to intercept all exceptions for debug

2021-03-18 Thread Sean Christopherson
On Thu, Mar 18, 2021, Joerg Roedel wrote: > On Thu, Mar 18, 2021 at 11:24:25AM +0200, Maxim Levitsky wrote: > > But again this is a debug feature, and it is intended to allow the user > > to shoot himself in the foot. > > And one can't debug SEV-ES guests with it, so what is the point of >

Re: [PATCH v4 1/3] bus: mhi: core: Introduce internal register poll helper function

2021-03-18 Thread Loic Poulain
On Thu, 18 Mar 2021 at 17:13, Jeffrey Hugo wrote: > > On 3/17/2021 3:26 PM, Bhaumik Bhatt wrote: > > On 2021-03-11 11:59 AM, Jeffrey Hugo wrote: > >> On 3/11/2021 1:00 AM, Loic Poulain wrote: > >>> Hi Bhaumik, > >>> > >>> On Thu, 11 Mar 2021 at 00:31, Bhaumik Bhatt > >>> wrote: > >

Re: A problem of Intel IOMMU hardware ?

2021-03-18 Thread Nadav Amit
> On Mar 18, 2021, at 2:25 AM, Longpeng (Mike, Cloud Infrastructure Service > Product Dept.) wrote: > > > >> -Original Message- >> From: Tian, Kevin [mailto:kevin.t...@intel.com] >> Sent: Thursday, March 18, 2021 4:56 PM >> To: Longpeng (Mike, Cloud Infrastructure Service Product

Re: [PATCH] mm: vmalloc: Prevent use after free in _vm_unmap_aliases

2021-03-18 Thread Uladzislau Rezki
On Thu, Mar 18, 2021 at 03:38:25PM +0530, vji...@codeaurora.org wrote: > From: Vijayanand Jitta > > A potential use after free can occur in _vm_unmap_aliases > where an already freed vmap_area could be accessed, Consider > the following scenario: > > Process 1

Re: [PATCH 3/3] static_call: Fix static_call_update() sanity check

2021-03-18 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 11:13:08AM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 12:31:59PM +0100, Peter Zijlstra wrote: > > if (!kernel_text_address((unsigned long)site_addr)) { > > - WARN_ONCE(1, "can't patch static call site at > > %pS", >

Re: [PATCH] selftests/kvm: add get_msr_index_features

2021-03-18 Thread Andrew Jones
On Thu, Mar 18, 2021 at 03:56:29PM +0100, Emanuele Giuseppe Esposito wrote: > Test the KVM_GET_MSR_FEATURE_INDEX_LIST > and KVM_GET_MSR_INDEX_LIST ioctls. > > Signed-off-by: Emanuele Giuseppe Esposito > --- > tools/testing/selftests/kvm/.gitignore| 1 + >

Re: [PATCH net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Vladimir Oltean
On Thu, Mar 18, 2021 at 05:38:13PM +0100, Michael Walle wrote: > Am 2021-03-18 17:21, schrieb Heiner Kallweit: > > On 18.03.2021 16:17, Vladimir Oltean wrote: > > > On Thu, Mar 18, 2021 at 03:54:00PM +0100, Heiner Kallweit wrote: > > > > On 18.03.2021 15:23, Michael Walle wrote: > > > > >

Re: [PATCH 3/3] mm/devmap: Remove pgmap accounting in the get_user_pages_fast() path

2021-03-18 Thread Dan Williams
On Thu, Mar 18, 2021 at 3:02 AM Joao Martins wrote: > > On 3/18/21 4:08 AM, Dan Williams wrote: > > Now that device-dax and filesystem-dax are guaranteed to unmap all user > > mappings of devmap / DAX pages before tearing down the 'struct page' > > array, get_user_pages_fast() can rely on its

Re: Checkpatch still worries about include/asm/ ?

2021-03-18 Thread Lukas Bulwahn
On Thu, Mar 18, 2021 at 5:47 PM Dwaipayan Ray wrote: > > Hello, > include/asm/ got removed a long time back (probably v1.1.45). > Checkpatch still worries about that: > > if ($realfile =~ m@^include/asm/@) { > ERROR("MODIFIED_INCLUDE_ASM", > "do not modify files in include/asm, change

Re: [PATCH 5/9] objtool: Rework rebuild_reloc logic

2021-03-18 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 11:36:40AM -0500, Josh Poimboeuf wrote: > > I was thinking you could get a section changed without touching > > relocations, but while that is theoretically possible, it is exceedingly > > unlikely (and objtool doesn't do that). > > Hm? This is a *relocation* section, not

Re: [PATCH v2 1/3] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-18 Thread Song Liu
> On Mar 18, 2021, at 6:49 AM, Namhyung Kim wrote: > > On Thu, Mar 18, 2021 at 4:22 PM Song Liu wrote: >> >> >> >>> On Mar 17, 2021, at 10:54 PM, Namhyung Kim wrote: >>> >> >> [...] >> + +static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd,

Re: [PATCH 01/10] alpha: use libata instead of the legacy ide driver

2021-03-18 Thread Måns Rullgård
Christoph Hellwig writes: > On Thu, Mar 18, 2021 at 05:54:55AM +, Al Viro wrote: >> On Thu, Mar 18, 2021 at 05:56:57AM +0100, Christoph Hellwig wrote: >> > Switch the alpha defconfig from the legacy ide driver to libata. >> >> Umm... I don't have an IDE alpha box in a usable shape (fans on

Re: [PATCH 3/3] KVM: SVM: allow to intercept all exceptions for debug

2021-03-18 Thread Sean Christopherson
On Thu, Mar 18, 2021, Maxim Levitsky wrote: > On Thu, 2021-03-18 at 16:35 +, Sean Christopherson wrote: > > Skipping SEV-ES guests should not be difficult; KVM could probably even > > print a message stating that the debug hook is being ignored. One thought > > would > > be to snapshot

Re: [PATCH master] module: remove never implemented MODULE_SUPPORTED_DEVICE

2021-03-18 Thread Linus Torvalds
On Thu, Mar 18, 2021 at 12:55 AM Leon Romanovsky wrote: > > > > Also, your email seems to have swallowed spaces at the ends of lines. > > > > I can (and did) apply the patch with "--whitespace=fix", but that then > > causes git to fix some _other_ whitespace too, so the end result isn't > > quite

Re: [RFC PATCH v2 2/8] arm64: Implement frame types

2021-03-18 Thread Mark Brown
On Mon, Mar 15, 2021 at 11:57:54AM -0500, madve...@linux.microsoft.com wrote: > To summarize, pt_regs->stackframe is used (or will be used) as a marker > frame in stack traces. To enable the unwinder to detect these frames, tag > each pt_regs->stackframe with a type. To record the type, use the

Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list

2021-03-18 Thread Borislav Petkov
On Thu, Mar 18, 2021 at 01:53:30AM +0200, Jarkko Sakkinen wrote: > From: Jarkko Sakkinen > > During normal runtime, the "ksgxd" daemon behaves like a version of > kswapd just for SGX. But, before it starts acting like kswapd, its > first job is to initialize enclave memory. > > Currently, the

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Enrico Weigelt, metux IT consult
On 15.03.21 00:55, Pali Rohár wrote: Moreover for mPCIe form factor cards, boards can share one PERST# signal with more PCIe cards and control this signal via GPIO. So asserting PERST# GPIO can trigger Warm reset for more PCIe cards, not just one. It depends on board or topology. The

Re: [PATCH] drm/i915/dpcd_bl: Don't try vesa interface unless specified by VBT

2021-03-18 Thread Lyude Paul
Actually-NAK this. I just realized I've been misreading the bug and that this doesn't actually seem to be fixed. Will resend once I figure out what's going on On Thu, 2021-03-18 at 13:02 -0400, Lyude Paul wrote: > Looks like that there actually are another subset of laptops on the market > that

Re: [PATCH v2 02/17] cfi: add __cficanonical

2021-03-18 Thread Nick Desaulniers
On Thu, Mar 18, 2021 at 10:11 AM Sami Tolvanen wrote: > > With CONFIG_CFI_CLANG, the compiler replaces a function address taken > in C code with the address of a local jump table entry, which passes > runtime indirect call checks. However, the compiler won't replace > addresses taken in assembly

Re: [PATCH] ARM: boot: dts: Fix a typo

2021-03-18 Thread Randy Dunlap
On 3/18/21 2:52 AM, Bhaskar Chowdhury wrote: > > s/conlicts/conflicts/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/arm/boot/dts/sama5d3.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/sama5d3.dtsi

Re: [PATCH] RDMA/include: Mundane typo fixes throughout the file

2021-03-18 Thread Randy Dunlap
On 3/18/21 3:04 AM, Bhaskar Chowdhury wrote: > > s/proviee/provide/ > s/undelying/underlying/ > s/quesiton/question/ > s/drivr/driver/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > include/rdma/rdma_vt.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) >

Re: [PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-18 Thread Greg KH
On Thu, Mar 18, 2021 at 09:02:22AM -0700, Florian Fainelli wrote: > > > On 3/18/2021 6:25 AM, Heiner Kallweit wrote: > > On 18.03.2021 10:09, Wong Vee Khee wrote: > >> When using Clause-22 to probe for PHY devices such as the Marvell > >> 88E2110, PHY ID with value 0 is read from the MII PHYID

Re: [PATCH] x86/mm: Fixed couple of typos

2021-03-18 Thread Randy Dunlap
On 3/17/21 11:47 PM, Bhaskar Chowdhury wrote: > > s/compied/compiled/ > s/preseve/preserve/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/x86/mm/init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/mm/init.c

[PATCH] amba: bus: Export symbols directly after function

2021-03-18 Thread Milan Djurovic
Fix the following checkpatch.pl warnings: drivers/amba/bus.c:832: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable drivers/amba/bus.c:833: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable drivers/amba/bus.c:834: WARNING:

Re: [PATCH 5/5] selftests/seccomp: Add test for atomic addfd+send

2021-03-18 Thread Rodrigo Campos
On Thu, Mar 18, 2021 at 6:17 AM Sargun Dhillon wrote: > > This just adds a test to verify that when using the new introduced flag > to ADDFD, a valid fd is added and returned as the syscall result. > > Signed-off-by: Rodrigo Campos > Signed-off-by: Sargun Dhillon I think in the last minutes

Re: [PATCH v2 09/17] lib/list_sort: fix function type mismatches

2021-03-18 Thread Nick Desaulniers
On Thu, Mar 18, 2021 at 10:11 AM Sami Tolvanen wrote: > > Casting the comparison function to a different type trips indirect > call Control-Flow Integrity (CFI) checking. Remove the additional > consts from cmp_func, and the now unneeded casts. > > Fixes: 043b3f7b6388 ("lib/list_sort: simplify

Re: [PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-18 Thread Florian Fainelli
On 3/18/2021 11:14 AM, Greg KH wrote: > On Thu, Mar 18, 2021 at 09:02:22AM -0700, Florian Fainelli wrote: >> >> >> On 3/18/2021 6:25 AM, Heiner Kallweit wrote: >>> On 18.03.2021 10:09, Wong Vee Khee wrote: When using Clause-22 to probe for PHY devices such as the Marvell 88E2110, PHY

Re: [PATCH v2 1/2] audit: document /proc/PID/loginuid

2021-03-18 Thread Paul Moore
On Wed, Mar 17, 2021 at 9:51 PM Richard Guy Briggs wrote: > > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > was added 2005-02-01 by commit 1e2d1492e178 ("[PATCH] audit: handle > loginuid through proc") > > Signed-off-by: Richard Guy Briggs > --- >

Re: [PATCH v23 22/28] x86/cet/shstk: User-mode shadow stack support

2021-03-18 Thread Yu, Yu-cheng
On 3/18/2021 5:32 AM, Borislav Petkov wrote: Subject: Re: [PATCH v23 22/28] x86/cet/shstk: User-mode shadow stack support ^ Add On Tue, Mar 16, 2021 at 08:10:48AM -0700, Yu-cheng Yu wrote:

Re: [PATCH v2 2/2] audit: document /proc/PID/sessionid

2021-03-18 Thread Paul Moore
On Wed, Mar 17, 2021 at 9:51 PM Richard Guy Briggs wrote: > > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > was added 2008-03-13 in commit 1e0bd7550ea9 ("[PATCH] export sessionid > alongside the loginuid in procfs") > > Signed-off-by: Richard Guy Briggs > --- >

<    5   6   7   8   9   10   11   12   13   14   >