Re: 3.11-rc7:BUG: soft lockup

2013-09-01 Thread Ding Tianhong
On 2013/9/2 14:06, Baoquan He wrote: > Hi both, > > Thanks for your patches. I tried to test your patches, first the 2nd > one, namely Hillf's patch, it's OK. Then when I wanted to reproduce and > test Cong's patch, it failed to happen again. > > I remember this bug happened randomly at the v

Re: perf, x86: Add parts of the remaining haswell PMU functionality

2013-09-01 Thread Ingo Molnar
One thing I'm not seeing in the current Haswell code is the config set up for PERF_COUNT_HW_STALLED_CYCLES_FRONTEND/BACKEND. Both SB and IB has them configured. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...

Re: [PATCH v4 2/3] sched: Consider max cost of idle balance per sched domain

2013-09-01 Thread Srikar Dronamraju
* Jason Low [2013-08-29 13:05:35]: > + u64 curr_cost = 0; > > this_rq->idle_stamp = rq_clock(this_rq); > > - if (this_rq->avg_idle < sysctl_sched_migration_cost) > + if (this_rq->avg_idle < this_rq->max_idle_balance_cost) > return; > Since max_idle_balance_cost

Re: [PATCH v3 0/3] cleanup of gpio_pcf857x.c

2013-09-01 Thread Kuninori Morimoto
Hi Sorry for my many response. > This patch series > - removes the irq_demux_work > - Uses devm_request_threaded_irq > - Call the user handler iff gpio_to_irq is done. > > v1 --> v2 > Split v1 to 3 patches > v2 --> v3 > Remove the unnecessary dts patches. >

Re: [PATCH] rtl8187: fix use after free on failure path in rtl8187_init_urbs()

2013-09-01 Thread Hin-Tak Leung
-- On Mon, Sep 2, 2013 05:06 BST Alexey Khoroshilov wrote: >On 01.09.2013 10:51, Hin-Tak Leung wrote: >> -- >> On Sat, Aug 31, 2013 22:18 BST Alexey Khoroshilov wrote: >> >> In case of __dev_alloc_skb() failure rtl8187_init_urbs() >> calls us

Re: [PATCH v4 1/3] sched: Reduce overestimating rq->avg_idle

2013-09-01 Thread Srikar Dronamraju
* Jason Low [2013-08-29 13:05:34]: > When updating avg_idle, if the delta exceeds some max value, then avg_idle > gets set to the max, regardless of what the previous avg was. This can cause > avg_idle to often be overestimated. > > This patch modifies the way we update avg_idle by always updati

Re: [PATCH] rbtree: Add some necessary condition checks

2013-09-01 Thread Zhi Yong Wu
In Tue, Aug 27, 2013 at 6:01 AM, Michel Lespinasse wrote: > On Fri, Aug 23, 2013 at 7:45 AM, wrote: >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu >> --- >> include/linux/rbtree_augmented.h | 3 ++- >> lib/rbtree.c | 5 +++-- >> 2 files changed, 5 insertions(+), 3 d

Re: [PATCH V2 6/6] vhost_net: correctly limit the max pending buffers

2013-09-01 Thread Jason Wang
On 09/02/2013 01:56 PM, Michael S. Tsirkin wrote: > On Fri, Aug 30, 2013 at 12:29:22PM +0800, Jason Wang wrote: >> As Michael point out, We used to limit the max pending DMAs to get better >> cache >> utilization. But it was not done correctly since it was one done when >> there's no >> new buffe

Re: [PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void

2013-09-01 Thread Jason Wang
On 09/02/2013 01:51 PM, Michael S. Tsirkin wrote: > tweak subj s/returns/return/ > > On Fri, Aug 30, 2013 at 12:29:17PM +0800, Jason Wang wrote: >> > None of its caller use its return value, so let it return void. >> > >> > Signed-off-by: Jason Wang >> > --- Will correct it in v3. -- To unsubscr

Re: [PATCH V2 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-09-01 Thread Jason Wang
On 09/02/2013 01:50 PM, Michael S. Tsirkin wrote: > On Fri, Aug 30, 2013 at 12:29:18PM +0800, Jason Wang wrote: >> > We tend to batch the used adding and signaling in vhost_zerocopy_callback() >> > which may result more than 100 used buffers to be updated in >> > vhost_zerocopy_signal_used() in som

Question regarding list_for_each_entry_safe usage in move_one_task

2013-09-01 Thread Lei Wen
Hi Peter, I find one list API usage may not be correct in current fair.c code. In move_one_task function, it may iterate through whole cfs_tasks list to get one task to move. But in dequeue_task(), it would delete one task node from list without the lock protection. So that we could see from list

Re: UEFI Plugfest 2013 -- New Orleans

2013-09-01 Thread Matt Fleming
On Mon, 19 Aug, at 09:09:54PM, David Woodhouse wrote: > 3. Even if we can't *remove* the code, sometimes we can disable it at > runtime if we detect the BIOS is new enough that it shouldn't be broken. Yes, this is definitely something we should be looking to implement. It seems likely to me that

Re: [RFC PATCH v3 04/35] mm: Initialize node memory regions during boot

2013-09-01 Thread Yasuaki Ishimatsu
(2013/08/30 22:15), Srivatsa S. Bhat wrote: Initialize the node's memory-regions structures with the information about the region-boundaries, at boot time. Based-on-patch-by: Ankita Garg Signed-off-by: Srivatsa S. Bhat --- include/linux/mm.h |4 mm/page_alloc.c| 28 +

Re: [Intel-gfx] [PATCH v3] i915: Update VGA arbiter support for newer devices

2013-09-01 Thread Daniel Vetter
On Fri, Aug 30, 2013 at 03:43:05PM +0300, Ville Syrjälä wrote: > On Wed, Aug 28, 2013 at 09:39:08AM -0600, Alex Williamson wrote: > > This is intended to add VGA arbiter support for Intel HD graphics on > > Core processors. The old GMCH registers no longer exist, so even > > though it appears that

Re: [PATCH] batman: Remove reference to compare_ether_addr

2013-09-01 Thread Antonio Quartulli
On Sun, Sep 01, 2013 at 03:45:08PM -0700, Joe Perches wrote: > This function is being removed, rename the reference. > > Signed-off-by: Joe Perches Acked-by: Antonio Quartulli Thanks a lot Joe -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara signature.asc D

Re: [Intel-gfx] [PATCH 0/2] vgaarb: Fixes for partial VGA opt-out

2013-09-01 Thread Daniel Vetter
On Fri, Aug 30, 2013 at 03:41:19PM +0300, Ville Syrjälä wrote: > On Thu, Aug 15, 2013 at 04:37:47PM -0600, Alex Williamson wrote: > > I'm trying to add support for VGA arbitration on newer Intel graphics > > devices. The existing code attempts to do this, but appear to have > > not been updated si

Re: 3.11-rc7:BUG: soft lockup

2013-09-01 Thread Baoquan He
Hi both, Thanks for your patches. I tried to test your patches, first the 2nd one, namely Hillf's patch, it's OK. Then when I wanted to reproduce and test Cong's patch, it failed to happen again. I remember this bug happened randomly at the very beginning, just after kernel compiling it alw

Re: [PATCH V2 6/6] vhost_net: correctly limit the max pending buffers

2013-09-01 Thread Michael S. Tsirkin
On Fri, Aug 30, 2013 at 12:29:22PM +0800, Jason Wang wrote: > As Michael point out, We used to limit the max pending DMAs to get better > cache > utilization. But it was not done correctly since it was one done when there's > no > new buffers submitted from guest. Guest can easily exceeds the lim

Re: [PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void

2013-09-01 Thread Michael S. Tsirkin
tweak subj s/returns/return/ On Fri, Aug 30, 2013 at 12:29:17PM +0800, Jason Wang wrote: > None of its caller use its return value, so let it return void. > > Signed-off-by: Jason Wang > --- > drivers/vhost/net.c |5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a

Re: [PATCH V2 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-09-01 Thread Michael S. Tsirkin
On Fri, Aug 30, 2013 at 12:29:18PM +0800, Jason Wang wrote: > We tend to batch the used adding and signaling in vhost_zerocopy_callback() > which may result more than 100 used buffers to be updated in > vhost_zerocopy_signal_used() in some cases. So wwitch to use switch > vhost_add_used_and_signa

Re: [PATCH] Remove support for score architecture

2013-09-01 Thread Guenter Roeck
On 09/01/2013 09:13 PM, Lennox Wu wrote: Dear all, Indeed, Sunplus S+core is not a popular architecture and there is no standalone to be sold so you should not find related news on the Internet. However, the s+core is adopted by our SoCs and these SoCs are indeed adopted by some companies, we h

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-01 Thread Vinod Koul
On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines at 80chars... > > > > > > + return -EINVAL; > > > + } > > > + return 0; > > > + > > > + default: > > > + return -ENXIO; > > > + } > > > +} > >

Re: [PATCH 0/10] Add additional security checks when module loading is restricted

2013-09-01 Thread joeyli
於 三,2013-08-28 於 16:07 -0700,Kees Cook 提到: > On Wed, Aug 28, 2013 at 3:58 PM, Lenny Szubowicz wrote: > > > > > > - Original Message - > >> From: "Matthew Garrett" > >> To: "Lenny Szubowicz" > >> Cc: linux-kernel@vger.kernel.org, linux-...@vger.kernel.org, > >> jwbo...@redhat.com, keesc.

Re: ipc-msg broken again on 3.11-rc7?

2013-09-01 Thread Vineet Gupta
On 08/31/2013 11:20 PM, Linus Torvalds wrote: > Vineet, actual patch for what Davidlohr suggests attached. Can you try it? > > Linus Apologies for late in getting back to this - I was away from my computer for a bit. Unfortunately, with a quick test, this patch doesn't help. FWIW, t

Re: device_create_file returns 0 but doesn't work

2013-09-01 Thread Ian Pilcher
On 09/01/2013 06:38 PM, Ian Pilcher wrote: > I am trying to add an additional sysfs attribute to a device (LED) that > is created by another driver. (My ultimate goal is to provide a way for > a userspace application to use the functionality provided by > led_blink_set, which doesn't currently see

[PATCH v2 6/6] ACPI / processor: Remove outdated comments

2013-09-01 Thread Hanjun Guo
acpi_get_processor_id() can be find nowhere, and the acpi id is synchronized to APIC id when acpi_get_cpuid() is called, so the comments can be removed. Signed-off-by: Hanjun Guo --- drivers/acpi/acpi_processor.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/acpi/acpi_proces

[PATCH v2 5/6] ACPI / processor: remove unnecessary if (!pr) check

2013-09-01 Thread Hanjun Guo
acpi_processor_errata() is only called in acpi_processor_get_info(), and the argument 'pr' passed to acpi_processor_errata() will never be NULL, so the if (!pr) check is unnecessary and can be removed. Since the 'pr' argument is not used by acpi_processor_errata() any more, so change the argument

[PATCH v2 4/6] ACPI / processor: remove some dead code in acpi_processor_get_info()

2013-09-01 Thread Hanjun Guo
From: Jiang Liu errata.smp is used by nowhere, so the variable assignment is meanless, remove it. Signed-off-by: Jiang Liu Signed-off-by: Hanjun Guo --- drivers/acpi/acpi_processor.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_pro

Re: [PATCH] rtl8187: fix use after free on failure path in rtl8187_init_urbs()

2013-09-01 Thread Alexey Khoroshilov
On 01.09.2013 10:51, Hin-Tak Leung wrote: -- On Sat, Aug 31, 2013 22:18 BST Alexey Khoroshilov wrote: In case of __dev_alloc_skb() failure rtl8187_init_urbs() calls usb_free_urb(entry) where 'entry' can points to urb allocated at the previous iteration. That means re

[PATCH v2 3/6] x86 / ACPI: simplify _acpi_map_lsapic()

2013-09-01 Thread Hanjun Guo
From: Jiang Liu In acpi_register_lapic(), it will generates a new logical cpu number and maps to the local APIC id, this logical cpu number can be returned to simplify _acpi_map_lsapic() implementation. Signed-off-by: Jiang Liu Signed-off-by: Hanjun Guo --- arch/x86/include/asm/mpspec.h |

[PATCH v2 2/6] ACPI / processor: use apic_id and remove duplicated _MAT evaluation

2013-09-01 Thread Hanjun Guo
From: Jiang Liu Since APIC id is saved in processor struct, just use it and remove the duplicated _MAT evaluation. Signed-off-by: Jiang Liu Signed-off-by: Hanjun Guo --- arch/ia64/kernel/acpi.c | 38 -- arch/x86/kernel/acpi/boot.c | 38 +++--

[PATCH v2 1/6] ACPI / processor: Introduce apic_id in struct processor to save parsed APIC id

2013-09-01 Thread Hanjun Guo
From: Jiang Liu For cpu hot add, we evaluate _MAT or parse MADT twice to get APIC id, here is the code logic: acpi_processor_add() acpi_processor_get_info() acpi_get_cpuid() will evaluate _MAT or parse MADT; acpi_processor_hotadd_init() acpi_map_lsa

[PATCH v2 0/6] Remove the duplicated _MAT evaluation and simplify _acpi_map_lsapic()

2013-09-01 Thread Hanjun Guo
v1->v2: Return specific error value instead of just return -1, and correct some grammar mistake in changelog. For cpu hot add, evaluate _MAT or parse MADT will did twice to get APIC id: acpi_processor_add() acpi_processor_get_info() acpi_get_cpuid() will evaluate _MAT or pa

linux-next: manual merge of the ipsec-next tree with Linus' tree

2013-09-01 Thread Stephen Rothwell
Hi Steffen, Today's linux-next merge of the ipsec-next tree got a conflict in include/net/xfrm.h between commit 628e341f319f ("xfrm: make local error reporting more robust") from Linus' tree and commit aba826958830 ("{ipv4,xfrm}: Introduce xfrm_tunnel_notifier for xfrm tunnel mode callback") from

Re: [PATCH V2 0/6] perf: New conditional branch filter

2013-09-01 Thread Anshuman Khandual
On 08/30/2013 05:18 PM, Stephane Eranian wrote: > 2013/8/30 Anshuman Khandual >> > >> > This patchset is the re-spin of the original branch stack sampling >> > patchset which introduced new PERF_SAMPLE_BRANCH_COND filter. This patchset >> > also enables SW based branch filtering support fo

RE: [PATCHv2 1/4] pwm: Add Freescale FTM PWM driver support

2013-09-01 Thread Xiubo Li-B47053
> > +static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device > > +*pwm) { > > + struct fsl_pwm_chip *fpc; > > + struct fsl_pwm_data *pwm_data; > > + > > + fpc = to_fsl_chip(chip); > > + > > + pwm_data = pwm_get_chip_data(pwm); > > + if (!pwm_data) > > + return; > > T

[PATCH v2 4/4] ASoC: rsnd: use regmap instead of original register mapping method

2013-09-01 Thread Kuninori Morimoto
Current Linux kernel is supporting regmap/regmap_field, and, it is good match for Renesas Sound Gen1/Gen2 register mapping. This patch uses regmap instead of original method for register access Signed-off-by: Kuninori Morimoto --- v1 -> v2 - exchange macro naming (RSND_GEN1_S_REG/RSND_GEN1_M_RE

[PATCH v2 2/4] regmap: Add regmap_fields APIs

2013-09-01 Thread Kuninori Morimoto
Current Linux kernel is supporting regmap_field method and it is very useful feature. It needs one regmap_filed for one register access. OTOH, there is multi port device which has many same registers in the market. The difference for each register access is only its address offset. Current API ne

[PATCH v2 3/4] ASoC: rsnd: gen: rsnd_gen_ops cares .probe and .remove

2013-09-01 Thread Kuninori Morimoto
Current rsnd_gen_ops didn't care about .probe and .remove functions, but it was not good sense. This patch tidyup it Signed-off-by: Kuninori Morimoto --- v1 -> v2 - no change sound/soc/sh/rcar/gen.c | 41 - 1 file changed, 24 insertions(+), 17 deletio

Re: [PATCH v2] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-09-01 Thread Chen Gang
On 08/30/2013 08:20 PM, Guenter Roeck wrote: > On 08/30/2013 04:44 AM, richard -rw- weinberger wrote: >> On Fri, Aug 30, 2013 at 1:18 PM, Guenter Roeck >> wrote: >>> On 08/29/2013 11:34 PM, Chen Gang wrote: On 08/30/2013 12:53 PM, Guenter Roeck wrote: > > On 08/29/2013 08:59 PM,

Re: [PATCH v2 0/4] add regmap_filelds and use it on Renesas Sound driver

2013-09-01 Thread Kuninori Morimoto
Hi Mark These patches are v2 of new regmap_filelds API on kernel. ~ It can care about multi port register offset via regmap. 0x + 0x40-- port 0 -- regX regY regZ 0x + 0x80-- port

[PATCH v2 1/4] regmap: add regmap_field_update_bits()

2013-09-01 Thread Kuninori Morimoto
Current regmap_field is supporting read/write functions. This patch adds new update_bits function for it. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - fixup EXPORT_SYMBOL_GPL() naming drivers/base/regmap/regmap.c | 20 include/linux/regmap.h |2 ++ 2 files

Re: [PATCH V2 4/6] vhost_net: determine whether or not to use zerocopy at one time

2013-09-01 Thread Jason Wang
On 08/31/2013 02:35 AM, Sergei Shtylyov wrote: > Hello. > > On 08/30/2013 08:29 AM, Jason Wang wrote: > >> Currently, even if the packet length is smaller than >> VHOST_GOODCOPY_LEN, if >> upend_idx != done_idx we still set zcopy_used to true and rollback >> this choice >> later. This could be avoi

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-01 Thread Alexey Kardashevskiy
On 09/01/2013 10:06 PM, Gleb Natapov wrote: > On Wed, Aug 28, 2013 at 06:50:41PM +1000, Alexey Kardashevskiy wrote: >> This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT >> and H_STUFF_TCE requests targeted an IOMMU TCE table without passing >> them to user space which saves time o

linux-next: manual merge of the net-next tree with Linus' tree

2013-09-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c between commit 64c3b252e9fc ("net: stmmac: fixed the pbl setting with DT") from the tree and commit e2a240c7d3bc ("driver:net:stmmac: Disable DMA store and forward mode if

Re: Re: [PATCH] [BUGFIX] crash/ioapic: Prevent crash_kexec() from deadlocking of ioapic_lock

2013-09-01 Thread Yoshihiro YUNOMAE
Hi Eric and Don, Sorry for the late reply. (2013/08/31 9:58), Eric W. Biederman wrote: > Don Zickus writes: > >> On Tue, Aug 27, 2013 at 12:41:51PM +0900, Yoshihiro YUNOMAE wrote: >>> Hi Don, >>> >>> Sorry for the late reply. >>> >>> (2013/08/22 22:11), Don Zickus wrote: On Thu, Aug 22, 20

Re: [PATCH V2 5/6] vhost_net: poll vhost queue after marking DMA is done

2013-09-01 Thread Jason Wang
On 08/31/2013 12:44 AM, Ben Hutchings wrote: > On Fri, 2013-08-30 at 12:29 +0800, Jason Wang wrote: >> We used to poll vhost queue before making DMA is done, this is racy if vhost >> thread were waked up before marking DMA is done which can result the signal >> to >> be missed. Fix this by always

Re: [PATCH v2] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-09-01 Thread Chen Gang
On 08/30/2013 07:12 PM, Guenter Roeck wrote: > On 08/29/2013 10:49 PM, Chen Gang wrote: >> On 08/30/2013 12:32 PM, Guenter Roeck wrote: >>> On 08/29/2013 08:59 PM, Chen Gang wrote: The related error (allmodconfig for h8300): arch/h8300/kernel/setup.c: In function 'setup_arch': >>

Re: perf_event: rdpmc self-monitoring overhead issue

2013-09-01 Thread Andi Kleen
Stephane Eranian writes: > I don't see a flag in mmap() to fault it in immediately. MAP_PRESENT -Andi -- a...@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More major

Re: [PATCHv2 00/25] perf tool: Add support for multiple data file storage

2013-09-01 Thread Andi Kleen
On Sun, Sep 01, 2013 at 12:36:11PM +0200, Jiri Olsa wrote: > hi, > sending the support for multiple file storage. Initial > RFC is here: > http://marc.info/?l=linux-kernel&m=137408381902423&w=2 Just a general comment. If you repost please always keep the overview description/motivation in 0/0. -A

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

2013-09-01 Thread Xiubo Li-B47053
> Subject: Re: [PATCHv2 4/4] Documentation: Add device tree bindings for > Freescale FTM PWM. > ... > > + > > +pwm0: pwm@40038000 { > > + compatible = "fsl,vf610-ftm-pwm"; > > + reg = <0x40038000 0x1000>; > > + #pwm-cells = <3>; > > + clock-names = "ftm0", "

Re: [PATCH 2/4] regmap: Add regmap_fields APIs

2013-09-01 Thread Kuninori Morimoto
Hi > Current Linux kernel is supporting regmap_field method > and it is very useful feature. > It needs one regmap_filed for one register access. > > OTOH, there is multi port device which > has many same registers in the market. > The difference for each port register access is > only its addre

Re: [PATCH 2/2] x86, apic: Disable BSP if boot cpu is AP

2013-09-01 Thread HATAYAMA Daisuke
(2013/08/31 14:22), Borislav Petkov wrote: On Thu, Aug 29, 2013 at 06:28:04PM +0900, HATAYAMA Daisuke wrote: diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 66cab35..fd969d1 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -2113,13 +2113,

[PATCH v3 0/3] cleanup of gpio_pcf857x.c

2013-09-01 Thread George Cherian
This patch series - removes the irq_demux_work - Uses devm_request_threaded_irq - Call the user handler iff gpio_to_irq is done. v1 --> v2 Split v1 to 3 patches v2 --> v3 Remove the unnecessary dts patches. George Cherian (3): gpio: pcf857x: change to de

[PATCH v3 3/3] gpio: pcf857x: call the gpio user handler iff gpio_to_irq is done

2013-09-01 Thread George Cherian
For pcf857x driver if the initial state is not set properly (proper n_latch is not passed), we get bad irq prints on console. We get this only for the first interrupt and doesnot repeat for further interrupts unles and until there are other gpio pins which are not flipping continously. following p

Re: [PATCH 2/2] dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_ioremap()

2013-09-01 Thread zhangfei
On 13-09-02 09:26 AM, Jingoo Han wrote: Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han Thanks Jingoo for point out. Acked-by: Zhangfei Gao --- drivers/dma/k3dma.c |6 +++--- 1 file changed, 3 inserti

[PATCH v3 2/3] gpio: pcf857x: remove the irq_demux_work

2013-09-01 Thread George Cherian
Now that we are using devm_request_threaded_irq no need for irq_demux_work. Remove all its references. Signed-off-by: George Cherian --- drivers/gpio/gpio-pcf857x.c | 35 --- 1 file changed, 35 deletions(-) diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/

[PATCH v3 1/3] gpio: pcf857x: change to devm_request_threaded_irq

2013-09-01 Thread George Cherian
Remove the request_irq and use devm_request_threaded_irq also cleanup free_irq. devm_* takes care of that. Signed-off-by: George Cherian --- drivers/gpio/gpio-pcf857x.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-pcf857x.c b

Re: [PATCH 1/5] jump_label: factor out the base part of jump_label.h to a separate file

2013-09-01 Thread Kevin Hao
On Fri, Aug 30, 2013 at 06:37:33PM +0200, Radim Krčmář wrote: > 2013-08-25 15:15+0800, Kevin Hao: > > We plan to use the jump label in the cpu/mmu feature check on ppc. > > This will need to include the jump_label.h in several very basic header > > files of ppc which seems to be included by most of

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

2013-09-01 Thread Xiubo Li-B47053
> Subject: Re: [PATCH 4/4] Documentation: Add device tree bindings for > Freescale FTM PWM > > Should have at least something w/regards to a commit message. > I have sent a V2 patch and have added it. > > + used to encode the polarity of PWM output. Set bit 0 of the third > > +in PWM > > + s

Re: [PATCH 3/6] x86: simplify _acpi_map_lsapic()

2013-09-01 Thread Hanjun Guo
On 2013-9-1 4:14, Rafael J. Wysocki wrote: > On Saturday, August 31, 2013 06:15:58 PM Hanjun Guo wrote: [...] >> +static int acpi_register_lapic(int id, u8 enabled) >> { >> unsigned int ver = 0; >> >> if (id >= (MAX_LOCAL_APIC-1)) { >> printk(KERN_INFO PREFIX "skipped apic

Re: [RFC PATCH 00/18 v3] Signature verification of hibernate snapshot

2013-09-01 Thread joeyli
於 日,2013-09-01 於 18:40 +0200,Florian Weimer 提到: > * Matthew Garrett: > > > On Sun, Sep 01, 2013 at 12:41:22PM +0200, Florian Weimer wrote: > > > >> But if you don't generate fresh keys on every boot, the persistent > >> keys are mor exposed to other UEFI applications. Correct me if I'm > >> wrong

[PATCH] irqchip: irq-mxs: Include

2013-09-01 Thread Fabio Estevam
From: Fabio Estevam Include in order to fix the following sparse warning: drivers/irqchip/irq-mxs.c:75:39: warning: symbol 'icoll_handle_irq' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- drivers/irqchip/irq-mxs.c | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [PATCH v2 1/3] gpio: pcf857x: change to devm_request_threaded_irq

2013-09-01 Thread George Cherian
On 9/2/2013 6:50 AM, Kuninori Morimoto wrote: Hi Remove the request_irq and use devm_request_threaded_irq also cleanup free_irq. devm_* takes care of that. Signed-off-by: George Cherian --- arch/arm/boot/dts/dra7-evm.dts | 2 +- drivers/gpio/gpio-pcf857x.c| 28

Re: [PATCH] rcu: Make rcu_assign_pointer's assignment volatile and type-safe

2013-09-01 Thread Paul E. McKenney
On Sun, Sep 01, 2013 at 04:42:52PM -0700, Josh Triplett wrote: > rcu_assign_pointer needs to use ACCESS_ONCE to make the assignment to > the destination pointer volatile, to protect against compilers too > clever for their own good. > > In addition, since rcu_assign_pointer force-casts the source

Re: [PATCH v3 1/3] extcon: extcon-gpio-usbvid: Generic USB VBUS/ID detection via GPIO

2013-09-01 Thread George Cherian
On 8/30/2013 12:44 PM, Chanwoo Choi wrote: Hi George, In addition, I add answer about that device driver control gpio pin directly. On 08/30/2013 03:15 PM, George Cherian wrote: Hi Chanwoo, On 8/30/2013 5:41 AM, Chanwoo Choi wrote: Hi George, On 08/29/2013 10:45 PM, George Cherian wrote: H

Re: [PATCH v3 1/3] extcon: extcon-gpio-usbvid: Generic USB VBUS/ID detection via GPIO

2013-09-01 Thread George Cherian
On 8/30/2013 12:23 PM, Chanwoo Choi wrote: Hi George, On 08/30/2013 03:15 PM, George Cherian wrote: Hi Chanwoo, On 8/30/2013 5:41 AM, Chanwoo Choi wrote: Hi George, On 08/29/2013 10:45 PM, George Cherian wrote: Hi Chanwoo, On 8/29/2013 5:42 PM, Chanwoo Choi wrote: [big snip ] I tested va

Re: [PATCH] block: trace all devices plug operation.

2013-09-01 Thread majianpeng
Hi axboe: How about this patch? Thanks! Jianpeng Ma >In func blk_queue_bio, if list of plug is empty,it will call >blk_trace_plug. >If process deal with a single device,it't ok.But if process deal with >multi devices,it only trace the first device. >Using request_count to judge, it can sol

Re: network stopped with a kernel error

2013-09-01 Thread Roberto Spadim
lspci: 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03) 04:01.0 Ethernet controller: SysKonnect SK-9871 V2.0 Gigabit Ethernet 1000Base-ZX Adapter, PCI64, Fiber ZX/SC (rev 18) 04:02.0 Ethernet controller: Realtek Semiconduct

Re: network stopped with a kernel error

2013-09-01 Thread Roberto Spadim
the XID: good card: Sep 1 11:41:41 localhost kernel: [4.332165] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded Sep 1 11:41:41 localhost kernel: [4.332184] r8169 :01:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 Sep 1 11:41:41 localhost kernel: [4.332236] r8169 :01:00.0:

Re: network stopped with a kernel error

2013-09-01 Thread Roberto Spadim
here the dmesg (from /var/log/kernel.log) http://pastebin.com/gcHgTYXZ -- 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://w

[PATCH 2/2] dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_ioremap()

2013-09-01 Thread Jingoo Han
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han --- drivers/dma/k3dma.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index ef7bc85..a2c330f

PATCH 2/2] dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_ioremap()

2013-09-01 Thread Jingoo Han
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han --- drivers/dma/k3dma.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index ef7bc85..a2c330f

[PATCH 1/2] dma: sh: use devm_ioremap_resource() instead of devm_request_and_ioremap()

2013-09-01 Thread Jingoo Han
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han --- drivers/dma/sh/sudmac.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c index bf85b

Re: [PATCH 1/2] mfd: 88pm800: Fix the bug that pdata may be NULL

2013-09-01 Thread Chao Xie
On Fri, Aug 30, 2013 at 8:30 PM, Samuel Ortiz wrote: > Hi Xie, > > On Tue, Aug 27, 2013 at 02:11:58PM +0800, Chao Xie wrote: >> On Tue, Aug 20, 2013 at 9:40 AM, Samuel Ortiz wrote: >> > Hi Xie, >> > >> > On Sun, Aug 18, 2013 at 09:27:54PM -0400, Chao Xie wrote: >> >> User pass platform data to de

Re: [PATCH v2 1/3] gpio: pcf857x: change to devm_request_threaded_irq

2013-09-01 Thread Kuninori Morimoto
Hi > Remove the request_irq and use devm_request_threaded_irq > also cleanup free_irq. devm_* takes care of that. > > Signed-off-by: George Cherian > --- > arch/arm/boot/dts/dra7-evm.dts | 2 +- > drivers/gpio/gpio-pcf857x.c| 28 > 2 files changed, 25 insertio

Re: [PATCH 3/3] extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter

2013-09-01 Thread Chanwoo Choi
Hi Greg, On 09/02/2013 09:40 AM, Greg KH wrote: > On Mon, Sep 02, 2013 at 09:20:08AM +0900, Chanwoo Choi wrote: >> This patch remove extcon_dev_register()'s second parameter which means >> the pointer of parent device to simplify prototype of this function. > > No, please don't. You want the par

[PATCH] imx-drm: imx-ldb: Staticize of_get_data_mapping()

2013-09-01 Thread Fabio Estevam
From: Fabio Estevam Staticize of_get_data_mapping() in order to fix the following sparse warning: drivers/staging/imx-drm/imx-ldb.c:424:11: warning: symbol 'of_get_data_mapping' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- drivers/staging/imx-drm/imx-ldb.c | 2 +-

Re: [PATCH 00/11] x86, memblock: Allocate memory near kernel image before SRAT parsed.

2013-09-01 Thread Tang Chen
Hi guys, Any comment to this patch-set ? And shall agree on using this solution suggested by Tejun ? Thanks. On 08/27/2013 05:37 PM, Tang Chen wrote: This patch-set is based on tj's suggestion, and not fully tested. Just for review and discussion. [Problem] The current Linux cannot migrate

Re: [PATCH 2/2] cpufreq: serialize calls to __cpufreq_governor()

2013-09-01 Thread Viresh Kumar
On 2 September 2013 01:57, Rafael J. Wysocki wrote: > The second tab is one too many, I usually write such things like this: > > if (policy->governor_busy > || (policy->governor_enabled && event == CPUFREQ_GOV_START) > || ... > > Then it is much easier to distinguis

[PATCH] dma: imx-sdma: Staticize sdma_driver_data structures

2013-09-01 Thread Fabio Estevam
From: Fabio Estevam Sparse report the following warnings: drivers/dma/imx-sdma.c:330:25: warning: symbol 'sdma_imx31' was not declared. Should it be static? drivers/dma/imx-sdma.c:351:25: warning: symbol 'sdma_imx25' was not declared. Should it be static? drivers/dma/imx-sdma.c:357:25: warning

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Linus Torvalds
On Sun, Sep 1, 2013 at 5:12 PM, Linus Torvalds wrote: > > It *is* one of the few locked accesses remaining, and it's clearly > getting called a lot (three calls per system call: two mntput's - one > for the root path, one for the result path, and one from path_init -> > rcu_walk_init), but with u

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

2013-09-01 Thread Greg KH
On Mon, Sep 02, 2013 at 09:21:55AM +0930, Rusty Russell wrote: > Greg KH writes: > > On Tue, Aug 27, 2013 at 02:08:27PM +0930, Rusty Russell wrote: > >> Greg KH writes: > >> > On Thu, Aug 22, 2013 at 03:37:55PM +0800, Li Zhong wrote: > >> >> DEBUG_KOBJECT_RELEASE helps to find the issue attached

Re: [PATCH 2/3] extcon: Change field type of 'dev' in extcon_dev structure

2013-09-01 Thread Chanwoo Choi
Hi Greg, On 09/02/2013 09:38 AM, Greg KH wrote: > On Mon, Sep 02, 2013 at 09:20:07AM +0900, Chanwoo Choi wrote: >> -edev->dev = kzalloc(sizeof(struct device), GFP_KERNEL); >> -if (!edev->dev) >> -return -ENOMEM; >> -edev->dev->parent = dev; >> -edev->dev->class = extcon

Re: [PATCH 3/3] extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter

2013-09-01 Thread Greg KH
On Mon, Sep 02, 2013 at 09:20:08AM +0900, Chanwoo Choi wrote: > This patch remove extcon_dev_register()'s second parameter which means > the pointer of parent device to simplify prototype of this function. No, please don't. You want the parent to be passed in, as the core needs it when it is regi

Re: [PATCH 2/3] extcon: Change field type of 'dev' in extcon_dev structure

2013-09-01 Thread Greg KH
On Mon, Sep 02, 2013 at 09:20:07AM +0900, Chanwoo Choi wrote: > - edev->dev = kzalloc(sizeof(struct device), GFP_KERNEL); > - if (!edev->dev) > - return -ENOMEM; > - edev->dev->parent = dev; > - edev->dev->class = extcon_class; > - edev->dev->release = extcon_dev_rel

[PATCH 2/3] extcon: Change field type of 'dev' in extcon_dev structure

2013-09-01 Thread Chanwoo Choi
The extcon device must always need 'struct device' so this patch change field type of 'dev' instead of allocating memory for 'struct device' on extcon_dev_register() function. Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- drivers/extcon/extcon-adc-jack.c | 2 +- drivers/extcon/ex

[PATCH 1/3] extcon: Fix indentation coding style to improve readability

2013-09-01 Thread Chanwoo Choi
Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- drivers/extcon/extcon-adc-jack.c | 20 +- drivers/extcon/extcon-class.c | 26 ++--- include/linux/extcon.h | 67 ++ include/linux/extcon/extcon-adc-jack.h |

[PATCH 0/3] extcon: Code clean to fix up coding style and remove

2013-09-01 Thread Chanwoo Choi
This patchset fix up indentation coding style and simplify extcon_dev_register() prototype to improbe usability when registering extcon device.*** BLURB HERE *** Chanwoo Choi (3): extcon: Fix indentation coding style to improve readability extcon: Change field type of 'dev' in extcon_dev struc

[PATCH 3/3] extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter

2013-09-01 Thread Chanwoo Choi
This patch remove extcon_dev_register()'s second parameter which means the pointer of parent device to simplify prototype of this function. So, if extcon device has the parent device, it should set the pointer of parent device to edev.dev.parent in extcon device driver instead of in extcon_dev_regi

[char-misc-next 0/5] mei driver small fixes and cleanups

2013-09-01 Thread Tomas Winkler
Alexander Usyskin (1): mei: mei_write correct checks for copy_from_user Tomas Winkler (4): mei: mei_cl_link protect open_handle_count from overflow mei: make sure that me_clients_map big enough before copying mei: fix format compilation warrning on 32 bit architecture mei: revamp read a

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Linus Torvalds
On Sun, Sep 1, 2013 at 4:30 PM, Al Viro wrote: > > Hrm... It excludes sharing between the locks, all right. AFAICS, that > won't exclude sharing with plain per-cpu vars, will it? Yes it will. DEFINE_PER_CPU_SHARED_ALIGNED not only aligns the data, it also puts it in a separate section with only

[char-misc-next 2/5] mei: make sure that me_clients_map big enough before copying

2013-09-01 Thread Tomas Winkler
To make static analyzers happy validated that sizeof me_clients_map is larger than sizeof valid_addresses from the enumeration response before memcpy We can use BUILD_ON macro as both arrays are defined statically Signed-off-by: Tomas Winkler --- drivers/misc/mei/hbm.c | 5 - 1 file changed

[char-misc-next 4/5] mei: fix format compilation warrning on 32 bit architecture

2013-09-01 Thread Tomas Winkler
hbm.c: In function mei_hbm_me_cl_allocate: hbm.c:52:212: warning: format %zd expects argument of type signed size_t but argument 4 has type long unsigned Signed-off-by: Tomas Winkler --- drivers/misc/mei/hbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/

[char-misc-next 1/5] mei: mei_cl_link protect open_handle_count from overflow

2013-09-01 Thread Tomas Winkler
mei_cl_link is called both from mei_open and also from in-kernel drivers so we need to protect open_handle_count from overflow Signed-off-by: Tomas Winkler --- drivers/misc/mei/client.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.

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

2013-09-01 Thread Rusty Russell
Greg KH writes: > On Tue, Aug 27, 2013 at 02:08:27PM +0930, Rusty Russell wrote: >> Greg KH writes: >> > On Thu, Aug 22, 2013 at 03:37:55PM +0800, Li Zhong wrote: >> >> DEBUG_KOBJECT_RELEASE helps to find the issue attached below. >> > People are starting to hit these types of issues, and I'd lik

[char-misc-next 3/5] mei: mei_write correct checks for copy_from_user

2013-09-01 Thread Tomas Winkler
From: Alexander Usyskin 1. return -EFUALT when copy_from_user fails 2. display error message on failure in error level Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/main.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/m

[char-misc-next 5/5] mei: revamp read and write length checks

2013-09-01 Thread Tomas Winkler
1. Return zero on zero length read and writes 2. For a too large write return -EFBIG as defined in man write(2) EFBIG An attempt was made to write a file that exceeds the implementation-defined maximum file size or the process's file size limit, or to write at a positio

Re: rcu: Make rcu_assign_pointer's assignment volatile and type-safe

2013-09-01 Thread Josh Triplett
On Mon, Sep 02, 2013 at 07:50:09AM +0800, Wang Shilong wrote: > Hello, Using checkpatch.pl, i get the following warnings(errors): > WARNING: line over 80 characters > #57: FILE: include/linux/rcupdate.h:518: > + extern void __rcu_assign_pointer_typecheck(int, typeof(*(v)) > __kernel *)

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

2013-09-01 Thread Stephen Rothwell
Hi Linus, On Fri, 30 Aug 2013 08:25:06 -0700 Linus Torvalds wrote: > > On Fri, Aug 30, 2013 at 1:12 AM, Stephen Rothwell > wrote: > > > > I don't know if it is safe to read d_lockref.count without locking > > That's not the issue. Since commit 84d08fa888e7 ("helper for reading > ->d_count") n

  1   2   3   >