Re: [PATCH v4 2/2] drivers: remove force dma flag from buses

2018-05-01 Thread Rob Herring
On Sat, Apr 28, 2018 at 08:21:59AM +0530, Nipun Gupta wrote: > With each bus implementing its own DMA configuration callback, > there is no need for bus to explicitly have force_dma in its > global structure. This patch modifies of_dma_configure API to > accept an input parameter which specifies if

Re: [PATCH v7 04/24] ASoC: qdsp6: dt-bindings: Add q6afe dt bindings

2018-05-01 Thread Rob Herring
On Tue, May 01, 2018 at 01:08:00PM +0100, Srinivas Kandagatla wrote: > This patch add DT bindings for AFE (Audio Frontend) DSP module. > > Signed-off-by: Srinivas Kandagatla > Reviewed-and-tested-by: Rohit kumar > --- > .../devicetree/bindings/sound/qcom,q6afe.txt | 104 > +++

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-05-01 Thread Sinan Kaya
+Marc, On 4/30/2018 5:27 PM, Sinan Kaya wrote: > On 4/30/2018 5:17 PM, Bjorn Helgaas wrote: >>> What should we do about this? >>> >>> Since there is an actual HW errata involved, should we quirk this >>> root port and not wait as if remove/shutdown doesn't exist? >> I was hoping to avoid a quirk b

Re: [PATCH] power: supply: ltc2941-battery-gauge: Release device_node in ltc294x_i2c_probe()

2018-05-01 Thread Sebastian Reichel
Hi, On Sun, Apr 29, 2018 at 01:35:55AM +0300, Alexey Khoroshilov wrote: > There is of_node_get(client->dev.of_node) in ltc294x_i2c_probe(), > but these is no of_node_put() somethere in the driver. > > The patch adds one on error and normal paths. > > Found by Linux Driver Verification project (l

Re: [PATCH v6 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-05-01 Thread Rob Herring
On Mon, Apr 30, 2018 at 09:50:10PM +0530, Amit Nischal wrote: > From: Taniya Das > > Add support for the global clock controller found on SDM845 > based devices. This should allow most non-multimedia device > drivers to probe and control their clocks. > > Signed-off-by: Taniya Das > Signed-off-

Re: [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant

2018-05-01 Thread Boris Ostrovsky
On 05/01/2018 07:31 AM, David Laight wrote: From: Boris Ostrovsky Sent: 30 April 2018 17:24 To: linux-kernel@vger.kernel.org; xen-de...@lists.xenproject.org Cc: jgr...@suse.com; Boris Ostrovsky; sta...@vger.kernel.org Subject: [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant Late

Re: [PATCH 1/1] mfd: tps65911-comparator: Fix an off by one bug

2018-05-01 Thread Robin Murphy
On 01/05/18 10:45, Lee Jones wrote: The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is accessing the wrong elements and one space beyond the end of the array. The "id" variable is never COMP (0) so that code can be removed. Fixes: 6851ad3ab346 ("TPS65911: Comparator: Add c

Re: [v5 2/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-05-01 Thread Rob Herring
On Tue, May 01, 2018 at 02:11:33PM +0530, Taniya Das wrote: > Add the RPMh clock driver to control the RPMh managed clock resources on > some of the Qualcomm Technologies, Inc. SoCs. > > Signed-off-by: Amit Nischal > Signed-off-by: Taniya Das > --- > drivers/clk/qcom/Kconfig | 9

Re: [PATCH 2/2] backlight: Remove ld9040 driver

2018-05-01 Thread Daniel Thompson
On Mon, Apr 30, 2018 at 07:29:45PM +0200, Krzysztof Kozlowski wrote: > The driver for LD9040 AMOLED LCD panel was superseded with DRM driver > panel-samsung-ld9040.c. It does not support DeviceTree and respective > possible user (Exynos4210 Universal C210) is DeviceTree-only and uses > DRM version

Re: [PATCH v4 2/6] iommu: of: make of_pci_map_rid() available for other devices too

2018-05-01 Thread Rob Herring
On Mon, Apr 30, 2018 at 11:57:17AM +0530, Nipun Gupta wrote: > iommu-map property is also used by devices with fsl-mc. This > patch moves the of_pci_map_rid to generic location, so that it > can be used by other busses too. > > 'of_pci_map_rid' is renamed here to 'of_map_rid' and there is no > fun

Re: [PATCH 4/4] dt-bindings: mfd: max8998: Add charger subnode binding

2018-05-01 Thread Sebastian Reichel
Hi, On Fri, Apr 27, 2018 at 06:03:02PM +0200, Paweł Chmiel wrote: > This patch adds devicetree bindings documentation for > battery charging controller as the subnode of MAX8998 PMIC. > It's based on current behavior of driver. > > Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree")

Re: [PATCH 1/2] backlight: Remove s6e63m0 driver

2018-05-01 Thread Daniel Thompson
On Mon, Apr 30, 2018 at 07:29:44PM +0200, Krzysztof Kozlowski wrote: > The driver for S6E63M0 AMOLED LCD panel is not used. It does not > support DeviceTree and respective possible users (S5Pv210 Aquila and > Goni boards) are DeviceTree-only. > > Suggested-by: Marek Szyprowski > Cc: Marek Szypro

Re: [PATCH v3 2/3] dt-bindings: mmc: Add binding for BlueField SoC

2018-05-01 Thread Rob Herring
On Mon, Apr 30, 2018 at 10:51:07AM -0400, Liming Sun wrote: > This commit adds "mellanox,bluefield-dw-mshc" for dwmmc driver > extension on Mellanox BlueField SoC platform. > > Signed-off-by: Liming Sun > --- > .../devicetree/bindings/mmc/bluefield-dw-mshc.txt | 29 > ++ >

Re: [PATCH v3 1/2] dt-bindings: nvmem: Add binding for RAVE SP EEPROM driver

2018-05-01 Thread Rob Herring
On Mon, Apr 30, 2018 at 10:29:51PM -0700, Andrey Smirnov wrote: > Add Device Tree bindings for RAVE SP EEPROM driver - an MFD cell of > parent RAVE SP driver (documented in > Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). > > Cc: Srinivas Kandagatla > Cc: linux-kernel@vger.kernel.org > C

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-01 Thread Theodore Y. Ts'o
On Tue, May 01, 2018 at 06:52:47AM -0500, Justin Forbes wrote: > > We have also had reports that Fedora users are seeing this on Google > Compute Engine. Can you reproduce this yourself? If so, could you confirm that removing the dracut-fips package makes the problem go away for you? Thanks,

Re: [PATCH v2 1/2] dt-bindings: net: meson-dwmac: new compatible name for AXG SoC

2018-05-01 Thread Rob Herring
On Sat, Apr 28, 2018 at 10:21:10AM +, Yixun Lan wrote: > We need to introduce a new compatible name for the Meson-AXG SoC > in order to support the RMII 100M ethernet PHY, since the PRG_ETH0 > register of the dwmac glue layer is changed from previous old SoC. > > Signed-off-by: Yixun Lan > --

Re: [PATCH v2 15/17] power: reset: mt6323: add a driver for MT6323 power controller

2018-05-01 Thread Sebastian Reichel
Hi, On Wed, Apr 25, 2018 at 05:32:41PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > The power device is responsible for externally down or up the power > of the remote MediaTek SoC through the tiny circuit BBPU inside PMIC RTC. > > Though it's a part of RTC device, it would be bet

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-05-01 Thread Marc Zyngier
On 01/05/18 13:38, Sinan Kaya wrote: > +Marc, > > On 4/30/2018 5:27 PM, Sinan Kaya wrote: >> On 4/30/2018 5:17 PM, Bjorn Helgaas wrote: What should we do about this? Since there is an actual HW errata involved, should we quirk this root port and not wait as if remove/shutdown d

Re: [v4.17-rcx] Lost IBPB, IBRS_FW support for spectre_v2 mitigation.

2018-05-01 Thread Thomas Gleixner
On Tue, 1 May 2018, Jörg Otte wrote: > 2018-04-30 21:53 GMT+02:00 Thomas Gleixner : > > --- a/arch/x86/kernel/cpu/common.c > > +++ b/arch/x86/kernel/cpu/common.c > > @@ -848,6 +848,11 @@ void get_cpu_cap(struct cpuinfo_x86 *c) > > c->x86_power = edx; > > } > > > > + if

Re: [PATCH v2 2/4] KVM: arm/arm64: Introduce helpers to manupulate page table entries

2018-05-01 Thread Punit Agrawal
Hi Suzuki, Thanks for having a look. Suzuki K Poulose writes: > On 01/05/18 11:26, Punit Agrawal wrote: >> Introduce helpers to abstract architectural handling of the conversion >> of pfn to page table entries and marking a PMD page table entry as a >> block entry. >> >> The helpers are introdu

Re: [PATCH v10 06/25] mm: make pte_unmap_same compatible with SPF

2018-05-01 Thread Minchan Kim
On Mon, Apr 30, 2018 at 04:07:30PM +0200, Laurent Dufour wrote: > On 23/04/2018 08:31, Minchan Kim wrote: > > On Tue, Apr 17, 2018 at 04:33:12PM +0200, Laurent Dufour wrote: > >> pte_unmap_same() is making the assumption that the page table are still > >> around because the mmap_sem is held. > >> T

[PATCH 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-01 Thread changbin . du
From: Changbin Du Hi all, I know some kernel developers was searching for a method to dissable GCC optimizations, probably they want to apply GCC '-O0' option. But since Linux kernel replys on GCC optimization to remove some dead code, so '-O0' just breaks the build. They do need this because the

[PATCH 1/5] x86/mm: surround level4_kernel_pgt with #ifdef CONFIG_X86_5LEVEL...#endif

2018-05-01 Thread changbin . du
From: Changbin Du The level4_kernel_pgt is only defined when X86_5LEVEL is enabled. So surround level4_kernel_pgt with #ifdef CONFIG_X86_5LEVEL...#endif to make code correct. Signed-off-by: Changbin Du --- arch/x86/include/asm/pgtable_64.h | 2 ++ arch/x86/kernel/head64.c | 13 ++

[PATCH 5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE

2018-05-01 Thread changbin . du
From: Changbin Du With '-Og' optimization level, GCC would not optimize a count for a loop as a constant value. But BUILD_BUG_ON() only accept compile-time constant values. arch/arm/mm/mmu.o: In function `fix_to_virt': /home/changbin/work/linux/./include/asm-generic/fixmap.h:31: undefined refer

[PATCH 3/5] kernel hacking: new config NO_AUTO_INLINE to disable compiler atuo-inline optimizations

2018-05-01 Thread changbin . du
From: Changbin Du This patch add a new kernel hacking option NO_AUTO_INLINE. Selecting this option will make compiler not auto-inline kernel functions. By enabling this option, all the kernel functions (including static ones) will not be optimized out except those marked as inline or always_inlin

[PATCH 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization

2018-05-01 Thread changbin . du
From: Changbin Du This will apply GCC '-Og' optimization level get supported from GCC 4.8. This optimization level offers a reasonable level of optimization while maintaining fast compilation and a good debugging experience. It is similar to '-O1' while perfer keeping debug ability over runtime s

Re: [PATCH 1/1] mfd: tps65911-comparator: Fix an off by one bug

2018-05-01 Thread Dan Carpenter
The background is that no one noticed that this driver stopped being buildable in 2012 until I fixed it last week. This is the third proposed patch to fix the off by one. All three patches fix the bug, but Lee refused to accept my style and I refused to use Lee's style... Absolutely *no way*! LO

Re: [PATCH v2 05/27] dts: bindings: Document device tree binding for CATU

2018-05-01 Thread Rob Herring
On Tue, May 01, 2018 at 10:10:35AM +0100, Suzuki K Poulose wrote: > Document CATU device-tree bindings. CATU augments the TMC-ETR > by providing an improved Scatter Gather mechanism for streaming > trace data to non-contiguous system RAM pages. > > Cc: devicet...@vger.kernel.org > Cc: frowand.l...

[PATCH 2/5] regulator: add dummy of_find_regulator_by_node

2018-05-01 Thread changbin . du
From: Changbin Du If device tree is not enabled, of_find_regulator_by_node() should have a dummy function since the function call is still there. Signed-off-by: Changbin Du --- drivers/regulator/internal.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/reg

Re: [PATCH v2 10/27] dts: bindings: Restrict coresight tmc-etr scatter-gather mode

2018-05-01 Thread Rob Herring
On Tue, May 01, 2018 at 10:10:40AM +0100, Suzuki K Poulose wrote: > We are about to add the support for ETR builtin scatter-gather mode > for dealing with large amount of trace buffers. However, on some of > the platforms, using the ETR SG mode can lock up the system due to > the way the ETR is con

Re: [PATCH v10 08/25] mm: VMA sequence count

2018-05-01 Thread Minchan Kim
On Mon, Apr 30, 2018 at 05:14:27PM +0200, Laurent Dufour wrote: > > > On 23/04/2018 08:42, Minchan Kim wrote: > > On Tue, Apr 17, 2018 at 04:33:14PM +0200, Laurent Dufour wrote: > >> From: Peter Zijlstra > >> > >> Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence > >> counts

Re: [PATCH 3.18 00/25] 3.18.108-stable review

2018-05-01 Thread Guenter Roeck
On 04/30/2018 12:23 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.18.108 release. There are 25 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-05-01 Thread Peter Zijlstra
> On 5/1/2018 5:01 PM, Peter Zijlstra wrote: > > Let me ponder what the best solution is, it's a bit of a mess. So there's: - TASK_PARKED, which we can make a special state; this solves the problem because then wait_task_inactive() is guaranteed to see TASK_PARKED and DTRT. - complete(&

Re: [PATCH 4.4 00/44] 4.4.131-stable review

2018-05-01 Thread Guenter Roeck
On 04/30/2018 12:24 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.131 release. There are 44 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be m

Re: [PATCH 4.9 00/61] 4.9.98-stable review

2018-05-01 Thread Guenter Roeck
On 04/30/2018 12:24 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.98 release. There are 61 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH v2 2/2] net: stmmac: dwmac-meson: extend phy mode setting

2018-05-01 Thread Martin Blumenstingl
Hello Yixun, On Sat, Apr 28, 2018 at 12:21 PM, Yixun Lan wrote: > In the Meson-AXG SoC, the phy mode setting of PRG_ETH0 in the glue layer > is extended from bit[0] to bit[2:0]. > There is no problem if we configure it to the RGMII 1000M PHY mode, > since the register setting is coincidentall

Re: [PATCH 4.14 00/91] 4.14.39-stable review

2018-05-01 Thread Guenter Roeck
On 04/30/2018 12:23 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.39 release. There are 91 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be m

Re: [PATCH 1/1] mfd: tps65911-comparator: Fix an off by one bug

2018-05-01 Thread Lee Jones
On Tue, 01 May 2018, Robin Murphy wrote: > On 01/05/18 10:45, Lee Jones wrote: > > The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is > > accessing the wrong elements and one space beyond the end of the array. > > > > The "id" variable is never COMP (0) so that code can be r

Re: [PATCH 4.16 000/113] 4.16.7-stable review

2018-05-01 Thread Guenter Roeck
On 04/30/2018 12:23 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.16.7 release. There are 113 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be m

Re: [PATCH 1/1] mfd: tps65911-comparator: Fix an off by one bug

2018-05-01 Thread Lee Jones
On Tue, 01 May 2018, Dan Carpenter wrote: > The background is that no one noticed that this driver stopped being > buildable in 2012 until I fixed it last week. This is the third > proposed patch to fix the off by one. All three patches fix the bug, > but Lee refused to accept my style and I ref

[PATCH] swiotlb: Fix inversed DMA_ATTR_NO_WARN test

2018-05-01 Thread Michel Dänzer
From: Michel Dänzer The result was printing the warning only when we were explicitly asked not to. Cc: sta...@vger.kernel.org Fixes: 0176adb004065d6815a8e67946752df4cd947c5b "swiotlb: refactor coherent buffer allocation" Signed-off-by: Michel Dänzer --- lib/swiotlb.c | 2 +- 1 file changed, 1

Hello

2018-05-01 Thread Nelson Lizy
Dear Freind, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-05-01 Thread Bjorn Helgaas
On Tue, May 01, 2018 at 01:59:20PM +0100, Marc Zyngier wrote: > On 01/05/18 13:38, Sinan Kaya wrote: > > +Marc, > > > > On 4/30/2018 5:27 PM, Sinan Kaya wrote: > >> On 4/30/2018 5:17 PM, Bjorn Helgaas wrote: > What should we do about this? > > Since there is an actual HW errata invo

Re: [PATCH v2 2/3] power: supply: add cros-ec USBPD charger driver.

2018-05-01 Thread Lee Jones
On Tue, 01 May 2018, Sebastian Reichel wrote: > Hi Enric, > > On Mon, Apr 30, 2018 at 03:14:02PM +0200, Enric Balletbo i Serra wrote: > > From: Sameer Nanda > > > > This driver gets various bits of information about what is connected to > > USB PD ports from the EC and converts that into power_

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-05-01 Thread Paul Kocialkowski
Hi, Le mardi 01 mai 2018 à 07:25 -0500, Bin Liu a écrit : > On Mon, Apr 30, 2018 at 11:08:42PM +0200, Paul Kocialkowski wrote: > > Hi, > > > > Le samedi 21 avril 2018 à 09:34 -0500, Bin Liu a écrit : > > > Okay, this came down to an argument that whether we should require > > > loading a gadget d

Re: [PATCH] irqchip: Add support for Renesas RZ/N1 GPIO interrupt multiplexer

2018-05-01 Thread Rob Herring
On Mon, Apr 23, 2018 at 02:33:06PM +0100, Phil Edworthy wrote: > On RZ/N1 devices, there are 3 Synopsys DesignWare GPIO blocks each > configured to have 32 interrupt outputs, so we have a total of 96 GPIO > interrupts. All of these are passed to the GPIO IRQ Muxer, which selects > 8 of the GPIO int

Re: [PATCH v9 01/27] clk: davinci: pll: allow dev == NULL

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > This modifies the TI DaVinci PLL clock driver to allow for the case > when dev == NULL. On some (most) SoCs that use this driver, the PLL > clock needs to be registered during early boot because it is used > for clocksource/clockevent and the

perf: fuzzer causes stack going in wrong direction warnings

2018-05-01 Thread Vince Weaver
Hello I reported this back in January, but I think it got lost since everyone was busy with other more pressing matters. But in any case, the perf_fuzzer still can trigger these type of messages and just wanted to see if they were a cause for concern, or just noise. [66620.496076] WARNING: can

Re: Suggested new user link command

2018-05-01 Thread Bernd Petrovitsch
Hi all! Top-quoting is evil BTW. On Wed, 2018-05-02 at 00:17 +1200, Tony Wallace wrote: > Two issues here: > 1) Use case (which I have) > 2) Permissions > > 1) Use case > > I am trying to build a backup system. To avoid duplication of files > over multiple backups I take an Md5 check sum of fi

Re: [PATCH 4.16 000/113] 4.16.7-stable review

2018-05-01 Thread Dan Rue
On Mon, Apr 30, 2018 at 12:23:31PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.7 release. > There are 113 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 09/16] bus: ti-sysc: Add handling for clkctrl opt clocks

2018-05-01 Thread Rob Herring
On Mon, Apr 23, 2018 at 10:45:42AM -0700, Tony Lindgren wrote: > There can be up to eight optional device functional gate gate clocks for > each clkctrl instance in clkctrl register bits 8 to 15. Some of them are > only needed for module level reset while others may always be needed > during use. L

Re: Suboptimal inline heuristics due to non-code sections

2018-05-01 Thread Josh Poimboeuf
On Tue, May 01, 2018 at 06:50:14AM +, Nadav Amit wrote: > When gcc considers the size of a function for inlining decisions, it > apparently considers *all* sections. Since the kernel extensively uses > sections for things other than code (e.g., exception-table, bug-table), the > optimality of t

Re: [PATCH v6 3/8] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-05-01 Thread Waiman Long
On 04/30/2018 06:40 PM, Kees Cook wrote: > I like this series overall, thanks! No objections from me. One thing I > noted, though: > > On Fri, Apr 27, 2018 at 2:00 PM, Waiman Long wrote: >> if (param->min && *param->min > val) { >> if (clamp) { >>

Re: [PATCH 27/28] venus: add sdm845 compatible and resource data

2018-05-01 Thread Rob Herring
On Tue, Apr 24, 2018 at 03:44:35PM +0300, Stanimir Varbanov wrote: > This adds sdm845 DT compatible string with it's resource > data table. > > Cc: devicet...@vger.kernel.org > Signed-off-by: Stanimir Varbanov > --- > .../devicetree/bindings/media/qcom,venus.txt | 1 + > drivers/media/pla

Re: [PATCH v9 02/27] clk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > PLL0 on davinci/da850-type device needs to be registered early in boot > because it is needed for clocksource/clockevent. Change the driver > to use CLK_OF_DECLARE for this special case. > > Signed-off-by: David Lechner > --- > > v9 change

[PATCH 0/6] firmware: kernel signature verification

2018-05-01 Thread Mimi Zohar
Allow LSMs and IMA to differentiate between different methods of firmware loading (eg. direct loading, sysfs fallback) and to differentiate/coordinate between signature verification methods (eg. regdb, IMA-appraisal). In addition, the last two patches address the pre-allocated buffer. The first o

[PATCH 1/6] firmware: permit LSMs and IMA to fail firmware sysfs fallback loading

2018-05-01 Thread Mimi Zohar
Add an LSM hook prior to allowing firmware sysfs fallback loading. Signed-off-by: Mimi Zohar Cc: Luis R. Rodriguez Cc: David Howells Cc: Kees Cook Cc: Matthew Garrett --- drivers/base/firmware_loader/fallback.c | 7 +++ include/linux/fs.h | 1 + 2 files changed, 8 in

[RFC PATCH 6/6] ima: prevent loading firmware into a pre-allocated buffer

2018-05-01 Thread Mimi Zohar
Question: can the device access the pre-allocated buffer at any time? By allowing devices to request firmware be loaded directly into a pre-allocated buffer, will this allow the device access to the firmware before the kernel has verified the firmware signature? Is it dependent on the type of buf

[PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware

2018-05-01 Thread Mimi Zohar
Allow LSMs and IMA to differentiate between signed regulatory.db and other firmware. Signed-off-by: Mimi Zohar Cc: Luis R. Rodriguez Cc: David Howells Cc: Kees Cook Cc: Seth Forshee Cc: Johannes Berg --- drivers/base/firmware_loader/main.c | 5 + include/linux/fs.h | 1

[PATCH 5/6] ima: verify kernel firmware signatures when using a preallocated buffer

2018-05-01 Thread Mimi Zohar
Don't differentiate between kernel_read_file_id READING_FIRMWARE and READING_FIRMWARE_PREALLOC_BUFFER enumerations. Fixes: a098ecd firmware: support loading into a pre-allocated buffer (since 4.8) Signed-off-by: Mimi Zohar Cc: Luis R. Rodriguez Cc: David Howells Cc: Kees Cook Cc: Serge E. Hall

Re: [PATCH] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-01 Thread Steven Rostedt
On Thu, 26 Apr 2018 21:11:00 -0700 Joel Fernandes wrote: > I'm able to reproduce a lockdep splat when CONFIG_PROVE_LOCKING=y and > CONFIG_PREEMPTIRQ_EVENTS=y. > > $ echo 1 > /d/tracing/events/preemptirq/preempt_enable/enable > --- > [ 26.112609] DEBUG_LOCKS_WARN_ON(current->softirqs_enabled) >

[PATCH 4/6] ima: coordinate with signed regulatory.db

2018-05-01 Thread Mimi Zohar
Based on IMA policy, measure and appraise regulatory.db firmware as usual, but on signature verification failure rely on regdb signature. For systems wanting IMA-appraisal enforcement on all firmware, including regdb, do not enable CONFIG_CFG80211_REQUIRE_SIGNED_REGDB. Signed-off-by: Mimi Zohar

[PATCH 2/6] ima: prevent sysfs fallback firmware loading

2018-05-01 Thread Mimi Zohar
With an IMA policy requiring signed firmware, this patch prevents the sysfs fallback method of loading firmware. Signed-off-by: Mimi Zohar Cc: Luis R. Rodriguez Cc: David Howells Cc: Matthew Garrett --- security/integrity/ima/ima_main.c | 10 ++ 1 file changed, 10 insertions(+) diff

Re: [PATCH 1/2] dt-bindings: clock: Introduce QCOM Video clock bindings

2018-05-01 Thread Rob Herring
On Tue, Apr 24, 2018 at 07:02:50PM +0530, Amit Nischal wrote: > Add device tree bindings for video clock controller for Qualcomm > Technology Inc's SoCs. > > Signed-off-by: Amit Nischal > --- > .../devicetree/bindings/clock/qcom,videocc.txt | 18 > include/dt-bindings/clock/

RE: [PATCH v2] efi: Ignore unrealistically large option roms

2018-05-01 Thread David Laight
From: Ard Biesheuvel > Sent: 28 April 2018 07:41 > On 27 April 2018 at 23:35, Hans de Goede wrote: > > setup_efi_pci() tries to save a copy of each PCI option ROM as this may > > be necessary for the device driver for the PCI device to have access too. > > > > On some systems the efi_pci_io_protoc

RE: [PATCH] irqchip: Add support for Renesas RZ/N1 GPIO interrupt multiplexer

2018-05-01 Thread Phil Edworthy
Hi Rob, On 01 May 2018 14:29 Rob Herring wrote: > On Mon, Apr 23, 2018 at 02:33:06PM +0100, Phil Edworthy wrote: > > On RZ/N1 devices, there are 3 Synopsys DesignWare GPIO blocks each > > configured to have 32 interrupt outputs, so we have a total of 96 GPIO > > interrupts. All of these are passed

Re: [PATCH v2] efi: Ignore unrealistically large option roms

2018-05-01 Thread Ard Biesheuvel
On 1 May 2018 at 15:52, David Laight wrote: > From: Ard Biesheuvel >> Sent: 28 April 2018 07:41 >> On 27 April 2018 at 23:35, Hans de Goede wrote: >> > setup_efi_pci() tries to save a copy of each PCI option ROM as this may >> > be necessary for the device driver for the PCI device to have access

Re: perf: fuzzer causes stack going in wrong direction warnings

2018-05-01 Thread Josh Poimboeuf
On Tue, May 01, 2018 at 09:29:38AM -0400, Vince Weaver wrote: > Hello > > I reported this back in January, but I think it got lost since everyone > was busy with other more pressing matters. > > But in any case, the perf_fuzzer still can trigger these type of messages > and just wanted to see i

Re: [PATCH v2 1/2] drm/ttm: Only allocate huge pages with new flag TTM_PAGE_FLAG_TRANSHUGE

2018-05-01 Thread Michel Dänzer
On 2018-05-01 01:15 AM, Dave Airlie wrote: >> >> >> Yes, I fixed the original false positive messages myself with the swiotlb >> maintainer and I was CCed in fixing the recent fallout from Chris changes as >> well. > > So do we have a good summary of where this at now? > > I'm getting reports on

Re: [PATCH 2/2] sched: Introduce set_special_state()

2018-05-01 Thread Oleg Nesterov
On 05/01, Peter Zijlstra wrote: > > The only code I found that seems to care is ptrace_attach(), where we > wait for JOBCTL_TRAPPING to get cleared. That same function has a > comment about hiding the STOPPED -> RUNNING -> TRACED transition. So I'm > assuming it needs to observe TRACED if it observ

Re: [PATCH RFC v5 1/6] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-01 Thread Steven Rostedt
On Mon, 30 Apr 2018 18:41:59 -0700 Joel Fernandes wrote: > I'm able to reproduce a lockdep splat when CONFIG_PROVE_LOCKING=y and > CONFIG_PREEMPTIRQ_EVENTS=y. Needs more info in the change log. It also requires that CONFIG_DEBUG_LOCKED=y is set. Add this to the change log: The issue was this:

Re: [PATCH v9 03/27] clk: davinci: psc: allow for dev == NULL

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > +static inline void *_devm_kzalloc(struct device *dev, size_t size, gfp_t > flags) > +{ > + if (dev) > + return devm_kzalloc(dev, size, flags); > + > + return kzalloc(size, flags); > +} I have the same question on the ut

Re: [PATCH 4.14 00/91] 4.14.39-stable review

2018-05-01 Thread Dan Rue
On Mon, Apr 30, 2018 at 12:23:42PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.39 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH RFC v5 2/6] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-05-01 Thread Steven Rostedt
On Mon, 30 Apr 2018 18:42:00 -0700 Joel Fernandes wrote: > From: "Paul E. McKenney" > > This is needed for a future tracepoint patch that uses srcu, and to make > sure it doesn't call into lockdep. > > tracepoint code already calls notrace variants for rcu_read_lock_sched > so this patch does

Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding

2018-05-01 Thread Rob Herring
On Thu, Apr 26, 2018 at 4:10 AM, Johan Hovold wrote: > On Wed, Apr 25, 2018 at 01:16:58PM -0500, Rob Herring wrote: >> On Tue, Apr 24, 2018 at 11:34 AM, Johan Hovold wrote: >> > Add binding for u-blox GNSS receivers. >> > >> > Note that the u-blox product names encodes form factor (e.g. "neo"), >

Re: [PATCH RFC v5 3/6] srcu: Add notrace variant of srcu_dereference

2018-05-01 Thread Steven Rostedt
On Mon, 30 Apr 2018 18:42:01 -0700 Joel Fernandes wrote: > In this series, we are making lockdep use an rcuidle tracepoint. For > this reason we need a notrace variant of srcu_dereference since > otherwise we get lockdep splats since lockdep hooks may not have run > yet. This patch adds the neede

Re: [RFC 01/10] ARM: dts: exynos: Remove Exynos5440

2018-05-01 Thread Rob Herring
On Tue, Apr 24, 2018 at 10:32:30PM +0200, Krzysztof Kozlowski wrote: > The Exynos5440 (quad-core A15 with GMAC, PCIe, SATA) was targeting > server platforms but it did not make it to the market really. There are > no development boards with it and probably there are no real products > neither. Th

Re: [RFC 02/10] ata: ahci-platform: Remove support for Exynos5440

2018-05-01 Thread Rob Herring
On Tue, Apr 24, 2018 at 10:32:31PM +0200, Krzysztof Kozlowski wrote: > The Exynos5440 is not actively developed, there are no development > boards available and probably there are no real products with it. > Remove wide-tree support for Exynos5440. > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [RFC 03/10] cpufreq: exynos: Remove support for Exynos5440

2018-05-01 Thread Rob Herring
On Tue, Apr 24, 2018 at 10:32:32PM +0200, Krzysztof Kozlowski wrote: > The Exynos5440 is not actively developed, there are no development > boards available and probably there are no real products with it. > Remove wide-tree support for Exynos5440. > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [PATCH v2 1/2] usb: dwc3: use local copy of resource to fix-up register offset

2018-05-01 Thread Masahiro Yamada
Hi Felipe, 2018-04-19 20:03 GMT+09:00 Masahiro Yamada : > It is not a good idea to directly modify the resource of a platform > device. Modify its local copy, and pass it to devm_ioremap_resource() > so that we do not need to restore it in the failure path and the remove > hook. > > Signed-off-b

[PATCH] 1wire: family module autoload fails because of upper/lower case mismatch.

2018-05-01 Thread Ingo Flaschberger
1wire family module autoload fails because of upper/lower  case mismatch. Signed-off-by: Ingo Flaschberger ---  drivers/w1/w1.c | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index ab0931e..aa458f2 100644 --- a/drivers/w1/w1.c +++ b/drivers

Re: [PATCH v9 04/27] ARM: davinci: pass clock as parameter to davinci_timer_init()

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > This changes davinci_timer_init() so that we pass the clock as a > parameter instead of using clk_get(). This is done in preparation > for converting to the common clock framework. > > It removes the requirement that we have to have a clock

Re: [PATCH 3/4 v2] rculist: add list_for_each_entry_from_rcu()

2018-05-01 Thread Paul E. McKenney
On Tue, May 01, 2018 at 01:11:29PM +1000, NeilBrown wrote: > > list_for_each_entry_from_rcu() is an RCU version of > list_for_each_entry_from(). It walks a linked list under rcu > protection, from a given start point. > > It is similar to list_for_each_entry_continue_rcu() but starts *at* > the

Re: [PATCH v9 05/27] ARM: davinci: da830: add new clock init using common clock framework

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > This adds the new board-specific clock init in mach-davinci/da830.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also clean up the #in

[PATCH V1] irqchip/qcom: Fix check for spurious interrupts

2018-05-01 Thread Agustin Vega-Frias
When the interrupts for a combiner span multiple registers we need to check if any interrupts have been asserted on each register before checking for spurious interrupts. Signed-off-by: Agustin Vega-Frias --- drivers/irqchip/qcom-irq-combiner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

Re: [PATCH RFC v5 3/6] srcu: Add notrace variant of srcu_dereference

2018-05-01 Thread Paul E. McKenney
On Mon, Apr 30, 2018 at 06:42:01PM -0700, Joel Fernandes wrote: > In this series, we are making lockdep use an rcuidle tracepoint. For > this reason we need a notrace variant of srcu_dereference since > otherwise we get lockdep splats since lockdep hooks may not have run > yet. This patch adds the

Re: [PATCH v9 06/27] ARM: davinci: da850: add new clock init using common clock framework

2018-05-01 Thread Sekhar Nori
On Friday 27 April 2018 05:47 AM, David Lechner wrote: > This adds the new board-specific clock init in mach-davinci/da850.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also clean up the #in

Re: [PATCH net-next 0/2 v5] netns: uevent filtering

2018-05-01 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Mon, 30 Apr 2018 10:55:55 -0500 > Christian Brauner writes: > >> Hey everyone, >> >> This is the new approach to uevent filtering as discussed (see the >> threads in [1], [2], and [3]). It only contains *non-functional >> changes*. ... > Ack

Re: [PATCH 2/2] sched: Introduce set_special_state()

2018-05-01 Thread Peter Zijlstra
On Tue, May 01, 2018 at 03:59:24PM +0200, Oleg Nesterov wrote: > On 05/01, Peter Zijlstra wrote: > > > > The only code I found that seems to care is ptrace_attach(), where we > > wait for JOBCTL_TRAPPING to get cleared. That same function has a > > comment about hiding the STOPPED -> RUNNING -> TRA

Re: [PATCH 4.4 00/44] 4.4.131-stable review

2018-05-01 Thread Dan Rue
On Mon, Apr 30, 2018 at 12:24:11PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.131 release. > There are 44 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH RFC v5 5/6] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-05-01 Thread Steven Rostedt
On Mon, 30 Apr 2018 18:42:03 -0700 Joel Fernandes wrote: > In recent tests with IRQ on/off tracepoints, a large performance > overhead ~10% is noticed when running hackbench. This is root caused to > calls to rcu_irq_enter_irqson and rcu_irq_exit_irqson from the > tracepoint code. Following a lon

Re: [PATCH 4.9 00/61] 4.9.98-stable review

2018-05-01 Thread Dan Rue
On Mon, Apr 30, 2018 at 12:24:03PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.98 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH RFC v5 5/6] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-05-01 Thread Steven Rostedt
On Tue, 01 May 2018 01:56:01 + Joel Fernandes wrote: > This last bit is supposed to be srcu_dereference_notrace. The hunk to use > that is actually in patch 6/6 , sorry about that. I've fixed it in my tree > and it means patches 5/6 and 6/6 need an update. Steve, if you want me to > repost i

Re: [PATCH 1/2] dt-bindings: add MediaTek XS-PHY binding

2018-05-01 Thread Rob Herring
On Wed, Apr 25, 2018 at 03:45:28PM +0800, Chunfeng Yun wrote: > Add a DT binding documentation of XS-PHY for MediaTek SoCs > with USB3.1 GEN2 controller > > Signed-off-by: Chunfeng Yun > --- > .../devicetree/bindings/phy/phy-mtk-xsphy.txt | 127 > > 1 file changed, 12

Re: [PATCH] dt-bindings: panel: lvds: Fix path to display timing bindings

2018-05-01 Thread Rob Herring
On Wed, Apr 25, 2018 at 09:49:38AM +0200, Geert Uytterhoeven wrote: > Fixes: 14da3ed8dd08c581 ("devicetree/bindings: display: Document common > panel properties") > Signed-off-by: Geert Uytterhoeven > --- > Documentation/devicetree/bindings/display/panel/panel-common.txt | 2 +- > 1 file changed,

Re: [PATCH v7 3/9] PCI: endpoint: functions/pci-epf-test: Add second entry

2018-05-01 Thread Lorenzo Pieralisi
On Tue, May 01, 2018 at 05:53:59PM +0530, Kishon Vijay Abraham I wrote: > Hi Lorenzo, > > On Tuesday 01 May 2018 05:24 PM, Lorenzo Pieralisi wrote: > > On Tue, May 01, 2018 at 03:37:47PM +0530, Kishon Vijay Abraham I wrote: > >> Hi Lorenzo, > >> > >> On Thursday 26 April 2018 10:26 PM, Lorenzo Pie

Re: ORC unwinder bad backtrace

2018-05-01 Thread Josh Poimboeuf
On Wed, Apr 18, 2018 at 10:45:48AM -0500, Josh Poimboeuf wrote: > On Wed, Apr 18, 2018 at 06:54:38AM -0700, Matthew Wilcox wrote: > > f81061192 : > > ... > > 810611bf: 90 nop > > 810611c0 : > > > > I suspect an off-by-one error; you don't really mean to p

Re: [PATCH 1/2] dt-bindings: media: i2c: Add mt9t111 image sensor

2018-05-01 Thread Rob Herring
On Wed, Apr 25, 2018 at 01:00:13PM +0200, Jacopo Mondi wrote: > Add device tree bindings documentation for Micron MT9T111/MT9T112 image > sensors. > > Signed-off-by: Jacopo Mondi > --- > Documentation/devicetree/bindings/mt9t112.txt | 41 > +++ > 1 file changed, 41 inser

Re: [PATCH 1/3] dt-bindings: mailbox: Add APSS shared binding for SDM845 SoCs

2018-05-01 Thread Rob Herring
On Wed, Apr 25, 2018 at 08:08:01PM +0530, Sibi Sankar wrote: > Include SDM845 APSS shared to the list of possible bindings > > Signed-off-by: Sibi Sankar > --- > .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt| 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Rob Herring

Re: [PATCH 03/24] VFS: Introduce the structs and doc for a filesystem context [ver #7]

2018-05-01 Thread David Howells
Randy Dunlap wrote: > > + (2) Parse the options and attach them to the context. Options may be > > passed > > + individually from userspace. > > Does this say that step (2) can be multiple small steps? Perhaps "phase (2)" would be a better name than "step (2)". During (2), multiple argum

<    1   2   3   4   5   6   7   8   9   >