[PATCH v1 2/2] drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw

2018-02-01 Thread Philippe Cornu
Hw older versions support non-alpha color formats derived from native alpha color formats only on the primary layer. For instance, RG16 native format without alpha works fine on 2nd layer but XR24 (derived color format from AR24) does not work on 2nd layer. Signed-off-by: Philippe Cornu --- driv

Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc

2018-02-01 Thread Mark Rutland
On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: > Documentation for last level cache controller device tree bindings, > client bindings usage examples. > > Signed-off-by: Channagoud Kadabi > --- > .../devicetree/bindings/arm/msm/qcom,llcc.txt | 93 > +

Re: [PATCH v2] mm: Reduce memory bloat with THP

2018-02-01 Thread Mel Gorman
On Thu, Feb 01, 2018 at 01:27:30PM +0300, Kirill A. Shutemov wrote: > > It's non-trivial to do this because at minimum a page fault has to check > > if there is a potential promotion candidate by checking the PTEs around > > the faulting address searching for a correctly-aligned base page that is >

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-02-01 Thread Christoffer Dall
Hi, On Thu, Feb 01, 2018 at 12:55:12PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the kvm tree got a conflict in: > > virt/kvm/arm/arch_timer.c > > between commit: > > 36e5cfd410ad ("KVM: arm/arm64: Properly handle arch-timer IRQs after > vtimer_save_state")

Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc

2018-02-01 Thread Mark Rutland
On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: > Documentation for last level cache controller device tree bindings, > client bindings usage examples. > > Signed-off-by: Channagoud Kadabi > --- > .../devicetree/bindings/arm/msm/qcom,llcc.txt | 93 > +

Re: [PATCH] Documentation/scheduler/sched-rt-group: Update SCHED DEADLINE references

2018-02-01 Thread Juri Lelli
Hi Daniel, On 01/02/18 11:31, Daniel Bristot de Oliveira wrote: > The documentation was mentioning the "future SCHED EDF" as the > solution for fine-grained control of deadline/period. This patch > updates this citing the (now) existing SCHED_DEADLINE. > > Signed-off-by: Daniel Bristot de Oliveir

[PATCH] soc: mediatek: Handle return of of_match_device function

2018-02-01 Thread Himanshu Jha
In scpsys_probe function, return value of of_match_device function which returns null is dereferenced without checking. Therefore, add a check for potential null dereference. Detected by CoverityScan, CID#1424087 "Dereference null return value" Fixes: commit 53fddb1a66dd ("soc: mediatek: reduce c

Re: [PATCH] soc: mediatek: Handle return of of_match_device function

2018-02-01 Thread Geert Uytterhoeven
Hi Himanshu, On Thu, Feb 1, 2018 at 12:00 PM, Himanshu Jha wrote: > In scpsys_probe function, return value of of_match_device function which > returns null is dereferenced without checking. Therefore, add a check for > potential null dereference. > > Detected by CoverityScan, CID#1424087 "Derefer

Re: Coccinelle: zalloc-simple: Delete function "kmem_cache_alloc" from SmPL rules

2018-02-01 Thread SF Markus Elfring
>> * Do we agree that a proper size determination is essential for every >> condition in the discussed SmPL rules together with forwarding >> this information? > > No. I don't mind a few false positives. I have got other source code analysis expectations there. This SmPL script contains the

Re: [PATCH] coccinelle: reduce false positives

2018-02-01 Thread Julia Lawall
Here are the results that are eliminated by my change: drivers/clk/axs10x/pll_clock.c:323:1-6 kfree(pll_clk); drivers/clk/clk-gpio.c:131:2-7 kfree(clk_gpio); drivers/clk/clk-hsdk-pll.c:410:1-6 kfree(pll_clk); drivers/clk/hisilicon/clk.c:97:1-6 kfree(clk_data); drivers/mfd/syscon.c:130:1-8 iounmap(

[GIT PULL] USB/PHY updates for 4.16-rc1

2018-02-01 Thread Greg KH
The following changes since commit a8750ddca918032d6349adbf9a4b6555e7db20da: Linux 4.15-rc8 (2018-01-14 15:32:30 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.16-rc1 for you to fetch changes up to d08dd3f3dd2ae351b79

Re: [PATCH 2/5] backlight: lp855x: document sysfs attributes

2018-02-01 Thread Daniel Thompson
On Fri, Jan 26, 2018 at 08:23:00PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interface of Texas Instruments lp855x > backlight driver by reading code and looking through git commit logs. > > Signed-off-by: Aishwarya Pant > --- > .../ABI/testing/sysfs-class-backlight-lp855x

[GIT PULL] TTY/Serial patches for 4.16-rc1

2018-02-01 Thread Greg KH
The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-4.16-rc1 for you to fetch changes up to c7e1b4059075c9e8eed

[GIT PULL] Staging/IIO update for 4.16-rc1

2018-02-01 Thread Greg KH
The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.16-rc1 for you to fetch changes up to 3384e01179e

[GIT PULL] Driver core updates for 4.16-rc1

2018-02-01 Thread Greg KH
The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.16-rc1 for you to fetch changes up to c50

[GIT PULL] Char/Misc driver patches for 4.16-rc1

2018-02-01 Thread Greg KH
The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.16-rc1 for you to fetch changes up to 9ff6576

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

2018-02-01 Thread Lorenzo Pieralisi
On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: > On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: > > Hi Bjorn, > > > > After merging the pci tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > drivers/pci/dwc/pcie-designware-ep.c

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

2018-02-01 Thread Niklas Cassel
On Thu, Feb 01, 2018 at 11:10:54AM +, Lorenzo Pieralisi wrote: > On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: > > On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: > > > Hi Bjorn, > > > > > > After merging the pci tree, today's linux-next build (arm > > > mult

Re: [PATCH] coccinelle: reduce false positives

2018-02-01 Thread Dan Carpenter
On Thu, Feb 01, 2018 at 12:06:35PM +0100, Julia Lawall wrote: > Here are the results that are eliminated by my change: > > drivers/clk/axs10x/pll_clock.c:323:1-6 kfree(pll_clk); > drivers/clk/clk-gpio.c:131:2-7 kfree(clk_gpio); > drivers/clk/clk-hsdk-pll.c:410:1-6 kfree(pll_clk); > drivers/clk/his

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

2018-02-01 Thread Kishon Vijay Abraham I
Hi Niklas, On Thursday 01 February 2018 04:46 PM, Niklas Cassel wrote: > On Thu, Feb 01, 2018 at 11:10:54AM +, Lorenzo Pieralisi wrote: >> On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: >>> On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: Hi Bjorn, >>

[PATCH 1/2] x86/retpoline: No retpolines for built-in __init functions

2018-02-01 Thread David Woodhouse
There's no point in building init code with retpolines, since it runs before any potentially hostile userspace does. And before the retpoline is actually ALTERNATIVEd into place, for much of it. Signed-off-by: David Woodhouse --- include/linux/init.h | 9 - 1 file changed, 8 insertions(+

[PATCH 0/2] Spectre v2 tweaks

2018-02-01 Thread David Woodhouse
A couple of things that have been lurking in the "shall we do this?" area of my git tree for a while, and I think we probably should... David Woodhouse (1): x86/retpoline: No retpolines for built-in __init functions KarimAllah Ahmed (1): x86: Simplify spectre_v2 command line parsing arch/x8

Re: [PATCH] net: bridge: Fix uninitialized error in br_fdb_sync_static()

2018-02-01 Thread Nikolay Aleksandrov
On 01/02/18 12:25, Geert Uytterhoeven wrote: > With gcc-4.1.2.: > > net/bridge/br_fdb.c: In function ‘br_fdb_sync_static’: > net/bridge/br_fdb.c:996: warning: ‘err’ may be used uninitialized in this > function > > Indeed, if the list is empty, err will be uninitialized, and will be > pro

[PATCH 2/2] x86: Simplify spectre_v2 command line parsing

2018-02-01 Thread David Woodhouse
From: KarimAllah Ahmed [dwmw2: Use ARRAY_SIZE] Signed-off-by: KarimAllah Ahmed Signed-off-by: David Woodhouse --- arch/x86/kernel/cpu/bugs.c | 86 ++ 1 file changed, 56 insertions(+), 30 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x8

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

2018-02-01 Thread Niklas Cassel
On Thu, Feb 01, 2018 at 04:52:01PM +0530, Kishon Vijay Abraham I wrote: > Hi Niklas, > > On Thursday 01 February 2018 04:46 PM, Niklas Cassel wrote: > > On Thu, Feb 01, 2018 at 11:10:54AM +, Lorenzo Pieralisi wrote: > >> On Thu, Feb 01, 2018 at 09:56:09AM +0100, Niklas Cassel wrote: > >>> On T

Re: [PATCH] xfs: Add missing braces around xfs_scrub_agfl_info initializer

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 11:23 AM, Geert Uytterhoeven wrote: > With gcc-4.1.2: > > fs/xfs/scrub/agheader.c: In function ‘xfs_scrub_agfl’: > fs/xfs/scrub/agheader.c:770: warning: missing braces around initializer > fs/xfs/scrub/agheader.c:770: warning: (near initialization for > ‘sai.oin

Re: [PATCH v12 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning

2018-02-01 Thread John Garry
On 23/01/2018 16:36, John Garry wrote: On some platforms(such as Hip06/Hip07), the legacy ISA/LPC devices access I/O with some special host-local I/O ports known on x86. As their I/O space are not memory mapped like PCI/PCIE MMIO host bridges, this patch is meant to support a new class of I/O hos

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

2018-02-01 Thread Sricharan R
Hi Robin, On 1/31/2018 6:36 PM, Robin Murphy wrote: > On 19/01/18 11:43, Vivek Gautam wrote: >> From: Sricharan R >> >> The smmu device probe/remove and add/remove master device callbacks >> gets called when the smmu is not linked to its master, that is without >> the context of the master device

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-02-01 Thread Liviu Dudau
On Thu, Feb 01, 2018 at 10:20:28AM +0100, Arnd Bergmann wrote: > On Thu, Feb 1, 2018 at 9:32 AM, Maxime Ripard > wrote: > > On Wed, Jan 31, 2018 at 02:47:53PM +, Liviu Dudau wrote: > >> On Wed, Jan 31, 2018 at 08:42:12AM +0100, Maxime Ripard wrote: > >> > On Wed, Jan 31, 2018 at 03:08:08AM +00

Re: [tip:irq/urgent] genirq: Make legacy autoprobing work again

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 9:15 AM, Geert Uytterhoeven wrote: >> +++ b/kernel/irq/chip.c >> @@ -294,11 +294,11 @@ int irq_activate(struct irq_desc *desc) >> return 0; >> } >> >> -void irq_activate_and_startup(struct irq_desc *desc, bool resend) >> +int irq_activate_and_startup(struct irq_des

Re: [PATCH v6 11/41] clk: davinci: Add platform information for TI DA830 PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI DA830/ > OMAP-L137/AM17XX SoCs. > > Signed-off-by: David Lechner Reviewed-by: Sekhar Nori Thanks, Sekhar

Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-02-01 Thread Daniel Thompson
On Wed, Jan 31, 2018 at 01:51:21PM +0200, Jani Nikula wrote: > On Wed, 31 Jan 2018, Daniel Thompson wrote: > > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote: > >> Add documentation for sysfs interfaces of lp8788 backlight driver by > >> looking through the code and the git commit

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-02-01 Thread Tetsuo Handa
Peter Zijlstra wrote: > On Mon, Jan 29, 2018 at 08:47:20PM +0900, Tetsuo Handa wrote: > > Peter Zijlstra wrote: > > > On Sun, Jan 28, 2018 at 02:55:28PM +0900, Tetsuo Handa wrote: > > > > This warning seems to be caused by commit d92a8cfcb37ecd13 > > > > ("locking/lockdep: Rework FS_RECLAIM annotat

[PATCH] semaphore.h: correct path in documentation

2018-02-01 Thread Tycho Andersen
While reading this header, I noticed that the locking stuff has moved to kernel/locking/*, so update the path in semaphore.h to point to that. Signed-off-by: Tycho Andersen --- include/linux/semaphore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/semaphore.h

Re: [PATCH v6 12/41] clk: davinci: Add platform information for TI DA850 PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI DA850/ > OMAP-L138/AM18XX SoCs. > > Signed-off-by: David Lechner Reviewed-by: Sekhar Nori Thanks, Sekhar

Re: [PATCH v3 5/5] ARM: dts: imx7s: add CAAM device node

2018-02-01 Thread Horia Geantă
On 1/31/2018 4:00 AM, Bryan O'Donoghue wrote: > From: Rui Miguel Silva > > Add CAAM device node to the i.MX7s device tree. > > Signed-off-by: Rui Miguel Silva > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: linux-arm-ker...@lists.infradead.org > Cc: "Horia Geantă" > Cc: Aymen Sghaier > Cc: Fabio E

Re: [PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 11:21 AM, Geert Uytterhoeven wrote: > Gcc versions before 4.4 do not recognize the __optimize__ compiler > attribute: > > warning: ‘__optimize__’ attribute directive ignored > > Fixes: 7375ae3a0b79ea07 ("compiler-gcc.h: Introduce __nostackprotector > function attribute"

[PATCH v3 00/18] arm64: Add SMCCC v1.1 support and CVE-2017-5715 (Spectre variant 2) mitigation

2018-02-01 Thread Marc Zyngier
ARM has recently published a SMC Calling Convention (SMCCC) specification update[1] that provides an optimised calling convention and optional, discoverable support for mitigating CVE-2017-5715. ARM Trusted Firmware (ATF) has already gained such an implementation[2]. This series addresses a few th

[PATCH v3 01/18] arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls

2018-02-01 Thread Marc Zyngier
KVM doesn't follow the SMCCC when it comes to unimplemented calls, and inject an UNDEF instead of returning an error. Since firmware calls are now used for security mitigation, they are becoming more common, and the undef is counter productive. Instead, let's follow the SMCCC which states that -1

[PATCH v3 04/18] arm/arm64: KVM: Consolidate the PSCI include files

2018-02-01 Thread Marc Zyngier
As we're about to update the PSCI support, and because I'm lazy, let's move the PSCI include file to include/kvm so that both ARM architectures can find it. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/kvm_psci.h| 27 -- arch/arm/kvm/handle_exit.c

[PATCH v3 13/18] firmware/psci: Expose PSCI conduit

2018-02-01 Thread Marc Zyngier
In order to call into the firmware to apply workarounds, it is useful to find out whether we're using HVC or SMC. Let's expose this through the psci_ops. Acked-by: Lorenzo Pieralisi Signed-off-by: Marc Zyngier --- drivers/firmware/psci.c | 28 +++- include/linux/psci.h

[PATCH v3 15/18] arm/arm64: smccc: Make function identifiers an unsigned quantity

2018-02-01 Thread Marc Zyngier
Function identifiers are a 32bit, unsigned quantity. But we never tell so to the compiler, resulting in the following: 4ac: b26187e0mov x0, #0x8001 We thus rely on the firmware narrowing it for us, which is not always a reasonable expectation. Cc: sta...@vger.kernel.or

[PATCH v3 07/18] arm/arm64: KVM: Implement PSCI 1.0 support

2018-02-01 Thread Marc Zyngier
PSCI 1.0 can be trivially implemented by having PSCI 0.2 and the FEATURES call. Of, and returning 1.0 as the PSCI version. We happily ignore everything else, as it is optional. Signed-off-by: Marc Zyngier --- include/kvm/arm_psci.h | 1 + virt/kvm/arm/psci.c| 43 +++

[PATCH v3 17/18] arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-02-01 Thread Marc Zyngier
Add the detection and runtime code for ARM_SMCCC_ARCH_WORKAROUND_1. It is lovely. Really. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/bpi.S| 20 + arch/arm64/kernel/cpu_errata.c | 68 +- 2 files changed, 87 insertions(+), 1 deleti

Re: [PATCH] inet: Avoid unitialized variable warning in inet_unhash()

2018-02-01 Thread Arnd Bergmann
On Thu, Feb 1, 2018 at 11:26 AM, Geert Uytterhoeven wrote: > With gcc-4.1.2: > > net/ipv4/inet_hashtables.c: In function ‘inet_unhash’: > net/ipv4/inet_hashtables.c:628: warning: ‘ilb’ may be used uninitialized > in this function > > While this is a false positive, it can easily be avoide

[PATCH v3 18/18] arm64: Kill PSCI_GET_VERSION as a variant-2 workaround

2018-02-01 Thread Marc Zyngier
Now that we've standardised on SMCCC v1.1 to perform the branch prediction invalidation, let's drop the previous band-aid. If vendors haven't updated their firmware to do SMCCC 1.1, they haven't updated PSCI either, so we don't loose anything. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/bp

[PATCH v3 16/18] arm/arm64: smccc: Implement SMCCC v1.1 inline primitive

2018-02-01 Thread Marc Zyngier
One of the major improvement of SMCCC v1.1 is that it only clobbers the first 4 registers, both on 32 and 64bit. This means that it becomes very easy to provide an inline version of the SMC call primitive, and avoid performing a function call to stash the registers that would otherwise be clobbered

[PATCH v3 11/18] arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-02-01 Thread Marc Zyngier
A new feature of SMCCC 1.1 is that it offers firmware-based CPU workarounds. In particular, SMCCC_ARCH_WORKAROUND_1 provides BP hardening for CVE-2017-5715. If the host has some mitigation for this issue, report that we deal with it using SMCCC_ARCH_WORKAROUND_1, as we apply the host workaround on

[PATCH v3 14/18] firmware/psci: Expose SMCCC version through psci_ops

2018-02-01 Thread Marc Zyngier
Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, let's do that at boot time, and expose the version of the calling convention as part of the psci_ops structure. Acked-by: Lorenzo Pieralisi Signed-off-by: Marc Zyngier --- drivers/firmware/psci.c | 19 +++ includ

[PATCH v3 12/18] arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling

2018-02-01 Thread Marc Zyngier
We want SMCCC_ARCH_WORKAROUND_1 to be fast. As fast as possible. So let's intercept it as early as we can by testing for the function call number as soon as we've identified a HVC call coming from the guest. Signed-off-by: Marc Zyngier --- arch/arm64/kvm/hyp/hyp-entry.S | 20 ++--

[PATCH v3 10/18] arm/arm64: KVM: Turn kvm_psci_version into a static inline

2018-02-01 Thread Marc Zyngier
We're about to need kvm_psci_version in HYP too. So let's turn it into a static inline, and pass the kvm structure as a second parameter (so that HYP can do a kern_hyp_va on it). Signed-off-by: Marc Zyngier --- arch/arm64/kvm/hyp/switch.c | 20 include/kvm/arm_psci.h |

[PATCH v3 08/18] arm/arm64: KVM: Add PSCI version selection API

2018-02-01 Thread Marc Zyngier
Although we've implemented PSCI 1.0 and 1.1, nothing can select them Since all the new PSCI versions are backward compatible, we decide to default to the latest version of the PSCI implementation. This is no different from doing a firmware upgrade on KVM. But in order to give a chance to hypotheti

[PATCH v3 09/18] arm/arm64: KVM: Advertise SMCCC v1.1

2018-02-01 Thread Marc Zyngier
The new SMC Calling Convention (v1.1) allows for a reduced overhead when calling into the firmware, and provides a new feature discovery mechanism. Make it visible to KVM guests. Signed-off-by: Marc Zyngier --- arch/arm/kvm/handle_exit.c | 2 +- arch/arm64/kvm/handle_exit.c | 2 +- include/

[PATCH v3 06/18] arm/arm64: KVM: Add smccc accessors to PSCI code

2018-02-01 Thread Marc Zyngier
Instead of open coding the accesses to the various registers, let's add explicit SMCCC accessors. Signed-off-by: Marc Zyngier --- virt/kvm/arm/psci.c | 52 ++-- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/virt/kvm/arm/psci.c b/v

[PATCH v3 03/18] arm64: KVM: Increment PC after handling an SMC trap

2018-02-01 Thread Marc Zyngier
When handling an SMC trap, the "preferred return address" is set to that of the SMC, and not the next PC (which is a departure from the behaviour of an SMC that isn't trapped). Increment PC in the handler, as the guest is otherwise forever stuck... Cc: sta...@vger.kernel.org Fixes: acfb3b883f6d (

[PATCH v3 05/18] arm/arm64: KVM: Add PSCI_VERSION helper

2018-02-01 Thread Marc Zyngier
As we're about to trigger a PSCI version explosion, it doesn't hurt to introduce a PSCI_VERSION helper that is going to be used everywhere. Signed-off-by: Marc Zyngier --- include/kvm/arm_psci.h| 6 -- include/uapi/linux/psci.h | 3 +++ virt/kvm/arm/psci.c | 4 +--- 3 files changed

Re: [PATCH v6 13/41] clk: davinci: Add platform information for TI DM355 PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > + LPSC(26, 0, gpio,pll1_sysclk2, gpio_clkdev,0), > + LPSC(27, 0, timer0, pll1_auxclk, timer0_clkdev, 0), > + LPSC(28, 0, timer1, pll1_auxclk, NULL, 0), > + /* REVISIT: why can

[PATCH v3 02/18] arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls

2018-02-01 Thread Marc Zyngier
KVM doesn't follow the SMCCC when it comes to unimplemented calls, and inject an UNDEF instead of returning an error. Since firmware calls are now used for security mitigation, they are becoming more common, and the undef is counter productive. Instead, let's follow the SMCCC which states that -1

Re: [PATCH 1/1] MAINTAINERS: Add Loongson-2/Loongson-3 maintainers

2018-02-01 Thread James Hogan
On Thu, Dec 07, 2017 at 02:31:08PM +0800, Huacai Chen wrote: > Add Jiaxun Yang as the MIPS/Loongson-2 maintainer and add Huacai Chen > as the MIPS/Loongson-3 maintainer. > > Signed-off-by: Huacai Chen > Signed-off-by: Jiaxun Yang > --- > MAINTAINERS | 20 > 1 file changed,

Re: [PATCH 2/3] compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

2018-02-01 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Feb 1, 2018 at 12:46 PM, Arnd Bergmann wrote: > On Thu, Feb 1, 2018 at 11:21 AM, Geert Uytterhoeven > wrote: >> Gcc versions before 4.4 do not recognize the __optimize__ compiler >> attribute: >> >> warning: ‘__optimize__’ attribute directive ignored >> >> Fixes: 7375ae3a0b7

[PATCH net] rtnetlink: remove check for IFLA_IF_NETNSID

2018-02-01 Thread Christian Brauner
RTM_NEWLINK supports the IFLA_IF_NETNSID property since 5bb8ed075428b71492734af66230aa0c07fcc515 so we should not error out when it is passed. Signed-off-by: Christian Brauner --- net/core/rtnetlink.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink

Re: [PATCH v6 14/41] clk: davinci: Add platform information for TI DM365 PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI > DM365 based systems. > > Signed-off-by: David Lechner Apart from comment given on 13/41 that applies here: Reviewed-by: Sekhar Nori Thanks, Sekhar

Re: [PATCH] Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw}

2018-02-01 Thread Jeff Layton
On Wed, 2018-01-31 at 21:43 +0100, Goffredo Baroncelli wrote: > From: Goffredo Baroncelli > > The function inode_cmp_iversion{+raw} is counter-intuitive, because it > returns true when the counters are different and false when these are equal. > > Rename it to inode_eq_iversion{+raw}, which will

Re: [PATCH] soc: mediatek: Handle return of of_match_device function

2018-02-01 Thread Alexandre Belloni
On 01/02/2018 at 16:30:22 +0530, Himanshu Jha wrote: > In scpsys_probe function, return value of of_match_device function which > returns null is dereferenced without checking. Therefore, add a check for > potential null dereference. > > Detected by CoverityScan, CID#1424087 "Dereference null retu

Re: [PATCH] MIPS: fix typo BIG_ENDIAN to CPU_BIG_ENDIAN

2018-02-01 Thread James Hogan
On Wed, Jan 17, 2018 at 07:56:38PM +0100, Corentin Labbe wrote: > MIPS_GENERIC select some options with condition on BIG_ENDIAN which do > not exists. > Replace BIG_ENDIAN by CPU_BIG_ENDIAN which is the correct kconfig name. > Note that BMIP_GENERIC do the same which confirm that this patch is > ne

Re: [PATCH] MIPS: ftrace: Remove pointer comparison to 0 in prepare_ftrace_return

2018-02-01 Thread James Hogan
On Wed, Jan 17, 2018 at 12:31:57PM +0100, Mathieu Malaterre wrote: > Replace pointer comparison to 0 with NULL in prepare_ftrace_return > to improve code readability. Identified with coccinelle script > 'badzero.cocci'. > > Signed-off-by: Mathieu Malaterre I've applied to my 4.16 branch, Thanks

[PATCH 1/2] tools/memory-model: clarify the origin/scope of the tool name

2018-02-01 Thread Andrea Parri
Ingo pointed out that: "The "memory model" name is overly generic, ambiguous and somewhat misleading, as we usually mean the virtual memory layout/model when we say "memory model". GCC too uses it in that sense [...]" Make it clearer that, in the context of tools/memory-model/, the term "

[PATCH 2/2] MAINTAINERS: add the Memory Consistency Model subsystem

2018-02-01 Thread Andrea Parri
Integrate (and then remove) tools/memory-model/MAINTAINERS into the main MAINTAINERS file. This way get_maintainer.pl can give a "right answer" for tools/memory-model/. Suggested-by: Ingo Molnar Signed-off-by: Andrea Parri --- MAINTAINERS| 16 tools/memory-m

Re: [PATCH v5 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle.

2018-02-01 Thread Lee Jones
On Tue, 30 Jan 2018, Enric Balletbo Serra wrote: > Hi, > > 2017-12-01 13:06 GMT+01:00 Enric Balletbo i Serra > : > > Before this patch the enable signal was set before the PWM signal and > > vice-versa on power off. This sequence is wrong, at least, it is on > > the different panels datasheets t

Re: [PATCH v6 15/41] clk: davinci: Add platform information for TI DM644x PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI > DM644x based systems. > > Signed-off-by: David Lechner Apart from a comment given on similar file: Reviewed-by: Sekhar Nori Thanks, Sekhar

[PATCH] x86/xen: init %gs very early to avoid page faults with stack protector

2018-02-01 Thread Juergen Gross
When running as Xen pv guest %gs is initialized some time after C code is started. Depending on stack protector usage this might be too late, resulting in page faults. So setup %gs and MSR_GS_BASE in assembly code already. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- arch/x86/xen

Re: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized

2018-02-01 Thread Horia Geantă
On 1/31/2018 4:00 AM, Bryan O'Donoghue wrote: > commit 1005bccd7a4a ("crypto: caam - enable instantiation of all RNG4 state > handles") introduces a control when incrementing ent_delay which contains > the following comment above it: > > /* > * If either SH were instantiated by somebody else > *

Re: [PATCH 1/2] iommu: Fix iommu_unmap and iommu_unmap_fast return type

2018-02-01 Thread Robin Murphy
On 01/02/18 05:03, Suravee Suthikulpanit wrote: Hi Robin, On 2/1/18 1:02 AM, Robin Murphy wrote: Hi Suravee, On 31/01/18 01:48, Suravee Suthikulpanit wrote: Currently, iommu_unmap and iommu_unmap_fast return unmapped pages with size_t.  However, the actual value returned could be error codes 

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Marcus Folkesson
Hi Baolin, On Tue, Jan 30, 2018 at 08:07:43PM +0800, Baolin Wang wrote: > The Spreadtrum SC9860 platform GPIO controller contains 16 groups and > each group contains 16 GPIOs. Each GPIO can set input/output and has > the interrupt capability. > > Signed-off-by: Baolin Wang > --- > diff --git a/d

Re: [PATCH v6 16/41] clk: davinci: Add platform information for TI DM646x PSC

2018-02-01 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI > DM646x based systems. > > Signed-off-by: David Lechner Reviewed-by: Sekhar Nori Thanks, Sekhar

Re: Backport Mellanox mlx5 patches to stable 4.9.y

2018-02-01 Thread Max Gurtovoy
On 2/1/2018 10:21 AM, Greg KH wrote: On Tue, Jan 30, 2018 at 10:12:51AM +0100, Marta Rybczynska wrote: Hello Mellanox maintainers, I'd like to ask you to OK backporting two patches in mlx5 driver to 4.9 stable tree (they're in master for some time already). We have multiple deployment in 4.9

Re: [PATCH] x86/xen: init %gs very early to avoid page faults with stack protector

2018-02-01 Thread Andrew Cooper
On 01/02/18 12:16, Juergen Gross wrote: > When running as Xen pv guest %gs is initialized some time after > C code is started. Depending on stack protector usage this might be > too late, resulting in page faults. > > So setup %gs and MSR_GS_BASE in assembly code already. > > Cc: sta...@vger.kernel

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Marcus Folkesson
On Thu, Feb 01, 2018 at 11:08:46AM +0800, Baolin Wang wrote: > On 31 January 2018 at 22:23, Andy Shevchenko > wrote: > > On Wed, Jan 31, 2018 at 4:01 AM, Baolin Wang wrote: > >> On 31 January 2018 at 00:48, Andy Shevchenko > >> wrote: > >>> On Tue, Jan 30, 2018 at 2:07 PM, Baolin Wang > >>>

Re: [PATCH v3 13/18] firmware/psci: Expose PSCI conduit

2018-02-01 Thread Robin Murphy
On 01/02/18 11:46, Marc Zyngier wrote: In order to call into the firmware to apply workarounds, it is useful to find out whether we're using HVC or SMC. Let's expose this through the psci_ops. Reviewed-by: Robin Murphy Acked-by: Lorenzo Pieralisi Signed-off-by: Marc Zyngier --- drivers/f

Re: [PATCH] x86/xen: init %gs very early to avoid page faults with stack protector

2018-02-01 Thread Juergen Gross
On 01/02/18 13:22, Andrew Cooper wrote: > On 01/02/18 12:16, Juergen Gross wrote: >> When running as Xen pv guest %gs is initialized some time after >> C code is started. Depending on stack protector usage this might be >> too late, resulting in page faults. >> >> So setup %gs and MSR_GS_BASE in as

Re: [PATCH v6 02/41] clk: davinci: New driver for davinci PLL clocks

2018-02-01 Thread Sekhar Nori
On Thursday 01 February 2018 01:31 PM, Sekhar Nori wrote: > One thing missing is DIV4.5 clock. It will be nice to add that too, > mostly just because it will make the binding complete. Ah, ignore this comment please. I noticed that its part of cfgchip clocks (which makes sense). Thanks, Sekhar

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Baolin Wang
Hi Markus, On 1 February 2018 at 20:17, Marcus Folkesson wrote: > Hi Baolin, > > On Tue, Jan 30, 2018 at 08:07:43PM +0800, Baolin Wang wrote: >> The Spreadtrum SC9860 platform GPIO controller contains 16 groups and >> each group contains 16 GPIOs. Each GPIO can set input/output and has >> the int

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Baolin Wang
On 1 February 2018 at 20:22, Marcus Folkesson wrote: > On Thu, Feb 01, 2018 at 11:08:46AM +0800, Baolin Wang wrote: >> On 31 January 2018 at 22:23, Andy Shevchenko >> wrote: >> > On Wed, Jan 31, 2018 at 4:01 AM, Baolin Wang >> > wrote: >> >> On 31 January 2018 at 00:48, Andy Shevchenko >> >>

Re: asm-generic: Disallow no-op mb() for SMP systems

2018-02-01 Thread Stafford Horne
On Wed, Jan 31, 2018 at 02:26:10PM +0100, Peter Zijlstra wrote: > On Wed, Jan 31, 2018 at 01:17:37PM +, Will Deacon wrote: > > On Wed, Jan 31, 2018 at 02:00:34PM +0100, Peter Zijlstra wrote: > > > > > > While looking through the qspinlock users, I stumbled upon openrisc and > > > being curious

Re: Coccinelle: reduce false positives

2018-02-01 Thread SF Markus Elfring
> +@safe depends on context || org || report exists@ > +expression x; > +position p; > +@@ > + > +( > + x = kmalloc(...) > +| > + x = kvasprintf(...) … * How do you think about to reduce also a bit of duplicate SmPL code? * Can it help to work with nested SmPL disjunctions here? Regards, Markus

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

2018-02-01 Thread Vivek Gautam
On 2/1/2018 5:03 PM, Sricharan R wrote: Hi Robin, On 1/31/2018 6:36 PM, Robin Murphy wrote: On 19/01/18 11:43, Vivek Gautam wrote: From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without th

Re: [PATCH v3 14/18] firmware/psci: Expose SMCCC version through psci_ops

2018-02-01 Thread Robin Murphy
On 01/02/18 11:46, Marc Zyngier wrote: Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, let's do that at boot time, and expose the version of the calling convention as part of the psci_ops structure. Acked-by: Lorenzo Pieralisi Signed-off-by: Marc Zyngier --- drivers/firmwa

Re: [RESEND RFC PATCH V3] sched: Improve scalability of select_idle_sibling using SMT balance

2018-02-01 Thread Peter Zijlstra
On Mon, Jan 29, 2018 at 03:31:02PM -0800, subhra mazumdar wrote: > +#ifdef CONFIG_SCHED_SMT > + > +/* > + * From sd_llc downward update the SMT utilization. Please don't use utilization for this, we already use that word for something else. > + * Skip the lowest level 0. > + */ > +void smt_util(s

[PATCH v2] x86/xen: init %gs very early to avoid page faults with stack protector

2018-02-01 Thread Juergen Gross
When running as Xen pv guest %gs is initialized some time after C code is started. Depending on stack protector usage this might be too late, resulting in page faults. So setup %gs and MSR_GS_BASE in assembly code already. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- arch/x86/xen

Re: [PATCH v3 15/18] arm/arm64: smccc: Make function identifiers an unsigned quantity

2018-02-01 Thread Robin Murphy
On 01/02/18 11:46, Marc Zyngier wrote: Function identifiers are a 32bit, unsigned quantity. But we never tell so to the compiler, resulting in the following: 4ac: b26187e0mov x0, #0x8001 We thus rely on the firmware narrowing it for us, which is not always a reasonab

Re: [PATCH 3/6] struct page: add field for vm_struct

2018-02-01 Thread Igor Stoppa
On 01/02/18 02:00, Christopher Lameter wrote: > On Tue, 30 Jan 2018, Igor Stoppa wrote: > >> @@ -1769,6 +1774,9 @@ void *__vmalloc_node_range(unsigned long size, >> unsigned long align, >> >> kmemleak_vmalloc(area, size, gfp_mask); >> >> +for (page_counter = 0; page_counter < area->nr_

[PATCH 1/2] staging: android: ion: Avoid NULL point in error path

2018-02-01 Thread Yisheng Xie
If we failed to create debugfs for ion at ion_device_create, the debug_root of ion_device will be NULL, and then when try to create debug file for shrinker of heap it will be create on the top of debugfs. If we also failed to create this the debug file, it call dentry_path to found the path of debu

[PATCH 2/2] staging: android: ion: Remove lable debugfs_done

2018-02-01 Thread Yisheng Xie
When failed to create debug_root, we will go on initail other part of ion, so we can just info this message to user and do not need a lable to jump. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/st

Re: [PATCH v3 15/18] arm/arm64: smccc: Make function identifiers an unsigned quantity

2018-02-01 Thread Ard Biesheuvel
On 1 February 2018 at 12:40, Robin Murphy wrote: > On 01/02/18 11:46, Marc Zyngier wrote: >> >> Function identifiers are a 32bit, unsigned quantity. But we never >> tell so to the compiler, resulting in the following: >> >> 4ac: b26187e0mov x0, #0x8001 >> >> We thus rel

Re: [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency

2018-02-01 Thread Maxime Ripard
On Wed, Jan 31, 2018 at 01:05:38PM +0100, Giulio Benetti wrote: > Hi, > > Il 31/01/2018 09:43, Maxime Ripard ha scritto: > > Hi, > > > > On Wed, Jan 31, 2018 at 12:23:59AM +0100, Giulio Benetti wrote: > > > When mali.ko is inserted, it set default clocks and call all parent > > > clocks to stay i

[RFC PATCH] sched/fair: Optionally restrict SMT scheduling ("restrict_smt")

2018-02-01 Thread Sergio Lopez
"restrict_smt" is an optional security feature that, when enabled, automatically adjusts the cpus_allowed mask of user tasks with CFS policies, forcing them to run on the first SMT thread of each core. This security feature prevents user tasks from running on SMT sibling threads, difficulting the

Re: [PATCH v3 14/18] firmware/psci: Expose SMCCC version through psci_ops

2018-02-01 Thread Marc Zyngier
On 01/02/18 12:32, Robin Murphy wrote: > On 01/02/18 11:46, Marc Zyngier wrote: >> Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, >> let's do that at boot time, and expose the version of the calling >> convention as part of the psci_ops structure. >> >> Acked-by: Lorenzo Pierali

Re: [PATCH] checkpatch: warn if changed lines exceeds a maximum size

2018-02-01 Thread Joe Perches
On Thu, 2018-02-01 at 10:38 +, Brown, Nicholas wrote: > Hi, > > Would one of you be happy to pick this patch up for carrying into the next > release? Not me. I think the metric is too simplistic and not particularly useful. If others want it, I think you should try to build or find a bit m

Re: [PATCH] irqchip/gic-v3: Use wmb() instead of smb_wmb() in gic_raise_softirq()

2018-02-01 Thread Shanker Donthineni
Hi Will, Thanks for your quick reply. On 02/01/2018 04:33 AM, Will Deacon wrote: > Hi Shanker, > > On Wed, Jan 31, 2018 at 06:03:42PM -0600, Shanker Donthineni wrote: >> A DMB instruction can be used to ensure the relative order of only >> memory accesses before and after the barrier. Since write

[PATCH v11 0/4] fw_cfg: add DMA operations & etc/vmcoreinfo support

2018-02-01 Thread Marc-André Lureau
Hi, This series adds DMA operations support to the qemu fw_cfg kernel module and populates "etc/vmcoreinfo" with vmcoreinfo location details (since qemu 2.11). v11: - add #include in last patch, fixing kbuild .config test Marc-André Lureau (4): fw_cfg: add DMA register fw_cfg: do DMA read

<    1   2   3   4   5   6   7   8   >