Re: Build regressions/improvements in v4.4-rc5

2015-12-15 Thread Sebastian Reichel
Hi, On Mon, Dec 14, 2015 at 10:56:17AM +0100, Geert Uytterhoeven wrote: > On Mon, Dec 14, 2015 at 10:54 AM, Geert Uytterhoeven > wrote: > > JFYI, when comparing v4.4-rc5[1] to v4.4-rc4[3], the summaries are: > > - build errors: +8/-7 > > + error: bq27xxx_battery.c: undefined reference to `i2

Re: [PATCH v4 2/3] power: qcom_smbb: Add otg regulator for control of vbus

2015-12-15 Thread Andy Gross
On Tue, Dec 15, 2015 at 11:52:11AM -0800, Tim Bird wrote: > Add a regulator to control the OTG chargepath switch. This > is used by USB code to control VBUS direction - out for host mode > on the OTG port, and in for charging mode. > > Signed-off-by: Tim Bird > --- > Changes since v3: > - chang

Re: [PATCH v4 1/3] dt-binding: power: Add otg regulator binding

2015-12-15 Thread Andy Gross
On Tue, Dec 15, 2015 at 11:52:10AM -0800, Tim Bird wrote: > Add a binding for the regulator which controls the OTG chargepath switch. > The OTG switch gets its power from pm8941_5vs1, and that should be > expressed as a usb_otg_in-supply property in the DT node for the > charger driver. The regula

[PATCH] i2c: designware: Do not require clock when SSCN and FFCN are provided

2015-12-15 Thread Suravee Suthikulpanit
The current driver uses input clock source frequency to calculate values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not currently have a good way to provide the frequency information. Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used to directly provid

Re: futex(3) man page, final draft for pre-release review

2015-12-15 Thread Davidlohr Bueso
On Tue, 15 Dec 2015, Michael Kerrisk (man-pages) wrote: When executing a futex operation that requests to block a thread, the kernel will block only if the futex word has the value that the calling thread supplied (as one of the arguments of the futex() call) as t

Re: [PATCH] net: fix uninitialized variable issue

2015-12-15 Thread Tadeusz Struk
On 12/15/2015 11:02 AM, Eric Dumazet wrote: > On Tue, 2015-12-15 at 10:46 -0800, Tadeusz Struk wrote: >> msg_iocb needs to be initialized on the recv/recvfrom path. >> Otherwise afalg will wrongly interpret it as an async call. >> >> Cc: sta...@vger.kernel.org >> Reported-by: Harald Freudenberger

[ANNOUNCE] Git v2.7.0-rc1

2015-12-15 Thread Junio C Hamano
A release candidate Git v2.7.0-rc1 is now available for testing at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following public repositories all have a copy of the 'v2.7.0-rc1' tag and the 'master' branch that the tag points at: ur

Re: [RFC][PATCH] module: Limit line length of module prints

2015-12-15 Thread Laura Abbott
On 12/13/2015 05:06 PM, Rusty Russell wrote: Laura Abbott writes: On 12/11/2015 01:39 AM, Rusty Russell wrote: Laura Abbott writes: print_modules currently uses pr_cont to print all module information. This has the side effect of printing lots of modules on one very long line. This makes cop

Re: [PATCH] net: emac: emac gigabit ethernet controller driver

2015-12-15 Thread Gilad Avidov
On Mon, 14 Dec 2015 17:39:09 -0800 Florian Fainelli wrote: > On 14/12/15 16:19, Gilad Avidov wrote: > > [snip] > > > + "sgmii_irq"; > > + qcom,emac-gpio-mdc = <&msmgpio 123 0>; > > + qcom,emac-gpio-mdio = <&msmgpio 124 0>; > > + qcom,emac-tstamp-e

Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock

2015-12-15 Thread Alexei Starovoitov
On Tue, Dec 15, 2015 at 07:21:02PM +0800, Ming Lei wrote: > Both htab_map_update_elem() and htab_map_delete_elem() can be > called from eBPF program, and they may be in kernel hot path, > so it isn't efficient to use a per-hashtable lock in this two > helpers. > > The per-hashtable spinlock is use

[PATCH 3/3] Drivers: hv: vmbus: Cleanup vmbus_set_event()

2015-12-15 Thread K. Y. Srinivasan
Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |4 ++-- drivers/hv/hv.c | 16 drivers/hv/hyperv_vmbus.h |4 +--- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 3dc5a9c..4a

[PATCH 0/3] Drivers: hv: Fix CPU assignment for FC devices

2015-12-15 Thread K. Y. Srinivasan
Currently all channels of a Fibre channel device are being bound to CPU 0. Correct this by including Fibre Channel devices in the list of performance critical devices. Also included is a patch to correct the returned error code for util drivers as well as cleanup of the vmbus signaling function. K

[PATCH 1/3] Drivers: hv: utils: fix hvt_op_poll() return value on transport destroy

2015-12-15 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov The return type of hvt_op_poll() is unsigned int and -EBADF is inappropriate, poll functions return POLL* statuses. Reported-by: Dexuan Cui Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |2 +- 1 files changed, 1

[PATCH 2/3] Drivers: hv: vmbus: Treat Fibre Channel devices as performance critical

2015-12-15 Thread K. Y. Srinivasan
For performance critical devices, we distribute the incoming channel interrupt load across available CPUs in the guest. Include Fibre channel devices in the set of devices for which we would distribute the interrupt load. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +++

Re: [PATCH RFC] memory-hotplug: add automatic onlining policy for the newly added memory

2015-12-15 Thread Daniel Kiper
Hey Vitaly, On Tue, Dec 15, 2015 at 07:05:53PM +0100, Vitaly Kuznetsov wrote: > Currently, all newly added memory blocks remain in 'offline' state unless > someone onlines them, some linux distributions carry special udev rules > like: > > SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline"

Re: [RFC v1 0/8] x86/init: Linux linker tables

2015-12-15 Thread H. Peter Anvin
ould simplify pv_ops over time further. This >patch set >also includes a renaming of paravirt_enabled() to paravirt_legacy() > >An unexpected long term side goal which *might* be possible due to >linker >tables on x86 is to help unify the different C entry points for Linux >x

[PATCHv3] RTC: RK808: Compensate for Rockchip calendar deviation on November 31st

2015-12-15 Thread Julius Werner
In A.D. 1582 Pope Gregory XIII found that the existing Julian calendar insufficiently represented reality, and changed the rules about calculating leap years to account for this. Similarly, in A.D. 2013 Rockchip hardware engineers found that the new Gregorian calendar still contained flaws, and tha

[PATCH] rtmutex: Use chainwalking control enum

2015-12-15 Thread bmouring
In 8930ed80 (rtmutex: Cleanup deadlock detector debug logic), chainwalking control enums were introduced to limit the deadlock detection logic. One of the calls to task_blocks_on_rt_mutex was missed when converting to use the enums. Signed-off-by: Brad Mouring Cc: Thomas Gleixner --- kernel/loc

Re: [PATCH 5/6] bpf: hash: avoid to call kmalloc() in eBPF prog

2015-12-15 Thread Alexei Starovoitov
On Tue, Dec 15, 2015 at 07:21:03PM +0800, Ming Lei wrote: > kmalloc() is often a bit time-consuming, also > one atomic counter has to be used to track the total > allocated elements, which is also not good. > > This patch pre-allocates element pool in htab_map_alloc(), > then use percpu_ida to all

Re: [PATCH v4 1/3] dt-binding: power: Add otg regulator binding

2015-12-15 Thread Sebastian Reichel
Hi, On Tue, Dec 15, 2015 at 11:52:10AM -0800, Tim Bird wrote: > Add a binding for the regulator which controls the OTG chargepath switch. > The OTG switch gets its power from pm8941_5vs1, and that should be > expressed as a usb_otg_in-supply property in the DT node for the > charger driver. The re

Re: [PATCHv3] RTC: RK808: Compensate for Rockchip calendar deviation on November 31st

2015-12-15 Thread Julius Werner
Okay, wrote up and tested the anchor date version. I think once you get over the initial weirdness of the approach this one is really much cleaner and safer. I tested this with the older rtc_tm_to_time() API and only ported it over to rtc_tm_to_time64() for submission, since my 3.14 kernel didn't

[PATCH v2 2/2] i2c: xlr: add interrupt support for Sigma Designs chips

2015-12-15 Thread Mans Rullgard
The Sigma Designs variant of this controller has the ability to generate interrupts. This is controlled using two additional registers, oddly enough overlapping with the defined but unused HDSTATIM. This patch adds support for using this feature instead of busy-looping if an IRQ is specified. Si

Re: [PATCH] net: fix uninitialized variable issue

2015-12-15 Thread Eric Dumazet
On Tue, 2015-12-15 at 14:42 -0800, Tadeusz Struk wrote: > It was added in this commit: 0345f93138b2 ("net: socket: add support for > async operations") > Thanks ! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org M

[PATCH v2 1/2] i2c: xlr: fix extra read/write at end of rx transfer

2015-12-15 Thread Mans Rullgard
The BYTECNT register holds the transfer size minus one. Setting it to the correct value removes the need for a dummy read/write at the end of each transfer. As zero-length transfers are not supported, do not advertise I2C_FUNC_SMBUS_QUICK. In other words, this patch makes the driver transfer the

Re: [PATCH RESEND v3] fsl-ifc: add missing include on ARM64

2015-12-15 Thread Arnd Bergmann
On Friday 11 December 2015 13:55:02 Lijun Pan wrote: > Need to include sched.h to fix the following compilation error > if FSL_IFC is enabled on ARM64 machine. > > In file included from include/linux/mmzone.h:9:0, > from include/linux/gfp.h:5, > from include/linux

Re: [PATCH 5/6] bpf: hash: avoid to call kmalloc() in eBPF prog

2015-12-15 Thread Daniel Borkmann
On 12/15/2015 12:21 PM, Ming Lei wrote: ... +/* Called from syscall, and the code is borrowed from blk_mq */ +static int htab_pre_alloc_elems(struct bpf_htab *htab) +{ + const unsigned max_order = 4; + unsigned elem_size = htab->elem_size, i; + unsigned nr_entries = htab->map.ma

Re: [PATCH linux-next 1/2] power: Add brcm,bcm6358-power-controller device tree binding

2015-12-15 Thread Sebastian Reichel
Hi, On Wed, Dec 09, 2015 at 10:29:35PM +, Simon Arlott wrote: > The BCM6358 contains power domains controlled with a register. Power > domains are indexed by bits in the register. Power domain bits can be > interleaved with other status bits and clocks in the same register. > > Newer SoCs wit

[PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-15 Thread Mans Rullgard
This moves all global data into the driver private struct, thus permitting multiple devices of this type to be used. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 80 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a/dr

Re: [PATCH LINUX v4 06/13] tty: xuartps: Move request_irq to after setting up the HW

2015-12-15 Thread Peter Hurley
On 12/15/2015 07:41 AM, Sören Brinkmann wrote: > On Thu, 2015-12-10 at 01:41PM -0800, Peter Hurley wrote: >> On 12/05/2015 08:39 PM, Soren Brinkmann wrote: >>> Request_irq() should be _after_ h/w programming, otherwise an >>> interrupt could be triggered and in-progress before the h/w has been >>>

[PATCH 2/3] ata: sata_dwc_460ex: add phy support

2015-12-15 Thread Mans Rullgard
This adds support for powering on an optional PHY when activating the device. Signed-off-by: Mans Rullgard --- drivers/ata/Kconfig | 1 + drivers/ata/sata_dwc_460ex.c | 21 + 2 files changed, 22 insertions(+) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig i

[PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-15 Thread Mans Rullgard
Currently this driver only works with a DesignWare DMA engine which it registers manually using the second "reg" address range and interrupt number from the DT node. This patch makes the driver instead use the "dmas" property if present, otherwise optionally falling back on the old way so existing

Re: [PATCH 12/19] ARM: dts: exynos: replace legacy *,wakeup property with wakeup-source

2015-12-15 Thread Krzysztof Kozlowski
On 16.12.2015 01:35, Sudeep Holla wrote: > > > On 21/10/15 11:10, Sudeep Holla wrote: >> Though the keyboard and other driver will continue to support the legacy >> "gpio-key,wakeup", "linux-keypad,wakeup" boolean property to enable the >> wakeup source, "wakeup-source" is the new standard bindin

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-15 Thread Måns Rullgård
Mans Rullgard writes: > Currently this driver only works with a DesignWare DMA engine which it > registers manually using the second "reg" address range and interrupt > number from the DT node. > > This patch makes the driver instead use the "dmas" property if present, > otherwise optionally fall

Re: [PATCH 5/6] bpf: hash: avoid to call kmalloc() in eBPF prog

2015-12-15 Thread Daniel Borkmann
On 12/15/2015 12:21 PM, Ming Lei wrote: ... +static int htab_init_elems_allocator(struct bpf_htab *htab) +{ + int ret = htab_pre_alloc_elems(htab); + + if (ret) + return ret; + + ret = percpu_ida_init(&htab->elems_pool, htab->map.max_entries); + if (ret) +

[PATCH v2 2/3] clk: bcm2835: Add a driver for the auxiliary peripheral clock gates.

2015-12-15 Thread Eric Anholt
There are a pair of SPI masters and a mini UART that were last minute additions. As a result, they didn't get integrated in the same way as the other gates off of the VPU clock in CPRMAN. Signed-off-by: Eric Anholt --- v2: Make the binding cover both the IRQ and clock enable registers. Use

[PATCH v2 3/3] ARM: bcm2835: Add the auxiliary clocks to the device tree.

2015-12-15 Thread Eric Anholt
These will be used for enabling UART1, SPI1, and SPI2. Signed-off-by: Eric Anholt --- v2: Make the binding cover both the IRQ and clock enable registers. arch/arm/boot/dts/bcm2835.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts

[PATCH v2 1/3] clk: bcm2835: Add bindings for the auxiliary peripheral clock gates.

2015-12-15 Thread Eric Anholt
These will be used for enabling UART1, SPI1, and SPI2. Signed-off-by: Eric Anholt --- v2: Make the binding cover both the IRQ and clock enable registers. .../bindings/clock/brcm,bcm2835-aux-clock.txt | 31 ++ include/dt-bindings/clock/bcm2835-aux.h| 17

Re: [PATCH 5/6] bpf: hash: avoid to call kmalloc() in eBPF prog

2015-12-15 Thread Daniel Borkmann
On 12/16/2015 12:10 AM, Alexei Starovoitov wrote: ... this rounding to cache line is great for performance, but it's extra memory upfront which may not be needed. The per-allocation is a classic performance vs memory trade-off. In other cases it may hurt. So could you change the patch to do pre-a

[PATCH] SUNRPC: restore fair scheduling to priority queues.

2015-12-15 Thread NeilBrown
Commit: c05eecf63610 ("SUNRPC: Don't allow low priority tasks to pre-empt higher priority ones") removed the 'fair scheduling' feature from SUNRPC priority queues. This feature caused problems for some queues (send queue and session slot queue) but is still needed for others, particularly the tc

Re: [PATCH v6 06/10] mtd: spi-nor: simplify write loop

2015-12-15 Thread Michal Suchanek
On 15 December 2015 at 21:22, Han Xu wrote: > On Wed, Dec 02, 2015 at 10:38:20AM +, Michal Suchanek wrote: >> The spi-nor write loop assumes that what is passed to the hardware >> driver write() is what gets written. >> >> When write() writes less than page size at once data is dropped on the

Re: [RFC v5 0/8] Additional kmsg devices

2015-12-15 Thread Joe Perches
On Tue, 2015-10-27 at 11:28 +0100, Paul Osmialowski wrote: > Dear All, > > This is the fifth iteration of Marcin Niesluchowski's serie of patches > extending kmsg interface with ability to dynamically create (and destroy) > kmsg-like devices which can be used by userspace for logging. > > This it

RE: [PATCHV2 2/3] x86, ras: Extend machine check recovery code to annotated ring0 areas

2015-12-15 Thread Luck, Tony
>> +/* Fault was in recoverable area of the kernel */ >> +if ((m.cs & 3) != 3 && worst == MCE_AR_SEVERITY) >> +if (!fixup_mcexception(regs, m.addr)) >> +mce_panic("Failed kernel mode recovery", &m, NULL); > ^^^

Re: [PATCH v3 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-15 Thread Eric Anholt
Florian Fainelli writes: > On 15/12/15 13:40, Eric Anholt wrote: >> From: Alexander Aring >> >> This patch adds support for several power domains on Raspberry Pi, >> including USB (so it can be enabled even if the bootloader didn't do >> it), and graphics. >> >> This patch is the combined work

Re: [BUG] checkpatch: unescaped left brace in regex is deprecated

2015-12-15 Thread Geyslan G. Bem
2015-12-10 8:24 GMT-03:00 Geyslan G. Bem : > 2015-12-09 19:59 GMT-03:00 Geyslan G. Bem : >> >> >> 2015-12-07 20:36 GMT-03:00 Geyslan G. Bem : >>> >>> 2015-12-07 20:06 GMT-03:00 Joe Perches : >>> > On Mon, 2015-12-07 at 19:53 -0300, Geyslan G. Bem wrote: >>> >> Hello, >>> > >>> > hello. >>> > >>> >>

[PATCH] tracing: don't macro-expand arguments before stringification in TP_printk

2015-12-15 Thread Rasmus Villemoes
TL;DR: For the .config I use for my laptop, the bloat-o-meter win is $ scripts/bloat-o-meter /tmp/vmlinux.{old,new} add/remove: 0/0 grow/shrink: 187/136 up/down: 3566/-38081 (-34515) The __stringify macro ensures that its argument is completely macro-expanded before it is stringified. That is, IM

Re: [PATCH v3 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-15 Thread Florian Fainelli
On 15/12/15 15:55, Eric Anholt wrote: > Florian Fainelli writes: > >> On 15/12/15 13:40, Eric Anholt wrote: >>> From: Alexander Aring >>> >>> This patch adds support for several power domains on Raspberry Pi, >>> including USB (so it can be enabled even if the bootloader didn't do >>> it), and g

Re: [PATCH 5/6] bpf: hash: avoid to call kmalloc() in eBPF prog

2015-12-15 Thread Daniel Borkmann
On 12/16/2015 12:35 AM, Daniel Borkmann wrote: On 12/15/2015 12:21 PM, Ming Lei wrote: ... +static int htab_init_elems_allocator(struct bpf_htab *htab) +{ +int ret = htab_pre_alloc_elems(htab); + +if (ret) +return ret; + +ret = percpu_ida_init(&htab->elems_pool, htab->map.max

Re: [BUG] checkpatch: unescaped left brace in regex is deprecated

2015-12-15 Thread Joe Perches
On Tue, 2015-12-15 at 20:58 -0300, Geyslan G. Bem wrote: > 2015-12-10 8:24 GMT-03:00 Geyslan G. Bem : > > Suggested-by: Peter Senna Tschudin > > Reported-by: Geyslan G. Bem > > > > Joe, do you applied this patch? If not, would I send it? You can resend, but I believe there are a few more insta

RE: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-15 Thread Zheng, Lv
Hi, Andy and Yu > From: Zheng, Lv > Sent: Tuesday, December 15, 2015 4:52 PM > > Hi, > > > From: Chen, Yu C > > Sent: Tuesday, December 15, 2015 2:13 PM > > > > Hi, Andy > > > > > From: Andy Lutomirski [mailto:l...@amacapital.net] > > > Sent: Tuesday, December 15, 2015 7:28 AM > > > > > > On Wed

Kлиенmcкиe базы тел/вибер/вaцап +79l3З9Iз837

2015-12-15 Thread Клueнтcкuе бaзы mел +79lз9з9з5O6 ]
Kлиeнmckue базы mел +79l39393506

Re: [PATCH] tracing: don't macro-expand arguments before stringification in TP_printk

2015-12-15 Thread Rasmus Villemoes
Bah, just found 0462b5664b (ftrace: Output REC->var instead of __entry->var for trace format). There's some magic here I don't understand, but I'm wondering if '__entry' wouldn't do just as well as 'REC' for the tools that try to parse these strings. Rasmus -- To unsubscribe from this list: send t

[PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2015-12-15 Thread Yang Shi
The kernel just send out a SIGTRAP signal when handling ptrace breakpoint in debug exception, so it sounds safe to have interrupt enabled if it is not disabled by the parent process. Signed-off-by: Yang Shi --- arch/arm64/kernel/debug-monitors.c | 10 ++ 1 file changed, 10 insertions(+)

linux-next: manual merge of the drm-misc tree with Linus' tree

2015-12-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got conflicts in: drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c between commit: 8fbf9d92a7bc ("drm/vmwgfx: Implement the cursor_set2 callback v2") from Linus' tree and

Support --metric-only in perf

2015-12-15 Thread Andi Kleen
Support --metric-only to only output metrics in perf stat. This can give much more concise and easier to read output in some situations. Plus one bug fix. This patchkit is on top of the earlier posted perf stat metrics refactoring patches. -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH v6 3/7] ARM: dts: Exynos542x/5800: add CPU OPP properties

2015-12-15 Thread Krzysztof Kozlowski
On 16.12.2015 02:33, Bartlomiej Zolnierkiewicz wrote: > From: Thomas Abraham > > For Exynos542x/5800 platforms, add CPU operating points > for migrating from Exynos specific cpufreq driver to using > generic cpufreq driver. > > Changes by Bartlomiej: > - split Exynos5420 support from the origina

[PATCH 2/2] perf, tools, stat: Fix indentation of counter running printout

2015-12-15 Thread Andi Kleen
From: Andi Kleen Fix the indentation of the counter running printout for non supported counters. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index a18db2b..4777355 100644 ---

[PATCH 1/2] perf, tools, stat: Implement --metric-only mode

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add a new mode to only print metrics. Sometimes we don't care about the raw values, just want the computed metrics. This allows more compact printing, so with -I each sample is only a single line. This also allows easier plotting and processing with other tools. The main target

Re: [PATCH] SUNRPC: restore fair scheduling to priority queues.

2015-12-15 Thread Trond Myklebust
On Tue, Dec 15, 2015 at 6:44 PM, NeilBrown wrote: > > Commit: c05eecf63610 ("SUNRPC: Don't allow low priority tasks to pre-empt > higher priority ones") > > removed the 'fair scheduling' feature from SUNRPC priority queues. > This feature caused problems for some queues (send queue and session sl

Re: [PATCH v10 0/17] Add Analogix Core Display Port Driver

2015-12-15 Thread Yakir Yang
Hi Heiko, On 12/15/2015 08:06 AM, Heiko Stübner wrote: Hi Yakir, Am Montag, 7. Dezember 2015, 14:37:19 schrieb Yakir Yang: The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge directory

Re: new warning on sysrq kernel crash trigger

2015-12-15 Thread Ani Sinha
Rik, should I send a separate email with the patch or you are OK with what I sent in the email? Are you queueing up my patch for applying upstream? On Tue, Dec 15, 2015 at 5:44 AM, Anirban Sinha wrote: > > > On Mon, 14 Dec 2015, Rik van Riel wrote: > >> On 12/14/2015 11:24 AM, Ani Sinha wrote: >>

Re: [PATCH v3 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-15 Thread Eric Anholt
Florian Fainelli writes: > On 15/12/15 15:55, Eric Anholt wrote: >> Florian Fainelli writes: >> >>> On 15/12/15 13:40, Eric Anholt wrote: From: Alexander Aring This patch adds support for several power domains on Raspberry Pi, including USB (so it can be enabled even if the

Re: [PATCH] ftrace: fix race between ftrace and insmod

2015-12-15 Thread Zhang, Yanmin
On 2015/12/16 1:37, Steven Rostedt wrote: > On Tue, 15 Dec 2015 11:26:41 +0800 > "Zhang, Yanmin" wrote: > >>> This seems very hackish, although I can't think of a better way at the >>> moment. But I would like not to add more code into module.c if >>> possible, and just use a notifier unless there

[PATCH 08/10] x86, perf: Support sysfs files depending on SMT status

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add a way to show different sysfs events attributes depending on HyperThreading is on or off. This is difficult to determine early at boot, so we just do it dynamically when the sysfs attribute is read. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 34 ++

[PATCH 07/10] perf, tools, stat: Add extra output of counter values with -v

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add debug output of raw counter values per CPU when perf stat -v is specified, together with their cpu numbers. This is very useful to debug problems with per core counters, where we can normally only see aggregated values. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat

[PATCH 03/10] perf, tools, stat: Avoid fractional digits for integer scales

2015-12-15 Thread Andi Kleen
From: Andi Kleen When the scaling factor is a full integer don't display fractional digits. This avoids unnecessary .00 output for topdown metrics with scale factors. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --gi

[PATCH 10/10] x86, perf: Add Top Down events to Intel Atom

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add topdown event declarations to Silvermont / Airmont. These cores do not support the full Top Down metrics, but an useful subset (FrontendBound, Retiring, Backend Bound/Bad Speculation). The perf stat tool automatically handles the missing events and combines the available met

Add top down metrics to perf stat v2

2015-12-15 Thread Andi Kleen
Note to reviewers: includes both tools and kernel patches. The kernel patches are at the end. This patchkit adds support for TopDown measurements to perf stat It applies on top of my earlier metrics patchkit, posted separately, and the --metric-only patchkit (also posted separately) TopDown is in

[PATCH 04/10] perf, tools, stat: Scale values by unit before metrics

2015-12-15 Thread Andi Kleen
From: Andi Kleen Scale values by unit before passing them to the metrics printing functions. This is needed for TopDown, because it needs to scale the slots correctly by pipeline width / SMTness. For existing metrics it shouldn't make any difference, as those generally use events that don't have

[PATCH 02/10] perf, tools, stat: Force --per-core mode for .agg-per-core aliases

2015-12-15 Thread Andi Kleen
From: Andi Kleen When an event alias is used that the kernel marked as .agg-per-core, force --per-core mode (and also require -a and forbid cgroups or per thread mode). This in term means, --topdown forces --per-core mode. This is needed for TopDown in SMT mode, because it needs to measure all t

[PATCH 05/10] perf, tools, stat: Basic support for TopDown in perf stat

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add basic plumbing for TopDown in perf stat Add a new --topdown options to enable events. When --topdown is specified set up events for all topdown events supported by the kernel. Add topdown-* as a special case to the event parser, as is needed for all events containing -. The

[PATCH 09/10] x86, perf: Add Top Down events to Intel Core

2015-12-15 Thread Andi Kleen
From: Andi Kleen Add declarations for the events needed for TopDown to the Intel big core CPUs starting with Sandy Bridge. We need to report different values if HyperThreading is on or off. The only thing this patch does is to export some events in sysfs. TopDown level 1 uses a set of abstracte

[PATCH 06/10] perf, tools, stat: Add computation of TopDown formulas

2015-12-15 Thread Andi Kleen
From: Andi Kleen Implement the TopDown formulas in perf stat. The topdown basic metrics reported by the kernel are collected, and the formulas are computed and output as normal metrics. See the kernel commit exporting the events for details on the used metrics. Signed-off-by: Andi Kleen --- t

[PATCH 01/10] perf, tools: Dont stop PMU parsing on alias parse error

2015-12-15 Thread Andi Kleen
From: Andi Kleen When an error happens during alias parsing currently the complete parsing of all attributes of the PMU is stopped. This is breaks old perf on a newer kernel that may have not-yet-know alias attributes (such as .scale or .per-pkg). Continue when some attribute is unparseable. Th

Re: [RFC][PATCH] zram: drop partial_io support

2015-12-15 Thread Minchan Kim
Hello Sergey, Sorry for the late response. I am in long vavacation now but today, I get small time to sit down on computer. :) On Mon, Dec 14, 2015 at 09:38:55PM +0900, Sergey Senozhatsky wrote: > Hello, > > I've been thinking about this for some time, but didn't have a chance > to properly inve

[PATCH v4 00/19] Adding plat-eznps to ARC

2015-12-15 Thread Noam Camus
From: Noam Camus v4: 1) irqchip -- use irq_domain_add_linear() 2) clocksource -- use of_clk_get() 3) New header at include/soc use by platform and drivers 4) update DTS file for above fixed drivers v3: 1) irqchip: use MACROS instead of structures to decribe registers. 2) clocks

[PATCH v4 02/19] soc: Support for EZchip SoC

2015-12-15 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 123 ++ 1 file

[PATCH v4 03/19] ARC: [plat-eznps] define IPI_IRQ

2015-12-15 Thread Noam Camus
From: Noam Camus We add IPI irq definition to be used later by any irqchip such NPS400 IC. Signed-off-by: Noam Camus --- arch/arc/include/asm/irq.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index 4fd7d62.

[PATCH v4 04/19] clocksource: Add NPS400 timers driver

2015-12-15 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v4 07/19] ARC: rwlock: disable interrupts in !LLSC variant

2015-12-15 Thread Noam Camus
From: Noam Camus If we hold rwlock and interrupt occures we may end up spinning on it for ever during softirq. Note that this lock is an internal lock and since the lock is free to be used from any context, the lock needs to be IRQ-safe. Below you may see an example for interrupt we get while nl

[PATCH v4 06/19] ARC: Set vmalloc size from configuration

2015-12-15 Thread Noam Camus
From: Noam Camus User space use lower 2G of the virtual address space. However kernel steals upper 512M of this space. This stolen space is used partially for vmalloc and the rest serves as gutter between kernel and user space. The vmalloc size is depend on NR_CPUS since "per cpu" mechanism use v

[PATCH v4 05/19] irqchip: add nps Internal and external irqchips

2015-12-15 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

[PATCH v4 10/19] ARC: Add clock from device tree to time_init()

2015-12-15 Thread Noam Camus
From: Noam Camus External clock source can be used if included by one of DTS file of a chosen platform. Clocksource may be depend on some clk from DTS as the real source of this clock. Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/kernel/time.c | 10 +- 1 files chang

[PATCH v4 09/19] ARC: Mark secondary cpu online only after all HW setup is done

2015-12-15 Thread Noam Camus
From: Noam Camus In SMP setup, master loops for each_present_cpu calling cpu_up(). For ARC it returns as soon as new cpu's status becomes online, However secondary may still do HW initializing, machine or platform hook level. So turn secondary online only after all HW setup is done. Signed-off-b

[PATCH v4 11/19] ARC: [plat-eznps] Add eznps board defconfig and dts

2015-12-15 Thread Noam Camus
From: Noam Camus Adding default configuration file and DTS file Signed-off-by: Noam Camus --- arch/arc/boot/dts/eznps.dts| 93 arch/arc/configs/nps_defconfig | 85 2 files changed, 178 insertions(+), 0 deleti

[PATCH v4 12/19] ARC: [plat-eznps] Add eznps platform

2015-12-15 Thread Noam Camus
From: Noam Camus This platform include boards: Hardware Emulator (HE) Simulator based upon nSIM. Signed-off-by: Noam Camus --- MAINTAINERS |6 + arch/arc/plat-eznps/Kconfig | 34 ++ arch/arc/plat-eznps/Makefile|7

[PATCH v4 15/19] ARC: [plat-eznps] Use dedicated SMP barriers

2015-12-15 Thread Noam Camus
From: Noam Camus NPS device got 256 cores and each got 16 HW threads (SMT). We use EZchip dedicated ISA to trigger HW scheduler of the core that current HW thread belongs to. This scheduling makes sure that data beyond barrier is available to all HW threads in core and by that to all in device (4

[PATCH v4 13/19] ARC: [plat-eznps] Use dedicated user stack top

2015-12-15 Thread Noam Camus
From: Noam Camus NPS use special mapping right below TASK_SIZE. Hence we need to lower STACK_TOP so that user stack won't overlap NPS special mapping. Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/processor.h | 17 + arch/arc/mm/tlb.c

[PATCH v4 16/19] ARC: [plat-eznps] Use dedicated identity auxiliary register.

2015-12-15 Thread Noam Camus
From: Noam Camus With generic "identity" num of CPUs is limited to 256 (8 bit). We use our alternative AUX register GLOBAL_ID (12 bit). Now we can support up to 4096 CPUs. Signed-off-by: Noam Camus --- arch/arc/include/asm/entry-compact.h |8 arch/arc/kernel/ctx_sw.c |

[PATCH v4 17/19] ARC: [plat-eznps] Use dedicated cpu_relax()

2015-12-15 Thread Noam Camus
From: Tal Zilcer Since the CTOP is SMT hardware multi-threaded, we need to hint the HW that now will be a very good time to do a hardware thread context switching. This is done by issuing the schd.rw instruction (binary coded here so as to not require specific revision of GCC to build the kernel)

[PATCH v4 18/19] ARC: [plat-eznps] Use dedicated COMMAND_LINE_SIZE

2015-12-15 Thread Noam Camus
From: Noam Camus The default 256 bytes sometimes is just not enough. We usually provide earlycon=... and console=... and ip=... All this and more may need more room. Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/setup.h |4 1 files changed, 4 insertions(+)

[PATCH v4 19/19] ARC: Add eznps platform to Kconfig and Makefile

2015-12-15 Thread Noam Camus
From: Noam Camus This commit should be left last since only now eznps platform is in state which one can actually use. Signed-off-by: Noam Camus --- arch/arc/Kconfig |1 + arch/arc/Makefile |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arc/Kconfig b/arch

Re: [PATCH] mmc: sdhci-acpi: set non-removable in ACPI table

2015-12-15 Thread Rafael J. Wysocki
On 12/15/2015 10:36 PM, Philip Elcan wrote: On 12/11/2015 05:53 PM, Rafael J. Wysocki wrote: On Friday, December 11, 2015 10:17:18 AM Adrian Hunter wrote: On 10/12/15 22:57, Philip Elcan wrote: On 12/07/2015 03:30 AM, Adrian Hunter wrote: On 04/12/15 17:40, Philip Elcan wrote: On 12/03/2015

Re: [PATCH v3 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-15 Thread Sebastian Reichel
Hi, On Tue, Dec 15, 2015 at 04:53:31PM -0800, Eric Anholt wrote: > >>> What motivated the location of this power domain driver in > >>> arch/arm/mach-bcm? Should not we have this in drivers/power/ or > >>> somewhere in drivers/ at the very least? > >> > >> ls stronly suggests that power contains

Re: [RFCv6 PATCH 03/10] sched: scheduler-driven cpu frequency selection

2015-12-15 Thread Steve Muckle
On 12/15/2015 02:31 AM, Juri Lelli wrote: + do { > >> + set_current_state(TASK_INTERRUPTIBLE); > >> + new_request = gd->requested_freq; > >> + if (new_request == last_request) { > >> + schedule(); > >> +

Re: [PATCH v3 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-15 Thread Krzysztof Kozlowski
2015-12-16 10:11 GMT+09:00 Sebastian Reichel : > Hi, > > On Tue, Dec 15, 2015 at 04:53:31PM -0800, Eric Anholt wrote: >> >>> What motivated the location of this power domain driver in >> >>> arch/arm/mach-bcm? Should not we have this in drivers/power/ or >> >>> somewhere in drivers/ at the very lea

Re: [RFC][PATCH] zram: drop partial_io support

2015-12-15 Thread Sergey Senozhatsky
Hello Minchan, On (12/16/15 10:01), Minchan Kim wrote: > Hello Sergey, > > Sorry for the late response. I am in long vavacation now but today, > I get small time to sit down on computer. :) Have a good one! > On Mon, Dec 14, 2015 at 09:38:55PM +0900, Sergey Senozhatsky wrote: > > Hello, > > >

[PATCH v4 08/19] ARC: rename smp operation init_irq_cpu() to init_per_cpu()

2015-12-15 Thread Noam Camus
From: Noam Camus This will better reflect its description i.e. "any needed setup..." and not just do an "IPI request". Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/smp.h |4 ++-- arch/arc/kernel/irq.c |4 ++-- arch/arc/kernel/mcip.c |2 +- arc

[PATCH v4 14/19] ARC: [plat-eznps] Use dedicated atomic/bitops/cmpxchg

2015-12-15 Thread Noam Camus
From: Noam Camus We need our own implementaions since we lack LLSC support. Our extended ISA provided with optimized solution for all 32bit operations we see in these three headers. Signed-off-by: Noam Camus --- arch/arc/include/asm/atomic.h | 79 +++- arch/ar

Re: [PATCH v5 02/14] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-15 Thread Wangnan (F)
On 2015/12/15 20:36, Jiri Olsa wrote: On Mon, Dec 14, 2015 at 10:39:11AM +, Wang Nan wrote: SNIP @@ -137,12 +138,15 @@ void machine__exit(struct machine *machine) void machine__delete(struct machine *machine) { machine__exit(machine); - free(machine); + if (machin

[PATCH] dma-debug: Fix dma_debug_entry offset calculation

2015-12-15 Thread Daniel Mentz
dma-debug uses struct dma_debug_entry to keep track of dma coherent memory allocation requests. The virtual address is converted into a pfn and an offset. Previously, the offset was calculated using an incorrect bit mask. As a result, we saw incorrect error messages from dma-debug like the followi

  1   2   3   4   5   6   7   8   9   10   >