[PATCH v3 0/3] Fixes & a new supplementary feature to SPRD mailbox driver

2021-03-19 Thread Orson Zhai
From: Orson Zhai Fix a real problem for SPRD's mailbox driver in patch 1/3. Add supplementary inbox support for newly added sc9863a in patch 3/3 and change dt bindings yaml accordingly in patch 2/3. Changes Log: V3: - Add Reviewed-by tag from Baolin for driver code. - Change interrupt-names

[PATCH v3 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels

2021-03-19 Thread Orson Zhai
From: Orson Zhai Unisoc mailbox has no way to be enabled/disabled for any single channel. They can only be set to startup or shutdown as a whole device at same time. Add a variable to count references to avoid mailbox FIFO being reset unexpectedly when clients are requesting or freeing

[PATCH v3 2/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox

2021-03-19 Thread Orson Zhai
From: Orson Zhai We add an optional supp-outbox interrupt support to SPRD mailbox driver with newly added sc9863a support and change to configure interrupts with names in device tree files. Signed-off-by: Orson Zhai --- Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml | 13

RE: [PATCH 02/11] i2c: imx-lpi2c: add runtime pm support

2021-03-19 Thread Clark Wang
> -Original Message- > From: Aisheng Dong > Sent: Friday, March 19, 2021 12:40 > To: Clark Wang ; shawn...@kernel.org; > s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx i...@nxp.com>; sumit.sem...@linaro.org; christian.koe...@amd.com; >

[PATCH v3 3/3] mailbox: sprd: Add supplementary inbox support

2021-03-19 Thread Orson Zhai
From: Orson Zhai Some sensors connected to Unisoc mailbox will send data very frequently. This makes channel 0 very busy and the messages from other remote cores not able to be handled as soon as possible. It's a trick (un-documented) from Unisoc ASIC designers to resolve this special

[PATCH v2 09/21] ipmi: kcs_bmc: Split out kcs_bmc_cdev_ipmi

2021-03-19 Thread Andrew Jeffery
Take steps towards defining a coherent API to separate the KCS device drivers from the userspace interface. Decreasing the coupling will improve the separation of concerns and enable the introduction of alternative userspace interfaces. For now, simply split the chardev logic out to a separate

[PATCH v2 11/21] ipmi: kcs_bmc: Split headers into device and client

2021-03-19 Thread Andrew Jeffery
Strengthen the distinction between code that abstracts the implementation of the KCS behaviours (device drivers) and code that exploits KCS behaviours (clients). Neither needs to know about the APIs required by the other, so provide separate headers. Signed-off-by: Andrew Jeffery ---

[PATCH v2 12/21] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc

2021-03-19 Thread Andrew Jeffery
Move all client-private data out of `struct kcs_bmc` into the KCS client implementation. With this change the KCS BMC core code now only concerns itself with abstract `struct kcs_bmc` and `struct kcs_bmc_client` types, achieving expected separation of concerns. Further, the change clears the path

[PATCH v2 13/21] ipmi: kcs_bmc: Decouple the IPMI chardev from the core

2021-03-19 Thread Andrew Jeffery
Now that we have untangled the data-structures, split the userspace interface out into its own module. Userspace interfaces and drivers are registered to the KCS BMC core to support arbitrary binding of either. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/Kconfig | 13 +

[PATCH v2 15/21] ipmi: kcs_bmc: Don't enforce single-open policy in the kernel

2021-03-19 Thread Andrew Jeffery
Soon it will be possible for one KCS device to have multiple associated chardevs exposed to userspace (for IPMI and raw-style access). However, don't prevent userspace from: 1. Opening more than one chardev at a time, or 2. Opening the same chardev more than once. System behaviour is undefined

[PATCH v2 16/21] ipmi: kcs_bmc: Add a "raw" character device interface

2021-03-19 Thread Andrew Jeffery
The existing IPMI chardev encodes IPMI behaviours as the name suggests. However, KCS devices are useful beyond IPMI (or keyboards), as they provide a means to generate IRQs and exchange arbitrary data between a BMC and its host system. Implement a "raw" KCS character device that exposes the IDR,

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-19 Thread Jie Deng
On 2021/3/19 13:40, Viresh Kumar wrote: On 19-03-21, 13:31, Jie Deng wrote: On 2021/3/19 11:54, Viresh Kumar wrote: On 18-03-21, 15:52, Arnd Bergmann wrote: Allowing multiple virtio-i2c controllers in one system, and multiple i2c devices attached to each controller is clearly something that

[PATCH v2 17/21] dt-bindings: ipmi: Convert ASPEED KCS binding to schema

2021-03-19 Thread Andrew Jeffery
Given the deprecated binding, improve the ability to detect issues in the platform devicetrees. Further, a subsequent patch will introduce a new interrupts property for specifying SerIRQ behaviour, so convert before we do any further additions. Signed-off-by: Andrew Jeffery ---

[PATCH v2 14/21] ipmi: kcs_bmc: Allow clients to control KCS IRQ state

2021-03-19 Thread Andrew Jeffery
Add a mechanism for controlling whether the client associated with a KCS device will receive Input Buffer Full (IBF) and Output Buffer Empty (OBE) events. This enables an abstract implementation of poll() for KCS devices. A wart in the implementation is that the ASPEED KCS devices don't support

[PATCH v2 18/21] dt-bindings: ipmi: Add optional SerIRQ property to ASPEED KCS devices

2021-03-19 Thread Andrew Jeffery
Allocating IO and IRQ resources to LPC devices is in-theory an operation for the host, however ASPEED don't appear to expose this capability outside the BMC (e.g. SuperIO). Instead, we are left with BMC-internal registers for managing these resources, so introduce a devicetree property for KCS

[PATCH v2 05/21] soc: aspeed: Adapt to new LPC device tree layout

2021-03-19 Thread Andrew Jeffery
From: "Chia-Wei, Wang" Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei Wang Reviewed-by: Andrew Jeffery --- drivers/soc/aspeed/aspeed-lpc-ctrl.c | 20

[PATCH v2 10/21] ipmi: kcs_bmc: Turn the driver data-structures inside-out

2021-03-19 Thread Andrew Jeffery
Make the KCS device drivers responsible for allocating their own memory. Until now the private data for the device driver was allocated internal to the private data for the chardev interface. This coupling required the slightly awkward API of passing through the struct size for the driver private

Re: [PATCH] rtl8188eu: Removed Unnecessary ftrace-like logging

2021-03-19 Thread Greg KH
On Thu, Mar 18, 2021 at 08:05:27PM +, Paul McQuade wrote: > prefer using ftrace You need to say more here than just this please. Also please fix up your subject line to have "staging:" in it, otherwise it gets easily lost. thanks, greg k-h

Re: [PATCH v2 1/2] optee: fix tee out of memory failure seen during kexec reboot

2021-03-19 Thread Jens Wiklander
On Tue, Mar 16, 2021 at 2:21 PM Allen Pais wrote: > > > > >> > >> [0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed > >> [0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 > >> > >> tee_shm_release() is not invoked on dma shm buffer. > >> > >> Implement .shutdown()

RE: [PATCH 04/11] i2c: imx-lpi2c: manage irq resource request/release in runtime pm

2021-03-19 Thread Clark Wang
> -Original Message- > From: Aisheng Dong > Sent: Friday, March 19, 2021 12:54 > To: Clark Wang ; shawn...@kernel.org; > s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx i...@nxp.com>; sumit.sem...@linaro.org; christian.koe...@amd.com; >

INTRODUCTION

2021-03-19 Thread Mr Ali Musa.
Dear Friend, How are you today, Please accept my sincere apologies if my email does not meet your business or personal ethics, I really like to have a good relationship with you, and I have a special reason why I decided to contact you because of the urgency of my situation here.I came across

RE: [PATCH 05/11] i2c: imx-lpi2c: add debug message when i2c peripheral clk doesn't work

2021-03-19 Thread Clark Wang
> -Original Message- > From: Aisheng Dong > Sent: Friday, March 19, 2021 12:57 > To: Clark Wang ; shawn...@kernel.org; > s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx i...@nxp.com>; sumit.sem...@linaro.org; christian.koe...@amd.com; >

[PATCH v3 22/25] KVM: VMX: Add emulation of SGX Launch Control LE hash MSRs

2021-03-19 Thread Kai Huang
From: Sean Christopherson Emulate the four Launch Enclave public key hash MSRs (LE hash MSRs) that exist on CPUs that support SGX Launch Control (LC). SGX LC modifies the behavior of ENCLS[EINIT] to use the LE hash MSRs when verifying the key used to sign an enclave. On CPUs without LC

[PATCH v3 23/25] KVM: VMX: Add ENCLS[EINIT] handler to support SGX Launch Control (LC)

2021-03-19 Thread Kai Huang
From: Sean Christopherson Add a VM-Exit handler to trap-and-execute EINIT when SGX LC is enabled in the host. When SGX LC is enabled, the host kernel may rewrite the hardware values at will, e.g. to launch enclaves with different signers, thus KVM needs to intercept EINIT to ensure it is

[PATCH v3 25/25] KVM: x86: Add capability to grant VM access to privileged SGX attribute

2021-03-19 Thread Kai Huang
From: Sean Christopherson Add a capability, KVM_CAP_SGX_ATTRIBUTE, that can be used by userspace to grant a VM access to a priveleged attribute, with args[0] holding a file handle to a valid SGX attribute file. The SGX subsystem restricts access to a subset of enclave attributes to provide

[PATCH] workqueue: update wq_watchdog_touched for unbound lockup checking

2021-03-19 Thread Wang Qing
When touch_softlockup_watchdog() is called, only wq_watchdog_touched_cpu updated, while the unbound worker_pool running on its core uses wq_watchdog_touched to determine whether locked up. This may be mischecked. My suggestion is to update both when touch_softlockup_watchdog() is called, use

[PATCH v3 24/25] KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC

2021-03-19 Thread Kai Huang
From: Sean Christopherson Enable SGX virtualization now that KVM has the VM-Exit handlers needed to trap-and-execute ENCLS to ensure correctness and/or enforce the CPU model exposed to the guest. Add a KVM module param, "sgx", to allow an admin to disable SGX virtualization independent of the

[PATCH 4/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930

2021-03-19 Thread Yang Shen
The Kunpeng930 changes some field meanings in 'sqe'. So add a new 'hisi_zip_sqe_ops' to describe the 'sqe' operations. Signed-off-by: Yang Shen --- drivers/crypto/hisilicon/zip/zip.h| 1 + drivers/crypto/hisilicon/zip/zip_crypto.c | 25 + 2 files changed, 26

[PATCH 2/4] crypto: hisilicon/zip - add comments for 'hisi_zip_sqe'

2021-03-19 Thread Yang Shen
Some fields of 'hisi_zip_sqe' are unused, and some fields have misc utilities. So add comments for used fields and make others unnamed. Signed-off-by: Yang Shen --- drivers/crypto/hisilicon/zip/zip.h| 45 ++- drivers/crypto/hisilicon/zip/zip_crypto.c | 4 +--

[PATCH 0/4]crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930

2021-03-19 Thread Yang Shen
In Kunpeng930, some field meanings in 'sqe' are changed, so driver need to distinguish the type on different platform. To avoid checking the platform everytime when driver fills the 'sqe', add a struct 'hisi_zip_sqe_ops' to describe the 'sqe' operations. The driver only need to choose the 'ops'

[PATCH 3/4] crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'

2021-03-19 Thread Yang Shen
The operations about 'sqe' are different on some hardwares. Add a struct 'hisi_zip_sqe_ops' to describe the operations in a hardware. And choose the 'ops' in 'hisi_zip_acomp_init' according to the hardware. Signed-off-by: Yang Shen --- drivers/crypto/hisilicon/zip/zip_crypto.c | 141

[PATCH 1/4] crypto: hisilicon/zip - adjust functions location

2021-03-19 Thread Yang Shen
This patch changes nothing about functions except location in order to make code logic clearly. This adjustment follows three principles: 1.The called functions are listed in order above the calling functions. 2.The paired functions are next to each other. 3.Logically similar functions are placed

sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread Naresh Kamboju
Linux mainline master build breaks for sparc defconfig. There are multiple errors / warnings with clang-12 and clang-11 and 10. - sparc (defconfig) with clang-12, clang-11 and clang-10 - sparc (tinyconfig) with clang-12, clang-11 and clang-10 - sparc (allnoconfig) with clang-12, clang-11 and

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

2021-03-19 Thread Heiner Kallweit
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 registers > which caused the PHY framework failed to attach the Marvell PHY > driver. > > Fixed this by adding a check of PHY ID

[PATCH 0/2] AM642-sk: Add support for USB

2021-03-19 Thread Aswath Govindraju
The following series of patches add support for, - single one lane SERDES present in AM64 - USB super-speed port on AM642-sk USB test logs, https://pastebin.ubuntu.com/p/4RT9Y94fPv/ The following patches depend on, 1) -

[PATCH 2/2] arm64: dts: ti: k3-am642-sk: Enable USB Super-Speed HOST port

2021-03-19 Thread Aswath Govindraju
From: Kishon Vijay Abraham I Enable USB Super-Speed HOST port. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 39 ++ 1 file changed, 39 insertions(+) diff --git

[PATCH 1/2] arm64: dts: ti: k3-am64: Add SERDES DT node

2021-03-19 Thread Aswath Govindraju
From: Kishon Vijay Abraham I Add SERDES DT node for the single one lane SERDES present in AM64. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 52 1 file changed, 52 insertions(+) diff --git

Re: [PATCH V2 3/5] arm64: dts: qcom: sc7280: Add RPMh regulators for sc7280-idp

2021-03-19 Thread skakit
On 2021-03-17 04:56, Matthias Kaehlcke wrote: On Mon, Mar 15, 2021 at 07:24:12PM +0530, satya priya wrote: Add regulator devices for SC7280 as RPMh regulators. This ensures that consumers are able to modify the physical state of PMIC regulators. Signed-off-by: satya priya --- Changes in V2:

RE: [PATCH 02/11] i2c: imx-lpi2c: add runtime pm support

2021-03-19 Thread Clark Wang
> -Original Message- > From: Clark Wang > Sent: Friday, March 19, 2021 14:16 > To: Aisheng Dong ; shawn...@kernel.org; > s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx i...@nxp.com>; sumit.sem...@linaro.org; christian.koe...@amd.com; >

[PATCH V2] workqueue: watchdog: update wq_watchdog_touched for unbound lockup checking

2021-03-19 Thread Wang Qing
When touch_softlockup_watchdog() is called, only wq_watchdog_touched_cpu updated, while the unbound worker_pool running on its core uses wq_watchdog_touched to determine whether locked up. This may be mischecked. My suggestion is to update both when touch_softlockup_watchdog() is called, use

Re: [PATCH] dma-buf: use wake_up_process() instead of wake_up_state()

2021-03-19 Thread Christian König
Am 19.03.21 um 03:58 schrieb Wang Qing: Using wake_up_process() is more simpler and friendly, and it is more convenient for analysis and statistics Signed-off-by: Wang Qing Reviewed-by: Christian König Should I pick it up or do you want to push it through some other tree than DRM?

Re: [PATCH] selftests/kvm: add get_msr_index_features

2021-03-19 Thread Emanuele Giuseppe Esposito
Hi Andrew, Thank you for the feedback (also in v1). On 18/03/2021 18:03, Andrew Jones wrote: 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 ---

include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_511' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len

2021-03-19 Thread kernel test robot
Hi Oliver, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 commit: c7b74967799b1af52b3045d69d4c26836b2d41de can: replace can_dlc as variable/element for payload length date:

Re: [PATCH v2 1/9] units: Add the HZ macros

2021-03-19 Thread Daniel Lezcano
Hi Rafael, is it possible to merge this series through linux-pm ? On 25/02/2021 12:22, Andy Shevchenko wrote: > On Wed, Feb 24, 2021 at 03:42:11PM +0100, Daniel Lezcano wrote: >> The macros for the unit conversion for frequency are duplicated in >> different places. >> >> Provide these macros

[PATCH] dm thin: remove needless request_queue NULL pointer check

2021-03-19 Thread Xu Wang
Since commit ff9ea323816d ("block, bdi: an active gendisk always has a request_queue associated with it") the request_queue pointer returned from bdev_get_queue() shall never be NULL. Signed-off-by: Xu Wang --- drivers/md/dm-thin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] dm cache: remove needless request_queue NULL pointer checks

2021-03-19 Thread Xu Wang
Since commit ff9ea323816d ("block, bdi: an active gendisk always has a request_queue associated with it") the request_queue pointer returned from bdev_get_queue() shall never be NULL. Signed-off-by: Xu Wang --- drivers/md/dm-cache-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] selftests/kvm: add get_msr_index_features

2021-03-19 Thread Paolo Bonzini
On 19/03/21 09:07, Emanuele Giuseppe Esposito wrote: I'm not sure why the original kvm selftests authors decided to do this internal stuff, but we should either kill that or avoid doing stuff like this. I need this include because of the KVM_DEV_PATH macro, to get the kvm_fd. No other reason

Re:Re: [PATCH] dma-buf: use wake_up_process() instead of wake_up_state()

2021-03-19 Thread 王擎
>> Using wake_up_process() is more simpler and friendly, >> and it is more convenient for analysis and statistics >> >> Signed-off-by: Wang Qing > >Reviewed-by: Christian König > >Should I pick it up or do you want to push it through some other tree >than DRM? Pick it up just fine, thanks,

Re: [PATCH] MAINTAINERS: Update MCAN MMIO device driver maintainer

2021-03-19 Thread Marc Kleine-Budde
On 18.03.2021 16:56:34, Pankaj Sharma wrote: > Update Chandrasekar Ramakrishnan as maintainer for mcan mmio device driver as > I > will be moving to a different role. Applied to can-next/testing. regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux

arch/powerpc/lib/sstep.c:1172:21: error: variable 'suffix' set but not used

2021-03-19 Thread kernel test robot
Hi Jordan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 commit: 650b55b707fdfa764e9f2b81314d3eb4216fb962 powerpc: Add prefixed instructions to instruction data type date:

RE: [PATCH 03/11] i2c: imx-lpi2c: add ipg clk for lpi2c driver

2021-03-19 Thread Clark Wang
> -Original Message- > From: Aisheng Dong > Sent: Friday, March 19, 2021 12:46 > To: Clark Wang ; shawn...@kernel.org; > s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; feste...@gmail.com; dl-linux-imx i...@nxp.com>; sumit.sem...@linaro.org; christian.koe...@amd.com; >

[PATCH v2 02/21] ARM: dts: Remove LPC BMC and Host partitions

2021-03-19 Thread Andrew Jeffery
From: "Chia-Wei, Wang" The LPC controller has no concept of the BMC and the Host partitions. A concrete instance is that the HICRB[5:4] are for the I/O port address configurtaion of KCS channel 1/2. However, the KCS driver cannot access HICRB for channel 1/2 initialization via syscon regmap

[PATCH v2 08/21] ipmi: kcs_bmc: Rename {read,write}_{status,data}() functions

2021-03-19 Thread Andrew Jeffery
Rename the functions in preparation for separating the IPMI chardev out from the KCS BMC core. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc.c | 52 ++--- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc.c

[PATCH v2 07/21] ipmi: kcs_bmc: Make status update atomic

2021-03-19 Thread Andrew Jeffery
Enable more efficient implementation of read-modify-write sequences. Both device drivers for the KCS BMC stack use regmaps. The new callback allows us to exploit regmap_update_bits(). Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc.c | 7 +-- drivers/char/ipmi/kcs_bmc.h

[PATCH v2 04/21] pinctrl: aspeed-g5: Adapt to new LPC device tree layout

2021-03-19 Thread Andrew Jeffery
From: "Chia-Wei, Wang" Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei Wang Reviewed-by: Andrew Jeffery Acked-by: Linus Walleij ---

[PATCH v2 03/21] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2021-03-19 Thread Andrew Jeffery
From: "Chia-Wei, Wang" Add check against LPC device v2 compatible string to ensure that the fixed device tree layout is adopted. The LPC register offsets are also fixed accordingly. Signed-off-by: Chia-Wei Wang Reviewed-by: Andrew Jeffery Acked-by: Haiyue Wang ---

[PATCH] iio: adc: ad7292: Modify the bool initialization assignment

2021-03-19 Thread Guoqing chi
From: Guoqing Chi A bool initializer is best assigned to false rather than 0. Signed-off-by: Guoqing Chi --- drivers/iio/adc/ad7292.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c index 70e33dd1c9f7..3271a31afde1 100644

[PATCH v2 06/21] ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties

2021-03-19 Thread Andrew Jeffery
Unpack and remove the aspeed_kcs_probe_of_v[12]() functions to aid rearranging how the private device-driver memory is allocated. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc_aspeed.c | 146 ++--- 1 file changed, 68 insertions(+), 78 deletions(-) diff

[PATCH v2 01/21] dt-bindings: aspeed-lpc: Remove LPC partitioning

2021-03-19 Thread Andrew Jeffery
From: "Chia-Wei, Wang" The LPC controller has no concept of the BMC and the Host partitions. This patch fixes the documentation by removing the description on LPC partitions. The register offsets illustrated in the DTS node examples are also fixed to adapt to the LPC DTS change. Signed-off-by:

[PATCH v6 5/5] drm/bridge: anx7625: add HDMI audio function

2021-03-19 Thread Xin Ji
Add audio HDMI codec function support, enable it through device true flag "analogix,audio-enable". Reported-by: kernel test robot Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 227 ++ drivers/gpu/drm/bridge/analogix/anx7625.h | 5 + 2 files

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-19 Thread Viresh Kumar
On 19-03-21, 14:29, Jie Deng wrote: > I also see example drivers/i2c/busses/i2c-xiic.c. Some people might think > this way is more clearer than > > updating each member in probe. Basically, I think it's just a matter of > personal preference which doesn't Memory used by one instance of struct

RE: [PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Tuesday, March 16, 2021 10:41 PM > To: Johan Hovold ; Finn Thain ; > Song Bao Hua (Barry Song) > Cc: Krzysztof Kozlowski ; Greg > Kroah-Hartman ; Jiri Slaby ; > linux-arm Mailing List ; Linux Samsung

Re: [PATCH] io_uring: Try to merge io requests only for regular files

2021-03-19 Thread Greg KH
On Fri, Mar 19, 2021 at 05:28:59AM +, Dmitry Monakhov wrote: > Otherwise we may endup blocking on pipe or socket. > > Fixes: 6d5d5ac ("io_uring: extend async work merge") > Testcase: > https://github.com/dmonakhov/liburing/commit/16d171b6ef9d68e6db66650a83d98c5c721d01f6 > Signed-off-by:

[PATCH net-next 2/4] net: hinic: add a blank line after declarations

2021-03-19 Thread Daode Huang
There should be a blank line after declarations, so just add it. Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_tx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c b/drivers/net/ethernet/huawei/hinic/hinic_tx.c index

[PATCH net-next 4/4] net: hinic: convert strlcpy to strscpy

2021-03-19 Thread Daode Huang
Usage of strlcpy in linux kernel has been recently deprecated[1], so convert hinic driver to strscpy [1] https://lore.kernel.org/lkml/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL =v6a6g1ouzcprm...@mail.gmail.com/ Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_ethtool.c | 4 ++--

[PATCH] scsi: ufs: Don't check UFSHCD_CAP_WB_EN capability in ufshcd_wb_toggle{_flush}

2021-03-19 Thread Yue Hu
From: Yue Hu There are several redundant calls to ufshcd_is_wb_allowed() as below: ufshcd_wb_config() |-> ufshcd_is_wb_allowed() |-> ufshcd_wb_toggle() -> ufshcd_is_wb_allowed() |-> ufshcd_wb_toggle_flush() -> ufshcd_is_wb_allowed() wb_on_store() |-> ufshcd_is_wb_allowed() |->

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-19 Thread Jie Deng
On 2021/3/19 14:35, Viresh Kumar wrote: On 19-03-21, 14:29, Jie Deng wrote: I also see example drivers/i2c/busses/i2c-xiic.c. Some people might think this way is more clearer than updating each member in probe. Basically, I think it's just a matter of personal preference which doesn't

RE: [RFC PATCH v5 1/4] topology: Represent clusters of CPUs within a die

2021-03-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, March 19, 2021 7:35 PM > To: Song Bao Hua (Barry Song) > Cc: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.org; b...@alien8.de;

[PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-19 Thread Jin Yao
perf-stat has supported the summary mode. But the summary lines break the CSV output so it's hard for scripts to parse the result. Before: # perf stat -x, -I1000 --interval-count 1 --summary 1.001323097,8013.48,msec,cpu-clock,8013483384,100.00,8.013,CPUs utilized

[PATCH v3 2/2] perf test: Add CVS summary test

2021-03-19 Thread Jin Yao
The patch "perf stat: Align CSV output for summary mode" aligned CVS output and added "summary" to the first column of summary lines. Now we check if the "summary" string is added to the CVS output. If we set '--no-cvs-summary' option, the "summary" string would not be added, also check with

include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'

2021-03-19 Thread kernel test robot
Hi Linus, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 commit: de8860b1ed4701ea7e6f760f02d79ca6a3b656a1 iio: magnetometer: Add driver for Yamaha YAS530 date: 10 weeks

Re: [RFC][PATCH] sched: Optimize cpufreq_update_util

2021-03-19 Thread Viresh Kumar
On 18-03-21, 22:28, Peter Zijlstra wrote: > Also, is there a lock order comment in cpufreq somewhere? I don't think so. > I tried > following it, but eventually gave up and figured 'asking' lockdep was > far simpler. This will get called from CPU's online/offline path at worst, nothing more.

Re: [PATCH v3 3/3] pinctrl: pinctrl-single: fix pcs_pin_dbg_show() when bits_per_mux is not zero

2021-03-19 Thread Hawa, Hanna
On 3/18/2021 2:15 PM, Andy Shevchenko wrote: On Wed, Mar 17, 2021 at 11:42 PM Hanna Hawa wrote: An SError was detected when trying to print the supported pins in a What is SError? Yes, I have read a discussion, but here is the hint: if a person sees this as a first text due to, for

Re: [PATCH V2 2/5] regulator: qcom-rpmh: Add PM7325/PMR735A regulator support

2021-03-19 Thread skakit
Hi Matthias, Thanks for reviewing the patches! On 2021-03-17 01:22, Matthias Kaehlcke wrote: On Mon, Mar 15, 2021 at 07:24:11PM +0530, satya priya wrote: Add support for PM7325/PMR735A regulators. This ensures that consumers are able to modify the physical state of PMIC regulators.

Re: [PATCH V2 4/5] dt-bindings: regulator: Convert regulator bindings to YAML format

2021-03-19 Thread skakit
On 2021-03-17 00:17, Matthias Kaehlcke wrote: Subject: dt-bindings: regulator: Convert regulator bindings to YAML format Make sure to mention that this is about the RPMh regulators, not the general regulator binding which was already converted. Okay, will change the commit message.

Re: [PATCH v2 14/14] objtool,x86: Rewrite retpoline thunk calls

2021-03-19 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 10:29:55PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 06:11:17PM +0100, Peter Zijlstra wrote: > > When the compiler emits: "CALL __x86_indirect_thunk_\reg" for an > > indirect call, have objtool rewrite it to: > > > > ALTERNATIVE "call

Re: [PATCH 00/36] [Set 4] Rid W=1 warnings in SCSI

2021-03-19 Thread Lee Jones
On Thu, 18 Mar 2021, Martin K. Petersen wrote: > > Lee, > > > This set is part of a larger effort attempting to clean-up W=1 kernel > > builds, which are currently overwhelmingly riddled with niggly little > > warnings. > > Applied to 5.13/scsi-staging, thanks! I fixed a few little things.

Re: [PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-19 Thread Johan Hovold
On Fri, Mar 19, 2021 at 06:36:39AM +, Song Bao Hua (Barry Song) wrote: > > > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Tuesday, March 16, 2021 10:41 PM > > To: Johan Hovold ; Finn Thain > > ; > > Song Bao Hua (Barry Song) > > Cc:

Re: [PATCH v3 1/2] arm64: dts: ti: k3-am64: Add GPIO DT nodes

2021-03-19 Thread Lokesh Vutla
On 19/03/21 10:49 am, Aswath Govindraju wrote: > Add device tree nodes for GPIO modules and interrupt controller in main > and mcu domains. > > Signed-off-by: Aswath Govindraju Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 45

Re: [PATCH v3 2/2] arm64: dts: ti: k3-am642: reserve gpio in mcu domain for firmware usage

2021-03-19 Thread Lokesh Vutla
On 19/03/21 10:49 am, Aswath Govindraju wrote: > The gpio0 subsystem present in MCU domain might be used by firmware and is > not pinned out in evm/sk. Therefore, reserve it for MCU firmware. > > Signed-off-by: Aswath Govindraju Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

[PATCH v2 21/21] ipmi: kcs_bmc_aspeed: Optionally apply status address

2021-03-19 Thread Andrew Jeffery
Some Aspeed KCS devices can derive the status register address from the address of the data register. As such, the address of the status register can be implicit in the configuration if desired. On the other hand, sometimes address schemes might be requested that are incompatible with the default

[PATCH v2 20/21] ipmi: kcs_bmc_aspeed: Fix IBFIE typo from datasheet

2021-03-19 Thread Andrew Jeffery
Input Buffer Full Interrupt Enable (IBFIE) is typoed as IBFIF for some registers in the datasheet. Fix the driver to use the sensible acronym. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc_aspeed.c | 24 1 file changed, 12 insertions(+), 12 deletions(-)

[PATCH v2 19/21] ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration

2021-03-19 Thread Andrew Jeffery
Apply the SerIRQ ID and level/sense behaviours from the devicetree if provided. Signed-off-by: Andrew Jeffery --- drivers/char/ipmi/kcs_bmc_aspeed.c | 179 - 1 file changed, 177 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c

Re: [PATCH V3] exit: trigger panic when global init has exited

2021-03-19 Thread qianli zhao
Hi,Eric > As I understand it this patch has two purposes: > 1. Avoid the BUG_ON in zap_pid_ns_processes when !CONFIG_PID_NS > 2. panic as early as possible so exiting threads don't removing > interesting debugging state. Your understanding is very correct,this is what my patch wants to do > I

[PATCH v6 2/5] drm/bridge: anx7625: fix not correct return value

2021-03-19 Thread Xin Ji
At some time, the original code may return non zero value, force return 0 if operation finished. Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c

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

2021-03-19 Thread Xin Ji
Add MIPI rx DPI input support. Reported-by: kernel test robot Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 245 -- drivers/gpu/drm/bridge/analogix/anx7625.h | 18 +- 2 files changed, 203 insertions(+), 60 deletions(-) diff --git

Re: [PATCH] X86: __set_clr_pte_enc() miscalculates physical address

2021-03-19 Thread Greg KH
On Thu, Mar 18, 2021 at 01:26:57PM -0700, Isaku Yamahata wrote: > __set_clr_pte_enc() miscalculates physical address to operate. > pfn is in unit of PG_LEVEL_4K, not PGL_LEVEL_{2M, 1G}. > Shift size to get physical address should be PAGE_SHIFT, > not page_level_shift(). > > Fixes: dfaaec9033b8

linux-next: Tree for Mar 19

2021-03-19 Thread Stephen Rothwell
Hi all, Warning: Some of the branches in linux-next may still based on v5.12-rc1, so please be careful if you are trying to bisect a bug. News: if your -next included tree is based on Linus' tree tag v5.12-rc1{,-dontuse} (or somewhere between v5.11 and that tag), please consider rebasing it onto

[rcu:dev.2021.03.15a] BUILD SUCCESS 7c9e50cc94bafe0ddfa28bb96b009f24c17ad149

2021-03-19 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.03.15a branch HEAD: 7c9e50cc94bafe0ddfa28bb96b009f24c17ad149 fixup! torture: Add prototype kvm-remote.sh script elapsed time: 726m configs tested: 143 configs skipped: 2 The following configs have

RE: [PATCH] exfat: improve write performance when dirsync enabled

2021-03-19 Thread Namjae Jeon
> > Degradation of write speed caused by frequent disk access for cluster > > bitmap update on every cluster allocation could be improved by > > selective syncing bitmap buffer. Change to flush bitmap buffer only > > for the directory related operations. > > > > Signed-off-by: Hyeongseok Kim > >

[PATCH RESEND] scsi: ufs: Remove unnecessary null checks in ufshcd_find_max_sup_active_icc_level()

2021-03-19 Thread Yue Hu
From: Yue Hu Since vcc/vccq/vccq2 have already been null checked before using. Signed-off-by: Yue Hu --- drivers/scsi/ufs/ufshcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7b3267e..f941bc3 100644 ---

[PATCH v3 05/25] x86/sgx: Introduce virtual EPC for use by KVM guests

2021-03-19 Thread Kai Huang
From: Sean Christopherson Add a misc device /dev/sgx_vepc to allow userspace to allocate "raw" EPC without an associated enclave. The intended and only known use case for raw EPC allocation is to expose EPC to a KVM guest, hence the 'vepc' moniker, virt.{c,h} files and X86_SGX_KVM Kconfig. SGX

[PATCH v3 08/25] x86/sgx: Expose SGX architectural definitions to the kernel

2021-03-19 Thread Kai Huang
From: Sean Christopherson Expose SGX architectural structures, as KVM will use many of the architectural constants and structs to virtualize SGX. Name the new header file as asm/sgx.h, rather than asm/sgx_arch.h, to have single header to provide SGX facilities to share with other kernel

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

2021-03-19 Thread Kai Huang
Modify sgx_init() to always try to initialize the virtual EPC driver, even if the SGX driver is disabled. The SGX driver might be disabled if SGX Launch Control is in locked mode, or not supported in the hardware at all. This allows (non-Linux) guests that support non-LC configurations to use

[PATCH v3 06/25] x86/cpu/intel: Allow SGX virtualization without Launch Control support

2021-03-19 Thread Kai Huang
From: Sean Christopherson The kernel will currently disable all SGX support if the hardware does not support launch control. Make it more permissive to allow SGX virtualization on systems without Launch Control support. This will allow KVM to expose SGX to guests that have less-strict

[PATCH v3 01/25] x86/cpufeatures: Make SGX_LC feature bit depend on SGX bit

2021-03-19 Thread Kai Huang
Move SGX_LC feature bit to CPUID dependency table to make clearing all SGX feature bits easier. Also remove clear_sgx_caps() since it is just a wrapper of setup_clear_cpu_cap(X86_FEATURE_SGX) now. Suggested-by: Sean Christopherson Acked-by: Dave Hansen Acked-by: Jarkko Sakkinen Reviewed-by:

[PATCH v3 02/25] x86/cpufeatures: Add SGX1 and SGX2 sub-features

2021-03-19 Thread Kai Huang
From: Sean Christopherson Add SGX1 and SGX2 feature flags, via CPUID.0x12.0x0.EAX, as scattered features, since adding a new leaf for only two bits would be wasteful. As part of virtualizing SGX, KVM will expose the SGX CPUID leafs to its guest, and to do so correctly needs to query hardware and

[PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-19 Thread Kai Huang
EREMOVE takes a page and removes any association between that page and an enclave. It must be run on a page before it can be added into another enclave. Currently, EREMOVE is run as part of pages being freed into the SGX page allocator. It is not expected to fail. KVM does not track how guest

[PATCH v3 04/25] x86/sgx: Add SGX_CHILD_PRESENT hardware error code

2021-03-19 Thread Kai Huang
From: Sean Christopherson SGX driver can accurately track how enclave pages are used. This enables SECS to be specifically targeted and EREMOVE'd only after all child pages have been EREMOVE'd. This ensures that SGX driver will never encounter SGX_CHILD_PRESENT in normal operation. Virtual

[PATCH -next] e1000e: Fix 'defined but not used' warning

2021-03-19 Thread Bixuan Cui
Fix the warning while disable CONFIG_PM_SLEEP: drivers/net/ethernet/intel/e1000e/netdev.c:6926:12: warning: ‘e1000e_pm_prepare’ defined but not used [-Wunused-function] static int e1000e_pm_prepare(struct device *dev) ^ Signed-off-by: Bixuan Cui ---

  1   2   3   4   5   6   7   8   9   10   >