Re: [PATCH v1 07/25] lockdep: Add preemption disabled assertion API

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 02:52:31AM +0200, Ahmed S. Darwish wrote: > Peter Zijlstra wrote: > > +#define lockdep_assert_irqs_enabled() > > \ > > +do { > > \ > > + WARN_ON_ONCE(debug_locks

RE: [PATCH v29 00/20] Intel SGX foundations

2020-05-26 Thread David Laight
From: Pavel Machek > Sent: 24 May 2020 22:27 .. > It provides false sense of security, and I'm afraid big companies will try to > force > people to use it. "DRM, now with hardware support". "Finally advertisments > you can > not skip". "Just run this piece of code on your machine to access your b

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 09:57:36AM +0200, Peter Zijlstra wrote: > On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > Since there seem to be kernel modules floating around that set > > > FSGSBA

Re: [PATCH v2 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-26 Thread Paraschiv, Andra-Irina
On 26/05/2020 09:42, Greg KH wrote: On Mon, May 25, 2020 at 11:49:50PM +0300, Paraschiv, Andra-Irina wrote: On 22/05/2020 10:07, Greg KH wrote: On Fri, May 22, 2020 at 09:29:35AM +0300, Andra Paraschiv wrote: +static char *ne_cpus; +module_param(ne_cpus, charp, 0644); +MODULE_PARM_DESC(ne_c

Re: [PATCH] mm/gup: correct pin_user_pages.rst location

2020-05-26 Thread John Hubbard
On 2020-05-26 01:13, Vitaly Kuznetsov wrote: pin_user_pages.rst lives in Documentation/core-api/, not Documentation/vm/, adjust all links accordingly. Fixes: 3faa52c03f44 ("mm/gup: track FOLL_PIN pages") Fixes: eddb1c228f79 ("mm/gup: introduce pin_user_pages*() and FOLL_PIN") Signed-off-by: Vita

Re: [RFC/RFT][PATCH] cpufreq: intel_pstate: Work in passive mode with HWP enabled

2020-05-26 Thread Rafael J. Wysocki
to On Mon, May 25, 2020 at 10:57 PM Francisco Jerez wrote: > > "Rafael J. Wysocki" writes: > > > On Mon, May 25, 2020 at 3:39 AM Francisco Jerez > > wrote: > >> > >> "Rafael J. Wysocki" writes: > >> > >> > From: Rafael J. Wysocki > >> > > >> > Allow intel_pstate to work in the passive mode wi

Re: [PATCH 2/5] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-26 Thread Christian Brauner
On Mon, May 25, 2020 at 11:59:18PM -0700, Sargun Dhillon wrote: > On Mon, May 25, 2020 at 6:50 AM Christian Brauner > wrote: > > > > On Sun, May 24, 2020 at 04:39:39PM -0700, Sargun Dhillon wrote: > > > This adds a seccomp notifier ioctl which allows for the listener to "add" > > > file descriptor

Re: [PATCH] mfd: sprd: Add wakeup capability for PMIC irq

2020-05-26 Thread Lee Jones
On Thu, 07 May 2020, Baolin Wang wrote: > When changing to use suspend-to-idle to save power, the PMIC irq can not > wakeup the system due to lack of wakeup capability, which will cause > the sub-irqs (such as power key) of the PMIC can not wake up the system. > Thus we can add the wakeup capabili

Re: [patch V9 04/39] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-26 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Thomas Gleixner > > After a lengthy discussion [1] it turned out that RCU does not need a full > rcu_irq_enter/exit() when RCU is already watching. All it needs if > NOHZ_FULL is active is to check whether the tick needs to be restarted. > > This allows to av

Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-26 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "David Laight" > An: "Richard Weinberger" , "Sasha Levin" > > CC: "hpa" , "tglx" , "Don Porter" > , "Jarkko Sakkinen" > , "Andi Kleen" , > "linux-kernel" , > "bp" , "Andy Lutomirski" , "Dave Hansen" > , "Tony Luck" > , "Ravi V Shankar" , "chang > seok ba

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-26 Thread Jiri Kosina
On Tue, 14 Apr 2020, Kai-Heng Feng wrote: > After commit c23e2043d5f7 ("HID: multitouch: do not filter mice nodes"), > MT_CLS_WIN_8 also supports mouse nodes, hence make MT_CLS_WIN_8_DUAL > redundant. > > Remove MT_CLS_WIN_8_DUAL accordingly. Benjamin, can I get your Ack on this one please? Tha

Re: [PATCH v2] mfd: tps65910: Correct power-off programming sequence

2020-05-26 Thread Lee Jones
On Sun, 24 May 2020, Dmitry Osipenko wrote: > This patch fixes system shutdown on a devices that use TPS65910 as a > system's power controller. In accordance to the TPS65910 datasheet, the > PMIC's state-machine transitions into the OFF state only when DEV_OFF > bit of DEVCTRL_REG is set. The ON /

Re: [v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-26 Thread Markus Elfring
>> I suggest to move the addition of such input parameter validation >> to a separate update step. >> > Um...The 'src_nents' will be used as a loop condition, > so validate it here is needed ? Would you prefer to add such checking as the first update in another small patch series? Regards, Markus

Re: [PATCH 2/2] kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs

2020-05-26 Thread Rafael J. Wysocki
On Tue, May 26, 2020 at 7:58 AM Greg Kroah-Hartman wrote: > > On Mon, May 25, 2020 at 03:49:01PM -0700, Dmitry Torokhov wrote: > > On Sun, May 24, 2020 at 8:34 AM Greg Kroah-Hartman > > wrote: > > > > > > It is possible for a KOBJ_REMOVE uevent to be sent to userspace way > > > after the files ar

Re: [PATCH v11 2/6] mfd: mp2629: Add support for mps battery charger

2020-05-26 Thread Lee Jones
On Sat, 23 May 2020, saravanan sekar wrote: > Hi Lee, > > On 19/05/20 12:37 pm, Lee Jones wrote: > > On Thu, 30 Apr 2020, Saravanan Sekar wrote: > > > > > mp2629 is a highly-integrated switching-mode battery charge management > > > device for single-cell Li-ion or Li-polymer battery. > > > > >

Re: [PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Rafael J. Wysocki
On Tue, May 26, 2020 at 9:05 AM Saravana Kannan wrote: > > When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver > core: Add device link support for SYNC_STATE_ONLY flag"), > SYNC_STATE_ONLY links were treated similar to STATELESS links in terms > of not blocking consumer probe if

[PATCH ethtool v1] netlink: add LINKSTATE SQI support

2020-05-26 Thread Oleksij Rempel
Some PHYs provide Signal Quality Index (SQI) if the link is in active state. This information can help to diagnose cable and system design related issues. Signed-off-by: Oleksij Rempel --- netlink/desc-ethtool.c | 2 ++ netlink/settings.c | 16 uapi/linux/ethtoo

Re: [PATCH] i2c: stm32f7: Fix runtime PM imbalance in stm32f7_i2c_reg_slave

2020-05-26 Thread Alain Volmat
Hi Dinghao, Thanks for the patch. Indeed, this should be fixed. Overall, there are several other calls to pm_runtime_get_sync within this driver, would you like to fix them all at once ? On Thu, May 21, 2020 at 03:05:07PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime P

Re: [PATCH] serial: 8250: probe all 16550A variants by default

2020-05-26 Thread Josh Triplett
On Tue, May 26, 2020 at 10:05:25AM +0300, Maxim Kochetkov wrote: > This change breaks all my devices: OMAP-L138 (davinci based), LS1021A, > T1040, Marvell (kirkwood2 based). Only enabling VARIANTS on all my devices > fix the issue. Preparing a patch right now, with the appropriate Fixes tag so it

[PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Flavio Suligoi
The documentation reports the wrong macro names related to the pca9532 instead of the pca955x Signed-off-by: Flavio Suligoi --- Documentation/devicetree/bindings/leds/leds-pca955x.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds

[PATCH] serial: 8250: Enable 16550A variants by default on non-x86

2020-05-26 Thread Josh Triplett
Some embedded devices still use these serial ports; make sure they're still enabled by default on architectures more likely to have them, to avoid rendering someone's console unavailable. Fixes: dc56ecb81a0a ("serial: 8250: Support disabling mdelay-filled probes of 16550A variants") Signed-off-by

Re: [PATCH][next] media: atomisp: fix a handful of spelling mistakes

2020-05-26 Thread Sakari Ailus
On Thu, May 21, 2020 at 08:44:32PM +0100, Colin King wrote: > From: Colin Ian King > > There are several spelling mistakes in various messages and literal > strings. Fix these. > > Signed-off-by: Colin Ian King Acked-by: Sakari Ailus -- Sakari Ailus

Re: [PATCH 2/4] ARM: dts: r8a7742-iwg21d-q7: Enable SDHI2 controller

2020-05-26 Thread Lad, Prabhakar
Hi Geert, On Tue, May 26, 2020 at 8:58 AM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar > wrote: > > Enable the SDHI2 controller on iWave RZ/G1H carrier board. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Marian-Cristian Rotariu > > > >

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-26 Thread Benjamin Tissoires
On Tue, May 26, 2020 at 10:24 AM Jiri Kosina wrote: > > On Tue, 14 Apr 2020, Kai-Heng Feng wrote: > > > After commit c23e2043d5f7 ("HID: multitouch: do not filter mice nodes"), > > MT_CLS_WIN_8 also supports mouse nodes, hence make MT_CLS_WIN_8_DUAL > > redundant. > > > > Remove MT_CLS_WIN_8_DUAL

[PATCH 1/1] phy: intel: Fix compilation error on FIELD_PREP usage

2020-05-26 Thread Dilip Kota
FIELD_PREP expects mask variable datatype as unsigned long and constant. Make the mask argument in combo_phy_w32_off_mask () as unsigned long const datatype. Error reported as: In file included from include/linux/build_bug.h:5, from include/linux/bitfield.h:10, from drivers/phy/intel/phy-intel-com

Re: [PATCH] mtd: Replace zero-length array with flexible-array

2020-05-26 Thread Vignesh Raghavendra
On Thu, 7 May 2020 14:00:33 -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-26 Thread Baoquan He
On 05/22/20 at 05:20pm, Mike Rapoport wrote: > Hello Baoquan, > > On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: > > On 05/22/20 at 03:01pm, Baoquan He wrote: > > > > > > So let's add these unavailable ranges into memblock and reserve them > > > in init_unavailable_range() instead. W

Re: [PATCH v2] perf: arm_dsu: Support DSU ACPI devices.

2020-05-26 Thread Will Deacon
On Fri, May 22, 2020 at 11:45:56AM +0100, Suzuki K Poulose wrote: > Will, > > Thanks for the Cc. > > On 05/18/2020 06:21 PM, Will Deacon wrote: > > On Mon, May 11, 2020 at 01:32:40PM -0700, Tuan Phan wrote: > > > Add ACPI node probing device support. Each DSU ACPI node > > > defines a "cpus" pack

Re: [PATCH] mm/gup: correct pin_user_pages.rst location

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 10:13:38AM +0200, Vitaly Kuznetsov wrote: > pin_user_pages.rst lives in Documentation/core-api/, not Documentation/vm/, > adjust all links accordingly. > > Fixes: 3faa52c03f44 ("mm/gup: track FOLL_PIN pages") > Fixes: eddb1c228f79 ("mm/gup: introduce pin_user_pages*() and F

Re: [PATCH v2] tee: convert get_user_pages() --> pin_user_pages()

2020-05-26 Thread Jens Wiklander
Hi John, On Tue, May 26, 2020 at 1:32 AM John Hubbard wrote: > > This code was using get_user_pages*(), in a "Case 2" scenario > (DMA/RDMA), using the categorization from [1]. That means that it's > time to convert the get_user_pages*() + put_page() calls to > pin_user_pages*() + unpin_user_pages

Re: [PATCH] PM: runtime: clk: Fix clk_pm_runtime_get() error path

2020-05-26 Thread Rafael J. Wysocki
On Mon, May 25, 2020 at 11:31 AM Ulf Hansson wrote: > > On Fri, 22 May 2020 at 20:39, Rafael J. Wysocki wrote: > > > > On Fri, May 22, 2020 at 7:19 AM Marek Szyprowski > > wrote: > > > > > > Hi Rafael, > > > > > > On 21.05.2020 19:08, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > >

Re: [PATCH] xen: move xen_setup_callback_vector() definition to include/xen/hvm.h

2020-05-26 Thread Jürgen Groß
On 20.05.20 18:16, Vitaly Kuznetsov wrote: Kbuild test robot reports the following problem on ARM: drivers/xen/events/events_base.c:1664:6: warning: no previous prototype for 'xen_setup_callback_vector' [-Wmissing-prototypes] 1664 | void xen_setup_callback_vector(void) {} | ^~~

[PATCH] v4l2-ctrl: add control for thumnails

2020-05-26 Thread Stanimir Varbanov
Add v4l2 control for decoder thumbnail. Signed-off-by: Stanimir Varbanov --- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 7 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h| 2 ++ 3 files changed,

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-26 Thread David Hildenbrand
On 26.05.20 10:45, Baoquan He wrote: > On 05/22/20 at 05:20pm, Mike Rapoport wrote: >> Hello Baoquan, >> >> On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: >>> On 05/22/20 at 03:01pm, Baoquan He wrote: So let's add these unavailable ranges into memblock and reserve them i

Re: [PATCH v9 2/4] media: i2c: Add MAX9286 driver

2020-05-26 Thread Sakari Ailus
Hi Laurent, On Wed, May 20, 2020 at 03:50:20AM +0300, Laurent Pinchart wrote: > Hi Sakari, > > On Mon, May 18, 2020 at 12:45:18PM +0100, Kieran Bingham wrote: > > Hi Sakari, > > > > There are only fairly minor comments here, fix ups will be included in a > > v10. > > > > Is there anything major

Re: [PATCH v3] workqueue: Fix double kfree for rescuer

2020-05-26 Thread Lai Jiangshan
On Mon, May 25, 2020 at 5:22 PM wrote: > > From: Zhang Qiang > > The callback function "rcu_free_wq" could be called after memory > was released for "rescuer" already, Thus delete a misplaced call > of the function "kfree". Hello wq->rescuer is guaranteed to be NULL in rcu_free_wq() since def98

Re: [patch V9 04/39] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-26 Thread Thomas Gleixner
Ingo Molnar writes: > * Thomas Gleixner wrote: > > Any objections to the simplified/flattened control flow below? No, but you really don't want to do it at this point. Patch 7/39 is where you want to do that.

Re: [PATCH] HID: sony: Fix for broken buttons on DS3 USB dongles

2020-05-26 Thread Jiri Kosina
On Wed, 13 May 2020, Scott Shumate wrote: > Hi Roderick, > > The official DS3 has a Report Count(19) instead of Report Count(13) in the > exact same offset. I have no idea what the silicon vendor for these dongles > was thinking but it's suspicious that the official count of 19 (0x13) turned > i

Re: [v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Markus Elfring
>>> … Thus release specific resources before >> >> Is there a need to improve also this information another bit? >> > You mean the last two paragraph is redundant ? No. I became curious if you would like to choose a more helpful information according to the wording “specific resources”. Regards,

Re: [PATCH v3 04/10] media: i2c: imx290: Add support for 2 data lanes

2020-05-26 Thread Sakari Ailus
Hi Andrey, On Sun, May 24, 2020 at 10:24:59PM +0300, Andrey Konovalov wrote: > From: Manivannan Sadhasivam > > The IMX290 sensor can output frames with 2/4 CSI2 data lanes. This commit > adds support for 2 lane mode in addition to the 4 lane and also > configuring the data lane settings in the d

Re: [PATCH v3 2/3] riscv: Introduce CONFIG_RELOCATABLE

2020-05-26 Thread Zong Li
On Sun, May 24, 2020 at 4:55 PM Alexandre Ghiti wrote: > > This config allows to compile the kernel as PIE and to relocate it at > any virtual address at runtime: this paves the way to KASLR and to 4-level > page table folding at runtime. Runtime relocation is possible since > relocation metadata

RE: [PATCH 1/2] hwmon: pwm-fan: Add profile support and add remove module support

2020-05-26 Thread Sandipan Patra
Hi Uwe, > -Original Message- > From: Uwe Kleine-König > Sent: Tuesday, May 26, 2020 12:35 PM > To: Sandipan Patra > Cc: Thierry Reding ; Jonathan Hunter > ; ka...@wypas.org; jdelv...@suse.com; linux@roeck- > us.net; robh...@kernel.org; Bibek Basu ; Bitan Biswas > ; linux-...@vger.kerne

[PATCH v12 0/6] Add battery charger driver support for MP2629

2020-05-26 Thread Saravanan Sekar
changes in v12: - added SOB Acked-for-MFD-by: Lee Jones changes in v11: - module_remove part replaced by devm_add_action_or_reset in charger patch - minor review comments solved in mfd and adc patch I expect, that Lee will provide an immutable branch for me and Jonathan once the MFD bits have

[PATCH v12 3/6] iio: adc: mp2629: Add support for mp2629 ADC driver

2020-05-26 Thread Saravanan Sekar
Add support for 8-bit resolution ADC readings for input power supply and battery charging measurement. Provides voltage, current readings to mp2629 power supply driver. Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko Reviewed-by: Jonathan Cameron Acked-for-MFD-by: Lee Jones --- dr

[PATCH v12 6/6] MAINTAINERS: Add entry for mp2629 Battery Charger driver

2020-05-26 Thread Saravanan Sekar
Add MAINTAINERS entry for Monolithic Power Systems mp2629 Charger driver. Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko Reviewed-by: Sebastian Reichel Acked-for-MFD-by: Lee Jones --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS i

[PATCH v12 1/6] dt-bindings: mfd: add document bindings for mp2629

2020-05-26 Thread Saravanan Sekar
Add device tree binding information for mp2629 mfd driver. Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- .../devicetree/bindings/mfd/mps,mp2629.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode

[PATCH v12 4/6] power: supply: Add support for mps mp2629 battery charger

2020-05-26 Thread Saravanan Sekar
The mp2629 provides switching-mode battery charge management for single-cell Li-ion or Li-polymer battery. Driver supports the access/control input source and battery charging parameters. Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko Reviewed-by: Sebastian Reichel Acked-for-MFD-by

[PATCH v12 2/6] mfd: mp2629: Add support for mps battery charger

2020-05-26 Thread Saravanan Sekar
mp2629 is a highly-integrated switching-mode battery charge management device for single-cell Li-ion or Li-polymer battery. Add MFD core enables chip access for ADC driver for battery readings, and a power supply battery-charger driver Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko

[PATCH v12 5/6] power: supply: mp2629: Add impedance compensation config

2020-05-26 Thread Saravanan Sekar
Allows the user to compensate the intrinsic resistance of the battery to accelerate the charging cycle. Signed-off-by: Saravanan Sekar Reviewed-by: Andy Shevchenko Reviewed-by: Sebastian Reichel Acked-for-MFD-by: Lee Jones --- Documentation/ABI/testing/sysfs-class-power-mp2629 | 8 1

Re: [PATCH] capabilities: Introduce CAP_RESTORE

2020-05-26 Thread Radostin Stoyanov
On 25/05/2020 22:53, Jann Horn wrote: On Fri, May 22, 2020 at 7:55 AM Adrian Reber wrote: This enables CRIU to checkpoint and restore a process as non-root. Over the last years CRIU upstream has been asked a couple of time if it is possible to checkpoint and restore a process as non-root. The

Re: [PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-26 Thread dillon min
Hi Andy, Thanks for input. On Tue, May 26, 2020 at 3:46 PM Andy Shevchenko wrote: > > On Mon, May 25, 2020 at 6:46 AM wrote: > > > > From: dillon min > > > > This driver combine tiny/ili9341.c mipi_dbi_interface driver > > with mipi_dpi_interface driver, can support ili9341 with serial

Re: [PATCH 1/2] iommu/hyper-v: Constify hyperv_ir_domain_ops

2020-05-26 Thread Wei Liu
On Mon, May 25, 2020 at 11:49:57PM +0200, Rikard Falkeborn wrote: > The struct hyperv_ir_domain_ops is not modified and can be made const to > allow the compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename >29161180112052161460

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-26 Thread Lorenzo Pieralisi
On Thu, May 14, 2020 at 09:16:38PM +0800, Jiaxun Yang wrote: > This controller can be found on Loongson-2K SoC, Loongson-3 > systems with RS780E/LS7A PCH. > > The RS780E part of code was previously located at > arch/mips/pci/ops-loongson3.c and now it can use generic PCI > driver implementation. >

[PATCH ethtool v1] netlink: add master/slave configuration support

2020-05-26 Thread Oleksij Rempel
This UAPI is needed for BroadR-Reach 100BASE-T1 devices. Due to lack of auto-negotiation support, we needed to be able to configure the MASTER-SLAVE role of the port manually or from an application in user space. The same UAPI can be used for 1000BASE-T or MultiGBASE-T devices to force MASTER or S

Re: [PATCH] mm/z3fold: silence kmemleak false positives of slots

2020-05-26 Thread Catalin Marinas
On Fri, May 22, 2020 at 06:00:52PM -0400, Qian Cai wrote: > diff --git a/mm/z3fold.c b/mm/z3fold.c > index 8c3bb5e508b8..460b0feced26 100644 > --- a/mm/z3fold.c > +++ b/mm/z3fold.c > @@ -43,6 +43,7 @@ > #include > #include > #include > +#include > > /* > * NCHUNKS_ORDER determines the i

Re: [RFC PATCH V2 5/7] x86/entry: don't shift stack on #DB

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 01:42:19AM +, Lai Jiangshan wrote: > debug_enter() will disable #DB, there should be no recursive #DB. should being the operative word. I have similar patches but was still debating what to do about kgdb, I think we'll just have to mark it BROKEN for now.

Re: [v3] workqueue: Fix double kfree for rescuer

2020-05-26 Thread Markus Elfring
> wq->rescuer is guaranteed to be NULL in rcu_free_wq() I was unsure about this data processing detail. > The patch is a cleanup to remove a "kfree(NULL);". I would prefer also an improved commit message according to the understanding of the software situation in this direction. Regards, Marku

Re: [PATCH v8 3/3] PM / AVS: SVS: Introduce SVS engine

2020-05-26 Thread Roger Lu
Hi Matthias, Thanks for the feedback. On Fri, 2020-05-22 at 17:38 +0200, Matthias Brugger wrote: > > On 22/05/2020 11:40, Roger Lu wrote: > > > > Hi Enric, > > > > On Tue, 2020-05-19 at 17:30 +0200, Enric Balletbo Serra wrote: > >> Hi Roger, > >> > >> Thank you for your patch. I have the feeli

Re: [PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-26 Thread Lorenzo Pieralisi
On Sat, May 23, 2020 at 12:36:56AM +0200, Thomas Bogendoerfer wrote: > On Fri, May 22, 2020 at 04:22:11PM +0100, Lorenzo Pieralisi wrote: > > On Fri, May 22, 2020 at 04:25:50PM +0200, Thomas Bogendoerfer wrote: > > > On Thu, May 14, 2020 at 09:16:41PM +0800, Jiaxun Yang wrote: > > > > We can now en

Re: [PATCH v3 05/10] media: i2c: imx290: Add configurable link frequency and pixel rate

2020-05-26 Thread Sakari Ailus
Hi Andrey, On Sun, May 24, 2020 at 10:25:00PM +0300, Andrey Konovalov wrote: > From: Manivannan Sadhasivam > > IMX290 operates with multiple link frequency and pixel rate combinations. > The initial driver used a single setting for both but since we now have > the lane count support in place, le

Re: [PATCH v3 04/10] media: i2c: imx290: Add support for 2 data lanes

2020-05-26 Thread Andrey Konovalov
Hi Sakari, Thank you for the review On 26.05.2020 12:01, Sakari Ailus wrote: Hi Andrey, On Sun, May 24, 2020 at 10:24:59PM +0300, Andrey Konovalov wrote: From: Manivannan Sadhasivam The IMX290 sensor can output frames with 2/4 CSI2 data lanes. This commit adds support for 2 lane mode in add

Re: [PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-26 Thread Jiaxun Yang
于 2020年5月26日 GMT+08:00 下午5:12:27, Lorenzo Pieralisi 写到: >On Sat, May 23, 2020 at 12:36:56AM +0200, Thomas Bogendoerfer wrote: >> On Fri, May 22, 2020 at 04:22:11PM +0100, Lorenzo Pieralisi wrote: >> > On Fri, May 22, 2020 at 04:25:50PM +0200, Thomas Bogendoerfer wrote: >> > > On Thu, May 14, 2

Re: [PATCH v3 04/10] media: i2c: imx290: Add support for 2 data lanes

2020-05-26 Thread Sakari Ailus
Hi Andrey, On Tue, May 26, 2020 at 12:14:33PM +0300, Andrey Konovalov wrote: > Hi Sakari, > > Thank you for the review > > On 26.05.2020 12:01, Sakari Ailus wrote: > > Hi Andrey, > > > > On Sun, May 24, 2020 at 10:24:59PM +0300, Andrey Konovalov wrote: > > > From: Manivannan Sadhasivam > > >

Re: [PATCH v3 08/10] media: i2c: imx290: Add support to enumerate all frame sizes

2020-05-26 Thread Sakari Ailus
Hi Andrey, On Sun, May 24, 2020 at 10:25:03PM +0300, Andrey Konovalov wrote: > From: Manivannan Sadhasivam > > Add support to enumerate all frame sizes supported by IMX290. This is > required for using with userspace tools such as libcamera. > > Signed-off-by: Manivannan Sadhasivam > Signed-of

Re: [PATCH v3 64/75] x86/sev-es: Cache CPUID results for improved performance

2020-05-26 Thread Borislav Petkov
On Tue, May 19, 2020 at 10:16:37PM -0700, Sean Christopherson wrote: > The whole cache on-demand approach seems like overkill. The number of CPUID > leaves that are invoked after boot with any regularity can probably be counted > on one hand. IIRC glibc invokes CPUID to gather TLB/cache info, XC

Re: [PATCH v5 0/8] Enable ili9341 and l3gd20 on stm32f429-disco

2020-05-26 Thread Mark Brown
On Mon, 25 May 2020 11:45:40 +0800, dillon.min...@gmail.com wrote: > V5's update based on Mark Brown's suggestion, use 'SPI_MASTER_MUST_RX' > for SPI_SIMPLEX_RX mode on stm32 spi controller. > > V5: > 1 instead of add send dummy data out under SIMPLEX_RX mode, >add flags 'SPI_CONTROLLER_MUST_T

Re: [PATCH 1/3] dt-bindings: pinctrl: Add bindings for mscc,ocelot-sgpio

2020-05-26 Thread Linus Walleij
On Mon, May 25, 2020 at 4:38 PM Lars Povlsen wrote: > Yes, the problem is they're not in sequence. F.ex. you could have ports > 0,1 enabled, skip 2,3,4 and have 5,6,7 enabled. Just use disabled nodes. That would look like this in my idea of a device tree: pinctrl@nnn { gpio0: gpio@0 {

[PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Flavio Suligoi
The documentation reports the wrong macro names related to the pca9532 instead of the pca955x Signed-off-by: Flavio Suligoi --- Documentation/devicetree/bindings/leds/leds-pca955x.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 10:17:52AM +0200, Greg KH wrote: > On Tue, May 26, 2020 at 09:57:36AM +0200, Peter Zijlstra wrote: > > On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > > > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > > > From: Andi Kleen > > > > > > > > Since

[PATCH v11 2/5] PCI: Add Loongson PCI Controller support

2020-05-26 Thread Jiaxun Yang
This controller can be found on Loongson-2K SoC, Loongson-3 systems with RS780E/LS7A PCH. The RS780E part of code was previously located at arch/mips/pci/ops-loongson3.c and now it can use generic PCI driver implementation. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring Acked-by: Lorenzo P

[PATCH v11 1/5] PCI: Don't disable decoding when mmio_always_on is set

2020-05-26 Thread Jiaxun Yang
Don't disable MEM/IO decoding when a device have both non_compliant_bars and mmio_always_on. That would allow us quirk devices with junk in BARs but can't disable their decoding. Signed-off-by: Jiaxun Yang Acked-by: Bjorn Helgaas --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v11 3/5] dt-bindings: Document Loongson PCI Host Controller

2020-05-26 Thread Jiaxun Yang
PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff --g

Re: [PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Pavel Machek
On Tue 2020-05-26 11:20:52, Flavio Suligoi wrote: > The documentation reports the wrong macro names > related to the pca9532 instead of the pca955x > > Signed-off-by: Flavio Suligoi Nothing obviously wrong, but why did you send it twice within half an hour?

[PATCH v11 0/5] Loongson Generic PCI v11

2020-05-26 Thread Jiaxun Yang
v11 fixes a minor style issue in patch 2. Now it have got enough ack, Thomas, cloud you please apply it to mips-next? Thanks. Jiaxun Yang (5): PCI: Don't disable decoding when mmio_always_on is set PCI: Add Loongson PCI Controller support dt-bindings: Document Loongson PCI Host Controller

Re: [PATCH v6 3/5] dt-bindings: iio: magnetometer: ak8975: add gpio reset support

2020-05-26 Thread Linus Walleij
On Mon, May 25, 2020 at 5:13 PM Jonathan Albrieux wrote: > Add reset-gpio support. > > Without reset's deassertion during ak8975_power_on(), driver's probe fails > on ak8975_who_i_am() while checking for device identity for AK09911 chip. > > AK09911 has an active low reset gpio to handle register

[PATCH v11 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-26 Thread Jiaxun Yang
Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12 ++

Re: [PATCHv2 2/2] tpm_ftpm_tee: register driver on TEE bus

2020-05-26 Thread Sumit Garg
+ Thiru (original author), Ilias, Joakim Hi Jarkko, On Mon, 25 May 2020 at 12:20, Maxim Uvarov wrote: > > On Fri, 22 May 2020 at 23:03, Jarkko Sakkinen > wrote: > > > > On Fri, May 22, 2020 at 10:29:44PM +0300, Maxim Uvarov wrote: > > > On Fri, 22 May 2020 at 20:15, Jarkko Sakkinen > > > wrote

[PATCH v11 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-26 Thread Jiaxun Yang
We can now enable generic PCI driver in Kconfig, and remove legacy PCI driver code. Radeon vbios quirk is moved to the platform folder to fit the new structure. Signed-off-by: Jiaxun Yang -- v9: Fix licenses tag --- arch/mips/Kconfig | 1 + arch/mips/loongson64/Makefile

Re: [v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
On 2020/5/26 17:01, Markus Elfring wrote: … Thus release specific resources before >>> >>> Is there a need to improve also this information another bit? >>> >> You mean the last two paragraph is redundant ? > > No. > > I became curious if you would like to choose a more helpful informatio

RE: [PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Flavio Suligoi
> Subject: Re: [PATCH] dt-bindings: leds: fix macro names for pca955x > > On Tue 2020-05-26 11:20:52, Flavio Suligoi wrote: > > The documentation reports the wrong macro names > > related to the pca9532 instead of the pca955x > > > > Signed-off-by: Flavio Suligoi > > Nothing obviously wrong, but

Re: [PATCH v3 05/10] media: i2c: imx290: Add configurable link frequency and pixel rate

2020-05-26 Thread Andrey Konovalov
Hi Sakari, Thank you for the review! On 26.05.2020 12:12, Sakari Ailus wrote: Hi Andrey, On Sun, May 24, 2020 at 10:25:00PM +0300, Andrey Konovalov wrote: From: Manivannan Sadhasivam IMX290 operates with multiple link frequency and pixel rate combinations. The initial driver used a single s

Re: [PATCH v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-26 Thread Jiaxun Yang
On Mon, 25 May 2020 11:12:26 +0100 Marc Zyngier wrote: > On Sat, 16 May 2020 09:29:02 +0100, > Jiaxun Yang wrote: > > > > Add binding for Loongson-3 HyperTransport Interrupt Vector > > Controller. > > > > Signed-off-by: Jiaxun Yang > > -- > > v4: Drop ref, '|', add additionalProperties, fix e

[tip: x86/apic] x86/apic: Make TSC deadline timer detection message visible

2020-05-26 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/apic branch of tip: Commit-ID: de308d1815c9e8fe602a958c5c76142ff6501d75 Gitweb: https://git.kernel.org/tip/de308d1815c9e8fe602a958c5c76142ff6501d75 Author:Borislav Petkov AuthorDate:Mon, 25 May 2020 12:38:39 +02:00 Committe

Re: [PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Pavel Machek
On Tue 2020-05-26 09:25:58, Flavio Suligoi wrote: > > Subject: Re: [PATCH] dt-bindings: leds: fix macro names for pca955x > > > > On Tue 2020-05-26 11:20:52, Flavio Suligoi wrote: > > > The documentation reports the wrong macro names > > > related to the pca9532 instead of the pca955x > > > > > >

Re: [patch V9 30/39] x86/entry: Convert various hypervisor vectors to IDTENTRY_SYSVEC

2020-05-26 Thread Wei Liu
On Thu, May 21, 2020 at 10:05:43PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner > > Convert various hypervisor vectors to IDTENTRY_SYSVEC > - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC > - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC > - Remove the ASM idtentries in

Re: [v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Markus Elfring
> I respect your work, but please let us to focus on the code itself. I think > experts in this area know what these patches want to solve after look at the > code. I suggest to reconsider such a view. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/s

Re: [PATCH 1/6] mtd: spi-nor: cadence-quadspi: Drop cdns,is-decoded-cs property

2020-05-26 Thread Vignesh Raghavendra
On 09/05/20 12:24 am, Vignesh Raghavendra wrote: > Cadence QSPI provides a way to automatically decode CS based on the > offset accessed within memory map window. This feature cannot be > supported in spi-mem framework as controller driver would not have > access to flash geometry. Therefore dro

RE: [PATCH] dt-bindings: leds: fix macro names for pca955x

2020-05-26 Thread Flavio Suligoi
> Subject: Re: [PATCH] dt-bindings: leds: fix macro names for pca955x > > On Tue 2020-05-26 09:25:58, Flavio Suligoi wrote: > > > Subject: Re: [PATCH] dt-bindings: leds: fix macro names for pca955x > > > > > > On Tue 2020-05-26 11:20:52, Flavio Suligoi wrote: > > > > The documentation reports the

Re: Re: [PATCH] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-05-26 Thread Linus Walleij
On Tue, May 26, 2020 at 7:14 AM wrote: > > On Sun, May 24, 2020 at 4:51 AM Dinghao Liu wrote: > > > disable_pm: > > > - pm_runtime_put_noidle(&i2c->dev); > > > pm_runtime_disable(&i2c->dev); > > > ak8974_set_power(ak8974, AK8974_PWR_OFF); > > > > Keep the top pm_runtime_pu

Re: [PATCH v12 0/6] Add battery charger driver support for MP2629

2020-05-26 Thread Lee Jones
On Tue, 26 May 2020, Saravanan Sekar wrote: > changes in v12: > - added SOB Acked-for-MFD-by: Lee Jones Looks like you added my Acked-by to every patch, when actually I only Acked the MFD one. Fortunately, as I'm the one applying these, I can strip them off, but please be more careful about wh

[PATCH v2 4/6] mtd: spi-nor: cadence-quadspi: Fix error path on failure to acquire reset lines

2020-05-26 Thread Vignesh Raghavendra
Make sure to undo the prior changes done by the driver when exiting due to failure to acquire reset lines. Signed-off-by: Vignesh Raghavendra --- drivers/mtd/spi-nor/controllers/cadence-quadspi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/cont

[PATCH v2 3/6] mtd: spi-nor: cadence-quadspi: Don't initialize rx_dma_complete on failure

2020-05-26 Thread Vignesh Raghavendra
If driver fails to acquire DMA channel then don't initialize rx_dma_complete struct as it won't be used. Signed-off-by: Vignesh Raghavendra --- drivers/mtd/spi-nor/controllers/cadence-quadspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/controllers/cadence-quadspi.c

[PATCH v2 1/6] mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry

2020-05-26 Thread Vignesh Raghavendra
Drop configuration of Flash size, erase size and page size configuration. Flash size is needed only if using AHB decoder (BIT 23 of CONFIG_REG) which is not used by the driver. Erase size and page size are needed if IP is configured to send WREN automatically. But since SPI NOR layer takes care of

[PATCH v2 2/6] mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC mode

2020-05-26 Thread Vignesh Raghavendra
Currently direct access mode is used on platforms that have AHB window (memory mapped window) larger than flash size. This feature is limited to TI platforms as non TI platforms have < 1MB of AHB window. Therefore introduce a driver quirk to disable DAC mode and set it for non TI compatibles. This

[PATCH v2 0/6] mtd: spi-nor: Move cadence-qaudspi to spi-mem framework

2020-05-26 Thread Vignesh Raghavendra
mtd: spi-nor: Move cadence-qaudspi to spi-mem framework This series is a subset of "[PATCH v12 0/4] spi: cadence-quadspi: Add support for the Cadence QSPI controller" by Ramuthevar,Vadivel MuruganX that intended to move cadence-quadspi driver to spi-mem framework Those patches were trying to acc

[PATCH v2 5/6] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-05-26 Thread Vignesh Raghavendra
From: Ramuthevar Vadivel Murugan Move cadence-quadspi driver to use spi-mem framework. This is required to make the driver support for SPI NAND flashes in future. Driver is feature compliant with existing SPI NOR version. Signed-off-by: Ramuthevar Vadivel Murugan Signed-off-by: Vignesh Raghav

Re: [PATCH v5 2/2] clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller

2020-05-26 Thread Bryan O'Donoghue
On 17/05/2020 14:13, Bryan O'Donoghue wrote: This patch adds support for the MSM8939 GCC. The MSM8939 is based on the MSM8916. MSM8939 is compatible in several ways with MSM8916 but, has additional functional blocks added which require additional PLL sources. In some cases functional blocks from

[PATCH v2 6/6] spi: Move cadence-quadspi driver to drivers/spi/

2020-05-26 Thread Vignesh Raghavendra
From: Ramuthevar Vadivel Murugan Now that cadence-quadspi has been converted to use spi-mem framework, move it under drivers/spi/ Update license header to match SPI subsystem style Signed-off-by: Ramuthevar Vadivel Murugan Signed-off-by: Vignesh Raghavendra --- drivers/mtd/spi-nor/controlle

Re: [PATCH] PCI: hv: Use struct_size() helper

2020-05-26 Thread Wei Liu
On Mon, May 25, 2020 at 11:43:19AM -0500, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct h

Re: [PATCH] scsi: ufs-qcom: Fix scheduling while atomic issue

2020-05-26 Thread Bean Huo
On Tue, 2020-05-26 at 06:25 +, Avri Altman wrote: > > > ufs_qcom_dump_dbg_regs() uses usleep_range, a sleeping function, > > but can > > be called from atomic context in the following flow: > > > > ufshcd_intr -> ufshcd_sl_intr -> ufshcd_check_errors -> > > ufshcd_print_host_regs -> ufshcd_v

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