Re: [PATCH 12/13] KVM: x86/mmu: Fast invalidation for TDP MMU

2021-04-01 Thread Ben Gardon
On Wed, Mar 31, 2021 at 3:27 PM Sean Christopherson wrote: > > On Wed, Mar 31, 2021, Ben Gardon wrote: > > Provide a real mechanism for fast invalidation by marking roots as > > invalid so that their reference count will quickly fall to zero > > and they will be torn down. > > > > One negative sid

Re: [PATCH] interconnect: qcom: sm8350: Use the correct ids

2021-04-01 Thread Alex Elder
On 4/1/21 4:43 AM, Georgi Djakov wrote: For creating an array with the members for each NoC, we should be using a local indexes, as otherwise unnecessary large arrays would be created. Using an incorrect indexes will also result error for the consumers when they try to find a valid path between t

RE: [PATCH v14 13/13] iommu/smmuv3: Accept configs with more than one context descriptor

2021-04-01 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Auger Eric [mailto:eric.au...@redhat.com] > Sent: 01 April 2021 12:49 > To: yuzenghui > Cc: eric.auger@gmail.com; io...@lists.linux-foundation.org; > linux-kernel@vger.kernel.org; k...@vger.kernel.org; > kvm...@lists.cs.columbia.edu; w...@kernel.org; m...

Re: [PATCH 08/49] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_cmd.c

2021-04-01 Thread Dan Carpenter
On Thu, Apr 01, 2021 at 03:55:37PM +0200, Fabio Aiuto wrote: > > Hi Dan, > > I have the following: > > if (rtw_createbss_cmd(adapter) != _SUCCESS) > - RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("Error > =>rtw_createbss_cmd status FAIL\n")); > + ; > > will I leave > >

Re: [PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-04-01 Thread Eric W. Biederman
Kees Cook writes: > On Wed, Mar 31, 2021 at 11:36:28PM -0500, Eric W. Biederman wrote: >> Josh Hunt writes: >> >> > Currently only root can write files under /proc/pressure. Relax this to >> > allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be >> > able to write to these file

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

2021-04-01 Thread Richard Guy Briggs
On 2021-04-01 09:57, Paul Moore wrote: > On Thu, Apr 1, 2021 at 9:48 AM Mauro Carvalho Chehab > wrote: > > Em Thu, 18 Mar 2021 15:19:10 -0400 > > Richard Guy Briggs escreveu: > > > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > > > was added 2005-02-01 by commit 1e2d

Re: [PATCH 4/6] KVM: x86: Introduce KVM_GET_SREGS2 / KVM_SET_SREGS2

2021-04-01 Thread Paolo Bonzini
Just a quick review on the API: On 01/04/21 16:18, Maxim Levitsky wrote: +struct kvm_sregs2 { + /* out (KVM_GET_SREGS2) / in (KVM_SET_SREGS2) */ + struct kvm_segment cs, ds, es, fs, gs, ss; + struct kvm_segment tr, ldt; + struct kvm_dtable gdt, idt; + __u64 cr0, cr2

[RFC v2 1/2] cpuidle: Extract IPI based and timer based wakeup latency from idle states

2021-04-01 Thread Pratik Rajesh Sampat
Introduce a mechanism to fire directed IPIs from a specified source CPU to a specified target CPU and measure the difference in time incurred on wakeup. Also, introduce a mechanism to queue a HR timer on a specified CPU and subsequently measure the time taken to wakeup the CPU. Finally define a s

[PATCH v10 0/4] Add support for secure regions in NAND

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

Re: [PATCH] ext4: Delete redundant uptodate check for buffer

2021-04-01 Thread Ritesh Harjani
On 21/04/01 03:03PM, Shaokun Zhang wrote: > From: Yang Guo > > The buffer uptodate state has been checked in function set_buffer_uptodate, > there is no need use buffer_uptodate before calling set_buffer_uptodate and > delete it. > > Cc: "Theodore Ts'o" > Cc: Andreas Dilger > Signed-off-by: Yang

[PATCH 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-04-01 Thread Maxim Levitsky
Currently to support Intel->AMD migration, if CPU vendor is GenuineIntel, we emulate the full 64 value for MSR_IA32_SYSENTER_{EIP|ESP} msrs, and we also emulate the sysenter/sysexit instruction in long mode. (Emulator does still refuse to emulate sysenter in 64 bit mode, on the ground that the cod

Re: [PATCH] Document that PF_KTHREAD _is_ ABI

2021-04-01 Thread Stefan Metzmacher
Am 31.03.21 um 21:23 schrieb Alexey Dobriyan: > On Mon, Mar 22, 2021 at 07:53:10AM +, Christoph Hellwig wrote: >> On Sat, Mar 20, 2021 at 10:23:12AM -0700, Andy Lutomirski wrote: https://github.com/systemd/systemd/blob/main/src/basic/process-util.c#L354 src/basic/process-util.c:is_k

Re: linux-next: Tree for Mar 31 (drivers/phy/marvell/phy-mvebu-cp110-utmi.o)

2021-04-01 Thread Randy Dunlap
On 4/1/21 9:29 AM, Randy Dunlap wrote: > On 4/1/21 5:33 AM, Kostya Porotchkin wrote: >> Hi, Randy, >> >>> -Original Message- >>> From: Randy Dunlap >>> Sent: Wednesday, March 31, 2021 18:28 >>> To: Stephen Rothwell ; Linux Next Mailing List >>> >> n...@vger.kernel.org> >>> Cc: Linux Kerne

Re: [PATCH 1/4] KVM: x86: pending exceptions must not be blocked by an injected event

2021-04-01 Thread Maxim Levitsky
On Thu, 2021-04-01 at 19:05 +0200, Paolo Bonzini wrote: > On 01/04/21 16:38, Maxim Levitsky wrote: > > Injected interrupts/nmi should not block a pending exception, > > but rather be either lost if nested hypervisor doesn't > > intercept the pending exception (as in stock x86), or be delivered > >

Re: [PATCH] net: smc: Remove repeated struct declaration

2021-04-01 Thread Karsten Graul
On 01/04/2021 10:40, Wan Jiabing wrote: > struct smc_clc_msg_local is declared twice. One is declared at > 301st line. The blew one is not needed. Remove the duplicate. > > Signed-off-by: Wan Jiabing > --- > net/smc/smc_core.h | 1 - > 1 file changed, 1 deletion(-) > Acked-by: Karsten Graul

[PATCH v9 0/4] Add support for secure regions in NAND

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

Re: [PATCH v2 04/15] ACPI: table: replace __attribute__((packed)) by __packed

2021-04-01 Thread Rafael J. Wysocki
On Thu, Apr 1, 2021 at 11:00 AM David Laight wrote: > > From: Bjorn Helgaas > > Sent: 31 March 2021 18:22 > > > > On Wed, Mar 31, 2021 at 11:55:08PM +0800, Zhang Rui wrote: > > > ... > > > > > From e18c942855e2f51e814d057fff4dd951cd0d0907 Mon Sep 17 00:00:00 2001 > > > From: Zhang Rui > > > Date:

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-01 Thread Raoul Strackx
On 4/1/21 6:11 PM, Dave Hansen wrote: > On 4/1/21 7:56 AM, Raoul Strackx wrote: >> >> SOLUTION OF THIS PATCH >> This patch adds a new ioctl to enable userspace to execute EEXTEND leaf >> functions per 256 bytes of enclave memory. This enables enclaves to be >> build as specified by enclave pro

Re: [Linux-cifsd-devel] [PATCH] cifsd: use kfree to free memory allocated by kzalloc

2021-04-01 Thread Namjae Jeon
2021-04-01 21:50 GMT+09:00, Ralph Boehme : > Am 4/1/21 um 2:43 PM schrieb Namjae Jeon: >> 2021-04-01 20:50 GMT+09:00, Dan Carpenter : >>> On Thu, Apr 01, 2021 at 04:39:33PM +0500, Muhammad Usama Anjum wrote: kfree should be used to free memory allocated by kzalloc to avoid any overhead an

[PATCH -next] drm/nouveau/gem: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- drivers/gpu/drm/nouveau/nouveau_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index c88cbb85f101..492e6794c5e6 100644 --- a/drivers/gpu/drm/nouveau/nouveau_

[PATCH v2 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-04-01 Thread Maxim Levitsky
Currently to support Intel->AMD migration, if CPU vendor is GenuineIntel, we emulate the full 64 value for MSR_IA32_SYSENTER_{EIP|ESP} msrs, and we also emulate the sysenter/sysexit instruction in long mode. (Emulator does still refuse to emulate sysenter in 64 bit mode, on the ground that the cod

[PATCH net-next] net: phy: broadcom: Add statistics for all Gigabit PHYs

2021-04-01 Thread Florian Fainelli
All Gigabit PHYs use the same register layout as far as fetching statistics goes. Fast Ethernet PHYs do not all support statistics, and the BCM54616S would require some switching between the coper and fiber modes to fetch the appropriate statistics which is not supported yet. Signed-off-by: Floria

Re: [PATCH -next] KVM: selftests: remove redundant semi-colon

2021-04-01 Thread Paolo Bonzini
On 01/04/21 16:25, Yang Yingliang wrote: Signed-off-by: Yang Yingliang --- tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c b/tools/testing/selftests/kvm/x86_64/xen_sh

allmodconfig not working with dummy-tools

2021-04-01 Thread Michal Suchánek
Hello, running allmodconfig with dumy-tools I get: which: no elfedit in (./scripts/dummy-tools) scripts/dummy-tools/gcc: unknown assembler invoked scripts/Kconfig.include:50: Sorry, this assembler is not supported. scripts/kconfig/Makefile:77: recipe for target 'allmodconfig' failed make[1]: ***

[PATCH v2 1/2] KVM: x86: add guest_cpuid_is_intel

2021-04-01 Thread Maxim Levitsky
This is similar to existing 'guest_cpuid_is_amd_or_hygon' Signed-off-by: Maxim Levitsky --- arch/x86/kvm/cpuid.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h index 2a0c5064497f..ded84d244f19 100644 --- a/arch/x86/kvm/cpuid.h +++ b/arch/x

Re: [RFC PATCH v1 1/4] arm64: Implement infrastructure for stack trace reliability checks

2021-04-01 Thread Madhavan T. Venkataraman
On 4/1/21 10:27 AM, Mark Brown wrote: > On Tue, Mar 30, 2021 at 02:09:52PM -0500, madve...@linux.microsoft.com wrote: >> From: "Madhavan T. Venkataraman" >> >> Implement a check_reliability() function that will contain checks for the >> presence of various features and conditions that can rende

[PATCH v8 11/13] media: hantro: Introduce G2/HEVC decoder

2021-04-01 Thread Benjamin Gaignard
Implement all the logic to get G2 hardware decoding HEVC frames. It support up level 5.1 HEVC stream. It doesn't support yet 10 bits formats or scaling feature. Add HANTRO HEVC dedicated control to skip some bits at the beginning of the slice header. That is very specific to this hardware so can't

Re: [PATCH for-next v3 0/2] Introduce rdma_set_min_rnr_timer() and use it in RDS

2021-04-01 Thread Jason Gunthorpe
On Wed, Mar 31, 2021 at 07:54:17PM +, Santosh Shilimkar wrote: > [...] > > Thanks Haakon. Patchset looks fine by me. > Acked-by: Santosh Shilimkar Jakub/Dave are you OK if I take this RDS patch rdma to rdma's tree? Thanks, Jason

[PATCH] drivers core: don't do anything in device_del() when device_add() fail

2021-04-01 Thread Yufen Yu
Recently, our syzbot test reported NULL pointer dereference in device_del() by injecting memory allocation fail in device_add(). For now, callers of device_add(), such as add_disk(), may ignore device_add()'s fail and go on working. In unregister path, it will call device_del() from del_gendisk().

[PATCH 0/3] Adjust contacts for Dell drivers

2021-04-01 Thread Mario Limonciello
The Dell drivers I'm involved with all have me as an author and/or maintainer. In the future these will be maintained as a team effort. Adjust the contact addresses accordingly. Mario Limonciello (3): MAINTAINERS: Adjust Dell drivers to email alias MAINTAINERS: Add missing section for alienwa

[PATCH v2 0/2] KVM: x86: nSVM: fixes for SYSENTER emulation

2021-04-01 Thread Maxim Levitsky
This is a result of a deep rabbit hole dive in regard to why currently the nested migration of 32 bit guests is totally broken on AMD. It turns out that due to slight differences between the original AMD64 implementation and the Intel's remake, SYSENTER instruction behaves a bit differently on Int

Re: [PATCH 31/32] Documentation: update sysfs-platform_profile.rst reference

2021-04-01 Thread Hans de Goede
Hi, On 4/1/21 2:17 PM, Mauro Carvalho Chehab wrote: > The file name: Documentation/ABI/testing/sysfs-platform_profile.rst > should be, instead: Documentation/userspace-api/sysfs-platform_profile.rst. > > Update its cross-reference accordingly. > > Fixes: a2ff95e018f1 ("ACPI: platform: Add platfo

Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-04-01 Thread Jason Gunthorpe
On Thu, Apr 01, 2021 at 02:08:17PM +, Liu, Yi L wrote: > DMA page faults are delivered to root-complex via page request message and > it is per-device according to PCIe spec. Page request handling flow is: > > 1) iommu driver receives a page request from device > 2) iommu driver parses the pa

[PATCH 2/2] staging: media: omap4iss: align arguments with open parenthesis

2021-04-01 Thread Beatriz Martins de Carvalho
Cleans up checks of "Alignment should match open parenthesis" in iss.c:96. Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/media/omap4iss/iss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4is

Re: [PATCH 08/13] KVM: x86/mmu: Protect the tdp_mmu_roots list with RCU

2021-04-01 Thread Ben Gardon
On Thu, Apr 1, 2021 at 2:37 AM Paolo Bonzini wrote: > > On 31/03/21 23:08, Ben Gardon wrote: > > Protect the contents of the TDP MMU roots list with RCU in preparation > > for a future patch which will allow the iterator macro to be used under > > the MMU lock in read mode. > > > > Signed-off-by:

Re: [PATCH V2 3/5] DCC: Added the sysfs entries for DCC(Data Capture and Compare) driver

2021-04-01 Thread schowdhu
On 2021-03-30 01:39, Stephen Boyd wrote: Quoting Souradeep Chowdhury (2021-03-25 01:02:34) The DCC is a DMA engine designed to store register values either in case of a system crash or in case of software triggers manually done by the user.Using DCC hardware and the sysfs interface of the driver

Re: [PATCH v2] soundwire: qcom: wait for fifo space to be available before read/write

2021-04-01 Thread Srinivas Kandagatla
On 01/04/2021 15:36, Pierre-Louis Bossart wrote: On 4/1/21 4:00 AM, Srinivas Kandagatla wrote: If we write registers very fast we can endup in a situation where some of the writes will be dropped without any notice. So wait for the fifo space to be available before reading/writing the soun

Re: [PATCH v2 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-04-01 Thread Paolo Bonzini
On 01/04/21 15:03, Vitaly Kuznetsov wrote: + svm->sysenter_eip_hi = guest_cpuid_is_intel(vcpu) ? (data >> 32) : 0; (Personal taste) I'd suggest we keep the whole 'sysenter_eip'/'sysenter_esp' even if we only use the upper 32 bits of it. That would reduce the code churn a little b

Re: [RFC PATCH v1 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-01 Thread Madhavan T. Venkataraman
On 4/1/21 9:27 AM, Mark Brown wrote: > On Tue, Mar 30, 2021 at 02:09:54PM -0500, madve...@linux.microsoft.com wrote: > >> + * FTRACE trampolines. >> + */ >> +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS >> +{ (unsigned long) &ftrace_graph_call, 0 }, >> +#ifdef CONFIG_FUNCTION_GRAPH_TRACER

[RFC v2 0/2] CPU-Idle latency selftest framework

2021-04-01 Thread Pratik Rajesh Sampat
Changelog RFC v1-->v2 The timer based test produces run to run variance on some intel based systems that sport a mechansim of "C-state pre-wake" which can pre-wake a CPU from an idle state when timers are armed. Hence invoking the timer tests is now parameterized for systems and architectures that

Re: [PATCH v2 2/6] perf test: Handle metric reuse in pmu-events parsing test

2021-04-01 Thread Jiri Olsa
On Thu, Mar 25, 2021 at 06:33:14PM +0800, John Garry wrote: SNIP > +struct metric { > + struct list_head list; > + struct metric_ref metric_ref; > +}; > + > +static int resolve_metric_simple(struct expr_parse_ctx *pctx, > + struct list_head *compound_list, > +

Re: [PATCH v3 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-01 Thread Syed Nayyar Waris
On Wed, Mar 31, 2021 at 8:56 PM Srinivas Neeli wrote: > > Hi, > > > -Original Message- > > From: Bartosz Golaszewski > > Sent: Friday, March 26, 2021 10:58 PM > > To: Michal Simek > > Cc: Syed Nayyar Waris ; Srinivas Neeli > > ; Andy Shevchenko > > ; William Breathitt Gray > > ; Arnd Ber

Re: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-04-01 Thread Jon Hunter
On 31/03/2021 12:41, Joakim Zhang wrote: ... >> In answer to your question, resuming from suspend does work on this board >> without your change. We have been testing suspend/resume now on this board >> since Linux v5.8 and so we have the ability to bisect such regressions. So >> it is >> clea

Re: [PATCH RFT 2/2] i2c: tegra-bpmp: make some functions void

2021-04-01 Thread Thierry Reding
On Wed, Mar 31, 2021 at 09:51:41AM +0200, Wolfram Sang wrote: > They return 0 always, so save some lines and code. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-tegra-bpmp.c | 20 > 1 file changed, 4 insertions(+), 16 deletions(-) Tested-by: Thierry Reding

Re: [PATCH 05/12] ARM: s3c: mini2440: Constify the software node

2021-04-01 Thread Krzysztof Kozlowski
On 29/03/2021 14:32, Heikki Krogerus wrote: > On Mon, Mar 29, 2021 at 12:58:41PM +0200, Krzysztof Kozlowski wrote: >> On 29/03/2021 12:50, Heikki Krogerus wrote: >>> Additional device properties are always just a part of a >>> software fwnode. If the device properties are constant, the >>> software

Re: [PATCH V2 2/3] scsi: ufs: add a vops to configure VCC voltage level

2021-04-01 Thread nitirawa
On 2021-03-31 23:30, Asutosh Das (asd) wrote: On 3/21/2021 2:57 PM, Nitin Rawat wrote: Add a vops to configure VCC voltage VCC voltage level for platform supporting both ufs2.x and ufs 3.x devices. Suggested-by: Stanley Chu Suggested-by: Asutosh Das Suggested-by: Bjorn Andersson Signed-off-b

[PATCH v2 0/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
Currently, suspend on x86_64 fails when FIPS mode is enabled because it uses md5 to generate a digest of the e820 region. MD5 is not FIPS compliant so an error is reported and the suspend fails. MD5 is used only to create a digest to ensure integrity of the region, no actual encryption is done. Th

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-01 Thread Jens Axboe
On 4/1/21 9:45 AM, Christian Brauner wrote: > On Thu, Apr 01, 2021 at 02:09:20AM -0700, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit:d19cc4bf Merge tag 'trace-v5.12-rc5' of git://git.kernel.o.. >> git tree: upstream >> console output: https://syzkal

Re: [PATCH v6 3/5] drm/bridge: anx7625: add MIPI DPI input feature support

2021-04-01 Thread Robert Foss
Hey Xin, This patch looks good to me, feel free to add my r-b. Reviewed-by: Robert Foss On Fri, 19 Mar 2021 at 07:34, Xin Ji wrote: > > Add MIPI rx DPI input support. > > Reported-by: kernel test robot > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 245 +

Re: [PATCH v1] ovl: Fix leaked dentry

2021-04-01 Thread Vivek Goyal
On Mon, Mar 29, 2021 at 06:49:07PM +0200, Mickaël Salaün wrote: > From: Mickaël Salaün > > Since commit 6815f479ca90 ("ovl: use only uppermetacopy state in > ovl_lookup()"), overlayfs doesn't put temporary dentry when there is a > metacopy error, which leads to dentry leaks when shutting down the

Re: [PATCH 12/32] MAINTAINERS: update lego,ev3-battery.yaml reference

2021-04-01 Thread David Lechner
On 4/1/21 7:17 AM, Mauro Carvalho Chehab wrote: Changeset 3004e581d92a ("dt-bindings: power: supply: lego-ev3-battery: Convert to DT schema format") renamed: Documentation/devicetree/bindings/power/supply/lego_ev3_battery.txt to: Documentation/devicetree/bindings/power/supply/lego,ev3-battery.ya

[PATCH v2 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- arch/x86/power/hibern

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

2021-04-01 Thread Manivannan Sadhasivam
On Thu, Apr 01, 2021 at 05:54:21PM +0200, Boris Brezillon wrote: > On Thu, 1 Apr 2021 20:49:54 +0530 > Manivannan Sadhasivam wrote: > > > @@ -565,6 +608,11 @@ static int nand_block_isreserved(struct mtd_info *mtd, > > loff_t ofs) > > > > if (!chip->bbt) > > return 0; > > + > >

Re: [PATCH 4/4] dt-bindings: spi: Convert cadence-quadspi.txt to cadence-quadspi.yaml

2021-04-01 Thread Mark Brown
On Thu, Apr 01, 2021 at 01:09:32AM +0530, Pratyush Yadav wrote: > I did take a look by running git log on > Documentation/devicetree/bindings/spi/ and there is no single style > being used. Using "dt-bindings: spi:" is a popular choice. Some other > commits just use "spi:". And then some use "s

Re: [PATCH v2] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 03:11:08PM +0200, Martin Kepplinger wrote: > commit 9de47c ("usb: dwc3: gadget: Prevent EP queuing while stopping > transfers") results in the below error every time I connect the type-c > connector to the dwc3, configured with serial and ethernet gadgets. > I also apply

Re: [PATCH 0/2] staging: media: omap4iss: Patchsets cleans up in iss.c

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 04:07:37PM +0100, Beatriz Martins de Carvalho wrote: > Clean up checks of "Alignment should match open parenthesis" and > "CHECK: Lines should not end with a '('" in iss.c > > Beatriz Martins de Carvalho (2): > staging: media: omap4iss: Ending line with argument > stag

Re: [PATCH V3 4/5] dt-bindings: regulator: Convert RPMh regulator bindings to YAML

2021-04-01 Thread Rob Herring
On Wed, 31 Mar 2021 17:35:38 +0530, satya priya wrote: > Convert RPMh regulator bindings from .txt to .yaml format. > > Signed-off-by: satya priya > --- > Changes in V2: > - As per Mark's comment moved this patch to the end of series. > - As per Rob's comments, added flash and rgb bindings, dr

Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-04-01 Thread Jason Gunthorpe
On Thu, Apr 01, 2021 at 10:23:55AM -0700, Jacob Pan wrote: > Hi Jason, > > On Wed, 31 Mar 2021 21:37:05 -0300, Jason Gunthorpe wrote: > > > On Wed, Mar 31, 2021 at 04:46:21PM -0700, Jacob Pan wrote: > > > Hi Jason, > > > > > > On Wed, 31 Mar 2021 09:38:01 -0300, Jason Gunthorpe > > > wrote: >

[PATCH 0/2] staging: media: omap4iss: Patchsets cleans up in iss.c

2021-04-01 Thread Beatriz Martins de Carvalho
Clean up checks of "Alignment should match open parenthesis" and "CHECK: Lines should not end with a '('" in iss.c Beatriz Martins de Carvalho (2): staging: media: omap4iss: Ending line with argument staging: media: omap4iss: align arguments with open parenthesis drivers/staging/media/omap4

[PATCH 1/2] staging: media: omap4iss: Ending line with argument

2021-04-01 Thread Beatriz Martins de Carvalho
Remove checkpatch check "CHECK: Lines should not end with a '('" with argument present in next line and reorganize characters so the lines are under 100 columns Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/media/omap4iss/iss.c | 46 +--- 1 file changed,

[tip: x86/core] x86: Add insn_decode_kernel()

2021-04-01 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/core branch of tip: Commit-ID: 52fa82c21f64e900a72437269a5cc9e0034b424e Gitweb: https://git.kernel.org/tip/52fa82c21f64e900a72437269a5cc9e0034b424e Author:Peter Zijlstra AuthorDate:Fri, 26 Mar 2021 16:12:00 +01:00 Committer

[PATCH v2 1/8] cxl/mem: Move some definitions to mem.h

2021-04-01 Thread Dan Williams
In preparation for sharing cxl.h with other generic CXL consumers, move / consolidate some of the memory device specifics to mem.h. Reviewed-by: Ben Widawsky Signed-off-by: Dan Williams --- drivers/cxl/cxl.h | 57 drivers/cxl/mem.c | 25 +---

Re: [PATCH 0/2] KVM: x86: nSVM: fixes for SYSENTER emulation

2021-04-01 Thread Maxim Levitsky
On Thu, 2021-04-01 at 14:16 +0300, Maxim Levitsky wrote: > This is a result of a deep rabbit hole dive in regard to why > currently the nested migration of 32 bit guests > is totally broken on AMD. Please ignore this patch series, I didn't update the patch version. Best regards, Maxim Lev

Re: Fix hibernation in FIPS mode?

2021-04-01 Thread Simo Sorce
On Thu, 2021-04-01 at 18:31 +0200, Rafael J. Wysocki wrote: > On Thu, Apr 1, 2021 at 6:22 PM Simo Sorce wrote: > > On Thu, 2021-04-01 at 18:02 +0200, Rafael J. Wysocki wrote: > > > On Thu, Apr 1, 2021 at 3:54 PM Ard Biesheuvel wrote: > > > > On Thu, 1 Apr 2021 at 15:38, Rafael J. Wysocki > > >

Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-04-01 Thread Sumit Garg
On Thu, 1 Apr 2021 at 19:29, Richard Weinberger wrote: > > Sumit, > > - Ursprüngliche Mail - > > Von: "Sumit Garg" > > In this case why would one prefer to use CAAM when you have standards > > compliant TPM-Chip which additionally offers sealing to specific PCR > > (integrity measurement)

[PATCH v2 6/8] cxl/Kconfig: Default drivers to CONFIG_CXL_BUS

2021-04-01 Thread Dan Williams
CONFIG_CXL_BUS is default 'n' as expected for new functionality. When that is enabled do not make the end user hunt for all the expected sub-options to enable. For example CONFIG_CXL_BUS without CONFIG_CXL_MEM is an odd/expert configuration, so is CONFIG_CXL_MEM without CONFIG_CXL_ACPI (on ACPI cap

[PATCH 24/30] media: atmel: atmel-isc: move the formats list into product specific code

2021-04-01 Thread Eugen Hristev
The list of input and output formats has to be product specific. Move this list into the product specific code. Have pointers to these arrays inside the device struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 167 ++ drivers/media/platform/

RE: [PATCH v2] IB/mlx5: Reduce max order of memory allocated for xlt update

2021-04-01 Thread Praveen Kannoju
Hi Jason, We will go ahead with just adding the "__GFP_NORETRY " flag to reduce the time it takes to fail the higher order memory allocations in case higher order pages are not available. Will send out the corresponding patch. Thank you very much for your inputs. - Praveen Kumar Kannoju. ---

Re: [PATCH] drm/ttm: add __user annotation in radeon_ttm_vram_read

2021-04-01 Thread Christian König
Am 24.10.20 um 02:47 schrieb Rasmus Villemoes: Keep sparse happy by preserving the __user annotation when casting. Reported-by: kernel test robot Signed-off-by: Rasmus Villemoes Reviewed-by: Christian König Going over old patches and stumbled over that once. Alex did you missed to pick it

Re: [Linux-cifsd-devel] [PATCH] cifsd: use kfree to free memory allocated by kzalloc

2021-04-01 Thread Ralph Boehme
Am 4/1/21 um 2:59 PM schrieb Namjae Jeon: 2021-04-01 21:50 GMT+09:00, Ralph Boehme : fwiw, while at it what about renaming everything that still references "cifs" to "smb" ? This is not the 90's... :) It is also used with the name "ksmbd". So function and variable prefix are used with ksmbd.

Re: [PATCH 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Rafael J. Wysocki
On Thu, Apr 1, 2021 at 3:59 PM Ard Biesheuvel wrote: > > On Thu, 1 Apr 2021 at 15:34, Rafael J. Wysocki wrote: > > > > On Thu, Apr 1, 2021 at 2:25 PM Chris von Recklinghausen > > wrote: > > > > > > Suspend fails on a system in fips mode because md5 is used for the e820 > > > integrity check and

[PATCH] s390/pci: move ioremap/ioremap_prot/ioremap_wc/ioremap_wt/iounmap to arch/s390/mm/ioremap.c

2021-04-01 Thread Bixuan Cui
The ioremap/iounmap is implemented in arch/s390/pci/pci.c. While CONFIG_PCI is disabled,the compilation error is reported: s390x-linux-gnu-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map': cistpl.c:(.text+0x32a): undefined reference to `ioremap' s390x-linux-gnu-ld: cistpl.c:(.text

Re: [PATCH v2 05/20] drm/dp: Add backpointer to drm_device in drm_dp_aux

2021-04-01 Thread Jani Nikula
On Fri, 26 Mar 2021, Lyude Paul wrote: > * The @dev field should be set to a pointer to the device that implements > the > - * AUX channel. > + * AUX channel. As well, the @drm_dev field should be set to the &drm_device > + * that will be using this AUX channel as early as possible. For many >

Re: [PATCH] net/rxrpc: Fix a use after free in rxrpc_input_packet

2021-04-01 Thread David Howells
Lv Yunlong wrote: > In the case RXRPC_PACKET_TYPE_DATA of rxrpc_input_packet, if > skb_unshare(skb,..) failed, it will free the skb and return NULL. > But if skb_unshare() return NULL, the freed skb will be used by > rxrpc_eaten_skb(skb,..). That's not precisely the case: void rxrpc_eat

Re: [PATCH] ARM: OMAP1: ams-delta: remove unused function ams_delta_camera_power

2021-04-01 Thread Nathan Chancellor
On Thu, Apr 01, 2021 at 06:04:34PM +0200, Maciej Falkowski wrote: > The ams_delta_camera_power() function is unused as reports > Clang compilation with omap1_defconfig on linux-next: > > arch/arm/mach-omap1/board-ams-delta.c:462:12: warning: unused function > 'ams_delta_camera_power' [-Wunused-fu

[PATCH v2 8/8] cxl/acpi: Add module parameters to stand in for ACPI tables

2021-04-01 Thread Dan Williams
[debug / to-be-replaced / not-for-upstream] Given ACPICA support is needed before drivers can integrate ACPI functionality add some module parameters as proxies. --- drivers/cxl/acpi.c | 81 +++- 1 file changed, 79 insertions(+), 2 deletions(-) d

[PATCH -next] mm/vmalloc: Fix non-conforming function headers

2021-04-01 Thread Qiheng Lin
Fix the following W=1 kernel build warning(s): mm/vmalloc.c:425: warning: expecting prototype for vunmap_range_noflush(). Prototype was for vunmap_range() instead Signed-off-by: Qiheng Lin --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vm

Re: [PATCH] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 01:55:58PM +0200, Martin Kepplinger wrote: > This reverts commit 9de47c3737e0c0207beb03615b320cabe495. > You do not put a reason here, so I can not take this :( Please fix up and resend. thanks, greg k-h

Re: [PATCH v3 0/2] drm/mediatek: Don't support hdmi connector creation

2021-04-01 Thread Chun-Kuang Hu
Hi, Dafna: Dafna Hirschfeld 於 2021年3月30日 週二 下午7:09寫道: > > commit f01195148967 ("drm/mediatek: mtk_dpi: Create connector for bridges") > broke the display support for elm device since mtk_dpi calls > drm_bridge_attach with the flag DRM_BRIDGE_ATTACH_NO_CONNECTOR > while mtk_hdmi does not yet suppo

Re: [External] Re: [PATCH v2] writeback: fix obtain a reference to a freeing memcg css

2021-04-01 Thread Muchun Song
On Thu, Apr 1, 2021 at 10:37 PM Michal Hocko wrote: > > On Thu 01-04-21 21:59:13, Muchun Song wrote: > > On Thu, Apr 1, 2021 at 6:26 PM Michal Hocko wrote: > [...] > > > Even if the css ref count is not really necessary it shouldn't cause any > > > harm and it makes the code easier to understand.

Re: [PATCH -next 2/3] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-01 Thread Anshuman Khandual
On 4/1/21 7:53 AM, Shixin Liu wrote: > The functions {pmd/pud}_set_huge and {pmd/pud}_clear_huge is not depend on > THP. s/is not depend/are not dependent/ > But now if we want to test these functions, we have to enable THP. So move > {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE. P

Re: [PATCH v5 0/5] KVM: x86: dump_vmcs: don't assume GUEST_IA32_EFER, show MSR autoloads/autosaves

2021-04-01 Thread Paolo Bonzini
On 18/03/21 13:08, David Edmondson wrote: v2: - Don't use vcpu->arch.efer when GUEST_IA32_EFER is not available (Paolo). - Dump the MSR autoload/autosave lists (Paolo). v3: - Rebase to master. - Check only the load controls (Sean). - Always show the PTPRs from the VMCS if they exist (Jim/Sean).

[PATCH v1 1/1] driver core: Cast to (void *) with __force for __percpu pointer

2021-04-01 Thread Andy Shevchenko
Sparse is not happy: drivers/base/devres.c:1230:9: warning: cast removes address space '__percpu' of expression Use __force attribute to make it happy. Signed-off-by: Andy Shevchenko --- drivers/base/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/d

[PATCH -next] freezer: Remove unused inline function try_to_freeze_nowarn()

2021-04-01 Thread YueHaibing
There is no caller in tree, so can remove it. Signed-off-by: YueHaibing --- include/linux/freezer.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 27828145ca09..0621c5f86c39 100644 --- a/include/linux/freezer.h +++ b/include/linux/freez

[PATCH v2 2/8] cxl/mem: Introduce 'struct cxl_regs' for "composable" CXL devices

2021-04-01 Thread Dan Williams
CXL MMIO register blocks are organized by device type and capabilities. There are Component registers, Device registers (yes, an ambiguous name), and Memory Device registers (a specific extension of Device registers). It is possible for a given device instance (endpoint or port) to implement regis

[PATCH -next] lan743x: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- drivers/net/ethernet/microchip/lan743x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index 1c3e204d727c..e7ab5f3f73fd 100644 --- a/drivers/

[PATCH -next] libbpf: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- tools/lib/bpf/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c index 46b16cbdcda3..4e08bc07e635 100644 --- a/tools/lib/bpf/linker.c +++ b/tools/lib/bpf/linker.c @@ -1895,7 +1895,7 @@ stat

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

2021-04-01 Thread Boris Brezillon
On Thu, 1 Apr 2021 15:48:12 +0530 Manivannan Sadhasivam wrote: > static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) > { > + struct mtd_info *mtd = nand_to_mtd(chip); > + int last_page = ((mtd->erasesize - mtd->writesize) >> > +chip->page_shift) & c

Re: [External] Re: [RFC PATCH 00/15] Use obj_cgroup APIs to charge the LRU pages

2021-04-01 Thread Shakeel Butt
On Thu, Apr 1, 2021 at 9:08 AM Muchun Song wrote: > [...] > > The zombie issue is a pretty urgent concern that has caused several > > production emergencies now. It needs a fix sooner rather than later. > > Thank you very much for clarifying the problem for me. I do agree > with you. This issue sh

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

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

[PATCH v4 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-04-01 Thread Dan Williams
The percpu_ref to gate whether cxl_memdev_ioctl() is free to use the driver context (@cxlm) to issue I/O is overkill, implemented incorrectly (missing a device reference before accessing the percpu_ref), and the complexities of shutting down a percpu_ref contributed to a bug in the error unwind in

Re: [PATCH v1] RAS/CEC: Memory Corrected Errors consistent event filtering

2021-04-01 Thread Borislav Petkov
On Mon, Mar 29, 2021 at 11:44:05AM +0200, William Roche wrote: > I totally agree with you, and in order to schedule a replacement, MCEs > information (enriched by the notifiers chain) are more meaningful than > only PFN values. Well, if you want to collect errors and analyze patterns in order to d

[PATCH net-next 1/2] net: stmmac: enable 2.5Gbps link speed

2021-04-01 Thread Michael Sit Wei Hong
From: Voon Weifeng Intel mgbe supports 2.5G mode operation when PCS is in 1000BASE-X mode. The 2.5G mode of operation is functionally same as 1000BASE-X mode, except that the clock rate is 2.5 times the original rate. In 2.5G mode, the link will operate as 2500Mbps/250Mbps/25Mbps. Hence, 2.5Gbps

Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-04-01 Thread Jacob Pan
Hi Jason, On Wed, 31 Mar 2021 21:37:05 -0300, Jason Gunthorpe wrote: > On Wed, Mar 31, 2021 at 04:46:21PM -0700, Jacob Pan wrote: > > Hi Jason, > > > > On Wed, 31 Mar 2021 09:38:01 -0300, Jason Gunthorpe > > wrote: > > > > > Get rid of the ioasid set. > > > > > > > > > > Each driver has its o

[PATCH 25/30] media: atmel: atmel-isc: create an adapt pipeline callback for product specific

2021-04-01 Thread Eugen Hristev
Once the pipeline is set in the base code, create a callback that will adapt the ISC pipeline to each product. Create the adapt_pipeline callback that will be used in this fashion. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 drivers/media/platform

[PATCH v4 0/4] cxl/mem: Fix memdev device setup

2021-04-01 Thread Dan Williams
Changes since v3 [1]: - Drop cxl_memdev_activate(). An open-coded pointer assignment is sufficient relative to cdev_device_add() publishing the device (Jason) [1]: http://lore.kernel.org/r/161714738634.2168142.10860201861152789544.st...@dwillia2-desk3.amr.corp.intel.com --- A collection of f

[PATCH 28/30] dt-bindings: media: atmel: add microchip-xisc binding

2021-04-01 Thread Eugen Hristev
Add bindings for the microchip xisc, a driver based on atmel-isc. It shares common code with atmel-isc, but the xisc is the next generation ISC which is present on sama7g5 product. It has an enhanced pipeline, additional modules, formats, and it supports not only parallel sensors, but also serial s

[PATCH v4 1/4] cxl/mem: Use sysfs_emit() for attribute show routines

2021-04-01 Thread Dan Williams
While none the CXL sysfs attributes are threatening to overrun a PAGE_SIZE of output, it is good form to use the recommended helpers. Fixes: b39cb1052a5c ("cxl/mem: Register CXL memX devices") Reported-by: Jason Gunthorpe Reviewed-by: Ben Widawsky Reviewed-by: Jason Gunthorpe Signed-off-by: Dan

[PATCH v2 0/9] KVM: my debug patch queue

2021-04-01 Thread Maxim Levitsky
Hi! I would like to publish two debug features which were needed for other stuff I work on. One is the reworked lx-symbols script which now actually works on at least gdb 9.1 (gdb 9.2 was reported to fail to load the debug symbols from the kernel for some reason, not related to this patch) and up

[PATCH v1 1/1] driver core: Replace printf() specifier and drop unneeded casting

2021-04-01 Thread Andy Shevchenko
The size_t type has very well established specifier, i.e. "%zu", use it directly instead of casting to unsigned long with "%lu". Signed-off-by: Andy Shevchenko --- drivers/base/devres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/devres.c b/drivers/base/d

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