[PATCH 1/3] modsign: add markers to endif-statements in certs/Makefile

2017-07-13 Thread David Howells
From: Jarkko Sakkinen It's a bit hard for eye to track certs/Makefile if you are not accustomed to it. This commit adds comments to key endif statements in order to help to keep the context while reading this file. Signed-off-by: Jarkko Sakkinen Signed-off-by: David Howells --- certs/Makefil

[PATCH 0/3] KEYS: Miscellany

2017-07-13 Thread David Howells
Hi James, Could you pass these on to Linus please? The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-next David --- Eric Biggers (1): KEYS: DH: validate __spare field Jarkko Sakkinen (1): modsign: add markers

[PATCH 1/3] modsign: add markers to endif-statements in certs/Makefile

2017-07-13 Thread David Howells
From: Jarkko Sakkinen It's a bit hard for eye to track certs/Makefile if you are not accustomed to it. This commit adds comments to key endif statements in order to help to keep the context while reading this file. Signed-off-by: Jarkko Sakkinen Signed-off-by: David Howells --- certs/Makefil

[PATCH 2/3] KEYS: DH: validate __spare field

2017-07-13 Thread David Howells
From: Eric Biggers Syscalls must validate that their reserved arguments are zero and return EINVAL otherwise. Otherwise, it will be impossible to actually use them for anything in the future because existing programs may be passing garbage in. This is standard practice when adding new APIs. Cc

[PATCH 3/3] KEYS: Add documentation for asymmetric keyring restrictions

2017-07-13 Thread David Howells
From: Mat Martineau Provide more specific examples of keyring restrictions as applied to X.509 signature chain verification. Signed-off-by: Mat Martineau Signed-off-by: David Howells --- Documentation/crypto/asymmetric-keys.txt | 65 ++ Documentation/security/ke

Re: [PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-13 Thread Bjorn Helgaas
On Thu, Jul 06, 2017 at 05:07:14PM -0400, Sinan Kaya wrote: > An endpoint is allowed to issue Configuration Request Retry Status (CRS) > following a Function Level Reset (FLR) request to indicate that it is not > ready to accept new requests. > > Seen a timeout message with Intel 750 NVMe drive an

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 11:19:11AM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > > One gloriously ugly hack would be to delay the userspace unwind to > > > return-to-userspace, at which point we have a schedulable context and can > > > take > > > faults. > > I don't think it's

Re: [PATCH 0/2] Workaround for uPD72020x USB3 chips

2017-07-13 Thread Marc Zyngier
On 13/07/17 12:36, Bjorn Helgaas wrote: > On Thu, Jul 13, 2017 at 08:46:45AM +0100, Marc Zyngier wrote: >> On 13/07/17 07:48, Ard Biesheuvel wrote: >>> On 13 July 2017 at 04:12, Bjorn Helgaas wrote: On Mon, Jul 10, 2017 at 04:52:28PM +0100, Marc Zyngier wrote: > Ard and myself have just s

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Eric W. Biederman
Theodore Ts'o writes: > I'm really confused what problem that is trying to be solved, here, > but it **feels** really, really wrong. > > Why do we need to store all of this state on a per-file basis, instead > of some kind of per-file system or per-container data structure? > > And how many of th

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 07:17:55AM -0500, Josh Poimboeuf wrote: > BTW, while we're throwing out ideas for this, here's another idea, > though it's almost certainly not a good one :-) > > For user space stack unwinding, the kernel could emulate what the kernel > 'guess' unwinder does by scanning th

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Marek Szyprowski
Hi Rob, On 2017-07-13 14:10, Rob Clark wrote: On Thu, Jul 13, 2017 at 8:02 AM, Marek Szyprowski wrote: On 2017-07-13 13:50, Rob Clark wrote: On Thu, Jul 13, 2017 at 1:35 AM, Sricharan R wrote: On 7/13/2017 10:43 AM, Vivek Gautam wrote: On 07/13/2017 04:24 AM, Stephen Boyd wrote: On 07/06,

Re: [Intel-gfx] [PATCH RESEND] drm/i915: Fix pipe/transcoder enum mismatches

2017-07-13 Thread Daniel Vetter
On Thu, Jul 13, 2017 at 01:13:51PM +0300, Ville Syrjälä wrote: > On Wed, Jul 12, 2017 at 07:28:14PM -0700, Stéphane Marchesin wrote: > > On Fri, May 5, 2017 at 10:40 AM, Ville Syrjälä > > wrote: > > > > > > On Fri, May 05, 2017 at 10:26:36AM -0700, Matthias Kaehlcke wrote: > > > > El Thu, Apr 20,

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Sagi Grimberg
+static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, +char *page) +{ + struct nvmet_subsys *subsys = to_subsys(item); + + return snprintf(page, PAGE_SIZE, "%llx\n", subsys->serial); +} + +static ssize_t nvmet_subsys_attr_

Re: [PATCH 08/17] tty: New RISC-V SBI console driver

2017-07-13 Thread James Hogan
On Thu, Jul 13, 2017 at 09:59:53PM +1000, Michael Ellerman wrote: > Palmer Dabbelt writes: > > > On Wed, 12 Jul 2017 04:04:00 PDT (-0700), m...@ellerman.id.au wrote: > >> Palmer Dabbelt writes: > >> > >>> On Mon, 10 Jul 2017 23:21:07 PDT (-0700), m...@ellerman.id.au wrote: > Palmer Dabbelt

Re: [PATCH v8 1/7] perf/core: Define the common branch type classification

2017-07-13 Thread Jin, Yao
Sure, thanks so much! On 7/13/2017 8:04 PM, Michael Ellerman wrote: Jin Yao writes: It is often useful to know the branch types while analyzing branch data. For example, a call is very different from a conditional branch. Currently we have to look it up in binary while the binary may later

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 07:21:15AM -0500, Josh Poimboeuf wrote: > On Thu, Jul 13, 2017 at 07:17:55AM -0500, Josh Poimboeuf wrote: > > BTW, while we're throwing out ideas for this, here's another idea, > > though it's almost certainly not a good one :-) > > > > For user space stack unwinding, the k

Re: [PATCH] drm: Add missing field copy in compat_drm_version

2017-07-13 Thread Daniel Vetter
On Wed, Jul 12, 2017 at 02:18:32PM +0800, Jeffy Chen wrote: > DRM_IOCTL_VERSION is supposed to update the name_len/date_len/desc_len > fields to user. > > Fixes: 012c6741c6aa("switch compat_drm_version() to drm_ioctl_kernel()") > Signed-off-by: Jeffy Chen Reviewed-by: Daniel Vetter Linus, sinc

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-13 Thread Matt Brown
On 7/11/17 3:31 PM, Mimi Zohar wrote: > On Tue, 2017-07-11 at 13:49 -0400, Matt Brown wrote: > >> I have merged my TPE LSM with Mimi Zohar's shebang LSM and will be >> releasing a version 3 soon. I have also added securityfs support to >> shebang that will allow users to update the interpreter lis

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 11/07/17 16:21, Dietmar Eggemann wrote: > On 11/07/17 07:39, Viresh Kumar wrote: >> On 10-07-17, 14:46, Rafael J. Wysocki wrote: >>> This particular change is about a new feature, so making it in the core is >>> OK >>> in two cases IMO: (a) when you actively want everyone to be affected by it

Re: [PATCH 1/1] MAINTAINERS: Add entry for Whiskey Cove PMIC GPIO driver

2017-07-13 Thread Linus Walleij
On Fri, Jun 30, 2017 at 9:20 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > Added maintainer info for Whiskey Cove PMIC GPIO driver. > > Signed-off-by: Kuppuswamy Sathyanarayanan > Patch applied. Yours, Linus Walleij

Re: [PATCH v4 03/14] drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths

2017-07-13 Thread Daniel Vetter
On Wed, Jul 12, 2017 at 09:47:27AM +0200, Peter Rosin wrote: > On 2017-07-12 09:03, Daniel Vetter wrote: > > On Tue, Jul 11, 2017 at 02:12:26PM +0200, Peter Rosin wrote: > >> On 2017-07-11 10:10, Daniel Vetter wrote: > >>> Tiny nit you might want to improve (since you need to respin for my naming >

Re: Regression with suspicious RCU usage splats with cpu_pm change

2017-07-13 Thread Paul E. McKenney
On Thu, Jul 13, 2017 at 01:50:26PM +0200, Rafael J. Wysocki wrote: > On Thu, Jul 13, 2017 at 11:43 AM, Alex Shi wrote: > > > > On 07/13/2017 03:07 PM, Tony Lindgren wrote: > >> Hi, > >> > >> Looks like next-20170713 gives me a bunch of "suspicious

Re: [PATCH v2 01/18] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-07-13 Thread Richard Fitzgerald
On Thu, 2017-07-13 at 11:05 +0100, Mark Brown wrote: > On Thu, Jul 13, 2017 at 09:02:10AM +0100, Lee Jones wrote: > > > This patch has been rejected by Linus. > > > https://lkml.org/lkml/2017/7/7/579 > > Hrm, when I used to push the register definition patches I did elide all > the obviously re

Re: A udev rule to serve the change event of ACPI container?

2017-07-13 Thread joeyli
On Thu, Jul 13, 2017 at 09:06:19AM +0200, Michal Hocko wrote: > On Thu 13-07-17 14:58:06, Joey Lee wrote: > > Hi Michal, > > > > Sorry for my delay. > > > > On Tue, Jul 11, 2017 at 10:25:32AM +0200, Michal Hocko wrote: > > > On Mon 26-06-17 10:59:07, Michal Hocko wrote: > > > > On Mon 26-06-17 1

Re: [PATCH v3 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-07-13 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > On Tue, May 23, 2017 at 5:36 AM, Vitaly Kuznetsov wrote: >> Andy Lutomirski writes: >> >>> >>> Also, can you share the benchmark you used for these patches? >> >> I didn't do much while writing the patchset, mostly I was running the >> attached dumb trasher (32 pthread

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 12/07/17 05:09, Viresh Kumar wrote: > On 11-07-17, 16:06, Dietmar Eggemann wrote: >> But in the meantime we're convinced that cpufreq_driver_fast_switch() is >> not the right place to call arch_set_freq_scale() since for (future) >> arm/arm64 fast-switch driver, the return value of >> cpufreq_

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Johannes Thumshirn
On Thu, Jul 13, 2017 at 03:30:39PM +0300, Sagi Grimberg wrote: > It seems weird that a subsystem has a serial. The subsystem is more of a hack I admit. But we don't maintain configurations for controllers in configfs, do we? > I'm not sure that a dynamic controller should maintain > a serial. Dyn

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 12/07/17 10:27, Viresh Kumar wrote: > On 12-07-17, 10:31, Peter Zijlstra wrote: >> So the problem with the thread is two-fold; one the one hand we like the >> scheduler to directly set frequency, but then we need to schedule a task >> to change the frequency, which will change the frequency an

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-13 Thread Andrey Ryabinin
On 07/11/2017 10:05 PM, Kirill A. Shutemov wrote: >>> Can use your Signed-off-by for a [cleaned up version of your] patch? >> >> Sure. > > Another KASAN-releated issue: dumping page tables for KASAN shadow memory > region takes unreasonable time due to kasan_zero_p?? mapped there. > > The patch b

Re: [PATCH 4.9 131/172] perf probe: Fix to probe on gcc generated functions in modules

2017-07-13 Thread Greg Kroah-Hartman
On Wed, Jul 05, 2017 at 01:02:36PM -0700, Krister Johansen wrote: > Hey Greg, > > > 4.9-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Masami Hiramatsu > > > > > > [ Upstream commit 613f050d68a8ed3c0b18b9568698908ef7bbc1f7 ] >

[GIT PULL] pwm: Changes for v4.13-rc1

2017-07-13 Thread Thierry Reding
Hi Linus, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.13-rc1 for you to fetch chang

[PATCH] input: serio: Fix multiline comments style in xilinx_ps2

2017-07-13 Thread Michal Simek
Fix multiline comments style not to be reported by checkpatch. Signed-off-by: Michal Simek --- drivers/input/serio/xilinx_ps2.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c index 14c40892ed82..47472

Re: [PATCH v2 01/18] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-07-13 Thread Mark Brown
On Thu, Jul 13, 2017 at 01:44:10PM +0100, Richard Fitzgerald wrote: > On Thu, 2017-07-13 at 11:05 +0100, Mark Brown wrote: > > On Thu, Jul 13, 2017 at 09:02:10AM +0100, Lee Jones wrote: > > > This patch has been rejected by Linus. > > > https://lkml.org/lkml/2017/7/7/579 > > Hrm, when I used to

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Christoph Hellwig
On Thu, Jul 13, 2017 at 03:30:39PM +0300, Sagi Grimberg wrote: > It seems weird that a subsystem has a serial. But that's actually how NVMe defines them. Which mean we first need to fix our code to generate a serial number per subsystem, and on top of that the patch from Johannes seems perfectly

[PATCH 0/3] STM32 CRC update

2017-07-13 Thread Lionel Debieve
This set of patches update the STM32 CRC driver. It contains two corrections and one global Kconfig rework. First correction is about the relaxed usage in scope of arm platform usage, second about a unbind driver issue. Last patch is about a Kconfig rework that make configuration generic for STM32

[PATCH 2/3] crypto: stm32 - solve crc issue during unbind

2017-07-13 Thread Lionel Debieve
Use the correct unregister_shashes function to to remove the registered algo Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/stm32/stm32_crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/stm32/stm32_crc32.c b/drivers/crypto

[PATCH 1/3] crypto: stm32 - CRC use relaxed function

2017-07-13 Thread Lionel Debieve
In case of arm soc support, readl and writel will be optimized using relaxed functions Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/stm32/stm32_crc32.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/stm32/stm32

[PATCH 3/3] crypto: stm32 - Rename module to use generic crypto

2017-07-13 Thread Lionel Debieve
The complete stm32 module is rename as crypto in order to use generic naming Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/Makefile | 2 +- drivers/crypto/stm32/Kconfig | 6 +++--- drivers/crypto/stm32/Makefile | 3 +-- 3 files changed, 5 insertions(+), 6

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Dietmar Eggemann
On 13/07/17 13:40, Sudeep Holla wrote: > > > On 11/07/17 16:21, Dietmar Eggemann wrote: >> On 11/07/17 07:39, Viresh Kumar wrote: >>> On 10-07-17, 14:46, Rafael J. Wysocki wrote: [...] >> Like I said in the other email, since for (future) >> arm/arm64 fast-switch driver, the return value of >>

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Johannes Thumshirn
On Thu, Jul 13, 2017 at 03:06:52PM +0200, Christoph Hellwig wrote: > On Thu, Jul 13, 2017 at 03:30:39PM +0300, Sagi Grimberg wrote: > > It seems weird that a subsystem has a serial. > > But that's actually how NVMe defines them. Which mean we first > need to fix our code to generate a serial numb

Re: [PATCH 3/4] perf annotate: Support --show-nr-samples option

2017-07-13 Thread Taeung Song
Arnaldo, Additionally I think we need to calculate the percentage with the sample period, not number of samples like perf-report. What do you think about it ? For examples, perf-annotate figure out the percentage with number of samples like below ui/gtk/annotate.c: 23 static int perf_gtk__

Re: [PATCH net 01/20] net/hinic: Initialize hw interface

2017-07-13 Thread Aviad Krawczyk (A)
Hi Andrew, Now is the merge window and we need to resubmit. We will fix it when we will resubmit. The version number was used for the ethtool information and module version and will be removed. devm_kzalloc - will be used for the allocation of the memory at initialization. We used pr_ for mess

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Josh Poimboeuf
On Wed, Jul 12, 2017 at 09:29:17PM -0700, Andi Kleen wrote: > On Wed, Jul 12, 2017 at 05:47:59PM -0500, Josh Poimboeuf wrote: > > On Wed, Jul 12, 2017 at 03:30:31PM -0700, Andi Kleen wrote: > > > Josh Poimboeuf writes: > > > > > > > > The ORC data format does have a few downsides compared to DWARF

Re: [PATCH net 20/20] net/hinic: Add ethtool and stats

2017-07-13 Thread Aviad Krawczyk (A)
Hi Andrew, We will separate the patches when we will resubmit. Aviad On 7/12/2017 6:43 PM, Andrew Lunn wrote: > On Wed, Jul 12, 2017 at 10:17:26PM +0800, Aviad Krawczyk wrote: > > Hi Avaid > >> + >> +static void hinic_tx_timeout(struct net_device *netdev) >> +{ >> +struct hinic_dev *nic_d

[PATCH] usb: gadget: ffs: handle I/O completion in-order

2017-07-13 Thread John Keeping
By submitting completed transfers to the system workqueue there is no guarantee that completion events will be queued up in the correct order, so if a large bulk transfer is being read with aio the data may arrive in the wrong order. Create a single-threaded workqueue for FunctionFS so that comple

Re: [PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2017-07-13 Thread Russell King - ARM Linux
On Thu, Jul 13, 2017 at 01:13:28PM +0200, Marek Szyprowski wrote: > Hi Christoph, > > On 2017-07-05 19:33, Christoph Hellwig wrote: > >On Mon, Jul 03, 2017 at 11:27:32AM +0200, Marek Szyprowski wrote: > >>The main question here if we want to merge incomplete solution or not. As > >>for now, there

[PATCH v2] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-13 Thread Georgi Djakov
As there is no way to actually query the hardware for the current clock rate, now racalc_rate() just returns the last rate that was previously set. But if the rate was not set yet, we return the bogus rate of 1000Hz. The branch clocks actually have the same rate as their parent (xo_board), so just

[PATCH 1/2] dt-bindings: Document STM32 HASH bindings

2017-07-13 Thread Lionel Debieve
This adds documentation of device tree bindings for the STM32 HASH controller. Signed-off-by: Lionel Debieve --- .../devicetree/bindings/crypto/st,stm32-hash.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-

[PATCH 0/2] STM32 HASH crypto driver

2017-07-13 Thread Lionel Debieve
This set of patches adds a new crypto driver for STMicroelectronics stm32 HW. This drivers uses the crypto API and provides with HW-enabled md5, sha1, sha224, sha256 hash based algorithms. It makes use of the crypto engine to support ahash requests. This driver was successfully tested with tcrypt

[PATCH 2/2] crypto: stm32 - Support for STM32 HASH module

2017-07-13 Thread Lionel Debieve
This module register a HASH module that support multiples algorithms: MD5, SHA1, SHA224, SHA256. It includes the support of HMAC hardware processing corresponding to the supported algorithms. DMA or IRQ mode are used depending on data length. Signed-off-by: Lionel Debieve --- drivers/crypto/stm

Re: [PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2017-07-13 Thread Christoph Hellwig
On Thu, Jul 13, 2017 at 02:21:53PM +0100, Russell King - ARM Linux wrote: > My conclusion of the dma_alloc_noncoherent() and dma_cache_sync() API > when it was introduced is that it's basically a completely broken > interface, and I've never seen any point to it. Maybe some of that is > because it

Re: [PATCH linux v2 1/3] drivers: w1: add hwmon support structures

2017-07-13 Thread Guenter Roeck
On 07/12/2017 02:41 PM, Jaghathiswari Rankappagounder Natarajan wrote: This patch has changes to w1.h/w1.c/w1_family.h generic files to add (optional) hwmon support structures. Signed-off-by: Jaghathiswari Rankappagounder Natarajan Acked-by: Evgeniy Polyakov --- v2 - made changes to support hw

[GIT PULL] fbdev changes for v4.13

2017-07-13 Thread Bartlomiej Zolnierkiewicz
Hi Linus, Please pull fbdev changes for v4.13. There is nothing really major here, just a couple of small bugfixes, improvements and cleanups. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics The following changes since commit 32c1431eea4881a6b17bd7c

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-13 Thread Kirill A. Shutemov
On Thu, Jul 13, 2017 at 03:58:29PM +0300, Andrey Ryabinin wrote: > On 07/11/2017 10:05 PM, Kirill A. Shutemov wrote: > >>> Can use your Signed-off-by for a [cleaned up version of your] patch? > >> > >> Sure. > > > > Another KASAN-releated issue: dumping page tables for KASAN shadow memory > > regi

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Sricharan R
Hi, On 7/13/2017 5:20 PM, Rob Clark wrote: > On Thu, Jul 13, 2017 at 1:35 AM, Sricharan R wrote: >> Hi Vivek, >> >> On 7/13/2017 10:43 AM, Vivek Gautam wrote: >>> Hi Stephen, >>> >>> >>> On 07/13/2017 04:24 AM, Stephen Boyd wrote: On 07/06, Vivek Gautam wrote: > @@ -1231,12 +1237,18 @@ s

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Vivek Gautam
On Thu, Jul 13, 2017 at 11:05 AM, Sricharan R wrote: > Hi Vivek, > > On 7/13/2017 10:43 AM, Vivek Gautam wrote: >> Hi Stephen, >> >> >> On 07/13/2017 04:24 AM, Stephen Boyd wrote: >>> On 07/06, Vivek Gautam wrote: @@ -1231,12 +1237,18 @@ static int arm_smmu_map(struct iommu_domain *doma

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Vivek Gautam
On Thu, Jul 13, 2017 at 7:27 PM, Vivek Gautam wrote: > On Thu, Jul 13, 2017 at 11:05 AM, Sricharan R > wrote: >> Hi Vivek, >> >> On 7/13/2017 10:43 AM, Vivek Gautam wrote: >>> Hi Stephen, >>> >>> >>> On 07/13/2017 04:24 AM, Stephen Boyd wrote: On 07/06, Vivek Gautam wrote: > @@ -1231,12

[PATCH v5 1/2] clk: gate: expose clk_gate_ops::is_enabled

2017-07-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch exposes clk_gate_ops::is_enabled as functions that can be directly called and assigned in places like this so we don't need wrapper functions that do nothing besides forward the call. Signed-off-by: Gabriel Fernandez Sugested by Stephen Boyd --- drivers/clk/

[PATCH v5 0/2] clk: stm32h7: Add stm32h743 clock driver

2017-07-13 Thread gabriel.fernandez
From: Gabriel Fernandez v5: - return bool instead int for enable_power_domain_write_protection() - add comment to explain use of CLK_OF_DECLARE_DRIVER() - add comment to explain why we can't use read_poll_timeout() - expose clk_gate_ops::is_enabled - use of __clk_mux_determine_rate & cl

[PATCH v5 2/2] clk: stm32h7: Add stm32h743 clock driver

2017-07-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables clocks for STM32H743 boards. Signed-off-by: Gabriel Fernandez for MFD changes: Acked-by: Lee Jones for DT-Bindings Acked-by: Rob Herring --- .../devicetree/bindings/clock/st,stm32h7-rcc.txt | 81 ++ drivers/clk/Makefile

Re: [PATCH] nbd: kill unused ret in recv_work

2017-07-13 Thread Jens Axboe
On 07/13/2017 05:20 AM, Kefeng Wang wrote: > No need to return value in queue work, kill ret variable. Applied, thanks. -- Jens Axboe

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 12/07/17 12:14, Peter Zijlstra wrote: > On Wed, Jul 12, 2017 at 02:57:55PM +0530, Viresh Kumar wrote: >> On 12-07-17, 10:31, Peter Zijlstra wrote: >>> So the problem with the thread is two-fold; one the one hand we like the >>> scheduler to directly set frequency, but then we need to schedule

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 13/07/17 14:08, Dietmar Eggemann wrote: > On 13/07/17 13:40, Sudeep Holla wrote: >> >> >> On 11/07/17 16:21, Dietmar Eggemann wrote: >>> On 11/07/17 07:39, Viresh Kumar wrote: On 10-07-17, 14:46, Rafael J. Wysocki wrote: > > [...] > >>> Like I said in the other email, since for (future)

Re: [RFC v5 34/38] procfs: display the protection-key number associated with a vma

2017-07-13 Thread Dave Hansen
On 07/13/2017 01:03 AM, Ram Pai wrote: > On Tue, Jul 11, 2017 at 11:13:56AM -0700, Dave Hansen wrote: >> On 07/05/2017 02:22 PM, Ram Pai wrote: >>> +#ifdef CONFIG_PPC64_MEMORY_PROTECTION_KEYS >>> +void arch_show_smap(struct seq_file *m, struct vm_area_struct *vma) >>> +{ >>> + seq_printf(m, "Prot

[PATCH 11/18] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2017-07-13 Thread Maxime Ripard
The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 85 +++- 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.

[PATCH 18/18] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display

2017-07-13 Thread Maxime Ripard
The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +- 1 file changed, 39 insertions(+) diff --git

[PATCH 17/18] arm: dts: sun8i: Add BananaPI M2-Magic DTS

2017-07-13 Thread Maxime Ripard
The Bananapi M2-Magic is a board with an A33, a USB host and USB OTG connectors, and 8GB eMMC, an AP6212 WiFi/Bluetooth chip and connectors for DSI, CSI and GPIOs. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/Makefile | 1 +- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts

[PATCH 15/18] drm/panel: Add Huarui LHR050H41 panel driver

2017-07-13 Thread Maxime Ripard
The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a driver for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/panel/Makefile | 1 +- drivers/gpu/drm/panel/panel-huarui-lhr050h41.c | 444 ++

[PATCH 09/18] drm/sun4i: tcon: Adjust dotclock dividers range

2017-07-13 Thread Maxime Ripard
It seems like the dotclock dividers are a bit less strict range, and can operate even with a smaller than 6 divider. Loose the boundaries a bit. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) dif

[PATCH 16/18] arm: dts: sun8i: a33: Add the DSI-related nodes

2017-07-13 Thread Maxime Ripard
The A33 has a MIPI-DSI block, along with its D-PHY. Let's add it in order to use it in the relevant boards. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.dtsi | 50 - 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

[PATCH 10/18] drm/sun4i: tcon: Move out the tcon0 common setup

2017-07-13 Thread Maxime Ripard
Some channel0 setup has to be done, no matter what the output interface is (RGB, CPU, LVDS). Move that code into a common function in order to avoid duplication. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 26 -- 1 file changed, 16 insertions(+),

[PATCH 07/18] drm/sun4i: tcon: Don't rely on encoders to set the TCON mode

2017-07-13 Thread Maxime Ripard
Just like we did for the TCON enable and disable, for historical reasons we used to rely on the encoders calling the TCON mode_set function, while the CRTC has a callback for that. Let's implement it in order to reduce the boilerplate code. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i

[PATCH 08/18] drm/sun4i: tcon: Add TRI finish interrupt for vblank

2017-07-13 Thread Maxime Ripard
The "CPU" (or Intel 8080) interface uses a different interrupt called TRI_FINISH (most likely TRI being for trigger) to notify the end of frames, and hence the VBLANK period. And that interrupt to the possible VBLANK interrupts source. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4

[PATCH 06/18] drm/sun4i: tcon: Don't rely on encoders to enable the TCON

2017-07-13 Thread Maxime Ripard
So far, we've required all the TCON-connected encoders to call the TCON enable and disable functions. This was made this way because in the RGB/LVDS case, the TCON is the CRTC and the encoder. However, in all the other cases (HDMI, TV, DSI, etc.), we have another encoder down the road that needs t

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-13 Thread Kirill A. Shutemov
On Thu, Jul 13, 2017 at 04:52:28PM +0300, Kirill A. Shutemov wrote: > On Thu, Jul 13, 2017 at 03:58:29PM +0300, Andrey Ryabinin wrote: > > On 07/11/2017 10:05 PM, Kirill A. Shutemov wrote: > > >>> Can use your Signed-off-by for a [cleaned up version of your] patch? > > >> > > >> Sure. > > > > > >

[PATCH 05/18] drm/sun4i: tcon: remove unused function

2017-07-13 Thread Maxime Ripard
Even though that function is defined in the TCON header, it's not defined nor used anywhere. Remove the prototype. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/

[PATCH 04/18] drm/sun4i: Remove useless atomic_check

2017-07-13 Thread Maxime Ripard
The atomic_check callback is optional, and we don't implement anything in some parts of our drivers. Let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_layer.c | 7 --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 8 drivers/gpu/drm/sun4i/sun4i_tv.c| 8 --

[PATCH 03/18] drm/sun4i: Realign Makefile padding and reorder it

2017-07-13 Thread Maxime Ripard
Some options were not padded as they should, and the order in the Makefile was chaotic. Fix that. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/sun4i/Makefile b/driv

[PATCH 01/18] regmap: mmio: Add function to attach a clock

2017-07-13 Thread Maxime Ripard
regmap_init_mmio_clk allows to specify a clock that needs to be enabled while accessing the registers. However, that clock is retrieved through its clock ID, which means it will lookup that clock based on the current device that registers the regmap, and, in the DT case, will only look in that dev

[PATCH 14/18] dt-bindings: panel: Add Huarui LHR050H41 panel documentation

2017-07-13 Thread Maxime Ripard
The LHR050H41 is a 1280x700 4-lanes DSI panel. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/huarui,lhr050h41.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/huarui,lhr050h41.t

[PATCH 02/18] drm/sun4i: Add if statement instead of depends on

2017-07-13 Thread Maxime Ripard
The depends on relationship is obvious, and using an if statement will propagate it to every option without the need for each and every one of them to define it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Kconfig | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --gi

[PATCH 00/18] drm/sun4i: Allwinner MIPI-DSI support

2017-07-13 Thread Maxime Ripard
Hi, Here is an preliminary version of the MIPI-DSI support for the Allwinner SoCs. This controller can be found on a number of recent SoCs, such as the A31, A33 or the A64. Given the sparse documentation, there's a number of obscure areas, but the current implementation has been tested with a 4-

[PATCH 12/18] drm/sun4i: Add Allwinner A31 MIPI-DSI controller support

2017-07-13 Thread Maxime Ripard
Most of the Allwinner SoCs since the A31 share the same MIPI-DSI controller. While that controller is mostly undocumented, the code is out there and has been cleaned up in order to be integrated into DRM. However, there's still some dark areas that are a bit unclear about how the block exactly ope

[PATCH 13/18] dt-bindings: vendor: Add Huarui Lighting

2017-07-13 Thread Maxime Ripard
Huarui Lighting makes display panel, add it to the list of panels. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-13 Thread Andrey Ryabinin
On 07/13/2017 05:15 PM, Kirill A. Shutemov wrote: >> >> Hm. I don't see this: >> >> ... >> [0.247532] 0xff9e9380-0xff9f 04G >>p4d >> [0.247733] 0xff9f-0x 24P >>

[PATCH] staging drivers fixed coding style error

2017-07-13 Thread smklearn
Fixed coding style error flagged checkpatch.pl: - ERROR: space prohibited after that open parenthesis '(' - WARNING: Block comments use * on subsequent lines Signed-off-by: Shy More Output after fixing coding style issues: $KERN/scripts/checkpatch.pl -f ./media/atomisp/p

Re: [PATCH] ASoC: tegra: constify snd_soc_dai_ops structure

2017-07-13 Thread Jon Hunter
On 13/07/17 06:47, Gustavo A. R. Silva wrote: > This structure is only stored in the ops field of a snd_soc_dai_driver > structure. That field is declared const, so snd_soc_dai_ops structures > that have this property can be declared as const also. > > Signed-off-by: Gustavo A. R. Silva > --- >

[PATCH v5 0/4] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-13 Thread Baoquan He
Our customer reported that Kernel text may be located on non-mirror region (movable zone) when both address range mirroring feature and KASLR are enabled. The functions of address range mirroring feature are as follows. - The physical memory region whose descriptors in EFI memory map have EFI_ME

[PATCH v5 1/4] x86/boot/KASLR: Wrap e820 entries walking code into new function process_e820_entries()

2017-07-13 Thread Baoquan He
The original function process_e820_entry() only takes care of each e820 entry passed. And move the E820_TYPE_RAM checking logic into process_e820_entries(). And remove the redundent local variable 'addr' definition in find_random_phys_addr(). Signed-off-by: Baoquan He Acked-by: Kees Cook ---

[PATCH v5 4/4] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-13 Thread Baoquan He
Kernel text may be located in non-mirror regions (movable zone) when both address range mirroring feature and KASLR are enabled. The address range mirroring feature arranges such mirror region into normal zone and other region into movable zone in order to locate kernel code and data in mirror reg

[PATCH v5 3/4] x86/boot/KASLR: Rename process_e820_entry() into process_mem_region()

2017-07-13 Thread Baoquan He
Now process_e820_entry() is not limited to e820 entry processing, rename it to process_mem_region(). And adjust the code comment accordingly. Signed-off-by: Baoquan He Acked-by: Kees Cook --- arch/x86/boot/compressed/kaslr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH v5 2/4] x86/boot/KASLR: Switch to pass struct mem_vector to process_e820_entry()

2017-07-13 Thread Baoquan He
This makes process_e820_entry() be able to process any kind of memory region. Signed-off-by: Baoquan He Acked-by: Kees Cook --- arch/x86/boot/compressed/kaslr.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arc

Re: [PATCH 0/2] Notifications for perf sideband events

2017-07-13 Thread Naveen N. Rao
[ Adding Vince...] On 2017/07/12 12:48PM, Jiri Olsa wrote: > On Mon, Jun 19, 2017 at 08:01:06PM +0530, Naveen N. Rao wrote: > > Currently, there is no way to ask for signals to be delivered when a > > certain number of sideband events have been logged into the ring buffer. > > This is problemati

[PATCH v7 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-07-13 Thread Ding Tianhong
From: Casey Leedom The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING indicates that the Relaxed Ordering Attribute should not be used on Transaction Layer Packets destined for the PCIe End Node so flagged. Initially flagged this way are Intel E5-26xx Root Complex Ports which suffer from a Flow Cont

[PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-13 Thread Ding Tianhong
The PCIe Device Control Register use the bit 4 to indicate that whether the device is permitted to enable relaxed ordering or not. But relaxed ordering is not safe for some platform which could only use strong write ordering, so devices are allowed (but not required) to enable relaxed ordering bit

[PATCH v7 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-13 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Remove the enable_pcie_relaxed_ordering() to avoid enable PCIe Capability Device Control[Relaxed Ordering Enable] at probe routine, to mak

[PATCH v7 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-13 Thread Ding Tianhong
Some devices have problems with Transaction Layer Packets with the Relaxed Ordering Attribute set. This patch set adds a new PCIe Device Flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known devices with Relaxed Ordering issues, and a use of this new flag by the cxgb4 dr

[PATCH] Crypto_user: Make crypto user API available for all net ns

2017-07-13 Thread Christian Langrock
With this patch it's possible to use crypto user API form all network namespaces, not only form the initial net ns. Signed-off-by: Christian Langrock --- crypto/crypto_user.c| 39 ++- include/net/net_namespace.h | 1 + 2 files changed, 31 insertions(+

Re: [PATCH] staging drivers fixed coding style error

2017-07-13 Thread Greg KH
On Thu, Jul 13, 2017 at 07:17:56AM -0700, smklearn wrote: > Fixed coding style error flagged checkpatch.pl: > - ERROR: space prohibited after that open parenthesis '(' > - WARNING: Block comments use * on subsequent lines > > Signed-off-by: Shy More > > Output after fixing coding sty

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: > +#define X86_BR_TYPE_MAP_MAX 16 > + > +static int > +common_branch_type(int type) > +{ > + int i, mask; > + const int branch_map[X86_BR_TYPE_MAP_MAX] = { > + PERF_BR_CALL, /* X86_BR_CALL */ > + PER

<    1   2   3   4   5   6   7   8   9   >