[PATCH 1/2] irqchip/gic: Remove static irq_chip definition for eoimode1

2015-12-21 Thread Jon Hunter
There are only 3 differences (not including the name) in the definitions of the gic_chip and gic_eoimode1_chip structures. Instead of statically defining the gic_eoimode1_chip structure, remove it and populate the eoimode1 functions dynamically for the appropriate GIC irqchips. Signed-off-by: Jon

Re: [PATCH V2 00/23] MMCONFIG refactoring and support for ARM64 PCI hostbridge init based on ACPI

2015-12-21 Thread Arnd Bergmann
On Monday 21 December 2015, Tomasz Nowicki wrote: > On 21.12.2015 13:10, Lorenzo Pieralisi wrote: > > On Fri, Dec 18, 2015 at 06:56:39PM +, ok...@codeaurora.org wrote: > >> I have multiple root ports with the same IO port configuration in the > >> current ACPI table. > >> > >> Root port 0 = IO

Re: [PATCH 01/25] serial: sh-sci: Update DT binding documentation for external clock input

2015-12-21 Thread Geert Uytterhoeven
On Thu, Nov 19, 2015 at 9:33 PM, Geert Uytterhoeven wrote: > On Thu, Nov 19, 2015 at 9:19 PM, Laurent Pinchart > wrote: >> On Thursday 19 November 2015 19:38:40 Geert Uytterhoeven wrote: >>> diff --git a/Documentation/devicetree/bindings/serial/renesas,sci-serial.txt >>> b/Documentation/devicetre

[PATCH] x86/fpu: Properly align size in CHECK_MEMBER_AT_END_OF macro

2015-12-21 Thread Jiri Olsa
The CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) checks whether MEMBER is last member of TYPE by evaluating: offsetof(TYPE::MEMBER) + sizeof(TYPE::MEMBER) == sizeof(TYPE) and ensuring TYPE::MEMBER is the last member of the TYPE. This condition breaks on structs that are padded to be aligned. This patc

Re: [PATCH] lightnvm: unlock rq and free ppa_list after submission failed

2015-12-21 Thread Wenwei Tao
When rrpc_write_ppalist_rq and rrpc_read_ppalist_rq succeed, we setup rq correctly, but nvm_submit_io failed due to cannot allocate request or nvme_nvm_command, we return error but forget to do the cleanup job this patch mentioned. 2015-12-21 19:22 GMT+08:00 Matias Bjørling : > On 12/21/2015 08:32

[PATCH 09/10] perf tools: Make 'trace' sort key default for tracepoint events

2015-12-21 Thread Namhyung Kim
When an evlist contains tracepoint events only, use 'trace' sort key as default. This will make users more convenient to see trace result. Suggested-by: Jiri Olsa Cc: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c | 22 +- 1 file changed, 17 insertio

[PATCH 01/10] perf hist: Pass struct sample to __hists__add_entry()

2015-12-21 Thread Namhyung Kim
This is a preparation to add more info into the hist_entry. Also it already passes too many argument, so passing sample directly will reduce the overhead of the function call. Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 7 +-- tools/perf/builtin-diff.c | 11 +---

[PATCH 05/10] perf tools: Add dynamic sort key for tracepoint events

2015-12-21 Thread Namhyung Kim
The existing sort keys are less useful for tracepoint events in that they are always sampled at a same location. For example, report on sched:sched_switch event looks like following # Overhead Command Shared Object Symbol # ... ..

[PATCH 04/10] perf tools: Pass evlist to setup_sorting()

2015-12-21 Thread Namhyung Kim
This is a preparation to support dynamic sort keys for tracepoint events. Dynamic sort keys can be created for specific fields in trace events so it needs the event information. Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-diff.c | 2 +-

[PATCHSET 00/10] perf tools: Support dynamic sort keys for tracepoints (v3)

2015-12-21 Thread Namhyung Kim
Hello, This is an attempt to improve perf to deal with tracepoint events better. The perf tools can handle tracepoint events but perf report on them is less useful since they're always sampled in a fixed location and not provide event specific info. We can use perf script but I always wishes the

[PATCH 07/10] perf tools: Add 'trace' sort key

2015-12-21 Thread Namhyung Kim
The 'trace' sort key is to show tracepoint event output using either print fmt or plugin. For example sched_switch event (using plugin) will show output like below: $ perf report -s trace --stdio ... # Overhead Trace output # ...

[PATCH 08/10] perf tools: Add --raw-trace option

2015-12-21 Thread Namhyung Kim
The --raw-trace option is to prevent pretty printing by event's print_fmt or plugin. Besides that, each dynamic sort key now receives 'raw' suffix separated by '/' to apply the raw trace to a specific field. $ perf report -s comm,kmem:kmalloc.gfp_flags ... # Overhead Commandgfp

[PATCH 10/10] perf tools: Support shortcuts for events in dynamic sort keys

2015-12-21 Thread Namhyung Kim
The dynamic sort key requires event name but specifying full event name is rather inconvenient. This patch adds more ways to identify the event in a more compact way. 1. If session has just one event, event name can be omitted. 2. Events can be accessed by index preceded by a percent sign.

[PATCH 06/10] perf tools: Try to show pretty printed output for dynamic sort keys

2015-12-21 Thread Namhyung Kim
Each tracepoint event has format string for print to improve readability. Try to parse the output and match the field name. If it finds one, use that for the result. If not, fallbacks to the original output. For example, sort on kmem:kmalloc.gfp_flags looks like below: (Note: libtraceevent plug

[PATCH 03/10] tools lib traceevent: Factor out and export print_event_field[s]

2015-12-21 Thread Namhyung Kim
The print_event_field() and print_event_field() are to print basic information of a given field or event without the print format. They'll be used by dynamic sort keys later. Cc: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.c | 125 ---

Re: [RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read

2015-12-21 Thread Bartosz Golaszewski
2015-12-11 14:55 GMT+01:00 Bartosz Golaszewski : > 2015-12-11 13:08 GMT+01:00 Wolfram Sang : >> On Wed, Dec 02, 2015 at 11:25:17AM +0100, Bartosz Golaszewski wrote: >>> Chips from the at24cs EEPROM series have an additional read-only memory area >>> containing a factory pre-programmed serial number

[PATCH 02/10] perf hist: Save raw_data/size for tracepoint events

2015-12-21 Thread Namhyung Kim
The raw_data and raw_size fields are to provide tracepoint specific information. They will be used by dynamic sort keys later. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 4 tools/perf/util/sort.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tools/perf/util/hist.c b/

Re: [PATCH 2/2] [media] media-device: split media initialization and registration

2015-12-21 Thread Javier Martinez Canillas
Hello Mauro, On 12/15/2015 08:13 AM, Mauro Carvalho Chehab wrote: [snip] >>> >>> /** >>> - * media_device_register - register a media device >>> + * media_device_init() - initialize a media device >>> * @mdev: The media device >>> * >>> * The caller is responsible for initializing the

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-21 Thread Alexander Shishkin
Peter Zijlstra writes: > - > - /* > - * If the context we're installing events in is not the > - * active task_ctx, flip them. > - */ > - if (ctx->task && task_ctx != ctx) { > - if (task_ctx) > - raw_spin_unlock(&task_ctx->lock); > -

Re: [PATCH 2/2] dt-bindings: sound: add devicetree document for rt5616

2015-12-21 Thread Caesar Wang
在 2015年12月21日 22:10, Heiko Stübner 写道: Am Montag, 21. Dezember 2015, 21:18:14 schrieb Caesar Wang: Add the description for rt5616 codec. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/sound/rt5616.txt | 38 ++ 1 file changed, 38 insertions(+) create

[PATCH 2/3] powercap, intel_rapl, implement check for minimum time window

2015-12-21 Thread Prarit Bhargava
Using an small value for the time window results in a bogus value for the time window. For example, [root@intel-chiefriver-03 linux]# echo 950 > /sys/devices/virtual/powercap/intel-rapl/intel-rapl\:0/constraint_0_time_window_us; egrep ^ /sys/devices/virtual/powercap/intel-rapl/intel-rapl\:0/cons

[PATCH 0/3 v2] powercap, intel_rapl, implement time window checks

2015-12-21 Thread Prarit Bhargava
The Intel ASDM provides a maximum time window that can be specified when setting a time window in the RAPL driver. While the ASDM doesn't explicitly provide a minimum time window value, it does provide a minimum time window unit that also can be used as a minimum value. This patchset implements b

[PATCH 1/3] powercap, intel_rapl, implement get_max_time_window

2015-12-21 Thread Prarit Bhargava
The MSR_PKG_POWER_INFO register (Intel ASDM, section 14.9.3 "Package RAPL Domain") provides a maximum time window which the system can support. This window is read-only and is currently not examined when setting the time windows for the package. This patch implements get_max_time_window_us() and

Re: [Qemu-devel] [Xen-devel] new barrier type for paravirt (was Re: [PATCH] virtio_ring: use smp_store_mb)

2015-12-21 Thread Stefano Stabellini
On Mon, 21 Dec 2015, David Vrabel wrote: > On 20/12/15 09:25, Michael S. Tsirkin wrote: > > > > I noticed that drivers/xen/xenbus/xenbus_comms.c uses > > full memory barriers to communicate with the other side. > > For example: > > > > /* Must write data /after/ reading the consum

[PATCH v2 2/3] ACPI: scan add in amba probing

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory Add a new ACPI scan handler for AMBA devices. Signed-off-by: Graeme Gregory Signed-off-by: Aleksey Makarov --- drivers/acpi/scan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 78d5f02..20c8cba 100644 --- a/drivers/acp

[PATCH v2 1/3] ACPI: amba bus probing support

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory On ARM64 some devices use the AMBA device and not the platform bus for probing so add support for this. Uses a dummy clock for apb_pclk as ACPI does not have a suitable clock representation and to keep the core AMBA bus code unchanged between probing methods. Signed-off-by:

[PATCH v2 0/3] Add AMBA bus probing support to ACPI

2015-12-21 Thread Aleksey Makarov
As discussed when Shannon Zhao sent a patch to add platform_device support to pl061 driver. Russel and other maintainers prefered that ACPI learned how to create AMBA devices rather than converting/adding platform_device support to AMBA drivers. http://comments.gmane.org/gmane.linux.ports.arm.kern

[PATCH v2 3/3] serial: amba-pl011: add ACPI support to AMBA probe

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory In ACPI this device is only defined in SBSA mode so if we are coming from ACPI use this mode. Signed-off-by: Graeme Gregory Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 37 ++--- 1 file changed, 26 insertions(+), 11

[PATCH v1 2/2] dt-bindings: sound: add devicetree document for rt5616

2015-12-21 Thread Caesar Wang
Add the description for rt5616 codec. Signed-off-by: Caesar Wang --- Changes in v1: - As Heiko comments, remove the not exist option properties. Documentation/devicetree/bindings/sound/rt5616.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/d

[PATCH 3/3] powercap, intel_rapl, Add ignore_max_time_window_check module parameter for broken BIOSes

2015-12-21 Thread Prarit Bhargava
Some systems erroneously set the maximum time window field of MSR_PKG_POWER_INFO register to 0. This results in a user not being able to set the time windows for the package. In some cases, however, RAPL will still continue to work with a small window (albeit through some trial and error). This

Re: [PATCH 07/14] batman-adv: use list_for_each_entry_safe

2015-12-21 Thread Antonio Quartulli
Hi Geliang, > static int batadv_socket_release(struct inode *inode, struct file *file) > { > - struct batadv_socket_client *socket_client = file->private_data; > - struct batadv_socket_packet *socket_packet; > - struct list_head *list_pos, *list_pos_tmp; > + struct batadv_socket_

[PATCH] [media] cx231xx: fix compilation when !CONFIG_MEDIA_CONTROLLER

2015-12-21 Thread Javier Martinez Canillas
Commit 1590ad7b5271 ("[media] media-device: split media initialization and registration") split the media dev initialization and registration but introduced a build error since media_device_register() was called unconditionally even when the MEDIA_CONTROLLER config was not enabled: drivers/medi

Re: Indent issus in kernel module development

2015-12-21 Thread Austin S. Hemmelgarn
On 2015-12-20 07:52, chunguang qu wrote: I tried it. Not worked unfortunately,. ```bash $ ~/share/linux/scripts/checkpatch.pl --fix --types=spacing testcompletion.c total: 0 errors, 0 warnings, 0 lines checked testcompletion.c has no obvious style problems and is ready for submission. NOTE: U

Re: [PATCH 1/2] can: sja1000: add documentation for Technologic Systems version

2015-12-21 Thread Damien Riegel
On Sat, Dec 19, 2015 at 09:37:42PM -0600, Rob Herring wrote: > On Fri, Dec 18, 2015 at 03:17:24PM -0500, Damien Riegel wrote: > > This commit adds documentation for the Technologic Systems version of > > SJA1000. The difference with the NXP version is in the way the registers > > are accessed. > >

Re: [PATCH] Documentation: Describe the shared memory usage/accounting

2015-12-21 Thread Vlastimil Babka
On 11/19/2015 07:58 PM, Rodrigo Freire wrote: The Shared Memory accounting support is present in Kernel since commit 4b02108ac1b3 ("mm: oom analysis: add shmem vmstat") and in userland free(1) since 2014. This patch updates the Documentation to reflect this change. Signed-off-by: Rodrigo Freire

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-21 Thread Sudip Mukherjee
On Sun, Dec 20, 2015 at 05:42:08PM +, One Thousand Gnomes wrote: > > So then should I rewrite it as MFD or should it be like the way you > > suggested in the other mail to have it as bool in the Kconfig and combine > > the file with 8250_pci.c when the symbol is selected? > > Yes although I'm

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

2015-12-21 Thread Måns Rullgård
Julian Margetson writes: > On 12/21/2015 9:24 AM, Måns Rullgård wrote: >> Julian Margetson writes: >> >> P.S. Anyway we have to ask Julian to try the kernel with >> 8b3444852a2b58129 reverted. >> > git revert 8b3444852a2b58129 > error: could not revert 8b34448... sata_dwc_460

Re: [PATCH V2 00/23] MMCONFIG refactoring and support for ARM64 PCI hostbridge init based on ACPI

2015-12-21 Thread Okaya
> On Monday 21 December 2015, Tomasz Nowicki wrote: >> On 21.12.2015 13:10, Lorenzo Pieralisi wrote: >> > On Fri, Dec 18, 2015 at 06:56:39PM +, ok...@codeaurora.org wrote: > >> >> I have multiple root ports with the same IO port configuration in the >> >> current ACPI table. >> >> >> >> Root po

Re: next-20151221 build: 2 failures 13 warnings (next-20151221)

2015-12-21 Thread Mark Brown
On Mon, Dec 21, 2015 at 03:05:33PM +0100, Arnd Bergmann wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > Just looking at the remaining warnings/errors in linux-nex

Re: [PATCH 1/6] perf, tools, stat: Abstract stat metrics printing

2015-12-21 Thread Jiri Olsa
On Mon, Dec 14, 2015 at 06:04:14PM -0800, Andi Kleen wrote: SNIP > -double avg, int cpu, enum aggr_mode aggr) > +void perf_stat__print_shadow_stats(struct perf_evsel *evsel, > +double avg, int cpu, > +

[PATCH v3 1/2] PCI support added to ARC

2015-12-21 Thread Joao Pinto
This patch adds PCI support to ARC and updates drivers/pci Makefile enabling the ARC arch to use the generic PCI setup functions. Signed-off-by: Joao Pinto --- Change v2 -> v3 (Bjorn Helgaas): - arch/arc/kernel/pcibios.c unused functions were removed and also the arch/arc/include/asm/mach/pci.h w

[PATCH v3 0/2] adding PCI support to AXS10x

2015-12-21 Thread Joao Pinto
This patch set has the goal to add suppport for DesignWare PCIe RC in ARC AXS10x. It includes the necessary tweaks to the ARC architecture, necessary tweaks to the PCI subsystem and a new driver (pcie-snpsdev). This new driver will be used extensively in the PCIe RC Prototyping Kit. The patches we

[PATCH v3 2/2] add new platform driver for PCI RC

2015-12-21 Thread Joao Pinto
This patch adds a new driver that will be the reference platform driver for all PCI RC IP Protoyping Kits based on ARC SDP. This patch is composed by: -Changes to pcie-designware driver add a function that enables the feature of starting the LTSSM (Link Train Status State) used by the new driver -

Re: GPF in shm_lock ipc

2015-12-21 Thread Dmitry Vyukov
On Thu, Nov 5, 2015 at 3:23 PM, Kirill A. Shutemov wrote: > What about this: Ping. This is still happening for me on tip. Can we pull in this fix if it looks good to everybody? > From 06b0fc9d62592f6f3ad9f45cccf1f6a5b3113bdc Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Thu, 5

Re: [PATCH V16 11/11] x86,cgroup/intel_rdt : Add a cgroup interface to manage Intel cache allocation

2015-12-21 Thread Luiz Capitulino
On Sat, 19 Dec 2015 22:57:30 -0200 Marcelo Tosatti wrote: > On Sat, Dec 19, 2015 at 11:42:57AM +0100, Thomas Gleixner wrote: > > On Thu, 17 Dec 2015, Fenghua Yu wrote: > > > > > From: Fenghua Yu > > > > > > From: Vikas Shivappa > > > > > > Add a new cgroup 'intel_rdt' to manage cache allocat

Re: [PATCH 1/4] x86/efi: show actual ending addresses in efi_print_memmap

2015-12-21 Thread Matt Fleming
On Thu, 17 Dec, at 07:28:31PM, Robert Elliott wrote: > Adjust efi_print_memmap to print the real end address of each > range, not 1 byte beyond. This matches other prints like those for > SRAT and nosave memory. > > Change the closing ) to ] to match the opening [. > > old: > efi: mem61: [Per

[PATCH 3/3 v2] btrfs: use list_for_each_entry* in backref.c

2015-12-21 Thread Geliang Tang
Use list_for_each_entry*() to simplify the code. Signed-off-by: Geliang Tang --- Changes in v2: - Use list_for_each_entry_safe_continue() in __merge_refs(). --- fs/btrfs/backref.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/fs/btrfs/backref.c b/f

Re: [PATCH 2/4] efi: add NV memory attribute

2015-12-21 Thread Matt Fleming
(Cc'ing people that have worked in this area recently) On Thu, 17 Dec, at 07:28:32PM, Robert Elliott wrote: > Add the NV memory attribute introduced in UEFI 2.5 and add a column > for it in the types and attributes string used when printing the UEFI > memory map. > > old: > efi: mem61: [type=14

Re: [PATCH V16 00/11] x86: Intel Cache Allocation Technology Support

2015-12-21 Thread Luiz Capitulino
On Thu, 17 Dec 2015 14:46:05 -0800 "Fenghua Yu" wrote: > Changes in V16: > - Port to latest upstream kernel > - Add a spin lock to handle contention when writing closid to MSR and >creating closid by a user. Fenghua, Peter, what about all the discussion v15 got about this interface being j

[PATCH] ALSA: usb-audio: use list_for_each_entry_continue_reverse

2015-12-21 Thread Geliang Tang
For better readability, use list_for_each_entry_continue_reverse() in have_dup_chmap(). Signed-off-by: Geliang Tang --- sound/usb/stream.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/usb/stream.c b/sound/usb/stream.c index 8ee14f2..c4dc577 100644 --- a/sound/u

Re: [PATCH/RFC] mm/swapfile: reduce kswapd overhead by not filling up disks

2015-12-21 Thread Vlastimil Babka
On 12/11/2015 04:09 PM, Christian Borntraeger wrote: if a user has more than one swap disk with different priorities, the swap code will fill up the hight prio disk until the last block is used. The swap code will continue to scan the first disk also when its already filling the 2nd or 3rd disk.

Re: [PATCH V5 1/2] watchdog: Use static struct class watchdog_class in stead of pointer

2015-12-21 Thread Guenter Roeck
On 12/18/2015 08:22 PM, Pratyush Anand wrote: On 17/12/2015:06:56:27 AM, Guenter Roeck wrote: On 12/17/2015 04:23 AM, Pratyush Anand wrote: We need few sysfs attributes to know different status of a watchdog device. To do that, we need to associate .dev_groups with watchdog_class. So convert it

Re: [PATCH] Adding Reset resume support for CDC-EEM driver.

2015-12-21 Thread Alan Stern
On Mon, 21 Dec 2015, Vikas Bansal wrote: > Pre-Condition > At the time of reset resume of a USB device, both self and bus powered > devices might go to a low power state or power off state depending on the > acceptable suspend time power of the system. > In case the device experiences a powe

Re: [PATCH 1/4] x86/efi: show actual ending addresses in efi_print_memmap

2015-12-21 Thread Matt Fleming
On Mon, 21 Dec, at 03:50:38PM, Matt Fleming wrote: > On Thu, 17 Dec, at 07:28:31PM, Robert Elliott wrote: > > Adjust efi_print_memmap to print the real end address of each > > range, not 1 byte beyond. This matches other prints like those for > > SRAT and nosave memory. > > > > Change the closing

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

2015-12-21 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 04:54:17PM -0800, Andi Kleen wrote: > 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 a

Re: [PATCH V5 1/2] watchdog: Use static struct class watchdog_class in stead of pointer

2015-12-21 Thread Pratyush Anand
On 21/12/2015:07:52:59 AM, Guenter Roeck wrote: > On 12/18/2015 08:22 PM, Pratyush Anand wrote: > >On 17/12/2015:06:56:27 AM, Guenter Roeck wrote: > >>On 12/17/2015 04:23 AM, Pratyush Anand wrote: > >>>We need few sysfs attributes to know different status of a watchdog device. > >>>To do that, we n

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

2015-12-21 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 04:54:18PM -0800, Andi Kleen wrote: > 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. > >

RE: [PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-21 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Friday, December 18, 2015 9:14 AM > To: Hannes Reinecke ; KY Srinivasan ; > gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; oher...@suse.com; > jbo

Re: [PATCH 4/4] x86/efi: print size and base in binary units in efi_print_memmap

2015-12-21 Thread Matt Fleming
On Thu, 17 Dec, at 07:28:34PM, Robert Elliott wrote: > Print the base address for each range in decimal alongside the size. > Use a "(size @ base)" format similar to the fake_memmap kernel parameter. > > Print the range and base in the best-fit B, KiB, MiB, etc. units rather > than always MiB. Th

Re: [PATCH v2 1/3] ACPI: amba bus probing support

2015-12-21 Thread kbuild test robot
Hi Graeme, [auto build test ERROR on pm/linux-next] [also build test ERROR on v4.4-rc6 next-20151221] url: https://github.com/0day-ci/linux/commits/Aleksey-Makarov/ACPI-amba-bus-probing-support/20151221-225448 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux

Re: [PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-21 Thread James Bottomley
On Sat, 2015-12-19 at 02:28 +, KY Srinivasan wrote: > > > -Original Message- > > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com > > ] > > Sent: Friday, December 18, 2015 8:48 AM > > To: KY Srinivasan ; Hannes Reinecke < > > h...@suse.de>; > > gre...@linuxfoundation

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

2015-12-21 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 04:54:18PM -0800, Andi Kleen wrote: > 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. > >

[PULL] ACPI support for GICv2m

2015-12-21 Thread Marc Zyngier
Thomas, While I was really thinking that the GIC stuff was over and done with for this release, people have been busy Acking patches. Who wants another helping of GIC for Christmas? ;-) So here is the next batch of ACPI-related changes for the GIC family, this time affecting the GICv2m MSI contro

Re: [PATCH 1/2] clk: tegra: Fix warning caused by pll_u failing to lock

2015-12-21 Thread Rhyland Klein
On 12/21/2015 7:56 AM, Jon Hunter wrote: > If the pll_u is not configured by the bootloader, then on kernel boot the > following warning is seen: > > clk_pll_wait_for_lock: Timed out waiting for pll pll_u_vco lock > tegra_init_from_table: Failed to enable pll_u_out1 > [ cut here ]--

Re: [PATCH 2/2] clk: tegra: Use definition for pll_u override bit

2015-12-21 Thread Rhyland Klein
On 12/21/2015 7:56 AM, Jon Hunter wrote: > The definition, PLLU_BASE_OVERRIDE, for the pll_u OVERRIDE bit is defined > but not used and when the OVERRIDE bit is cleared in tegra210_pll_init() > the code directly uses the bit number. Therefore, use the definition, > PLLU_BASE_OVERRIDE when clearing

[PATCH v3 0/3] Add AMBA bus probing support to ACPI

2015-12-21 Thread Aleksey Makarov
As discussed when Shannon Zhao sent a patch to add platform_device support to pl061 driver. Russel and other maintainers prefered that ACPI learned how to create AMBA devices rather than converting/adding platform_device support to AMBA drivers. http://comments.gmane.org/gmane.linux.ports.arm.kern

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

2015-12-21 Thread Andy Shevchenko
On Mon, 2015-12-21 at 15:24 +, Måns Rullgård wrote: > Julian Margetson writes: > > > Oh, that one again.  My patch still applies.  Here it is as applied > to > that revision of the file. > > From what I can tell, that bug has always been there.  Probably > nobody > ever tested the driver in

[PATCH v3 1/3] ACPI: amba bus probing support

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory On ARM64 some devices use the AMBA device and not the platform bus for probing so add support for this. Uses a dummy clock for apb_pclk as ACPI does not have a suitable clock representation and to keep the core AMBA bus code unchanged between probing methods. Signed-off-by:

RE: [PATCH 1/4] x86/efi: show actual ending addresses in efi_print_memmap

2015-12-21 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Matt Fleming [mailto:m...@codeblueprint.co.uk] > Sent: Monday, December 21, 2015 9:51 AM > To: Elliott, Robert (Persistent Memory) > Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel

[PATCH v3 3/3] serial: amba-pl011: add ACPI support to AMBA probe

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory In ACPI this device is only defined in SBSA mode so if we are coming from ACPI use this mode. Signed-off-by: Graeme Gregory Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 37 ++--- 1 file changed, 26 insertions(+), 11

[PATCH v3 2/3] ACPI: scan add in amba probing

2015-12-21 Thread Aleksey Makarov
From: Graeme Gregory Add a new ACPI scan handler for AMBA devices. Signed-off-by: Graeme Gregory Signed-off-by: Aleksey Makarov --- drivers/acpi/scan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 78d5f02..20c8cba 100644 --- a/drivers/acp

Re: [PATCH v2 1/9] ARM: mvebu: ix4-300d: Add compatible property to "partitions" node

2015-12-21 Thread Gregory CLEMENT
Hi Geert, On lun., déc. 21 2015, Geert Uytterhoeven wrote: > As of commit e488ca9f8d4f62c2 ("doc: dt: mtd: partitions: add compatible > property to "partitions" node"), the "partitions" subnode of an SPI > FLASH device node must have a compatible property. The partitions are no > longer detect

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

2015-12-21 Thread Andy Shevchenko
On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote: > On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko > wrote: > > On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård > > wrote: > > I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32 > > items on this board, however registers for

Re: [PATCH v2 2/9] ARM: mvebu: kirkwood: Add compatible property to "partitions" node

2015-12-21 Thread Gregory CLEMENT
Hi Geert, On lun., déc. 21 2015, Geert Uytterhoeven wrote: > As of commit e488ca9f8d4f62c2 ("doc: dt: mtd: partitions: add compatible > property to "partitions" node"), the "partitions" subnode of an SPI > FLASH device node must have a compatible property. The partitions are no > longer detect

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-21 Thread Sebastian Frias
Hi Peter, On 12/18/2015 04:03 PM, Peter Hurley wrote: I totally understand, we have the same constraints with our SDK's APIs but with major versions we drop old APIs that have been superseded. I would have thought that the switch to DT would have been a good opportunity to clean all that up,

[PATCH] wlcore: consolidate kmalloc + memset 0 into kzalloc

2015-12-21 Thread Nicholas Mc Guire
(implies CONFIG_WLCORE=m) Patch is against linux-next (localversion-next is -next-20151221) drivers/net/wireless/ti/wlcore/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index ec7f6af

[PATCH 1/5] pinctrl-tegra: add missing of_node_put

2015-12-21 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a return from the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; @@ for_each_child_of_n

Re: [PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2015-12-21 Thread Thomas Gleixner
On Mon, 21 Dec 2015, Will Deacon wrote: > +static void send_user_sigtrap(int si_code) > +{ > + struct pt_regs *regs = current_pt_regs(); > + siginfo_t info = { > + .si_signo = SIGTRAP, > + .si_errno = 0, > + .si_code= si_code, > +

[PATCH 0/5] add missing of_node_put

2015-12-21 Thread Julia Lawall
The various for_each device_node iterators performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. The complete semantic patch that fixes this problem is (http://coccinelle.lip6.fr): // @r@ local idexpression n; expression e1,e2; iterator name for_each_node

[PATCH 3/5] pinctrl: sh-pfc: add missing of_node_put

2015-12-21 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a goto out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; identifier l; @@ for_e

[PATCH 5/5] pinctrl: mediatek: add missing of_node_put

2015-12-21 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a return from the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; @@ for_each_child_of_n

[PATCH 4/5] pinctrl: rockchip: add missing of_node_put

2015-12-21 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a return from the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; @@ for_each_child_of_n

[PATCH 2/5] pinctrl: sirf: add missing of_node_put

2015-12-21 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a return from the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; @@ for_each_child_of_n

Re: [PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2015-12-21 Thread Will Deacon
On Mon, Dec 21, 2015 at 05:51:22PM +0100, Thomas Gleixner wrote: > On Mon, 21 Dec 2015, Will Deacon wrote: > > +static void send_user_sigtrap(int si_code) > > +{ > > + struct pt_regs *regs = current_pt_regs(); > > + siginfo_t info = { > > + .si_signo = SIGTRAP, > > + .

Re: [PATCH v10 1/1] efi: a misc char interface for user to update efi firmware

2015-12-21 Thread Bryan O'Donoghue
Small nit. On Fri, 2015-12-18 at 20:13 +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > Introducing a kernel module to expose capsule loader interface > (misc char device file note) for user to upload capsule binaries. This patch ? introduces a kernel module to expose a capsule loa

Re: Rethinking sigcontext's xfeatures slightly for PKRU's benefit?

2015-12-21 Thread Dave Hansen
On 12/18/2015 03:16 PM, Andy Lutomirski wrote: > Hrm. We might also want an option to change pkru and/or baseline_pkru > in all threads in the current mm. That's optional but it could be > handy. Maybe it would be as simple as having the allocate-a-pkey call > have an option to set an initial ba

Re: [PATCH v5 4/7] dax: add support for fsync/sync

2015-12-21 Thread Ross Zwisler
On Sat, Dec 19, 2015 at 10:37:46AM -0800, Dan Williams wrote: > On Fri, Dec 18, 2015 at 9:22 PM, Ross Zwisler > wrote: > > To properly handle fsync/msync in an efficient way DAX needs to track dirty > > pages so it is able to flush them durably to media on demand. > > > > The tracking of dirty pag

Re: [PATCH v5] arm64: run-time detection for aarch32 support

2015-12-21 Thread Catalin Marinas
On Mon, Dec 21, 2015 at 07:44:10AM +0300, Yury Norov wrote: > Kernel option COMPAT defines the ability of executing aarch32 binaries. > Some platforms does not support aarch32 mode, and so cannot execute that > binaries. But we cannot just disable COMPAT for them because the same > kernel binary ma

Re: linux-next: Tree for Dec 16 (lib/842/842_decompress)

2015-12-21 Thread Dan Streetman
On Fri, Dec 18, 2015 at 11:08 AM, Randy Dunlap wrote: > On 12/18/15 06:32, Dan Streetman wrote: >> On Wed, Dec 16, 2015 at 3:23 PM, Randy Dunlap wrote: >>> On 12/15/15 21:43, Stephen Rothwell wrote: Hi all, Changes since 20151215: The drm-misc tree gained a conflict again

Re: [PATCH v5 2/7] dax: support dirty DAX entries in radix tree

2015-12-21 Thread Jan Kara
On Fri 18-12-15 22:22:15, Ross Zwisler wrote: > Add support for tracking dirty DAX entries in the struct address_space > radix tree. This tree is already used for dirty page writeback, and it > already supports the use of exceptional (non struct page*) entries. > > In order to properly track dirt

[PATCH] sched: reset task's lockless wake-queues on fork()

2015-12-21 Thread Sebastian Andrzej Siewior
In 7675104990ed ("sched: Implement lockless wake-queues") we gained lockless wake-queues. -RT managed to lockup itself with those. There could be multiple attempts for task X to enqueue it for a wakeup _even_ if task X is already running. The reason is that task X could be runnable but not yet on C

Re: [PATCH] ARM: multi_v7_defconfig: enable TPS65217 regulator

2015-12-21 Thread Olof Johansson
Hi, On Mon, Dec 21, 2015 at 2:24 AM, Afzal Mohammed wrote: > Hi Olof, > > On Sun, Dec 20, 2015 at 10:44:53AM -0800, Olof Johansson wrote: >> On Wed, Nov 11, 2015 at 12:39:13PM +0530, Afzal Mohammed wrote: > >> > Enable TPS65217 regulator to have rootfs in MMC for Beagle Bone's. >> > >> > Suggeste

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

2015-12-21 Thread Julian Margetson
On 12/21/2015 12:48 PM, Andy Shevchenko wrote: On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote: On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko wrote: On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård wrote: I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32 items on th

Re: Ques: [kernel/time/*] Is there any disadvantage in using sleep_range for more than 20ms delay ?

2015-12-21 Thread Aniroop Mathur
On Tue, Dec 15, 2015 at 1:23 AM, Thomas Gleixner wrote: > On Tue, 15 Dec 2015, Aniroop Mathur wrote: >> On Sun, Dec 13, 2015 at 3:17 PM, Clemens Ladisch wrote: >> > Aniroop Mathur wrote: >> >>> 2. If we use msleep(40), is it possible that process could wake up after >> >>> 60 ms or 70 ms or 100 m

Re: Query about merging memblock and bootmem into one new alloc

2015-12-21 Thread Laura Abbott
On 12/19/2015 05:57 AM, Sumit Gupta wrote: Hi All, For ARM Linux, during booting first memblock reserves memory regions then bootmem allocator create node, mem_map, page bitmap data and then hands over to buddy. I have been thinking from some time about why we need two different allocators for t

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

2015-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård wrote: > Andy Shevchenko writes: > >> +Viresh >> >> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård wrote: >>> Andy Shevchenko writes: >>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård wrote: > Julian Margetson writes: >> On 12/20/20

Re: [PATCH] arm64: reenable interrupt when handling ptrace breakpoint

2015-12-21 Thread Shi, Yang
On 12/21/2015 9:00 AM, Will Deacon wrote: On Mon, Dec 21, 2015 at 05:51:22PM +0100, Thomas Gleixner wrote: On Mon, 21 Dec 2015, Will Deacon wrote: +static void send_user_sigtrap(int si_code) +{ + struct pt_regs *regs = current_pt_regs(); + siginfo_t info = { + .si_sign

[PATCH v7 0/4] Allow customizable random offset to mmap_base address.

2015-12-21 Thread Daniel Cashman
Address Space Layout Randomization (ASLR) provides a barrier to exploitation of user-space processes in the presence of security vulnerabilities by making it more difficult to find desired code/data which could help an attack. This is done by adding a random offset to the location of regions in

[PATCH v7 3/4] arm64: mm: support ARCH_MMAP_RND_BITS.

2015-12-21 Thread Daniel Cashman
From: dcashman arm64: arch_mmap_rnd() uses STACK_RND_MASK to generate the random offset for the mmap base address. This value represents a compromise between increased ASLR effectiveness and avoiding address-space fragmentation. Replace it with a Kconfig option, which is sensibly bounded, so tha

[PATCH v7 4/4] x86: mm: support ARCH_MMAP_RND_BITS.

2015-12-21 Thread Daniel Cashman
From: dcashman x86: arch_mmap_rnd() uses hard-coded values, 8 for 32-bit and 28 for 64-bit, to generate the random offset for the mmap base address. This value represents a compromise between increased ASLR effectiveness and avoiding address-space fragmentation. Replace it with a Kconfig option,

<    1   2   3   4   5   6   7   8   9   >