Re: [PATCHv4 31/39] thp: consolidate code between handle_mm_fault() and do_huge_pmd_anonymous_page()

2013-05-21 Thread Hillf Danton
On Sun, May 12, 2013 at 9:23 AM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > do_huge_pmd_anonymous_page() has copy-pasted piece of handle_mm_fault() > to handle fallback path. > > Let's consolidate code back by introducing VM_FAULT_FALLBACK return > code. > > Signed-off-by: Kirill

Re: [PATCH 0/4] media: remove duplicate check for EPERM

2013-05-21 Thread Hans Verkuil
On Wed May 22 2013 07:52:03 Prabhakar Lad wrote: > Hi All, > > On Tue, May 14, 2013 at 11:15 AM, Lad Prabhakar > wrote: > > From: Lad, Prabhakar > > > > This patch series cleanups the check for EPERM in dbg_g/s_register > > and vidioc_g/s_register. > > > > Lad, Prabhakar (4): > > media: i2c: r

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-21 Thread Anshuman Khandual
On 05/21/2013 07:25 PM, Stephane Eranian wrote: > On Thu, May 16, 2013 at 12:15 PM, Michael Neuling wrote: >> Peter Zijlstra wrote: >> >>> On Wed, May 15, 2013 at 03:37:22PM +0200, Stephane Eranian wrote: On Fri, May 3, 2013 at 2:11 PM, Peter Zijlstra wrote: > We should always hav

[PATCH v4 2/8] PCI: Use pci_walk_bus to detect unassigned resources

2013-05-21 Thread Yinghai Lu
Per Bjorn, use pci_walk_bus instead of for_each_pci_dev or calling pci_realloc_detect() recursively. And separate it to different patch. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 46 +++--- 1 file changed, 31 insertions(+), 15 deletions(-

[PATCH v4 8/8] PCI: Retry assign unassigned resources for hotadd root bus

2013-05-21 Thread Yinghai Lu
Let root bus hotadd path use same code for booting path. As driver is not loaded yet, we could retry to make sure all pci devices get resources allocated. Signed-off-by: Yinghai Lu --- drivers/acpi/pci_root.c |2 +- drivers/pci/setup-bus.c | 15 +++ include/linux/pci.h |

[PATCH v4 4/8] PCI: Split pci_assign_unassigned_resources to per root bus

2013-05-21 Thread Yinghai Lu
We need to split pci_assign_unassiged_resource to every root bus, so in next patch we can stop early for root bus without ioport range, and still continue to retry on buses that do have ioport range. Also later we could let root bus hot add and booting path use same code. -v2: separate enable_loc

[PATCH v4 1/8] PCI: Don't use temp bus for pci_bus_release_bridge_resources

2013-05-21 Thread Yinghai Lu
as later bus can not be used as temp variable after we change to per root bus handling with assign unassigned resources. Per Bjorn, separated out different patch. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) Index: linux

[PATCH v4 3/8] PCI: Introduce enable_local to prepare per root bus handling

2013-05-21 Thread Yinghai Lu
Add enable_local to prepare assign unassigned resource for per root bus. Per Bjorn, separate it to different patch. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) Index: linux-2.6/drivers

[PATCH v4 0/8] PCI: Skip resource allocation for root bus without conresponding type resource

2013-05-21 Thread Yinghai Lu
BenH reported that there is some assign unassigned resource problem in powerpc. It turns out after | commit 0c5be0cb0edfe3b5c4b62eac68aa2aa15ec681af | Date: Thu Feb 23 19:23:29 2012 -0800 | |PCI: Retry on IORESOURCE_IO type allocations even the root bus does not have io port range, it will

[PATCH v4 7/8] PCI: Enable pci bridge when it is needed

2013-05-21 Thread Yinghai Lu
Current we enable bridges after bus scan and assign resources. and it is spreaded a lot of places. We can move it to where pci device is enabled, and need to go up to root bus and enable bridge one by one down to pci dev. So that will delay enable bridge late as needed bassis, also kill one incon

[PATCH v4 6/8] PCI: Skip IORESOURCE_MMIO allocation for root bus without MMIO range

2013-05-21 Thread Yinghai Lu
For x86 8 sockets or 32 sockets system that will have one root bus per socket, They may have some root buses do not have mmio non-pref range. We should not fall into retry in this case, as root bus does not mmio non-pref range. We check if the root bus has mmio-nonpref range, and set bus_res_type

[PATCH v4 5/8] PCI: Skip IORESOURCE_IO allocation for root bus without ioport range

2013-05-21 Thread Yinghai Lu
BenH reported that there is some assign unassigned resource problem in powerpc. It turns out after | commit 0c5be0cb0edfe3b5c4b62eac68aa2aa15ec681af | Date: Thu Feb 23 19:23:29 2012 -0800 | |PCI: Retry on IORESOURCE_IO type allocations even the root bus does not have io port range, it will

Re: [PATCH] bestcomm: no need to free when kzalloc fail

2013-05-21 Thread Libo Chen
On 2013/5/22 14:06, Benjamin Herrenschmidt wrote: > On Wed, 2013-05-22 at 12:49 +0800, Libo Chen wrote: >> ping... > > This is pointless. We routinely avoid adding such crap by having > the various free(...) routines cope with NULL. You just need to make > sure you are indeed NULL in the error cas

PING^7 (was Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542))

2013-05-21 Thread Paolo Bonzini
I'm not sure what is more ridiculous, whether the seven pings or the lack of review... Paolo Il 06/02/2013 16:15, Paolo Bonzini ha scritto: > This series regards the whitelist that is used for the SG_IO ioctl. This > whitelist has three problems: > > * the bitmap of allowed commands is designed

Re: [PATCH v6 3/7] KVM: MMU: fast invalidate all pages

2013-05-21 Thread Gleb Natapov
On Tue, May 21, 2013 at 10:33:30PM -0300, Marcelo Tosatti wrote: > On Tue, May 21, 2013 at 11:39:03AM +0300, Gleb Natapov wrote: > > > Any pages with stale information will be zapped by kvm_mmu_zap_all(). > > > When that happens, page faults will take place which will automatically > > > use the n

[PATCH 0/5] perf: Introducing new conditional branch filter

2013-05-21 Thread Anshuman Khandual
This patchset introduces conditional branch filter in perf branch stack sampling framework incorporating review comments from Michael Neuling, Peter Zijlstra and Stephane Eranian. Anshuman Khandual (5): perf: New conditional branch filter criteria in branch stack sampling powerpc, perf: Enable

[PATCH 3/5] perf, tool: Conditional branch filter 'cond' added to perf record

2013-05-21 Thread Anshuman Khandual
Adding perf record support for new branch stack filter criteria PERF_SAMPLE_BRANCH_COND. Signed-off-by: Anshuman Khandual --- tools/perf/builtin-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index cdf58ec..833743a 100644 --

Re: [PATCH v4] extcon: Palmas Extcon Driver

2013-05-21 Thread Kishon Vijay Abraham I
Hi, On Tuesday 07 May 2013 10:51 AM, Kishon Vijay Abraham I wrote: Hi, On Tuesday 07 May 2013 06:13 AM, myungjoo.ham wrote: From: Graeme Gregory This is the driver for the USB comparator built into the palmas chip. It handles the various USB OTG events that can be generated by cable insertio

[PATCH 4/5] x86, perf: Add conditional branch filtering support

2013-05-21 Thread Anshuman Khandual
From: Peter Zijlstra This patch adds conditional branch filtering support, enabling it for PERF_SAMPLE_BRANCH_COND in perf branch stack sampling framework by utilizing an available software filter X86_BR_JCC. Signed-off-by: Peter Zijlstra Signed-off-by: Anshuman Khandual --- arch/x86/kernel/c

[PATCH 2/5] powerpc, perf: Enable conditional branch filter for POWER8

2013-05-21 Thread Anshuman Khandual
Enables conditional branch filter support for POWER8 utilizing MMCRA register based filter and also invalidates a BHRB branch filter combination involving conditional branches. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 10 ++ 1 file changed, 10 insertions(+)

[PATCH 1/5] perf: New conditional branch filter criteria in branch stack sampling

2013-05-21 Thread Anshuman Khandual
POWER8 PMU based BHRB supports filtering for conditional branches. This patch introduces new branch filter PERF_SAMPLE_BRANCH_COND which will extend the existing perf ABI. Other architectures can provide this functionality with either HW filtering support (if present) or with SW filtering of instru

[PATCH 5/5] perf, documentation: Description for conditional branch filter

2013-05-21 Thread Anshuman Khandual
Adding documentation support for conditional branch filter. Signed-off-by: Anshuman Khandual --- tools/perf/Documentation/perf-record.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt ind

Re: [PATCH][RFC] CPU Jitter random number generator (resent)

2013-05-21 Thread Stephan Mueller
On Tue, 21 May 2013 17:39:49 -0400 Sandy Harris wrote: Hi Sandy, > On Tue, May 21, 2013 at 3:01 PM, Theodore Ts'o wrote: > > > I continue to be suspicious about claims that userspace timing > > measurements are measuring anything other than OS behaviour. > > Yes, but they do seem to contain s

Re: [PATCH 0/3] Enable multiple MSI feature in pSeries

2013-05-21 Thread Mike Qiu
于 2013/5/22 8:15, Benjamin Herrenschmidt 写道: On Tue, 2013-05-21 at 16:45 +0200, Alexander Gordeev wrote: On Tue, Jan 15, 2013 at 03:38:53PM +0800, Mike Qiu wrote: The test results is shown by 'cat /proc/interrups': CPU0 CPU1 CPU2 CPU3 16: 240458 261601 2

[PATCH V2] virtio_net: enable napi for all possible queues during open

2013-05-21 Thread Jason Wang
Commit 55257d72bd1c51f25106350f4983ec19f62ed1fa (virtio-net: fill only rx queues which are being used) only does the napi enabling during open for curr_queue_pairs. This will break multiqueue receiving since napi of new queues were still disabled after changing the number of queues. This patch fix

Re: [PATCH] bestcomm: no need to free when kzalloc fail

2013-05-21 Thread Benjamin Herrenschmidt
On Wed, 2013-05-22 at 12:49 +0800, Libo Chen wrote: > ping... This is pointless. We routinely avoid adding such crap by having the various free(...) routines cope with NULL. You just need to make sure you are indeed NULL in the error case. Ben. > On 2013/5/5 16:38, chenlib...@gmail.com wrote: >

Re: [PATCH] bestcomm: no need to free when kzalloc fail

2013-05-21 Thread Libo Chen
On 2013/5/22 12:58, Li Zefan wrote: > On 2013/5/22 12:49, Libo Chen wrote: >> >> ping... >> >> On 2013/5/5 16:38, chenlib...@gmail.com wrote: >>> From: Libo Chen >>> >>> There is no need to free bcom_eng if kzalloc fail >>> > > kfree(NULL) is fine. We gain nothing from this patch, and it even add

linux-next: Tree for May 22

2013-05-21 Thread Stephen Rothwell
Hi all, Changes since 20130521: The crypto tree still had its build failure so I used the version from next-20130520. The driver-core tree gained a conflict against the pm tree. The tty tree lost its build failure. The vhost tree gained a conflict against the rr-fixes tree and a build failure

Re: [RFC PATCH] kmod: add ability to swap root in usermode helper

2013-05-21 Thread Stanislav Kinsbursky
21.05.2013 20:29, Oleg Nesterov пишет: On 05/21, J. Bruce Fields wrote: On Tue, May 21, 2013 at 05:28:36PM +0200, Oleg Nesterov wrote: OK, so do not do this. Export the new helper. You mean, export umh_set_fs_root() in the above? That might be OK. Yes, or even call_usermodehelper_root().

Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-21 Thread Mike Galbraith
On Tue, 2013-05-21 at 14:30 -0700, Peter Boonstoppel wrote: > RT throttling aims to prevent starvation of non-SCHED_FIFO threads > when a rogue RT thread is hogging the CPU. It does so by piggybacking > on the rt_bandwidth system and allocating at most rt_runtime per > rt_period to SCHED_FIFO task

Re: [PATCH] msm: iommu: fix leak and invalid access

2013-05-21 Thread Libo Chen
ping... On 2013/5/15 12:47, Libo Chen wrote: > > This patch merge two patch that I sended before: > 1. msm: iommu: add missing platform_device_unregister() in err case > 2. msm: iommu: no need kfree before kzalloc successful > > It fixes two obvious problems: > 1. We have registered msm_iommu_d

linux-next: build warning after merge of the final tree (net-next tree related)

2013-05-21 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (sparc32 defconfig) produced this warning: drivers/net/ethernet/sun/sunbmac.c: In function 'bigmac_set_multicast': drivers/net/ethernet/sun/sunbmac.c:998:6: warning: unused variable 'i' [-Wunused-variable] Introduced by commit bfd42

linux-next: build warning after merge of the final tree (drm-intel tree related)

2013-05-21 Thread Stephen Rothwell
Hi , After merging the final tree, today's linux-next build (i386 defconfig) produced this warning: drivers/gpu/drm/i915/i915_gem.c:2978:3: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat] Introduced by commit e4341d0356bc ("drm/i915: Be mor

Re: [PATCH 0/4] media: remove duplicate check for EPERM

2013-05-21 Thread Prabhakar Lad
Hi All, On Tue, May 14, 2013 at 11:15 AM, Lad Prabhakar wrote: > From: Lad, Prabhakar > > This patch series cleanups the check for EPERM in dbg_g/s_register > and vidioc_g/s_register. > > Lad, Prabhakar (4): > media: i2c: remove duplicate checks for EPERM in dbg_g/s_register > media: dvb-fro

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Chinner
On Wed, May 22, 2013 at 01:29:38AM -0400, Dave Jones wrote: > On Wed, May 22, 2013 at 03:12:43PM +1000, Dave Chinner wrote: > > > > [ 36.339105] XFS (sda2): xfs_setattr_size: mask 0xa068 mismatch on > file 0\xffb8\xffd3-\xff88\x\x > > > > So, still the same stra

Re: [PATCH RFC v2] media: OF: add sync-on-green endpoint property

2013-05-21 Thread Prabhakar Lad
Hi Laurent/Sylwester, On Thu, May 16, 2013 at 6:48 PM, Lad Prabhakar wrote: > From: Lad, Prabhakar > > This patch adds "sync-on-green" property as part of > endpoint properties and also support to parse them in the parser. > If you are ok with the patch can I send non RFC version of it ? Regard

[PATCH ipvs-next v3 1/2] sched: add cond_resched_rcu() helper

2013-05-21 Thread Simon Horman
This is intended for use in loops which read data protected by RCU and may have a large number of iterations. Such an example is dumping the list of connections known to IPVS: ip_vs_conn_array() and ip_vs_conn_seq_next(). The benefits are for CONFIG_PREEMPT_RCU=y where we save CPU cycles by movin

[PATCH ipvs-next v3 0/2] sched: Add cond_resched_rcu_lock() helper

2013-05-21 Thread Simon Horman
Add a helper that for use in loops which read data protected by RCU and may have a large number of iterations. Such an example is dumping the list of connections known to IPVS: ip_vs_conn_array() and ip_vs_conn_seq_next(). This series also updates IPVS to use the helper. Simon Horman (2): sche

[PATCH ipvs-next v3 2/2] ipvs: use cond_resched_rcu() helper when walking connections

2013-05-21 Thread Simon Horman
This avoids the situation where walking of a large number of connections may prevent scheduling for a long time while also avoiding excessive calls to rcu_read_unlock() and rcu_read_lock(). Note that in the case of !CONFIG_PREEMPT_RCU this will add a call to cond_resched(). [j...@ssi.bg: add cond

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-05-21 Thread Eric Dumazet
On Tue, 2013-05-21 at 19:01 -0700, Eric Dumazet wrote: > Please use ACCESS_ONCE(), which is the standard way to deal with this, > and remove the rcu_dereference_raw() in > hlist_nulls_for_each_entry_rcu() > > something like : (for the nulls part only) Thinking a bit more about this, I am a bit

[PATCH 0/2] Improvement and fixes for BHRB

2013-05-21 Thread Anshuman Khandual
(1) The first patch fixes a situation like this Before patch:- ./perf record -j any -e branch-misses:k ls Error: The sys_perf_event_open() syscall returned with 95 (Operation not supported) for event (branch-misses:k). /bin/dmesg may provide additional information. No CONFIG_PERF_EV

[PATCH 2/2] powerpc, perf: BHRB filter configuration should follow the task

2013-05-21 Thread Anshuman Khandual
When the task moves around the system, the corresponding cpuhw per cpu strcuture should be popullated with the BHRB filter request value so that PMU could be configured appropriately with that during the next call into power_pmu_enable(). Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/co

[PATCH 1/2] powerpc, perf: Ignore separate BHRB privilege state filter request

2013-05-21 Thread Anshuman Khandual
Completely ignore BHRB privilege state filter request as we are already configuring MMCRA register with privilege state filtering attribute for the accompanying PMU event. This would help achieve cleaner user space interaction for BHRB. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/powe

Re: [PATCH] virtio_net: enable napi after enabling new queues

2013-05-21 Thread Jason Wang
On 05/22/2013 01:22 PM, Jason Wang wrote: > Commit 55257d72bd1c51f25106350f4983ec19f62ed1fa (virtio-net: fill only rx > queues which are being used) forgets to enable napi for new enabled queues > which > breaks the multiqueue receiving. This patch fixes it. > > Cc: Sasha Levin > Signed-off-by: J

[RFC PATCHv2] power: Add option to log time spent in suspend

2013-05-21 Thread Zoran Markovic
From: Colin Cross Below is a patch from android kernel that maintains a histogram of suspend times. Please review and provide feedback. Statistices on the time spent in suspend are kept in /sys/kernel/debug/sleep_time. Cc: Android Kernel Team Cc: Colin Cross Cc: Todd Poynor Cc: San Mehat Cc

[PATCH] virtio_net: enable napi after enabling new queues

2013-05-21 Thread Jason Wang
Commit 55257d72bd1c51f25106350f4983ec19f62ed1fa (virtio-net: fill only rx queues which are being used) forgets to enable napi for new enabled queues which breaks the multiqueue receiving. This patch fixes it. Cc: Sasha Levin Signed-off-by: Jason Wang --- drivers/net/virtio_net.c |4 +++- 1

Re: [PATCH RESEND] mtd: fix kfree bcm47xxsflash

2013-05-21 Thread Rafał Miłecki
2013/5/22 Libo Chen : > mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its > member. Thanks! -- Rafał -- 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.k

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Jones
On Wed, May 22, 2013 at 03:12:43PM +1000, Dave Chinner wrote: > > [ 36.339105] XFS (sda2): xfs_setattr_size: mask 0xa068 mismatch on file > > 0\xffb8\xffd3-\xff88\x\x > > So, still the same strange mask. That just doesn't seem right. any idea what I screwed up

Re: [PATCH v4 00/22] x86, ACPI, numa: Parse numa info early

2013-05-21 Thread H. Peter Anvin
Sorry, just have been swamped since -rc1 came out. -hpa -- 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.tu

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Chinner
On Wed, May 22, 2013 at 12:15:21AM -0400, Dave Jones wrote: > On Wed, May 22, 2013 at 02:03:18PM +1000, Dave Chinner wrote: > > > That doesn't make a whole lot of sense to me. What am I missing? > > Are you seeing this fire at all from notify_change()? > > > >WARN_ON_ONCE(!mutex_is_locked

Re: [PATCH v4 00/22] x86, ACPI, numa: Parse numa info early

2013-05-21 Thread Tang Chen
On 05/10/2013 02:24 AM, Yinghai Lu wrote: .. If you have any thinking of this patch-set, please let me know. Talked to HPA, and he will put my patchset into tip/x86/mm after v3.10-rc1. after that we can work on put pagetable on local node for hotadd path. Hi, It is Linux v3.10-rc2 now

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

2013-05-21 Thread Michael S. Tsirkin
used by commit d198a8acf543 ("kernel: might_fault does not imply > might_sleep"). > > I have used the version of the vhost tree from next-20130521 for today. > > It was unexpected that such patches would turn up in the "vhost" tree ... > > -- > Cheers, > S

Re: [PATCH] bestcomm: no need to free when kzalloc fail

2013-05-21 Thread Li Zefan
On 2013/5/22 12:49, Libo Chen wrote: > > ping... > > On 2013/5/5 16:38, chenlib...@gmail.com wrote: >> From: Libo Chen >> >> There is no need to free bcom_eng if kzalloc fail >> kfree(NULL) is fine. We gain nothing from this patch, and it even adds one more line to the code, so just drop thi pa

[PATCH 3.9-stable] regulator: mc13892: Fix MC13892_SWITCHERS0_SWxHI bit in set_voltage_sel

2013-05-21 Thread Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it? -- From: "Axel Lin " commit 78040b630f28298e0ecb56bf1bc53c7976314eab upstream It is necessary to clear MC13892_SWITCHERS0_SWxHI bit when set voltage to the voltage range from 110 to 1375000. Leavi

Re: [PATCH] bestcomm: no need to free when kzalloc fail

2013-05-21 Thread Libo Chen
ping... On 2013/5/5 16:38, chenlib...@gmail.com wrote: > From: Libo Chen > > There is no need to free bcom_eng if kzalloc fail > > Signed-off-by: Libo Chen > --- > drivers/dma/bestcomm/bestcomm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/dma/bestcomm

Re: [PATCH 2/2 v2, RFC] Driver core: Introduce offline/online callbacks for memory blocks

2013-05-21 Thread Tang Chen
Hi Rafael, On 05/21/2013 07:15 PM, Rafael J. Wysocki wrote: .. + mem->state = to_state; + if (to_state == MEM_ONLINE) + mem->last_online = online_type; Why do we need to remember last online type ? And as far as I know, we can obtain which

Re: [PATCH v2 12/13] x86, numa, acpi, memory-hotplug: Make movablecore=acpi have higher priority.

2013-05-21 Thread Tang Chen
Hi Vasilis, Maybe the following two problems are the cause of the reboot panic problem in qemu you mentioned. On 04/30/2013 05:21 PM, Tang Chen wrote: .. diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b9ea143..2fe9ebf 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4793,9 +4793

linux-next: build failure after merge of the vhost tree

2013-05-21 Thread Stephen Rothwell
36:6: note: in expansion of macro '_might_fault' if (_might_fault()) ^ and many, many more. Caused by commit d198a8acf543 ("kernel: might_fault does not imply might_sleep"). I have used the version of the vhost tree from next-20130521 for today. It was unexpected that such pa

Re: [ANNOUNCE] ktap 0.1 released

2013-05-21 Thread Ming Lei
On Wed, May 22, 2013 at 12:19 PM, Ming Lei wrote: > On Wed, May 22, 2013 at 12:15 PM, Ming Lei wrote: >> On Tue, May 21, 2013 at 11:56 AM, zhangwei(Jovi) >> >> Nice job, I have run it on ARM already with only one line change. >> >> But looks 'Control-C' can't stop the tracing or need some time to

linux-next: manual merge of the vhost tree with the rr-fixes tree

2013-05-21 Thread Stephen Rothwell
Hi Michael, Today's linux-next merge of the vhost tree got conflicts in include/linux/uio.h and lib/iovec.c between commit d2f83e9078b8 ("Hoist memcpy_fromiovec/memcpy_toiovec into lib/") from the rr-fixes tree and commit 48f0d22c9a46 ("Hoist memcpy_fromiovec into lib/") from the vhost tree. The

Re: [ANNOUNCE] ktap 0.1 released

2013-05-21 Thread Ming Lei
On Wed, May 22, 2013 at 12:15 PM, Ming Lei wrote: > On Tue, May 21, 2013 at 11:56 AM, zhangwei(Jovi) > > Nice job, I have run it on ARM already with only one line change. > > But looks 'Control-C' can't stop the tracing or need some time to complete it, > see below: Sometimes, it doesn't work: $

Re: [ANNOUNCE] ktap 0.1 released

2013-05-21 Thread Ming Lei
On Tue, May 21, 2013 at 11:56 AM, zhangwei(Jovi) wrote: > > Dear, > > I'm pleased to announce that ktap release v0.1, this is the first official > release of ktap project, it is expected that this release is not fully > functional or very stable and we welcome bug reports and fixes for the issues.

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Jones
On Wed, May 22, 2013 at 02:03:18PM +1000, Dave Chinner wrote: > That doesn't make a whole lot of sense to me. What am I missing? > Are you seeing this fire at all from notify_change()? > > WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); No. > > > What's wrong with this code in d

Re: [RFC PATCH v2, part 2 14/18] PCI, EDAC: use hotplug-safe PCI bus iterators to walk PCI buses

2013-05-21 Thread Gu Zheng
On 05/15/2013 12:51 AM, Jiang Liu wrote: > Enhance EDAC drviers to use hotplug-safe iterators to walk PCI buses. > > Signed-off-by: Jiang Liu > Cc: Mauro Carvalho Chehab > Cc: Doug Thompson > Cc: linux-e...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/edac/i7core_edac.c

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Chinner
On Tue, May 21, 2013 at 10:56:05PM -0400, Dave Jones wrote: > On Wed, May 22, 2013 at 10:16:03AM +1000, Dave Chinner wrote: > > Seems like I can trigger this from paths other than truncate too.. (eg, > sys_open) O_TRUNC? > The mask is always 0xa068 though if that helps. A bit - it confirms wha

Re: linux-next: manual merge of the driver-core tree with the pm tree

2013-05-21 Thread Stephen Rothwell
Hi all, On Wed, 22 May 2013 13:47:41 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/base/cpu.c between commit 0902a9044fa5 ("Driver core: Use generic > offline/online for CPU offline/online") from the pm tree and commit > 1c4e2d70af

[PATCH RESEND] mtd: fix kfree bcm47xxsflash

2013-05-21 Thread Libo Chen
mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its member. Signed-off-by: Libo Chen Acked-by: Rafał Miłecki --- drivers/mtd/devices/bcm47xxsflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) * add Acked-by: Rafał Miłecki * change send list diff --git a

linux-next: manual merge of the driver-core tree with the pm tree

2013-05-21 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the driver-core tree got a conflict in drivers/base/cpu.c between commit 0902a9044fa5 ("Driver core: Use generic offline/online for CPU offline/online") from the pm tree and commit 1c4e2d70afb1 ("cpu: make sure that cpu/online file created before KOBJ_ADD is em

linux-next: build warning after merge of the tty.current tree

2013-05-21 Thread Stephen Rothwell
Hi Greg, After merging the tty.current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/tty/mxser.c: In function 'mxser_ioctl': drivers/tty/mxser.c:1680:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int p; ^ Intr

[PATCH 1/2] f2fs: should not make_bad_inode on f2fs_link failure

2013-05-21 Thread Jaegeuk Kim
If -ENOSPC is met during f2fs_link, we should not make the inode as bad. The inode is still alive. Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 729b285..71aa305 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs

[PATCH 2/2] f2fs: use ihold

2013-05-21 Thread Jaegeuk Kim
Use the following helper function committed by Al. commit 7de9c6ee3ecffd99e1628e81a5ea5468f7581a1f Author: Al Viro Date: Sat Oct 23 11:11:40 2010 -0400 new helper: ihold() ... Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH v2] usb: omap2430: fix memleak in err case

2013-05-21 Thread Libo Chen
when omap_get_control_dev faild, we should release related platform_device * Changelog from v1: * fix spell: s/fail/fails/, s/relational/related/ , thank Sergei Signed-off-by: Libo Chen --- drivers/usb/musb/omap2430.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

Re: [ANNOUNCE] ktap 0.1 released

2013-05-21 Thread zhangwei(Jovi)
On 2013/5/22 6:19, Jonathan Corbet wrote: > On Tue, 21 May 2013 11:56:14 +0800 > "zhangwei(Jovi)" wrote: > >> we welcome bug reports and fixes for the issues. > > I'm messing with it...first impression: > > unable create tracepoint event sys_enter_mmap on cpu 4, err: -19 > unable cr

Re: [PATCH 2/2] Staging: bcm: Change comment style to C89 in vendorspecificextn.c

2013-05-21 Thread Greg Kroah-Hartman
On Wed, May 22, 2013 at 02:13:58AM +0200, Severin Gsponer wrote: > Changed the comment style to C89 in vendorspecificextn.c. Found with > checkpatch.pl > > Signed-off-by: Severin Gsponer Where is patch 1/2? I see another patch you sent me, but that didn't have a number on it. confused, greg

[PATCH v7 1/8] vmcore: clean up read_vmcore()

2013-05-21 Thread HATAYAMA Daisuke
Rewrite part of read_vmcore() that reads objects in vmcore_list in the same way as part reading ELF headers, by which some duplicated and redundant codes are removed. Signed-off-by: HATAYAMA Daisuke Acked-by: Vivek Goyal --- fs/proc/vmcore.c | 68 -

[PATCH v7 7/8] vmcore: calculate vmcore file size from buffer size and total size of vmcore objects

2013-05-21 Thread HATAYAMA Daisuke
The previous patches newly added holes before each chunk of memory and the holes need to be count in vmcore file size. There are two ways to count file size in such a way: 1) supporse m as a poitner to the last vmcore object in vmcore_list. , then file size is (m->offset + m->size), or 2) calcula

[PATCH v7 8/8] vmcore: support mmap() on /proc/vmcore

2013-05-21 Thread HATAYAMA Daisuke
This patch introduces mmap_vmcore(). Don't permit writable nor executable mapping even with mprotect() because this mmap() is aimed at reading crash dump memory. Non-writable mapping is also requirement of remap_pfn_range() when mapping linear pages on non-consecutive physical pages; see is_cow_ma

Re: XFS assertion from truncate. (3.10-rc2)

2013-05-21 Thread Dave Jones
On Wed, May 22, 2013 at 10:16:03AM +1000, Dave Chinner wrote: Seems like I can trigger this from paths other than truncate too.. (eg, sys_open) Here's what I ended up with for debug diff --git a/fs/dcache.c b/fs/dcache.c index 2b39d16..b579dfe 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2792

[PATCH v7 2/8] vmcore: allocate buffer for ELF headers on page-size alignment

2013-05-21 Thread HATAYAMA Daisuke
Allocate ELF headers on page-size boundary using __get_free_pages() instead of kmalloc(). Later patch will merge PT_NOTE entries into a single unique one and decrease the buffer size actually used. Keep original buffer size in variable elfcorebuf_sz_orig to kfree the buffer later and actually used

[PATCH v7 4/8] vmalloc: make find_vm_area check in range

2013-05-21 Thread HATAYAMA Daisuke
Currently, __find_vmap_area searches for the kernel VM area starting at a given address. This patch changes this behavior so that it searches for the kernel VM area to which the address belongs. This change is needed by remap_vmalloc_range_partial to be introduced in later patch that receives any p

[PATCH v7 5/8] vmalloc: introduce remap_vmalloc_range_partial

2013-05-21 Thread HATAYAMA Daisuke
We want to allocate ELF note segment buffer on the 2nd kernel in vmalloc space and remap it to user-space in order to reduce the risk that memory allocation fails on system with huge number of CPUs and so with huge ELF note segment that exceeds 11-order block size. Although there's already remap_v

[PATCH v7 6/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-21 Thread HATAYAMA Daisuke
The reasons why we don't allocate ELF note segment in the 1st kernel (old memory) on page boundary is to keep backward compatibility for old kernels, and that if doing so, we waste not a little memory due to round-up operation to fit the memory to page boundary since most of the buffers are in per-

[PATCH v7 3/8] vmcore: treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list

2013-05-21 Thread HATAYAMA Daisuke
Treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list. Formally, for each range [start, end], we set up the corresponding vmcore object in vmcore_list to [rounddown(start, PAGE_SIZE), roundup(end, PAGE_SIZE)]. This change affects layout of /proc/vmco

[PATCH v7 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-21 Thread HATAYAMA Daisuke
Currently, read to /proc/vmcore is done by read_oldmem() that uses ioremap/iounmap per a single page. For example, if memory is 1GB, ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 times. This causes big performance degradation due to repeated page table changes, TLB flush and build-up

[PATCH v6 05/10 fix2] mtd: get the ECC info from the Extended Parameter Page

2013-05-21 Thread Huang Shijie
Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the @ecc_bits is 0xff. The host _SHOULD_ then read the Extended ECC information that is part of the extended

Re: [PATCH v2 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs

2013-05-21 Thread Damian Hobson-Garcia
Hello, On 2013/04/30 12:01, Damian Hobson-Garcia wrote: > Most architectures that define CONFIG_HAVE_DMA=y, have implementations for > both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do > not define CONFIG_HAVE_DMA also have both of these definitions provided by > dma-mapping-br

[PATCH 2/2] spi: convert drivers to use bits_per_word_mask

2013-05-21 Thread Stephen Warren
Fill in the recently added spi_master.bits_per_word_mask field in as many drivers as possible. Make related cleanups, such as removing any redundant error-checking, or empty setup callbacks. Cc: device-drivers-de...@blackfin.uclinux.org Cc: Mike Frysinger Signed-off-by: Stephen Warren --- The on

[PATCH 1/2] spi: introduce macros to set bits_per_word_mask

2013-05-21 Thread Stephen Warren
Introduce two macros to make setting up spi_master.bits_per_word_mask easier, and avoid mistakes like writing BIT(n) instead of BIT(n - 1). SPI_BPW_MASK is for a single supported value of bits_per_word_mask. SPI_BPW_RANGE_MASK represents a contiguous set of bit lengths. Signed-off-by: Stephen Wa

[RESEND][PATCH 2/2] clk: wm831x: Fix wm831x_clkout_get_parent

2013-05-21 Thread Axel Lin
Current code looks strange because calling wm831x_clkout_set_parent() with 0 as parent parameter, wm831x_clkout_get_parent() will return 1. According to the datasheet: R16528 (4090h) Clock Control1 BIT 0: CLKOUT output source select 0 = FLL output 1 = 32.768

[RESEND][PATCH 1/2] clk: wm831x: Fix update wrong register for enable/disable FLL

2013-05-21 Thread Axel Lin
According to the datasheet, FLL Enable is controlled by R16530 (4092h) FLL Control1 BIT 0: FLL Enable 0 = Disable 1 = Enable Thus the code should update WM831X_FLL_CONTROL_1 register rather than WM831X_FLL_CONTROL_2 register. Also fixes a trivial typo in de

[PATCH v2 2/5] perf: Swap the parameters of strglobmatch

2013-05-21 Thread Masami Hiramatsu
Swap the parameters of strglobmatch() so that the first parameter is the glob pattern as like as regexec(), because the subjective parameter of strglobmatch() must be the glob pattern, but not a sample string. The new interface is: bool strglobmatch(const char *glob, const char *str); Actually

[PATCH v2 5/5] tracing: Support enable/disable multiple events trigger by wild cards

2013-05-21 Thread Masami Hiramatsu
Support enable/disable multiple events trigger on ftrace by using wild cards. This makes enabling multiple events at once easy. e.g.) # echo vfs_symlink:enable_event:\*:\*rq\* > set_ftrace_filter # cat set_ftrace_filter all functions enabled vfs_symlink:enable_event:*:*rq*:unlimited

[PATCH v2 1/5] [BUGFIX] tracing: Returns -EBUSY when event_enable_func fails to get module

2013-05-21 Thread Masami Hiramatsu
Since try_module_get returns false( = 0) when it fails to pindown a module, event_enable_func() returns 0 which means "succeed". This can cause a kernel panic when the entry is removed, because the event is already released. This fixes the bug by returning -EBUSY, because the reason why it fails i

[PATCH v2 3/5] lib/string: Add a generic wildcard string matching function

2013-05-21 Thread Masami Hiramatsu
Add strglobmatch() for generic wildcard string matching. This code is originally from perf-tools. For porting in the kernel, the limitation of the number of wildcards is introduced, because of the limitation of the stack. Signed-off-by: Masami Hiramatsu Cc: Andrew Morton Cc: Akinobu Mita Cc: "P

[PATCH v2 4/5] tracing/kprobes: Allow user to delete kprobe events by wild cards

2013-05-21 Thread Masami Hiramatsu
Allow user to delete multiple kprobe events by using wild cards. This makes removing events on a specific function easy. e.g.) # echo p vfs_symlink >> kprobe_events # echo p vfs_symlink+5 >> kprobe_events # echo p vfs_read >> kprobe_events # cat kprobe_events p:kprobes/p_vfs_symlink_0 vfs_syml

[PATCH v2 0/5] Add glob pattern matching support on trigger and kprobe-event

2013-05-21 Thread Masami Hiramatsu
Hi, Here is a series of ftrace/perf updates to support multiple event select operation by glob-based wild cards. I've ported strglobmatch from perf-tools (with recursive call limitation) for this use. It is easier to use (just replacing strcmp) but slower than current parser-based matching. I don

Re: [PATCH v6 05/10 fix] mtd: get the ECC info from the Extended Parameter Page

2013-05-21 Thread Huang Shijie
于 2013年05月22日 00:35, Vikram Narayanan 写道: > What if we do like this? Let's do a strict check for now. ("EPPS") > If some chip manufacturer had _strictly_ followed the spec, i.e., any > two bytes are valid. > Then make the code comply with the spec. > Any comments? Agreed. I will send a new patch f

Re: [PATCH beta 1] 0/3] Fix race conditions in mrf24j40 interrupts

2013-05-21 Thread Alan Ott
On 05/21/2013 10:01 PM, Alan Ott wrote: > David Hauweele noticed that the mrf24j40 would hang arbitrarily after some > period of heavy traffic. Two race conditions were discovered, and the > driver was changed to use threaded interrupts, since the enable/disable of > interrupts in the driver has r

[PATCH beta 1] 0/3] Fix race conditions in mrf24j40 interrupts

2013-05-21 Thread Alan Ott
David Hauweele noticed that the mrf24j40 would hang arbitrarily after some period of heavy traffic. Two race conditions were discovered, and the driver was changed to use threaded interrupts, since the enable/disable of interrupts in the driver has recently been a lighning rod whenever issues aris

[PATCH beta 1] 1/3] mrf24j40: Move INIT_COMPLETION() to before packet transmission

2013-05-21 Thread Alan Ott
This avoids a race condition where complete(tx_complete) could be called before tx_complete is initialized. Signed-off-by: Alan Ott --- drivers/net/ieee802154/mrf24j40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee8

  1   2   3   4   5   6   >