Re: [BUG] perf tools: Demangle kernel and kernel module symbols too

2014-09-12 Thread Jiri Olsa
ping On Sat, Sep 06, 2014 at 08:46:31PM +0200, Jiri Olsa wrote: > hi, > Jan Stancek found test 1 breakage, probably caused by following patch: > 950b8354716e perf tools: Demangle kernel and kernel module symbols too > > it seems to break test 1: > --- > [jolsa@krava perf]$ ./perf test -v 1 >

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Dave Hansen
On 09/12/2014 01:11 AM, Thomas Gleixner wrote: > So what you are saying is, that if user space sets the pointer to NULL > via the unregister prctl, kernel can safely ignore vmas which have the > VM_MPX flag set. I really can't follow that logic. > > mmap_mpx(); > prctl(enable mpx); >

Re: [PATCH v2 9/9] blk-mq: support per-distpatch_queue flush machinery

2014-09-12 Thread Jens Axboe
On 2014-09-12 08:47, Ming Lei wrote: @@ -31,7 +33,15 @@ extern struct ida blk_queue_ida; static inline struct blk_flush_queue *blk_get_flush_queue( struct request_queue *q, struct blk_mq_ctx *ctx) { - return q->fq; + struct blk_mq_hw_ctx *hctx; + + if

Re: [PATCH v2 8/9] blk-mq: handle failure path for initializing hctx

2014-09-12 Thread Jens Axboe
On 2014-09-12 08:47, Ming Lei wrote: Failure of initializing one hctx isn't handled, so this patch introduces blk_mq_init_hctx() and its pair to handle it explicitly. Also this patch makes code cleaner. I like this, it's a good cleanup. -- Jens Axboe -- To unsubscribe from this list: send

Re: [PATCH v4 05/18] ARM64 / ACPI: Introduce sleep-arm.c

2014-09-12 Thread Graeme Gregory
On Fri, Sep 12, 2014 at 03:51:02PM +0100, Catalin Marinas wrote: > On Fri, Sep 12, 2014 at 03:00:03PM +0100, Hanjun Guo wrote: > > --- a/drivers/acpi/Makefile > > +++ b/drivers/acpi/Makefile > > @@ -23,7 +23,11 @@ acpi-y += nvs.o > > > > # Power management related

Re: [PATCH v2 2/9] block: introduce blk_init_flush and its pair

2014-09-12 Thread Jens Axboe
On 2014-09-12 08:47, Ming Lei wrote: These two functions are introduced to initialize and de-initialize flush stuff centrally. I know you said these change later to more proper naming, but that only happens further down. Lets get rid of these wrappers and just call blk_alloc_flush_queue()

Re: [RFC PATCH v2 1/2] amba: Allow AMBA drivers to use their own runtime PM

2014-09-12 Thread Russell King - ARM Linux
On Fri, Sep 12, 2014 at 04:56:18PM +0200, Krzysztof Kozlowski wrote: > The AMBA bus driver defines runtime Power Management functions which > disable and unprepare AMBA bus clock. This is problematic for runtime PM > because unpreparing a clock might sleep so it is not interrupt safe. > > However

Re: [PATCH RESEND v9 1/5] rtc: max77686: Allow the max77686 rtc to wakeup the system

2014-09-12 Thread Doug Anderson
Hi, On Fri, Sep 12, 2014 at 1:17 AM, Javier Martinez Canillas wrote: > From: Doug Anderson > > The max77686 includes an RTC that keeps power during suspend. It's > convenient to be able to use it as a wakeup source. > > NOTE: due to wakeup ordering problems this patch alone doesn't work so >

Re: vga and 64-bit memcpy's

2014-09-12 Thread Linus Torvalds
On Fri, Sep 12, 2014 at 3:48 AM, Dave Airlie wrote: > > Well I'm not shocked that an SMI GPU is out of spec, just not sure how > we can workaround it. Try just removing the #define scr_memcpyw(d, s, c) memcpy(d, s, c) #define VT_BUF_HAVE_MEMCPYW (and perhaps MEMMOVEW case too) from the

Re: [PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Petr Mladek
On Fri 2014-09-12 10:16:21, Alan Stern wrote: > On Fri, 12 Sep 2014, Petr Mladek wrote: > > > There is no need to have separate kthread for handling USB hub events. > > It is more elegant to use the workqueue framework. > > > > The workqueue is allocated as unbound, cpu intensive, and freezable.

[RFC PATCH v2 1/2] amba: Allow AMBA drivers to use their own runtime PM

2014-09-12 Thread Krzysztof Kozlowski
The AMBA bus driver defines runtime Power Management functions which disable and unprepare AMBA bus clock. This is problematic for runtime PM because unpreparing a clock might sleep so it is not interrupt safe. However some drivers may want to implement runtime PM functions in interrupt-safe way

[RFC PATCH v2 0/2] amba/dma: pl330: add Power Management support

2014-09-12 Thread Krzysztof Kozlowski
Hi, This is second request for comments for adding runtime PM to the pl330 driver. The runtime PM of pl330 driver requires interrupt safe suspend/resume callbacks which is in conflict with amba bus driver. The latter also unprepares and prepares the AMBA bus clock which is not safe for atomic

[RFC PATCH v2 2/2] dma: pl330: add Power Management support

2014-09-12 Thread Krzysztof Kozlowski
This patch adds both normal PM suspend/resume support and runtime PM support to pl330 DMA engine driver. The runtime power management for pl330 DMA driver allows gating of AMBA clock (PDMA) in FSYS clock domain, when the device is not processing any requests. This is necessary to enter W-AFTR low

Re: [PATCH 0/2] PCI: Ignore hotplug events for dual GPU systems

2014-09-12 Thread Alex Deucher
On Thu, Sep 11, 2014 at 6:23 PM, Bjorn Helgaas wrote: > These are intended to resolve problems on dual GPU systems where the radeon > driver becomes unusable because of problems suspending or resuming a GPU. > When the GPU is powered off, we may get hotplug remove events, and we > would normally

[PATCH v3 4/4] fuse: Add support for mounts from user namespaces

2014-09-12 Thread Seth Forshee
Update fuse to support mounts from within user namespaces. This is mostly a matter of translating uids and gids into the namespace of the process reading requests before handing the requests off to userspace. Due to security concerns the namespace used should be fixed, otherwise a user might be

Re: [PATCH v4 05/18] ARM64 / ACPI: Introduce sleep-arm.c

2014-09-12 Thread Catalin Marinas
On Fri, Sep 12, 2014 at 03:00:03PM +0100, Hanjun Guo wrote: > --- a/drivers/acpi/Makefile > +++ b/drivers/acpi/Makefile > @@ -23,7 +23,11 @@ acpi-y += nvs.o > > # Power management related files > acpi-y += wakeup.o > +ifeq ($(ARCH),

Re: [PATCH 8/9] locktorture: Support rwsems

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 09:37 +0200, Peter Zijlstra wrote: > On Thu, Sep 11, 2014 at 09:41:30PM -0700, Davidlohr Bueso wrote: > > We can easily do so with our new reader lock support. Just an arbitrary > > design default: readers have higher (5x) critical region latencies than > > writers: 50 ms and

[PATCH v2 3/9] block: move flush initialization to blk_flush_init

2014-09-12 Thread Ming Lei
These fields are always used with the flush request, so initialize them together. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-core.c |3 --- block/blk-flush.c |4 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/block/blk-core.c

[PATCH v2 5/9] block: introduce blk_flush_queue to drive flush machinery

2014-09-12 Thread Ming Lei
This patch introduces 'struct blk_flush_queue' and puts all flush machinery related fields into this structure, so that - flush implementation details aren't exposed to driver - it is easy to convert to per dispatch-queue flush machinery This patch is basically a mechanical

[PATCH v2 9/9] blk-mq: support per-distpatch_queue flush machinery

2014-09-12 Thread Ming Lei
This patch supports to run one single flush machinery for each blk-mq dispatch queue, so that: - current init_request and exit_request callbacks can cover flush request too, then the buggy copying way of initializing flush request's pdu can be fixed - flushing performance gets improved in case

[PATCH v2 4/9] block: avoid to use q->flush_rq directly

2014-09-12 Thread Ming Lei
This patch trys to use local variable to access flush request, so that we can convert to per-queue flush machinery a bit easier. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-flush.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH v2 8/9] blk-mq: handle failure path for initializing hctx

2014-09-12 Thread Ming Lei
Failure of initializing one hctx isn't handled, so this patch introduces blk_mq_init_hctx() and its pair to handle it explicitly. Also this patch makes code cleaner. Signed-off-by: Ming Lei --- block/blk-mq.c | 114 ++-- 1 file changed, 69

[PATCH v2 7/9] block: introduce 'blk_mq_ctx' parameter to blk_get_flush_queue

2014-09-12 Thread Ming Lei
This patch adds 'blk_mq_ctx' parameter to blk_get_flush_queue(), so that this function can find the corresponding blk_flush_queue bound with current mq context since the flush queue will become per hw-queue. For legacy queue, the parameter can be simply 'NULL'. For multiqueue case, the parameter

[PATCH v2 6/9] block: flush: avoid to figure out flush queue unnecessarily

2014-09-12 Thread Ming Lei
Just figuring out flush queue at the entry of kicking off flush machinery and request's completion handler, then pass it through. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-flush.c | 30 -- 1 file changed, 16 insertions(+), 14

[PATCH v2 0/9] block: per-distpatch_queue flush machinery

2014-09-12 Thread Ming Lei
Hi, As recent discussion, especially suggested by Christoph, this patchset implements per-distpatch_queue flush machinery, so that: - current init_request and exit_request callbacks can cover flush request too, then the buggy copying way of initializing flush request's

[PATCH v2 2/9] block: introduce blk_init_flush and its pair

2014-09-12 Thread Ming Lei
These two functions are introduced to initialize and de-initialize flush stuff centrally. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-core.c |5 ++--- block/blk-flush.c | 19 ++- block/blk-mq.c|2 +- block/blk-mq.h|1 -

[PATCH v2 1/9] blk-mq: allocate flush_rq in blk_mq_init_flush()

2014-09-12 Thread Ming Lei
It is reasonable to allocate flush req in blk_mq_init_flush(). Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-flush.c | 11 ++- block/blk-mq.c| 16 ++-- block/blk-mq.h|2 +- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git

Re: [PATCH 2/6] phy: improved lookup method

2014-09-12 Thread Kishon Vijay Abraham I
Hi, On Friday 12 September 2014 07:37 PM, Heikki Krogerus wrote: > On Thu, Sep 11, 2014 at 09:03:06PM +0530, Kishon Vijay Abraham I wrote: >>> +static struct phy *phy_find(struct device *dev, const char *con_id) >>> +{ >>> + const char *dev_id = dev ? dev_name(dev) : NULL; >>> + int match,

Re: [PATCH] fs: replace int param with size_t for seq_open_private()

2014-09-12 Thread Rob Jones
On 12/09/14 15:16, Richard Weinberger wrote: On Thu, Sep 11, 2014 at 6:25 PM, Rob Jones wrote: On 01/09/14 16:36, Al Viro wrote: On Mon, Sep 01, 2014 at 02:17:08PM +0100, Rob Jones wrote: void *__seq_open_private(struct file *f, const struct seq_operations *ops, - int

[PATCH v3 2/4] vfs,userns: Ensure real root is always capable towards inodes

2014-09-12 Thread Seth Forshee
Currently root is restricted from performing some modifications to inodes whose owner is INVALID_UID or group is INVALID_GID because this id doesn't map into any user namespace. Add a special case to the relevant checks to make sure root is always capable of performing these operations.

[PATCH v3 3/4] fuse: Translate pids passed to userspace into pid namespaces

2014-09-12 Thread Seth Forshee
If the process reading on the fuse fd is executing in a pid namespace then giving it the global pid of the process making a request doesn't make sense. Instead, capture the pid namespace when the filesystem is first mounted and translate pids into this namespace before passing them to userspace.

[PATCH v3 1/4] vfs: Check for invalid i_uid in may_follow_link()

2014-09-12 Thread Seth Forshee
Filesystem uids which don't map into a user namespace may result in inode->i_uid being INVALID_UID. A symlink and its parent could have different owners in the filesystem can both get mapped to INVALID_UID, which may result in following a symlink when this would not have otherwise been permitted.

[PATCH v3 0/4] fuse: Add support for mounts from pid/user namespaces

2014-09-12 Thread Seth Forshee
Third round of patches for making it possible to mount with fuse from within user namespaces. The only change since v2 is the addition of a patch to ensure real root is capable towards inodes whose uid/gid is invalid. Thanks, Seth Seth Forshee (4): vfs: Check for invalid i_uid in

[GIT PULL] arm64: couple of fixes for -rc5

2014-09-12 Thread Will Deacon
Hi Linus, Please can you pull these two arm64 fixes for -rc5? The IRQ migration fix turned up late last time and there's also a TLS leaking issue that we just fixed for arch/arm/ too. To keep things interesting, I've signed the tag using my Yubikey from KS. Given that it only supports 2048-bit

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Dave Hansen
On 09/12/2014 02:24 AM, Thomas Gleixner wrote: > On Fri, 12 Sep 2014, Thomas Gleixner wrote: >> On Thu, 11 Sep 2014, Dave Hansen wrote: >>> Well, we use it to figure out whether we _potentially_ need to tear down >>> an VM_MPX-flagged area. There's no guarantee that there will be one. >> >> So

[PATCH v5 0002/0003] mmc: Replace "enhanced_area_en" attribute by "partition_setting_completed"

2014-09-12 Thread Grégory Soutadé
Replace ext_csd "enhanced_area_en" attribute by "partition_setting_completed". It was used whether or not enhanced user area is defined and without checks of EXT_CSD_PARTITION_SETTING_COMPLETED bit. Signed-off-by: Grégory Soutadé --- drivers/mmc/core/mmc.c | 14 +-

[PATCH v5 0001/0003] mmc: Move code that manages user area and gp partitions into functions

2014-09-12 Thread Grégory Soutadé
Move code that manages user area and general purpose partitions into functions. Signed-off-by: Grégory Soutadé --- drivers/mmc/core/mmc.c | 162 ++-- 1 file changed, 89 insertions(+), 73 deletions(-) diff --git a/drivers/mmc/core/mmc.c

[PATCH v5 0000/0003] mmc: EXT_CSD_PARTITION_SETTING_COMPLETED bit not checked

2014-09-12 Thread Grégory Soutadé
JEDEC standard requires that EXT_CSD_PARTITION_SETTING_COMPLETED bit must be set in order to take in account enhanced area and general purpose partitions (gp) values. Current code doesn't checks this bit and blindly trust enhanced area and gp values. Moreover, "enhanced_area_en" attribute was set

[PATCH v5 0003/0003] mmc: Checks EXT_CSD_PARTITION_SETTING_COMPLETED before partitions computation

2014-09-12 Thread Grégory Soutadé
Checks EXT_CSD_PARTITION_SETTING_COMPLETED bit before computing enhanced user area offset and size, and adding mmc general purpose partitions. The two needs EXT_CSD_PARTITION_SETTING_COMPLETED bit be set to be valid (as described in JEDEC standard). Warn user in case of misconfiguration.

Re: [PATCH 2/4] usb: hub: remove obsolete while cycle in hub_event()

2014-09-12 Thread Alan Stern
On Fri, 12 Sep 2014, Petr Mladek wrote: > The USB hub events are proceed by workqueue instead of kthread now. > The result is that hub_event() function processes only one event. > The while cycle was not removed earlier to show the real changes when > switching to the workqueue. > > This patch

Re: [PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Alan Stern
On Fri, 12 Sep 2014, Petr Mladek wrote: > There is no need to have separate kthread for handling USB hub events. > It is more elegant to use the workqueue framework. > > The workqueue is allocated as unbound, cpu intensive, and freezable. > There does not seem to be any big advantage to run it

Re: [PATCH 11/14] tools lib api: Adopt fdarray class from perf's evlist

2014-09-12 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 12, 2014 at 04:16:32PM +0200, Jiri Olsa escreveu: > On Fri, Sep 12, 2014 at 10:44:29AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Sep 12, 2014 at 02:58:22PM +0200, Jiri Olsa escreveu: > > > On Wed, Sep 10, 2014 at 11:08:46AM -0300, Arnaldo Carvalho de Melo wrote: > > > > +

Re: [PATCH] usb: hub: wrong order of putting interfaces when processing hub events

2014-09-12 Thread Petr Mladek
On Fri 2014-09-12 10:06:03, Alan Stern wrote: > On Fri, 12 Sep 2014, Petr Mladek wrote: > > > usb_autopm_put_interface() must be called only when > > usb_autopm_get_interface() > > succeeded before. There was wrong ordering of the goto targets. > > No, you are wrong. The code is correct as it

Re: [PATCH 11/14] tools lib api: Adopt fdarray class from perf's evlist

2014-09-12 Thread Jiri Olsa
On Fri, Sep 12, 2014 at 10:44:29AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 12, 2014 at 02:58:22PM +0200, Jiri Olsa escreveu: > > On Wed, Sep 10, 2014 at 11:08:46AM -0300, Arnaldo Carvalho de Melo wrote: > > > SNIP > > > > +struct fdarray *fdarray__new(int nr_alloc, int

Re: [PATCH] fs: replace int param with size_t for seq_open_private()

2014-09-12 Thread Richard Weinberger
On Thu, Sep 11, 2014 at 6:25 PM, Rob Jones wrote: > > > On 01/09/14 16:36, Al Viro wrote: >> >> On Mon, Sep 01, 2014 at 02:17:08PM +0100, Rob Jones wrote: >> >>> void *__seq_open_private(struct file *f, const struct seq_operations >>> *ops, >>> - int psize) >>> +

Re: [PATCH 6/6] usb: dwc3: host: convey the PHYs to xhci

2014-09-12 Thread Kishon Vijay Abraham I
Hi, On Friday 12 September 2014 07:19 PM, Heikki Krogerus wrote: > On Thu, Sep 11, 2014 at 08:31:19PM +0530, Kishon Vijay Abraham I wrote: >>> @@ -60,22 +59,33 @@ int dwc3_host_init(struct dwc3 *dwc) >>> goto err1; >>> } >>> >>> + phy_create_lookup(dwc->usb2_generic_phy,

Re: [PATCH v2] deb-pkg: Add support for powerpc little endian

2014-09-12 Thread Michal Marek
On 2014-09-07 04:42, Ben Hutchings wrote: > On Fri, 2014-09-05 at 09:09 -0300, Thadeu Lima de Souza Cascardo wrote: >> On Fri, Sep 05, 2014 at 05:55:18PM +1000, Michael Neuling wrote: >>> On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote: On Fri, Sep 05, 2014 at 03:28:47PM +1000,

Re: [PATCH v2] perf tools: Fix build-id matching on vmlinux

2014-09-12 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 12, 2014 at 03:14:51PM +0900, Namhyung Kim escreveu: > On Fri, 5 Sep 2014 12:44:02 -0300, Arnaldo Carvalho de Melo wrote: > > It seems we need a way to state that an entry in the build-id table is > > for the kernel, without looking at its file name. > Maybe we can add a new

[PATCH 1/2] fs: proc: use __seq_open_private()

2014-09-12 Thread Rob Jones
Reduce boilerplate code by using __seq_open_private() instead of seq_open(). Signed-off-by: Rob Jones --- fs/proc/task_nommu.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c index 678455d..b141050 100644

[PATCH 0/2] fs: proc: use seq_open_private()

2014-09-12 Thread Rob Jones
Use __seq_open_private() to reduce boilerplate code in proc. This function has been around, undocumented, for years. It can simplify the set up code for seq file operations. Signed-off-by: Rob Jones Rob Jones (2): fs: proc: use __seq_open_private() fs: proc: use __seq_open_private()

[PATCH 2/2] fs: proc: use __seq_open_private()

2014-09-12 Thread Rob Jones
Reduce boilerplate code by using __seq_open_private() instead of seq_open(). Signed-off-by: Rob Jones --- fs/proc/task_mmu.c | 42 -- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index

Re: [PATCH 2/6] phy: improved lookup method

2014-09-12 Thread Heikki Krogerus
On Thu, Sep 11, 2014 at 09:03:06PM +0530, Kishon Vijay Abraham I wrote: > > +static struct phy *phy_find(struct device *dev, const char *con_id) > > +{ > > + const char *dev_id = dev ? dev_name(dev) : NULL; > > + int match, best_found = 0, best_possible = 0; > > + struct phy *phy =

[PATCH 3/3] phy: spear1340-miphy: fix driver dependencies

2014-09-12 Thread Kishon Vijay Abraham I
From: Bartlomiej Zolnierkiewicz ST SPEAR1340-MIPHY support should be available only on ST SPEAr1340 machine. Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Kyungmin Park Cc: Pratyush Anand Cc: Mohit Kumar Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig |1 + 1 file

[PATCH 1/3] phy: miphy365x: Fix off-by-one error

2014-09-12 Thread Kishon Vijay Abraham I
From: Lee Jones We index the RX/TX speed select values in the following way: rx_tx_spd[miphy_phy->sata_gen]; However rx_tx_spd[] starts at index zero and the SATA_GENx's start at one. In this patch we pad out the first element in rx_tx_spd[] in an attempt to realign the values. Cc:

Re: [PATCH] usb: hub: wrong order of putting interfaces when processing hub events

2014-09-12 Thread Alan Stern
On Fri, 12 Sep 2014, Petr Mladek wrote: > usb_autopm_put_interface() must be called only when usb_autopm_get_interface() > succeeded before. There was wrong ordering of the goto targets. No, you are wrong. The code is correct as it stands. > The funny thing is that the names of the goto

[GIT PULL 0/3] PHY: Fixes for 3.17 -rc cycle

2014-09-12 Thread Kishon Vijay Abraham I
Hi Greg, here's one more PULL REQUEST for this -rc cycle. It consists of only three fixes one in miphy365 PHY driver and the other two in Kconfig. Please consider merging this in ths -rc cycle. Let me know if I have to change something. Cheers Kishon The following changes since commit

Re: [PATCH v4 2/2] arcmsr: simplify of updating doneq_index and postq_index

2014-09-12 Thread Tomas Henzl
On 09/12/2014 10:22 AM, Ching Huang wrote: > From: Ching Huang > > This patch is to modify previous patch 16/17 and it is relative to > http://git.infradead.org/users/hch/scsi-queue.git/tree/arcmsr-for-3.18:/drivers/scsi/arcmsr > > change in v4: > 1. clean up of duplicate variable declaration in

[PATCH 2/3] phy: spear1310-miphy: fix driver dependencies

2014-09-12 Thread Kishon Vijay Abraham I
From: Bartlomiej Zolnierkiewicz ST SPEAR1310-MIPHY support should be available only on ST SPEAr1310 machine. Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Kyungmin Park Cc: Pratyush Anand Cc: Mohit Kumar Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig |1 + 1 file

[PATCH v4 15/18] ARM64 / ACPI: Parse GTDT to initialize arch timer

2014-09-12 Thread Hanjun Guo
Using the information presented by GTDT to initialize the arch timer (not memory-mapped). Originally-by: Amit Daniel Kachhap Signed-off-by: Hanjun Guo --- arch/arm64/kernel/time.c |7 ++ drivers/clocksource/arm_arch_timer.c | 117 --

[PATCH v4 03/18] ACPI / table: Count matched and successfully parsed entries without specifying max entries

2014-09-12 Thread Hanjun Guo
From: Tomasz Nowicki It is very useful to traverse all available table entries without max number of expected entries type. Current acpi_parse_entries() implementation gives that feature but it does not count those entries, it returns 0 instead, so fix it to count matched and successfully

[PATCH v4 09/18] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-09-12 Thread Hanjun Guo
There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the firmware is PSCI compliant. The latter selects the appropriate conduit for PSCI calls by toggling between Hypervisor Calls (HVC) and Secure Monitor Calls (SMC). FADT table contains such

Re: [PATCH 5/9] drm/exynos/crtc: fix framebuffer reference sequence

2014-09-12 Thread Daniel Vetter
On Fri, Sep 12, 2014 at 11:27:41AM +0200, Andrzej Hajda wrote: > On 09/12/2014 10:57 AM, Daniel Vetter wrote: > > On Fri, Sep 12, 2014 at 05:34:50PM +0900, Inki Dae wrote: > >> Hi Andrzej, > >> > >> On 2014년 09월 09일 22:16, Andrzej Hajda wrote: > >>> Adding reference to framebuffer should be

[PATCH v4 06/18] ARM64 / ACPI: Introduce early_param for "acpi"

2014-09-12 Thread Hanjun Guo
From: Al Stone Introduce one early parameters "off" for "acpi" to disable ACPI on ARM64. This ensures the kernel uses the DT on a platform that provides both ACPI tables and DT. Signed-off-by: Al Stone Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo ---

[PATCH v4 18/18] Documentation: ACPI for ARM64

2014-09-12 Thread Hanjun Guo
From: Graeme Gregory Add documentation for the guidelines of how to use ACPI on ARM64. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- Documentation/arm64/arm-acpi.txt | 218 ++ 1 file changed, 218 insertions(+) create mode 100644

[PATCH v4 14/18] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2014-09-12 Thread Hanjun Guo
From: Tomasz Nowicki ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic). In a similar way, FDT initialize GICv1/2.

[PATCH v4 10/18] ACPI / table: Print GIC information when MADT is parsed

2014-09-12 Thread Hanjun Guo
When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/acpi/tables.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/drivers/acpi/tables.c

[PATCH v4 12/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-09-12 Thread Hanjun Guo
Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to identify CPUs. Signed-off-by: Hanjun Guo ---

[PATCH v4 17/18] ARM64 / ACPI: Enable ARM64 in Kconfig

2014-09-12 Thread Hanjun Guo
From: Graeme Gregory Add Kconfigs to build ACPI on ARM64, and make ACPI available on ARM64. acpi_idle driver is x86/IA64 dependent now, so make CONFIG_ACPI_PROCESSOR depend on X86 || IA64, and implement it on ARM64 in the future. Reviewed-by: Grant Likely Signed-off-by: Graeme Gregory

[PATCH v4 11/18] ARM64 / ACPI: Parse MADT for SMP initialization

2014-09-12 Thread Hanjun Guo
MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. ACPI 5.1 only has two explicit methods to boot up SMP, PSCI

[PATCH v4 13/18] ARM64 / ACPI: Introduce ACPI_IRQ_MODEL_GIC and register device's gsi

2014-09-12 Thread Hanjun Guo
Introduce ACPI_IRQ_MODEL_GIC which is needed for ARM64 as GIC is used, and then register device's gsi with the core IRQ subsystem. acpi_register_gsi() is similar to DT based irq_of_parse_and_map(), since gsi is unique in the system, so use hwirq number directly for the mapping. Originally-by:

[PATCH v4 16/18] ARM64 / ACPI: Select ACPI_REDUCED_HARDWARE_ONLY if ACPI is enabled on ARM64

2014-09-12 Thread Hanjun Guo
From: Al Stone ACPI reduced hardware mode is disabled by default, but ARM64 can only run properly in ACPI hardware reduced mode, so select ACPI_REDUCED_HARDWARE_ONLY if ACPI is enabled on ARM64. Reviewed-by: Grant Likely Signed-off-by: Al Stone Signed-off-by: Hanjun Guo ---

[PATCH v4 07/18] ARM64 / ACPI: If we chose to boot from acpi then disable FDT

2014-09-12 Thread Hanjun Guo
From: Graeme Gregory If the early boot methods of acpi are happy that we have valid ACPI tables and acpi=off has not been passed. Then do not unflat devicetree effectively disabling further hardware probing from DT. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo ---

[PATCH v4 08/18] ARM64 / ACPI: Make PCI optional for ACPI on ARM64

2014-09-12 Thread Hanjun Guo
As PCI for ARM64 is not ready, so introduce some stub functions to make PCI optional for ACPI, and make ACPI core run without CONFIG_PCI on ARM64. Since ACPI on X86 and IA64 depends on PCI and this patch only makes PCI optional for ARM64, it will not break anything on X86 and IA64.

[PATCH v4 05/18] ARM64 / ACPI: Introduce sleep-arm.c

2014-09-12 Thread Hanjun Guo
From: Graeme Gregory ACPI 5.1 does not currently support S states for ARM64 hardware but ACPI code will call acpi_target_system_state() for device power managment, so introduce sleep-arm.c to allow other drivers to function until S states are defined. Signed-off-by: Graeme Gregory

[PATCH v4 04/18] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2014-09-12 Thread Hanjun Guo
From: Al Stone As we want to get ACPI tables to parse and then use the information for system initialization, we should get the RSDP (Root System Description Pointer) first, it then locates Extended Root Description Table (XSDT) which contains all the 64-bit physical address that pointer to

[PATCH v4 02/18] ACPI / table: Add new function to get table entries

2014-09-12 Thread Hanjun Guo
From: Ashwin Chaugule The acpi_table_parse() function has a callback that passes a pointer to a table_header. Add a new function which takes this pointer and parses its entries. This eliminates the need to re-traverse all the tables for each call. e.g. as in acpi_table_parse_madt() which is

[PATCH v4 01/18] ARM64: Move the init of cpu_logical_map(0) before unflatten_device_tree()

2014-09-12 Thread Hanjun Guo
It always make sense to initialize CPU0's logical map entry from the hardware values, so move the initialization of cpu_logical_map(0) before unflatten_device_tree() which is needed by ACPI code later. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/setup.c |2 +- 1 file changed, 1

[PATCH v4 00/18] Introduce ACPI for ARM64 based on ACPI 5.1

2014-09-12 Thread Hanjun Guo
ACPI 5.1 has been released and now be freely available for download [1]. It fixed some major gaps to run ACPI on ARM, this patch just follow the ACPI 5.1 spec and prepare the code to run ACPI on ARM64. ACPI 5.1 has some major changes for the following tables and method which are essential for ARM

Re: [RFC 2/2] perf: Marker software event and ioctl

2014-09-12 Thread Christopher Covington
On 09/12/2014 08:57 AM, Pawel Moll wrote: > On Fri, 2014-09-12 at 13:43 +0100, Christopher Covington wrote: >> Just to ask the dumb questions in case the answers I've come up with are >> wrong: What is PAGE_SIZE on an arm64 kernel? > > It's either 4 or 64k, depending on CONFIG_ARM64_64K_PAGES. >

Re: [RFC 2/2] perf: Marker software event and ioctl

2014-09-12 Thread Pawel Moll
On Fri, 2014-09-12 at 14:49 +0100, Arnaldo Carvalho de Melo wrote: > Perhaps both? I.e. an u64 followed from a string, if the u64 is zero, > then there is a string right after it? How would this look like in userspace? Something like this? 8< struct perf_event_marker { uint64_t

Re: [PATCH v4 7/9] usb: rename transceiver and phy to usb_phy in ChipIdea

2014-09-12 Thread Antoine Tenart
Peter, On Thu, Sep 11, 2014 at 08:28:59AM +0800, Peter Chen wrote: > On Wed, Sep 03, 2014 at 09:40:38AM +0200, Antoine Tenart wrote: > > Again, rebase my next-tree, and modify the msm part. git://github.com/hzpeterchen/linux-usb.git ci-for-usb-next ? I can do that. But that would be easier if

Re: [PATCH 3/6] arm: omap3: twl: use the new lookup method with usb phy

2014-09-12 Thread Heikki Krogerus
On Thu, Sep 11, 2014 at 08:56:15PM +0530, Kishon Vijay Abraham I wrote: > > +static struct phy_lookup twl4030_usb_lookup = { > > + .phy_name = "phy-twl4030_usb.0", > > + .dev_id = "musb-hdrc.0", > > + .con_id = "usb", > > }; > > Can use PHY_LOOKUP no? I'll fix this.

Re: [PATCH 6/6] usb: dwc3: host: convey the PHYs to xhci

2014-09-12 Thread Heikki Krogerus
On Thu, Sep 11, 2014 at 08:31:19PM +0530, Kishon Vijay Abraham I wrote: > > @@ -60,22 +59,33 @@ int dwc3_host_init(struct dwc3 *dwc) > > goto err1; > > } > > > > + phy_create_lookup(dwc->usb2_generic_phy, "usb2-phy", > > + dev_name(>dev)); > > +

Re: [PATCH 6/8] i2c: Provide a temporary .probe2() call-back type

2014-09-12 Thread Wolfram Sang
> diff --git a/include/linux/i2c.h b/include/linux/i2c.h > index 79b674d..c8240e5 100644 > --- a/include/linux/i2c.h > +++ b/include/linux/i2c.h > @@ -125,7 +125,8 @@ extern s32 i2c_smbus_write_i2c_block_data(const struct > i2c_client *client, > * struct i2c_driver - represent an I2C device

Re: [RFC 2/2] perf: Marker software event and ioctl

2014-09-12 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 12, 2014 at 01:57:52PM +0100, Pawel Moll escreveu: > On Fri, 2014-09-12 at 13:43 +0100, Christopher Covington wrote: > > Just to ask the dumb questions in case the answers I've come up with are > > wrong: What is PAGE_SIZE on an arm64 kernel? > It's either 4 or 64k, depending on

Re: [PATCH] KVM: Refactor making request to makes it meaningful

2014-09-12 Thread Paolo Bonzini
Il 12/09/2014 07:43, guohliu ha scritto: > This patch replace the set_bit method by kvm_make_request > to makes it more readable and consistency. > > Signed-off-by: Guo Hui Liu > --- > arch/x86/kvm/x86.c | 15 +++ > 1 file changed, 7 insertions(+), 8 deletions(-) > > diff --git

[git pull] IOMMU Fixes for Linux v3.17-rc4

2014-09-12 Thread Joerg Roedel
Hi Linus, The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v3.17-rc4 for you to fetch changes up to

Re: [PATCH RESEND 0/8] i2c: Relax mandatory I2C ID table passing

2014-09-12 Thread Wolfram Sang
On Thu, Aug 28, 2014 at 03:35:30PM +0100, Lee Jones wrote: > Hi Wolfram, > > Placing this firmly back on your plate. I truly hope we don't miss > another merge-window. This patch-set has the support of some pretty > senior kernel maintainers, so I hope acceptance shouldn't be too > difficult. >

Re: [PATCH 2/8] i2c: Add the ability to match device to compatible string without an of_node

2014-09-12 Thread Wolfram Sang
On Thu, Aug 28, 2014 at 03:35:32PM +0100, Lee Jones wrote: > A great deal of I2C devices are currently matched via DT node name, and > as such the compatible naming convention of ',' has gone > somewhat awry - some nodes don't supply one, some supply an arbitrary > string and others the correct

Re: [PATCH 11/14] tools lib api: Adopt fdarray class from perf's evlist

2014-09-12 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 12, 2014 at 02:58:22PM +0200, Jiri Olsa escreveu: > On Wed, Sep 10, 2014 at 11:08:46AM -0300, Arnaldo Carvalho de Melo wrote: > SNIP > > +struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow) > > +{ > > + struct fdarray *fda = calloc(1, sizeof(*fda)); > > + if (fda !=

Re: [Patch v2 1/2] kaslr: check if kernel location is changed

2014-09-12 Thread Baoquan He
On 09/12/14 at 08:04am, Vivek Goyal wrote: > On Fri, Sep 12, 2014 at 02:20:31PM +0800, Baoquan He wrote: > > Function handle_relocations() is used to do the relocations handling > > for i686 and kaslr of x86_64. For 32 bit the relocation handling is > > mandotary to perform. For x86_64 only when

[PATCH 5/5] sched/dl: Simplify pick_dl_task()

2014-09-12 Thread Kirill Tkhai
1)Nobody calls pick_dl_task with negative cpu, it's old RT leftover. 2)If p->nr_cpus_allowed is 1, than the affinity has just been changed in set_cpus_allowed_ptr(); we'll pick it just earlier than migration thread. Signed-off-by: Kirill Tkhai --- kernel/sched/deadline.c |4 +--- 1 file

[PATCH 4/5] sched/rt: Remove useless if from cleanup pick_next_task_rt()

2014-09-12 Thread Kirill Tkhai
_pick_next_task_rt() never returns NULL. Signed-off-by: Kirill Tkhai --- kernel/sched/rt.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 4feac8f..2e6a774 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1468,8

[PATCH 2/5] sched/fair: cleanup: Remove useless assignment in select_task_rq_fair()

2014-09-12 Thread Kirill Tkhai
new_cpu is reassigned below, so we do not need this here. Signed-off-by: Kirill Tkhai --- kernel/sched/fair.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index be9e97b..3d1c08a 100644 --- a/kernel/sched/fair.c +++

[PATCH 1/5] cleanup, treewide: Remove set_current_state(TASK_RUNNING) after schedule

2014-09-12 Thread Kirill Tkhai
schedule(), io_schedule() and schedule_timeout() always return with TASK_RUNNING state set, so one more setting is unnecessary. (All places in patch are visible good, only exception is kiblnd_scheduler() from: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c Its schedule() is one

[PATCH 3/5] sched/core: Use put_prev_task() accessor where possible.

2014-09-12 Thread Kirill Tkhai
Signed-off-by: Kirill Tkhai --- kernel/sched/core.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 07d67dd..d4399b4 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2998,7 +2998,7 @@ void

[PATCH 0/5] sched: Misc cleanups

2014-09-12 Thread Kirill Tkhai
This is a series of scheduler-related cleanups which I were collecting for some time. Nothing interesting, just boring cleanups... --- Kirill Tkhai (5): cleanup, treewide: Remove set_current_state(TASK_RUNNING) after schedule sched/fair: cleanup: Remove useless assignment in

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread H. Peter Anvin
On 09/12/2014 06:10 AM, Thomas Gleixner wrote: >> >> I'm not wedded to that concept, by the way, but using the generic parser had >> a >> whole bunch of its own problems, including the fact that you're getting bytes >> from user space. > > Errm. The instruction decoder does not even know about

Re: [PATCH v4 1/2] arcmsr: simplify ioctl data read/write

2014-09-12 Thread Tomas Henzl
On 09/12/2014 09:29 AM, Ching Huang wrote: > From: Ching Huang > > This patch is to modify previous patch 13/17 and it is relative to > http://git.infradead.org/users/hch/scsi-queue.git/tree/arcmsr-for-3.18:/drivers/scsi/arcmsr > > change in v4: > 1. for readability, rename firstindex to

[PATCH -tip 2/2] sched,time: fix lock inversion in thread_group_cputime

2014-09-12 Thread riel
From: Rik van Riel The sig->stats_lock nests inside the tasklist_lock and the sighand->siglock in __exit_signal and wait_task_zombie. However, both of those locks can be taken from irq context, which means we need to use the interrupt safe variant of read_seqbegin_or_lock. This blocks

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