Re: [BUG] net: rds: rds_send_probe memory leak

2021-03-14 Thread Fatih Yildirim
On Sun, 2021-03-14 at 13:44 +0100, Greg KH wrote: > On Sun, Mar 14, 2021 at 03:19:05PM +0300, Fatih Yildirim wrote: > > On Sun, 2021-03-14 at 09:36 +0100, Greg KH wrote: > > > On Sun, Mar 14, 2021 at 11:23:10AM +0300, Fatih Yildirim wrote: > > > > Hi Santosh, > > > > > > > > I've been working on a

Re: [PATCH] mips: kernel: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2021-03-14 Thread Thomas Bogendoerfer
On Sat, Mar 13, 2021 at 11:33:48AM +0800, Wang Qing wrote: > debugfs_create_file_unsafe does not protect the fops handed to it > against file removal. DEFINE_DEBUGFS_ATTRIBUTE makes the fops aware of > the file lifetime and thus protects it against removal. > > Signed-off-by: Wang Qing > --- > a

ERROR: modpost: "__aeabi_unwind_cpp_pr0" undefined!

2021-03-14 Thread kernel test robot
weeks ago config: arm-randconfig-r024-20210314 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dfd27ebbd0eb137c9a439b7c537bb87ba903efd3) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [PATCH v3 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-14 Thread Daniel Lezcano
On 14/03/2021 13:47, Ido Schimmel wrote: > On Sun, Mar 14, 2021 at 12:13:29PM +0100, Daniel Lezcano wrote: >> We want to have any kind of name for the cooling devices as we do no >> longer want to rely on auto-numbering. Let's replace the cooling >> device's fixed array by a char pointer to be allo

Re: [PATCH] iio:dac:max517: Use devm_iio_device_register()

2021-03-14 Thread Mugilraj D
On 14/03/21 4:37 pm, Alexandru Ardelean wrote: > On Sun, Mar 14, 2021 at 11:34 AM Mugilraj Dhavachelvan > wrote: >> >> Use devm_iio_device_register() to avoid remove function and >> drop explicit call to iio_device_unregister(). >> >> Signed-off-by: Mugilraj Dhavachelvan >> --- >> drivers/iio

[PATCH rdma-next 0/2] Spring cleanup

2021-03-14 Thread Leon Romanovsky
From: Leon Romanovsky Bunch of cleanup in RDMA subsystem. Leon Romanovsky (2): RDMA: Fix kernel-doc compilation warnings RDMA: Delete not-used static inline functions drivers/infiniband/hw/cxgb4/iw_cxgb4.h| 11 -- drivers/infiniband/hw/cxgb4/t4.h | 33 -

Re: [PATCH] gpio: mpc8xxx: Add ACPI support

2021-03-14 Thread Andy Shevchenko
On Fri, Mar 12, 2021 at 8:53 AM Ran Wang wrote: First of all, please add me to the Cc list for the next version of the patch. > Current implementation only supports DT, now add ACPI support. > > Note that compared to device of 'fsl,qoriq-gpio', LS1028A and to devices > LS1088A's GPIO have no e

Re: [External] Re: [PATCH v3 2/4] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-14 Thread Muchun Song
On Sat, Mar 13, 2021 at 3:23 AM Johannes Weiner wrote: > > Hello Muchun, > > On Fri, Mar 12, 2021 at 03:14:07PM +0800, Muchun Song wrote: > > On Thu, Mar 11, 2021 at 9:12 PM Johannes Weiner wrote: > > > > @@ -358,14 +358,26 @@ enum page_memcg_data_flags { > > > > > > > > #define MEMCG_DATA_FLAGS

Re: [PATCH v2 1/2] xtensa: move CONFIG_CPU_*_ENDIAN defines to Kconfig

2021-03-14 Thread Max Filippov
On Sat, Mar 13, 2021 at 4:24 AM Masahiro Yamada wrote: > > Move the definition of CONFIG_CPU_*_ENDIAN to Kconfig, the best place > for CONFIG options. > > I slightly simplified the test code. You can use the -P option to suppress > linemarker generation. The grep command is unneeded. > > $ echo

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

2021-03-14 Thread Shreeya Patel
On 14/03/21 7:19 am, Gabriel Krisman Bertazi wrote: Shreeya Patel writes: 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 UTF-8 encodin

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

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

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

2021-03-14 Thread Jianlin Lv
When the incorrect interface name is stored in the slaves/active_slave option of the bonding sysfs, the kernel does not record the log that interface does not exist. This patch adds a log for -ENODEV error, which will facilitate users to figure out such issue. Signed-off-by: Jianlin Lv --- v2: U

[PATCH net-next v2] mfd: Add Renesas Synchronization Management Unit (SMU) support

2021-03-14 Thread min.li.xe
From: Min Li Add support for ClockMatrix(TM) and 82P33xxx families of timing and synchronization devices. The access interface can be either SPI or I2C. Currently, it will create 2 types of MFD devices, which are to be used by the corresponding rsmu character device driver and the PTP hardware cl

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

2021-03-14 Thread Dmitry Osipenko
14.03.2021 11:06, Nicolin Chen пишет: > + for (pd_index = 0; pd_index < SMMU_NUM_PDE; pd_index++) { > + struct page *pt_page; > + u32 *addr; > + int i; unsigned int and then printf specifiers also should be %u

Re: [PATCH 1/3] xtensa: stop filling syscall array with sys_ni_syscall

2021-03-14 Thread Max Filippov
On Mon, Mar 1, 2021 at 7:37 AM Masahiro Yamada wrote: > > arch/xtensa/kernel/syscalls/syscalltbl.sh fills missing syscall numbers > with sys_ni_syscall. > > So, the generated arch/xtensa/include/generated/asm/syscall_table.h > has no hole. > > Hence, the line: > > [0 ... __NR_syscalls - 1] = (sy

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

2021-03-14 Thread Dario Binacchi
As reported by the TI spruh73x RM, MPU and LCD modules support spread spectrum clocking (SSC) on their output clocks. SSC is used to spread the spectral peaking of the clock to reduce any electromagnetic interference (EMI) that may be caused due to the clock’s fundamental or any of its harmonics.

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

2021-03-14 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 wa

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

2021-03-14 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi --- 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 6097b099a5df..94d5b5fe9a2b 100644 ---

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

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

[PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-14 Thread Dario Binacchi
As reported by TI spruh73x RM, the LCD pixel clock (LCD_PCLK) frequency is obtained by dividing LCD_CLK, the LCD controller reference clock, for CLKDIV: LCD_PCLK = LCD_CLK / CLKDIV where CLKDIV must be greater than 1. Therefore LCD_CLK must be set to 'req_rate * CLKDIV' instead of req_rate and t

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

2021-03-14 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 --- arch/arm/boot/dts/am33xx-clocks.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

[RESEND PATCH] ARM: dts: am33xx-l4: fix tscadc@0 node indentation

2021-03-14 Thread Dario Binacchi
Fix the broken indentation of tscadc@0 node. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/am33xx-l4.dtsi | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi index 1fb22088c

Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-14 Thread Chuck Lever III
> On Mar 14, 2021, at 8:52 AM, Mel Gorman wrote: > > On Sat, Mar 13, 2021 at 07:33:43PM +, Matthew Wilcox wrote: >> On Sat, Mar 13, 2021 at 04:56:31PM +, Chuck Lever III wrote: >>> IME lists are indeed less CPU-efficient, but I wonder if that >>> expense is insignificant compared to se

Re: [PATCH v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-14 Thread Jarkko Sakkinen
On Sat, Mar 13, 2021 at 09:07:36PM +0200, Jarkko Sakkinen wrote: > On Sat, Mar 13, 2021 at 09:05:36PM +0200, Jarkko Sakkinen wrote: > > On Fri, Mar 12, 2021 at 01:44:58PM -0800, Sean Christopherson wrote: > > > On Tue, Mar 09, 2021, Kai Huang wrote: > > > > Modify sgx_init() to always try to initia

Re: [PATCH v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-14 Thread Jarkko Sakkinen
On Sun, Mar 14, 2021 at 05:25:26PM +0200, Jarkko Sakkinen wrote: > On Sat, Mar 13, 2021 at 09:07:36PM +0200, Jarkko Sakkinen wrote: > > On Sat, Mar 13, 2021 at 09:05:36PM +0200, Jarkko Sakkinen wrote: > > > On Fri, Mar 12, 2021 at 01:44:58PM -0800, Sean Christopherson wrote: > > > > On Tue, Mar 09,

[GIT pull] objtool/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest objtool/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2021-03-14 up to: ba08abca66d4: objtool,x86: Fix uaccess PUSHF/POPF validation A single objtool fix to handle the PUSHF/POPF validation correctly for the para

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

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest locking/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2021-03-14 up to: 4817a52b3061: seqlock,lockdep: Fix seqcount_latch_init() A couple of locking fixes: - A fix for the static_call mechanism so it handles u

[GIT pull] sched/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest sched/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2021-03-14 up to: ce29ddc47b91: sched/membarrier: fix missing local execution of ipi_sync_rq_state() A set of scheduler updates: - Prevent a NULL pointer dere

[GIT pull] timers/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest timers/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-2021-03-14 up to: 46eb1701c046: hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() A single fix in for hrtimers to prevent an inte

Re: [PATCH v7 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-03-14 Thread Jonathan Cameron
On Sat, 13 Mar 2021 11:55:39 -0800 Jyoti Bhayana wrote: > Hi Jonathan, > > I still see the old version 6 in ib-iio-scmi-5.12-rc2-take2 as well. OK. I'm completely confused as to what is going with my local tree. I have the right patch in the history but it didn't end up in the final pushed out

[GIT pull] irq/urgent for v5.12-rc2

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest irq/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2021-03-14 up to: b470ebc9e0e5: Merge tag 'irqchip-fixes-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent A set of irqchip

[PATCH v5 01/17] ASoC: tegra20: ac97: Add reset control

2021-03-14 Thread Dmitry Osipenko
Tegra20 AC97 driver doesn't manage the AC97 controller reset, relying on implicit deassertion of the reset by tegra-clk driver, which needs to be fixed since this behaviour is unacceptable by other Tegra drivers. Add explicit reset control to the Tegra20 AC97 driver. Note that AC97 reset was alway

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

2021-03-14 Thread Dmitry Osipenko
Hi, 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 driver, but clk driver shouldn't touch the resets and we need to fix

[PATCH v5 02/17] ASoC: tegra20: i2s: Add reset control

2021-03-14 Thread Dmitry Osipenko
The I2S reset may be asserted at a boot time, in particular this is the case on Tegra20 AC100 netbook. Tegra20 I2S driver doesn't manage the reset control and currently it happens to work because reset is implicitly deasserted by the tegra-clk driver when I2S clock is enabled. The I2S permanently s

[PATCH v5 05/17] ASoC: tegra30: ahub: Switch to use reset-bulk API

2021-03-14 Thread Dmitry Osipenko
Switch to use reset-bulk API in order to make code cleaner. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra30_ahub.c | 104 - sound/soc/tegra/tegra30_ahub.h | 5 +- sound/soc/tegra/tegra30_i2s.c | 1 + 3 files changed, 40 insertions(+), 70 deletions(

[PATCH v5 08/17] ASoC: tegra20: i2s: Add system level suspend-resume callbacks

2021-03-14 Thread Dmitry Osipenko
Add system level suspend-resume callbacks in order to ensure that I2S is gated before system is suspended. This puts Tegra20 I2S driver on par with the Tegra30 I2S driver. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_i2s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound

[PATCH v5 04/17] reset: Add reset_control_bulk API

2021-03-14 Thread Dmitry Osipenko
From: Philipp Zabel Follow the clock and regulator subsystems' lead and add a bulk API for reset controls. Signed-off-by: Philipp Zabel Tested-by: Dmitry Osipenko Signed-off-by: Dmitry Osipenko --- drivers/reset/core.c | 215 include/linux/reset.h | 315

[PATCH v5 10/17] ASoC: tegra20: i2s: Use devm_clk_get()

2021-03-14 Thread Dmitry Osipenko
Use resource-managed variant of clk_get() to simplify code. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_i2s.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sound/soc/tegra/tegra20_i2s.c b/sound/soc/tegra/tegra20_i2s.c index 0f2bdc2e8598..fe569198

[PATCH v5 12/17] ASoC: tegra30: i2s: Correct driver removal order

2021-03-14 Thread Dmitry Osipenko
Tegra30 I2S driver has a wrong driver removal order, which should be opposite to the registration order, but it's not. In particular the runtime PM is disabled in a wrong order. Fix the order. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra30_i2s.c | 8 1 file changed, 4 insert

[PATCH v5 03/17] ASoC: tegra30: i2s: Restore hardware state on runtime PM resume

2021-03-14 Thread Dmitry Osipenko
Tegra30 I2S driver syncs regmap cache only on resume from system suspend, but hardware is reset across the runtime suspend because RPM of the parent AHUB driver resets the I2S hardware, hence h/w state is lost after each RPM resume. The problem isn't visible because hardware happens to be fully rep

[PATCH v5 09/17] ASoC: tegra20: i2s: Correct driver removal order

2021-03-14 Thread Dmitry Osipenko
Tegra20 I2S driver has a wrong driver removal order, which should be opposite to the registration order, but it's not. In particular the runtime PM is disabled in a wrong order. Fix the order. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_i2s.c | 6 +++--- 1 file changed, 3 insertio

[PATCH v5 07/17] ASoC: tegra20: spdif: Remove handing of disabled runtime PM

2021-03-14 Thread Dmitry Osipenko
Runtime PM is always available on Tegra since commit 40b2bb1b132a ("ARM: tegra: enforce PM requirement"), hence there is no need to handle the case of a disabled RPM by Tegra drivers. Remove handing of a disabled runtime PM from Tegra20 SPDIF driver. Signed-off-by: Dmitry Osipenko --- sound/soc/

[PATCH v5 06/17] ASoC: tegra20: spdif: Correct driver removal order

2021-03-14 Thread Dmitry Osipenko
Tegra20 SPDIF driver has a wrong driver removal order, which should be opposite to the registration order, but it's not. In particular the runtime PM is disabled in a wrong order. Fix the order. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 6 +++--- 1 file changed, 3 inse

[PATCH v5 11/17] ASoC: tegra20: i2s: Remove handing of disabled runtime PM

2021-03-14 Thread Dmitry Osipenko
Runtime PM is always available on Tegra since commit 40b2bb1b132a ("ARM: tegra: enforce PM requirement"), hence there is no need to handle the case of a disabled RPM by Tegra drivers. Remove handing of a disabled runtime PM from Tegra20 I2S driver. Signed-off-by: Dmitry Osipenko --- sound/soc/te

[PATCH v5 14/17] ASoC: tegra30: i2s: Remove handing of disabled runtime PM

2021-03-14 Thread Dmitry Osipenko
Runtime PM is always available on Tegra since commit 40b2bb1b132a ("ARM: tegra: enforce PM requirement"), hence there is no need to handle the case of a disabled RPM by Tegra drivers. Remove handing of a disabled runtime PM from Tegra30 I2S driver. Signed-off-by: Dmitry Osipenko --- sound/soc/te

[PATCH v5 13/17] ASoC: tegra30: i2s: Use devm_clk_get()

2021-03-14 Thread Dmitry Osipenko
Use resource-managed variant of clk_get() to simplify code. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra30_i2s.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index 31e08c5c1405..0ed982548c

[PATCH v5 15/17] ASoC: tegra30: ahub: Reset global variable

2021-03-14 Thread Dmitry Osipenko
Tegra30 AHUB uses global variable that is never reset by the driver on a probe failure and on driver removal, meaning that driver will never try to re-probe and can't be unbound. Make driver to reset the variable. Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra30_ahub.c | 30 +++

[PATCH v5 17/17] ASoC: tegra30: ahub: Remove handing of disabled runtime PM

2021-03-14 Thread Dmitry Osipenko
Runtime PM is always available on Tegra since commit 40b2bb1b132a ("ARM: tegra: enforce PM requirement"), hence there is no need to handle the case of a disabled RPM by Tegra drivers. Remove handing of a disabled runtime PM from Tegra30 AHUB driver. Signed-off-by: Dmitry Osipenko --- sound/soc/t

[PATCH v5 16/17] ASoC: tegra30: ahub: Correct suspend-resume callbacks

2021-03-14 Thread Dmitry Osipenko
Tegra30 AHUB driver always syncs hardware state on a runtime PM resume, hence there is no needed to re-sync the state on system resume. Replace the suspend-resume callbacks with a generic helpers which ensure that AHUB is suspended using RPM callbacks across system suspend-resume. Signed-off-by: D

ERROR: modpost: "__aeabi_unwind_cpp_pr0" undefined!

2021-03-14 Thread kernel test robot
weeks ago config: arm-randconfig-r024-20210314 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dfd27ebbd0eb137c9a439b7c537bb87ba903efd3) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [PATCH v2 0/4] staging: rtl8723bs: remove unused code blocks

2021-03-14 Thread Greg KH
On Fri, Mar 12, 2021 at 07:33:13PM +0100, Fabio Aiuto wrote: > This patch set removes unused code blocks as required in TODO file: > > find and remove code blocks guarded by never set CONFIG_FOO defines > > Changes in v2: > - modified sunject lines to make them unique > - added

Re: [PATCH] staging:rtl8723bs:core:rtw_wlan_util:fixed indentation coding style issue

2021-03-14 Thread Greg KH
On Sat, Mar 13, 2021 at 10:44:53PM +0530, Shreya wrote: > Fixed the indentation of the else part of the conditional statement. > > Signed-off-by: Shreya Ajith This name does not match your "From:" email name :( Please fix up and resend. thanks, greg k-h

Re: [PATCH] staging: vt6655: Fix camelcase

2021-03-14 Thread Greg KH
On Sat, Mar 13, 2021 at 12:30:19PM -0600, Madhumitha Prabakaran wrote: > Fix checkpatch.pl - Avoid CamelCase: > > Signed-off-by: Madhumitha Prabakaran > --- > drivers/staging/vt6655/baseband.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/vt6655

[PATCH v4 02/11] perf/x86/lbr: Simplify the exposure check for the LBR_INFO registers

2021-03-14 Thread Like Xu
If the platform supports LBR_INFO register, the x86_pmu.lbr_info will be assigned in intel_pmu_?_lbr_init_?() and it's safe to expose LBR_INFO in the x86_perf_get_lbr() directly, instead of relying on lbr_format check. Also Architectural LBR has IA32_LBR_x_INFO instead of LBR_FORMAT_INFO_x to hold

[PATCH v4 01/11] perf/x86/intel: Fix the comment about guest LBR support on KVM

2021-03-14 Thread Like Xu
Starting from v5.12, KVM reports guest LBR and extra_regs support when the host has relevant support. Just delete this part of the comment and fix a typo. Cc: Kan Liang Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Ingo Molnar Signed-off-by: Like Xu Reviewed-by: Kan Liang Reviewed-by: Andi Klee

[PATCH v4 00/11] KVM: x86/pmu: Guest Architectural LBR Enabling

2021-03-14 Thread Like Xu
Hi geniuses, Please help review the new version of Arch LBR enabling patch set. The Architectural Last Branch Records (LBRs) is publiced in the 319433-040 release of Intel Architecture Instruction Set Extensions and Future Features Programming Reference[0]. The main advantages for the Arch LBR u

[PATCH v4 04/11] perf/x86/lbr: Move cpuc->lbr_xsave allocation out of sleeping region

2021-03-14 Thread Like Xu
If the kernel is compiled with the CONFIG_LOCKDEP option, the conditional might_sleep_if() deep in kmem_cache_alloc() will generate the following trace, and potentially cause a deadlock when another LBR event is added: [ 243.115549] BUG: sleeping function called from invalid context at include/l

[PATCH v4 06/11] KVM: vmx/pmu: Add MSR_ARCH_LBR_DEPTH emulation for Arch LBR

2021-03-14 Thread Like Xu
The number of Arch LBR entries available for recording operations is dictated by the value in MSR_ARCH_LBR_DEPTH.DEPTH. The supported LBR depth values can be found in CPUID.(EAX=01CH, ECX=0):EAX[7:0] and for each bit "n" set in this field, the MSR_ARCH_LBR_DEPTH.DEPTH value of "8*(n+1)" is supporte

[PATCH v4 03/11] perf/x86/lbr: Skip checking for the existence of LBR_TOS for Arch LBR

2021-03-14 Thread Like Xu
The Architecture LBR does not have MSR_LBR_TOS (0x01c9). KVM will generate #GP for this MSR access, thereby preventing the initialization of the guest LBR. Cc: Kan Liang Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Ingo Molnar Fixes: 47125db27e47 ("perf/x86/intel/lbr: Support Architectural L

[PATCH v4 05/11] perf/x86: Move ARCH_LBR_CTL_MASK definition to include/asm/msr-index.h

2021-03-14 Thread Like Xu
The ARCH_LBR_CTL_MASK will be reused for LBR emulation in the KVM. Cc: Kan Liang Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Ingo Molnar Signed-off-by: Like Xu --- arch/x86/events/intel/lbr.c | 2 -- arch/x86/include/asm/msr-index.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-)

[PATCH v4 07/11] KVM: vmx/pmu: Add MSR_ARCH_LBR_CTL emulation for Arch LBR

2021-03-14 Thread Like Xu
Arch LBRs are enabled by setting MSR_ARCH_LBR_CTL.LBREn to 1. A new guest state field named "Guest IA32_LBR_CTL" is added to enhance guest LBR usage. When guest Arch LBR is enabled, a guest LBR event will be created like the model-specific LBR does. On processors that support Arch LBR, MSR_IA32_DE

[PATCH v4 09/11] KVM: x86: Expose Architectural LBR CPUID leaf

2021-03-14 Thread Like Xu
If CPUID.(EAX=07H, ECX=0):EDX[19] is set to 1, then KVM supports Arch LBRs and CPUID leaf 01CH indicates details of the Arch LBRs capabilities. Currently, KVM only supports the current host LBR depth for guests, which is also the maximum supported depth on the host. Signed-off-by: Like Xu --- ar

[PATCH v4 08/11] KVM: vmx/pmu: Add Arch LBR emulation and its VMCS field

2021-03-14 Thread Like Xu
New VMX controls bits for Arch LBR are added. When bit 21 in vmentry_ctrl is set, VM entry will write the value from the "Guest IA32_LBR_CTL" guest state field to IA32_LBR_CTL. When bit 26 in vmexit_ctrl is set, VM exit will clear IA32_LBR_CTL after the value has been saved to the "Guest IA32_LBR_C

[PATCH v2] x86: Update guest LBR tests for Architectural LBR

2021-03-14 Thread Like Xu
This unit-test is intended to test the basic KVM's support for Architectural LBRs which is a Architectural performance monitor unit (PMU) feature on Intel processors including negative testing on the MSR LBR_DEPTH values. If the LBR bit is set to 1 in the MSR_ARCH_LBR_CTL, the processor will recor

[PATCH v4 10/11] KVM: x86: Refine the matching and clearing logic for supported_xss

2021-03-14 Thread Like Xu
Refine the code path of the existing clearing of supported_xss in this way: initialize the supported_xss with the filter of KVM_SUPPORTED_XSS mask and update its value in a bit clear manner (rather than bit setting). Suggested-by: Sean Christopherson Signed-off-by: Like Xu --- arch/x86/kvm/vmx/

[PATCH v4 11/11] KVM: x86: Add XSAVE Support for Architectural LBRs

2021-03-14 Thread Like Xu
On processors whose XSAVE feature set supports XSAVES and XRSTORS, the availability of support for Architectural LBR configuration state save and restore can be determined from CPUID.(EAX=0DH, ECX=1):EDX:ECX[bit 15]. The detailed leaf for Arch LBRs is enumerated in CPUID.(EAX=0DH, ECX=0FH). XSAVES

Re: [PATCH] soc: fsl: guts: fix comment syntax in file

2021-03-14 Thread Randy Dunlap
On 3/13/21 11:28 PM, Aditya Srivastava wrote: > The opening comment mark '/**' is used for kernel-doc comments. > There are certain comments in include/linux/fsl/guts.h which follows this > syntax, but the content inside does not comply with kernel-doc. > > E.g., opening comment for "Freecale 85xx

[PATCH] cred: make init_groups static

2021-03-14 Thread Alexey Dobriyan
Nothing really uses init_groups. It can be accessed via init_cred if necessary. Signed-off-by: Alexey Dobriyan --- include/linux/cred.h |1 - include/linux/init_task.h |1 - kernel/cred.c |2 +- 3 files changed, 1 insertion(+), 3 deletions(-) --- a/include/linux/cr

Re: [PATCH V2] tty: vt: Mundane typo fix in the file vt.c

2021-03-14 Thread Randy Dunlap
On 3/13/21 10:27 PM, Bhaskar Chowdhury wrote: > > s/spurrious/spurious/ > s/worse/worst/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap Thanks. > --- > Changes from V1: > Incorporated Randy's suggestion. > > drivers/tty/vt/vt.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

[PATCH v2] staging:rtl8723bs:core:rtw_wlan_util:fixed indentation coding style issue

2021-03-14 Thread Shreya
Fixed the indentation of the else part of the conditional statement. Signed-off-by: Shreya --- v1 -> v2: Changed name in signed-off-by to match name in From drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723

[PATCH] drivers: tee: optee: removed repeated words in comments

2021-03-14 Thread Anupama K Patil
the word "the" is repeated in the file core.c so it has been removed. Likewise the word "of" is repeated in optee_smc.h and have removed it. Signed-off-by: Anupama K Patil --- drivers/tee/optee/core.c | 2 +- drivers/tee/optee/optee_smc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletion

[PATCH v3 02/15] opp: Add devres wrapper for dev_pm_opp_set_regulators

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_regulators() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 30 ++ include/linux/pm_opp.h | 8 2 files changed, 38 insertions(+) diff

[PATCH v3 01/15] opp: Add devres wrapper for dev_pm_opp_set_clkname

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_clkname() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 27 +++ include/linux/pm_opp.h | 6 ++ 2 files changed, 33 insertions(+) diff --git a/

[PATCH v3 04/15] opp: Add devres wrapper for dev_pm_opp_of_add_table

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_of_add_table() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/of.c | 36 include/linux/pm_opp.h | 6 ++ 2 files changed, 42 insertions(+) dif

[PATCH v3 00/15] Introduce devm_pm_opp_* API

2021-03-14 Thread Dmitry Osipenko
This series adds resource-managed OPP API helpers and makes drivers to use them. Changelog: v3: - Dropped dev_pm_opp_register_notifier(). - Changed return type of the devm helpers from opp_table pointer to errno. - Corrected drm/msm patch which missed to remove opp_put_supported_h

[PATCH v3 03/15] opp: Add devres wrapper for dev_pm_opp_set_supported_hw

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Add devres wrapper for dev_pm_opp_set_supported_hw() to simplify drivers code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 29 + include/linux/pm_opp.h | 8 2 files changed, 37 insertions(+) diff

[PATCH v3 05/15] opp: Change return type of devm_pm_opp_register_set_opp_helper()

2021-03-14 Thread Dmitry Osipenko
Make devm_pm_opp_register_set_opp_helper() to return error code instead of opp_table pointer in order to have return type consistent with the other resource-managed OPP helpers. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 18 ++ include/linux/pm_opp.h | 6 +++---

[PATCH v3 07/15] serial: qcom_geni_serial: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/tty/serial/qcom_geni_serial.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c

[PATCH v3 06/15] opp: Change return type of devm_pm_opp_attach_genpd()

2021-03-14 Thread Dmitry Osipenko
Make devm_pm_opp_attach_genpd() to return error code instead of opp_table pointer in order to have return type consistent with the other resource-managed OPP helpers. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 18 ++ include/linux/pm_opp.h | 9 + 2 files

[PATCH v3 08/15] spi: spi-geni-qcom: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-geni-qcom.c | 16 ++-- include/linux/qcom-geni-se.h | 2 -- 2 files changed, 6 insertions(+), 12 deletions(-) diff

[PATCH 0/5] mips: bmips: populate bcm63xx device trees

2021-03-14 Thread Álvaro Fernández Rojas
These patches improve bmips bcm63xx device tree nodes. Álvaro Fernández Rojas (5): mips: bmips: fix syscon-reboot nodes mips: bmips: bcm6328: populate device tree nodes mips: bmips: bcm6358: populate device tree nodes mips: bmips: bcm6362: populate device tree nodes mips: bmips: bcm6368:

[PATCH 1/5] mips: bmips: fix syscon-reboot nodes

2021-03-14 Thread Álvaro Fernández Rojas
Commit a23c4134955e added the clock controller nodes, incorrectly changing the syscon-reboot nodes addresses. Fixes: a23c4134955e ("MIPS: BMIPS: add clock controller nodes") Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm3368.dtsi | 2 +- arch/mips/boot/dts/brcm/bcm63268.d

[PATCH v3 09/15] spi: spi-qcom-qspi: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-qcom-qspi.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-qcom-qspi.c b/

[PATCH 3/5] mips: bmips: bcm6358: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add watchdog. - Add SPI controller. - Add USBH PHY. - Add cfi-flash. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6358.dtsi | 83 1 file chang

[PATCH 4/5] mips: bmips: bcm6362: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add SPI controller. - Add HS SPI controller. - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm636

[PATCH 2/5] mips: bmips: bcm6328: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add HS SPI controller. - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6328.dtsi | 119 +

[PATCH v3 11/15] drm/msm: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 11 +++-- drivers/gpu/dr

[PATCH v3 12/15] drm/lima: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/lima/lima_devfreq.c | 47 +++-- drivers/gpu/drm/lima/lima_devfreq.h | 3 -- 2 files changed, 11 insertions(+), 39 deletions(-)

[PATCH v3 14/15] media: venus: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/media/platform/qcom/venus/core.h | 1 - .../media/platform/qcom/venus/pm_helpers.c| 35 +-- 2 files changed, 8 insertions(+), 28 delet

[PATCH v3 15/15] memory: samsung: exynos5422-dmc: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Osipenko --- drivers/memory/samsung/exynos5422-dmc.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mem

[PATCH 5/5] mips: bmips: bcm6368: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add watchdog controller. - Add SPI controller. - Add NAND controller. - Add USBH PHY controller. - Add RNG controller. - Add cfi-flash controller. Signed-off-by: Álvaro Fernández Rojas --- arch/m

[PATCH v3 10/15] mmc: sdhci-msm: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-msm.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sd

[PATCH v3 13/15] drm/panfrost: Convert to use resource-managed OPP API

2021-03-14 Thread Dmitry Osipenko
From: Yangtao Li Use resource-managed OPP API to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Steven Price Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 37 + drivers/gpu/drm/panfrost/panfrost_devfreq.h | 2 -- 2 files changed,

[PATCH v2 1/6] mips: bmips: fix syscon-reboot nodes

2021-03-14 Thread Álvaro Fernández Rojas
Commit a23c4134955e added the clock controller nodes, incorrectly changing the syscon-reboot nodes addresses. Fixes: a23c4134955e ("MIPS: BMIPS: add clock controller nodes") Signed-off-by: Álvaro Fernández Rojas --- v2: no changes arch/mips/boot/dts/brcm/bcm3368.dtsi | 2 +- arch/mips/boot/dt

[PATCH v2 0/6] mips: bmips: fix and improve reboot nodes

2021-03-14 Thread Álvaro Fernández Rojas
These patches improve bmips bcm63xx device tree nodes. v2: add missing BCM63268 patch. Álvaro Fernández Rojas (6): mips: bmips: fix syscon-reboot nodes mips: bmips: bcm6328: populate device tree nodes mips: bmips: bcm6358: populate device tree nodes mips: bmips: bcm6362: populate device t

[PATCH v2 3/6] mips: bmips: bcm6358: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add watchdog. - Add SPI controller. - Add USBH PHY. - Add cfi-flash. Signed-off-by: Álvaro Fernández Rojas --- v2: no changes arch/mips/boot/dts/brcm/bcm6358.dtsi | 83 -

[PATCH v2 2/6] mips: bmips: bcm6328: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add HS SPI controller. - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- v2: no changes arch/mips/boot/dts/brcm/bcm6328.dts

[PATCH v2 5/6] mips: bmips: bcm6368: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add watchdog controller. - Add SPI controller. - Add NAND controller. - Add USBH PHY controller. - Add RNG controller. - Add cfi-flash controller. Signed-off-by: Álvaro Fernández Rojas --- v2: no

[PATCH v2 4/6] mips: bmips: bcm6362: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add SPI controller. - Add HS SPI controller. - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- v2: no changes arch/mips/boo

[PATCH v2 6/6] mips: bmips: bcm63268: populate device tree nodes

2021-03-14 Thread Álvaro Fernández Rojas
- Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add HS SPI controller - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- v2: add missing patch arch/mips/boot/dts/brcm/bcm63

<    1   2   3   4   5   6   >