[PATCH v6 0/9] Support Intel® Turbo Boost Max Technology 3.0

2016-10-20 Thread Tim Chen
With Intel Turbo Boost Max Technology 3.0 (ITMT), single-threaded performance is optimized by identifying processor's fastest core and running critical workloads on it. Refer to: http://www.intel.com/content/www/us/en/architecture-and-technology/turbo-boost/turbo-boost-max-technology.html This pat

[PATCH v6 7/9] acpi: bus: Enable HWP CPPC objects

2016-10-20 Thread Tim Chen
From: Srinivas Pandruvada From: Srinivas Pandruvada Need to set platform wide _OSC bits to enable CPPC and CPPC version 2. If platform supports CPPC, then BIOS exposes CPPC tables. The primary reason to enable CPPC support is to get the maximum performance of each CPU to check and enable Intel

[PATCH v6 4/9] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-10-20 Thread Tim Chen
On platforms supporting Intel Turbo Boost Max Technology 3.0, the maximum turbo frequencies of some cores in a CPU package may be higher than for the other cores in the same package. In that case, better performance (and possibly lower energy consumption as well) can be achieved by making the sche

[PATCH v6 3/9] x86/topology: Define x86's arch_update_cpu_topology

2016-10-20 Thread Tim Chen
The scheduler calls arch_update_cpu_topology() to check whether the scheduler domains have to be rebuilt. So far x86 has no requirement for this, but the upcoming ITMT support makes this necessary. Request the rebuild when the x86 internal update flag is set. Suggested-by: Morten Rasmussen Sign

[PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-20 Thread Tim Chen
Intel Turbo Boost Max Technology 3.0 (ITMT) feature allows some cores to be boosted to higher turbo frequency than others. Add /proc/sys/kernel/sched_itmt_enabled so operator can enable/disable scheduling of tasks that favor cores with higher turbo boost frequency potential. By default, system th

[PATCH v6 8/9] acpi: bus: Set _OSC for diverse core support

2016-10-20 Thread Tim Chen
From: Srinivas Pandruvada From: Srinivas Pandruvada Set the OSC_SB_CPC_DIVERSE_HIGH_SUPPORT (bit 12) to enable diverse core support. This is required to inform BIOS the support of Intel Turbo Boost Max Technology 3.0 feature. Signed-off-by: Srinivas Pandruvada Signed-off-by: Tim Chen --- d

[PATCH v6 9/9] cpufreq: intel_pstate: Use CPPC to get max performance

2016-10-20 Thread Tim Chen
From: "Rafael J. Wysocki" From: Rafael J. Wysocki This change uses acpi cppc_lib interface to get CPPC performance limits and calls scheduler interface to update per cpu highest priority. If there is a difference in highest performance of each CPUs, call scheduler interface to enable ITMT featu

[PATCH v6 6/9] x86/sched: Add SD_ASYM_PACKING flags to x86 ITMT CPU

2016-10-20 Thread Tim Chen
Some Intel cores in a package can be boosted to a higher turbo frequency with ITMT 3.0 technology. The scheduler can use the asymmetric packing feature to move tasks to the more capable cores. If ITMT is enabled, add SD_ASYM_PACKING flag to the thread and core sched domains to enable asymmetric pa

Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen

2016-10-20 Thread Andrew Cooper
On 20/10/2016 10:14, Haozhong Zhang wrote: > > >> Once dom0 has a mapping of the nvdimm, the nvdimm driver can go to >> work >> and figure out what is on the DIMM, and which areas are safe to use. > I don't understand this ordering of events. Dom0 needs to have a > mapping

Ahoj....

2016-10-20 Thread Ko M. Leung
Ahoj. Dobry vecer a jak se mas? Jen rychly jedno, je tu oficialni prilezitosti bych chtel diskutovat s vami soukrome. Ocenil bych vasi rychlou reakci tady na mem osobnim soukromeho e-mailu nize pro dalsi komunikaci. S pratelskym pozdravem, Paní Ko May Leung email: kmyln...@gmail.com M

[PATCH] Input: gpio_keys_polled - fix DT node reference leak

2016-10-20 Thread Dmitry Torokhov
When someone requests button with wakeup (which this driver does not support) we should drop reference to the current child device node before returning error. Note that when we using legacy platform data 'child' stays NULL which fwnode_handle_put() handles just fine. Signed-off-by: Dmitry Torokh

Re: [PATCH v2] pinctrl: Add SX150X GPIO Extender Pinctrl Driver

2016-10-20 Thread Linus Walleij
On Tue, Sep 27, 2016 at 5:48 PM, Neil Armstrong wrote: > Since the I2C sx150x GPIO expander driver uses platform_data to manage > the pins configurations, rewrite the driver as a pinctrl driver using > pinconf to get/set pin configurations from DT or debugfs. > > The pinctrl driver is functionnal

[GIT PULL] Power management fix for v4.9-rc2

2016-10-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.9-rc2 with top-most commit 350d32395bee1a21deec504a253b336e20d9f35a Merge branch 'pm-cpufreq' on top of commit 1001354ca34179f3db924eb66672442a173147dc Linux 4.9-rc1 to receive an

Re: [PATCH 07/10] gpio: ptxpmb-cpld: Add support for PTXPMB CPLD's GPIO

2016-10-20 Thread Linus Walleij
On Fri, Oct 7, 2016 at 5:17 PM, Pantelis Antoniou wrote: > From: Guenter Roeck > > Support the GPIO block which is located in PTXPMB CPLDs > on relevant Juniper platforms. > > Signed-off-by: Georgi Vlaev > Signed-off-by: Guenter Roeck > Signed-off-by: Rajat Jain > [Ported from Juniper kernel]

linux-next: build failure after merge of the net tree

2016-10-20 Thread Stephen Rothwell
t;) I used the version of the net tree from next-20161020 for today. -- Cheers, Stephen Rothwell

Re: [PATCH] watchdog: meson: Remove unneeded platform MODULE_ALIAS

2016-10-20 Thread Guenter Roeck
On Wed, Oct 19, 2016 at 04:49:42PM -0300, Javier Martinez Canillas wrote: > The Amlogic Meson is a DT-only platform, which means the devices are > registered via OF and not using the legacy platform devices support. > > So there's no need to have a MODULE_ALIAS("platform:meson-gxbb-wdt") > since t

Re: [PATCH 3/5] lib: radix-tree: native accounting and tracking of special entries

2016-10-20 Thread Dave Chinner
On Wed, Oct 19, 2016 at 01:24:26PM -0400, Johannes Weiner wrote: > Add an internal tag to identify special entries that are accounted in > node->special in addition to node->count. > > With this in place, the next patch can restore refault detection in > single-page files. It will also move the sh

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

2016-10-20 Thread Florian Fainelli
> > 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd > kernels") > > I used the version of the net tree from next-20161020 for today. OK, seems like we need an ifdef CONFIG_KEXEC_CORE, let me fix that. Thanks Stephen! -- Florian

Re: [PATCH v6] powerpc: Do not make the entire heap executable

2016-10-20 Thread Jason Gunthorpe
On Tue, Oct 04, 2016 at 09:54:12AM -0700, Kees Cook wrote: > On Mon, Oct 3, 2016 at 5:18 PM, Michael Ellerman wrote: > > Kees Cook writes: > > > >> On Mon, Oct 3, 2016 at 9:13 AM, Denys Vlasenko wrote: > >>> On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, > >>> or with

Re: [PATCH] shmem: avoid huge pages for small files

2016-10-20 Thread Dave Chinner
On Thu, Oct 20, 2016 at 01:39:46PM +0300, Kirill A. Shutemov wrote: > On Wed, Oct 19, 2016 at 11:13:54AM -0700, Hugh Dickins wrote: > > On Tue, 18 Oct 2016, Michal Hocko wrote: > > > On Tue 18-10-16 17:32:07, Kirill A. Shutemov wrote: > > > > On Tue, Oct 18, 2016 at 04:20:07PM +0200, Michal Hocko w

[PATCH] x86/vmware: Read tsc_khz only once - at boot time

2016-10-20 Thread Alexey Makhalov
Re-factor the vmware platform setup code to query the hypervisor for tsc frequency only once during boot. Since the VMware hypervisor guarantees constant TSC, calibrate_tsc now uses the saved value. Signed-off-by: Alexey Makhalov Acked-by: Alok N Kataria --- arch/x86/kernel/cpu/vmware.c | 37 ++

Re: bio linked list corruption.

2016-10-20 Thread Dave Jones
On Tue, Oct 18, 2016 at 05:28:44PM -0700, Linus Torvalds wrote: > On Tue, Oct 18, 2016 at 5:10 PM, Linus Torvalds > wrote: > > > > Adding Andy to the cc, because this *might* be triggered by the > > vmalloc stack code itself. Maybe the re-use of stacks showing some > > problem? Maybe Chris (

Re: bio linked list corruption.

2016-10-20 Thread Dave Jones
On Tue, Oct 18, 2016 at 06:05:57PM -0700, Andy Lutomirski wrote: > One possible debugging approach would be to change: > > #define NR_CACHED_STACKS 2 > > to > > #define NR_CACHED_STACKS 0 > > in kernel/fork.c and to set CONFIG_DEBUG_PAGEALLOC=y. The latter will > force an immediate

Re: [-next, 1/2] Input: synaptics-rmi4 - add support for F55 sensor tuning

2016-10-20 Thread Nick Dyer
On Mon, Oct 17, 2016 at 02:30:08PM -0700, Guenter Roeck wrote: > On Fri, Sep 30, 2016 at 08:22:47PM -0700, Guenter Roeck wrote: > > Sensor tuning support is needed to determine the number of enabled > > tx and rx electrodes for use in F54 functions. > > > > The number of enabled electrodes is not

Re: [PATCH v3 3/6] pwm: imx: support output polarity inversion

2016-10-20 Thread Stefan Agner
On 2016-10-20 01:30, Lukasz Majewski wrote: > Hi Stefan, > >> Hi Stefan, >> >> > On 2016-10-12 15:15, Lukasz Majewski wrote: >> > > Hi Stefan, >> > > >> > >> On 2016-10-07 08:11, Bhuvanchandra DV wrote: >> > >> > From: Lothar Wassmann >> > >> > >> > >> > The i.MX pwm unit on i.MX27 and newer SoCs

About configuring the PCIe device MPS

2016-10-20 Thread Ray Jui
Hi Bjorn, Alex Barba (CCed in the email thread) from Broadcom discovered that PCIe endpoint devices attached to our ARM64 based iProc platforms are not configured to their optimal MPS size. Through some digging in the PCIe stack of the kernel, I found that: 1. For ARM32 based PCIe core code,

Re: [RFC] fs/proc/meminfo: introduce Unaccounted statistic

2016-10-20 Thread Dave Chinner
On Thu, Oct 20, 2016 at 03:33:58PM +0200, Michal Hocko wrote: > On Thu 20-10-16 14:11:49, Vlastimil Babka wrote: > [...] > > Hi, I'm wondering if people would find this useful. If you think it is, and > > to not make performance worse, I could also make sure in proper submission > > that values are

Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks

2016-10-20 Thread Stephen Boyd
On 10/11, Orson Zhai wrote: > From: Xiaolong Zhang > > When common kernel setups fixed clock, of_clk_provider will be registerred. > But there is no clkdev being registerred at the same time. This will make > it difficult to get the clock by using clk_get(NULL, con_id). > > Add clkdev register f

Re: bio linked list corruption.

2016-10-20 Thread Andy Lutomirski
On Thu, Oct 20, 2016 at 3:50 PM, Dave Jones wrote: > On Tue, Oct 18, 2016 at 06:05:57PM -0700, Andy Lutomirski wrote: > > > One possible debugging approach would be to change: > > > > #define NR_CACHED_STACKS 2 > > > > to > > > > #define NR_CACHED_STACKS 0 > > > > in kernel/fork.c and to

Re: [GIT PULL 00/52] New Tool: perf c2c

2016-10-20 Thread Kim Phillips
On Thu, 20 Oct 2016 12:03:44 -0300 Arnaldo Carvalho de Melo wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-c2c-for-mingo-20161020 Running this as a normal user may not be the best thing to do, but I'm pretty sure the TUI c2c report should

Re: bio linked list corruption.

2016-10-20 Thread Dave Jones
On Thu, Oct 20, 2016 at 04:01:12PM -0700, Andy Lutomirski wrote: > On Thu, Oct 20, 2016 at 3:50 PM, Dave Jones wrote: > > On Tue, Oct 18, 2016 at 06:05:57PM -0700, Andy Lutomirski wrote: > > > > > One possible debugging approach would be to change: > > > > > > #define NR_CACHED_STACKS 2

Re: [PATCH 05/10] gpio: Introduce SAM gpio driver

2016-10-20 Thread Linus Walleij
n Fri, Oct 7, 2016 at 5:18 PM, Pantelis Antoniou wrote: > From: Guenter Roeck > > The SAM GPIO IP block is present in the Juniper PTX series > of routers as part of the SAM FPGA. > > Signed-off-by: Georgi Vlaev > Signed-off-by: Guenter Roeck > Signed-off-by: Rajat Jain > [Ported from Juniper

Re: [PATCH 1/2] x86/dumpstack: on oops do not rewind stack for kthread

2016-10-20 Thread Andy Lutomirski
On Wed, Sep 21, 2016 at 8:43 AM, Roman Pen wrote: > kthread uses stack and keeps completion structure on it to be woken up > on vfork_done completion. > > In commit 2deb4be28 Andy Lutomirski rewinds the stack unconditionally > and further completion of task->vfork_done for any kthread leads to sta

Re: [PATCH 2/2] sched: do not call workqueue sleep hook if task is already dead

2016-10-20 Thread Andy Lutomirski
On Wed, Sep 21, 2016 at 8:43 AM, Roman Pen wrote: > If panic_on_oops is not set and oops happens inside workqueue kthread, > kernel kills this kthread. Current patch fixes recursive GPF which > happens in that case with the following stack: Oleg, can you take a look at this? --Andy > > [] du

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-20 Thread Janani Ravichandran
Michal, > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > >> > > yes, function_graph tracer will give you _some_ information but it will > not have the context you are looking for, right? See the following > example > > -- > 0) x-www-b-22756 => x-t

[PATCH v2 1/4] arm64: dts: msm8996: Add SMEM reserve-memory node

2016-10-20 Thread Sarangdhar Joshi
Add DT node to carveout memory for shared memory region. Reviewed-by: Bjorn Andersson Signed-off-by: Sarangdhar Joshi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8

[PATCH v2 0/4] MSM8996 DT Support for ADSP PIL

2016-10-20 Thread Sarangdhar Joshi
Add various device tree nodes to lay the groundwork for Qualcomm ADSP Peripheral Image Loader. Sorry, I didn't send any cover letter for v1. Changes since v1: - Move hwlock DT node under root (/) (Bjorn and Andy) - Rename smp2p-adsp to adsp-smp2p (Bjorn) - Remove interrupt-parent property from no

[PATCH v2 2/4] arm64: dts: msm8996: Add reserve-memory nodes

2016-10-20 Thread Sarangdhar Joshi
Add reserve-memory nodes required for Qualcomm Peripheral Image Loaders Acked-by: Bjorn Andersson Signed-off-by: Sarangdhar Joshi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arc

[PATCH v2 3/4] arm64: dts: msm8996: Add SMEM DT nodes

2016-10-20 Thread Sarangdhar Joshi
From: Bjorn Andersson Add SMEM and TCSR DT nodes on MSM8996. Signed-off-by: Bjorn Andersson Signed-off-by: Sarangdhar Joshi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/bo

[PATCH v2 4/4] arm64: dts: msm8996: Add SMP2P and APCS nodes

2016-10-20 Thread Sarangdhar Joshi
Add SMP2P and APCS DT nodes required for Qualcomm ADSP Peripheral Image Loader. Acked-by: Bjorn Andersson Signed-off-by: Sarangdhar Joshi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996

Re: [PATCH v5 23/23] phy: Add support for Qualcomm's USB HS phy

2016-10-20 Thread Stephen Boyd
Quoting Stephen Boyd (2016-10-17 18:56:36) > + > +static int > +qcom_usb_hs_phy_vbus_notifier(struct notifier_block *nb, unsigned long event, > + void *ptr) > +{ > + struct qcom_usb_hs_phy *uphy; > + int is_host; > + u8 addr; > + > + uphy = contai

Re: bio linked list corruption.

2016-10-20 Thread Andy Lutomirski
On Thu, Oct 20, 2016 at 4:03 PM, Dave Jones wrote: > On Thu, Oct 20, 2016 at 04:01:12PM -0700, Andy Lutomirski wrote: > > On Thu, Oct 20, 2016 at 3:50 PM, Dave Jones > wrote: > > > On Tue, Oct 18, 2016 at 06:05:57PM -0700, Andy Lutomirski wrote: > > > > > > > One possible debugging approach

[PATCH v2 0/8] mm/swap: Regular page swap optimizations

2016-10-20 Thread Tim Chen
We appreciate feedback about this patch series from the community. Historically, neither the performance nor latency of the swap path mattered. The underlying I/O was slow enough to hide any latency coming from software and the low IOPS kept the overall CPU impact low. Times have changed. Comin

[PATCH v2 4/8] mm/swap: skip read ahead for unreferenced swap slots

2016-10-20 Thread Tim Chen
We can avoid needlessly allocating page for swap slots that are not used by anyone. No pages have to be read in for these slots. Signed-off-by: Tim Chen Signed-off-by: "Huang, Ying" --- include/linux/swap.h | 6 ++ mm/swap_state.c | 4 mm/swapfile.c| 47 +

[PATCH v2 5/8] mm/swap: Allocate swap slots in batches

2016-10-20 Thread Tim Chen
Currently, the swap slots are allocated one page at a time, causing contention to the swap_info lock protecting the swap partition on every page being swapped. This patch adds new functions get_swap_pages and scan_swap_map_slots to request multiple swap slots at once. This will reduces the lock co

[PATCH v2 3/8] mm/swap: Split swap cache into 64MB trunks

2016-10-20 Thread Tim Chen
From: "Huang, Ying" The patch is to improve the scalability of the swap out/in via using fine grained locks for the swap cache. In current kernel, one address space will be used for each swap device. And in the common configuration, the number of the swap device is very small (one is typical).

[PATCH v2 7/8] mm/swap: Add cache for swap slots allocation

2016-10-20 Thread Tim Chen
We add per cpu caches for swap slots that can be allocated and freed quickly without the need to touch the swap info lock. Two separate caches are maintained for swap slots allocated and swap slots returned. This is to allow the swap slots to be returned to the global pool in a batch so they will

Re: [PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-20 Thread Dave Chinner
On Wed, Oct 19, 2016 at 12:48:14PM -0600, Stephen Bates wrote: > On Tue, Oct 18, 2016 at 08:51:15PM -0700, Dan Williams wrote: > > [ adding Ashok and David for potential iommu comments ] > > > > Hi Dan > > Thanks for adding Ashok and David! > > > > > I agree with the motivation and the need for

[PATCH v2 2/8] mm/swap: Add cluster lock

2016-10-20 Thread Tim Chen
From: "Huang, Ying" This patch is to reduce the lock contention of swap_info_struct->lock via using a more fine grained lock in swap_cluster_info for some swap operations. swap_info_struct->lock is heavily contended if multiple processes reclaim pages simultaneously. Because there is only one l

[PATCH v2 6/8] mm/swap: Free swap slots in batch

2016-10-20 Thread Tim Chen
Add new functions that free unused swap slots in batches without the need to reacquire swap info lock. This improves scalability and reduce lock contention. Signed-off-by: Tim Chen Signed-off-by: "Huang, Ying" --- include/linux/swap.h | 1 + mm/swapfile.c| 155 +++

[PATCH v2 8/8] mm/swap: Enable swap slots cache usage

2016-10-20 Thread Tim Chen
Initialize swap slots cache and enable it on swap on. Drain swap slots on swap off. Signed-off-by: Tim Chen --- mm/swapfile.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index caf9fe6..e98c725 100644 --- a/mm/swapfile.c +++ b/m

[PATCH v2 1/8] mm/swap: Fix kernel message in swap_info_get()

2016-10-20 Thread Tim Chen
From: "Huang, Ying" swap_info_get() is used not only in swap free code path but also in page_swapcount(), etc. So the original kernel message in swap_info_get() is not correct now. Fix it via replacing "swap_free" to "swap_info_get" in the message. Signed-off-by: "Huang, Ying" Signed-off-by:

Re: [PATCH v3 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-20 Thread Doug Anderson
Hi, On Thu, Oct 20, 2016 at 2:25 PM, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Douglas Anderson wrote: >> - An effort was made to look for users relying on the old behavior by >> looking for usleep_range() in the same file as wake_up_process(). >> No problems was found by this search, tho

Re: [PATCH v4 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-20 Thread Doug Anderson
Hi, On Thu, Oct 20, 2016 at 2:27 PM, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Douglas Anderson wrote: > > Please wait for a full review and do not send out patches 5 seconds after > the first mail hits your inbox. Since you had previously commented on patch 1 and had already commented on pa

Re: [-next, 1/2] Input: synaptics-rmi4 - add support for F55 sensor tuning

2016-10-20 Thread Christopher Heiny
On Thu, 2016-10-20 at 23:51 +0100, Nick Dyer wrote: > On Mon, Oct 17, 2016 at 02:30:08PM -0700, Guenter Roeck wrote: > > > > On Fri, Sep 30, 2016 at 08:22:47PM -0700, Guenter Roeck wrote: > > > > > > Sensor tuning support is needed to determine the number of > > > enabled > > > tx and rx electrod

Re: [PATCH 1/8] vfs - change d_manage() to take a struct path

2016-10-20 Thread Ian Kent
On Wed, 2016-10-19 at 12:40 -0700, Andrew Morton wrote: > On Tue, 11 Oct 2016 13:33:52 +0800 Ian Kent wrote: > > > For the autofs module to be able to reliably check if a dentry is a > > mountpoint in a multiple namespace environment the ->d_manage() dentry > > operation will need to take a path

linux-next: manual merge of the net-next tree with the net tree

2016-10-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/ibm/ibmvnic.c between commit: 87737f8810db ("ibmvnic: Update MTU after device initialization") from the net tree and commit: d894be57ca92 ("ethernet: use net core MTU range checking in more dri

Re: [PATCH v2] clk: at91: Fix a return value in case of error

2016-10-20 Thread Stephen Boyd
On 09/25, Christophe JAILLET wrote: > If 'clk_hw_register()' fails, it is likely that we expect to return an > error instead of a valid pointer (which would mean success). > > Fix commit f5644f10dcfb ("clk: at91: Migrate to clk_hw based registration > and OF APIs") > > Signed-off-by: Christophe J

Re: [PATCH] remoteproc: Add support for xo clock

2016-10-20 Thread Stephen Boyd
On 10/20, Sarangdhar Joshi wrote: > Add xo clock support required for Qualcomm ADSP > Peripheral Image Loader. Yes but why is xo needed? > @@ -223,6 +232,17 @@ static irqreturn_t adsp_stop_ack_interrupt(int irq, void > *dev) > return IRQ_HANDLED; > } > > +static int adsp_init_clock(stru

Re: [PATCH v2 3/4] arm64: dts: msm8996: Add SMEM DT nodes

2016-10-20 Thread Stephen Boyd
On 10/20, Sarangdhar Joshi wrote: > From: Bjorn Andersson > > Add SMEM and TCSR DT nodes on MSM8996. > > Signed-off-by: Bjorn Andersson > Signed-off-by: Sarangdhar Joshi > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git

[PATCH] perf c2c report: Properly check data presence in rb_tree loop

2016-10-20 Thread Jiri Olsa
On Thu, Oct 20, 2016 at 06:02:24PM -0500, Kim Phillips wrote: SNIP > (gdb) bt > #0 c2c_browser__update_nr_entries (hb=, hb=) > at builtin-c2c.c:2142 > #1 perf_c2c__hists_browse (hists=0x8b2d90 ) at builtin-c2c.c:2287 > #2 perf_c2c_display (session=0x205b1a0) at builtin-c2c.c:2316 > #3 perf_c

Re: [GIT PULL 00/52] New Tool: perf c2c

2016-10-20 Thread Jiri Olsa
On Thu, Oct 20, 2016 at 06:02:24PM -0500, Kim Phillips wrote: > On Thu, 20 Oct 2016 12:03:44 -0300 > Arnaldo Carvalho de Melo wrote: > > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > > tags/perf-c2c-for-mingo-20161020 > > Running this as a norm

Re: [PATCH v2 2/6] perf report: Caculate and return the branch counting in callchain

2016-10-20 Thread Jin, Yao
Hi Andi, Hi Nilay, Thanks so much for your comments! I will upgrade the patch to just display the count for abort. Thanks Jin Yao On 10/21/2016 2:20 AM, Andi Kleen wrote: OK, I am more confused now. Are you predicting some quantity related to transactions? Why would you divide abort count

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

2016-10-20 Thread Florian Fainelli
_progress" [drivers/net/dsa/bcm_sf2.ko] undefined! >> >> Caused by commit >> >> 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd >> kernels") >> >> I used the version of the net tree from next-20161020 for today. > >

Re: [linux-sunxi] [PATCH v5 3/4] Documentation: devicetree: add vendor prefix for Pine64

2016-10-20 Thread Jonathan Liu
On 21 October 2016 at 05:00, Maxime Ripard wrote: > From: Andre Przywara > > Signed-off-by: Andre Przywara > Acked-by: Rob Herring > Acked-by: Chen-Yu Tsai > [Maxime: Change title prefix to match the usual style] > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/vendor

Re: [PATCH 2/6] mm: mark all calls into the vmalloc subsystem as potentially sleeping

2016-10-20 Thread Joel Fernandes
Hi Christoph, On Wed, Oct 19, 2016 at 9:31 AM, Christoph Hellwig wrote: > On Wed, Oct 19, 2016 at 08:34:40AM -0700, Andy Lutomirski wrote: >> >> It would be quite awkward for a task stack to get freed from a >> sleepable context, because the obvious sleepable context is the task >> itself, and it

Re: [PATCH 10/10] fault injection: inject faults in new/rare callchains

2016-10-20 Thread Akinobu Mita
2016-10-17 0:56 GMT+09:00 Vegard Nossum : > Before this patch, fault injection uses a combination of randomness and > frequency to determine where to inject faults. The problem with this is > that code paths which are executed very rarely get proportional amounts > of faults injected. > > A better

Re: [PATCH 6/8] pinctrl: aspeed-g4: Capture SuperIO pinmux dependency

2016-10-20 Thread Andrew Jeffery
Hi Linus, On Thu, 2016-10-20 at 13:53 +0200, Linus Walleij wrote: > On Tue, Sep 27, 2016 at 4:50 PM, Andrew Jeffery > wrote: > > > > > Two LPC-related signals in the AST2400 depend on state in the > > SuperIO IP > > block. Use the recently added infrastructure to capture this > > relationship.

Re: [RESEND PATCH v2 1/4] usb: dbc: early driver for xhci debug capability

2016-10-20 Thread Lu Baolu
Hi Peter, On 10/20/2016 05:08 PM, Peter Zijlstra wrote: > On Thu, Oct 20, 2016 at 10:41:32AM +0200, Peter Zijlstra wrote: >> I'm already only using early_printk() because regular printk() is an >> unfixable piece of crap, and now you're making early_printk() useless >> too. > Note that the existin

Re: [RESEND PATCH v2 4/4] usb: doc: add document for USB3 debug port usage

2016-10-20 Thread Lu Baolu
Hi, On 10/20/2016 04:30 PM, Jani Nikula wrote: > On Thu, 20 Oct 2016, Lu Baolu wrote: >> Hi Jani, >> >> On 10/19/2016 03:48 PM, Jani Nikula wrote: >>> On Wed, 19 Oct 2016, Lu Baolu wrote: Add Documentation/usb/usb3-debug-port.txt. This document includes the user guide for USB3 debug po

Re: [RFC][PATCH 2/2] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-10-20 Thread Chen Yu
On 2016/10/19 6:21, John Youn wrote: > On 10/16/2016 7:42 PM, Chen Yu wrote: >> >> >> On 2016/10/15 3:37, John Youn wrote: >>> On 10/13/2016 4:36 PM, John Stultz wrote: From: Chen Yu The Hi6220's usb controller is limited in that it does not automatically autonegotiate the usb

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

2016-10-20 Thread Stephen Rothwell
gt;> multi_v7_defconfig) failed like this: > >> > >> ERROR: "kexec_in_progress" [drivers/net/dsa/bcm_sf2.ko] undefined! > >> > >> Caused by commit > >> > >> 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd

Re: [PATCH 4/6] mm: remove free_unmap_vmap_area_addr

2016-10-20 Thread Joel Fernandes
Hi Christoph, On Mon, Oct 17, 2016 at 11:56 PM, Christoph Hellwig wrote: > Just inline it into the only caller. > > Signed-off-by: Christoph Hellwig > --- > mm/vmalloc.c | 21 - > 1 file changed, 8 insertions(+), 13 deletions(-) > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c >

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

2016-10-20 Thread Florian Fainelli
gt; >>>> 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd >>>> kernels") >>>> >>>> I used the version of the net tree from next-20161020 for today. >>> >>> OK, seems like we need an ifdef CONFIG

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Sedat Dilek
On Thu, Oct 20, 2016 at 4:32 PM, Rafael J. Wysocki wrote: > On Thursday, October 20, 2016 04:20:44 PM Sedat Dilek wrote: >> On Thu, Oct 20, 2016 at 1:15 PM, Rafael J. Wysocki >> wrote: >> > On Thursday, October 20, 2016 09:41:34 AM Sedat Dilek wrote: >> >> On Wed, Oct 19, 2016 at 10:55 PM, Rafae

Re: [PATCH V3 1/3] ACPI, PCI IRQ: add PCI_USING penalty for ISA interrupts

2016-10-20 Thread Bjorn Helgaas
On Thu, Oct 20, 2016 at 01:17:23AM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 20, 2016 at 12:44 AM, Bjorn Helgaas wrote: > > On Tue, Oct 18, 2016 at 08:32:44AM -0700, Sinan Kaya wrote: > >> Sorry, I think I didn't have enough morning coffee. > >> > >> Looking at these again and trying to be spe

Re: [PATCH] kernel: irq: fix build failure

2016-10-20 Thread Stephen Rothwell
Hi Thomas, On Thu, 20 Oct 2016 14:55:45 +0200 (CEST) Thomas Gleixner wrote: > > On Mon, 10 Oct 2016, Sudip Mukherjee wrote: > > > On Thursday 06 October 2016 11:06 PM, Sudip Mukherjee wrote: > > > The allmodconfig build of powerpc is failing with the error: > > > ERROR: ".irq_set_parent" [dri

Re: [kernel-hardening] [PATCH] module: extend 'rodata=off' boot cmdline parameter to module mappings

2016-10-20 Thread AKASHI Takahiro
On Thu, Oct 20, 2016 at 01:48:15PM -0700, Kees Cook wrote: > On Wed, Oct 19, 2016 at 11:24 PM, AKASHI Takahiro > wrote: > > The current "rodata=off" parameter disables read-only kernel mappings > > under CONFIG_DEBUG_RODATA: > > commit d2aa1acad22f ("mm/init: Add 'rodata=off' boot cmdline para

[PATCH v2] module: extend 'rodata=off' boot cmdline parameter to module mappings

2016-10-20 Thread AKASHI Takahiro
The current "rodata=off" parameter disables read-only kernel mappings under CONFIG_DEBUG_RODATA: commit d2aa1acad22f ("mm/init: Add 'rodata=off' boot cmdline parameter to disable read-only kernel mappings") This patch is a logical extension to module mappings ie. read-only mappings at modu

Re: [RFC] reduce latency in __purge_vmap_area_lazy

2016-10-20 Thread Joel Fernandes
On Mon, Oct 17, 2016 at 11:56 PM, Christoph Hellwig wrote: > Hi all, > > this is my spin at sorting out the long lock hold times in > __purge_vmap_area_lazy. It is based on the patch from Joel sent this > week. I don't have any good numbers for it, but it survived an > xfstests run on XFS which

[PATCH] kexec: Export kexec_in_progress to modules

2016-10-20 Thread Florian Fainelli
The bcm_sf2 driver uses kexec_in_progress to know whether it can power down an integrated PHY during shutdown, and can be built as a module. Other modules may be using this in the future, so export it. Fixes: 2399d6143f85 ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd kernels") Signed-off

linux-next: manual merge of the staging tree with the net-next tree

2016-10-20 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/wlan-ng/p80211netdev.c between commit: 9c22b4a34edd ("net: use core MTU range checking in wireless drivers") from the net-next tree and commit: 84ad1efa7d2b ("staging: wlan-ng: fix block comment war

Re: [PATCH v7 3/5] ARM: dts: imx6qdl-icore: Add usbhost support

2016-10-20 Thread Shawn Guo
On Fri, Oct 14, 2016 at 02:57:21PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Add usbhost support for Engicam i.CoreM6 dql modules. > > Cc: Sascha Hauer > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Matteo Lisi > Cc: Michael Trimarchi > Signed-off-by: Jagan Teki > --- > Changes for v7: >

Re: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-20 Thread Boqun Feng
On Thu, Oct 20, 2016 at 05:27:54PM -0400, Pan Xinhui wrote: > Commit ("x86, kvm: support vcpu preempted check") add one field "__u8 > preempted" into struct kvm_steal_time. This field tells if one vcpu is > running or not. > > It is zero if 1) some old KVM deos not support this filed. 2) the vcpu

[RFC][PATCH v3] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-10-20 Thread John Stultz
This patch adds logic to allows a process to migrate other tasks between cgroups if they have CAP_SYS_RESOURCE. In Android (where this feature originated), the ActivityManager tracks various application states (TOP_APP, FOREGROUND, BACKGROUND, SYSTEM, etc), and then as applications change states,

Re: [PATCH v7 4/5] ARM: dts: imx6qdl-icore: Add usbotg support

2016-10-20 Thread Shawn Guo
On Fri, Oct 14, 2016 at 02:57:22PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Add usbotg support for Engicam i.CoreM6 dql modules. > > Cc: Sascha Hauer > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Matteo Lisi > Cc: Michael Trimarchi > Signed-off-by: Jagan Teki > --- > Changes for v7: >

Re: [PATCH v7 5/5] ARM: dts: imx6qdl-icore: Add FEC support

2016-10-20 Thread Shawn Guo
On Fri, Oct 14, 2016 at 02:57:23PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Add FEC support for Engicam i.CoreM6 dql modules. > > Observed similar 'eth0: link is not ready' issue which was > discussed in [1] due rmii mode with external ref_clk, so added > clock node along with the propert

Re: [PATCH v7 0/5] ARM: dts: imx6q: Add Engicam i.CoreM6 dts

2016-10-20 Thread Shawn Guo
On Tue, Oct 18, 2016 at 05:30:28PM +0530, Jagan Teki wrote: > Hi Shawn, > > On Fri, Oct 14, 2016 at 2:57 PM, Jagan Teki wrote: > > This is series add dts support for Engicam I.Core M6 qdl modules. just > > rebased on top of linux-next of previous set[1]. > > > > [1] http://www.spinics.net/lists/k

Re: [PATCH V4 1/3] ACPI, PCI, IRQ: assign ISA IRQ directly during early boot stages

2016-10-20 Thread Bjorn Helgaas
On Wed, Oct 19, 2016 at 06:21:02PM -0400, Sinan Kaya wrote: > The penalty determination of ISA IRQ goes through 4 paths. > 1. assign PCI_USING during power up via acpi_irq_penalty_init. > 2. update the penalty with acpi_penalize_isa_irq function based on the > active parameter. > 3. kernel command

Re: [PATCH 2/3] clk: hisilicon: add CRG driver for Hi3516CV300 SoC

2016-10-20 Thread Jiancheng Xue
在 2016/10/21 1:48, Stephen Boyd 写道: > On 10/19, Jiancheng Xue wrote: >> >> I'm pretty sure that the patch was sent to the DT list >> devicet...@vger.kernel.org. >> You had asked a question about "hi3798cv200-sysctrl" and I replied >> (https://lkml.org/lkml/2016/10/10/517). >> I'm waiting for yo

Re: [PATCH] kexec: Export kexec_in_progress to modules

2016-10-20 Thread David Miller
From: Florian Fainelli Date: Thu, 20 Oct 2016 18:15:16 -0700 > The bcm_sf2 driver uses kexec_in_progress to know whether it can power > down an integrated PHY during shutdown, and can be built as a module. > Other modules may be using this in the future, so export it. > > Fixes: 2399d6143f85 ("n

[RESEND PATCH v2] clk: hisilicon: add CRG driver for Hi3798CV200 SoC

2016-10-20 Thread Jiancheng Xue
Add CRG driver for Hi3798CV200 SoC. CRG(Clock and Reset Generator) module generates clock and reset signals used by other module blocks on SoC. Signed-off-by: Jiancheng Xue --- change log v2: - Fixed compiling error when compiled as a module. - Fixed issues pointed by Stephen Boyd. - Added prefix

Re: [PATCH V4 2/3] Revert "ACPI,PCI,IRQ: remove SCI penalize function"

2016-10-20 Thread Bjorn Helgaas
On Wed, Oct 19, 2016 at 06:21:03PM -0400, Sinan Kaya wrote: > The SCI penalize function was removed in two steps (first refactor > and then remove) and these changes are reverted here in one go. > > The commit 103544d86976 ("ACPI,PCI,IRQ: reduce resource requirements") > refactored the original co

Re: [PATCH 4/6] mm: remove free_unmap_vmap_area_addr

2016-10-20 Thread Nicholas Piggin
On Thu, 20 Oct 2016 17:46:36 -0700 Joel Fernandes wrote: > > @@ -1100,10 +1091,14 @@ void vm_unmap_ram(const void *mem, unsigned int > > count) > > debug_check_no_locks_freed(mem, size); > > vmap_debug_free_range(addr, addr+size); > > > > - if (likely(count <= VMAP_MAX_ALLO

Re: [PATCH] shmem: avoid huge pages for small files

2016-10-20 Thread Andi Kleen
> Ugh, no, please don't use mount options for file specific behaviours > in filesystems like ext4 and XFS. This is exactly the sort of > behaviour that should either just work automatically (i.e. be > completely controlled by the filesystem) or only be applied to files Can you explain what you mea

[PATCH 1/2] PCI: hisi: add PCIe driver support for HiSilicon STB SoCs

2016-10-20 Thread Ruqiang Ju
Add PCIe controller drvier for HiSilicon STB SoCs, the controller is based on the DesignWare's PCIe core. Signed-off-by: Ruqiang Ju --- .../bindings/pci/hisilicon-histb-pcie.txt | 66 +++ drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile

Re: [PATCH v5 11/23] usb: chipidea: Emulate OTGSC interrupt enable path

2016-10-20 Thread Peter Chen
On Thu, Oct 20, 2016 at 01:36:30PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-10-20 03:10:18) > > On Wed, Oct 19, 2016 at 11:55:29PM -0700, Stephen Boyd wrote: > > > Quoting Peter Chen (2016-10-19 01:02:11) > > > > On Tue, Oct 18, 2016 at 06:53:07PM -0700, Stephen Boyd wrote: > > > > > I

Re: [PATCH v5 23/23] phy: Add support for Qualcomm's USB HS phy

2016-10-20 Thread Peter Chen
On Thu, Oct 20, 2016 at 04:20:38PM -0700, Stephen Boyd wrote: > Quoting Stephen Boyd (2016-10-17 18:56:36) > > + > > +static int > > +qcom_usb_hs_phy_vbus_notifier(struct notifier_block *nb, unsigned long > > event, > > + void *ptr) > > +{ > > + struct qcom_usb_hs

[PATCH 3/3] f2fs: remove percpu_count due to performance regression

2016-10-20 Thread Jaegeuk Kim
This patch removes percpu_count usage due to performance regression in iozone. Fixes: 523be8a6b3 ("f2fs: use percpu_counter for page counters") Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 12 ++-- fs/f2fs/f2fs.h | 12 ++-- fs/f2fs/super.c | 16 +--- 3 files chan

[PATCH 1/3] f2fs: add fast path for find_next_{zero}bit

2016-10-20 Thread Jaegeuk Kim
This patch adds checking the first two bits when searching zero or one bits to avoid costly find_next_{zero}bit operations. Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 10 +- fs/f2fs/f2fs.h| 48 fs/f2fs/gc.c | 3 ++- fs/f2

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