Re: [PATCH] dma: fix vchan_cookie_complete() debug print

2014-01-20 Thread Vinod Koul
On Fri, Dec 06, 2013 at 04:42:09PM +0100, Jonas Jensen wrote: > vd->tx.cookie is set zero on dma_cookie_complete(), > save to local before printing it. > > Signed-off-by: Jonas Jensen > --- > > Notes: > dev_vdbg() could also be moved to happen earlier, what do you prefer? This would be prefe

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

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 01:55 AM, Peter Zijlstra wrote: > > Ok, so I still don't get the problem of enabling interrupts early. > > If we enable them early we can get interrupts; which afaict fall into > two groups, those that do and do not set NEED_RESCHED. > > For those that do not set NEED_RESCHED, we'd

RE: [PATCHv10 2/2] dma: Add Freescale eDMA engine driver support

2014-01-20 Thread Jingchang Lu
> -Original Message- > From: Vinod Koul [mailto:vinod.k...@intel.com] > Sent: Monday, January 20, 2014 5:36 PM > To: Lu Jingchang-B35083 > Cc: dan.j.willi...@intel.com; a...@arndb.de; shawn@linaro.org; > pawel.m...@arm.com; mark.rutl...@arm.com; swar...@wwwdotorg.org; linux- > ker...@

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

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 03:00:29AM -0800, H. Peter Anvin wrote: > On 01/20/2014 01:55 AM, Peter Zijlstra wrote: > > > > Ok, so I still don't get the problem of enabling interrupts early. > > > > If we enable them early we can get interrupts; which afaict fall into > > two groups, those that do an

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

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 02:19:30AM -0800, H. Peter Anvin wrote: > On 01/20/2014 02:13 AM, Peter Zijlstra wrote: > > On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: > >> Then make them so. The fact was that most of the mwait idle sites > >> were bloody broken. And the single mwait_id

Re: [RFC/RFT][PATCH 4/5] ACPI / LPSS: Support for device latency tolerance PM QoS

2014-01-20 Thread Mika Westerberg
On Fri, Jan 17, 2014 at 03:46:40PM +0100, Rafael J. Wysocki wrote: > @@ -415,11 +472,12 @@ static int acpi_lpss_platform_notify(str > return 0; > } > > - if (action == BUS_NOTIFY_ADD_DEVICE) > + if (action == BUS_NOTIFY_ADD_DEVICE) { > ret = sysfs_create_

[PATCH] ACPI / LPSS: Add BYT ACPI mode PWM

2014-01-20 Thread Chew Chiau Ee
From: Chew, Chiau Ee Intel BayTrail LPSS consists of two PWM controllers which can be enumerated from ACPI namespace. Signed-off-by: Chew, Chiau Ee --- drivers/acpi/acpi_lpss.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/acpi_lpss.c b/driver

[PATCH v3 4/7] net: moxa: add ethtool support

2014-01-20 Thread Jonas Jensen
Add and assign ethtool_ops callback functions. Signed-off-by: Jonas Jensen --- Notes: Applies to next-20140120 drivers/net/ethernet/moxa/moxart_ether.c | 121 +++ 1 file changed, 121 insertions(+) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b

[PATCH v3 1/7] net: moxa: clear TX descriptor length bits between sends

2014-01-20 Thread Jonas Jensen
: Jonas Jensen --- Notes: Applies to next-20140120 drivers/net/ethernet/moxa/moxart_ether.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 5020fd4..aa45607 100644 --- a/drivers/net

Re: [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM

2014-01-20 Thread Mika Westerberg
On Tue, Jan 21, 2014 at 03:12:02AM +0800, Chew Chiau Ee wrote: > From: Chew, Chiau Ee > > Intel BayTrail LPSS consists of two PWM controllers which can > be enumerated from ACPI namespace. > > Signed-off-by: Chew, Chiau Ee Acked-by: Mika Westerberg -- To unsubscribe from this list: send the l

[PATCH v3 5/7] net: moxa: add IFF_LIVE_ADDR_CHANGE flag

2014-01-20 Thread Jonas Jensen
.ndo_set_mac_address hook callback already supports IFF_LIVE_ADDR_CHANGE so add it to our flags. Signed-off-by: Jonas Jensen --- Notes: Applies to next-20140120 drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[PATCH v3 7/7] net: moxa: use eth_mac_addr()

2014-01-20 Thread Jonas Jensen
Replace boilerplate in moxart_set_mac_address() with eth_mac_addr(). Signed-off-by: Jonas Jensen --- Notes: Applies to next-20140120 drivers/net/ethernet/moxa/moxart_ether.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c

[PATCH v3 3/7] net: moxa: connect to PHY

2014-01-20 Thread Jonas Jensen
The kernel now has a MDIO bus driver and a phy_driver (RTL8201CP), connect to this PHY using OF. Signed-off-by: Jonas Jensen --- Notes: Applies to next-20140120 .../devicetree/bindings/net/moxa,moxart-mac.txt| 47 ++- drivers/net/ethernet/moxa/moxart_ether.c | 92

[PATCH v3 6/7] net: moxa: generate random address

2014-01-20 Thread Jonas Jensen
The address register is zero:ed on boot, fill it with a randomly generated address on probe. Signed-off-by: Jonas Jensen --- Notes: Applies to next-20140120 drivers/net/ethernet/moxa/moxart_ether.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/moxa

[PATCH v3 2/7] net: moxa: fix build_skb() memory corruption

2014-01-20 Thread Jonas Jensen
--- Notes: This fixes the following error on wget download (or ncftp), usually after only a few seconds: "read error: Bad address" On receiving this error, wget exits. The download is not resumed (busybox default). Applies to next-20140120 drivers/ne

Re: [PATCHv10 2/2] dma: Add Freescale eDMA engine driver support

2014-01-20 Thread Vinod Koul
On Mon, Jan 20, 2014 at 11:05:03AM +, Jingchang Lu wrote: > > > > > + struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan); > > > > > + struct dma_slave_config *cfg = (void *)arg; > > > > > + unsigned long flags; > > > > > + LIST_HEAD(head); > > > > > + > > > > > + switch

RE: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst [NEW HARDWARE]

2014-01-20 Thread David Laight
From: walt > On 01/17/2014 06:34 AM, David Laight wrote: > > > Can you try the patch I posted that stops the ownership on LINK TRBs > > being changed before that on the linked-to TRB? > > Please disregard my earlier post about the patch not applying cleanly. > That was the usual html corruption,

Re: [PATCH v2 2/3] bq2415x_charger: Use power_supply notifier for automode

2014-01-20 Thread Sebastian Reichel
On Mon, Jan 20, 2014 at 10:21:29AM +, Russell King - ARM Linux wrote: > And another one using that evil mail-followup-to header: > > Mail-Followup-To: Pali Rohár , > Anton Vorontsov , > Michael Trimarchi , > David Woodhouse , > Tony Lindgren , > Russell

Re: [PATCH] sched/deadline: Add sched_dl documentation

2014-01-20 Thread Henrik Austad
On Mon, Jan 20, 2014 at 11:40:40AM +0100, Juri Lelli wrote: > From: Dario Faggioli > > Add in Documentation/scheduler/ some hints about the design > choices, the usage and the future possible developments of the > sched_dl scheduling class and of the SCHED_DEADLINE policy. > > Cc: bruce.ashfi...

Re: [PATCH linux-next] net: batman-adv: use "__packed __aligned(2)" for each structure instead of "__packed(2)" region

2014-01-20 Thread James Hogan
Hi Antonio, On 19/01/14 09:30, Antonio Quartulli wrote: > On 19/01/14 02:10, James Hogan wrote: >> It appears that the following gcc patch adds support for #pragma pack: >> http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01115.html >> >> I gave it a quick spin on metag gcc (which is unfortunately stu

Re: [PATCH] dma: fix vchan_cookie_complete() debug print

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 03:29:17PM +0530, Vinod Koul wrote: > On Fri, Dec 06, 2013 at 04:42:09PM +0100, Jonas Jensen wrote: > > vd->tx.cookie is set zero on dma_cookie_complete(), > > save to local before printing it. > > > > Signed-off-by: Jonas Jensen > > --- > > > > Notes: > > dev_vdbg()

[GIT PULL] core/debug changes for v3.14

2014-01-20 Thread Ingo Molnar
Linus, Please pull the latest core-debug-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-debug-for-linus # HEAD: b71d47c14fba6270c0b5a0d56639bf042017025b powerpc: Clean up panic_timeout usage Currently there are two methods to set the panic_timeou

Re: [PATCH] mm/nobootmem: Fix unused variable

2014-01-20 Thread Philipp Hachtmann
Am Fri, 17 Jan 2014 13:38:31 -0800 schrieb Andrew Morton : > Yes, that is a bit of an eyesore. We often approach the problem this > way, which is nicer: > [ ... ] > #ifdef CONFIG_ARCH_DISCARD_MEMBLOCK > { > phys_addr_t size; > > [ ... ] > } > #endif Thi

Re: [QUERY]: Is using CPU hotplug right for isolating CPUs?

2014-01-20 Thread Viresh Kumar
On 16 January 2014 15:16, Thomas Gleixner wrote: > Just do the math. > > max reload value / timer freq = max time span Thanks. > So: > > 0x7fff / 24MHz = 89.478485 sec > > Nothing to do here except to get rid of the requirement to arm the > timer at all. @Frederic: Any inputs on h

[PATCH V5 1/3] mm/nobootmem: Fix unused variable

2014-01-20 Thread Philipp Hachtmann
This fixes an unused variable warning in nobootmem.c Signed-off-by: Philipp Hachtmann --- mm/nobootmem.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/mm/nobootmem.c b/mm/nobootmem.c index e2906a5..0215c77 100644 --- a/mm/nobootmem.c +++ b/mm/

[PATCH V5 0/3] mm/memblock: Excluded memory

2014-01-20 Thread Philipp Hachtmann
This all fits linux-next. The first patch is a fix (not a replacement) to a patch that has already been put into linux-next. The original patch generates a warning for an unused variable in case that CONFIG_ARCH_DISCARD_MEMBLOCK is not set. It's now made the way Andrew suggested. The second pat

Re: [PATCH 05/11] fuse: Trust kernel i_mtime only -v2

2014-01-20 Thread Maxim Patlasov
On 01/06/2014 08:22 PM, Miklos Szeredi wrote: On Thu, Dec 26, 2013 at 07:41:41PM +0400, Maxim Patlasov wrote: + + if (!err) + clear_bit(FUSE_I_MTIME_DIRTY, &fi->state); Doing the test and the clear separately opens a huge race window when i_mtime modifications are bound to g

[PATCH V5 3/3] mm/memblock: Cleanup and refactoring after addition of nomap

2014-01-20 Thread Philipp Hachtmann
Signed-off-by: Philipp Hachtmann --- include/linux/memblock.h | 50 ++- mm/memblock.c| 214 +-- 2 files changed, 107 insertions(+), 157 deletions(-) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index be1c819..ec

Re: [PATCH-v2 1/3] percpu_ida: Make percpu_ida_alloc + callers accept task state bitmask

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 03:44:44AM +, Nicholas A. Bellinger wrote: > From: Kent Overstreet > > This patch changes percpu_ida_alloc() + callers to accept task state > bitmask for prepare_to_wait() for code like target/iscsi that needs > it for interruptible sleep, that is provided in a subsequ

[PATCH V5 2/3] mm/memblock: Add support for excluded memory areas

2014-01-20 Thread Philipp Hachtmann
Add a new memory state "nomap" to memblock. This can be used to truncate the usable memory in the system without forgetting about what is really installed. Signed-off-by: Philipp Hachtmann --- include/linux/memblock.h | 25 +++ mm/Kconfig | 3 + mm/memblock.c| 17

[PATCH v1 2/2] update binding doc of leds-gpio.txt

2014-01-20 Thread Robin Gong
Update the binding doc for new property: "retain-state-suspended" Signed-off-by: Robin Gong --- .../devicetree/bindings/leds/leds-gpio.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Document

[PATCH v1 1/2] leds: leds-gpio: add retain-state-suspended property

2014-01-20 Thread Robin Gong
Some gpio-leds need retain the state even in suspend, such as charger led. But this property missed in devicetree, add it. Signed-off-by: Robin Gong --- drivers/leds/leds-gpio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/led

Re: [PATCH] dma: Add Xilinx AXI Video Direct Memory Access Engine driver support

2014-01-20 Thread Arnd Bergmann
On Monday 20 January 2014, Srikanth Thokala wrote: > On Fri, Jan 17, 2014 at 9:43 PM, Arnd Bergmann wrote: > > On Thursday 16 January 2014, Srikanth Thokala wrote: > > I also assume that some of the properties should just go away: > > > > * xlnx,device-id should be the argument in the handle from

[PATCH 2/3] perf util: free cpu_map in perf_session__cpu_bitmap

2014-01-20 Thread Stanislav Fomichev
Signed-off-by: Stanislav Fomichev --- tools/perf/util/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 7acc03e8f3b2..03815af30b16 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -1600,6 +1600,7 @@

Re: [PATCH 11/11] ext4: add cross rename support

2014-01-20 Thread Miklos Szeredi
On Sat, Jan 18, 2014 at 5:27 PM, J. Bruce Fields wrote: > On Sat, Jan 18, 2014 at 07:49:29AM +0100, Miklos Szeredi wrote: >> On Fri, Jan 17, 2014 at 11:08 PM, J. Bruce Fields >> wrote: >> > On Fri, Jan 17, 2014 at 11:53:07PM +1300, Michael Kerrisk (man-pages) >> > wrote: >> >> >The foll

[PATCH 1/3] perf timechart: fix wrong SVG height

2014-01-20 Thread Stanislav Fomichev
If we call perf timechart with -p 0 arguments, it means we don't want any tasks related data. It works, but space for tasks data is reserved in the generated SVG. Remove this unused empty space via passing 0 as count to the open_svg. Signed-off-by: Stanislav Fomichev --- tools/perf/builtin-timec

[PATCH 3/3] perf tools: bring back old behavior when NO_DEMAGLE doesn't link with libbfd

2014-01-20 Thread Stanislav Fomichev
This commit reverts part of the 3e6a147deef9 "perf tools: Separate lbfd check out of NO_DEMANGLE condition" which always links perf with libbfd. I'd like to preserve old behavior when NO_DEMAGLE does not link with it, because some machines may contain different versions of binutils (hence miss requ

Re: [PATCH 07/11] fuse: restructure fuse_readpage()

2014-01-20 Thread Maxim Patlasov
On 01/06/2014 08:43 PM, Miklos Szeredi wrote: On Fri, Dec 20, 2013 at 06:54:40PM +0400, Maxim Patlasov wrote: Hi Miklos, Sorry for delay, see please inline comments below. On 11/12/2013 09:17 PM, Miklos Szeredi wrote: On Thu, Oct 10, 2013 at 05:11:25PM +0400, Maxim Patlasov wrote: Move the c

[PATCH 0/3] perf fixes

2014-01-20 Thread Stanislav Fomichev
This series contains couple of unrelated changes. I already sent two of them (perf util, perf tools) to the lkml but didn't get any response. Thus resending them along with new perf timechart fix. - perf timechart: fix wrong SVG height removes unused empty space from generated SVG when called wi

Re: [PATCH] sched/deadline: Add sched_dl documentation

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 12:24:42PM +0100, Henrik Austad wrote: > > +2. Task scheduling > > +== > > + > > + The typical -deadline task is composed of a computation phase (instance) > > + which is activated on a periodic or sporadic fashion. The expected > > (maximum) > > + duration

[GIT PULL] Stackprotector updates for v3.14

2014-01-20 Thread Ingo Molnar
Linus, Please pull the latest core-stackprotector-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-stackprotector-for-linus # HEAD: 8779657d29c0ebcc0c94ede4df2f497baf1b563f stackprotector: Introduce CONFIG_CC_STACKPROTECTOR_STRONG This tree adds a

[GIT PULL] IRQ changes for v3.14

2014-01-20 Thread Ingo Molnar
Linus, Please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus # HEAD: c7a730fa4624092e2d1c0cb7b750816e87c32364 x86/irq: Fix kbuild warning in smp_irq_move_cleanup_interrupt() The only change in this cycle is a

Re: [PATCH 11/11] ext4: add cross rename support

2014-01-20 Thread Michael Kerrisk (man-pages)
On Mon, Jan 20, 2014 at 12:39 PM, Miklos Szeredi wrote: > On Sat, Jan 18, 2014 at 5:27 PM, J. Bruce Fields wrote: >> On Sat, Jan 18, 2014 at 07:49:29AM +0100, Miklos Szeredi wrote: >>> On Fri, Jan 17, 2014 at 11:08 PM, J. Bruce Fields >>> wrote: >>> > On Fri, Jan 17, 2014 at 11:53:07PM +1300, M

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Tushar Behera
On 20 January 2014 15:35, Russell King - ARM Linux wrote: > On Mon, Jan 20, 2014 at 02:32:34PM +0530, Tushar Behera wrote: >> uart_register_driver call binds the driver to a specific device >> node through tty_register_driver call. This should typically happen >> during device probe call. >> >> In

Re: [PATCH] drivers: staging: lustre: lustre: include: add "__attribute__((packed))" for the related union

2014-01-20 Thread James Hogan
Hi Chen, On 19/01/14 10:07, Chen Gang wrote: > BTW: this patch is related with another patch which is discussing (so I > have cc that patch to you and Greg too): "if we could sure that it is a > compiler's feature issue, we will skip this patch". If you're referring to the #pragma pack portabilit

Re: [PATCH v7 1/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2014-01-20 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 04:08:16PM -0800, Tim Chen wrote: > +/* > + * We don't inline mcs_spin_lock() so that perf can correctly account for the > + * time spent in this lock function. > + */ > +static noinline > +void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) But given

Re: [PATCH] sched/deadline: Add sched_dl documentation

2014-01-20 Thread Juri Lelli
On 01/20/2014 12:24 PM, Henrik Austad wrote: > On Mon, Jan 20, 2014 at 11:40:40AM +0100, Juri Lelli wrote: >> From: Dario Faggioli >> >> Add in Documentation/scheduler/ some hints about the design >> choices, the usage and the future possible developments of the >> sched_dl scheduling class and of

Re: [PATCH v7 3/6] MCS Lock: Move mcs_lock/unlock function into its own file

2014-01-20 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 04:08:24PM -0800, Tim Chen wrote: > copy to kernel/locking/mcs_spinlock.c > index 96f14299..44fb092 100644 > --- a/include/linux/mcs_spinlock.h > +++ b/kernel/locking/mcs_spinlock.c > +/* > + * asm/processor.h may define arch_mutex_cpu_relax(). > + * If it is not defined, cp

Re: [PATCH v7 5/6] MCS Lock: allow architectures to hook in to contended paths

2014-01-20 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 04:08:31PM -0800, Tim Chen wrote: > +#ifndef arch_mcs_spin_lock_contended > +/* > + * Using smp_load_acquire() provides a memory barrier that ensures > + * subsequent operations happen after the lock is acquired. > + */ > +#define arch_mcs_spin_lock_contended(l)

Re: [PATCH net-next v2] xen-netback: Rework rx_work_todo

2014-01-20 Thread Zoltan Kiss
Any reviews on this one? It fixes an important lockup situation, so either this or some other fix should go in soon. On 15/01/14 17:11, Zoltan Kiss wrote: The recent patch to fix receive side flow control (11b57f) solved the spinning thread problem, however caused an another one. The receive si

[PATCH 07/24] GFS2: Use range based functions for rgrp sync/invalidation

2014-01-20 Thread Steven Whitehouse
Each rgrp header is represented as a single extent on disk, so we can calculate the position within the address space, since we are using address spaces mapped 1:1 to the disk. This means that it is possible to use the range based versions of filemap_fdatawrite/wait and for invalidating the page ca

[PATCH 14/24] GFS2: Add hints to directory leaf blocks

2014-01-20 Thread Steven Whitehouse
This patch adds four new fields to directory leaf blocks. The intent is not to use them in the kernel itself, although perhaps we may be able to use them as hints at some later date, but instead to provide more information for debug/fsck use. One new field adds a pointer to the inode to which the

GFS2: Pre-pull patch posting (merge window)

2014-01-20 Thread Steven Whitehouse
Hi, Here are the pending patches for the merge window which are currently in the GFS2 tree. The main topics this time are allocation, in the form of Bob's improvements when searching resource groups and several updates to quotas which should increase scalability. The quota changes follow on from

[PATCH 02/24] GFS2: Drop inadequate rgrps from the reservation tree

2014-01-20 Thread Steven Whitehouse
From: Bob Peterson This is just basically a resend of a patch I posted earlier. It didn't change from its original, except in diff offsets, etc: This patch fixes a bug in the GFS2 block allocation code. The problem starts if a process already has a multi-block reservation, but for some reason, a

[PATCH 23/24] GFS2: Small cleanup

2014-01-20 Thread Steven Whitehouse
From: Bob Peterson This is a small cleanup to function gfs2_rgrp_go_lock so that it uses rgd instead of its more complicated twin. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index e14e887..a1da213 100644 --- a/fs/gfs2/rgrp.c +++ b

[PATCH 22/24] GFS2: Don't use ENOBUFS when ENOMEM is the correct error code

2014-01-20 Thread Steven Whitehouse
Al Viro has tactfully pointed out that we are using the incorrect error code in some cases. This patch fixes that, and also removes the (unused) return value for glock dumping. >* gfs2_iget() - ENOBUFS instead of ENOMEM. ENOBUFS is > "No buffer space available (POSIX.1 (XSI STREAMS option

[PATCH 24/24] GFS2: revert "GFS2: d_splice_alias() can't return error"

2014-01-20 Thread Steven Whitehouse
From: "J. Bruce Fields" 0d0d110720d7960b77c03c9f2597faaff4b484ae asserts that "d_splice_alias() can't return error unless it was given an IS_ERR(inode)". That was true of the implementation of d_splice_alias, but this is really a problem with d_splice_alias: at a minimum it should be able to ret

[PATCH 17/24] GFS2: Use RCU/hlist_bl based hash for quotas

2014-01-20 Thread Steven Whitehouse
Prior to this patch, GFS2 kept all the quotas for each super block in a single linked list. This is rather slow when there are large numbers of quotas. This patch introduces a hlist_bl based hash table, similar to the one used for glocks. The initial look up of the quota is now lockless in the cas

[PATCH 21/24] GFS2: Fix kbuild test robot reported warning

2014-01-20 Thread Steven Whitehouse
Well I don't get the same warning locally as the kbuild robot, but I guess this should fix the problem, anyway. Here is the warning: head: 2d9e72303d538024627fb1fe2cbde48aec12acc0 commit: ee2411a8db49a21bc55dc124e1b434ba194c8903 [19/20] GFS2: Clean up quota slot allocation config: make ARCH=pow

[PATCH 20/24] GFS2: Move quota bitmap operations under their own lock

2014-01-20 Thread Steven Whitehouse
Gradually, the global qd_lock is being used for less and less. After this patch it will only be used for the per super block list whose purpose is to allow syncing of changes back to the master quota file from the local quota changes file. Fixing up that process to make it more efficient will be th

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 05:23:21PM +0530, Tushar Behera wrote: > On 20 January 2014 15:35, Russell King - ARM Linux > wrote: > > On Mon, Jan 20, 2014 at 02:32:34PM +0530, Tushar Behera wrote: > >> uart_register_driver call binds the driver to a specific device > >> node through tty_register_driver

[PATCH 18/24] GFS2: Only run logd and quota when mounted read/write

2014-01-20 Thread Steven Whitehouse
While investigating a rather strange bit of code in the quota clean up function, I spotted that the reason for its existence was that when remounting read only, we were not stopping the quotad thread, and thus it was possible for it to still have a reference to some of the quotas in that case. Thi

[PATCH 19/24] GFS2: Clean up quota slot allocation

2014-01-20 Thread Steven Whitehouse
Quota slot allocation has historically used a vector of pages and a set of homegrown find/test/set/clear bit functions. Since the size of the bitmap is likely to be based on the default qc file size, thats a couple of pages at most. So we ought to be able to allocate that as a single chunk, with a

[PATCH 15/24] GFS2: Add initialization for address space in super block

2014-01-20 Thread Steven Whitehouse
Spotted by Andy Price. This should fix the odd messages from lockdep caused by 70d4ee94b370c5ef54d0870600f16bd92d18013c Signed-off-by: Steven Whitehouse Cc: Andrew Price diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 94aab31..3b820b6 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gf

[PATCH 12/24] GFS2: Increase i_writecount during gfs2_setattr_chown

2014-01-20 Thread Steven Whitehouse
From: Bob Peterson This patch calls get_write_access in function gfs2_setattr_chown, which merely increases inode->i_writecount for the duration of the function. That will ensure that any file closes won't delete the inode's multi-block reservation while the function is running. It also ensures t

[PATCH 16/24] GFS2: No need to invalidate pages for a dio read

2014-01-20 Thread Steven Whitehouse
We recently fixed the writeback of pages prior to performing direct i/o, however the initial fix was perhaps a bit heavy handed. There is no need to invalidate pages if the direct i/o is only a read, since they will be identical to what has been flushed to disk anyway. Signed-off-by: Steven Whiteh

[PATCH 08/24] GFS2: Use only a single address space for rgrps

2014-01-20 Thread Steven Whitehouse
Prior to this patch, GFS2 had one address space for each rgrp, stored in the glock. This patch changes them to use a single address space in the super block. This therefore saves (sizeof(struct address_space) * nr_of_rgrps) bytes of memory and for large filesystems, that can be significant. It wou

[PATCH 13/24] GFS2: For exhash conversion, only one block is needed

2014-01-20 Thread Steven Whitehouse
For most cases, only a single new block is needed when we reach the point of converting from stuffed to exhash directory. The exception being when the file name is so long that it will not fit within the new leaf block. So this patch adds a simple test for that situation so that we do not need to

[PATCH 11/24] GFS2: Remember directory insert point

2014-01-20 Thread Steven Whitehouse
When we look to see if there is enough space to add a dir entry without allocation, we have then been repeating the same search later when we do the actual insertion. This patch caches the details of the location in the gfs2_diradd structure, so that we do not have to repeat the search. This will

[PATCH 10/24] GFS2: Consolidate transaction blocks calculation for dir add

2014-01-20 Thread Steven Whitehouse
There are three cases where we need to calculate the number of blocks to reserve in a transaction involving linking an inode into a directory. The one in rename is a bit more complicated, but the basis of it is the same as for link and create. So it makes sense to move this calculation into a singl

[PATCH 09/24] GFS2: Add directory addition info structure

2014-01-20 Thread Steven Whitehouse
The intent is that this structure will hold the information required when adding entries to a directory (linking). To start with, it will contain only the number of blocks which are required to link the new entry into the directory. The current calculation returns either 0 or the maximim number of

[PATCH 04/24] GFS2: Clean up releasepage

2014-01-20 Thread Steven Whitehouse
For historical reasons, we drop and retake the log lock in ->releasepage() however, since there is no reason why we cannot hold the log lock over the whole function, this allows some simplification. In particular, pinning a buffer is only ever done under the log lock, so it is possible here to remo

[PATCH 03/24] GFS2: Implement a "rgrp has no extents longer than X" scheme

2014-01-20 Thread Steven Whitehouse
From: Bob Peterson With the preceding patch, we started accepting block reservations smaller than the ideal size, which requires a lot more parsing of the bitmaps. To reduce the amount of bitmap searching, this patch implements a scheme whereby each rgrp keeps track of the point at this multi-blo

Re: [PATCH] sched/deadline: Add sched_dl documentation

2014-01-20 Thread Luca Abeni
Hi Juri, On 01/20/2014 11:40 AM, Juri Lelli wrote: From: Dario Faggioli Add in Documentation/scheduler/ some hints about the design choices, the usage and the future possible developments of the sched_dl scheduling class and of the SCHED_DEADLINE policy. [...] + References: + 1 - C. L. Liu

Re: [PATCH 04/20] ARM64 / ACPI: Introduce arm_core.c and its related head file

2014-01-20 Thread Hanjun Guo
On 2014-1-18 0:56, Sudeep Holla wrote: > On 17/01/14 12:24, Hanjun Guo wrote: >> Introduce arm_core.c and its related head file, after this patch, >> we can get ACPI tables from firmware on ARM64 now. >> >> Signed-off-by: Al Stone >> Signed-off-by: Graeme Gregory >> Signed-off-by: Hanjun Guo >>

Re: [PATCH] drivers: staging: lustre: lustre: include: add "__attribute__((packed))" for the related union

2014-01-20 Thread Dan Carpenter
Ah. From so metag is a new arch and not a compiler like the changelog says. On Mon, Jan 20, 2014 at 11:56:47AM +, James Hogan wrote: > struct a { > struct b { > unsigned int x; > unsigned short y; > } x; > unsigned short y; > } __packed; This is

Re: [PATCH v7 6/6] MCS Lock: add Kconfig entries to allow arch-specific hooks

2014-01-20 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 04:08:36PM -0800, Tim Chen wrote: > This patch adds Kconfig entries to allow architectures to hook into the > MCS lock/unlock functions in the contended case. > > From: Will Deacon > Signed-off-by: Will Deacon > --- > arch/Kconfig | 3 +++ > include/linux

[PATCH 05/24] GFS2: Remove gfs2_quota_change_host structure

2014-01-20 Thread Steven Whitehouse
There is only one place this is used, when reading in the quota changes at mount time. It is not really required and much simpler to just convert the fields from the on-disk structure as required. There should be no functional change as a result of this patch. Signed-off-by: Steven Whitehouse d

[PATCH 06/24] GFS2: Remove test which is always true

2014-01-20 Thread Steven Whitehouse
Since gfs2_inplace_reserve() is always called with a valid alloc parms structure, there is no need to test for this within the function itself - and in any case, after we've all ready dereferenced it anyway. Reported-by: Dan Carpenter Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c

[PATCH 01/24] GFS2: If requested is too large, use the largest extent in the rgrp

2014-01-20 Thread Steven Whitehouse
From: Bob Peterson Here is a second try at a patch I posted earlier, which also implements suggestions Steve made: Before this patch, GFS2 would keep searching through all the rgrps until it found one that had a chunk of free blocks big enough to satisfy the size hint, which is based on the file

Re: [PATCH] drivers: staging: lustre: lustre: include: add "__attribute__((packed))" for the related union

2014-01-20 Thread James Hogan
On 20/01/14 12:30, Dan Carpenter wrote: > Ah. From so metag is a new arch and not a compiler like the changelog > says. > > On Mon, Jan 20, 2014 at 11:56:47AM +, James Hogan wrote: >> struct a { >> struct b { >> unsigned int x; >> unsigned short y; >> } x;

[RFC v2 PATCH 03/11] sched: define TOPOLOGY_SD_FLAGS

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann TOPOLOGY_SD_FLAGS contains all SD flags which provide topology related information towards the scheduler. All other SD flags describe scheduler behavioural aspects. The aim of TOPOLOGY_SD_FLAGS is to be able to check that the arch only specifies topology related flags in t

[RFC v2 PATCH 02/11] sched: export cpu_smt_mask() and cpu_cpu_mask()

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann Move cpu_smt_mask() and cpu_cpu_mask() from scheduler code into the include/linux/topology.h so that an arch can use them for specifying cpu masks for its topology info array. Signed-off-by: Dietmar Eggemann --- include/linux/topology.h | 12 kernel/sched/

[RFC v2 PATCH 11/11] sched: un-export struct sched_domain

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann Since all occurrences of SD_FOO_INIT have been deleted, there is no need to export struct sched_domain any more. Signed-off-by: Dietmar Eggemann --- include/linux/sched.h | 87 kernel/sched/sched.h | 153 ++

[RFC v2 PATCH 00/11] change scheduler domain hierarchy set-up

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann This patch-set cleans up the scheduler domain (sd) level initialisation code. It is based on the idea of Peter Zijlstra to use a single sd init function sketched here: https://lkml.org/lkml/2013/11/5/239 The sd level data for conventional (SMT, MC, BOOK, CPU) sd levels wh

[RFC v2 PATCH 10/11] sched: delete sd ptr arg in arch_scale_freq_power()

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann The ARM arch_scale_freq_power function is the only one outside the core scheduler code using struct sched_domain. This argument is not used in the call chain. This patch deletes it to make it possible to un-export struct sched_domain. Signed-off-by: Dietmar Eggemann ---

[RFC v2 PATCH 09/11] sched: provide SD_ASYM_PACKING via topology info table

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann The provision of the sd topology flag SD_ASYM_PACKING is shifted from the weak function arch_sd_sibling_asym_packing() towards an arch specific topology info table. Signed-off-by: Dietmar Eggemann --- arch/powerpc/kernel/smp.c | 34 +- k

[RFC v2 PATCH 01/11] sched: define sched_domain_topology_info

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann The idea behind creating the struct sched_domain_topology_info is to be able to only export the scheduler data which can be changed by the arch. Exporting the existing struct sched_domain_topology_level means that we also have to expose struct sd_data anf other scheduler i

[RFC v2 PATCH 07/11] sched: consolidate sched_init_numa() and sched_init_conv()

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann Consolidate sched_init_numa() and sched_init_conv() into one function sched_init_topology(). Signed-off-by: Dietmar Eggemann --- kernel/sched/core.c | 164 +-- 1 file changed, 68 insertions(+), 96 deletions(-) diff --git

[RFC v2 PATCH 06/11] sched: delete redundant sd init macros

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann This patch deletes all occurrences of SD_SIBLING_INIT, SD_MC_INIT, SD_BOOK_INIT and SD_CPU_INIT. The SD_NODE_INIT in arch/metag/include/asm/topology.h seems to be leftover, probably because the metag arch got introduced at the same time (v3.9) the other archs moved away fr

[RFC v2 PATCH 08/11] sched: introduce a func ptr for sd topology flags

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann To be able to set sd topology flags via the topology_info[] table dependent on runtime information (cpu feature or per cpu), this patch changes the provision of the sd topology flags from a simple int to a func ptr. The default flags func ptr for SMT and MC level are defin

[RFC v2 PATCH 04/11] sched: replace SD_INIT_FUNC with sd_init()

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann This patch incorporates struct sched_domain_topology_info info into struct sched_domain_topology_level. It updates sd_init_numa() to reflect the change that conventional (SMT, MC, BOOK, CPU) level initialization relies on the topology_info[] array and not on the default_t

[git pull] m68k updates for 3.14

2014-01-20 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae: Linux 3.13-rc1 (2013-11-22 11:30:55 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-linus for you to fetch changes up to 5693

[RFC v2 PATCH 05/11] sched: add a name to sched_domain_topology_info

2014-01-20 Thread dietmar . eggemann
From: Dietmar Eggemann With this patch, an arbitrary name for a sd level has to be specified in the topology info table. This feature is still only active if CONFIG_SCHED_DEBUG is set. Signed-off-by: Dietmar Eggemann --- include/linux/sched.h | 11 ++- kernel/sched/core.c | 23 ++

Re: [PATCH] dma: dw: Add suspend and resume handling for PCI mode DW_DMAC.

2014-01-20 Thread Shevchenko, Andriy
On Mon, 2014-01-20 at 14:55 +0530, Vinod Koul wrote: > On Thu, Dec 19, 2013 at 12:51:29PM +0200, Andy Shevchenko wrote: > > On Wed, 2013-12-18 at 21:19 +0530, Vinod Koul wrote: > > > On Mon, Dec 16, 2013 at 01:51:47PM +0530, Chew, Chiau Ee wrote: > > > > > > As mentioned by Andy, we are using *_no

Re: [RFC/RFT][PATCH 4/5] ACPI / LPSS: Support for device latency tolerance PM QoS

2014-01-20 Thread Rafael J. Wysocki
On Monday, January 20, 2014 01:15:19 PM Mika Westerberg wrote: > On Fri, Jan 17, 2014 at 03:46:40PM +0100, Rafael J. Wysocki wrote: > > @@ -415,11 +472,12 @@ static int acpi_lpss_platform_notify(str > > return 0; > > } > > > > - if (action == BUS_NOTIFY_ADD_DEVICE) > > + if (a

Re: [PATCH] drivers: staging: lustre: lustre: include: add "__attribute__((packed))" for the related union

2014-01-20 Thread Dan Carpenter
On Mon, Jan 20, 2014 at 12:37:57PM +, James Hogan wrote: > On 20/01/14 12:30, Dan Carpenter wrote: > > Ah. From so metag is a new arch and not a compiler like the changelog > > says. > > > > On Mon, Jan 20, 2014 at 11:56:47AM +, James Hogan wrote: > >> struct a { > >>struct b { > >>

Re: [PATCH] drivers: staging: lustre: lustre: include: add "__attribute__((packed))" for the related union

2014-01-20 Thread Dan Carpenter
Are you sure it's padding the unions, and not just treating the unions as structs? What is the size of this union? union a { int x; short y; }; regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@

RE: [PATCH net-next v2] xen-netback: Rework rx_work_todo

2014-01-20 Thread Paul Durrant
> -Original Message- > From: Zoltan Kiss > Sent: 20 January 2014 12:23 > To: Ian Campbell; Wei Liu; xen-de...@lists.xenproject.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Jonathan Davies > Cc: Paul Durrant > Subject: Re: [PATCH net-next v2] xen-netback: Rework rx_work_todo

Re: [PATCH] dma: fix vchan_cookie_complete() debug print

2014-01-20 Thread Vinod Koul
On Mon, Jan 20, 2014 at 11:28:22AM +, Russell King - ARM Linux wrote: > On Mon, Jan 20, 2014 at 03:29:17PM +0530, Vinod Koul wrote: > > On Fri, Dec 06, 2013 at 04:42:09PM +0100, Jonas Jensen wrote: > > > vd->tx.cookie is set zero on dma_cookie_complete(), > > > save to local before printing it.

<    1   2   3   4   5   6   7   >