Re: [PATCH -v5.1] x86/kvm: Implement HWCR support

2019-04-18 Thread Sean Christopherson
On Thu, Apr 18, 2019 at 04:19:49PM +0200, Borislav Petkov wrote: > On Thu, Apr 18, 2019 at 06:56:06AM -0700, Sean Christopherson wrote: > > This doesn't allow writing '0' regardless of msr_hwcr.BIT(18), which was > > previously supported. > > Restored the old conditional: > > diff --git a/arch/x8

Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-18 Thread Rafael J. Wysocki
On Tue, Apr 16, 2019 at 12:53 PM Suzuki K Poulose wrote: > > On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote: > > On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose > > wrote: > >> > >> Make the device_fwnode_match() a generic helper to match device > >> by fwnode handle for use with bus_find_devi

Re: [PATCH v4 15/16] locking/rwsem: Merge owner into count on x86-64

2019-04-18 Thread Waiman Long
On 04/18/2019 10:28 AM, Peter Zijlstra wrote: > On Sat, Apr 13, 2019 at 01:22:58PM -0400, Waiman Long wrote: >> +#ifdef CONFIG_X86_64 >> +#define RWSEM_MERGE_OWNER_TO_COUNT >> +#endif >> +#ifdef RWSEM_MERGE_OWNER_TO_COUNT >> + >> +#ifdef __PHYSICAL_MASK_SHIFT >> +#define RWSEM_PA_MASK_SHIFT __PHYSI

Re: [PATCH v4 14/16] locking/rwsem: Guard against making count negative

2019-04-18 Thread Peter Zijlstra
On Thu, Apr 18, 2019 at 10:08:28AM -0400, Waiman Long wrote: > On 04/18/2019 09:51 AM, Peter Zijlstra wrote: > > On Sat, Apr 13, 2019 at 01:22:57PM -0400, Waiman Long wrote: > >> inline void __down_read(struct rw_semaphore *sem) > >> { > >> + long count = atomic_long_fetch_add_acquire(RWSEM_READ

Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd)

2019-04-18 Thread Kirill Smelkov
On Thu, Apr 18, 2019 at 07:37:30AM -0500, Bjorn Helgaas wrote: > On Thu, Apr 18, 2019 at 10:38:02AM +, Kirill Smelkov wrote: > > On Thu, Apr 18, 2019 at 07:31:02AM +0200, Julia Lawall wrote: > > > On Wed, 17 Apr 2019, Bjorn Helgaas wrote: > > > > On Sat, Apr 13, 2019 at 06:50:57PM +0200, Julia

Re: [PATCH v3 2/3] HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630 for DT

2019-04-18 Thread Jeffrey Hugo
On Thu, Apr 18, 2019 at 3:51 AM Hans de Goede wrote: > > Hi, > > On 18-04-19 11:34, Benjamin Tissoires wrote: > > On Mon, Apr 15, 2019 at 6:11 PM Jeffrey Hugo > > wrote: > >> > >> Following up on commit 2bafa1e96254 ("HID: quirks: Fix keyboard + touchpad > >> on Lenovo Miix 630"), the devicetree

[PATCH v7 00/10] Add support for XO 1.75 to OLPC battery driver

2019-04-18 Thread Lubomir Rintel
Hello, This patch set modifies the OLPC battery driver so that it could eventually be used on an Arm-based OLPC XO 1.75 machine. Compared to the previous version, it addresses review comments for the x86 platform parts from Thomas Gleixner. Details in individual patches' change logs. I've failed

[PATCH v7 01/10] dt-bindings: olpc_battery: Add XO-1.5 battery

2019-04-18 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- Changes since v1: - Collected Reviewed-by and Acked-by tags Documentation/devicetree/

[PATCH v7 09/10] power: supply: olpc_battery: Add OLPC XO 1.75 support

2019-04-18 Thread Lubomir Rintel
The battery and the protocol are essentially the same as OLPC XO 1.5, but the responses from the EC are LSB first. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- Changes since v6: - Collect review tag from Sebastian Reichel Changes since v5: - s/int li

[PATCH v7 03/10] x86/platform/olpc: Trivial code move in DT fixup

2019-04-18 Thread Lubomir Rintel
This makes the following patch more concise. Signed-off-by: Lubomir Rintel Acked-by: Thomas Gleixner --- Changes since v6: - Collect ack from Thomas Gleixner - Fix the subject prefix to "x86/platform/olpc:" Changes since v5: - This patch was split off from "x86, olpc: Use a correct version whe

[PATCH v7 02/10] x86/platform/olpc: Don't split string literals when fixing up the DT

2019-04-18 Thread Lubomir Rintel
It was pointed out in a review, and checkpatch.pl complains about this. Breaking it down into multiple ofw evaluations works just as well and reads better. Signed-off-by: Lubomir Rintel Acked-by: Thomas Gleixner --- Changes since v6: - s/perhaps even reads better/reads better/ in the commit mes

[PATCH v7 06/10] power: supply: olpc_battery: Move priv data to a struct

2019-04-18 Thread Lubomir Rintel
The global variables for private data are not too nice. I'd like some more, and that would clutter the global name space even further. Signed-off-by: Lubomir Rintel Reviewed-by: Andy Shevchenko Reviewed-by: Sebastian Reichel --- Changes since v6: - Collect review tag from Sebastian Reichel Ch

[PATCH v7 10/10] power: supply: olpc_battery: Have the framework register sysfs files for us

2019-04-18 Thread Lubomir Rintel
The power framework gained ability to register groups of sysfs attributes in commit cef8fe6a382c ("power: supply: core: add support for custom sysfs attributes"). Signed-off-by: Lubomir Rintel Suggested-by: Sebastian Reichel Reviewed-by: Sebastian Reichel --- Changes since v6: - Collect review

[PATCH v7 04/10] x86/platform/olpc: Use a correct version when making up a battery node

2019-04-18 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. We need to use a different compatible string for the XO-1.5 battery. Previously olpc_dt_fixup() used the presence of the battery node's compatible property to decide whether the DT is up to date. Now we ne

[PATCH v7 05/10] power: supply: olpc_battery: Use DT to get battery version

2019-04-18 Thread Lubomir Rintel
Avoid using the x86 OLPC platform specific call to get the board version. That wouldn't work on FDT-based ARM MMP2 platform. Add the XO 1.5 compatible string too. This is actually not completely necessary as the battery nodes on XO 1.5 claim to be compatible with "olpc,xo1-battery", but there are,

[PATCH v7 08/10] power: supply: olpc_battery: Avoid using platform_info

2019-04-18 Thread Lubomir Rintel
This wouldn't work on the DT-based ARM platform. Let's read the EC version directly from the EC driver instead. This removes x86 specific bits that would prevent this driver from being used with the EC of ARM-based OLPC XO 1.75. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek Reviewed-by:

[GIT PULL] s390 patches for 5.1-rc6

2019-04-18 Thread Martin Schwidefsky
The following changes since commit 9936328b41ce4bce8f20269dcac8cb476c8d0820: Merge tag 'pci-v5.1-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci (2019-03-28 13:29:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/s390/linu

[PATCH v7 07/10] power: supply: olpc_battery: Use devm_power_supply_register()

2019-04-18 Thread Lubomir Rintel
This simplifies the error handling. Signed-off-by: Lubomir Rintel Reviewed-by: Sebastian Reichel --- Changes since v1: - This was split off the "power: supply: olpc_battery: Move priv data to a struct" patch. drivers/power/supply/olpc_battery.c | 19 +-- 1 file changed, 5 in

Re: [RFC PATCH 1/6] vfs, coda: Fix the lack of locking in FID replacement inode rehashing

2019-04-18 Thread Jan Harkes
That looks good to me. Acked-by: Jan Harkes On April 18, 2019 10:06:07 AM EDT, David Howells wrote: >- but, as the comment notes, this really needs some locking. > >Fix this by moving the core part of the code to fs/inode.c and

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v8)

2019-04-18 Thread Joseph Myers
On Thu, 18 Apr 2019, Mathieu Desnoyers wrote: > The approach above should work for arm32 be8 vs be32 linker weirdness. > > For aarch64, I think we can simply do: > > /* > * aarch64 -mbig-endian generates mixed endianness code vs data: > * little-endian code and big-endian data. Ensure the RSEQ

Re: [PATCH v3 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node

2019-04-18 Thread Maxime Ripard
On Thu, Apr 18, 2019 at 07:39:28PM +0530, Jagan Teki wrote: > On Thu, Apr 18, 2019 at 7:34 PM Maxime Ripard > wrote: > > > > On Thu, Apr 18, 2019 at 07:18:37PM +0530, Jagan Teki wrote: > > > Add Goodix GT5663 capacitive touch controller node on > > > Amarula A64-Relic board. > > > > > > The CTP c

[PATCH v3 -next] sched/core: Make some functions static

2019-04-18 Thread Yue Haibing
From: YueHaibing Fix these sparse warnings: kernel/sched/core.c:6577:11: warning: symbol 'min_cfs_quota_period' was not declared. Should it be static? kernel/sched/core.c:6657:5: warning: symbol 'tg_set_cfs_quota' was not declared. Should it be static? kernel/sched/core.c:6670:6: warning

Re: [PATCH] acpi/hmat: Update acpi_hmat_type enum with ACPI_HMAT_TYPE_PROXIMITY

2019-04-18 Thread Rafael J. Wysocki
On Wed, Apr 17, 2019 at 8:10 PM Alison Schofield wrote: > > ACPI 6.3 changed the subtable "Memory Subsystem Address Range Structure" > to "Memory Proximity Domain Attributes Structure". > > Updating and renaming of the structure was included in commit: > ACPICA: ACPI 6.3: HMAT updates (9a8d961f1ef

Re: [PATCH v4 14/16] locking/rwsem: Guard against making count negative

2019-04-18 Thread Waiman Long
On 04/18/2019 10:40 AM, Peter Zijlstra wrote: > On Thu, Apr 18, 2019 at 10:08:28AM -0400, Waiman Long wrote: >> On 04/18/2019 09:51 AM, Peter Zijlstra wrote: >>> On Sat, Apr 13, 2019 at 01:22:57PM -0400, Waiman Long wrote: inline void __down_read(struct rw_semaphore *sem) { + long

Re: [PATCH v2 2/2] arm64: dts: allwinner: a64-amarula-relic: Add OV5640 camera node

2019-04-18 Thread Maxime Ripard
On Thu, Apr 18, 2019 at 07:22:32PM +0530, Jagan Teki wrote: > Amarula A64-Relic board by default bound with OV5640 camera, > so add support for it with below pin information. > > - PE13, PE12 via i2c-gpio bitbanging > - CLK_CSI_MCLK as external clock > - PE1 as external clock pin muxing > - ALDO1 a

Re: [PATCH] binfmt_elf: Move brk out of mmap when doing direct loader exec

2019-04-18 Thread Guenter Roeck
ze and stack > allocations could end up scribbling on the heap. > This patch results in crashes of my xtensa boot tests. Run /sbin/init as init process Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b Bisect log is attached. The crash is seen in next-20190

Re: IOMMU Page faults when running DMA transfers from PCIe device

2019-04-18 Thread Jerome Glisse
On Thu, Apr 18, 2019 at 09:37:58AM +, David Laight wrote: > From: Jerome Glisse > > Sent: 16 April 2019 16:33 > ... > > I am no expert but i am guessing your FPGA set the request field in the > > PCIE TLP write packet to 00:00.0 and this might work when IOMMU is off but > > might not work when

Re: [PATCH v2 4/5] signal: support CLONE_PIDFD with pidfd_send_signal

2019-04-18 Thread Christian Brauner
On April 18, 2019 4:26:00 PM GMT+02:00, Oleg Nesterov wrote: >On 04/18, Christian Brauner wrote: >> >> +static struct pid *pidfd_to_pid(const struct file *file) >> +{ >> +if (file->f_op == &pidfd_fops) >> +return file->private_data; >> + >> +return tgid_pidfd_to_pid(file); >> +

Re: [PATCH] acpi/hmat: Update acpi_hmat_type enum with ACPI_HMAT_TYPE_PROXIMITY

2019-04-18 Thread Keith Busch
On Wed, Apr 17, 2019 at 11:13:10AM -0700, Alison Schofield wrote: > ACPI 6.3 changed the subtable "Memory Subsystem Address Range Structure" > to "Memory Proximity Domain Attributes Structure". > > Updating and renaming of the structure was included in commit: > ACPICA: ACPI 6.3: HMAT updates (9a8

Re: [PATCH v5 3/3] dt-bindings: arm: fsl: Add the imx8mq boards

2019-04-18 Thread Rob Herring
On Wed, Apr 17, 2019 at 09:55:14AM -0700, Angus Ainslie (Purism) wrote: > Add an entry for imx8mq based boards > > Signed-off-by: Angus Ainslie (Purism) > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++ > 1 file changed, 7 insertions(+) Reviewed-by: Rob Herring

Re: [PATCH v5 2/3] dt-bindings: Add an entry for Purism SPC

2019-04-18 Thread Rob Herring
On Wed, Apr 17, 2019 at 09:55:13AM -0700, Angus Ainslie (Purism) wrote: > Add an entry for Purism, SPC > > Signed-off-by: Angus Ainslie (Purism) > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Rob Herring

Re: [PATCH] acpi/hmat: Update acpi_hmat_type enum with ACPI_HMAT_TYPE_PROXIMITY

2019-04-18 Thread Rafael J. Wysocki
On Thu, Apr 18, 2019 at 5:02 PM Keith Busch wrote: > > On Wed, Apr 17, 2019 at 11:13:10AM -0700, Alison Schofield wrote: > > ACPI 6.3 changed the subtable "Memory Subsystem Address Range Structure" > > to "Memory Proximity Domain Attributes Structure". > > > > Updating and renaming of the structur

Re: [RFC PATCH 5/6] ext4: Search for an inode to update under the RCU lock if we can

2019-04-18 Thread Al Viro
On Thu, Apr 18, 2019 at 03:06:44PM +0100, David Howells wrote: > + inode = find_inode_by_ino_rcu(sb, ino); > + if (!inode) > + return; > > if ((inode->i_ino != ino) || > (inode->i_state & (I_FREEING | I_WILL_FREE | I_NEW | > I_DIRTY

Re: [PATCH v5 1/3] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit

2019-04-18 Thread Rob Herring
On Wed, Apr 17, 2019 at 09:55:12AM -0700, Angus Ainslie (Purism) wrote: > This is the development kit board for the Librem 5. The current level of > support yields a working console and is able to boot userspace from the > Network or eMMC. > > Additional subsystems that are active : > > - Both US

Re: [PATCH v4 12/16] locking/rwsem: Enable time-based spinning on reader-owned rwsem

2019-04-18 Thread Waiman Long
On 04/18/2019 09:06 AM, Peter Zijlstra wrote: > So I really dislike time based spinning, and we've always rejected it > before. > > On Sat, Apr 13, 2019 at 01:22:55PM -0400, Waiman Long wrote: > >> +static inline u64 rwsem_rspin_threshold(struct rw_semaphore *sem) >> +{ >> +long count = atomic_

Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

2019-04-18 Thread Suzuki K Poulose
On 04/18/2019 03:39 PM, Rafael J. Wysocki wrote: On Tue, Apr 16, 2019 at 12:53 PM Suzuki K Poulose wrote: On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote: On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose wrote: Make the device_fwnode_match() a generic helper to match device by fwnode hand

[PATCH 0/3] A few hist trigger fixes

2019-04-18 Thread Tom Zanussi
From: Tom Zanussi Hi Steve, Here's a fix for a problem I found with the hist trigger snapshot action related to the refactoring in the later versions of the patchset ('[PATCH 3/3] tracing: Add a check_val() check before updating cond_snapshot() track_val'). I also added v2 of 2 other patches th

[PATCH 3/3] tracing: Add a check_val() check before updating cond_snapshot() track_val

2019-04-18 Thread Tom Zanussi
From: Tom Zanussi Without this check a snapshot is taken whenever a bucket's max is hit, rather than only when the global max is hit, as it should be. Before: In this example, we do a first run of the workload (cyclictest), examine the output, note the max ('triggering value') (347), then d

[PATCH v2 2/3] tracing: Check keys for variable references in expressions too

2019-04-18 Thread Tom Zanussi
From: Tom Zanussi There's an existing check for variable references in keys, but it doesn't go far enough. It checks whether a key field is a variable reference but doesn't check whether it's an expression containing variable references, which can cause the same problems for callers. Use the ex

[PATCH v2 1/3] tracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts

2019-04-18 Thread Tom Zanussi
From: Tom Zanussi hist_field_var_ref() is an implementation of hist_field_fn_t(), which can be called with a null tracing_map_elt elt param when assembling a key in event_hist_trigger(). In the case of hist_field_var_ref() this doesn't make sense, because a variable can only be resolved by looki

Re: [GIT PULL] afs: Fixes

2019-04-18 Thread pr-tracker-bot
The pull request you sent on Thu, 18 Apr 2019 10:17:32 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > tags/afs-fixes-20190413 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2a852fd1ac893d75879923025306f146b7e0747e Thank you! -- Deet-

Re: [git pull] drm fixes for 5.1-rc6

2019-04-18 Thread pr-tracker-bot
The pull request you sent on Thu, 18 Apr 2019 13:40:53 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2019-04-18 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/95ea55291e35107f6cc1838e499e57d236a45d44 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [GIT PULL] s390 patches for 5.1-rc6

2019-04-18 Thread pr-tracker-bot
The pull request you sent on Thu, 18 Apr 2019 16:47:33 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux tags/s390-5.1-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d22113a2cd1f908e0e4809aa101542b02fb2abc2 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v2] ktest: introduce REBOOT_RETURN_CODE to confirm the result of REBOOT

2019-04-18 Thread Steven Rostedt
On Thu, 18 Apr 2019 09:59:43 -0400 Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > Unexpected power cycle occurs while the installation of the > kernel. > >ssh root@Test sync ... [0 seconds] SUCCESS >ssh root@Test reboot ... [1 second] FAILED! >virsh destroy Test; sleep 5; vir

Re: [PATCH v2] moduleparam: Save information about built-in modules in separate file

2019-04-18 Thread Masahiro Yamada
On Thu, Apr 18, 2019 at 10:52 PM Jessica Yu wrote: > > +++ Masahiro Yamada [18/04/19 20:10 +0900]: > >On Sat, Apr 6, 2019 at 9:15 PM Alexey Gladkov > >wrote: > >> > >> Problem: > >> > >> When a kernel module is compiled as a separate module, some important > >> information about the kernel modul

Re: [PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-04-18 Thread Mathieu Desnoyers
- On Apr 9, 2019, at 5:29 AM, Alan Modra amo...@gmail.com wrote: > On Tue, Apr 09, 2019 at 02:23:53PM +1000, Michael Ellerman wrote: >> I'd much rather we use a trap with a specific immediate value. Otherwise >> someone's going to waste time one day puzzling over why userspace is >> doing mtms

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v8)

2019-04-18 Thread Szabolcs Nagy
On 18/04/2019 14:17, Mathieu Desnoyers wrote: > - On Apr 17, 2019, at 3:56 PM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: >> - On Apr 17, 2019, at 12:17 PM, Joseph Myers jos...@codesourcery.com >> wrote: >>> On Wed, 17 Apr 2019, Mathieu Desnoyers wrote: >>> > +/* RSEQ_S

Re: [PATCH 2/5] glibc: sched_getcpu(): use rseq cpu_id TLS on Linux (v2)

2019-04-18 Thread Szabolcs Nagy
On 16/04/2019 18:32, Mathieu Desnoyers wrote: > --- a/sysdeps/unix/sysv/linux/sched_getcpu.c > +++ b/sysdeps/unix/sysv/linux/sched_getcpu.c > @@ -37,3 +37,26 @@ sched_getcpu (void) >return -1; > #endif > } > + > +#ifdef __NR_rseq > +#include > +#endif > + > +#if defined __NR_rseq && defined

Re: [PATCH] platform/chrome: wilco_ec: Add telemetry data char device interface

2019-04-18 Thread Duncan Laurie
On Mon, Apr 15, 2019 at 1:04 AM Enrico Weigelt, metux IT consult wrote: > > On 13.04.19 00:45, Nick Crews wrote: > > The Wilco Embedded Controller is able to send telemetry data > > which is useful for enterprise applications. > > What kind of "enterprise applications" exactly ? > > > A daemon run

Re: [PATCH v2] moduleparam: Save information about built-in modules in separate file

2019-04-18 Thread Jessica Yu
+++ Masahiro Yamada [19/04/19 00:26 +0900]: On Thu, Apr 18, 2019 at 10:52 PM Jessica Yu wrote: +++ Masahiro Yamada [18/04/19 20:10 +0900]: >On Sat, Apr 6, 2019 at 9:15 PM Alexey Gladkov wrote: >> >> Problem: >> >> When a kernel module is compiled as a separate module, some important >> inform

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v8)

2019-04-18 Thread Mathieu Desnoyers
- On Apr 18, 2019, at 10:48 AM, Joseph Myers jos...@codesourcery.com wrote: > On Thu, 18 Apr 2019, Mathieu Desnoyers wrote: > >> The approach above should work for arm32 be8 vs be32 linker weirdness. >> >> For aarch64, I think we can simply do: >> >> /* >> * aarch64 -mbig-endian generates

Re: [PATCH v2 3/5] signal: use fdget() since we don't allow O_PATH

2019-04-18 Thread Linus Torvalds
On Thu, Apr 18, 2019 at 3:19 AM Christian Brauner wrote: > > It's just semantically correct to use fdget() > and return an error right from there instead of taking a reference and > returning an error later. I've applied this one directly, because it ends up affecting the existing code, and I

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v8)

2019-04-18 Thread Mathieu Desnoyers
- On Apr 18, 2019, at 11:33 AM, Szabolcs Nagy szabolcs.n...@arm.com wrote: > On 18/04/2019 14:17, Mathieu Desnoyers wrote: >> - On Apr 17, 2019, at 3:56 PM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >>> - On Apr 17, 2019, at 12:17 PM, Joseph Myers jos...@codesourcery.c

Re: [PATCH v3 1/2] platform/chrome: wilco_ec: Add Boot on AC support

2019-04-18 Thread Nick Crews
There's one error that Guenter just found... > + > +int wilco_ec_add_sysfs(struct wilco_ec_device *ec) > +{ > + return sysfs_create_group(&ec->dev->kobj, &wilco_dev_attr_group); > +} > + > +void wilco_ec_remove_sysfs(struct wilco_ec_device *ec) > +{ > + sysfs_create_group(&ec->dev->kob

Re: [PATCH 2/5] glibc: sched_getcpu(): use rseq cpu_id TLS on Linux (v2)

2019-04-18 Thread Mathieu Desnoyers
- On Apr 18, 2019, at 11:33 AM, Szabolcs Nagy szabolcs.n...@arm.com wrote: > On 16/04/2019 18:32, Mathieu Desnoyers wrote: >> --- a/sysdeps/unix/sysv/linux/sched_getcpu.c >> +++ b/sysdeps/unix/sysv/linux/sched_getcpu.c >> @@ -37,3 +37,26 @@ sched_getcpu (void) >>return -1; >> #endif >> }

Re: RFC: on adding new CLONE_* flags [WAS Re: [PATCH 0/4] clone: add CLONE_PIDFD]

2019-04-18 Thread Enrico Weigelt, metux IT consult
On 17.04.19 14:54, Christian Brauner wrote: >> Ah, that is a cool thing !>> I suppose that also works across namespaces ?> >> > Yes, it should. If you hand off the pidfd to another pidns (e.g. via SCM> credentials) for example. I thought about things like sending the pidfd via unix socket. It wou

Re: [PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-18 Thread Logan Gunthorpe
On 2019-04-17 4:48 p.m., Bjorn Helgaas wrote: --- drivers/pci/switch/switchtec.c | 39 +--- include/linux/switchtec.h| 2 +- include/uapi/linux/switchtec_ioctl.h | 13 +++- 3 files changed, 40 insertions(+), 14 deletions(-) diff

Re: [PATCH v2 3/5] signal: use fdget() since we don't allow O_PATH

2019-04-18 Thread Christian Brauner
On Thu, Apr 18, 2019 at 08:37:28AM -0700, Linus Torvalds wrote: > On Thu, Apr 18, 2019 at 3:19 AM Christian Brauner > wrote: > > > > It's just semantically correct to use fdget() > > and return an error right from there instead of taking a reference and > > returning an error later. > > I've

[PATCH] irq/irqdomain: Fix typo in the comment on top of __irq_domain_alloc_irqs()

2019-04-18 Thread Julien Grall
The word 'number' has been misspelt in the comment on top of _irq_domain_alloc_irqs(). Signed-off-by: Julien Grall --- kernel/irq/irqdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 9ed29e4a7dbf..a453e229f99c 10064

Re: [PATCH v4 6/7] ARM: dts: sun8i: v40: bananapi-m2-berry: Add GPIO pin-bank regulator supplies

2019-04-18 Thread Maxime Ripard
Hi, On Thu, Apr 18, 2019 at 12:11:21PM -0300, Pablo Greco wrote: > The bananapi-m2-berry has the PMIC providing voltage to all the pin-bank > supply rails from its various regulator outputs, tie them to the pio > node. > > Signed-off-by: Pablo Greco This one and the patch 7 should be the first p

[PATCH] irqchip/gic-v3-its: Fix typo in a comment in its_msi_prepare()

2019-04-18 Thread Julien Grall
The word 'entirely' has been misspelt in a comment in its_msi_prepare(). Signed-off-by: Julien Grall --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 7577755bdcf4..8d

[PATCH v2] ext4: fix use-after-free race with debug_want_extra_isize

2019-04-18 Thread Barret Rhoden
When remounting with debug_want_extra_isize, we were not performing the same checks that we do during a normal mount. That allowed us to set a value for s_want_extra_isize that reached outside the s_inode_size. Reported-by: syzbot+f584efa0ac7213c22...@syzkaller.appspotmail.com Reviewed-by: Jan Ka

[PATCH] tty: update obsolete termios comment

2019-04-18 Thread Johan Hovold
Update an obsolete comment referring to the termios_locked structure which was removed over a decade ago by commit fe6e29fdb1a7 ("tty: simplify ktermios allocation"). While at it, fix the "Thus" typo. Signed-off-by: Johan Hovold --- drivers/tty/tty_io.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v8)

2019-04-18 Thread Szabolcs Nagy
On 18/04/2019 16:41, Mathieu Desnoyers wrote: > - On Apr 18, 2019, at 11:33 AM, Szabolcs Nagy szabolcs.n...@arm.com wrote: > >> On 18/04/2019 14:17, Mathieu Desnoyers wrote: >>> - On Apr 17, 2019, at 3:56 PM, Mathieu Desnoyers >>> mathieu.desnoy...@efficios.com wrote: - On Apr 17,

Re: [PATCH] mtd: rawnand: Fix sphinx syntax

2019-04-18 Thread Miquel Raynal
Hi Jonathan, Jonathan Neuschäfer wrote on Fri, 22 Mar 2019 00:52:41 +0100: > Sphinx doesn't handle expressions in identifier references. > > This fixes the following warnings: > > ./include/linux/mtd/rawnand.h:1184: WARNING: Inline strong start-string > without end-string. > ./include/linux/m

[RFC PATCH v3] perf/x86: make perf callchain work without CONFIG_FRAME_POINTER

2019-04-18 Thread Kairui Song
Currently perf callchain doesn't work well when sampling from trace point, with ORC unwinder enabled and CONFIG_FRAME_POINTER disabled. We'll get useless in kernel callchain like this: perf 6429 [000]22.498450: kmem:mm_page_alloc: page=0x176a17 pfn=1534487 order=0 migratetype=0 g

Re: [PATCH v5 0/9] mtd: rawnand: denali: exec_op(), controller/chip separation, and cleanups

2019-04-18 Thread Miquel Raynal
Hi Masahiro, Masahiro Yamada wrote on Tue, 2 Apr 2019 13:03:00 +0900: > I took time for the Denali driver to catch up with the latest framework. > > - switch over to exec_op() and remove legacy hooks > > - separate controller/chips > > - various cleanups > > Major changes in v5: > > -

Re: [PATCH -next] mtd: rawnand: ingenic: Add missing MODULE_* information

2019-04-18 Thread Miquel Raynal
Hi Yue, Yue Haibing wrote on Thu, 4 Apr 2019 18:47:11 +0800: > From: YueHaibing > > gcc warning this: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/mtd/nand/raw/ingenic/ingenic_ecc.o > > Add MODULE_LICENSE,MODULE_AUTHOR and MODULE_DESCRIPTION. > > Reported-by: Hulk Robot > F

Re: [PATCH v4 5/7] ARM: dts: sun8i: v40: bananapi-m2-berry: Add Bluetooth device node

2019-04-18 Thread Pablo Sebastián Greco
El 18/4/19 a las 12:56, Maxime Ripard escribió: On Thu, Apr 18, 2019 at 12:11:20PM -0300, Pablo Greco wrote: Since the bananapi-m2-ultra and the bananapi-m2-berry have the same WiFi/Bluetooth, add the required nodes to the bananapi-m2-berry. Signed-off-by: Pablo Greco --- arch/arm/boot/dts

Re: rseq/arm32: choosing rseq code signature

2019-04-18 Thread Richard Earnshaw (lists)
On 17/04/2019 16:30, Mathieu Desnoyers wrote: > - On Apr 17, 2019, at 10:43 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On Apr 17, 2019, at 6:37 AM, richard earnshaw richard.earns...@arm.com >> wrote: >> >>> On 16/04/2019 14:39, Mathieu Desnoyers wrote: -

[PATCH 2/3] arm64: dts: allwinner: axp803: add USB power supply node

2019-04-18 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The AXP803 has a VBUS power input. Add a device node for it, now that we support it. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/bo

[PATCH 3/3] arm64: dts: allwinner: a64: bananapi-m64: Enable PMIC USB power supply

2019-04-18 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Bananapi M64 has a micro-USB connector with USB OTG support (that is already enabled). VBUS from this connector is wired to the PMIC's VBUS input. Enable the PMIC's USB power supply on this board, and also hook it up to the USB PHY. Signed-off-by: Chen-Yu Tsai --- arch/

[PATCH 1/3] mfd: axp20x: add USB power supply mfd cell to AXP803

2019-04-18 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The AXP803 has a VBUS power input. Its functionality is the same as the one found in the AXP813. Now that the axp20x_usb_power driver supports this variant, we can add an mfd cell for it to use it. Signed-off-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 5 + 1 file change

Re: [QUESTIONS] THP allocation in NUMA fault migration path

2019-04-18 Thread Yang Shi
On 4/17/19 11:32 PM, Michal Hocko wrote: On Wed 17-04-19 21:15:41, Yang Shi wrote: Hi folks, I noticed that there might be new THP allocation in NUMA fault migration path (migrate_misplaced_transhuge_page()) even when THP is disabled (set to "never"). When THP is set to "never", there shoul

[PATCH 0/3] arm64: allwinner: Enable AXP803's USB power supply

2019-04-18 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This series follows up on the A83T USB OTG series. The USB power supply portion of the AXP803, the PMIC used with the A64, is identical to the part in the AXP813/AXP818, used with the A83T. This series enables the USB power supply in the AXP803 using the AXP813's

Re: [PATCH] mtd: rawnand: constify elements of NAND_OP_PARSER(_PATTERN)

2019-04-18 Thread Miquel Raynal
Hi Masahiro, Masahiro Yamada wrote on Tue, 9 Apr 2019 13:53:32 +0900: > Currently, drivers are able to constify a nand_op_parser array, > but not nand_op_parser_pattern and nand_op_parser_pattern_elem > since they are instantiated by using the NAND_OP_PARSER(_PATTERN). > > Add 'const' to them

Re: [PATCH -next] mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static

2019-04-18 Thread Miquel Raynal
Hi Yue, Yue Haibing wrote on Wed, 10 Apr 2019 22:00:35 +0800: > From: YueHaibing > > Fix sparse warning: > > drivers/mtd/nand/raw/ingenic/ingenic_nand.c:140:32: warning: > symbol 'jz4725b_ooblayout_ops' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Yue

Re: [PATCH 0/4] meson-nand: small code improvements

2019-04-18 Thread Miquel Raynal
Hi Martin, Martin Blumenstingl wrote on Fri, 12 Apr 2019 00:00:52 +0200: > This series comes with four small improvements for the meson-nand > driver: > * the first patches are replacing open-coded logic with existing > utilities / helpers > * the third patch drops some unnecessary casting aft

Re: [PATCH 1/2] mtd: nand: Kconfig: correct the MTD_NAND_ECC_SW_BCH select

2019-04-18 Thread Miquel Raynal
Hi Anders, Anders Roxell wrote on Thu, 18 Apr 2019 06:39:06 +0200: > On Tue, 16 Apr 2019 at 23:53, Miquel Raynal wrote: > > > > Hi Anders, > > > > Anders Roxell wrote on Wed, 10 Apr 2019 > > 21:58:51 +0200: > > > > > Config fragments should not have the prefix 'CONFIG_'. > > > > > > Rework t

Re: [v2 RFC PATCH 0/9] Another Approach to Use PMEM as NUMA Node

2019-04-18 Thread Yang Shi
On 4/17/19 10:51 AM, Michal Hocko wrote: On Wed 17-04-19 10:26:05, Yang Shi wrote: On 4/17/19 9:39 AM, Michal Hocko wrote: On Wed 17-04-19 09:37:39, Keith Busch wrote: On Wed, Apr 17, 2019 at 05:39:23PM +0200, Michal Hocko wrote: On Wed 17-04-19 09:23:46, Keith Busch wrote: On Wed, Apr 17

Re: [PATCH v6 0/7] mtd: rawnand: Support bad block markers in first, second or last page

2019-04-18 Thread Miquel Raynal
Hi Schrempf, Schrempf Frieder wrote on Wed, 17 Apr 2019 12:36:33 +: > From: Frieder Schrempf > > Currently supported bad block marker positions within the block are: > * in first page only > * in last page only > * in first or second page > > After some cleanup and preparation in patches

Re: [PATCH 1/2 v2] mtd: nandsim: Embed struct nand_chip in struct nandsim

2019-04-18 Thread Miquel Raynal
Hi Richard, Richard Weinberger wrote on Wed, 17 Apr 2019 20:54:32 +0200: > We will need struct nand_controller soon, so more stuff need to > be parts of struct nandsim. > While we are here, rename "nand" to "ns" to use the same naming scheme > everywhere in nandsim. > > Reviewed-by: Boris Brezi

Re: [PATCH -v5.1] x86/kvm: Implement HWCR support

2019-04-18 Thread Paolo Bonzini
On 18/04/19 14:28, Borislav Petkov wrote: > The hardware configuration register has some useful bits which can be > used by guests. Implement McStatusWrEn which can be used by guests when > injecting MCEs with the in-kernel mce-inject module. > > For that, we need to set bit 18 - McStatusWrEn - fi

Re: [PATCH -v5.1] x86/kvm: Implement HWCR support

2019-04-18 Thread Paolo Bonzini
On 18/04/19 16:19, Borislav Petkov wrote: > On Thu, Apr 18, 2019 at 06:56:06AM -0700, Sean Christopherson wrote: >> This doesn't allow writing '0' regardless of msr_hwcr.BIT(18), which was >> previously supported. > > Restored the old conditional: > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kv

Re: [PATCH v3 0/5] MTD: Add Initial Hyperbus support

2019-04-18 Thread Sergei Shtylyov
Hello! On 04/17/2019 08:24 PM, Vignesh Raghavendra wrote: >> Vignesh Raghavendra (5): >>mtd: cfi_cmdset_0002: Add support for polling status register >>dt-bindings: mtd: Add binding documentation for HyperFlash >>mtd: Add support for HyperBus memory devices >>dt-bindings: mtd: Add

RE: [PATCH v2 0/7] CPPC optional registers AMD support

2019-04-18 Thread Ghannam, Yazen
> -Original Message- > From: Rafael J. Wysocki > Sent: Wednesday, April 17, 2019 5:11 PM > To: Ghannam, Yazen > Cc: Rafael J. Wysocki ; Natarajan, Janakarajan > ; linux-a...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux...@vger.kernel.org; de...@acpica.org; Rafael J > . Wysock

[PATCH v5 2/3] power_supply: Add CHARGE_CONTROL_{START_THRESHOLD,END_THRESHOLD} properties

2019-04-18 Thread Nick Crews
Add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties, to expand the existing CHARGE_CONTROL_* properties. I am adding them in order to support a new Chrome OS device, but these properties should be general enough that they can be used on

[PATCH v5 3/3] power_supply: Add missing documentation for CHARGE_CONTROL_* properties

2019-04-18 Thread Nick Crews
The existing POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT and POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT_MAX properties don't have documentation. I add that documentation here. v5 changes: - Split this commit out from the previous two commits. Signed-off-by: Nick Crews --- Documentation/ABI/testing/sysfs

[PATCH v5 1/3] power_supply: Add Standard, Adaptive, and Custom charge types

2019-04-18 Thread Nick Crews
Add "Standard", "Adaptive", and "Custom" modes to the charge_type property, to expand the existing "Trickle" and "Fast" modes. I am adding them in order to support a new Chrome OS device, but these properties should be general enough that they can be used on other devices. The meaning of "Standard

[PATCH v4] platform/chrome: mfd/cros_ec_debugfs: Add debugfs entry to retrieve EC uptime.

2019-04-18 Thread Tim Wawrzynczak
The new debugfs entry 'uptime' is being made available to userspace so that a userspace daemon can synchronize EC logs with host time. Signed-off-by: Tim Wawrzynczak --- Enric, AFAIK only the cros_ec supports the 'uptime' command for now. And yes, the file does need to be seekable; the userspace

[PATCH v4] platform/chrome: mfd/cros_ec_debugfs: Add debugfs entry to retrieve EC uptime.

2019-04-18 Thread Tim Wawrzynczak
The new debugfs entry 'uptime' is being made available to userspace so that a userspace daemon can synchronize EC logs with host time. Signed-off-by: Tim Wawrzynczak --- Enric, AFAIK only the cros_ec supports the 'uptime' command for now. And yes, the file does need to be seekable; the userspace

Re: [PATCH v4 1/2] power_supply: Add more charge types and CHARGE_CONTROL_* properties

2019-04-18 Thread Nick Crews
On Wed, Apr 17, 2019 at 3:40 PM Sebastian Reichel wrote: > > Hi, > > The changes itself look all good to me, but this does multiple > things in a single patch, so please split it into multiple commits. Thanks Sebastian! I split this into 3 commits: -add more charge_type's -add more CHARGE_CONTRO

Re: [PATCH] x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012

2019-04-18 Thread Paolo Bonzini
On 18/04/19 16:17, Sean Christopherson wrote: > On Wed, Mar 20, 2019 at 06:43:20PM +0100, Vitaly Kuznetsov wrote: >> It was reported that with some special Multi Processor Group configuration, >> e.g: >> bcdedit.exe /set groupsize 1 >> bcdedit.exe /set maxgroup on >> bcdedit.exe /set groupaware

Re: [PATCH] mm: use mm.arg_lock in get_cmdline()

2019-04-18 Thread Yang Shi
On 4/18/19 6:05 AM, Laurent Dufour wrote: Le 18/04/2019 à 15:03, Michal Hocko a écrit : Michal has posted the same patch few days ago http://lkml.kernel.org/r/20190417120347.15397-1-mkou...@suse.com Oups, sorry for the noise, I missed it. Yes, Michal already posted a similar patch. Anyway

Re: [PATCH v2 11/36] coresight: stm: Cleanup device specific data

2019-04-18 Thread Mathieu Poirier
On Mon, Apr 15, 2019 at 05:03:54PM +0100, Suzuki K Poulose wrote: > Keep track of the STM coresight device which is a child device > of the AMBA device. Since we can get to the coresight_device > from the "device" instance, remove the explicit field. > > Cc: Mathieu Poirier > Signed-off-by: Suzuk

Re: [5.0.0 rc3 BUG] possible irq lock inversion dependency detected

2019-04-18 Thread Mikhail Gavrilov
On Mon, 15 Apr 2019 at 01:07, Mikhail Gavrilov wrote: > > > Thanks, with this patch problem was gone. > We have time land it in 5.1? > I received automated email with follow content: > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag, > fixing co

Re: [PATCH] x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012

2019-04-18 Thread Sean Christopherson
On Thu, Apr 18, 2019 at 06:47:56PM +0200, Paolo Bonzini wrote: > On 18/04/19 16:17, Sean Christopherson wrote: > > On Wed, Mar 20, 2019 at 06:43:20PM +0100, Vitaly Kuznetsov wrote: > >> It was reported that with some special Multi Processor Group configuration, > >> e.g: > >> bcdedit.exe /set grou

Re: [PATCH v10 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF controller bindings

2019-04-18 Thread Sergei Shtylyov
Hello! On 04/18/2019 08:55 AM, masonccy...@mxic.com.tw wrote: >> > > > Document the bindings used by the Renesas R-Car Gen3 RPC-IF >> MFD controller. >> > > > >> > > > Signed-off-by: Mason Yang >> > > > --- >> > > > .../devicetree/bindings/mfd/mfd-renesas-rpc.txt | 37 + >> > > ++

Re: [PATCH] x86: kvm: hyper-v: deal with buggy TLB flush requests from WS2012

2019-04-18 Thread Paolo Bonzini
On 18/04/19 18:56, Sean Christopherson wrote: > For simplicity, flush all CPUs if the guest neglected to set processor_mask. We don't know if it neglected to set processor_mask or the flag... Paolo

Re: [RFC PATCH 49/62] dax: make use of ->free_inode()

2019-04-18 Thread Dan Williams
On Thu, Apr 18, 2019 at 5:16 AM Jan Kara wrote: > > On Tue 16-04-19 18:53:27, Al Viro wrote: > > From: Al Viro > > > > we might want to drop ->destroy_inode() there - it's used only for > > WARN_ON() now, and AFAICS that could be moved to ->evict_inode() > > if we had one... > > > > Signed-off-by

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