[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() fs/p

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 build_id2

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, Michae

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, "usb2-

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) >>> + size

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

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 s

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 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 on

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 al

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

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

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

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 wha

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

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

[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. P

[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. S

[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. Signed-off

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 p

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, bes

[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 - block/blk-s

[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

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

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

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

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

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

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

[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 b/block/blk-c

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), arm6

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 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 ab

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 u

[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

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

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

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.

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 defa

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 > we

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 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() dir

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 files

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 the

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 (!q->mq

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

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

2014-09-12 Thread Baoquan He
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 kaslr is enabled and a random kernel location is chosen successfully the relocation handling shound be done. However pr

[PATCH RFC] memcg: revert kmem.tcp accounting

2014-09-12 Thread Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide tcp_mem sysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me. K

Re: [PATCH arm64-next] net: bpf: arm64: fix module memory leak when JIT image build fails

2014-09-12 Thread Catalin Marinas
On Thu, Sep 11, 2014 at 11:45:13AM +0100, Will Deacon wrote: > On Thu, Sep 11, 2014 at 10:36:48AM +0100, Daniel Borkmann wrote: > > On ARM64, when the BPF JIT compiler fills the JIT image body with > > opcodes during translation of eBPF into ARM64 opcodes, we may fail > > for several reasons during

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

2014-09-12 Thread Vivek Goyal
On Fri, Sep 12, 2014 at 11:22:44PM +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 kaslr is enabled and a > random kernel location is ch

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

2014-09-12 Thread Ming Lei
On Fri, Sep 12, 2014 at 11:18 PM, Jens Axboe wrote: > 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 g

[PATCHv2 2/8] clk: at91: add a driver for the h32mx clock

2014-09-12 Thread Alexandre Belloni
Newer SoCs have two different peripheral master clocks, h32mx is able to divide mck for slower peripherals. Signed-off-by: Alexandre Belloni --- Cc: Mike Turquette .../devicetree/bindings/clock/at91-clock.txt | 15 +++ arch/arm/mach-at91/Kconfig | 3 + drivers/c

[PATCHv2 7/8] ARM: at91: add sama5d4 support to sama5_defconfig

2014-09-12 Thread Alexandre Belloni
Add sama5d4 to sama5_defconfig to build kernel booting on both sama5d3 and samad4. Note that earlyprintk can only be working for one or the other. Signed-off-by: Alexandre Belloni --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_def

[PATCHv2 3/8] ARM: at91: introduce basic SAMA5D4 support

2014-09-12 Thread Alexandre Belloni
From: Nicolas Ferre Signed-off-by: Nicolas Ferre --- arch/arm/Kconfig.debug| 4 arch/arm/mach-at91/Kconfig| 18 arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/include/mach/cpu.h | 9 arch/arm/mach-at9

[PATCHv2 8/8] ARM: at91: document Atmel SMART compatibles

2014-09-12 Thread Alexandre Belloni
Document all the available compatibles for Atmel "SMART" SoCs. Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/arm/atmel-at91.txt | 40 ++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation

[PATCHv2 5/8] ARM: at91: dt: add device tree file for SAMA5D4 SoC

2014-09-12 Thread Alexandre Belloni
From: Nicolas Ferre Add SAMA5D4 SoC DT file. Signed-off-by: Nicolas Ferre Signed-off-by: Josh Wu Signed-off-by: Boris BREZILLON Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d4.dtsi | 1233 1 file changed, 1233 insertions(+) create mod

[PATCHv2 4/8] ARM: at91: SAMA5D4 SoC detection code and low level routines

2014-09-12 Thread Alexandre Belloni
From: Nicolas Ferre SoC identification code, kernel uncompress and low level debugging routines update. On SAMA5D4, DBGU is at another address AT91_BASE_DBGU2 so another round of detection is needed. We also had to differentiate with SAMA5D3 SoC family and rename some variables. Signed-off-by: N

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

2014-09-12 Thread Alan Stern
On Fri, 12 Sep 2014, Petr Mladek wrote: > > I don't think you can eliminate the lock quite so easily. This patch > > introduces some nasty races. > > > > > @@ -577,18 +571,20 @@ static int hub_port_status(struct usb_hub *hub, int > > > port1, > > > > > > static void kick_khubd(struct usb_hu

[PATCHv2 6/8] ARM: at91: dt: add device tree file for SAMA5D4ek board

2014-09-12 Thread Alexandre Belloni
From: Nicolas Ferre Add reference SAMA5D4-EK platform DT file. Signed-off-by: Nicolas Ferre Signed-off-by: Josh Wu Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/at91-sama5d4ek.dts | 308 +++ 2 files change

Re: [PATCH] i2c: piix4: Continue probing for auxiliary SMBus without main

2014-09-12 Thread Jean Delvare
Daniel, Did you find the time to address my concerns? I think it would be the right time to submit an updated patch if you want it to make it upstream quickly. Jean On Mon, 28 Jul 2014 14:22:09 +0200, Jean Delvare wrote: > Hi Daniel, > > On Fri, 11 Jul 2014 20:06:15 -0400, Daniel M. Weeks wrot

[PATCHv2 0/8] Initial support for the Atmel SMART sama5d4

2014-09-12 Thread Alexandre Belloni
Introduce support for the Atmel SMART sama5d4. Note that some drivers will complain that they can't work without DMA and the probe will fail. This will be solved when the dma driver hits mainline, it is still under review. Changes in v2: - Documented the Atmel SoC compatibles - Documented the n

[PATCHv2 1/8] irqchip: atmel-aic5: Add sama5d4 support

2014-09-12 Thread Alexandre Belloni
Add sama5d4 support to irq-atmel-aic5. Signed-off-by: Alexandre Belloni --- Cc: Jason Cooper .../devicetree/bindings/interrupt-controller/atmel,aic.txt | 2 +- drivers/irqchip/irq-atmel-aic5.c | 10 ++ 2 files changed, 11 insertions(+), 1 deletion(-)

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

2014-09-12 Thread Jens Axboe
On 2014-09-12 09:41, Ming Lei wrote: On Fri, Sep 12, 2014 at 11:18 PM, Jens Axboe wrote: 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 ha

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

2014-09-12 Thread Catalin Marinas
On Fri, Sep 12, 2014 at 04:18:51PM +0100, Graeme Gregory wrote: > 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

Re: [PATCHv4 01/12] usb: dwc2: Update Kconfig to support dual-role

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:52 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Update DWC2 kconfig and makefile to support dual-role mode. The platform > file will always get compiled for the case where the controller is directly > co

[PATCH] vfs: remove redundant sanity check in do_mount

2014-09-12 Thread Seunghun Lee
In sys_mount, getname() checks dir_name. So do_mount needn't check dir_name again. Signed-off-by: Seunghun Lee --- fs/namespace.c |5 - 1 file changed, 5 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index bfd03c6..bf8a9af 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@

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

2014-09-12 Thread Javier Martinez Canillas
Hello Doug, On 09/12/2014 05:12 PM, Doug Anderson wrote: > 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. >> >> NOT

Re: [PATCH 1/5] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-12 Thread Dmitry Lavnikevich
On 11/09/14 11:47, Philipp Zabel wrote: Am Mittwoch, den 10.09.2014, 16:46 +0300 schrieb Dmitry Lavnikevich: Since pins and frequency are specific to module (pfla02), not base board (pbab02), it is better to be initialized in corresponding dts file. Signed-off-by: Dmitry Lavnikevich I have se

Re: [PATCHv4 02/12] usb: dwc2: move "samsung,s3c6400-hsotg" into common platform

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:53 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Move the "samsung,s3c6400-hsotg" binding as the probe function in the gadget > driver will get removed when the dual-role driver is implemented. Sorry but

Re: [tpmdd-devel] [PATCH] tpm: use tpm_pcr_read_dev() in tpm_do_selftest()

2014-09-12 Thread Jason Gunthorpe
On Fri, Sep 12, 2014 at 04:06:41PM +0300, Jarkko Sakkinen wrote: > It does not make sense to construct the PCR read command in > tpm_do_selftest() when there is already a function that does > the job. This would seem to undo an older patch, I don't think things have changed enough for that to make

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

2014-09-12 Thread Ming Lei
On Fri, Sep 12, 2014 at 11:45 PM, Jens Axboe wrote: > On 2014-09-12 09:41, Ming Lei wrote: >> >> On Fri, Sep 12, 2014 at 11:18 PM, Jens Axboe wrote: >>> >>> On 2014-09-12 08:47, Ming Lei wrote: These two functions are introduced to initialize and de-initialize flush stuff cent

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

2014-09-12 Thread Vivek Goyal
On Fri, Sep 12, 2014 at 05:56:12PM +0200, Thomas D. wrote: > Hi, > > Vivek Goyal wrote: > > You had reported kexec issues with CONFIG_RANDOMIZE_BASE=y. Does this > > patch resolve the issue for you? > > Yup! Tested against kernel-3.16.2. Thanks. Given this patch is small and should not break any

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

2014-09-12 Thread Thomas D.
Hi, Vivek Goyal wrote: > You had reported kexec issues with CONFIG_RANDOMIZE_BASE=y. Does this > patch resolve the issue for you? Yup! Tested against kernel-3.16.2. -Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ker

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Catalin Marinas
Daniel, On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann wrote: > Will, Catalin, Dave, this is more or less a heads-up: when net-next and > arm64-next tree will get both merged into Linus' tree, we will run into > a 'silent' merge conflict until someone actually runs eBPF JIT on ARM64

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 8:54 AM, Javier Martinez Canillas wrote: > You are right, I completely forgot to check if that actually landed and to > remove the note in that case... > > Maybe when the set is applied the note can be removed from this patch or do > you think that I should re-spin the

[PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-12 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 93 +++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 + 2 files changed, 106 insertions

[PATCH v2 3/4] ARM: imx_v6_v7_defconfig: enable tlv320aic3x and simple-audio-card by default

2014-09-12 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4385c8..b344290c537b 100644 --- a/arch/arm/config

[PATCH v2 1/4] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-12 Thread Dmitry Lavnikevich
Since pins and frequency are specific to module (pfla02), not base board (pbab02), it is better to be initialized in corresponding dts file. This patch fixes i2c2, i2c3 pin configuration which caused messages: imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e0

[PATCH v2 0/5] Add Phytec pbab01 audio support

2014-09-12 Thread Dmitry Lavnikevich
Since previous patchset version asoc machine driver imx-tlv320aic3x was replaced with simple-audio-card and audmux. Also changed commit message for first patch, which now explicitly states that it has more than stylistic purpose. -- To unsubscribe from this list: send the line "unsubscribe linux-k

[PATCH v2 4/4] ASoC: tlv320aic3x: fix PLL D configuration

2014-09-12 Thread Dmitry Lavnikevich
Current caching implementation during regcache_sync() call bypasses all register writes of values that are already known as default (regmap reg_defaults). Same time in TLV320AIC3x codecs register 5 (AIC3X_PLL_PROGC_REG) write should be immediately followed by register 6 write (AIC3X_PLL_PROGD_REG)

Re: [PATCH 7/9] locktorture: Add infrastructure for torturing read locks

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 09:40:41PM -0700, Davidlohr Bueso wrote: > Most of it is based on what we already have for writers. This allows > readers to be very independent (and thus configurable), enabling > future module parameters to control things such as rw distribution. > Furthermore, readers hav

RE: [PATCH 4/4 v3] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-12 Thread atull
On Fri, 12 Sep 2014, Chen, Alvin wrote: > > On Tue, 9 Sep 2014, Weike Chen wrote: > > > > > > > > struct dwapb_gpio; > > > +struct dwapb_context; > > > > > > struct dwapb_gpio_port { > > > struct bgpio_chip bgc; > > > boolis_registered; > > > struct dwapb_gpio

Re: [PATCHv4 03/12] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:54 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Adds the gadget data structure and appropriate data structure pointers > to the common dwc2_hsotg data structure. To keep the driver data > dereference cod

Re: mmc: freeing host while host->detect work queue is still active

2014-09-12 Thread Stephen Warren
On 09/11/2014 04:03 PM, Stephen Warren wrote: Running Fedora rawhides's 3.17.0-0.rc4.git2.1.fc22.armv7hl kernel on Jetson TK1 (an ARM board containing Tegra SoC), I see the following during boot most times the Tegra SDHCI driver defers probe for the SD slot: (and indeed I can reproduce the same

Re: [PATCH v2] [media] v4l2-common: fix overflow in v4l_bound_align_image()

2014-09-12 Thread Maciej Matraszek
On Wed, 2014-09-10 at 10:10 -0700, Greg KH wrote: > > Fixes: b0d3159be9a3 ("V4L/DVB (11901): v4l2: Create helper function for > > bounding and aligning images") > > Signed-off-by: Maciej Matraszek > > Acked-by: Sakari Ailus > > > > --- > > > > This is not the correct way to submit patches fo

Re: [PATCHv4 04/12] usb: dwc2: Add the appropriate init calls in platform code

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:55 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Add the proper init calls for either host, gadget or both in platform.c > > Signed-off-by: Dinh Nguyen > Acked-by: Paul Zimmerman > --- > drivers/usb/d

Re: [PATCH] PM / Domains: add debugfs listing of struct generic_pm_domain-s

2014-09-12 Thread Maciej Matraszek
On czw, 2014-09-11 at 19:27 +0200, Geert Uytterhoeven wrote: > Hi Maciej, > > On Thu, Sep 11, 2014 at 6:45 PM, Maciej Matraszek > wrote: > > BTW Can I use your output as example in the commit message for v2? > > It's much more informative > > Sure, no problem. > > > (though 'runtime status' ali

cgroups/netfilter : kernel NULL pointer BUG at 00000038

2014-09-12 Thread Toralf Förster
Today I observed within a 32 bit KVM machine (stable Gentoo x86 Linux) the following : Sep 12 18:14:37 n22kvmclone kernel: [ 37.964900] ip_tables: (C) 2000-2006 Netfilter Core Team Sep 12 18:14:38 n22kvmclone kernel: [ 38.412110] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) Sep 12

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

2014-09-12 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 12, 2014 at 02:58:55PM +0100, Pawel Moll escreveu: > 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? Somethi

Re: [PATCH] fsnotify: don't put user context if it was never assigned

2014-09-12 Thread Jan Kara
On Thu 11-09-14 19:52:09, Heinrich Schuchardt wrote: > Hello Sasha, > > I have CCed Jan, because he has been the only one working on this > file in the last 18 months. > > A failure path in which group->inotify_data.user is not yet assigned > starts here: > > static struct fsnotify_group *inotif

Re: [PATCH v2 1/2] ARM: tegra: apalis/colibri t30: integrate audio support

2014-09-12 Thread Marcel Ziswiler
On Wed, 2014-09-10 at 15:26 -0600, Stephen Warren wrote: > No, definitely not; this patch has significant semantic changes since I > reviewed it. OK, sorry. Admittedly this was probably a little bit too quick a shot. The solution looked so clean and on first sight worked just fine. > I'm not sur

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Daniel Borkmann
On 09/12/2014 06:03 PM, Catalin Marinas wrote: Daniel, On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann wrote: Will, Catalin, Dave, this is more or less a heads-up: when net-next and arm64-next tree will get both merged into Linus' tree, we will run into a 'silent' merge conflict

Re: [PATCH v3] PM / AVS: rockchip-io: add driver handling Rockchip io domains

2014-09-12 Thread Kevin Hilman
Rafael, Doug Anderson writes: > From: Heiko Stübner > > IO domain voltages on some Rockchip SoCs are variable but need to be > kept in sync between the regulators and the SoC using a special > register. > > A specific example using rk3288: > - If the regulator hooked up to a pin like SDMMC0_VDD

Re: [PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-12 Thread Alexander Shiyan
Fri, 12 Sep 2014 19:04:30 +0300 от Dmitry Lavnikevich : > Audio on phyFLEX boards is presented by tlv320aic3007 codec connected > over SSI interface. > > Signed-off-by: Dmitry Lavnikevich > --- ... > +&ssi2 { > + fsl,mode = "i2s-slave"; > + status = "okay"; > + #sound-dai-cells = <0>

Re: [PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-12 Thread Alexander Shiyan
Fri, 12 Sep 2014 19:04:30 +0300 от Dmitry Lavnikevich : > Audio on phyFLEX boards is presented by tlv320aic3007 codec connected > over SSI interface. > > Signed-off-by: Dmitry Lavnikevich > --- ... > +&audmux { > + status = "okay"; > + > + ssi2 { > + fsl,audmux-port = <1>; >

randconfig build error with next-20140912, in drivers/staging/lustre/lustre/obdclass

2014-09-12 Thread Jim Davis
Building with the attached random configuration file, ERROR: "obd_memory" [drivers/staging/lustre/lustre/obdclass/obdclass.ko] undefined! make[1]: *** [__modpost] Error 1 # # Automatically generated file; DO NOT EDIT. # Linux/x86 3.17.0-rc4 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CON

[PATCH RFC] perf kvm stat live: cache mmap()ed events

2014-09-12 Thread Alexander Yarygin
During mmap() process 'perf kvm stat live' gets a pointer to events and passes them to the session queue. Events are stored in shared memory and eventually they will be overwritten by the kernel. The problem is, that when events come too fast, old events can be overwritten before they have been pro

<    1   2   3   4   5   6   7   8   >