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

[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 num

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 bet

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: https://kernelci.org/build/stable-rc/branch/linux-4.9.y/k

[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: 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:

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 or

[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...")

[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 a/include/trace/even

[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 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)

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 address

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 in

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 ACP

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. > > Signe

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 pro

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 phy

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 cells.

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 > 55/0x1

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 cryp

[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 -- .../bindings/

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 is

[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 d

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 the

[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 Documentation/devic

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

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 organiza

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 co

[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 drivers/b

[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 orde

[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"

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 10064

[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 cha

[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 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 var_ref,

[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 poi

[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 Cc

[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: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.gi

[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 th

[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 ++ include/linux/fwn

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

2019-03-26 Thread Baoquan He
On 03/26/19 at 04:43am, Matthew Wilcox wrote: > 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(u

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

2019-03-26 Thread Matthew Wilcox
On Tue, Mar 26, 2019 at 12:35:25PM +, Pankaj Suryawanshi wrote: > 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

[PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-26 Thread Fabrice Gasnier
Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: BUG: sleeping function called from invalid context at kernel/irq/chip.c... Call stack is as follows: - __might_sleep - handle_nested_irq <-- Expects threaded irq - iio_trigger_poll_chained - stm32_adc_dma_buffer_done - vchan_

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

2019-03-26 Thread Bjorn Helgaas
Nits, probably Lorenzo will fix them up unless he sees more substantive things. On Tue, Mar 26, 2019 at 12:00:55PM +0200, Jonathan Chocron wrote: > Adding support for Amazon's Annapurna Labs PCIe driver. Ideally, use "imperative mood", i.e., write it as a command: Add support for Amazon's Anna

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

2019-03-26 Thread Rob Herring
On Tue, Mar 26, 2019 at 7:31 AM Andreas Klinger wrote: > > use devantech-srf04.txt and transform binding into yaml I'd just collapse these into 1 patch. > > Signed-off-by: Andreas Klinger > --- > .../bindings/iio/proximity/devantech-srf04.yaml| 62 > ++ > 1 file change

Re: [PATCH v2] pci: pcie-xilinx: fix a missing-check bug for __get_free_pages

2019-03-26 Thread Robin Murphy
On 23/03/2019 21:04, Aditya Pakki wrote: In case __get_free_pages fail, the fix returns error upstream to avoid NULL pointer dereference. Where does msi_pages ever get dereferenced? The logic here might actually still have a chance of working out OK with NULL depending on how the memory maps

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

2019-03-26 Thread Lukas Wunner
On Tue, Mar 26, 2019 at 07:08:18PM +0900, William Breathitt Gray wrote: > On Tue, Mar 26, 2019 at 10:43:45AM +0100, Lukas Wunner wrote: > > I'd try to avoid copying around the clump value and use a pointer > > to u8 instead. > > Although in this case we are handling 8-bit clumps, I anticipate devi

[PATCH] KVM: x86: nVMX: allow RSM to restore VMXE CR4 flag

2019-03-26 Thread Vitaly Kuznetsov
Commit 5bea5123cbf0 ("KVM: VMX: check nested state and CR4.VMXE against SMM") introduced a check to vmx_set_cr4() forbidding to set VMXE from SMM. The check is correct, however, there is a special case when RSM is called to leave SMM: rsm_enter_protected_mode() is called with HF_SMM_MASK still set

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

2019-03-26 Thread Rasmus Villemoes
On 26/03/2019 13.41, Sakari Ailus wrote: > 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 t

Re: [PATCH] KVM: x86: nVMX: allow RSM to restore VMXE CR4 flag

2019-03-26 Thread Liran Alon
> On 26 Mar 2019, at 15:07, Vitaly Kuznetsov wrote: > > Commit 5bea5123cbf0 ("KVM: VMX: check nested state and CR4.VMXE against > SMM") introduced a check to vmx_set_cr4() forbidding to set VMXE from SMM. > The check is correct, however, there is a special case when RSM is called > to leave SM

[PATCH] mfd: Kconfig: Fix typo in PMIC_ADP5520 help text

2019-03-26 Thread michael.hennerich
From: Michael Hennerich No functional changes. This fixes a simple typo in the help text. Signed-off-by: Michael Hennerich --- drivers/mfd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 0ce2d8d..5660d48 100644 --- a/d

Re: [PATCH v0] nvmem: core: Export nvmem cell info to userspace

2019-03-26 Thread Gaurav Kohli
On 3/25/2019 4:28 PM, Srinivas Kandagatla wrote: On 24/03/2019 15:25, Gaurav Kohli wrote: On 3/22/2019 8:53 PM, Srinivas Kandagatla wrote: On 20/03/2019 05:53, Gaurav Kohli wrote: From: Shiraz Hashim Existing nvmem framework export full register space as nvmem binary, but not exportin

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

2019-03-26 Thread Andy Shevchenko
On Sun, Mar 24, 2019 at 08:17:46PM +0200, Sakari Ailus wrote: > On Fri, Mar 22, 2019 at 07:21:14PM +0200, Andy Shevchenko wrote: > > On Fri, Mar 22, 2019 at 05:29:30PM +0200, Sakari Ailus wrote: > > > Add support for %pfw conversion specifier (with "f" and "P" modifiers) to > > > support printing f

Re: [PATCH V3 01/23] perf/x86: Support outputting XMM registers

2019-03-26 Thread Liang, Kan
On 3/25/2019 8:11 PM, Thomas Gleixner wrote: On Fri, 22 Mar 2019, kan.li...@linux.intel.com wrote: + PERF_REG_X86_XMM15 = 62, + + /* All registers include the XMMX registers */ + PERF_REG_X86_MAX = PERF_REG_X86_XMM15 + 2, Ergo: PERF_REG_X86_MAX == 64 -#define REG_RESERV

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

2019-03-26 Thread Andy Shevchenko
On Tue, Mar 26, 2019 at 02:41:03PM +0200, Sakari Ailus wrote: > The prefix is used for printing purpose before a node, and it also works > as a separator between two nodes. > One nit below. > +static const char * > +acpi_fwnode_get_name_prefix(const struct fwnode_handle *fwnode) > +{ > + str

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

2019-03-26 Thread Mark Brown
On Tue, Mar 26, 2019 at 01:33:49PM +1100, Stephen Rothwell wrote: > After merging the sound-asoc tree, today's linux-next build (powerpc > allyesconfig) failed like this: > sound/soc/codecs/tlv320aic32x4-clk.c: In function 'clk_aic32x4_pll_prepare': > include/linux/kernel.h:979:32: error: derefer

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

2019-03-26 Thread Arnd Bergmann
On Tue, Mar 26, 2019 at 1:31 PM Thomas Gleixner wrote: > > 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 t

Re: Reading `/sys/kernel/debug/kmemleak` takes 3 s and content not shown

2019-03-26 Thread Paul Menzel
Dear Christophe, On 26.03.19 13:55, Christophe Leroy wrote: Le 26/03/2019 à 13:49, Paul Menzel a écrit : On 19.02.19 10:44, Paul Menzel wrote: On a the IBM S822LC (8335-GTA) with Ubuntu 18.10, and Linux 5.0-rc5+ accessing `/sys/kernel/debug/kmemleak` takes a long time. According to strace

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 02:03:19PM +0100, Lukas Wunner wrote: > On Tue, Mar 26, 2019 at 07:08:18PM +0900, William Breathitt Gray wrote: > > On Tue, Mar 26, 2019 at 10:43:45AM +0100, Lukas Wunner wrote: > > In this case, bitmap_get_value8 could be simplified to something like > > this: > > > >

[PATCH v2 1/2] phy: qcom-qmp: Add msm8998 PCIe QMP PHY support

2019-03-26 Thread Marc Gonzalez
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 Signed-off-by: Marc Gonzalez Reviewed-by: Vivek Gautam --- drivers/phy/qualcomm/phy-qcom-qmp.c | 110 drivers/

Re: [PATCH net-next v5 05/22] ethtool: introduce ethtool netlink interface

2019-03-26 Thread Michal Kubecek
On Tue, Mar 26, 2019 at 01:09:09PM +0100, Jiri Pirko wrote: > Mon, Mar 25, 2019 at 06:08:09PM CET, mkube...@suse.cz wrote: > >+All "set" and "action" type requests require admin privileges (CAP_NET_ADMIN > >+in the namespace). Most "get" type request are allowed for anyone but there > > s/request/

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

2019-03-26 Thread David Woodhouse
On Tue, 2019-03-26 at 12:17 +, Lorenzo Pieralisi wrote: > [+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 access

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

2019-03-26 Thread Andy Shevchenko
On Tue, Mar 26, 2019 at 02:11:35PM +0100, Rasmus Villemoes wrote: > On 26/03/2019 13.41, Sakari Ailus wrote: > > 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 p

[PATCH v2 2/2] dt-bindings: phy-qcom-qmp: Add qcom,msm8998-qmp-pcie-phy

2019-03-26 Thread Marc Gonzalez
Add compatible string for QMP PCIe phy on msm8998. Signed-off-by: Marc Gonzalez --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt b/Documentation/devicetree/bindings/phy/qcom

Re: [PATCH 2/4] signal: Make flush_sigqueue() use free_q to release memory

2019-03-26 Thread Oleg Nesterov
Sorry, I am sick and can't work, hopefully I'll return tomorrow. On 03/22, Christopher Lameter wrote: > > On Fri, 22 Mar 2019, Waiman Long wrote: > > > I am looking forward to it. > > There is also alrady rcu being used in these paths. kfree_rcu() would not > be enough? It is an estalished mechani

RE: [PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-26 Thread Aisheng Dong
> From: Daniel Baluta > Sent: Tuesday, March 26, 2019 5:43 PM > > i.MX8QXP contains a total of 4 EDMA controllers of which two are primarily > for audio components and the other two are for non-audio periperhals. > > This patch adds the EDMA0/EDMA1 nodes used by audio peripherals. > > EDMA0 cont

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

2019-03-26 Thread Sakari Ailus
Hi Andy, Rasmus, Thanks for the comments. On Tue, Mar 26, 2019 at 03:24:50PM +0200, Andy Shevchenko wrote: > On Tue, Mar 26, 2019 at 02:11:35PM +0100, Rasmus Villemoes wrote: > > On 26/03/2019 13.41, Sakari Ailus wrote: > > > Add support for %pfw conversion specifier (with "f" and "P" modifiers)

Re: [LINUX PATCH v13] rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2019-03-26 Thread Helmut Grohne
On Sat, Feb 09, 2019 at 12:07:27PM +0530, Naga Sureshkumar Relli wrote: > +static void pl353_nfc_force_byte_access(struct nand_chip *chip, > + bool force_8bit) > +{ > + struct pl353_nand_controller *xnfc = > + container_of(chip, struct pl353_nand_

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

2019-03-26 Thread Sakari Ailus
Hi Andy, On Tue, Mar 26, 2019 at 03:16:26PM +0200, Andy Shevchenko wrote: > On Tue, Mar 26, 2019 at 02:41:03PM +0200, Sakari Ailus wrote: > > The prefix is used for printing purpose before a node, and it also works > > as a separator between two nodes. > > > > One nit below. > > > +static const

Re: [PATCH] cpu/hotplug: Create SMT sysfs interface for all arches

2019-03-26 Thread Josh Poimboeuf
On Sun, Mar 24, 2019 at 09:13:18PM +0100, Thomas Gleixner wrote: > On Fri, 1 Mar 2019, Josh Poimboeuf wrote: > > Make the /sys/devices/system/cpu/smt/* files available on all arches, so > > user space has a consistent way to detect whether SMT is enabled. > > > > The 'control' file now shows 'nots

Re: [PATCH 2/4] signal: Make flush_sigqueue() use free_q to release memory

2019-03-26 Thread Oleg Nesterov
On 03/25, Christopher Lameter wrote: > > On Fri, 22 Mar 2019, Matthew Wilcox wrote: > > > Only for SLAB and SLUB. SLOB requires that you pass a pointer to the > > slab cache; it has no way to look up the slab cache from the object. > > Well then we could either fix SLOB to conform to the others or

Re: [PATCH] arm64: dts: rockchip: decrease rising edge time of UART2

2019-03-26 Thread Katsuhiro Suzuki
Hello Tony, Robin, I continue to investigate UART TX rising time problem. Recently, I found one of cause of this problem. In my environment, this problem occurred on linux-next only. U-Boot does not face it. So I compared settings between U-Boot and linux-next. After I found GRF_IO_VSEL (address

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

2019-03-26 Thread Sakari Ailus
Hi Andy, On Tue, Mar 26, 2019 at 03:13:53PM +0200, Andy Shevchenko wrote: > On Sun, Mar 24, 2019 at 08:17:46PM +0200, Sakari Ailus wrote: > > On Fri, Mar 22, 2019 at 07:21:14PM +0200, Andy Shevchenko wrote: > > > On Fri, Mar 22, 2019 at 05:29:30PM +0200, Sakari Ailus wrote: > > > > Add support for

[PATCH v2] devantech-srf04.yaml: transform DT binding to YAML

2019-03-26 Thread Andreas Klinger
devantech-srf04.yaml: yaml devicetree binding for iio ultrasonic proximity driver of devantech srf04 use devantech-srf04.txt, transform binding into yaml and remove the outdated DT documentation Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.txt | 28 -

Re: [PATCH v2 2/4] mm/sparse: Optimize sparse_add_one_section()

2019-03-26 Thread Baoquan He
On 03/26/19 at 11:17am, Michal Hocko wrote: > On Tue 26-03-19 18:08:17, Baoquan He wrote: > > On 03/26/19 at 10:29am, Michal Hocko wrote: > > > On Tue 26-03-19 17:02:25, Baoquan He wrote: > > > > Reorder the allocation of usemap and memmap since usemap allocation > > > > is much simpler and easier.

[PATCH] Staging: emxx_udc: emxx_udc: Fixed a coding style error

2019-03-26 Thread Will Cunningham
Removed unnecessary parentheses. Signed-off-by: Will Cunningham --- drivers/staging/emxx_udc/emxx_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index a913d40f0801..80a906742cdc 100644 --- a/dri

Re: [PATCH V3 01/23] perf/x86: Support outputting XMM registers

2019-03-26 Thread Thomas Gleixner
On Tue, 26 Mar 2019, Liang, Kan wrote: > On 3/25/2019 8:11 PM, Thomas Gleixner wrote: > > -#define REG_RESERVED (~((1ULL << PERF_REG_X86_MAX) - 1ULL)) > +#define REG_RESERVED 0 What's the point of having this around? > int perf_reg_validate(u64 mask) > { > if (!mask || mask & REG_RESERVE

Re: [PATCH] KVM: x86: nVMX: allow RSM to restore VMXE CR4 flag

2019-03-26 Thread Vitaly Kuznetsov
Liran Alon writes: >> On 26 Mar 2019, at 15:07, Vitaly Kuznetsov wrote: >> >> Commit 5bea5123cbf0 ("KVM: VMX: check nested state and CR4.VMXE against >> SMM") introduced a check to vmx_set_cr4() forbidding to set VMXE from SMM. >> The check is correct, however, there is a special case when RSM

Re: [RESEND PATCH v6 06/11] mfd: max77650: new core mfd driver

2019-03-26 Thread Bartosz Golaszewski
pt., 22 mar 2019 o 10:12 Pavel Machek napisał(a): > > On Mon 2019-03-18 18:42:23, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Add the core mfd driver for max77650 PMIC. We define five sub-devices > > for which the drivers will be added in subsequent patches. > > > > Signed-of

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

2019-03-26 Thread Katsuhiro Suzuki
Hello Robin, Sorry for inconvenience. Since I don't adhere enabling DMA for UARTs, please revert my patch if you need. BTW, there are DMA properties in RK3328 device-tree like as this patch. RK3328 UART DMA could not work correctly too...?? Best Regards, Katsuhiro Suzuki On 2019/03/26 20:48,

Re: [RFC PATCH v4 0/8] This patch-set is to enable Guest CET support

2019-03-26 Thread Yang Weijiang
On Mon, Mar 18, 2019 at 11:03:43PM +0800, Yang Weijiang wrote: > Control-flow Enforcement Technology (CET) provides protection against > return/jump-oriented programming (ROP) attacks. To make kvm Guest OS own > the capability, this patch-set is required. It enables CET related CPUID > report, xsav

Re: CONFIG_DEBUG_VIRTUAL breaks boot on x86-32

2019-03-26 Thread William Kucharski
Does this still happen on 5.1-rc2? Do you have idea as to what max_low_pfn() gets set to on your system at boot time? From the screen shot I'm guessing it MIGHT be 0x373fe, but it's hard to know for sure. > On Mar 21, 2019, at 2:22 PM, Meelis Roos wrote: > > I tried to debug another problem

Re: [PATCH] cpu/hotplug: Create SMT sysfs interface for all arches

2019-03-26 Thread Thomas Gleixner
On Tue, 26 Mar 2019, Josh Poimboeuf wrote: > On Sun, Mar 24, 2019 at 09:13:18PM +0100, Thomas Gleixner wrote: > > Second thoughts. I'm not really convinced that changing the meaning of > > notsupported and in fact overloading it, is the right thing to do. > > notsupported means now: > > > > CPU

Re: [PATCH V3 01/23] perf/x86: Support outputting XMM registers

2019-03-26 Thread Liang, Kan
On 3/26/2019 9:47 AM, Thomas Gleixner wrote: On Tue, 26 Mar 2019, Liang, Kan wrote: On 3/25/2019 8:11 PM, Thomas Gleixner wrote: -#define REG_RESERVED (~((1ULL << PERF_REG_X86_MAX) - 1ULL)) +#define REG_RESERVED 0 What's the point of having this around? I once thought it may be kept fo

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

2019-03-26 Thread Andy Shevchenko
On Tue, Mar 26, 2019 at 03:39:47PM +0200, Sakari Ailus wrote: > On Tue, Mar 26, 2019 at 03:13:53PM +0200, Andy Shevchenko wrote: > > On Sun, Mar 24, 2019 at 08:17:46PM +0200, Sakari Ailus wrote: > > The patch series by Petr I mentioned takes care about OF case. But it > > doesn't > > have covered

[PATCH v3 2/2] dt-bindings: iio: Add bindings for TI TLA202x ADCs

2019-03-26 Thread Ibtsam Ul-Haq
This adds devicetree bindings for TI TLA202x ADCs. Signed-off-by: Ibtsam Ul-Haq --- .../devicetree/bindings/iio/adc/ti-tla2024.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti-tla2024.txt diff --git a/Document

Re: [PATCH v2 2/4] mm/sparse: Optimize sparse_add_one_section()

2019-03-26 Thread Mike Rapoport
On Tue, Mar 26, 2019 at 09:45:22PM +0800, Baoquan He wrote: > On 03/26/19 at 11:17am, Michal Hocko wrote: > > On Tue 26-03-19 18:08:17, Baoquan He wrote: > > > On 03/26/19 at 10:29am, Michal Hocko wrote: > > > > On Tue 26-03-19 17:02:25, Baoquan He wrote: > > > > > Reorder the allocation of usemap

[PATCH v3 1/2] iio: Add driver for TLA202x ADCs

2019-03-26 Thread Ibtsam Ul-Haq
Basic driver for Texas Instruments TLA202x series ADCs. Input channels are configurable from the device tree. Input scaling is supported. Trigger buffer support is not yet implemented. Signed-off-by: Ibtsam Ul-Haq --- Changes in v3: - Added locking when setting SCALE - Removed deep-indented goto

Re: [PATCH v2] x86/boot: Use EFI setup data if provided

2019-03-26 Thread Borislav Petkov
On Mon, Mar 25, 2019 at 11:10:01PM +, Junichi Nomura wrote: > efi_get_rsdp_addr() and kexec_get_rsdp_addr() could be implemented > like this (sorry about the pseudo code): This doesn't look like what I suggested: > So efi_get_rsdp_addr() needs to be refactored in such a way so that at > least

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

2019-03-26 Thread Michal Hocko
On Sat 23-03-19 12:44:25, Yang Shi wrote: > > With Dave Hansen's patches merged into Linus's tree > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c221c0b0308fd01d9fb33a16f64d2fd95f8830a4 > > PMEM could be hot plugged as NUMA node now. But, how to use PMEM as NUM

Re: [PATCH v2 1/4] ARM: davinci: fix cpufreq registration on da850-evm

2019-03-26 Thread Adam Ford
On Fri, Mar 22, 2019 at 8:31 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > The system_rev variable is never set on davinci and is always 0, so > we're using the default max operating point of 300MHz. The cvdd supply > comes from the tps6507 pmic and the voltage can go all the wa

Re: [PATCH] perf machine: Update kernel map address and re-order properly

2019-03-26 Thread Namhyung Kim
Hello, On Tue, Mar 26, 2019 at 6:12 PM liwei (GF) wrote: > > Hi Arnaldo, > > Please shoot a glance at this modification, i think this issue is influential. > > On 2019/2/28 19:28, Jiri Olsa Wrote: > > On Thu, Feb 28, 2019 at 05:20:03PM +0800, Wei Li wrote: > >> Since commit 1fb87b8e9599 ("perf ma

Re: [PATCH v2 2/4] mm/sparse: Optimize sparse_add_one_section()

2019-03-26 Thread Michal Hocko
On Tue 26-03-19 21:45:22, Baoquan He wrote: > On 03/26/19 at 11:17am, Michal Hocko wrote: > > On Tue 26-03-19 18:08:17, Baoquan He wrote: > > > On 03/26/19 at 10:29am, Michal Hocko wrote: > > > > On Tue 26-03-19 17:02:25, Baoquan He wrote: > > > > > Reorder the allocation of usemap and memmap since

Re: [PATCH v11 6/8] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-03-26 Thread Alexandre Belloni
On 26/03/2019 13:51:40+, Vaittinen, Matti wrote: > On Mon, 2019-03-25 at 18:04 +0100, Alexandre Belloni wrote: > > On 25/03/2019 14:06:42+0200, Matti Vaittinen wrote: > > > Support RTC block in ROHM bd70528 power management IC. Support > > > getting and setting the time and date as well as armi

RE: [PATCH v4 6/6] dt-bindings: fpga: Add bindings for ZynqMP fpga driver

2019-03-26 Thread Nava kishore Manne
Hi Rob, Thanks for the response. Please find my response inline. > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Tuesday, March 26, 2019 12:49 AM > To: Nava kishore Manne > Cc: at...@kernel.org; m...@kernel.org; mark.rutl...@arm.com; Michal Simek > ; Raj

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

2019-03-26 Thread Heikki Krogerus
Hi, On Tue, Mar 26, 2019 at 03:13:53PM +0200, Andy Shevchenko wrote: > > > > On ACPI based systems the resulting strings look like > > > > > > > > \_SB.PCI0.CIO2.port@1.endpoint@0 > > > > > > > > where the nodes are separated by a dot (".") and the first three are > > > > ACPI device nod

Re: [PATCH v11 6/8] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-03-26 Thread Vaittinen, Matti
On Mon, 2019-03-25 at 18:04 +0100, Alexandre Belloni wrote: > On 25/03/2019 14:06:42+0200, Matti Vaittinen wrote: > > Support RTC block in ROHM bd70528 power management IC. Support > > getting and setting the time and date as well as arming an alarm > > which can also be used to wake the PMIC from

Re: [PATCH] libata: fix using DMA buffers on stack

2019-03-26 Thread Jens Axboe
On 3/25/19 9:07 PM, raymond pang wrote: > When CONFIG_VMAP_STACK=y, __pa() returns incorrect physical address for > a stack virtual address. Stack DMA buffers must be avoided. The patch looks fine, but it's white space mangled so it won't apply. Additionally, you don't need to use kzfree, just use

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

2019-03-26 Thread Sakari Ailus
Hi Andy, On Tue, Mar 26, 2019 at 03:55:57PM +0200, Andy Shevchenko wrote: > On Tue, Mar 26, 2019 at 03:39:47PM +0200, Sakari Ailus wrote: > > On Tue, Mar 26, 2019 at 03:13:53PM +0200, Andy Shevchenko wrote: > > > On Sun, Mar 24, 2019 at 08:17:46PM +0200, Sakari Ailus wrote: > > > > The patch seri

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