[PATCH 2/3] tracing: initialize variable in create_dyn_event()

2019-03-26 Thread Steven Rostedt
From: Frank Rowand Fix compile warning in create_dyn_event(): 'ret' may be used uninitialized in this function [-Wuninitialized]. Link: http://lkml.kernel.org/r/1553237900-8555-1-git-send-email-frowand.l...@gmail.com Cc: Masami Hiramatsu Cc: Ingo Molnar Cc: Tom Zanussi Cc: Ravi Bangoria

[PATCH 0/3] [GIT PULL] tracing: Minor fixes for 5.1-rc2

2019-03-26 Thread Steven Rostedt
Linus, Three small fixes: - A fix to a double free in the histogram code - Uninitialized variable fix - Use NULL instead of zero fix and spelling fixes Please pull the latest trace-v5.1-rc2 tree, which can be found at:

[PATCH v2 0/6] Device property improvements, add %pfw format specifier

2019-03-26 Thread Sakari Ailus
Hi all, This set adds functionality into the device property API (counting a node's parents as well as obtaining its name) in order to support printing fwnode names using a new conversion specifier "%pfw". The names that are produced are equivalent to its OF counterpart "%pOF" on OF systems for

[PATCH 1/3] tracing: Remove unnecessary var_ref destroy in track_data_destroy()

2019-03-26 Thread Steven Rostedt
From: Tom Zanussi Commit 656fe2ba85e8 (tracing: Use hist trigger's var_ref array to destroy var_refs) centralized the destruction of all the var_refs in one place so that other code didn't have to do it. The track_data_destroy() added later ignored that and also destroyed the track_data

[PATCH 3/3] ftrace: Fix warning using plain integer as NULL & spelling corrections

2019-03-26 Thread Steven Rostedt
From: Hariprasad Kelam Changed 0 --> NULL to avoid sparse warning Corrected spelling mistakes reported by checkpatch.pl Sparse warning below: sudo make C=2 CF=-D__CHECK_ENDIAN__ M=kernel/trace CHECK kernel/trace/ftrace.c kernel/trace/ftrace.c:3007:24: warning: Using plain integer as NULL

[PATCH v2 3/6] device property: Add a function to obtain a node's prefix

2019-03-26 Thread Sakari Ailus
The prefix is used for printing purpose before a node, and it also works as a separator between two nodes. Signed-off-by: Sakari Ailus --- drivers/acpi/property.c | 22 ++ drivers/base/property.c | 12 drivers/of/property.c| 10 ++

[PATCH v2 5/6] lib/vsprintf: Make use of fwnode API to obtain node names and separators

2019-03-26 Thread Sakari Ailus
Instead of implementing our own means of discovering parent nodes, node names or counting how many parents a node has, use the newly added functions in the fwnode API to obtain that information. Signed-off-by: Sakari Ailus --- lib/vsprintf.c | 37 +++-- 1 file

[PATCH v2 4/6] lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps

2019-03-26 Thread Sakari Ailus
%pS and %ps are now the preferred conversion specifiers to print function %names. The functionality is equivalent; remove the old, deprecated %pF %and %pf support. Depends-on: ("treewide: Switch printk users from %pf and %pF to %ps and %pS, respectively") Signed-off-by: Sakari Ailus

[PATCH v2 1/6] device property: Add functions for accessing node's parents

2019-03-26 Thread Sakari Ailus
Add two convenience functions for accessing node's parents: fwnode_count_parents() returns the number of parent nodes a given node has. fwnode_get_nth_parent() returns node's parent at a given distance from the node itself. Also reorder fwnode_get_parent() in property.c according to the same

[PATCH v2 6/6] lib/vsprintf: Add %pfw conversion specifier for printing fwnode names

2019-03-26 Thread Sakari Ailus
Add support for %pfw conversion specifier (with "f" and "P" modifiers) to support printing full path of the node, including its name ("f") and only the node's name ("P") in the printk family of functions. The two flags have equivalent functionality to existing %pOF with the same two modifiers ("f"

[PATCH v2 2/6] device property: Add fwnode_get_name for returning the name of a node

2019-03-26 Thread Sakari Ailus
The fwnode framework did not have means to obtain the name of a node. Add that now, in form of the fwnode_get_name() function and a corresponding get_name fwnode op. OF and ACPI support is included. Signed-off-by: Sakari Ailus --- drivers/acpi/property.c | 24

Re: [PATCH v19,RESEND 16/27] x86/sgx: Add the Linux SGX Enclave Driver

2019-03-26 Thread Thomas Gleixner
On Tue, 26 Mar 2019, Huang, Kai wrote: > On Wed, 2019-03-20 at 18:21 +0200, Jarkko Sakkinen wrote: > > 13 files changed, 1657 insertions(+), 2 deletions(-) > > create mode 100644 arch/x86/include/uapi/asm/sgx.h > > create mode 100644 arch/x86/kernel/cpu/sgx/driver/Makefile > > create mode

RE: [RFC v2 1/2] vfio/pci: export common symbols in vfio-pci

2019-03-26 Thread Liu, Yi L
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, March 26, 2019 2:17 AM > To: Liu, Yi L > Subject: Re: [RFC v2 1/2] vfio/pci: export common symbols in vfio-pci > > On Sat, 23 Mar 2019 11:06:44 + > "Liu, Yi L" wrote: > > Hi Alex, [...] > > > > I tried to get a

Re: [External] Re: Print map for total physical and virtual memory

2019-03-26 Thread Pankaj Suryawanshi
From: Matthew Wilcox Sent: 26 March 2019 17:06 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: [External] Re: Print map for total physical and virtual memory CAUTION: This email originated from outside of the

Re: [kernfs] e19dfdc83b: BUG:KASAN:global-out-of-bounds_in_s

2019-03-26 Thread Ondrej Mosnacek
On Mon, Mar 25, 2019 at 6:06 PM Ondrej Mosnacek wrote: > On Mon, Mar 25, 2019 at 4:17 PM Paul Moore wrote: > > Ondrej, please look into this. > > > > You've looked at this code more recently than I have, but it looks > > like there might be an issue with __kernfs_iattrs() returning a > > pointer

[PATCH 2/2] devantech-srf04.txt: remove old DT documentation

2019-03-26 Thread Andreas Klinger
remove the outdated DT documentation of devantech srf04 iio driver which is replaced by devantech-srf04.yaml Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.txt | 28 -- 1 file changed, 28 deletions(-) delete mode 100644

[PATCH 1/2] devantech-srf04.yaml: transform DT binding to YAML

2019-03-26 Thread Andreas Klinger
use devantech-srf04.txt and transform binding into yaml Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.yaml| 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml

Re: [PATCH/RFC] driver core: Postpone DMA tear-down until after devres release

2019-03-26 Thread Geert Uytterhoeven
Hi John, CC robh On Tue, Mar 26, 2019 at 12:42 PM John Garry wrote: > > Memory is incorrectly freed using the direct ops, as dma_map_ops = NULL. > > Oops... > > > > After reversing the order of the calls to arch_teardown_dma_ops() and > > devres_release_all(), dma_map_ops is still valid, and

Re: [PATCH] timekeeping: Force upper bound for setting CLOCK_REALTIME

2019-03-26 Thread Thomas Gleixner
On Tue, 26 Mar 2019, Miroslav Lichvar wrote: > On Sat, Mar 23, 2019 at 11:36:19AM +0100, Thomas Gleixner wrote: > > It is reasonable to force an upper bound for the various methods of setting > > CLOCK_REALTIME. Year 2262 is the absolute upper bound. Assume a maximum > > uptime of 30 years which

[PATCH 0/2] transform devantech-srf04.txt into yaml format

2019-03-26 Thread Andreas Klinger
use yaml description language to document Devantech SRF04 ultrasonic iio proximity driver Andreas Klinger (2): devantech-srf04.yaml: transform DT binding to YAML devantech-srf04.txt: remove old DT documentation .../bindings/iio/proximity/devantech-srf04.txt | 28 --

Re: [PATCH -next] x86/apic: Reduce print level of CPU limit announcement

2019-03-26 Thread Rafael J. Wysocki
On Tue, Mar 26, 2019 at 1:02 PM Leon Romanovsky wrote: > > From: Leon Romanovsky > > Kernel is booted with less possible CPUs (possible_cpus kernel boot > option) than available CPUs will have prints like this: > > [1.131039] APIC: NR_CPUS/possible_cpus limit of 8 reached. Processor >

Re: [PATCH 22/27] Lock down kprobes

2019-03-26 Thread Masami Hiramatsu
On Mon, 25 Mar 2019 15:09:49 -0700 Matthew Garrett wrote: > From: David Howells > > Disallow the creation of kprobes when the kernel is locked down by > preventing their registration. This prevents kprobes from being used to > access kernel memory, either to make modifications or to steal

Re: [PATCH v2 0/6] Add nvmem support on STM32

2019-03-26 Thread Alexandre Torgue
Hi Fabrice On 2/28/19 11:19 AM, Fabrice Gasnier wrote: Non volatile memory area is available on STM32. It contains various factory programmed information such as unique device ID, analog calibration... This patchset adds: - NVMEM support to access stm32 data cells - helper to read 16 bits

Re: [RFC] mm/hotplug: Make get_nid_for_pfn() work with HAVE_ARCH_PFN_VALID

2019-03-26 Thread Michal Hocko
On Tue 26-03-19 17:33:19, Anshuman Khandual wrote: [...] > I could get it working with the following re-order of memblock_[free|remove] > and > arch_remove_memory(). I did not observe any other adverse side affect because > of > this change. Does it look okay ? Memblock should only work with

Re: [PATCH v2 3/3] rcu: validate arguments for rcu tracepoints

2019-03-26 Thread Steven Rostedt
Paul, Are you OK with this patch? If you ack it, I'll pull it in through my tree. -- Steve On Tue, 26 Mar 2019 20:13:11 +0800 Yafang Shao wrote: > When CONFIG_RCU_TRACE is not set, all these tracepoints are defined as > do-nothing macro. > We'd better make those inline functions that take

Re: [PATCH v2 2/3] sched/fair: do not expose some tracepoints to user if CONFIG_SCHEDSTATS is not set

2019-03-26 Thread Steven Rostedt
Peter, Ingo, Are you OK with this patch? If you ack it, I'll pull it in through my tree. -- Steve On Tue, 26 Mar 2019 20:13:10 +0800 Yafang Shao wrote: > The tracepoints trace_sched_stat_{iowait, blocked, wait, sleep} should > be not exposed to user if CONFIG_SCHEDSTATS is not set. > >

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

2019-03-26 Thread Jonathan Cameron
On Mon, 25 Mar 2019 16:37:07 -0700 Dan Williams wrote: > On Mon, Mar 25, 2019 at 4:09 PM Brice Goglin wrote: > > > > > > Le 25/03/2019 à 20:29, Dan Williams a écrit : > > > Perhaps "path" might be a suitable replacement identifier rather than > > > type. I.e. memory that originates from an

Re: [PATCH v2] PCI: al: Add Amazon Annapurna Labs PCIe host controller driver

2019-03-26 Thread Lorenzo Pieralisi
[+Zhou, Gustavo] On Tue, Mar 26, 2019 at 12:00:55PM +0200, Jonathan Chocron wrote: > Adding support for Amazon's Annapurna Labs PCIe driver. > The HW controller is based on DesignWare's IP. > > The HW doesn't support accessing the Root Port's config space via > ECAM, so we obtain its base

Re: [PATCH v19,RESEND 08/27] x86/cpu/intel: Detect SGX support and update caps appropriately

2019-03-26 Thread Huang, Kai
On Wed, 2019-03-20 at 18:21 +0200, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Similar to other large Intel features such as VMX and TXT, SGX must be > explicitly enabled in IA32_FEATURE_CONTROL MSR to be truly usable. > Clear all SGX related capabilities if SGX is not fully enabled

[PATCH v2 0/3] tracing: introduce TRACE_EVENT_NOP and use it

2019-03-26 Thread Yafang Shao
In this patchset, I introduce some new macros TRACE_EVENT_NOP, DEFINE_EVENT_NOP and DECLARE_EVENT_CLASS_NOP, which will define a tracepoint as do-nothing inline function. #define DECLARE_EVENT_NOP(name, proto) \ static inline void trace_##name(proto)

[PATCH v2 3/3] rcu: validate arguments for rcu tracepoints

2019-03-26 Thread Yafang Shao
When CONFIG_RCU_TRACE is not set, all these tracepoints are defined as do-nothing macro. We'd better make those inline functions that take proper arguments. As RCU_TRACE() is defined as do-nothing marco as well when CONFIG_RCU_TRACE is not set, so we can clean it up. Signed-off-by: Yafang Shao

[PATCH v2 2/3] sched/fair: do not expose some tracepoints to user if CONFIG_SCHEDSTATS is not set

2019-03-26 Thread Yafang Shao
The tracepoints trace_sched_stat_{iowait, blocked, wait, sleep} should be not exposed to user if CONFIG_SCHEDSTATS is not set. Signed-off-by: Yafang Shao --- include/trace/events/sched.h | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git

[PATCH v2 1/3] tracing: introduce TRACE_EVENT_NOP()

2019-03-26 Thread Yafang Shao
Sometimes we want to define a tracepoint as a do-nothing function. So I introduce TRACE_EVENT_NOP, DECLARE_EVENT_CLASS_NOP and DEFINE_EVENT_NOP for this kind of usage. Signed-off-by: Yafang Shao --- include/linux/tracepoint.h | 15 +++ include/trace/define_trace.h | 8 2

[PATCH v3] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-26 Thread Jarkko Sakkinen
Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the key type callbacks and exported functions to fail when a TPM is not available. Cc: James Morris Reported-by: Dan Williams Tested-by: Dan Williams Fixes: 240730437deb ("KEYS: trusted: explicitly use tpm_chip structure...")

Re: Bad file pattern in MAINTAINERS section 'KEYS-TRUSTED'

2019-03-26 Thread Mimi Zohar
Hi Jarrko, On Tue, 2019-03-26 at 13:37 +0200, Jarkko Sakkinen wrote: > Mimi, > > Can you fix this and I can ack and send PR through my tree? Making the "trusted.h" include file public was part of David's "KEYS: Support TPM-wrapped key and crypto ops" patch set.  I wasn't involved in reviewing

Re: WARNING in ovl_instantiate

2019-03-26 Thread syzbot
syzbot has bisected this bug to: commit 01b39dcc95680b04c7af5de7f39f577e9c4865e3 Author: Amir Goldstein Date: Fri May 11 08:15:15 2018 + ovl: use inode_insert5() to hash a newly created inode bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=176da0cd20 start commit:

[PATCH v2] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-26 Thread Jarkko Sakkinen
Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the key type callbacks and exported functions to fail when a TPM is not available. Cc: James Morris Reported-by: Dan Williams Tested-by: Dan Williams Fixes: 240730437deb ("KEYS: trusted: explicitly use tpm_chip structure...")

Re: [RFC] mm/hotplug: Make get_nid_for_pfn() work with HAVE_ARCH_PFN_VALID

2019-03-26 Thread Anshuman Khandual
On 03/22/2019 05:32 PM, Michal Hocko wrote: > On Fri 22-03-19 11:49:30, Anshuman Khandual wrote: >> >> On 03/21/2019 02:06 PM, Michal Hocko wrote: >>> On Thu 21-03-19 13:38:20, Anshuman Khandual wrote: Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs entries

Re: [PATCH 4.9 00/30] 4.9.166-stable review

2019-03-26 Thread kernelci.org bot
stable-rc/linux-4.9.y boot: 98 boots: 0 failed, 86 passed with 12 offline (v4.9.165-31-gb7e63ff5d9f9) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.165-31-gb7e63ff5d9f9/ Full Build Summary:

[PATCH -next] x86/apic: Reduce print level of CPU limit announcement

2019-03-26 Thread Leon Romanovsky
From: Leon Romanovsky Kernel is booted with less possible CPUs (possible_cpus kernel boot option) than available CPUs will have prints like this: [1.131039] APIC: NR_CPUS/possible_cpus limit of 8 reached. Processor 55/0x1f ignored. [1.132228] ACPI: Unable to map lapic to logical cpu

Re: [PATCH v19,RESEND 16/27] x86/sgx: Add the Linux SGX Enclave Driver

2019-03-26 Thread Huang, Kai
On Wed, 2019-03-20 at 18:21 +0200, Jarkko Sakkinen wrote: > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > can be used by applications to set aside private regions of code and > data. The code outside the enclave is disallowed to access the memory > inside the enclave by

Re: [PATCH] firmware: arm_scmi: Fix leak in scmi_mailbox_check

2019-03-26 Thread Steven Price
On 26/03/2019 07:23, Mukesh Ojha wrote: > > On 3/25/2019 11:07 PM, Steven Price wrote: >> of_parse_phandle_with_args() requires the caller to call of_node_put() on >> the returned args->np pointer. Otherwise the reference count will remain >> incremented. >> >> However, in this case, since we

Re: [PATCH] clk: asr: clock driver support for ASR AquilaC Soc

2019-03-26 Thread Dan Carpenter
On Sat, Mar 23, 2019 at 10:08:35PM +0800, qiaozhou wrote: > From: Qiao Zhou > > add clock driver support for ASR AquilaC SoC. > > We add clk-gate, clk-mix, and clk-pll drivers: > 1. clk-gate driver is for regisers which have different enable/disable bits > to control gating. > 2. clk-mix driver

Re: [PATCH v1] phy: qcom-qmp: Add msm8998 PCIe QMP PHY support

2019-03-26 Thread Marc Gonzalez
On 26/03/2019 08:45, Kishon Vijay Abraham I wrote: > On 22/03/19 9:42 PM, Marc Gonzalez wrote: > >> Copy init sequence from downstream: >> https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/arch/arm/boot/dts/qcom/msm8998-v2.dtsi?h=LE.UM.1.3.r3.25#n372 > > Can't we instead have reference

Re: [PATCH] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-26 Thread Jarkko Sakkinen
On Mon, Mar 25, 2019 at 04:47:35PM +0200, Jarkko Sakkinen wrote: > Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the > key type callbacks and exported functions to fail when a TPM is not > available. > > Cc: Dan Williams > Cc: sta...@vger.kernel.org > Fixes: 240730437deb

Re: [RESEND] i2c: imx: defer probing on dma channel request

2019-03-26 Thread Laurentiu Tudor
Hi Steve, Thanks for the review! Few comments inline. On 25.03.2019 19:12, Steven Price wrote: > On 25/03/2019 15:30, laurentiu.tu...@nxp.com wrote: >> From: Laurentiu Tudor >> >> If the dma controller is not yet probed, defer i2c probe. >> The error path in probe was slightly modified (no

Re: [PATCH] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-26 Thread Jarkko Sakkinen
On Mon, Mar 25, 2019 at 02:33:38PM -0700, Dan Williams wrote: > On Mon, Mar 25, 2019 at 7:48 AM Jarkko Sakkinen > wrote: > > > > Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the > > key type callbacks and exported functions to fail when a TPM is not > > available. > > > >

Re: [RFC net-next 1/8] subdev: Introducing subdev bus

2019-03-26 Thread Lorenzo Pieralisi
On Fri, Mar 01, 2019 at 08:17:27AM +0100, Greg KH wrote: > On Thu, Feb 28, 2019 at 11:37:45PM -0600, Parav Pandit wrote: > > Introduce a new subdev bus which holds sub devices created from a > > primary device. These devices are named as 'subdev'. > > A subdev is identified similarly to pci device

Re: [PATCH v2] arm64: dts: rockchip: add rk3399 UART DMAs

2019-03-26 Thread Robin Murphy
On 25/03/2019 12:34, Heiko Stuebner wrote: Am Donnerstag, 21. März 2019, 17:22:44 CET schrieb Katsuhiro Suzuki: Add UART dma channels as specified by the rk3399 TRM. Refer: RK3399 TRM V1.4: Chapter 12 DMA Controller Signed-off-by: Katsuhiro Suzuki applied for 5.2 As a heads-up, I did

[PATCH v5 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip WCN3998

2019-03-26 Thread Harish Bandi
This patch enables regulators for the Qualcomm Bluetooth WCN3998 controller. Signed-off-by: Harish Bandi --- Changes in V5: - modified the DT document for wcn399x to make inline - in function call with driver code --- Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt | 5 +++-- 1

[PATCH v5 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-26 Thread Harish Bandi
Added new compatible for WCN3998 and corresponding voltage and current values to WCN3998 compatible. Changed driver code to support WCN3998 Signed-off-by: Harish Bandi --- Changes in V5: - changed is_qca_soc_type_wcn399x_family to - qca_is_wcn399x helper function - moved the qca_is_wcn399x

[PATCH v5 0/2] Enable Bluetooth functionality for WCN3998.

2019-03-26 Thread Harish Bandi
This patch series we add support for WCN3998 BT chip set. This new chip set is based from the WCN3990 with minimal power numbers. So here in this patch The major difference between wcn3990 and WCN3998 is only power numbers. where as init process and fw download is same with wcn3990. So we add new

Re: [PATCH v2 4/4] drivers/base/memory.c: Rename the misleading parameter

2019-03-26 Thread Matthew Wilcox
On Tue, Mar 26, 2019 at 05:02:27PM +0800, Baoquan He wrote: > The input parameter 'phys_index' of memory_block_action() is actually > the section number, but not the phys_index of memory_block. Fix it. > static int > -memory_block_action(unsigned long phys_index, unsigned long action, int >

Re: Bad file pattern in MAINTAINERS section 'SAMSUNG EXYNOS TRUE RANDOM NUMBER GENERATOR (TRNG) DRIVER'

2019-03-26 Thread Krzysztof Kozlowski
On Mon, 25 Mar 2019 at 22:29, Joe Perches wrote: > > A file pattern line in this section of the MAINTAINERS file in linux-next > does not have a match in the linux source files. Thanks for reminder, the patch adding file is pending. Best regards, Krzysztof

Re: [PATCH v5.1 RESEND] dt-bindings: hwrng: Add Samsung Exynos 5250+ True RNG bindings

2019-03-26 Thread Krzysztof Kozlowski
On Fri, 11 Jan 2019 at 14:22, Łukasz Stelmach wrote: > > Add binding documentation for the True Random Number Generator > found on Samsung Exynos 5250+ SoCs. > > Acked-by: Rob Herring > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: Łukasz Stelmach > --- Rob, Could you apply this directly?

Re: [PATCH v12 01/11] bitops: Introduce the for_each_set_clump8 macro

2019-03-26 Thread Andy Shevchenko
On Tue, Mar 26, 2019 at 11:54:59AM +0900, William Breathitt Gray wrote: > On Mon, Mar 25, 2019 at 03:12:36PM +0200, Andy Shevchenko wrote: > > On Mon, Mar 25, 2019 at 03:22:23PM +0900, William Breathitt Gray wrote: > > > This macro iterates for each 8-bit group of bits (clump) with set bits, > > >

Re: [PATCH 4.9 00/30] 4.9.166-stable review

2019-03-26 Thread Naresh Kamboju
On Tue, 26 Mar 2019 at 12:01, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.166 release. > There are 30 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 v4 1/2] x86/MCE: Add function to allow filtering of MCA errors

2019-03-26 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Borislav Petkov > Sent: Tuesday, March 26, 2019 2:57 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; > tony.l...@intel.com; x...@kernel.org; ra...@milecki.pl; >

Re: [PATCH v3] PCI: xilinx: Check for __get_free_pages() failure

2019-03-26 Thread Steven Price
On 25/03/2019 22:19, Kangjie Lu wrote: > If __get_free_pages() fails, the patch returns -ENOMEM to avoid As Bjorn suggested s/the patch returns/return/ would suffice and is slightly easier to read. But I'm happy either way. > NULL pointer dereference. > > Signed-off-by: Kangjie Lu

Re: [PATCH v2 0/2] Correct the processing for base_frequency

2019-03-26 Thread Rafael J. Wysocki
On Monday, March 25, 2019 5:04:38 PM CET Srinivas Pandruvada wrote: > The base_frequency display in cpufreq sysfs for intel_pstate gets the > guaranteed ratio by reading CPPC guaranteed performance register as a > first preference before falling back to x86 MSR for Hardware P-state > Capabilities.

Re: Print map for total physical and virtual memory

2019-03-26 Thread Matthew Wilcox
On Tue, Mar 26, 2019 at 08:34:20AM +, Pankaj Suryawanshi wrote: > Hello, > > 1. Is there any way to print whole physical and virtual memory map in > kernel/user space ? > > 2. Is there any way to print map of cma area reserved memory and movable > pages of cma area. > > 3. Is there any

Re: Bad file pattern in MAINTAINERS section 'KEYS-TRUSTED'

2019-03-26 Thread Jarkko Sakkinen
Mimi, Can you fix this and I can ack and send PR through my tree? /Jarkko On Mon, Mar 25, 2019 at 02:27:05PM -0700, Joe Perches wrote: > A file pattern line in this section of the MAINTAINERS file in linux-next > does not have a match in the linux source files. > > This could occur because a

Re: ceph: fix use-after-free on symlink traversal

2019-03-26 Thread Ilya Dryomov
On Tue, Mar 26, 2019 at 2:39 AM Al Viro wrote: > > free the symlink body after the same RCU delay we have for freeing the > struct inode itself, so that traversal during RCU pathwalk wouldn't step > into freed memory. > > Signed-off-by: Al Viro > --- > diff --git a/fs/ceph/inode.c

Re: [PATCH v2 2/2] media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver

2019-03-26 Thread Sakari Ailus
Hi Mickael, On Mon, Mar 25, 2019 at 12:22:17PM +, Mickael GUENE wrote: ... > >> + /* register it for later use */ > >> + bridge->rx = ep; > >> + bridge->rx.link_frequencies = ep.nr_of_link_frequencies == 1 ? > >> + >link_frequency : NULL; > > > > I think you need to simply ignore

Re: [PATCH] firmware: arm_scmi: check return value of idr_find

2019-03-26 Thread Steven Price
On 25/03/2019 20:48, Kangjie Lu wrote: > Thanks for Steven Price's review of this patch. In the current code, There's no need to include a "thanks" message in the commit message - the "Reviewed-by" tag is sufficient. Please also remember to include an appropriate version tag in the subject - this

[PATCH] clocksource: Make clocksource insert entry more efficient

2019-03-26 Thread Yongkai Wu
In clocksource_enqueue(), it is unnecessary to do entry = >list in every loop,do it once in the last loop is enough. Signed-off-by: Yongkai Wu --- kernel/time/clocksource.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/time/clocksource.c

Re: [PATCH] dt-bindings: reset: meson-g12a: Add missing USB2 PHY resets

2019-03-26 Thread Philipp Zabel
Hi Kevin, On Fri, 2019-03-22 at 15:53 -0700, Kevin Hilman wrote: [...] > Could ou make a immtable tag for this in your tree? This is needed for > some upcoming DT users we'd like to queue for the next cycle. I have just sent a reset/fixes pull request including this patch. Once that gets

Re: [PATCH v12 3/4] cpuidle: Export the next timer/tick expiration for a CPU

2019-03-26 Thread Ulf Hansson
On Tue, 26 Mar 2019 at 11:36, Rafael J. Wysocki wrote: > > On Mon, Mar 25, 2019 at 3:24 PM Ulf Hansson wrote: > > > > On Mon, 25 Mar 2019 at 13:21, Rafael J. Wysocki wrote: > > > > > > On Wednesday, February 27, 2019 8:58:35 PM CET Ulf Hansson wrote: > > > > To be able to predict the sleep

[PATCH] ARM: dts: sun7i: fix typos in uart pin mux

2019-03-26 Thread Mans Rullgard
The recently added uart mux options had a few typos. Fix them. Fixes: 43d0fe112585 ("ARM: dts: sun7i: add pinctrl for missing uart mux options") Reported-by: Werner Böllmann Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 4 insertions(+), 4

Re: [PATCH v2 3/3] ARM: dts: stm32: Add clock on stm32mp157c syscfg

2019-03-26 Thread Alexandre Torgue
Hi Fabrice On 12/12/18 9:48 AM, Fabrice Gasnier wrote: STM32 syscfg needs a clock to access registers. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi

[PATCH v3 3/4] cpufreq: schedutil: Simplify iowait boosting

2019-03-26 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There is not reason for the minimum iowait boost value in the schedutil cpufreq governor to depend on the available range of CPU frequencies. In fact, that dependency is generally confusing, because it causes the iowait boost to behave somewhat differently on CPUs with

[PATCH v3 0/4] cpufreq: intel_pstate: Handle _PPC updates on global turbo disable/enable

2019-03-26 Thread Rafael J. Wysocki
Hi All, This is a new version of the following with one patch added: > This is a follow-up to the RFT patch set posted previously: > https://lore.kernel.org/lkml/9956076.f4luudm...@aspire.rjw.lan/ > > Patch [1/3] causes intel_pstate to update all policies if it gets a _PPC > change notification

[PATCH v3 1/4] cpufreq: intel_pstate: Driver-specific handling of _PPC updates

2019-03-26 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In some cases, the platform firmware disables or enables turbo frequencies for all CPUs globally before triggering a _PPC change notification for one of them. Obviously, that global change affects all CPUs, not just the notified one, and it needs to be acted upon by

[PATCH v3 2/4] cpufreq: Add cpufreq_cpu_acquire() and cpufreq_cpu_release()

2019-03-26 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It sometimes is necessary to find a cpufreq policy for a given CPU and acquire its rwsem (for writing) immediately after that, so introduce cpufreq_cpu_acquire() as a helper for that and the complementary cpufreq_cpu_release(). Make cpufreq_update_policy() use the new

[PATCH v3 4/4] cpufreq: intel_pstate: Update max frequency on global turbo changes

2019-03-26 Thread Rafael J. Wysocki
From: Rafael J. Wysocki While the cpuinfo.max_freq value doesn't really matter for intel_pstate in the active mode, in the passive mode it is used by governors as the maximum physical frequency of the CPU and the results of governor computations generally depend on it. Also it is made available

[PATCH v7 3/3] iio:temperature: Add MAX31856 thermocouple support

2019-03-26 Thread Patrick Havelange
From: Paresh Chaudhary This patch adds support for Maxim MAX31856 thermocouple temperature sensor support. More information can be found in: https://www.maximintegrated.com/en/ds/MAX31856.pdf NOTE: Driver support only Comparator Mode. Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber

[PATCH v7 1/3] dt-bindings: iio/temperature: Add thermocouple types (and doc)

2019-03-26 Thread Patrick Havelange
This patch introduces common thermocouple types used by various temperature sensors. Also a brief documentation explaining this "thermocouple-type" property. Signed-off-by: Patrick Havelange --- Changes v7 - Merge header and doc in same patch - Doc:add it's a single cell entry - Doc:removed

[PATCH v7 2/3] iio:temperature:max31856:Add device tree bind info

2019-03-26 Thread Patrick Havelange
From: Paresh Chaudhary This patch added device tree binding info for MAX31856 driver. Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber Signed-off-by: Patrick Havelange Reviewed-by: Rob Herring --- Changes v1 -> v2 [Matt - Removed comment block and added possibilities of

Re: [PATCH 0/3] ARM: dts: stm32: IPCC mailbox support on STM32MP157c

2019-03-26 Thread Alexandre Torgue
Hi Fabien On 3/1/19 10:18 AM, Fabien Dessenne wrote: Support IPCC mailbox on STM32MP157c-ed1 and STM32MP157a-dk1 boards. Fabien Dessenne (3): ARM: dts: stm32: add IPCC mailbox support on STM32MP157c ARM: dts: stm32: enable IPCC mailbox support on STM32MP157c-ed1 ARM: dts: stm32:

Re: [PATCH v2] genirq: Respect IRQCHIP_SKIP_SET_WAKE in irq_chip_set_wake_parent()

2019-03-26 Thread Marc Zyngier
Hi Stephen, On 25/03/2019 18:10, Stephen Boyd wrote: > This function returns an error if a child irqchip calls > irq_chip_set_wake_parent() but its parent irqchip has the > IRQCHIP_SKIP_SET_WAKE flag set. Let's return 0 for success here instead > because there isn't anything to do. > > This

[PATCH v4 1/2] mmc: sdhci: Export sdhci_finish_command()

2019-03-26 Thread Faiz Abbas
Make sdhci_finish_command() public so that it can be called from platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH v4 2/2] mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

2019-03-26 Thread Faiz Abbas
commit 5b0d62108b46 ("mmc: sdhci-omap: Add platform specific reset callback") skips data resets during tuning operation. Because of this, a data error or data finish interrupt might still arrive after a command error has been handled and the mrq ended. This ends up with a "mmc0: Got data interrupt

[PATCH v4 0/2] Fix command errors during tuning

2019-03-26 Thread Faiz Abbas
These patches fix the following error message in dra7xx boards: [4.833198] mmc1: Got data interrupt 0x0002 even though no data operation was in progress. Tested with 100 times boot tests on dra71x-evm, dra72x-evm and dra7xx-evm. v4: Fixed commit description for patch 1. Added

[PATCH v2] MAINTAINERS: Fix the link to ad7606 dt-bindings

2019-03-26 Thread Stefan Popa
The devicetree bindings documentation for ad7606 should also include the vendor prefix: ad7606.txt -> adi,ad7606.txt Fixes: 6e33a125df66 ("dt-bindings: iio: adc: Add docs for AD7606 ADC") Signed-off-by: Stefan Popa --- Changes in v2: - Added Fixes tag MAINTAINERS | 2 +- 1 file

Re: [PATCH v1] ARM: dts: exynos: Add proper regulator states for suspend-to-mem for odroid-u3

2019-03-26 Thread Krzysztof Kozlowski
On Tue, 26 Mar 2019 at 11:35, Anand Moon wrote: (...) > > This is third or fourth submission but you marked it as v1. This makes > > it very difficult to discuss and reference previous versions. > > > > The commit message did not change since beginning (first version). I > > asked twice that

[GIT PULL] file locking bugfix for v5.1

2019-03-26 Thread Jeff Layton
The following changes since commit 8c2ffd9174779014c3fe1f96d9dc3641d9175f00: Linux 5.1-rc2 (2019-03-24 14:02:26 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git tags/locks-v5.1 for you to fetch changes up to

Re: [PATCH 0/1] pwm: meson: fix scheduling while atomic issue

2019-03-26 Thread Uwe Kleine-König
Hello, On Tue, Mar 26, 2019 at 10:06:31AM +0100, Neil Armstrong wrote: > On 25/03/2019 18:41, Martin Blumenstingl wrote: > > On Mon, Mar 25, 2019 at 9:41 AM Uwe Kleine-König > > wrote: > >> On Sun, Mar 24, 2019 at 11:02:16PM +0100, Martin Blumenstingl wrote: > >>> Back in January a "BUG:

[PATCH 3/4] mtd: spinand: Enabled support to detect parameter page

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Some of the SPI NAND devices has parameter page which is similar to ONFI table. But, it may not be self sufficient to propagate all the required parameters. Fixup function has been added in struct manufacturer to accommodate this. Signed-off-by: Shivamurthy Shastri ---

[PATCH 2/4] mtd: nand: Move ONFI code into nand/ directory

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Move generic ONFI code to nand/ directory, which can be used by SPI NAND layer. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/Makefile| 2 +- drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} | 0 drivers/mtd/nand/raw/Makefile| 1 - 3 files changed, 1

[PATCH 4/4] mtd: spinand: micron: Support for new Micron SPI NAND flashes

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Driver is redesigned using parameter page to support Micron SPI NAND flashes. Support for selecting die is enabled for multi-die flashes. Turn OOB layout generic. Fixup some of the parameter page data as per Micron datasheet. Signed-off-by: Shivamurthy Shastri ---

[PATCH 0/4] Introduce generic ONFI support

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Current support to ONFI parameter page is only for raw NAND, this patch series turn ONFI support into generic. So that, other NAND devices like SPI NAND can use this. Support to detect parameter page is enabled in SPI NAND core. Turned Micron SPI NAND driver to use parameter page. >From SPI

[PATCH 1/4] mtd: rawnand: Turn the ONFI support to generic

2019-03-26 Thread Shivamurthy Shastri (sshivamurthy)
Fix headers to make way for adding helper functions. Add onfi helper structure. Add helper functions in raw NAND core, which later will be used during ONFI detection. Signed-off-by: Shivamurthy Shastri --- drivers/mtd/nand/raw/internals.h | 6 +- drivers/mtd/nand/raw/nand_base.c | 236

Re: [PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-26 Thread Baolin Wang
Hi Greg, On Mon, 4 Mar 2019 at 16:59, Baolin Wang wrote: > > This patch set fixes the baud rate calculation formula issue, as well as > adding power management support and DMA mode support for the Spreadtrum > serial controller. > > Changes from v1: > - The patch 1 of V1 was applied, so remove

Re: ceph: fix use-after-free on symlink traversal

2019-03-26 Thread Jeff Layton
On Mon, Mar 25, 2019 at 9:39 PM Al Viro wrote: > > free the symlink body after the same RCU delay we have for freeing the > struct inode itself, so that traversal during RCU pathwalk wouldn't step > into freed memory. > > Signed-off-by: Al Viro > --- > diff --git a/fs/ceph/inode.c

Re: [RFC PATCH v2 5/5] mtd: hyperbus: Add driver for TI's Hyperbus memory controller

2019-03-26 Thread Sergei Shtylyov
On 03/21/2019 08:45 PM, Vignesh Raghavendra wrote: > Add driver for Hyperbus memory controller on TI's AM654 SoC. Programming > IP is pretty simple and provides direct memory mapped access to > connected Flash devices. > > Add basic support for the IP without DMA. Second ChipSelect is not >

Re: [PATCH 0/8] stm32 m4 remoteproc on STM32MP157c

2019-03-26 Thread Alexandre Torgue
Hi fabien On 3/5/19 3:24 PM, Fabien Dessenne wrote: STMicrolectronics STM32MP157 MPU are based on a Dual Arm Cortex-A7 core and a Cortex-M4. This patchset adds the support of the stm32_rproc driver allowing to control the M4 remote processor. Fabien Dessenne (8): dt-bindings: stm32: add

Re: [PATCH v12 3/4] cpuidle: Export the next timer/tick expiration for a CPU

2019-03-26 Thread Rafael J. Wysocki
On Mon, Mar 25, 2019 at 3:24 PM Ulf Hansson wrote: > > On Mon, 25 Mar 2019 at 13:21, Rafael J. Wysocki wrote: > > > > On Wednesday, February 27, 2019 8:58:35 PM CET Ulf Hansson wrote: > > > To be able to predict the sleep duration for a CPU that is entering idle, > > > knowing when the next

RE: [RFC PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-03-26 Thread Reshetova, Elena
> On Mon, Mar 18, 2019 at 1:16 PM Andy Lutomirski wrote: > > On Mon, Mar 18, 2019 at 2:41 AM Elena Reshetova > > wrote: > > > Performance: > > > > > > 1) lmbench: ./lat_syscall -N 100 null > > > base: Simple syscall: 0.1774 microseconds > > > random_offset

Re: [PATCH v1] ARM: dts: exynos: Add proper regulator states for suspend-to-mem for odroid-u3

2019-03-26 Thread Anand Moon
Hi Krzysztof, Thanks your for your valuable comments. I will try to answer your queries to best of my knowledge. On Mon, 25 Mar 2019 at 18:16, Krzysztof Kozlowski wrote: > > On Sun, 24 Mar 2019 at 09:33, Anand Moon wrote: > > > > Add suspend-to-mem node to regulator core to be enabled or

Re: [PATCH v2 1/2] arm64: dts: mt8173: correct cpu type of cpu2 and cpu3 to cortex-a72

2019-03-26 Thread Seiya Wang
On Mon, 2019-02-25 at 14:51 +0800, Seiya Wang wrote: > The cpu type of cpu2 and cpu3 should be cortex-a72, not cortex-a57. > > Signed-off-by: Seiya Wang > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git

<    3   4   5   6   7   8   9   10   11   12   >