Re: [PATCH v2 07/20] mm, hugetlb: unify region structure handling

2013-08-21 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 03:27:38PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > Currently, to track a reserved and allocated region, we use two different > > ways for MAP_SHARED and MAP_PRIVATE. For MAP_SHARED, we use > > address_mapping's private_list and, for MAP_PRIVATE, we use a

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-21 Thread Jan Beulich
>>> On 21.08.13 at 18:19, Cyrill Gorcunov wrote: > On Wed, Aug 21, 2013 at 05:03:13PM +0100, Jan Beulich wrote: >> > >> > Only to non-present ptes, as far as I know. >> >> That's not really any guarantee. And the accessor functions also >> don't check that they'd be used on non-present PTEs only

Re: [PATCH v2 07/20] mm, hugetlb: unify region structure handling

2013-08-21 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 03:52:57PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > Currently, to track a reserved and allocated region, we use two different > > ways for MAP_SHARED and MAP_PRIVATE. For MAP_SHARED, we use > > address_mapping's private_list and, for MAP_PRIVATE, we use a

Re: [PATCH v2 4/8] drm/i2c: tda998x: prepare for video input configuration

2013-08-21 Thread Jean-Francois Moine
On Wed, 21 Aug 2013 23:36:05 +0100 Russell King - ARM Linux wrote: > > AFAIK, the TI boards have no "pin-swapped", nor has the Cubox (there is > > no need to set the bit CFG_GRA_SWAPRB of the register LCD_SPU_DMA_CTRL0 > > of the Dove lcd for RGB or YUV formats). > > > > Which board needs a spec

Re: [PATCH v2 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-08-21 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 03:24:13PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > If we fail with a reserved page, just calling put_page() is not sufficient, > > because put_page() invoke free_huge_page() at last step and it doesn't > > know whether a page comes from a reserved pool o

Re: [PATCH v2 03/20] mm, hugetlb: fix subpool accounting handling

2013-08-21 Thread Joonsoo Kim
Hello, Aneesh. First of all, thank you for review! On Wed, Aug 21, 2013 at 02:58:20PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > If we alloc hugepage with avoid_reserve, we don't dequeue reserved one. > > So, we should check subpool counter when avoid_reserve. > > This patch imp

Re: ipvsadm: One-packet scheduling with UDP service is unstable

2013-08-21 Thread Julian Anastasov
Hello, On Tue, 20 Aug 2013, Drunkard Zhang wrote: > Need help here, thank you for replying :-) > > I'm setting up a syslog cluster based on IPVS, all UDP datagrams sent > from firewall with fixed source IP and fixed source port, so > pseudo-random balancing based on client IP and port w

[PATCH v2] DMA: add help function to check whether dma controller registered

2013-08-21 Thread Richard Zhao
DMA client device driver usually needs to know at probe time whether dma controller has been registered to deffer probe. So add a help function of_dma_check_controller. DMA request channel functions can also used to check it, but they are usually called at open() time. Signed-off-by: Richard Zhao

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-21 Thread Pavel Emelyanov
On 08/22/2013 04:51 AM, Dave Jones wrote: > On Wed, Aug 21, 2013 at 04:04:54PM -0700, Linus Torvalds wrote: > > On Wed, Aug 21, 2013 at 12:03 PM, Cyrill Gorcunov > wrote: > > > > > > I personally don't see bug here because > > > > > > - this swapped page soft dirty bit is set for non-presen

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-21 Thread Minchan Kim
Hello Cyrill, On Thu, Aug 22, 2013 at 09:49:19AM +0400, Cyrill Gorcunov wrote: > On Wed, Aug 21, 2013 at 04:42:53PM -0700, Andi Kleen wrote: > > Cyrill Gorcunov writes: > > > > > > Hi all, I worked on patch which would not touch PSE bit for dirty page > > > tracking and the result is not that goo

Re: [PATCH] pinctrl: palmas: PINCTRL_PALMAS needs to select PINMUX

2013-08-21 Thread Laxman Dewangan
On Thursday 22 August 2013 12:00 PM, Axel Lin wrote: Fix below build error if !PINMUX. CC drivers/pinctrl/pinctrl-palmas.o drivers/pinctrl/pinctrl-palmas.c:741:21: error: variable 'palmas_pinmux_ops' has initializer but incomplete type drivers/pinctrl/pinctrl-palmas.c:742:2: error: unkn

Re: linux-next: Tree for Aug 21 [ screen corruption in graphical mode ]

2013-08-21 Thread Sedat Dilek
e trivial tree gained conflicts against the crypto, net-next and >> >> > wireless trees. >> >> > >> >> > The aio tree gained conflicts against the aio-direct tree. >> >> > >> >> > The akpm-current tree gained conflicts again

[PATCH] pinctrl: palmas: PINCTRL_PALMAS needs to select PINMUX

2013-08-21 Thread Axel Lin
Fix below build error if !PINMUX. CC drivers/pinctrl/pinctrl-palmas.o drivers/pinctrl/pinctrl-palmas.c:741:21: error: variable 'palmas_pinmux_ops' has initializer but incomplete type drivers/pinctrl/pinctrl-palmas.c:742:2: error: unknown field 'get_functions_count' specified in initialize

Re: [PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-21 Thread Sascha Hauer
On Thu, Aug 22, 2013 at 02:55:42AM +, Xiubo Li-B47053 wrote: > Hi Tomasz, > > Thanks for your comments. > > > > Could you explain meaning of this property more precisely? I'm interested > > especially how is this related to the PWM IP block and boards. > > > > Yes. > There are 8 channels m

Re: [PATCH v4 03/19] powerpc: refactor of_get_cpu_node to support other architectures

2013-08-21 Thread Benjamin Herrenschmidt
On Tue, 2013-08-20 at 10:30 +0100, Sudeep KarkadaNagesha wrote: > From: Sudeep KarkadaNagesha > > Currently different drivers requiring to access cpu device node are > parsing the device tree themselves. Since the ordering in the DT need > not match the logical cpu ordering, the parsing logic nee

Re: [PATCH v3 2/5] ARM: dts: add reference voltage property for MXS LRADC

2013-08-21 Thread Jonathan Cameron
Sorry accidental HTML message hence resend Alexandre Belloni wrote: >Hi Pawel, > >On 14/08/2013 16:44, Pawel Moll wrote: >> On Tue, 2013-08-13 at 22:23 +0100, Jonathan Cameron wrote: >>> On 07/22/13 15:04, Hector Palacios wrote: Some LRADC channels have fixed pre-dividers so they can measure

Re: [PATCH] kernel/padata.c: always check the return value of __padata_remove_cpu() and __padata_add_cpu()

2013-08-21 Thread Steffen Klassert
On Thu, Aug 22, 2013 at 01:27:16PM +0800, Chen Gang wrote: > On 08/22/2013 01:11 PM, Steffen Klassert wrote: > > On Tue, Aug 20, 2013 at 11:44:31AM +0800, Chen Gang wrote: > >> > >> If this patch is correct, better to let CPU_ONLINE and CPU_DOWN_FAILED > >> share the same code. > >> > >> And do we

Re: bcache: Fix a writeback performance regression

2013-08-21 Thread Kent Overstreet
On Thu, Aug 22, 2013 at 07:59:04AM +0200, Stefan Priebe wrote: > > >schedule_timeout() is not the same as > >schedule_timeout_interruptible(). > > just search and replace? So i can try on my own. The one in read_dirty(), line ~330 -- To unsubscribe from this list: send the line "unsubscribe linu

Re: [PATCH 2/2] ARM: tegra: add Palmas pincontrol to Dalmore device tree

2013-08-21 Thread Laxman Dewangan
On Wednesday 21 August 2013 10:59 PM, Stephen Warren wrote: On 08/21/2013 06:34 AM, Laxman Dewangan wrote: Add Palmas pincontrol to Dalmore device tree and make following configuration as default: - Disable DVFS1 and DVFS2. - Set GPIO6 to gpio mode. diff --git a/arch/arm/boot/dts/tegra114-dalmor

Re: bcache: Fix a writeback performance regression

2013-08-21 Thread Stefan Priebe
>schedule_timeout() is not the same as >schedule_timeout_interruptible(). just search and replace? So i can try on my own. Stefan Am 22.08.2013 07:43, schrieb Kent Overstreet: On Thu, Aug 22, 2013 at 07:27:12AM +0200, Stefan Priebe wrote: today i had this one: Heh, I finally tracked it dow

[PATCH v4 3/5] clk: dt: binding for basic multiplexer clock

2013-08-21 Thread Mike Turquette
Device Tree binding for the basic clock multiplexer, plus the setup function to register the clock. Based on the existing fixed-clock binding. Includes minor beautification of clk-provider.h where some whitespace is added and of_fixed_factor_clock_setup is relocated to maintain a consistent style

[PATCH v4 0/5] clk: dt: bindings for mux, divider & gate clocks

2013-08-21 Thread Mike Turquette
This series introduces binding definitions for common register-mapped clock multiplexer, divider and gate IP blocks along with the corresponding setup functions for matching DT data. The bindings are similar to the struct definitions but please don't hold that against the binding: the struct defin

Re: [PATCH 7/8] net: davinci_mdio: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Prabhakar Lad
Hi Libo, Thanks for the patch. On Wed, Aug 21, 2013 at 12:32 PM, Libo Chen wrote: > Unnecessary dev_set_drvdata() is removed, because the driver core > clears the driver data to NULL after device_release or on probe failure. > > Signed-off-by: Libo Chen Acked-by: Lad, Prabhakar Regards, --Pr

[PATCH v4 4/5] clk: dt: binding for basic divider clock

2013-08-21 Thread Mike Turquette
Devicetree binding for the basic clock divider, plus the setup function to register the clock. Based on the existing fixed-clock binding. Tero Kristo contributed helpful bug fixes to this patch. Signed-off-by: Mike Turquette Tested-by: Heiko Stuebner Reviewed-by: Heiko Stuebner --- Changes si

[PATCH v4 5/5] clk: dt: binding for basic gate clock

2013-08-21 Thread Mike Turquette
Device Tree binding for the basic clock gate, plus the setup function to register the clock. Based on the existing fixed-clock binding. A different approach to this was proposed in 2012[1] and a similar binding was proposed more recently[2] if anyone wants some extra reading. [1] http://article.

[PATCH v4 2/5] clk: of: helper for determining number of parent clocks

2013-08-21 Thread Mike Turquette
Walks the "clocks" array of parent clock phandles and returns the number. Signed-off-by: Mike Turquette Tested-by: Heiko Stuebner Reviewed-by: Heiko Stuebner --- No change since v3 drivers/clk/clk.c| 6 ++ include/linux/clk-provider.h | 1 + 2 files changed, 7 insertions(+) d

[PATCH v4 1/5] clk: divider: replace bitfield width with mask

2013-08-21 Thread Mike Turquette
The forthcoming Device Tree binding for the divider clock type will use a bitfield mask instead of bitfield width, which is what the current basic divider implementation uses. This patch replaces the u8 width in struct clk_divider with a u32 mask. The divider code is updated to use the bit mask in

Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-21 Thread Heiko Carstens
Hi Masami, > (2013/08/21 21:01), Heiko Carstens wrote: > > The current kpropes insn caches allocate memory areas for insn slots with > > module_alloc(). The assumption is that the kernel image and module area > > are both within the same +/- 2GB memory area. > > This however is not true for s390 w

Re: [RFC V2 PATCH 2/6] powerpc: Implement broadcast timer interrupt as an IPI message

2013-08-21 Thread Preeti U Murthy
Hi Ben On 08/22/2013 08:40 AM, Benjamin Herrenschmidt wrote: > On Wed, 2013-08-14 at 17:26 +0530, Preeti U Murthy wrote: >> -static irqreturn_t unused_action(int irq, void *data) >> +static irqreturn_t timer_action(int irq, void *data) >> { >> - /* This slot is unused and hence available fo

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-21 Thread Cyrill Gorcunov
On Wed, Aug 21, 2013 at 04:42:53PM -0700, Andi Kleen wrote: > Cyrill Gorcunov writes: > > > > Hi all, I worked on patch which would not touch PSE bit for dirty page > > tracking and the result is not that good: > > > > - 2level pages now always page dirty if page is swapped in and out, because >

Re: bcache: Fix a writeback performance regression

2013-08-21 Thread Kent Overstreet
On Thu, Aug 22, 2013 at 07:27:12AM +0200, Stefan Priebe wrote: > today i had this one: Heh, I finally tracked it down earlier today. Turned out to be a rather embarassing bug... schedule_timeout() is not the same as schedule_timeout_interruptible(). I'll get the fix out in the morning, for the mo

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-21 Thread Cyrill Gorcunov
On Wed, Aug 21, 2013 at 08:51:15PM -0400, Dave Jones wrote: > > Could this explain what I'm seeing in another thread ? > https://lkml.org/lkml/2013/8/7/27 Don't think so. This code is merged in -rc6, while your report is saying the kernel version is -rc4 (also this feature requires CONFIG_MEM_SOF

Re: [PATCH] kernel/padata.c: always check the return value of __padata_remove_cpu() and __padata_add_cpu()

2013-08-21 Thread Steffen Klassert
On Tue, Aug 20, 2013 at 11:44:31AM +0800, Chen Gang wrote: > > If this patch is correct, better to let CPU_ONLINE and CPU_DOWN_FAILED > share the same code. > > And do we need a comment "/* fall through */" between CPU_UP_CANCELED > and CPU_DOWN_FAILED (or it is another bug, need a 'break' statem

[PATCH] mm/vmscan: make global_reclaim() inline

2013-08-21 Thread larmbr
Though Gcc is likely to inline them, we should better explictly do it manually, and also, this serve to document this fact. Signed-off-by: Zhan Jianyu --- mm/vmscan.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 1de652d..1946d7d 100644

linux-next: build failure after merge of the driver-core tree

2013-08-21 Thread Stephen Rothwell
by commit 65f44679580d ("ACPI: bgrt: take advantage of binary sysfs groups"). I have used the driver-core tree from next-20130821 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpf5mOG9boii.pgp Description: PGP signature

[PATCH] mm/vmscan : use vmcan_swappiness( ) basing on MEMCG config to elimiate unnecessary runtime cost

2013-08-21 Thread larmbr
Currently, we get the vm_swappiness via vmscan_swappiness(), which calls global_reclaim() to check if this is a global reclaim. Besides, the current implementation of global_reclaim() always returns true for the !CONFIG_MEGCG case, and judges the other case by checking whether scan_control->tar

Re: [RFC PATCH next]module: Fix mod->mkobj.kobj potentially freed too early

2013-08-21 Thread Li Zhong
On Wed, 2013-08-21 at 21:03 -0700, Greg KH wrote: > On Thu, Aug 22, 2013 at 10:34:06AM +0800, Li Zhong wrote: > > On Wed, 2013-08-21 at 09:18 -0700, Greg KH wrote: > > > On Wed, Aug 21, 2013 at 05:49:58PM +0800, Li Zhong wrote: > > > > DEBUG_KOBJECT_RELEASE helps to find the issue attached below. >

[PATCH V4 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-21 Thread Deepthi Dharwar
This patch involves moving the current pseries_idle backend driver code from pseries/processor_idle.c to drivers/cpuidle/cpuidle-powerpc.c, and making the backend code generic enough to be able to extend this driver code for both powernv and pseries. It enables the support for pseries platform, su

[PATCH V4 0/5] powerpc/cpuidle: Generic POWERPC cpuidle driver enabled for POWER and POWERNV platforms

2013-08-21 Thread Deepthi Dharwar
This patch series consolidates the backend cpuidle driver for pSeries and powernv platforms with minimal code duplication. Current existing backend driver for pseries has been moved to drivers/cpuidle and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this patc

[PATCH V4 5/5] powernv/cpuidle: Enable idle powernv cpu to call into the cpuidle framework.

2013-08-21 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) di

[PATCH V4 2/5] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-08-21 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv platforms, it is necessary to move the backend-driver code to drivers/cpuidle. As a pre-requisite for that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar

[PATCH V4 4/5] powerpc/cpuidle: Enable powernv cpuidle support.

2013-08-21 Thread Deepthi Dharwar
The following patch extends the current powerpc backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-powerpc.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/drivers/cpuidle/cpuidle-pow

[PATCH V4 1/5] pseries/cpuidle: Remove dependency of pseries.h file

2013-08-21 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv. Remove non-essential smt_snooze_delay declaration in pseries.h header file and pseries.h file inclusion in pseries/processor_idle.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pser

Re: [PATCH] kernel/padata.c: always check the return value of __padata_remove_cpu() and __padata_add_cpu()

2013-08-21 Thread Chen Gang
On 08/22/2013 01:11 PM, Steffen Klassert wrote: > On Tue, Aug 20, 2013 at 11:44:31AM +0800, Chen Gang wrote: >> >> If this patch is correct, better to let CPU_ONLINE and CPU_DOWN_FAILED >> share the same code. >> >> And do we need a comment "/* fall through */" between CPU_UP_CANCELED >> and CPU_DO

Re: bcache: Fix a writeback performance regression

2013-08-21 Thread Stefan Priebe
today i had this one: 2013-08-22 06:28:55 [] schedule+0x24/0x70 2013-08-22 06:28:55 [] io_schedule+0x87/0xd0 2013-08-22 06:28:55 [] sleep_on_page+0x9/0x10 2013-08-22 06:28:55 [] __wait_on_bit+0x57/0x80 2013-08-22 06:28:55 [] ? find_get_pages_tag+0xcc/0x180 2013-08-22 06:28:55

Re: [PATCH] PCI: exynos: add support for MSI

2013-08-21 Thread Jingoo Han
On Monday, August 12, 2013 6:13 PM, Sachin Kamat wrote: > On 12 August 2013 14:26, Jingoo Han wrote: > > This patch adds support for Message Signaled Interrupt in the > > Exynops PCIe diver using Synopsys designware PCIe core IP. > > s/Exynops PCIe diver/Exynos PCIe driver OK, I will fix this ty

Re: bcache: Fix a writeback performance regression

2013-08-21 Thread Stefan Priebe
Am 22.08.2013 01:47, schrieb Kent Overstreet: On Tue, Aug 20, 2013 at 10:07:45AM +0200, Stefan Priebe - Profihost AG wrote: Am 20.08.2013 10:01, schrieb Stefan Priebe - Profihost AG: Am 20.08.2013 00:27, schrieb Kent Overstreet: On Mon, Aug 19, 2013 at 12:09:24AM +0200, Stefan Priebe wrote:

[PATCH v3] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*

2013-08-21 Thread Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility. Signed-off-by: Kishon Vijay Abraham I --- Changes from [1]: * Since the old compatible values will be in 3.11 kernel, we shou

[PATCH] target/tcm_qla2xxx: Add/use target_reverse_dma_direction() in target_core_fabric.h

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Reversing the dma_data_direction for pci_map_sg() friends is useful for other drivers, so move it from tcm_qla2xxx into inline code within target_core_fabric.h. Also drop internal usage of equivlient in tcm_qla2xxx fabric code. Reported-by: Christoph Hellwig Cc: Roland

Re: [PATCH v2 2/4] mm/sparse: introduce alloc_usemap_and_memmap

2013-08-21 Thread Yinghai Lu
On Wed, Aug 21, 2013 at 12:29 AM, Wanpeng Li wrote: > Hi Yinghai, > On Tue, Aug 20, 2013 at 09:28:29PM -0700, Yinghai Lu wrote: >>On Tue, Aug 20, 2013 at 8:11 PM, Wanpeng Li wrote: >>> Hi Yinghai, >>> On Tue, Aug 20, 2013 at 05:02:17PM -0700, Yinghai Lu wrote: >> - /* ok, last chunk */ >>

Re: [PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-21 Thread Richard Zhao
On Fri, Aug 02, 2013 at 10:00:00AM +0800, Richard Zhao wrote: > pass of_phandle_args dma_spec to dma_request_channel in of_dma_simple_xlate, > so the filter function could access of_node in of_phandle_args. > > It also remove restriction of #dma-cells has to be one. > > Signed-off-by: Richard Zha

Re: [PATCH 1/2] extcon: extcon-dra7xx: Add extcon driver for USB ID detection

2013-08-21 Thread George Cherian
On 8/21/2013 11:05 PM, Stephen Warren wrote: On 08/21/2013 07:06 AM, George Cherian wrote: Hi Stephen, On 8/20/2013 10:23 PM, Stephen Warren wrote: ID pins are connected to pcf8575, and the pcf8575's interrupt line is inturn connected to gpio bank6 pin 11, we use this gpio interrupt to detect

[PATCH-v2 07/12] target: Add transport_reset_sgl_orig() for COMPARE_AND_WRITE

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger After COMPARE_AND_WRITE completes it's comparision, the WRITE payload SGLs head expect to be updated to point from the verify instance of user data, to the write instance of user data. So for this special case, add transport_reset_sgl_orig() usage within transport_free_p

[PATCH-v2 01/12] scsi: Add CDB definition for COMPARE_AND_WRITE

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: James Bottomley Cc: Nicholas Bellinger Signed-off-by: Nicholas Bellinger --- include/scsi/scsi.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/inc

[PATCH-v2 02/12] target: Add return for se_cmd->transport_complete_callback

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a sense_reason_t return to ->transport_complete_callback(), and updates target_complete_ok_work() to invoke the call if necessary to transport_send_check_condition_and_sense() during the failure case. Also update xdreadwrite_callback() to use this return

[PATCH-v2 03/12] target: Add TCM_MISCOMPARE_VERIFY sense handling

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds TCM_MISCOMPARE_VERIFY (ASC=0x1d, ASCQ=0x00) sense handling to transport_send_check_condition_and_sense(), which is required for a COMPARE_AND_WRITE comparision failure. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc:

[PATCH-v2 05/12] target: Convert se_cmd->t_bidi_data_sg checks to use SCF_BIDI

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Stop keying off se_cmd->t_bidi_data_sg within transport_complete_qf() + target_complete_ok_work(), and just use SCF_BIDI instead. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: James Bottomley Cc: Nicholas Bellinger Signed-off-by:

[PATCH-v2 06/12] target: Add memory allocation for bidirectional commands

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This adds transport_generic_get_mem_bidi() to perform scatterlist allocation for bidirectional commands. Also, update transport_generic_new_cmd() to call this new function when SCF_BIDI has been set. v2 Changes: - Use SCF_COMPARE_AND_WRITE instead of CDB based check f

[PATCH-v2 09/12] target: Add MAXIMUM COMPARE AND WRITE LENGTH in Block Limits VPD

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds the MAXIMUM COMPARE AND WRITE LENGTH bit, currently hardcoded to a single logical block (NoLB=1) within the Block Limits VPD in spc_emulate_evpd_b0(). Also add emulate_caw device attribute in configfs (enabled by default) to allow the exposure of this bit

RE: [PATCH] usb: xhci-plat: Enable USB 2.0 hardware LPM support for platform xHCs

2013-08-21 Thread Paul Zimmerman
> From: Julius Werner > Sent: Wednesday, August 21, 2013 9:22 PM > > > You need the USB 2.0 spec errata from 2011-11 that describes the changes > > made for BESL as well. It's in the USB2-LPM-Errata-final.pdf and > > USB2_LinkPowerMangement_ECN[final].pdf files in this zip file: > > > > http://ww

[PATCH-v2 12/12] target: Release COMPARE_AND_WRITE mutex in generic failure path

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a extra check for SCF_COMPARE_AND_WRITE within transport_generic_request_failure() to invoke the callback for compare_and_write_callback() or compare_and_write_done(), in order to release se_dev->caw_mutex from the generic failure path. It also adds to ch

[PATCH-v2 08/12] target: Make __target_execute_cmd() available as extern

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Required by COMPARE_AND_WRITE for write instance user-data submission, in order to bypass target_execute_cmd() checks. Reported-by: Christoph Hellwig Cc: Roland Dreier Cc: Nicholas Bellinger Signed-off-by: Nicholas Bellinger --- drivers/target/target_core_transport.

[PATCH-v2 10/12] target: Add support for COMPARE_AND_WRITE emulation

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds support for COMPARE_AND_WRITE emulation on a per block basis. This logic is used as an atomic test and set primative currently used by VMWare ESX VAAI for performing array side locking of individual VMFS extent ownership. This includes the COMPARE_AND_WR

[PATCH-v2 04/12] target: Allow sbc_ops->execute_rw() to accept SGLs + data_direction

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger COMPARE_AND_WRITE expects to be able to send down a DMA_FROM_DEVICE to obtain the necessary READ payload for comparision against the first half of the WRITE payload containing the verify user data. Currently virtual backends expect to internally reference SGLs, SGL nents

[PATCH-v2 11/12] target: Add compare_and_write_post() completion callback fall through

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch changes target_complete_ok_work() to fall through after calling the se_cmd->transport_complete_callback() -> compare_and_write_post() callback, by keying off the existance of SCF_COMPARE_AND_WRITE_POST. This is necessary because once SCF_COMPARE_AND_WRITE_POST

[PATCH-v2 00/12] target: Add support for COMPARE_AND_WRITE (VAAI) emulation

2013-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi folks, This series -v2 adds support to target-core for generic COMPARE_AND_WRITE emulation as defined by SBC-3 using virtual (IBLOCK, FILEIO, RAMDISK) backends. COMPARE_AND_WRITE is a VMWare ESX VAAI primitive that is currently used by VMFS to perform array side lock

linux-next: manual merge of the workqueues tree with the trivial tree

2013-08-21 Thread Stephen Rothwell
Hi Tejun, Today's linux-next merge of the workqueues tree got a conflict in kernel/workqueue.c between commit d185af300fe4 ("workqueue: fix some scripts/kernel-doc warnings") from the trivial tree and commit 2d498db9814c ("workqueue: Fix manage_workers() RETURNS description") from the workqueues t

Re: [PATCHv4 0/5] ceph: persistent caching with fscache

2013-08-21 Thread Sage Weil
Hi Milosz, I've pulled this into the ceph testing branch to make sure it holds up in qa. David, are the fscache patches here ready for the next merge window? Do you have a preference for whose tree they go through? Thanks! sage On Wed, 21 Aug 2013, Milosz Tanski wrote: > This an updated ve

Re: [Patch net-next v3 9/9] selinux: use generic union inet_addr

2013-08-21 Thread Cong Wang
On Tue, 2013-08-20 at 07:28 -0700, Casey Schaufler wrote: > > I do use and enjoy all of these implementations! Thank you > for the fine implementations. In the end, if you're maintaining > the code it's your call. I question change that does not have > an obvious purpose because statistically ever

Re: [PATCH] sysfs: add sysfs_create/remove_groups()

2013-08-21 Thread Anthony Foiani
Greg Kroah-Hartman writes: > + * sysfs_create_groups - given a directory kobject, create a bunch of > attribute groups > + * @kobj:The kobject to create the group on > + * @groups: The attribute groups to create, NULL terminated > + * > + * This function creates a bunch of attribute groups.

Re: [PATCH 1/8] um: Create defconfigs for i386 and x86_64

2013-08-21 Thread Stephen Rothwell
Hi Richard, On Wed, 21 Aug 2013 10:19:25 +0200 Richard Weinberger wrote: > > Instead of having one defconfig for both i386 and x86_64 > we have now two. > This is the first step to get rid of SUBARCH. > > This patch is based on: https://lkml.org/lkml/2013/7/4/396 > > Cc: Ramkumar Ramachandra >

Re: [PATCH 00/14] cpufreq: create & use cpufreq_generic_init() routine

2013-08-21 Thread Viresh Kumar
On 22 August 2013 04:50, Rafael J. Wysocki wrote: > OK, so the plan for merging this will be that we'll put 1 into linux-next > and add 2 to it after a few days etc. to give people a chance to test one > set of changes before going to the next one. > >> 1: cpufreq: Introduce cpufreq_table_validate

Obtenha ajuda financeira

2013-08-21 Thread Manuel J.F. Silva
Bom dia, Obtenha ajuda financeira que varia de 10.000,00 euros para 25.000.000,00 euros, a uma taxa de juros abaixo de 2% a tombar. Nós damos a empréstimos a particulares e empresas, mesmo que tenham sido incluídos na lista negra ou ter uma má classificação de crédito. Para encomendar,

Re: [RFC V2 PATCH 4/6] cpuidle/ppc: Add longnap state to the idle states on powernv

2013-08-21 Thread Benjamin Herrenschmidt
On Wed, 2013-08-14 at 17:26 +0530, Preeti U Murthy wrote: > This patch hooks into the existing broadcast framework along with the support > that this patchset introduces for ppc, and the cpuidle driver backend > for powernv(posted out by Deepthi Dharwar:https://lkml.org/lkml/2013/7/23/128) > to add

Re: [PATCH] usb: xhci-plat: Enable USB 2.0 hardware LPM support for platform xHCs

2013-08-21 Thread Julius Werner
> You need the USB 2.0 spec errata from 2011-11 that describes the changes > made for BESL as well. It's in the USB2-LPM-Errata-final.pdf and > USB2_LinkPowerMangement_ECN[final].pdf files in this zip file: > > http://www.usb.org/developers/docs/usb_20_070113.zip > > I agree though, it's all a con

Re: [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks

2013-08-21 Thread Mike Turquette
Quoting Stephen Boyd (2013-07-18 14:04:44) > On 06/20/13 23:14, Mike Turquette wrote: > > This series introduces binding definitions for common register-mapped > > clock multiplexer, divider and gate IP blocks along with the > > corresponding setup functions for matching DT data. The bindings are

Re: [RFC PATCH next]module: Fix mod->mkobj.kobj potentially freed too early

2013-08-21 Thread Greg KH
On Thu, Aug 22, 2013 at 10:34:06AM +0800, Li Zhong wrote: > On Wed, 2013-08-21 at 09:18 -0700, Greg KH wrote: > > On Wed, Aug 21, 2013 at 05:49:58PM +0800, Li Zhong wrote: > > > DEBUG_KOBJECT_RELEASE helps to find the issue attached below. > > > > > > After some investigation, it seems the reason

Re: [PATCH] kernel: user_namespace: always set the return parameter 'new_cred' when call unshare_userns() successfully.

2013-08-21 Thread Chen Gang
On 08/21/2013 07:57 PM, Oleg Nesterov wrote: > On 08/21, Chen Gang wrote: >> >> On 08/20/2013 10:37 PM, Oleg Nesterov wrote: >>> On 08/20, Serge Hallyn wrote: But the only existing caller (sys_unshare) does in fact initialize it to NULL. So while this patch does no harm, is it

Re: [BUG REPORT]kernel panic with kmemcheck config

2013-08-21 Thread Libin
On 2013/8/21 12:46, Dave Hansen wrote: > On 08/20/2013 07:45 PM, Libin wrote: >> [3.158023] [ cut here ] >> [3.162626] WARNING: CPU: 0 PID: 1 at >> arch/x86/mm/kmemcheck/kmemcheck.c:634 kmemcheck_fault+0xb1/0xc0() > ... >> [3.314877] [] ? kmemcheck_trap+0x17/0x

Re: [PATCH] net: irda: pxaficp_ir: use platform_set_drvdata()

2013-08-21 Thread David Miller
From: Libo Chen Date: Wed, 21 Aug 2013 18:15:11 +0800 > Use the wrapper functions for getting and setting the driver data using > platform_device instead of using deva_set_drvdata() with &pdev->dev, > so we can directly pass a struct platform_device. > > Signed-off-by: Libo Chen Applied. -- To

Re: [PATCH] net: phy: mdio-octeon: use platform_set_drvdata()

2013-08-21 Thread David Miller
From: Libo Chen Date: Wed, 21 Aug 2013 18:15:15 +0800 > Use the wrapper functions for getting and setting the driver data using > platform_device instead of using dev_set_drvdata() with &pdev->dev, > so we can directly pass a struct platform_device. > > Signed-off-by: Libo Chen Applied. -- To

Re: [PATCH 1/2] hso: Earlier catch of error condition

2013-08-21 Thread David Miller
From: Greg KH Date: Wed, 21 Aug 2013 09:25:07 -0700 > On Wed, Aug 21, 2013 at 01:43:07AM -0700, Daniel Gimpelevich wrote: >> There is no need to get an interface specification if we know it's the >> wrong one. >> >> Signed-off-by: Daniel Gimpelevich > > Acked-by: Greg Kroah-Hartman Applied.

Re: [PATCH 2/2] hso: Fix stack corruption on some architectures

2013-08-21 Thread David Miller
From: Greg KH Date: Wed, 21 Aug 2013 09:24:47 -0700 > On Wed, Aug 21, 2013 at 01:43:19AM -0700, Daniel Gimpelevich wrote: >> As Sergei Shtylyov explained in the #mipslinux IRC channel: >> [Mon 2013-08-19 12:28:21 PM PDT] guys, are you sure it's not "DMA >> off stack" case? >> [Mon 2013-08-19 1

Re: [PATCH 2/2] pinctrl: core: Add proper mutex lock in pinctrl_request_gpio

2013-08-21 Thread Axel Lin
2013/8/22 Linus Walleij : > On Mon, Aug 19, 2013 at 4:07 AM, Axel Lin wrote: > >> This one is missed in commit 42fed7ba "pinctrl: move subsystem mutex to >> pinctrl_dev struct". > > I think this was never there. I think it was protected by the global pinctrl_mutex in v3.9, you can check the sourc

Re: [PATCH 0/8] x86, acpi: Move acpi_initrd_override() earlier.

2013-08-21 Thread Tejun Heo
Hello, On Wed, Aug 21, 2013 at 04:36:35PM -0600, Toshi Kani wrote: > I agree that ACPI is rather complicated stuff. But in my experience, > the majority complication comes from ACPI namespace and methods, not > from ACPI tables. Do you really think ACPI table init is that risky? I > consider AC

RE: [PATCH] reboot: perform warm/cold reset correctly for CF9 type

2013-08-21 Thread Li, Fei
> Subject: RE: [PATCH] reboot: perform warm/cold reset correctly for CF9 type > > The thing is that the existing "warm" and "cold" means something different, I > believe (skip post vs do post.) It is possible it just works, but it would > be good to > know which platforms or works on. > > Also,

Re: [RFC V2 PATCH 3/6] cpuidle/ppc: Add timer offload framework to support deep idle states

2013-08-21 Thread Benjamin Herrenschmidt
On Wed, 2013-08-14 at 17:26 +0530, Preeti U Murthy wrote: > static irqreturn_t timer_action(int irq, void *data) > { > - timer_interrupt(); > + decrementer_timer_interrupt(); > return IRQ_HANDLED; > } I don't completely understand what you are doing here, but ... > @@ -223,7 +22

Re: unused swap offset / bad page map.

2013-08-21 Thread Hillf Danton
On Thu, Aug 22, 2013 at 4:49 AM, Dave Jones wrote: > > didn't hit the bug_on, but got a bunch of > > [ 424.077993] swap_free: Unused swap offset entry 000187d5 > [ 439.377194] swap_free: Unused swap offset entry 000187e7 > [ 441.998411] swap_free: Unused swap offset entry 000187ee > [ 446.9565

Re: [RFC V2 PATCH 2/6] powerpc: Implement broadcast timer interrupt as an IPI message

2013-08-21 Thread Benjamin Herrenschmidt
On Wed, 2013-08-14 at 17:26 +0530, Preeti U Murthy wrote: > -static irqreturn_t unused_action(int irq, void *data) > +static irqreturn_t timer_action(int irq, void *data) > { > - /* This slot is unused and hence available for use, if needed > */ > + timer_interrupt(); > return

Re: [PATCH linux-next] ipv6: fix missing braces in ip6_tnl_add_linklocal

2013-08-21 Thread David Miller
I already reverted the change in question. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v3] xHCI: Fixing xhci_readl definition and function call

2013-08-21 Thread Kumar Gaurav
This patch redefine function xhci_readl.xhci_readl function doesn't use xhci_hcd argument. Hence there is no need of keeping it in the function arguments. Redefining this function breaks other functions which calls this function. This phatch also correct those calls in xhci driver. Signed-off-

Re: [PATCH -next] mm/page_alloc.c: remove duplicated include from page_alloc.c

2013-08-21 Thread Naoya Horiguchi
On Thu, Aug 22, 2013 at 10:47:27AM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. > > Signed-off-by: Wei Yongjun > --- > mm/page_alloc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index efb2ffa..4751901 100644 > --

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-21 Thread Chen Gang
On 08/21/2013 10:23 PM, Paul E. McKenney wrote: > On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: >> >> If we still doubt about it, but can not find a suitable way to fix it >> (neither of us are familiar with it). > > Well, you have that halfway correct, which some might well argue is

RE: [PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-21 Thread Xiubo Li-B47053
Hi Tomasz, Thanks for your comments. > > +- #pwm-cells: Should be 3. Number of cells being used to specify PWM > > property. > > + First cell specifies the per-chip channel index of the PWM > > to use, the > > + second cell is the period in nanoseconds and bit 0 in > > the third cell is > > +

Re: [PATCH RESEND net-next V2 2/3] net: huawei_cdc_ncm: Introduce the huawei_cdc_ncm driver

2013-08-21 Thread Greg KH
On Thu, Aug 22, 2013 at 04:30:40AM +0200, Enrico Mioso wrote: > This driver supports devices using the NCM protocol as an encapsulation layer > for other protocols, like the E3131 Huawei 3G modem. This driver was heavily > inspired by the qmi_wwan approach & code model. Line-wrap your changelog l

WARNING: CPU: 1 PID: 0 at kernel/time/tick-broadcast.c:667

2013-08-21 Thread poma
The miracle is that anyone ever manages to read this from a bunch of other posts. Waking up from system sleep state S3: PM: Syncing filesystems ... done. PM: Preparing system for mem sleep PM: Entering mem sleep PM: suspend of devices complete after 2720.791 msecs PM: suspend devices took 2.725

Re: [PATCH] kernel/delayacct.c: check NULL for member variable 'delays' in all extern functions.

2013-08-21 Thread Chen Gang
On 08/22/2013 06:10 AM, Andrew Morton wrote: > On Tue, 20 Aug 2013 10:40:03 +0800 Chen Gang wrote: > >> The member variable 'delays' may be NULL, so need check NULL before use >> it for all extern functions, just like __delayacct_tsk_init() and >> __delayacct_add_tsk() have already done. > > If

Re: [dm-devel] [PATCH v2] dm ioctl: allow change device target type to error

2013-08-21 Thread Joe Jin
Mikulas, thanks for you suggestions, I create new patch, can you please help review? Subject: dm: add map_rq define for error commit a5664da "dm ioctl: make bio or request based device type immutable" prevented "dmsetup wape_table" change the target type to "error" for there is not map_rq for err

[PATCH -next] mm/page_alloc.c: remove duplicated include from page_alloc.c

2013-08-21 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index efb2ffa..4751901 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -60,7 +60,6 @@ #include #include #i

Re: [PATCH v2] dm ioctl: allow change device target type to error

2013-08-21 Thread Joe Jin
On 08/21/13 23:06, Mike Snitzer wrote: > On Wed, Aug 21 2013 at 10:48am -0400, > Mikulas Patocka wrote: > >> >> >> On Wed, 21 Aug 2013, Joe Jin wrote: >> >>> commit a5664da "dm ioctl: make bio or request based device type immutable" >>> prevented "dmsetup wape_table" change the target type to "er

  1   2   3   4   5   6   7   8   >