[PATCH v2 06/17] virt: acrn: Introduce VM management interfaces

2020-09-03 Thread shuo . a . liu
From: Shuo Liu The VM management interfaces expose several VM operations to ACRN userspace via ioctls. For example, creating VM, starting VM, destroying VM and so on. The ACRN Hypervisor needs to exchange data with the ACRN userspace during the VM operations. HSM provides VM operation ioctls to

[PATCH v2 04/17] x86/acrn: Introduce hypercall interfaces

2020-09-03 Thread shuo . a . liu
From: Shuo Liu The Service VM communicates with the hypervisor via conventional hypercalls. VMCALL instruction is used to make the hypercalls. ACRN hypercall ABI: * Hypercall number is in R8 register. * Up to 2 parameters are in RDI and RSI registers. * Return value is in RAX register. In

[PATCH v2 02/17] x86/acrn: Introduce acrn_{setup, remove}_intr_handler()

2020-09-03 Thread shuo . a . liu
From: Shuo Liu The ACRN Hypervisor builds an I/O request when a trapped I/O access happens in User VM. Then, ACRN Hypervisor issues an upcall by sending a notification interrupt to the Service VM. HSM in the Service VM needs to hook the notification interrupt to handle I/O requests. Notification

[PATCH v2 03/17] x86/acrn: Introduce an API to check if a VM is privileged

2020-09-03 Thread shuo . a . liu
From: Yin Fengwei ACRN Hypervisor reports hypervisor features via CPUID leaf 0x4001 which is similar to KVM. A VM can check if it's the privileged VM using the feature bits. The Service VM is the only privileged VM by design. Signed-off-by: Yin Fengwei Signed-off-by: Shuo Liu Reviewed-by:

[PATCH v2 00/17] HSM driver for ACRN hypervisor

2020-09-03 Thread shuo . a . liu
From: Shuo Liu ACRN is a Type 1 reference hypervisor stack, running directly on the bare-metal hardware, and is suitable for a variety of IoT and embedded device solutions. ACRN implements a hybrid VMM architecture, using a privileged Service VM. The Service VM manages the system resources (CPU,

[PATCH v2 17/17] virt: acrn: Introduce an interface for Service VM to control vCPU

2020-09-03 Thread shuo . a . liu
From: Shuo Liu ACRN supports partition mode to achieve real-time requirements. In partition mode, a CPU core can be dedicated to a vCPU of User VM. The local APIC of the dedicated CPU core can be passthrough to the User VM. The Service VM controls the assignment of the CPU cores. Introduce an in

[PATCH v15 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-09-03 Thread Shiju Jose
From: Yicong Yang The HiSilicon HIP PCIe controller is capable of handling errors on root port and performing port reset separately at each root port. Add error handling driver for HIP PCIe controller to log and report recoverable errors. Perform root port reset and restore link status after the

[PATCH v15 0/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-09-03 Thread Shiju Jose
CPER records describing a firmware-first error are identified by GUID. The ghes driver currently logs, but ignores any unknown CPER records. This prevents describing errors that can't be represented by a standard entry, that would otherwise allow a driver to recover from an error. The UEFI spec cal

Re: [PATCH] net/mlx5e: kTLS, Fix GFP_KERNEL in spinlock context

2020-09-03 Thread Wei Xu
Hi All, Sorry for the noise and please ignore it! I found a nearly same patch has been sent out 2 days before. Best Regards, Wei On 2020/9/3 19:45, Wei Xu wrote: > Replace GFP_KERNEL with GFP_ATOMIC while resync_post_get_progress_params > is invoked in a spinlock context. > This code was detecte

Re: [PATCH 2/2] arm64: dts: renesas: r8a774e1: Add cpuidle support for CA5x cores

2020-09-03 Thread Geert Uytterhoeven
Hi Prabhakar, On Thu, Aug 27, 2020 at 4:53 PM Lad Prabhakar wrote: > Enable cpuidle (core shutdown) support for RZ/G2H CA5x cores. > > Signed-off-by: Lad Prabhakar > --- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi > @@ -127,6 +127,7 @@ >

[PATCH v3 6/7] interconnect: qcom: sc7180: Replace xlate with xlate_extended

2020-09-03 Thread Georgi Djakov
From: Sibi Sankar Use the qcom_icc_xlate_extended() in order to parse tags, that are specified as an additional arguments to the path endpoints in DT. Signed-off-by: Sibi Sankar Tested-by: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke Signed-off-by: Georgi Djakov --- drivers/interconnect

[PATCH v2 1/3] iio: gyro: adxrs290: Add triggered buffer support

2020-09-03 Thread Nishant Malpani
Provide a way for continuous data capture by setting up buffer support. The data ready signal exposed at the SYNC pin of the ADXRS290 is exploited as a hardware interrupt which triggers to fill the buffer. Triggered buffer setup was tested with both hardware trigger (DATA_RDY) and software trigger

Re: [PATCH v2 02/14] perf mem: Introduce weak function perf_mem_events__ptr()

2020-09-03 Thread Jiri Olsa
On Tue, Sep 01, 2020 at 09:38:03AM +0100, Leo Yan wrote: SNIP > @@ -2941,30 +2942,38 @@ static int perf_c2c__record(int argc, const char > **argv) > rec_argv[i++] = "record"; > > if (!event_set) { > - perf_mem_events[PERF_MEM_EVENTS__LOAD].record = true; > -

[PATCH v2 2/3] pinctrl: pinctrl-mchp-sgpio: Add pinctrl driver for Microsemi Serial GPIO

2020-09-03 Thread Lars Povlsen
This adds a pinctrl driver for the Microsemi/Microchip Serial GPIO (SGPIO) device used in various SoC's. Signed-off-by: Lars Povlsen --- MAINTAINERS | 1 + drivers/pinctrl/Kconfig | 17 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinct

Re: [PATCH] ASoC: fsl_sai: Support multiple data channel enable bits

2020-09-03 Thread Mark Brown
On Tue, 1 Sep 2020 19:01:08 +0800, Shengjiu Wang wrote: > One data channel is one data line. From imx7ulp, the SAI IP is > enhanced to support multiple data channels. > > If there is only two channels input and slots is 2, then enable one > data channel is enough for data transfer. So enable the T

Re: [PATCH V2 1/8] arm64: dts: ti: k3-j721e: Use lower case hexadecimal

2020-09-03 Thread Suman Anna
<<< No Message Collected >>>

Re: [PATCH v5 3/5] cpufreq: report whether cpufreq supports Frequency Invariance (FI)

2020-09-03 Thread Ionela Voinescu
Hi Sudeep, Thank you for your review here and for the other patches. On Wednesday 02 Sep 2020 at 14:28:38 (+0100), Sudeep Holla wrote: [..] > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > > index 4d5fe777184a..570bf2ebe9d4 100644 > > --- a/drivers/cpufreq/cpufreq.c > > ++

Re: [PATCH 5/5] media: atomisp: get rid of -Wsuggest-attribute=format warnings

2020-09-03 Thread Andy Shevchenko
On Thu, Sep 03, 2020 at 03:57:32PM +0200, Mauro Carvalho Chehab wrote: > There are some warnings reported by gcc: > drivers/staging/media/atomisp//pci/atomisp_compat_css20.c:164:2: > warning: function ‘atomisp_css2_dbg_print’ might be a candidate for > ‘gnu_printf’ format attribute [-Wsugge

Re: Linux 4.4.235

2020-09-03 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 573b646a1993..a32490d4471f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 234 +SUBLEVEL = 235 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/vdso/genvdso.c b/arch/mips/vdso/genvdso.c index 530a3

Re: [PATCH v2 11/11] lockdep,trace: Expose tracepoints

2020-09-03 Thread peterz
On Wed, Sep 02, 2020 at 06:57:36AM -0700, Guenter Roeck wrote: > On 9/2/20 1:56 AM, pet...@infradead.org wrote: > > On Tue, Sep 01, 2020 at 08:51:46PM -0700, Guenter Roeck wrote: > > > >> [ 27.056457] include/trace/events/lock.h:13 suspicious > >> rcu_dereference_check() usage! > > > >> [ 27

Re: [PATCH v2 3/3] iio: gyro: adxrs290: Add debugfs register access support

2020-09-03 Thread Andy Shevchenko
On Thu, Sep 3, 2020 at 4:10 PM Nishant Malpani wrote: > > Extend support to read/write byte data from/to the device using > debugfs iio interface. ... > +static int adxrs290_reg_access(struct iio_dev *indio_dev, unsigned int reg, > + unsigned int writeval, unsigned i

Re: [PATCH v4 03/10] vfio/fsl-mc: Implement VFIO_DEVICE_GET_INFO ioctl

2020-09-03 Thread Auger Eric
Hi Diana, On 8/26/20 11:33 AM, Diana Craciun wrote: > Allow userspace to get fsl-mc device info (number of regions > and irqs). > > Signed-off-by: Bharat Bhushan > Signed-off-by: Diana Craciun Reviewed-by: Eric Auger Thanks Eric > --- > drivers/vfio/fsl-mc/vfio_fsl_mc.c | 21 +++

Re: [PATCH] hwmon: sparx5: Fix initial reading of temperature

2020-09-03 Thread Guenter Roeck
On 9/3/20 6:47 AM, Lars Povlsen wrote: > If the temperature is read before the internal calibration is > completed, the driver returns -EIO. Instead it should return -EAGAIN > to encourage repeating the operation. > > Signed-off-by: Lars Povlsen > --- > drivers/hwmon/sparx5-temp.c | 2 +- > 1 fi

[PATCH] platform/chrome: Kconfig: Remove the transitional MFD_CROS_EC config

2020-09-03 Thread Enric Balletbo i Serra
The MFD_CROS_EC config was a transitional Kconfig option to not break current defconfigs in the kernel. Now, this is not required anymore because all the defconfigs have been removed this option and migrated to enable the CrOS EC parts individually. Signed-off-by: Enric Balletbo i Serra --- dri

Re: [PATCH V2 1/8] arm64: dts: ti: k3-j721e: Use lower case hexadecimal

2020-09-03 Thread Lokesh Vutla
On 03/09/20 6:30 pm, Nishanth Menon wrote: > Device tree convention uses lower case a-f for hexadecimals. Fix the > same. > > Signed-off-by: Nishanth Menon Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

Re: [PATCH V2 2/8] arm64: dts: ti: k3-am65-main: Use lower case hexadecimal

2020-09-03 Thread Lokesh Vutla
On 03/09/20 6:30 pm, Nishanth Menon wrote: > Device tree convention uses lower case a-f for hexadecimals. Fix the > same. > > Signed-off-by: Nishanth Menon Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

Re: [PATCH v3 01/22] i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer

2020-09-03 Thread Dmitry Osipenko
03.09.2020 14:02, Andy Shevchenko пишет: > On Thu, Sep 3, 2020 at 3:53 AM Dmitry Osipenko wrote: >> >> The tegra_i2c_flush_fifos() shouldn't sleep in atomic transfer and jiffies >> are not updating if interrupts are disabled. Hence let's use proper delay >> functions and use ktime API in order not

[PATCH 03/14] proc: add a read_iter method to proc proc_ops

2020-09-03 Thread Christoph Hellwig
This will allow proc files to implement iter read semantics. Signed-off-by: Christoph Hellwig --- fs/proc/inode.c | 53 ++--- include/linux/proc_fs.h | 1 + 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/fs/proc/inode.c b/fs/proc/inod

[PATCH 08/14] test_bitmap: remove user bitmap tests

2020-09-03 Thread Christoph Hellwig
We can't run the tests for userspace bitmap parsing if set_fs() doesn't exist, and it is about to go away for x86, powerpc with other major architectures to follow. Signed-off-by: Christoph Hellwig --- lib/test_bitmap.c | 91 +++ 1 file changed, 21 ins

[PATCH 02/14] proc: cleanup the compat vs no compat file ops

2020-09-03 Thread Christoph Hellwig
Instead of providing a special no-compat version provide a special compat version for operations with ->compat_ioctl. Signed-off-by: Christoph Hellwig --- fs/proc/inode.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 016b13

[PATCH 06/14] fs: don't allow splice read/write without explicit ops

2020-09-03 Thread Christoph Hellwig
default_file_splice_write is the last piece of generic code that uses set_fs to make the uaccess routines operate on kernel pointers. It implements a "fallback loop" for splicing from files that do not actually provide a proper splice_read method. The usual file systems and other high bandwidth i

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-03 Thread Dave Hansen
On 9/2/20 9:35 PM, Andy Lutomirski wrote: >> + fpu__prepare_read(fpu); >> + cetregs = get_xsave_addr(&fpu->state.xsave, XFEATURE_CET_USER); >> + if (!cetregs) >> + return -EFAULT; > Can this branch ever be hit without a kernel bug? If yes, I think

Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-03 Thread Al Viro
On Thu, Sep 03, 2020 at 04:22:28PM +0200, Christoph Hellwig wrote: > Besides x86 and powerpc I plan to eventually convert all other > architectures, although this will be a slow process, starting with the > easier ones once the infrastructure is merged. The process to convert > architectures is r

Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-03 Thread Christoph Hellwig
On Thu, Sep 03, 2020 at 03:28:03PM +0100, Al Viro wrote: > On Thu, Sep 03, 2020 at 04:22:28PM +0200, Christoph Hellwig wrote: > > > Besides x86 and powerpc I plan to eventually convert all other > > architectures, although this will be a slow process, starting with the > > easier ones once the inf

Re: [PATCH 5/5] media: atomisp: get rid of -Wsuggest-attribute=format warnings

2020-09-03 Thread Mauro Carvalho Chehab
Em Thu, 3 Sep 2020 17:07:24 +0300 Andy Shevchenko escreveu: > On Thu, Sep 03, 2020 at 03:57:32PM +0200, Mauro Carvalho Chehab wrote: > > There are some warnings reported by gcc: > > drivers/staging/media/atomisp//pci/atomisp_compat_css20.c:164:2: > > warning: function ‘atomisp_css2_dbg_print

RE: [PATCH] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-03 Thread Limonciello, Mario
Andy, Thanks for your feedback. > > > > +bool get_pending_changes(void) > > > +{ > > > + struct wmi_interface_priv *priv; > > > + > > > + priv = get_first_interface_priv(); > > > + if (priv) > > > + return priv->pending_changes; > > > > + return 0; > > 0 is not boole

[PATCH] arm64: dts: mt8173-elm: fix supported values for regulator-allowed-modes of da9211

2020-09-03 Thread Dafna Hirschfeld
According to the datasheet the allowed modes for the da9211 regulator are sync and auto mode. This should be changed in the devicetree. This also fix an error message 'BUCKA: invalid regulator-allowed-modes element 0' since value 0 is invalid. Fixes: 689b937beddeb ("arm64: dts: mediatek: add mt817

Re: [PATCH net 3/3] hinic: fix bug of send pkts while setting channels

2020-09-03 Thread luobin (L)
On 2020/9/3 3:52, David Miller wrote: > From: Luo bin > Date: Wed, 2 Sep 2020 17:41:45 +0800 > >> @@ -531,6 +531,11 @@ netdev_tx_t hinic_xmit_frame(struct sk_buff *skb, >> struct net_device *netdev) >> struct hinic_txq *txq; >> struct hinic_qp *qp; >> >> +if (unlikely(!netif_carr

Re: [PATCH v2 1/3] iio: gyro: adxrs290: Add triggered buffer support

2020-09-03 Thread Andy Shevchenko
On Thu, Sep 3, 2020 at 4:10 PM Nishant Malpani wrote: > > Provide a way for continuous data capture by setting up buffer support. The > data ready signal exposed at the SYNC pin of the ADXRS290 is exploited as > a hardware interrupt which triggers to fill the buffer. > > Triggered buffer setup was

Re: [PATCH] openrisc: Reserve memblock for initrd

2020-09-03 Thread Stafford Horne
On Tue, Sep 01, 2020 at 03:11:30PM +0300, Mike Rapoport wrote: > On Tue, Sep 01, 2020 at 07:20:44PM +0900, Stafford Horne wrote: > > On Tue, Sep 01, 2020 at 08:59:24AM +0300, Mike Rapoport wrote: > > > On Tue, Sep 01, 2020 at 06:21:01AM +0900, Stafford Horne wrote: > > > > Recently OpenRISC added s

Re: [PATCH v2 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

2020-09-03 Thread Oleg Nesterov
On 09/02, Christian Brauner wrote: > > -static int pidfd_create(struct pid *pid) > +static int pidfd_create(struct pid *pid, unsigned int flags) > { > int fd; > > fd = anon_inode_getfd("[pidfd]", &pidfd_fops, get_pid(pid), > - O_RDWR | O_CLOEXEC); > +

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-03 Thread Dario Faggioli
On Thu, 2020-09-03 at 00:34 -0400, Joel Fernandes wrote: > On Wed, Sep 2, 2020 at 12:57 PM Dario Faggioli > wrote: > > 2) protection of the kernel from the other thread running in > > userspace > > may be achieved in different ways. This is one, sure. ASI will > > probably > > be another. Hence if

Re: [PATCH V2 7/8] arm64: dts: ti: k3-am65-wakeup: Use generic temperature-sensor for node name

2020-09-03 Thread Vignesh Raghavendra
On 9/3/20 6:30 PM, Nishanth Menon wrote: > Use temperature-sensor@ naming for nodes following standard conventions of > device > tree (section 2.2.2 Generic Names recommendation in [1]). > > [1] https://github.com/devicetree-org/devicetree-specification/tree/v0.3 > > Suggested-by: Suman Anna

[PATCH 11/14] x86: make TASK_SIZE_MAX usable from assembly code

2020-09-03 Thread Christoph Hellwig
For 64-bit the only thing missing was a strategic _AC, and for 32-bit we need to use __PAGE_OFFSET instead of PAGE_OFFSET in the TASK_SIZE definition to escape the explicit unsigned long cast. This just works because __PAGE_OFFSET is defined using _AC itself and thus never needs the cast anyway.

[PATCH 07/14] uaccess: add infrastructure for kernel builds with set_fs()

2020-09-03 Thread Christoph Hellwig
Add a CONFIG_SET_FS option that is selected by architecturess that implement set_fs, which is all of them initially. If the option is not set stubs for routines related to overriding the address space are provided so that architectures can start to opt out of providing set_fs. Signed-off-by: Chri

Re: [PATCH] mmc: sdhci-msm: Prefer asynchronous probe

2020-09-03 Thread Doug Anderson
Hi, On Thu, Sep 3, 2020 at 1:10 AM Ulf Hansson wrote: > > On Thu, 3 Sep 2020 at 01:43, Douglas Anderson wrote: > > > > Turning on initcall debug on one system showed this: > > initcall sdhci_msm_driver_init+0x0/0x28 returned 0 after 34782 usecs > > > > The lion's share of this time (~33 ms) wa

[PATCH 14/14] powerpc: remove address space overrides using set_fs()

2020-09-03 Thread Christoph Hellwig
Stop providing the possibility to override the address space using set_fs() now that there is no need for that any more. Signed-off-by: Christoph Hellwig --- arch/powerpc/Kconfig | 1 - arch/powerpc/include/asm/processor.h | 7 arch/powerpc/include/asm/thread_info.h |

[PATCH v6 8/8] integrity: Asymmetric digsig supports SM2-with-SM3 algorithm

2020-09-03 Thread Tianjia Zhang
Asymmetric digsig supports SM2-with-SM3 algorithm combination, so that IMA can also verify SM2's signature data. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- security/integrity/digsig_asymmetric.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/se

Re: Boot failure on gru-scarlet-inx with 5.9-rc2

2020-09-03 Thread Rob Herring
On Thu, Sep 3, 2020 at 3:19 AM Lorenzo Pieralisi wrote: > > On Wed, Sep 02, 2020 at 11:47:56PM -0400, Samuel Dionne-Riel wrote: > > On Wed, 2 Sep 2020 17:01:19 +0100 > > Lorenzo Pieralisi wrote: > > > > > On Tue, Sep 01, 2020 at 02:33:56PM -0400, Samuel Dionne-Riel wrote: > > > > > > Please print

[PATCH v6 3/8] lib/mpi: Introduce ec implementation to MPI library

2020-09-03 Thread Tianjia Zhang
The implementation of EC is introduced from libgcrypt as the basic algorithm of elliptic curve, which can be more perfectly integrated with MPI implementation. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- include

[PATCH v6 1/8] crypto: sm3 - export crypto_sm3_final function

2020-09-03 Thread Tianjia Zhang
Both crypto_sm3_update and crypto_sm3_finup have been exported, exporting crypto_sm3_final, to avoid having to use crypto_sm3_finup(desc, NULL, 0, dgst) to calculate the hash in some cases. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- crypto/sm3_generic.c | 7 --- include/crypto

[PATCH v6 2/8] lib/mpi: Extend the MPI library

2020-09-03 Thread Tianjia Zhang
Expand the mpi library based on libgcrypt, and the ECC algorithm of mpi based on libgcrypt requires these functions. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- include/linux/mpi.h| 87 +++ lib/mpi/

[PATCH v6 0/8] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-09-03 Thread Tianjia Zhang
Hello all, This new module implement the OSCCA certificate and SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for OSCCA certificate and SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T 0003.3-

[PATCH v6 5/8] crypto: testmgr - support test with different ciphertext per encryption

2020-09-03 Thread Tianjia Zhang
Some asymmetric algorithms will get different ciphertext after each encryption, such as SM2, and let testmgr support the testing of such algorithms. In struct akcipher_testvec, set c and c_size to be empty, skip the comparison of the ciphertext, and compare the decrypted plaintext with m to achiev

Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-03 Thread Christoph Hellwig
On Thu, Sep 03, 2020 at 03:36:29PM +0100, Al Viro wrote: > FWIW, vfs.git#for-next is always a merge of independent branches; I don't > put stuff directly into #for-next - too easy to lose that way. > > IOW, that would be something like #base.set_fs, included into #for-next > merge set. And I've n

[PATCH v3 0/7] interconnect: Introduce xlate_extended()

2020-09-03 Thread Georgi Djakov
allow the interconnect provider drivers to parse additional data (such as path tags) and allow the framework to make use of them. Thanks to Sibi for the preliminary feedback and testing this patchset on the sc7180 platform. The patchset is based on linux-next (next-20200903). Changelog: v3: * Rebase

Re: [RFC][PATCH] cpu_pm: Remove RCU abuse

2020-09-03 Thread Ulf Hansson
On Thu, 3 Sep 2020 at 15:53, wrote: > > On Wed, Sep 02, 2020 at 05:58:55PM +0200, Ulf Hansson wrote: > > On Wed, 2 Sep 2020 at 14:14, wrote: > > > > > > On Wed, Sep 02, 2020 at 09:03:37AM +0200, Ulf Hansson wrote: > > > > Lots of cpuidle drivers are using CPU_PM notifiers (grep for > > > > cpu_pm

[PATCH] spi-imx: remove num-cs support, set num_chipselect to 4

2020-09-03 Thread Matthias Schiffer
The num-cs property is not considered useful, and no in-tree Device Trees define it for spi-imx. The default value to be used when no cs-gpios are defined is set to 4 to give access to all native CS pins of modern i.MX SoCs (i.MX6 and newer). In older SoCs, the number of CS pins varies (for examp

[PATCH v3 4/7] interconnect: qcom: sdm845: Replace xlate with xlate_extended

2020-09-03 Thread Georgi Djakov
Use the qcom_icc_xlate_extended() in order to parse tags, that are specified as an additional arguments to the path endpoints in DT. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Reviewed-by: Matthias Kaehlcke Signed-off-by: Georgi Djakov --- drivers/interconnect/qcom/sdm845.c | 2 +- 1 fil

Re: [PATCH] media: dvb-frontends/cxd2099: report errors

2020-09-03 Thread Tom Rix
On 9/3/20 7:13 AM, Mauro Carvalho Chehab wrote: > Em Wed, 22 Jul 2020 06:41:26 -0700 > t...@redhat.com escreveu: > >> From: Tom Rix >> >> Clang static analysis reports this error >> >> drivers/media/dvb-frontends/cxd2099.c:420:2: warning: Undefined >> or garbage value returned to caller >>

[PATCH v3 1/7] interconnect: Introduce xlate_extended() callback

2020-09-03 Thread Georgi Djakov
Currently there is the xlate() callback, which is used by providers for mapping the nodes from phandle arguments. That's fine for simple mappings, but the phandle arguments could contain an additional data, such as tag information. Let's create another callback xlate_extended() for the cases where

[RFC V2 net-next 0/2] net: two updates related to UDP GSO

2020-09-03 Thread Huazhong Tan
There are two updates relates to UDP GSO. #1 adds a new GSO type for UDPv6 #2 adds check for UDP GSO when csum is disable in netdev_fix_features(). Changes since V1: - updates NETIF_F_GSO_LAST suggested by Willem de Bruijn. and add NETIF_F_GSO_UDPV6_L4 feature for each driver who support UDP GSO

[PATCH v6 7/8] X.509: support OSCCA sm2-with-sm3 certificate verification

2020-09-03 Thread Tianjia Zhang
The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. The method of generating Other User Information is defined as ZA=H256(ENTLA || IDA || a || b || xG || yG || xA || yA), it also specified in ht

[RFC V2 net-next 2/2] net: disable UDP GSO features when CSUM is disable

2020-09-03 Thread Huazhong Tan
When CSUM is not available, UDP GSO should be disable as well. Signed-off-by: Huazhong Tan --- net/core/dev.c | 12 1 file changed, 12 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index d42c9ea..0c78306 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -9402,6 +9402

[RFC V2 net-next 1/2] udp: add a GSO type for UDPv6

2020-09-03 Thread Huazhong Tan
In some cases, for UDP GSO, UDPv4 and UDPv6 need to be handled separately, for example, checksum offload, so add new GSO type SKB_GSO_UDPV6_L4 for UDPv6, and the old SKB_GSO_UDP_L4 stands for UDPv4. Signed-off-by: Huazhong Tan --- drivers/net/bonding/bond_main.c | 4 +++-

Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-03 Thread Al Viro
On Thu, Sep 03, 2020 at 04:30:03PM +0200, Christoph Hellwig wrote: > On Thu, Sep 03, 2020 at 03:28:03PM +0100, Al Viro wrote: > > On Thu, Sep 03, 2020 at 04:22:28PM +0200, Christoph Hellwig wrote: > > > > > Besides x86 and powerpc I plan to eventually convert all other > > > architectures, althoug

[PATCH v6 4/8] crypto: sm2 - introduce OSCCA SM2 asymmetric cipher algorithm

2020-09-03 Thread Tianjia Zhang
This new module implement the SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T 0003.3-2012 * GM/T 0003.4-2012 * GM/T 0003.5-2012 IETF: https:

Re: [PATCH 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-03 Thread Wang, Jiada
Hi Dmitry On 2020/08/28 17:19, Dmitry Osipenko wrote: 21.08.2020 11:22, Jiada Wang пишет: From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick D

[PATCH 10/14] x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h

2020-09-03 Thread Christoph Hellwig
At least for 64-bit this moves them closer to some of the defines they are based on, and it prepares for using the TASK_SIZE_MAX definition from assembly. Signed-off-by: Christoph Hellwig Reviewed-by: Kees Cook --- arch/x86/include/asm/page_32_types.h | 11 +++ arch/x86/include/asm/page_64_

Re: [PATCH] mmc: sdhci-msm: Prefer asynchronous probe

2020-09-03 Thread Ulf Hansson
On Thu, 3 Sep 2020 at 16:35, Doug Anderson wrote: > > Hi, > > On Thu, Sep 3, 2020 at 1:10 AM Ulf Hansson wrote: > > > > On Thu, 3 Sep 2020 at 01:43, Douglas Anderson wrote: > > > > > > Turning on initcall debug on one system showed this: > > > initcall sdhci_msm_driver_init+0x0/0x28 returned 0

[PATCH 13/14] powerpc: use non-set_fs based maccess routines

2020-09-03 Thread Christoph Hellwig
Provide __get_kernel_nofault and __put_kernel_nofault routines to implement the maccess routines without messing with set_fs and without opening up access to user space. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/uaccess.h | 16 1 file changed, 16 insertions(+

[PATCH 12/14] x86: remove address space overrides using set_fs()

2020-09-03 Thread Christoph Hellwig
Stop providing the possibility to override the address space using set_fs() now that there is no need for that any more. To properly handle the TASK_SIZE_MAX checking for 4 vs 5-level page tables on x86 a new alternative is introduced, which just like the one in entry_64.S has to use the hardcoded

[PATCH 04/14] sysctl: Convert to iter interfaces

2020-09-03 Thread Christoph Hellwig
From: "Matthew Wilcox (Oracle)" Using the read_iter/write_iter interfaces allows for in-kernel users to set sysctls without using set_fs(). Also, the buffer is a string, so give it the real type of 'char *', not void *. Signed-off-by: Matthew Wilcox (Oracle) Signed-off-by: Christoph Hellwig -

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-03 Thread Kirill A. Shutemov
On Wed, Sep 02, 2020 at 02:06:12PM -0400, Zi Yan wrote: > From: Zi Yan > > Hi all, > > This patchset adds support for 1GB THP on x86_64. It is on top of > v5.9-rc2-mmots-2020-08-25-21-13. > > 1GB THP is more flexible for reducing translation overhead and increasing the > performance of applicat

[PATCH 05/14] fs: don't allow kernel reads and writes without iter ops

2020-09-03 Thread Christoph Hellwig
Don't allow calling ->read or ->write with set_fs as a preparation for killing off set_fs. All the instances that we use kernel_read/write on are using the iter ops already. If a file has both the regular ->read/->write methods and the iter variants those could have different semantics for messed

[PATCH 09/14] lkdtm: remove set_fs-based tests

2020-09-03 Thread Christoph Hellwig
Once we can't manipulate the address limit, we also can't test what happens when the manipulation is abused. Signed-off-by: Christoph Hellwig --- drivers/misc/lkdtm/bugs.c | 10 -- drivers/misc/lkdtm/core.c | 2 -- drivers/misc/lkdtm/lkdtm.h | 2

remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-03 Thread Christoph Hellwig
Hi all, this series removes the last set_fs() used to force a kernel address space for the uaccess code in the kernel read/write/splice code, and then stops implementing the address space overrides entirely for x86 and powerpc. [Note to Linus: I'd like to get this into linux-next rather earlier t

Re: [PATCH v2 2/4] exit: support non-blocking pidfds

2020-09-03 Thread Oleg Nesterov
On 09/02, Christian Brauner wrote: > > It also makes the API more consistent and uniform. In essence, waitid() is > treated like a read on a non-blocking pidfd or a recvmsg() on a non-blocking > socket. > With the addition of support for non-blocking pidfds we support the same > functionality that

[PATCH 01/14] proc: remove a level of indentation in proc_get_inode

2020-09-03 Thread Christoph Hellwig
Just return early on inode allocation failure. Signed-off-by: Christoph Hellwig --- fs/proc/inode.c | 72 + 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 28d6105e908e4c..016b1302cbabc0 10064

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-03 Thread Vlastimil Babka
On 9/1/20 2:46 PM, Pavel Tatashin wrote: > There is a race during page offline that can lead to infinite loop: > a page never ends up on a buddy list and __offline_pages() keeps > retrying infinitely or until a termination signal is received. > > Thread#1 - a new process: > > load_elf_binary > b

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-03 Thread Pavel Tatashin
Thanks Michal, I will add your comments. Pasha On Thu, Sep 3, 2020 at 3:07 AM Michal Hocko wrote: > > On Tue 01-09-20 08:46:15, Pavel Tatashin wrote: > [...] > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > > index e9d5ab5d3ca0..d6d54922bfce 100644 > > --- a/mm/memory_hotplug.c > > +

Re: [PATCH net 3/3] hinic: fix bug of send pkts while setting channels

2020-09-03 Thread luobin (L)
On 2020/9/2 18:16, Eric Dumazet wrote: > > > On 9/2/20 2:41 AM, Luo bin wrote: >> When calling hinic_close in hinic_set_channels, netif_carrier_off >> and netif_tx_disable are excuted, and TX host resources are freed >> after that. Core may call hinic_xmit_frame to send pkt after >> netif_tx_disa

Re: [PATCH v5 3/5] cpufreq: report whether cpufreq supports Frequency Invariance (FI)

2020-09-03 Thread Sudeep Holla
On Thu, Sep 03, 2020 at 02:45:08PM +0100, Ionela Voinescu wrote: > Hi Sudeep, > > Thank you for your review here and for the other patches. > > On Wednesday 02 Sep 2020 at 14:28:38 (+0100), Sudeep Holla wrote: > [..] > > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > > > i

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-03 Thread Thomas Gleixner
On Thu, Sep 03 2020 at 00:34, Joel Fernandes wrote: > On Wed, Sep 2, 2020 at 12:57 PM Dario Faggioli wrote: >> 2) protection of the kernel from the other thread running in userspace >> may be achieved in different ways. This is one, sure. ASI will probably >> be another. Hence if/when we'll have b

Re: watchdog start on restart

2020-09-03 Thread Ivan Mikhaylov
On Thu, 2020-09-03 at 13:13 +0200, Christophe Leroy wrote: > You want to start the watchdog just before calling 'reboot' but want to > make sure that the watchdog will not reset the board before all > userspace has shut down correctly ? Yes, just for an example, in the nature exists some aspeed

Linux 5.4.62

2020-09-03 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.62 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Linux 5.8.6

2020-09-03 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.8.6 kernel. All users of the 5.8 kernel series must upgrade. The updated 5.8.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.8.y and can be browsed at the normal kernel.org git web browser:

Re: [RFC v4 1/1] selftests/cpuidle: Add support for cpuidle latency measurement

2020-09-03 Thread Artem Bityutskiy
On Thu, 2020-09-03 at 17:30 +0530, Pratik Sampat wrote: > I certainly did not know about that the Intel architecture being aware > of timers and pre-wakes the CPUs which makes the timer experiment > observations void. Well, things depend on platform, it is really "void", it is just different and i

Re: spi-imx: correct interpretation of num-cs DT property?

2020-09-03 Thread Mark Brown
On Thu, Sep 03, 2020 at 11:22:20AM +0200, Matthias Schiffer wrote: > - If num-cs is set, use that > - If num-cs is unset, use the number of cs-gpios > - If num-cs is unset and no cs-gpios are defined, use a driver-provided > default (which is 3 for spi-imx; this matches the number of native CS >

[PATCH net] net: phy: dp83867: Fix various styling and space issues

2020-09-03 Thread Dan Murphy
Fix spacing issues reported for misaligned switch..case and extra new lines. Also updated the file header to comply with networking commet style. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83867.c | 47 ++- 1 file changed, 22 insertions(+), 25 deletions(

[PATCH] media: em28xx: fix function pointer check

2020-09-03 Thread trix
From: Tom Rix clang static analyzer reports this problem em28xx-core.c:1162:4: warning: Called function pointer is null (null dereference) ops->suspend(dev->dev_next); ^~~ This is the problem block if (ops->suspend) ops->suspend

[PATCH] crypto: Mark tfm buffer as non leak.

2020-09-03 Thread Peter Enderborg
When running kmemleak on this I got a lot of unreferenced object 0xfff942d4ec00 (size 1024): comm "init", pid 1, jiffies 4294893619 (age 17475.864s) hex dump (first 32 bytes): 38 1d cf bd 9e ff ff ff b8 37 8b bd 9e ff ff ff 87.. 78 38 8b bd 9e ff ff ff 10 00 00 00 00 0

Re: [PATCH v2 11/11] lockdep,trace: Expose tracepoints

2020-09-03 Thread peterz
On Thu, Sep 03, 2020 at 04:00:47PM +0200, pet...@infradead.org wrote: > I stuck a tracepoint in intel_idle and had a rummage around. The below > seems to work for me now. Note that this will insta-kill all trace_*_rcuidle() tracepoint that are actually used in rcuidle. A git-grep seems to suggest

Re: [PATCH] media: dvb-frontends/cxd2099: report errors

2020-09-03 Thread Mauro Carvalho Chehab
Em Wed, 22 Jul 2020 06:41:26 -0700 t...@redhat.com escreveu: > From: Tom Rix > > Clang static analysis reports this error > > drivers/media/dvb-frontends/cxd2099.c:420:2: warning: Undefined > or garbage value returned to caller > return val; > ^~ > > In read_cam_contr

Re: [PATCH] x86/mm/32: Bring back vmalloc faulting on x86_32

2020-09-03 Thread Andy Lutomirski
On Wed, Sep 2, 2020 at 8:59 AM Joerg Roedel wrote: > > From: Joerg Roedel > > One can not simply remove vmalloc faulting on x86-32. Upstream > > commit: 7f0a002b5a21 ("x86/mm: remove vmalloc faulting") > > removed it on x86 alltogether because previously the > arch_sync_kernel_mappings()

Re: [PATCH v2 3/3] iio: gyro: adxrs290: Add debugfs register access support

2020-09-03 Thread Andy Shevchenko
On Thu, Sep 3, 2020 at 4:57 PM Nishant Malpani wrote: > On Thu, Sep 3, 2020 at 6:55 PM Andy Shevchenko > wrote: ... > Umm, I'm sorry, I don't see why'd it be favourable for us to do it > this way. Also, I *think* Jonathan is fine with how it's being done > now. I have no strong opinion, so wha

Re: [PATCH next] io_uring: fix task hung in io_uring_setup

2020-09-03 Thread Jens Axboe
On 9/3/20 7:21 AM, Hillf Danton wrote: > > The smart syzbot found the following issue: > > INFO: task syz-executor047:6853 blocked for more than 143 seconds. > Not tainted 5.9.0-rc3-next-20200902-syzkaller #0 > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > task

Re: [PATCH v2 3/3] iio: gyro: adxrs290: Add debugfs register access support

2020-09-03 Thread Nishant Malpani
Hello, On Thu, Sep 3, 2020 at 6:55 PM Andy Shevchenko wrote: > > On Thu, Sep 3, 2020 at 4:10 PM Nishant Malpani > wrote: > > > > Extend support to read/write byte data from/to the device using > > debugfs iio interface. > > ... > > > +static int adxrs290_reg_access(struct iio_dev *indio_dev, un

Linux 4.9.235

2020-09-03 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.9.235 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.14.196

2020-09-03 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.14.196 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

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