Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-29 Thread Mark Brown
On Thu, Jun 28, 2018 at 11:04:17AM -0700, David Collins wrote: > Do you have any remaining concerns with the qcom-rpmh-regulator binding > and driver patches that would keep you from applying them (other than the > dependency patches being applied first)? To repeat I need to find the time to sit

Re: [PATCH v5 1/7] tty: serial: imx: correct dma cookie status

2018-06-29 Thread Vinod
On 26-06-18, 21:22, Uwe Kleine-König wrote: > On Wed, Jun 20, 2018 at 12:56:58AM +0800, Robin Gong wrote: > > Correct to check the right rx dma cookie status in spit of it > > works because only one cookie is running in the current sdma. > > But it will not once sdma driver support multi cookies >

Re: [PATCH 2/2] regulator: uniphier: add regulator driver for UniPhier SoC

2018-06-29 Thread Mark Brown
On Fri, Jun 29, 2018 at 05:22:13PM +0900, Kunihiko Hayashi wrote: > +++ b/drivers/regulator/uniphier-regulator.c > @@ -0,0 +1,251 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Regulator controller driver for UniPhier SoC > + * Copyright 2018 Socionext Inc. > + * Author: Kunihiko Hayashi

[PATCH 1/3] IIO: st_accel_i2c.c: Use fallback if DT/ACPI enum failed

2018-06-29 Thread Nikolaus Voss
Currently, the driver bails out if not explicitly referred to in DT or ACPI tables. This prevents fallback mechanisms from coming into effect, e.g. I2C device ID table match via DT or ACPI PRP0001 HID. However DT/ACPI enum should take precedence over the fallback, so evaluate that first.

[PATCH 2/3] IIO: st_sensors_i2c.c: Don't print error on failed ACPI match

2018-06-29 Thread Nikolaus Voss
If there is a ACPI node for a i2c device but HID/CID doesn't match, there could still be a ACPI_DT_NAMESPACE_HID / PRP0001 HID entry which is matched against the i2c device ID table, so don't print an error message. Signed-off-by: Nikolaus Voss --- drivers/iio/common/st_sensors/st_sensors_i2c.c

Re: [PATCH 1/2] KVM: X86: Implement PV IPI in linux guest

2018-06-29 Thread kbuild test robot
Hi Wanpeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.18-rc2 next-20180629] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] PCI: qcom: Fix error handling in pm_runtime support

2018-06-29 Thread Stanimir Varbanov
Hi Bjorn, On 05/25/2018 10:09 PM, Bjorn Andersson wrote: > The driver does not cope with the fact that probe can fail in a number > of cases after enabling pm_runtime on the device, this results in > warnings about "Unbalanced pm_runtime_enable". Further more if probe > fails after invoking

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Andrew Jones
On Fri, Jun 29, 2018 at 11:29:27AM +0100, Sudeep Holla wrote: > On Thu, Jun 28, 2018 at 07:32:43PM +0200, Andrew Jones wrote: > > On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > > > I am not sure if we can ever guarantee that DT and ACPI will get the > > > same ids whatever counter

Re: [PATCH v2] lightnvm: pblk: expose generic disk name on pr_* msgs

2018-06-29 Thread Javier Gonzalez
> On 29 Jun 2018, at 13.22, Matias Bjørling wrote: > > On 06/29/2018 01:07 PM, Javier Gonzalez wrote: >>> On 29 Jun 2018, at 12.59, Matias Bjørling wrote: >>> >>> On 06/29/2018 11:36 AM, Javier Gonzalez wrote: > On 28 Jun 2018, at 15.43, Matias Bjørling wrote: > > The error

[PATCH 1/1] clk/mmcc-msm8996: Make mmagic_bimc_gdsc ALWAYS_ON

2018-06-29 Thread Vivek Gautam
Patch (3a48ea5bbbc9 "clk: qcom: mmcc-msm8996: leave all mmagic gdscs and clocks always enabled") makes all mmgaic gdscs ALWAYS_ON. The mmagic_bimc_gdsc is also needed to be turned on to get display working on 8x96. Signed-off-by: Vivek Gautam Cc: Rajendra Nayak Cc: Bjorn Andersson Cc: Srinivas

Re: [PATCH v5] tpm: Return the actual size when receiving an unsupported command

2018-06-29 Thread Jarkko Sakkinen
On Tue, Jun 26, 2018 at 05:31:45PM +0200, Ricardo Schwarzmeier wrote: > The userpace expects to read the number of bytes stated in the header. > Returning the size of the buffer instead would be unexpected. > Fixes: 095531f891e6 ("tpm: return a TPM_RC_COMMAND_CODE response if command > is not

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Fri, Jun 29, 2018 at 12:26:23PM +0200, Vitaly Kuznetsov wrote: >> Roman Kagan writes: >> >> > On Thu, Jun 28, 2018 at 03:53:10PM +0200, Vitaly Kuznetsov wrote: >> >> While it is easy to get VP index from vCPU index the reverse task is hard. >> >> Basically, to solve it

[PATCH RESEND 1/1] clk/mmcc-msm8996: Make mmagic_bimc_gdsc ALWAYS_ON

2018-06-29 Thread Vivek Gautam
Patch (7705bb7176b9 clk: qcom: mmcc-msm8996: leave all mmagic gdscs and clocks always enabled") makes all mmgaic gdscs ALWAYS_ON. The mmagic_bimc_gdsc is also needed to be turned on to get display working on 8x96. Signed-off-by: Vivek Gautam Cc: Rajendra Nayak Cc: Bjorn Andersson Cc: Srinivas

Re: [PATCH v7 2/5] tpm: Implement tpm_default_chip() to find a TPM chip

2018-06-29 Thread Jarkko Sakkinen
On Tue, 2018-06-26 at 15:09 -0400, Stefan Berger wrote: > Implement tpm_default_chip() to find the first TPM chip and return it to > the caller while increasing the reference count on its device. This > function can be used by other subsystems, such as IMA, to find the system's > default TPM chip

Re: [PATCH v3 0/8] gnss: add new GNSS subsystem

2018-06-29 Thread Johan Hovold
On Fri, Jun 29, 2018 at 11:46:07AM +0200, Pavel Machek wrote: > > > > Finally, note that documentation (including kerneldoc) remains to be > > > written, but hopefully this will not hinder review given that the > > > current interfaces are fairly self-describing. > > > > This all looks great.

Re: [PATCH] kvm: implement VEX prefix decoder, bextr/andn

2018-06-29 Thread Paolo Bonzini
Thanks, I have some comments on the decoding logic. On 26/06/2018 14:14, Mason Lee Back wrote: > + if (ctxt->b == 0xC4 || ctxt->b == 0xC5) { This should be exactly the condition that you are removing below: if ((ctxt->b == 0xc5 || ctxt->b == 0xc4) && (mode ==

Re: [PATCH v3 0/8] gnss: add new GNSS subsystem

2018-06-29 Thread Pavel Machek
On Fri 2018-06-29 13:46:46, Johan Hovold wrote: > On Fri, Jun 29, 2018 at 11:46:07AM +0200, Pavel Machek wrote: > > > > > > Finally, note that documentation (including kerneldoc) remains to be > > > > written, but hopefully this will not hinder review given that the > > > > current interfaces are

Re: [PATCH v2] fuse: add support for copy_file_range()

2018-06-29 Thread Niels de Vos
On Wed, Jun 27, 2018 at 10:46:48AM +0200, Niels de Vos wrote: > There are several FUSE filesystems that can implement server-side copy > or other efficient copy/duplication/clone methods. The copy_file_range() > syscall is the standard interface that users have access to while not > depending on

Re: [PATCH 2/2] KVM: X86: Implement PV send IPI support

2018-06-29 Thread Vitaly Kuznetsov
Wanpeng Li writes: > From: Wanpeng Li > > Using hypercall to send IPIs by one vmexit instead of one by one for > xAPIC/x2APIC physical mode and one vmexit per-cluster for x2APIC cluster > mode. > > Even if enable qemu interrupt remapping and PV TLB Shootdown, I can still > observe ~14%

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Roman Kagan
On Thu, Jun 28, 2018 at 03:53:10PM +0200, Vitaly Kuznetsov wrote: > While it is easy to get VP index from vCPU index the reverse task is hard. > Basically, to solve it we have to walk all vCPUs checking if their VP index > matches. For hypercalls like HvFlushVirtualAddress{List,Space}* and the >

Re: [PATCH v8] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-29 Thread Jarkko Sakkinen
On Thu, 2018-06-28 at 18:13 +0300, Tomas Winkler wrote: > Fix tpm ptt initialization error: > tpm tpm0: A TPM error (378) occurred get tpm pcr allocation. > > We cannot use go_idle cmd_ready commands via runtime_pm handles > as with the introduction of localities this is no longer an optional >

Re: [PATCH 2/2] KVM: X86: Implement PV send IPI support

2018-06-29 Thread Paolo Bonzini
On 29/06/2018 11:51, Wanpeng Li wrote: > From: Wanpeng Li > > Using hypercall to send IPIs by one vmexit instead of one by one for > xAPIC/x2APIC physical mode and one vmexit per-cluster for x2APIC cluster > mode. > > Even if enable qemu interrupt remapping and PV TLB Shootdown, I can still

Re: [PATCH 2/2] reset: uniphier: add USB3 controller reset control

2018-06-29 Thread Kunihiko Hayashi
Hi Philipp, Thank you for your comments. On Fri, 29 Jun 2018 11:55:24 +0200 wrote: > Hi Kunihiko, > > thank you for the patch. I just have a few small comments below: > > On Fri, 2018-06-29 at 17:11 +0900, Kunihiko Hayashi wrote: > > Add reset lines for USB3 controller implemented in UniPhier

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Sudeep Holla
On Thu, Jun 28, 2018 at 12:12:00PM -0500, Jeremy Linton wrote: > Hi, > > On 06/28/2018 11:30 AM, Sudeep Holla wrote: [...] > >I am not sure if we can ever guarantee that DT and ACPI will get the > >same ids whatever counter we use as it depends on the order presented in > >the firmware(DT or

Re: linux-next: build failure after merge of the btrfs-kdave tree

2018-06-29 Thread David Sterba
On Fri, Jun 29, 2018 at 09:58:58AM +1000, Stephen Rothwell wrote: > Hi David, > > On Thu, 28 Jun 2018 18:11:03 +0200 David Sterba wrote: > > > > On Wed, Jun 27, 2018 at 08:59:36AM +1000, Stephen Rothwell wrote: > > > After merging the btrfs-kdave tree, today's linux-next build (powerpc > > >

Re: [PATCH v2] tpm: Allow tpm_tis drivers to set hwrng quality.

2018-06-29 Thread Jarkko Sakkinen
On Fri, Jun 29, 2018 at 04:13:55PM +0800, Louis Collard wrote: > Adds plumbing required for drivers based on tpm_tis to set hwrng quality. > > Signed-off-by: Louis Collard Reviewed-by: Jarkko Sakkinen /Jarkko

Re: [RFC v2 PATCH 2/2] mm: mmap: zap pages with read mmap_sem for large mapping

2018-06-29 Thread Michal Hocko
On Thu 28-06-18 12:10:10, Yang Shi wrote: > > > On 6/28/18 4:51 AM, Michal Hocko wrote: > > On Wed 27-06-18 10:23:39, Yang Shi wrote: > > > > > > On 6/27/18 12:24 AM, Michal Hocko wrote: > > > > On Tue 26-06-18 18:03:34, Yang Shi wrote: > > > > > On 6/26/18 12:43 AM, Peter Zijlstra wrote: > > >

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Andrew Jones
On Fri, Jun 29, 2018 at 11:53:34AM +0100, Sudeep Holla wrote: > On Thu, Jun 28, 2018 at 12:12:00PM -0500, Jeremy Linton wrote: > > Hi, > > > > On 06/28/2018 11:30 AM, Sudeep Holla wrote: > > [...] > > > >I am not sure if we can ever guarantee that DT and ACPI will get the > > >same ids whatever

Re: [PATCH v1 1/2] mm/sparse: add sparse_init_nid()

2018-06-29 Thread Pavel Tatashin
> Scratch that. > I forgot that incrementing the pointer will add up the right bytes. Hi Oscar, Thank you for looking at this patch. I will correct sprase/sparse typos in the next revision. But, will wait for more comments before sending a new version. Pavel

[RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-06-29 Thread Alessio Balsini
If the task calls sched_getattr() with SCHED_GETATTR_FLAGS_DL_ABSOLUTE flag set, the returned runtime and deadline parameters are, accordingly, the remaining runtime and the absolute deadline. To return consistent data, the scheduler and rq times, as well as the task statistics, are updated. Cc:

Re: [PATCH 1/2] KVM: X86: Implement PV IPI in linux guest

2018-06-29 Thread Vitaly Kuznetsov
Wanpeng Li writes: > From: Wanpeng Li > > Implement PV IPIs in guest kernel. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Vitaly Kuznetsov > Signed-off-by: Wanpeng Li > --- > arch/x86/include/uapi/asm/kvm_para.h | 1 + > arch/x86/kernel/kvm.c| 63 >

[PATCH] remoteproc: q6v5: Add support to vote for rpmh power domains

2018-06-29 Thread Rajendra Nayak
With rpmh ARC resources being modelled as power domains with performance state, add support to proxy vote on these for SDM845. Add support to vote on multiple of them, now that genpd supports associating multiple power domains to a device. Signed-off-by: Rajendra Nayak --- This patch is

Дякую

2018-06-29 Thread MICHELLE GOODMAN
благодаря Привет, дорогой, пожалуйста, надеюсь, что вы получили мое сообщение? Пожалуйста, мне нужен ваш немедленный ответ сейчас, пожалуйста, очень важно ваш Мишель благодаря

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Thu, Jun 28, 2018 at 03:53:10PM +0200, Vitaly Kuznetsov wrote: >> While it is easy to get VP index from vCPU index the reverse task is hard. >> Basically, to solve it we have to walk all vCPUs checking if their VP index >> matches. For hypercalls like

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Sudeep Holla
On Thu, Jun 28, 2018 at 07:32:43PM +0200, Andrew Jones wrote: > On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > > I am not sure if we can ever guarantee that DT and ACPI will get the > > same ids whatever counter we use as it depends on the order presented in > > the firmware(DT or

Re: [PATCH v1 1/2] mm/sparse: add sparse_init_nid()

2018-06-29 Thread Oscar Salvador
On Fri, Jun 29, 2018 at 12:04:13PM +0200, Oscar Salvador wrote: > On Thu, Jun 28, 2018 at 01:30:09PM -0400, Pavel Tatashin wrote: > > sparse_init() requires to temporary allocate two large buffers: > > usemap_map and map_map. Baoquan He has identified that these buffers are so > > large that Linux

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Roman Kagan
On Fri, Jun 29, 2018 at 12:26:23PM +0200, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > > On Thu, Jun 28, 2018 at 03:53:10PM +0200, Vitaly Kuznetsov wrote: > >> While it is easy to get VP index from vCPU index the reverse task is hard. > >> Basically, to solve it we have to walk all vCPUs

[PATCH 0/3] IIO: st_sensors_i2c: improve device enumeration

2018-06-29 Thread Nikolaus Voss
When trying to instantiate a st_accel_i2c device from an ACPI based system, I ran into some problems: For my device, there is no ACPI match table entry, so rather than creating /allocating a new ACPI HID for the device, I wanted to use an existing DT table compatible entry via creating an

[PATCH v3 02/20] virtio: pci-legacy: Validate queue pfn

2018-06-29 Thread Suzuki K Poulose
Legacy PCI over virtio uses a 32bit PFN for the queue. If the queue pfn is too large to fit in 32bits, which we could hit on arm64 systems with 52bit physical addresses (even with 64K page size), we simply miss out a proper link to the other side of the queue. Add a check to validate the PFN,

[PATCH v3 00/20] arm64: Dynamic & 52bit IPA support

2018-06-29 Thread Suzuki K Poulose
The physical address space size for a VM (IPA size) on arm/arm64 is limited to a static limit of 40bits. This series adds support for using an IPA size specific to a VM, allowing to use a limit supported by the host (based on the host kernel configuration and CPU support). The default and the

[PATCH 3/3] IIO: st_accel.h: sync DT and I2C device ID table strings

2018-06-29 Thread Nikolaus Voss
I2C device ID table strings should really match the DT compatible strings (without the manufacturer prefix) to avoid confusion. This is especially reasonable when using ACPI PRP0001 HID /DT compatibility entries along with the DT compatible property in DSD which is used as a modalias (with

Re: [PATCH] vmw_pvrdma: Release netdev when vmxnet3 module is removed

2018-06-29 Thread Neil Horman
On Thu, Jun 28, 2018 at 02:37:09PM -0600, Jason Gunthorpe wrote: > On Thu, Jun 28, 2018 at 03:45:26PM -0400, Neil Horman wrote: > > On Thu, Jun 28, 2018 at 12:59:46PM -0600, Jason Gunthorpe wrote: > > > On Thu, Jun 28, 2018 at 09:59:38AM -0400, Neil Horman wrote: > > > > On repeated module

[PATCH] spi: spi-fsl-dspi: Fix imprecise abort on VF500 during probe

2018-06-29 Thread Krzysztof Kozlowski
Registers of DSPI should not be accessed before enabling its clock. On Toradex Colibri VF50 on Iris carrier board this could be seen during bootup as imprecise abort: Unhandled fault: imprecise external abort (0x1c06) at 0x Internal error: : 1c06 [#1] ARM Modules linked in:

Re: [PATCH] vmw_pvrdma: Release netdev when vmxnet3 module is removed

2018-06-29 Thread Neil Horman
On Thu, Jun 28, 2018 at 09:15:46PM +, Adit Ranadive wrote: > On 6/28/18, 1:37 PM, "Jason Gunthorpe" wrote: > > On Thu, Jun 28, 2018 at 03:45:26PM -0400, Neil Horman wrote: > > > On Thu, Jun 28, 2018 at 12:59:46PM -0600, Jason Gunthorpe wrote: > > > > On Thu, Jun 28, 2018 at 09:59:38AM -0400,

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Andrew Jones
On Fri, Jun 29, 2018 at 01:42:27PM +0200, Andrew Jones wrote: > On Fri, Jun 29, 2018 at 11:53:34AM +0100, Sudeep Holla wrote: > > On Thu, Jun 28, 2018 at 12:12:00PM -0500, Jeremy Linton wrote: > > > Hi, > > > > > > On 06/28/2018 11:30 AM, Sudeep Holla wrote: > > > > [...] > > > > > >I am not

Re: [PATCH v3 0/8] gnss: add new GNSS subsystem

2018-06-29 Thread Johan Hovold
On Fri, Jun 29, 2018 at 02:05:54PM +0200, Pavel Machek wrote: > On Fri 2018-06-29 13:46:46, Johan Hovold wrote: > > On Fri, Jun 29, 2018 at 11:46:07AM +0200, Pavel Machek wrote: > > > > > > > > Finally, note that documentation (including kerneldoc) remains to be > > > > > written, but hopefully

Re: [PATCH 2/7] pinctrl: mt7622: fix initialization sequence between eint and gpiochip

2018-06-29 Thread Linus Walleij
On Fri, Jun 22, 2018 at 5:49 AM wrote: > From: Sean Wang > > Because gpichip applied in the driver must depend on mtk eint to implement > the input data debouncing and the translation between gpio and irq, it's > better to keep logic consistent with mtk eint being built prior to gpiochip >

Re: [PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building

2018-06-29 Thread Linus Walleij
On Fri, Jun 22, 2018 at 5:49 AM wrote: > From: Sean Wang > > It should be to return an error code when failing at groups building. > > Cc: sta...@vger.kernel.org > Fixes: d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC") > Signed-off-by: Sean Wang Patch applied for fixes.

Re: [PATCH 5/7] pinctrl: mt7622: fix a kernel panic when gpio-hog is being applied

2018-06-29 Thread Linus Walleij
On Fri, Jun 22, 2018 at 5:49 AM wrote: > From: Sean Wang > > When we are explicitly using GPIO hogging mechanism in the pinctrl node, > such as: > > { > line_input { > gpio-hog; > gpios = <95 0>, <96 0>, <97 0>; >

Re: [PATCH 4/7] pinctrl: mt7622: stop using the deprecated pinctrl_add_gpio_range

2018-06-29 Thread Linus Walleij
On Fri, Jun 22, 2018 at 5:49 AM wrote: > From: Sean Wang > > If the pinctrl node has the gpio-ranges property, the range will be added > by the gpio core and doesn't need to be added by the pinctrl driver. > > But for keeping backward compatibility, an explicit pinctrl_add_gpio_range > is still

Re: [PATCH v7 0/5] Have IMA find and use a tpm_chip until system shutdown

2018-06-29 Thread Stefan Berger
On 06/29/2018 08:13 AM, Jarkko Sakkinen wrote: On Tue, 2018-06-26 at 15:09 -0400, Stefan Berger wrote: This series of patches converts IMA's usage of the tpm_chip to find a TPM chip initially and use it until the machine is shut down. To do this we need to introduce a kref for the tpm_chip that

Re: [PATCH v2 1/3] dt-bindings: pinctrl: Add gpio interrupt bindings for Actions S900 SoC

2018-06-29 Thread Linus Walleij
On Sat, Jun 23, 2018 at 7:00 AM Manivannan Sadhasivam wrote: > Add gpio interrupt bindings for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam > Reviewed-by: Rob Herring Patch applied. Yours, Linus Walleij

Re: [PATCH v2 3/3] pinctrl: actions: Add interrupt support for OWL S900 SoC

2018-06-29 Thread Linus Walleij
On Sat, Jun 23, 2018 at 7:00 AM Manivannan Sadhasivam wrote: > Add interrupt support for Actions Semi OWL S900 SoC. > > Signed-off-by: Manivannan Sadhasivam Patch applied with Andy's review tag. I really like the looks of this! If you have ideas on how we can move more of the multiple IRQ

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Roman Kagan
On Fri, Jun 29, 2018 at 01:37:44PM +0200, Vitaly Kuznetsov wrote: > The problem we're trying to solve here is: with PV TLB flush and IPI we > need to walk through the supplied list of VP_INDEXes and get VCPU > ids. Usually they match. But in case they don't [...] Why wouldn't they *in practice*?

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-29 Thread joeyli
On Thu, Jun 28, 2018 at 10:52:07PM +0800, Yu Chen wrote: > Hi, > On Thu, Jun 28, 2018 at 10:28:56PM +0800, joeyli wrote: > > On Thu, Jun 28, 2018 at 09:50:17PM +0800, Yu Chen wrote: > > > Hi, > > > On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > > > > Hi Chen Yu, > > > > > > > > On Wed,

Re: [PATCH v2] PCI: controller: dwc: Do not let PCIE_DW_PLAT_HOST default to yes

2018-06-29 Thread Lorenzo Pieralisi
On Tue, Jun 19, 2018 at 07:19:17PM +0200, Geert Uytterhoeven wrote: > PCIE_DW_PLAT_HOST does not have any platform dependency, so it should > not default to yes. > > Fixes: 1d906b22076e12cf ("PCI: dwc: Add support for EP mode") > Signed-off-by: Geert Uytterhoeven > --- > v2: > - Rebased on top

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Sudeep Holla
On Fri, Jun 29, 2018 at 01:42:27PM +0200, Andrew Jones wrote: > On Fri, Jun 29, 2018 at 11:53:34AM +0100, Sudeep Holla wrote: > > On Thu, Jun 28, 2018 at 12:12:00PM -0500, Jeremy Linton wrote: > > > Hi, > > > > > > On 06/28/2018 11:30 AM, Sudeep Holla wrote: > > > > [...] > > > > > >I am not

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-29 Thread Mathieu Desnoyers
- On Jun 28, 2018, at 7:29 PM, Andy Lutomirski l...@kernel.org wrote: > On Thu, Jun 28, 2018 at 2:22 PM, Linus Torvalds > wrote: >> On Thu, Jun 28, 2018 at 1:23 PM Andy Lutomirski wrote: >>> >>> This is okay with me for a fix outside the merge window. Can you do a >>> followup for the next

Re: [PATCH 2/2] drivers: core: Remove glue dirs from sysfs earlier

2018-06-29 Thread Linus Torvalds
On Fri, Jun 29, 2018 at 6:56 AM Linus Torvalds wrote: > > This patch seems to make patch 1/2 pointless. No? .. well, maybe not "pointless", since it seems to be a good idea regardless, but you get what I mean, I think. Linus

[PATCH v3 2/5] KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb()

2018-06-29 Thread Vitaly Kuznetsov
We can use 'NULL' to represent 'all cpus' case in kvm_make_vcpus_request_mask() and avoid building vCPU mask with all vCPUs. Suggested-by: Radim Krčmář Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 42 +++--- virt/kvm/kvm_main.c | 6 ++

[PATCH v3 5/5] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-06-29 Thread Vitaly Kuznetsov
Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure will take only one VMEXIT. Current Hyper-V TLFS (v5.0b) claims that HvCallSendSyntheticClusterIpi hypercall can't be 'fast' (passing parameters

[PATCH v3 1/5] KVM: x86: hyperv: enforce vp_index < KVM_MAX_VCPUS

2018-06-29 Thread Vitaly Kuznetsov
Hyper-V TLFS (5.0b) states: > Virtual processors are identified by using an index (VP index). The > maximum number of virtual processors per partition supported by the > current implementation of the hypervisor can be obtained through CPUID > leaf 0x4005. A virtual processor index must be

[PATCH v3 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures

2018-06-29 Thread Vitaly Kuznetsov
These structures are going to be used from KVM code so let's make their names reflect their Hyper-V origin. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_apic.c | 12 ++-- arch/x86/include/asm/hyperv-tlfs.h | 16 +--- 2 files changed, 15 insertions(+), 13

[PATCH v3 0/5] KVM: x86: hyperv: PV IPI support for Windows guests

2018-06-29 Thread Vitaly Kuznetsov
Changes since v1 [Roman Kagan]: - Drop vp_index_to_vcpu_idx mapping. get_vcpu_by_vpidx() should be fast (1:1 mapping) in all valid use-cases. We'll optimize it later if needed (or at least discuss this in a separate patchset). - "enforce vp_index < KVM_MAX_VCPUS" patch added. - Issues reported

Re: 答复: 答复: 答复: [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices

2018-06-29 Thread Theodore Y. Ts'o
On Fri, Jun 29, 2018 at 02:06:03AM +, Gaoming (ming, consumer BG) wrote: > We use usual inode size, it is 256 bytes. > > Yes, this commit is in my repository. > But there is a bug in this patch. > > Let me show you, > Here is the bug: " return ALIGN(inodes, (info.block_size /

[PATCH] tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED

2018-06-29 Thread Jarkko Sakkinen
As TPM_TRANSMIT_RAW always requires also not to take locks for obvious reasons (deadlock), this commit renames the flag as TPM_TRANSMIT_NESTED and prevents taking tpm_mutex when the flag is given to tpm_transmit(). Suggested-by: Tomas Winkler Signed-off-by: Jarkko Sakkinen ---

Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

2018-06-29 Thread Paul E. McKenney
On Fri, Jun 29, 2018 at 11:04:19AM +0200, Michal Hocko wrote: > On Thu 28-06-18 14:31:05, Paul E. McKenney wrote: > > On Thu, Jun 28, 2018 at 01:39:42PM +0200, Michal Hocko wrote: > > > On Wed 27-06-18 07:31:25, Paul E. McKenney wrote: > > > > On Wed, Jun 27, 2018 at 09:22:07AM +0200, Michal Hocko

[PATCH v3] fuse: add support for copy_file_range()

2018-06-29 Thread Niels de Vos
There are several FUSE filesystems that can implement server-side copy or other efficient copy/duplication/clone methods. The copy_file_range() syscall is the standard interface that users have access to while not depending on external libraries that bypass FUSE. Signed-off-by: Niels de Vos ---

Re: [PATCH] tpm: Add module parameter for hwrng quality.

2018-06-29 Thread David R. Bild
On Wed, Jun 27, 2018 at 1:11 AM, Louis Collard wrote: > > On some systems we have seen large delays in boot time, due to > blocking on a call to getrandom() before the entropy pool has been > initialized. On these systems the usual sources of entropy are not > sufficient to initialize the pool in

Re: [PATCH v3 4/7] arm_pmu: Tidy up clear_event_idx call backs

2018-06-29 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:39AM +0100, Suzuki K Poulose wrote: > The armpmu uses get_event_idx callback to allocate an event > counter for a given event, which marks the selected counter > as "used". Now, when we delete the counter, the arm_pmu goes > ahead and clears the "used" bit and then

[PATCH] mm: make DEFERRED_STRUCT_PAGE_INIT explicitly depend on SPARSEMEM

2018-06-29 Thread Mike Rapoport
The deferred memory initialization relies on section definitions, e.g PAGES_PER_SECTION, that are only available when CONFIG_SPARSEMEM=y on most architectures. Initially DEFERRED_STRUCT_PAGE_INIT depended on explicit ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT configuration option, but since the

Re: [PATCH] PCI: xilinx-nwl: add missing of_node_put()

2018-06-29 Thread Lorenzo Pieralisi
On Thu, Jun 14, 2018 at 11:04:34AM +0200, Nicholas Mc Guire wrote: > The call to of_get_next_child() returns a node pointer with > refcount incremented thus it must be explicitly decremented > here after the last usage. > > Signed-off-by: Nicholas Mc Guire > Fixes: commit ab597d35ef11 ("PCI:

Re: [PATCH] PCI: faraday: add missing of_node_put()

2018-06-29 Thread Lorenzo Pieralisi
On Sat, Jun 23, 2018 at 05:14:59PM +0200, Nicholas Mc Guire wrote: > The call to of_get_next_child() returns a node pointer with refcount > incremented thus it must be explicitly decremented here in the error > path and after the last usage. > > Signed-off-by: Nicholas Mc Guire > Fixes: commit

[PATCH] arc/Kconfig: include mm/Kconfig inside "ARC system configuration"

2018-06-29 Thread Mike Rapoport
Otherwise mm configuration options show up in the top level menu. Signed-off-by: Mike Rapoport --- arch/arc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index e81bcd271be7..92cf06b354a8 100644 --- a/arch/arc/Kconfig +++

Re: [PATCH 2/2] ARM: davinci_all_defconfig: Enable Bluetooth

2018-06-29 Thread Sekhar Nori
On Wednesday 27 June 2018 10:43 PM, David Lechner wrote: > On 06/27/2018 06:11 AM, Sekhar Nori wrote: >> On Friday 01 June 2018 01:55 AM, David Lechner wrote: >>> This enables Bluetooth modules in davinic_all_defconfig needed for LEGO >> >> davinci_all_defconfig >> >>> MINDSTORMS EV3. >>> >>>

Re: [PATCH v3 7/7] arm64: perf: Add support for chaining event counters

2018-06-29 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:42AM +0100, Suzuki K Poulose wrote: > Add support for 64bit event by using chained event counters > and 64bit cycle counters. > > PMUv3 allows chaining a pair of adjacent 32-bit counters, effectively > forming a 64-bit counter. The low/even counter is programmed to

[PATCH v3 3/5] KVM: x86: hyperv: use get_vcpu_by_vpidx() in kvm_hv_flush_tlb()

2018-06-29 Thread Vitaly Kuznetsov
VP_INDEX almost always matches VCPU id and get_vcpu_by_vpidx() is fast, use it instead of traversing full vCPU list every time. To support the change switch kvm_make_vcpus_request_mask() to checking vcpu_id instead of vcpu index, kvm_hv_flush_tlb() is currently the only user with non-NULL

Re: [PATCH v3 4/7] arm_pmu: Tidy up clear_event_idx call backs

2018-06-29 Thread Suzuki K Poulose
Hi Mark, On 29/06/18 14:40, Mark Rutland wrote: On Tue, Jun 19, 2018 at 11:15:39AM +0100, Suzuki K Poulose wrote: The armpmu uses get_event_idx callback to allocate an event counter for a given event, which marks the selected counter as "used". Now, when we delete the counter, the arm_pmu

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-29 Thread Linus Torvalds
On Fri, Jun 29, 2018 at 7:05 AM Mathieu Desnoyers wrote: > > What I'm worried about is setting regs->ip of a compat 32-bit task to > addresses in the range 0x1-0x. Well, they won't have anything mapped in that range, so it really shouldn't matter. Linus

Re: [PATCH v8] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-29 Thread Jarkko Sakkinen
On Fri, Jun 29, 2018 at 01:35:52PM +0300, Jarkko Sakkinen wrote: > On Thu, 2018-06-28 at 18:13 +0300, Tomas Winkler wrote: > > Fix tpm ptt initialization error: > > tpm tpm0: A TPM error (378) occurred get tpm pcr allocation. > > > > We cannot use go_idle cmd_ready commands via runtime_pm handles

Re: [PATCH v2 2/3] arm64: dts: actions: Add interrupt properties to pinctrl node for S900

2018-06-29 Thread Linus Walleij
On Sat, Jun 23, 2018 at 7:00 AM Manivannan Sadhasivam wrote: > Add interrupt properties to pinctrl node for Actions Semi S900 SoC. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij Please take this through the ARM SoC tree. Yours, Linus Walleij

[GIT PULL] PCI fixes for v4.18

2018-06-29 Thread Bjorn Helgaas
PCI fixes: - Fix crash caused by endpoint library initialization order change (Alan Douglas) - Fix shpchp NULL pointer dereference regression on non-ACPI platforms (Bjorn Helgaas) - Move PCI_DOMAINS selection to fix build regression (Lorenzo Pieralisi) The following changes

Re: [PATCH 1/2] KVM: X86: Implement PV IPI in linux guest

2018-06-29 Thread kbuild test robot
Hi Wanpeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.18-rc2 next-20180629] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-29 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Fri, Jun 29, 2018 at 01:37:44PM +0200, Vitaly Kuznetsov wrote: >> The problem we're trying to solve here is: with PV TLB flush and IPI we >> need to walk through the supplied list of VP_INDEXes and get VCPU >> ids. Usually they match. But in case they don't [...] > > Why

Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

2018-06-29 Thread Michal Hocko
On Fri 29-06-18 05:52:18, Paul E. McKenney wrote: > On Fri, Jun 29, 2018 at 11:04:19AM +0200, Michal Hocko wrote: > > On Thu 28-06-18 14:31:05, Paul E. McKenney wrote: > > > On Thu, Jun 28, 2018 at 01:39:42PM +0200, Michal Hocko wrote: [...] > > > > Well, I am not really sure what is the objective

Re: [PATCH v3 5/7] arm64: perf: Clean up armv8pmu_select_counter

2018-06-29 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:40AM +0100, Suzuki K Poulose wrote: > armv8pmu_select_counter always returns the passed idx. So > let us make that void and get rid of the pointless checks. > > Suggested-by: Mark Rutland > Cc: Will Deacon > Signed-off-by: Suzuki K Poulose Acked-by: Mark Rutland

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Sudeep Holla
On Fri, Jun 29, 2018 at 01:23:54PM +0200, Andrew Jones wrote: > On Fri, Jun 29, 2018 at 11:29:27AM +0100, Sudeep Holla wrote: > > On Thu, Jun 28, 2018 at 07:32:43PM +0200, Andrew Jones wrote: > > > On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > > > > I am not sure if we can ever

Re: [PATCH v3 4/7] arm_pmu: Tidy up clear_event_idx call backs

2018-06-29 Thread Mark Rutland
On Tue, Jun 19, 2018 at 11:15:39AM +0100, Suzuki K Poulose wrote: > The armpmu uses get_event_idx callback to allocate an event > counter for a given event, which marks the selected counter > as "used". Now, when we delete the counter, the arm_pmu goes > ahead and clears the "used" bit and then

Re: [PATCH] PCI: xilinx: add missing of_node_put()

2018-06-29 Thread Lorenzo Pieralisi
On Wed, Jun 13, 2018 at 07:20:44PM +0200, Nicholas Mc Guire wrote: > The call to of_get_next_child() returns a node pointer with refcount > incremented thus it must be explicitly decremented here after the last > usage. > > Signed-off-by: Nicholas Mc Guire > Fixes: commit 8961def56845 ("PCI:

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-29 Thread Sudeep Holla
On Fri, Jun 29, 2018 at 01:55:39PM +0200, Andrew Jones wrote: > On Fri, Jun 29, 2018 at 01:42:27PM +0200, Andrew Jones wrote: > > On Fri, Jun 29, 2018 at 11:53:34AM +0100, Sudeep Holla wrote: > > > On Thu, Jun 28, 2018 at 12:12:00PM -0500, Jeremy Linton wrote: > > > > Hi, > > > > > > > > On

Re: [PATCH] mm: make DEFERRED_STRUCT_PAGE_INIT explicitly depend on SPARSEMEM

2018-06-29 Thread Michal Hocko
On Fri 29-06-18 16:35:08, Mike Rapoport wrote: > The deferred memory initialization relies on section definitions, e.g > PAGES_PER_SECTION, that are only available when CONFIG_SPARSEMEM=y on most > architectures. > > Initially DEFERRED_STRUCT_PAGE_INIT depended on explicit >

Re: [PATCH 00/19] mmc: mmci: add stm32 sdmmc variant

2018-06-29 Thread Ludovic BARRE
hi Ulf I know that you very busy on other task, but did you have time to look my serie. do you have first feedback ? BR Ludo On 06/12/2018 03:14 PM, Ludovic Barre wrote: From: Ludovic Barre This patch series adapts mmci driver to add support for stm32 sdmmc variant. stm32h7 SoC integrates

Re: [PATCH 2/2] drivers: core: Remove glue dirs from sysfs earlier

2018-06-29 Thread Linus Torvalds
On Thu, Jun 28, 2018 at 7:22 PM Benjamin Herrenschmidt wrote: > > This fixes it by instead doing an explicit kobject_del() when > the glue dir is empty, by keeping track of the number of > child devices of the gluedir. Ugh. I was hoping that you'd just do the "only check duplicate names if

[PATCH] mmc: dw_mmc: fix errors to use card read/write threshold for HS400 mode

2018-06-29 Thread Huanlin.Ke
The card write threshold is applicable for HS400 mode only, so it should return back except HS400 timing mode. The card read threshold is also required for HS400 mode as the host controller incorrectly samples the data if the card clock stops within a block transfer. Signed-off-by: Huanlin.Ke

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-29 Thread Linus Torvalds
On Thu, Jun 28, 2018 at 6:08 PM Andy Lutomirski wrote: > > On Jun 28, 2018, at 5:18 PM, Linus Torvalds > > wrote: > > > > > > Make it do > > > >if (rseq_cs->abort_ip != (unsigned long)rseq_cs->abort_ip) > >return -EINVAL; > > > > at abort time. > > You sure? Because,

[PATCH v2] kvm, mm: account shadow page tables to kmemcg

2018-06-29 Thread Shakeel Butt
The size of kvm's shadow page tables corresponds to the size of the guest virtual machines on the system. Large VMs can spend a significant amount of memory as shadow page tables which can not be left as system memory overhead. So, account shadow page tables to the kmemcg. Signed-off-by: Shakeel

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-29 Thread Mathieu Desnoyers
- On Jun 29, 2018, at 10:02 AM, Linus Torvalds torva...@linux-foundation.org wrote: > On Thu, Jun 28, 2018 at 6:08 PM Andy Lutomirski wrote: >> > On Jun 28, 2018, at 5:18 PM, Linus Torvalds >> > wrote: >> > >> > >> > Make it do >> > >> >if (rseq_cs->abort_ip != (unsigned

Re: [PATCH] mm: make DEFERRED_STRUCT_PAGE_INIT explicitly depend on SPARSEMEM

2018-06-29 Thread Pavel Tatashin
This is something I also wanted to see, thank you. Reviewed-by: Pavel Tatashin

Re: [PATCH -mm -v4 03/21] mm, THP, swap: Support PMD swap mapping in swap_duplicate()

2018-06-29 Thread Matthew Wilcox
On Fri, Jun 22, 2018 at 11:51:33AM +0800, Huang, Ying wrote: > +++ b/mm/swap_state.c > @@ -433,7 +433,7 @@ struct page *__read_swap_cache_async(swp_entry_t entry, > gfp_t gfp_mask, > /* >* Swap entry may have been freed since our caller observed it. >

linux-next: build failure after merge of the random tree

2018-06-29 Thread Stephen Rothwell
Hi Theodore, After merging the random tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from include/linux/mmzone.h:10:0, from include/linux/gfp.h:6, from include/linux/umh.h:4, from

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