[PATCH] trace: don't call page_to_pfn() if page is NULL

2012-09-19 Thread Wen Congyang
When allocating memory fails, page is NULL. page_to_pfn() will cause the kernel panicked if we don't use sparsemem vmemmap. Signed-off-by: Wen Congyang --- include/trace/events/kmem.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/kmem.h

[PATCH] rtc: tps65910: Changing RTC driver name as per mfd

2012-09-19 Thread Venu Byravarasu
As TPS65910 mfd uses "tps65910-rtc" as driver name, changing driver name in the RTC driver to match with the same. Signed-off-by: Venu Byravarasu --- drivers/rtc/rtc-tps65910.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-tps65910.c

Re: [PATCH 1/1] drivers: bus: Move the OMAP interconnect driver to drivers/bus/

2012-09-19 Thread Shilimkar, Santosh
On Thu, Sep 20, 2012 at 12:27 AM, Arnd Bergmann wrote: > On Monday 17 September 2012, Tony Lindgren wrote: >> * Santosh Shilimkar [120914 02:21]: >> > OMAP interconnect drivers are used for the interconnect error handling. >> > Since they are bus driver, lets move it to newly created

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Minchan Kim
On Thu, Sep 20, 2012 at 01:32:59PM +0800, Wen Congyang wrote: > At 09/20/2012 01:16 PM, Minchan Kim Wrote: > > On Thu, Sep 20, 2012 at 11:12:40AM +0800, Wen Congyang wrote: > >> At 09/20/2012 10:30 AM, Minchan Kim Wrote: > >>> On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: > At

[PATCH 1/4] perf header: Add struct perf_header_info

2012-09-19 Thread Namhyung Kim
From: Namhyung Kim The struct perf_header_info will preserve environment information at the time of perf record. It can be accessed anytime after parsing a perf.data file if needed. Signed-off-by: Namhyung Kim --- tools/perf/util/header.h | 24 1 file changed, 24

[PATCH 4/4] perf header: Remove unused @feat arg from ->process callback

2012-09-19 Thread Namhyung Kim
From: Namhyung Kim As the @feat arg is not used anywhere, get rid of it from the signature. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 70 1 file changed, 35 insertions(+), 35

[PATCH 3/4] perf header: Use pre-processed header info when printing

2012-09-19 Thread Namhyung Kim
>From now on each feature information is processed and saved in perf header so that it can be used for printing. The event desc and branch stack features are not touched since they're not saved. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c

[PATCH 2/4] perf header: Add ->process callbacks to most of features

2012-09-19 Thread Namhyung Kim
>From now on each feature information is processed and saved in perf header so that it can be used wherever needed. The BRANCH_STACK feature is an exception since it needs nothing to be done. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c |

[PATCH 0/4] perf header: Save and reuse feature information in header (v3)

2012-09-19 Thread Namhyung Kim
Hi, Currently the perf header information is used only at initial setup time and discarded. If it's saved we could reuse the information for various purpose in the future. Thanks, Namhyung v2 -> v3: * patch 1-3 in v2 merged into tip * rebased on current acme/perf/core v1 -> v2: * not

Re: [PATCH] Staging: panel: Fixed a macro coding style issue

2012-09-19 Thread Adil Mujeeb
Hi, On Thu, Sep 20, 2012 at 10:52 AM, Willy Tarreau wrote: > On Thu, Sep 20, 2012 at 09:19:42AM +0530, Adil Mujeeb wrote: >> On Thu, Sep 20, 2012 at 2:09 AM, Willy Tarreau wrote: >> > On Wed, Sep 19, 2012 at 12:44:58PM -0700, Joe Perches wrote: >> >> On Thu, 2012-09-20 at 01:07 +0530, Adil

Re: Processes in D state / development of real-time apps

2012-09-19 Thread Mike Galbraith
On Wed, 2012-09-19 at 20:32 -0700, Andrew Athan wrote: > All: > > I am simply not sure whether this is the right list to post this > question to. Please redirect me if not. > > I chose to post here based on some indications that the problem may > involve some aspects of the kernel given the

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Wen Congyang
At 09/20/2012 01:16 PM, Minchan Kim Wrote: > On Thu, Sep 20, 2012 at 11:12:40AM +0800, Wen Congyang wrote: >> At 09/20/2012 10:30 AM, Minchan Kim Wrote: >>> On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: At 09/20/2012 04:17 AM, Minchan Kim Wrote: > Hi KOSAKI, > > On

Re: [PATCH] Staging: panel: Fixed a macro coding style issue

2012-09-19 Thread Willy Tarreau
On Thu, Sep 20, 2012 at 09:19:42AM +0530, Adil Mujeeb wrote: > On Thu, Sep 20, 2012 at 2:09 AM, Willy Tarreau wrote: > > On Wed, Sep 19, 2012 at 12:44:58PM -0700, Joe Perches wrote: > >> On Thu, 2012-09-20 at 01:07 +0530, Adil Mujeeb wrote: > >> > Removed do {} while (0) loop for a single

RE: [PATCH v2] USB: PHY: Re-organize Tegra USB PHY driver

2012-09-19 Thread Venu Byravarasu
Hi Greg & Felipe, Can any of you please review and merge this change? Thanks, Venu > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Thursday, September 13, 2012 10:49 PM > To: Venu Byravarasu > Cc: st...@rowland.harvard.edu; gre...@linuxfoundation.org;

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Wen Congyang
At 09/20/2012 01:16 PM, Minchan Kim Wrote: > On Thu, Sep 20, 2012 at 11:12:40AM +0800, Wen Congyang wrote: >> At 09/20/2012 10:30 AM, Minchan Kim Wrote: >>> On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: At 09/20/2012 04:17 AM, Minchan Kim Wrote: > Hi KOSAKI, > > On

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Minchan Kim
On Thu, Sep 20, 2012 at 11:12:40AM +0800, Wen Congyang wrote: > At 09/20/2012 10:30 AM, Minchan Kim Wrote: > > On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: > >> At 09/20/2012 04:17 AM, Minchan Kim Wrote: > >>> Hi KOSAKI, > >>> > >>> On Wed, Sep 19, 2012 at 02:05:20PM -0400, KOSAKI

[PATCH] perf probe: Allow of casting an array of char to string

2012-09-19 Thread Hyeoncheol Lee
Before casting a type of a variable to string, convert_variable_type() confirms that the type is a pointer or an array. if it is a pointer to char, it is casted to string. but in case of an array of char, it isn't Cc: Masami Hiramatsu Cc: Srikar Dronamraju Signed-off-by: Hyeoncheol Lee ---

Re: [PATCH] memstick: add support for legacy memorysticks

2012-09-19 Thread Maxim Levitsky
On Wed, 2012-09-19 at 14:52 -0700, Andrew Morton wrote: > On Wed, 19 Sep 2012 16:19:02 +0300 > Maxim Levitsky wrote: > > > Based partially on MS standard spec quotes from Alex Dubov. > > > > As any code that works with user data this driver isn't > > recommended to use to write cards that

Re: [patch for-3.6] mm, thp: fix mapped pages avoiding unevictable list on mlock

2012-09-19 Thread Hugh Dickins
On Wed, 18 Sep 2012, David Rientjes wrote: > When a transparent hugepage is mapped and it is included in an mlock() > range, follow_page() incorrectly avoids setting the page's mlock bit and > moving it to the unevictable lru. > > This is evident if you try to mlock(), munlock(), and then

Re: [PATCH] Staging: panel: Fixed a macro coding style issue

2012-09-19 Thread Adil Mujeeb
On Thu, Sep 20, 2012 at 2:09 AM, Willy Tarreau wrote: > On Wed, Sep 19, 2012 at 12:44:58PM -0700, Joe Perches wrote: >> On Thu, 2012-09-20 at 01:07 +0530, Adil Mujeeb wrote: >> > Removed do {} while (0) loop for a single statement macros >> > >> > Signed-off-by: Adil Mujeeb >> > --- >> >

Processes in D state / development of real-time apps

2012-09-19 Thread Andrew Athan
All: I am simply not sure whether this is the right list to post this question to. Please redirect me if not. I chose to post here based on some indications that the problem may involve some aspects of the kernel given the involvement of tty/sshd/and a process stuck in "D" state waiting on

Re: [PATCH 0/2] ARM: dts: Add subnode for ocp2scp

2012-09-19 Thread Benoit Cousson
Hi Tony, On 09/19/2012 12:32 PM, Kishon Vijay Abraham I wrote: > This patch series contains a patch to explicitly add reg property > to the ocp2scp dt node and a patch to add the subnode for ocp2scp > (omap-usb2). > > Since the original patch series that adds ocp2scp driver and ocp2scp > data

Re: [PATCH v3 0/3] ARM: dts: omap: add dt data for MUSB

2012-09-19 Thread Benoit Cousson
Hi Kishon, On 09/19/2012 11:32 AM, Kishon Vijay Abraham I wrote: > This patch series adds dt data to get MUSB working in omap4 and omap3 > > Changes from v2: > * Changes the subject of all the patches to include "ARM: dts:" > * Added reg property and interrupt property for "usb_otg_hs".

[PATCH 2/2] md: modify dm_io() so it could return bios instead of submitting it

2012-09-19 Thread Robin Dong
From: Robin Dong When trying to modify flashcache to request based (current it's bio based), we need to make request from bios by ourselves, but dm_io() will submit these bios directly, so we propose to modify the dm_io() to return bios instead of submiting it. This could also improve the

[PATCH 1/2] md: add new interface 'mk_rq' in target_type

2012-09-19 Thread Robin Dong
From: Robin Dong We are now trying to modify flashcache(https://github.com/facebook/flashcache) to make it request based so that we can let cfq io-controller control the bandwidth between different io cgroups. A search in the dm directory tells me that only multipath is a request based dm

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Wen Congyang
At 09/20/2012 10:30 AM, Minchan Kim Wrote: > On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: >> At 09/20/2012 04:17 AM, Minchan Kim Wrote: >>> Hi KOSAKI, >>> >>> On Wed, Sep 19, 2012 at 02:05:20PM -0400, KOSAKI Motohiro wrote: On Wed, Sep 19, 2012 at 3:29 AM, Minchan Kim wrote:

Re: [PATCH v2 4/5] KVM: MMU: introduce page_fault_start and page_fault_end

2012-09-19 Thread Xiao Guangrong
On 09/19/2012 07:43 AM, Marcelo Tosatti wrote: >>> - error pfn / mmio pfn / invalid pfn relation >>> >>> Have the meaning of this bits unified in a single function/helper, see >>> comment to patch 1 (perhaps you can further improve). >> >> Sorry, more detail? > > Should force the reader of the

Re: 3.6rc6 slab corruption.

2012-09-19 Thread Raghavendra K T
On 09/20/2012 08:16 AM, David Rientjes wrote: On Thu, 20 Sep 2012, Raghavendra K T wrote: Only problem, I find is histogram data expands dynamically (because it changes). I think having static allocation of 352 bytes as suggested Linus is a good idea. Certainly, but it's a different topic

Re: 3.6rc6 slab corruption.

2012-09-19 Thread David Rientjes
On Thu, 20 Sep 2012, Raghavendra K T wrote: > Only problem, I find is histogram data expands dynamically (because it > changes). I think having static allocation of 352 bytes as suggested > Linus is a good idea. > Certainly, but it's a different topic and would be a subsequent patch to either

Re: 3.6rc6 slab corruption.

2012-09-19 Thread Raghavendra K T
On 09/20/2012 03:19 AM, David Rientjes wrote: On Wed, 19 Sep 2012, David Rientjes wrote: From 0806b133b5b28081adf23d0d04a99636ed3b861b Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Wed, 19 Sep 2012 11:23:01 -0400 Subject: [PATCH 1/2] debugfs: Add lock for u32_array_read Dave

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Minchan Kim
On Thu, Sep 20, 2012 at 09:17:43AM +0800, Wen Congyang wrote: > At 09/20/2012 04:17 AM, Minchan Kim Wrote: > > Hi KOSAKI, > > > > On Wed, Sep 19, 2012 at 02:05:20PM -0400, KOSAKI Motohiro wrote: > >> On Wed, Sep 19, 2012 at 3:29 AM, Minchan Kim wrote: > >>> During memory-hotplug stress test, I

Re: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-09-19 Thread Stephen Warren
On 09/19/2012 07:44 PM, Krishna Reddy wrote: >> When a device driver would only use the IOMMU-API and needs small DMA- >> able areas it has to re-implement something like the DMA-API (basically an >> address allocator) for that. So I don't see a reason why both can't be used >> in a >> device

[PATCH v2] tools lib traceevent: Handle alloc_arg failure

2012-09-19 Thread Namhyung Kim
Now alloc_arg returns NULL if memory allocation failed, it should be handled on callsites properly. Signed-off-by: Namhyung Kim --- Hmm.. how about this? Do you want that the __func__ part also gets removed? tools/lib/traceevent/event-parse.c | 97 +- 1

[PATCH 20/27] userns: Add kprojid_t and associated infrastructure in projid.h

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Implement kprojid_t a cousin of the kuid_t and kgid_t. The per user namespace mapping of project id values can be set with /proc//projid_map. A full compliment of helpers is provided: make_kprojid, from_kprojid, from_kprojid_munged, kporjid_has_mapping, projid_valid,

[PATCH 27/27] userns: Convert quota

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Now that the type changes are done, here is the final set of changes to make the quota code work when user namespaces are enabled. Small cleanups and fixes to make the code build when user namespaces are enabled. Cc: Jan Kara Signed-off-by: "Eric W. Biederman" ---

[PATCH 23/27] userns: Modify dqget to take struct kqid

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Modify dqget to take struct kqid instead of a type and an identifier pair. Modify the callers of dqget in ocfs2 and dquot to take generate a struct kqid so they can continue to call dqget. The conversion to create struct kqid should all be the final conversions that

[PATCH 24/27] userns: Convert quota netlink aka quota_send_warning

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Modify quota_send_warning to take struct kqid instead a type and identifier pair. When sending netlink broadcasts always convert uids and quota identifiers into the intial user namespace. There is as yet no way to send a netlink broadcast message with different

[PATCH 16/27] userns: Convert vfs posix_acl support to use kuids and kgids

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" - In setxattr if we are setting a posix acl convert uids and gids from the current user namespace into the initial user namespace, before the xattrs are passed to the underlying filesystem. Untranslatable uids and gids are represented as -1 which

[PATCH 18/27] userns: Convert extN to support kuids and kgids in posix acls

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Convert ext2, ext3, and ext4 to fully support the posix acl changes, using e_uid e_gid instead e_id. Enabled building with posix acls enabled, all filesystems supporting user namespaces, now also support posix acls when user namespaces are enabled. Cc: Theodore Tso

[PATCH 22/27] userns: Convert qutoactl

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Update the quotactl user space interface to successfull compile with user namespaces support enabled and to hand off quota identifiers to lower layers of the kernel in struct kqid instead of type and qid pairs. The quota on function is not converted because while it

[PATCH 26/27] userns: Convert struct dquot_warn

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Convert w_dq_id to be a struct kquid and remove the now unncessary w_dq_type. This is a simple conversion and enough other places have already been converted that this actually reduces the code complexity by a little bit, when removing now unnecessary type conversions.

[PATCH 13/27] userns: Convert taskstats to handle the user and pid namespaces.

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" - Explicitly limit exit task stat broadcast to the initial user and pid namespaces, as it is already limited to the initial network namespace. - For broadcast task stats explicitly generate all of the idenitiers in terms of the initial user namespace and the

[PATCH 12/27] userns: Convert audit to work with user namespaces enabled

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" - Explicitly format uids gids in audit messges in the initial user namespace. This is safe because auditd is restrected to be in the initial user namespace. - Convert audit_sig_uid into a kuid_t. - Enable building the audit code and user namespaces at the same

[PATCH 15/27] userns: Teach trace to use from_kuid

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" - When tracing capture the kuid. - When displaying the data to user space convert the kuid into the user namespace of the process that opened the report file. Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Signed-off-by: Eric W. Biederman ---

[PATCH 19/27] userns: Convert configfs to use kuid and kgid where appropriate

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Joel Becker Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- fs/configfs/inode.c |4 ++-- init/Kconfig|1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index 0074362..a9d35b0

[PATCH 11/27] userns: Convert the audit loginuid to be a kuid

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Always store audit loginuids in type kuid_t. Print loginuids by converting them into uids in the appropriate user namespace, and then printing the resulting uid. Modify audit_get_loginuid to return a kuid_t. Modify audit_set_loginuid to take a kuid_t. Modify

[PATCH 21/27] userns: Implement struct kqid

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Add the data type struct kqid which holds the kernel internal form of the owning identifier of a quota. struct kqid is a replacement for the implicit union of uid, gid and project id stored in an unsigned int and the quota type field that is was used in the quota data

Re: [PATCH 1/3] clk: wm831x: Fix clk_register() error code checking

2012-09-19 Thread Mark Brown
On Tue, Sep 18, 2012 at 11:05:28PM -0700, Stephen Boyd wrote: > clk_register() returns an ERR_PTR upon failure, not NULL. Fix > these error paths. Acked-by: Mark Brown this is an API change since the driver was sent which the driver didn't get updatd for. -- To unsubscribe from this list: send

[PATCH 03/27] audit: Limit audit requests to processes in the initial pid and user namespaces.

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" This allows the code to safely make the assumption that all of the uids gids and pids that need to be send in audit messages are in the initial namespaces. If someone cares we may lift this restriction someday but start with limiting access so at least the code is

[PATCH 06/27] audit: Simply AUDIT_TTY_SET and AUDIT_TTY_GET

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Use current instead of looking up the current up the current task by process identifier. Netlink requests are processed in trhe context of the sending task so this is safe. Cc: Al Viro Cc: Eric Paris Signed-off-by: "Eric W. Biederman" --- kernel/audit.c | 38

[PATCH 04/27] audit: Use current instead of NETLINK_CREDS() in audit_filter

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Get caller process uid and gid and pid values from the current task instead of the NETLINK_CB. This is simpler than passing NETLINK_CREDS from from audit_receive_msg to audit_filter_user_rules and avoid the chance of being hit by the occassional bugs in netlink uid/gid

[PATCH 08/27] audit: Remove the unused uid parameter from audit_receive_filter

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Al Viro Cc: Eric Paris Signed-off-by: "Eric W. Biederman" --- include/linux/audit.h |2 +- kernel/audit.c|4 ++-- kernel/auditfilter.c |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/audit.h

[PATCH 10/27] audit: Add typespecific uid and gid comparators

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" The audit filter code guarantees that uid are always compared with uids and gids are always compared with gids, as the comparason operations are type specific. Take advantage of this proper to define audit_uid_comparator and audit_gid_comparator which use the type safe

[PATCH 09/27] audit: Don't pass pid or uid to audit_log_common_recv_msg

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" The only place we use the uid and the pid that we calculate in audit_receive_msg is in audit_log_common_recv_msg so move the calculation of these values into the audit_log_common_recv_msg. Simplify the calcuation of the current pid and uid by reading them from current

[PATCH 05/27] audit: kill audit_prepare_user_tty

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" Now that netlink messages are processed in the context of the sender tty_audit_push_task can be called directly and audit_prepare_user_tty which only added looking up the task of the tty by process id is not needed. Cc: Al Viro Cc: Eric Paris Signed-off-by: "Eric W.

[PATCH 07/27] audit: Properly set the origin port id of audit messages.

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" For user generated audit messages set the portid field in the netlink header to the netlink port where the user generated audit message came from. Reporting the process id in a port id field was just nonsense. Cc: Al Viro Cc: Eric Paris Signed-off-by: "Eric W.

[PATCH 02/27] userns: net: Call key_alloc with GLOBAL_ROOT_UID, GLOBAL_ROOT_GID instead of 0, 0

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" In net/dns_resolver/dns_key.c and net/rxrpc/ar-key.c make them work with user namespaces enabled where key_alloc takes kuids and kgids. Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID instead of bare 0's. Cc: Sage Weil Cc: ceph-de...@vger.kernel.org Cc: David Howells Cc:

[PATCH 01/27] userns: Convert security/keys to the new userns infrastructure

2012-09-19 Thread Eric W. Biederman
From: "Eric W. Biederman" - Replace key_user ->user_ns equality checks with kuid_has_mapping checks. - Use from_kuid to generate key descriptions - Use kuid_t and kgid_t and the associated helpers instead of uid_t and gid_t - Avoid potential problems with file descriptor passing by displaying

[PATCH 2/2] net: do not disable sg for packets requiring no checksum

2012-09-19 Thread Ed Cashin
A change in a series of VLAN-related changes appears to have inadvertently disabled the use of the scatter gather feature of network cards for transmission of non-IP ethernet protocols like ATA over Ethernet (AoE). Below is a reference to the commit that introduces a "harmonize_features" function

[PATCH 1/2] aoe: assert AoE packets marked as requiring no checksum

2012-09-19 Thread Ed Cashin
In order for the network layer to see that AoE requires no checksumming in a generic way, the packets must be marked as requiring no checksum, so we make this requirement explicit with the assertion. Signed-off-by: Ed Cashin --- drivers/block/aoe/aoecmd.c |1 + 1 files changed, 1

[PATCH 0/2] do not disable sg when packet requires no checksum

2012-09-19 Thread Ed Cashin
This two-part patchset replaces an earlier net-only patch that added an explicit check for the AoE protocol to harmonize_features in net/core/dev.c. Following the suggestions of Ben Hutchings, this patchset makes the decision in the network layer protocol agnostic instead of using ETH_P_AOE as a

userns subsystem conversions v2

2012-09-19 Thread Eric W. Biederman
Witht the previous review comments it was clear that my previous patchset was a little premature and the patches were a bit large, making the changes less clear than they needed to be. To that end To that end I have revisited and split up my audit, posix acl, and, and quota support so they are

RE: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-09-19 Thread Krishna Reddy
> When a device driver would only use the IOMMU-API and needs small DMA- > able areas it has to re-implement something like the DMA-API (basically an > address allocator) for that. So I don't see a reason why both can't be used > in a > device driver. On Tegra, the following use cases need

Re: [PATCH 1/2] aoe: mark AoE packets as requiring no checksumming

2012-09-19 Thread Ed Cashin
On Sep 19, 2012, at 9:25 PM, Ben Hutchings wrote: > Can be written as: > skb_checksum_none_assert(skb); Another good idea. I'll resend. -- Ed Cashin ecas...@coraid.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 3/3] clk: wm831x: Use devm_clk_register() to simplify code

2012-09-19 Thread Mark Brown
On Tue, Sep 18, 2012 at 11:05:30PM -0700, Stephen Boyd wrote: > Move this driver to use devm_clk_register() to simplify some > error paths and reduce lines of code. Acked-by: Mark Brown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC] cgroup TODOs

2012-09-19 Thread Andy Lutomirski
[grr. why does gmane scramble addresses?] On 09/13/2012 01:58 PM, Tejun Heo wrote: > > 6. Multiple hierarchies > > Apart from the apparent whness of it (I think I talked about > that enough the last time[1]), there's a basic problem when more > than one controllers interact -

[PATCH RFT] memory: tegra{20,30}-mc: Fix reading incorrect register in mc_readl()

2012-09-19 Thread Axel Lin
The code reading the register does not match the code writing to the register, fix it. Also fix the coding style in mc_writel() for better readability. Signed-off-by: Axel Lin --- drivers/memory/tegra20-mc.c | 10 +++--- drivers/memory/tegra30-mc.c | 22 +++--- 2 files

Linux 3.2.30

2012-09-19 Thread Ben Hutchings
I'm announcing the release of the 3.2.30 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] userns: Add basic quota support v4

2012-09-19 Thread Eric W. Biederman
Dave thank you earlier taking some time to do review. It made me realize that my code was not as mature as it needed to be. That said you missed a lot of important details, and I will aim at to address some of the highlights. Precedent in naming. that has been merged since 3.5, earlier there

Re: [PATCH 1/2] aoe: mark AoE packets as requiring no checksumming

2012-09-19 Thread Ben Hutchings
On Wed, 2012-09-19 at 18:17 -0700, Ed Cashin wrote: > In order for the network layer to see that AoE requires > no checksumming in a generic way, packets should be marked > CHECKSUM_NONE. Which they are by default. > Rather than relying on the current behavior of alloc_skb, > this change causes

Re: [ 117/135] NFS: return error from decode_getfh in decode open

2012-09-19 Thread Ben Hutchings
On Wed, 2012-09-19 at 15:53 +, Myklebust, Trond wrote: > On Wed, 2012-09-19 at 04:39 +0100, Ben Hutchings wrote: > > On Tue, 2012-09-18 at 22:26 -0300, Herton Ronaldo Krzesinski wrote: > > > On Mon, Sep 17, 2012 at 01:38:22AM +0100, Ben Hutchings wrote: > > > > 3.2-stable review patch. If

[PATCH 2/2] net: do not disable sg for packets requiring no checksum

2012-09-19 Thread Ed Cashin
A change in a series of VLAN-related changes appears to have inadvertently disabled the use of the scatter gather feature of network cards for transmission of non-IP ethernet protocols like ATA over Ethernet (AoE). Below is a reference to the commit that introduces a "harmonize_features" function

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-19 Thread Alex Shi
> @@ -147,7 +148,7 @@ u64 arch_irq_stat_cpu(unsigned int cpu) > #ifdef CONFIG_SMP > sum += irq_stats(cpu)->irq_resched_count; > sum += irq_stats(cpu)->irq_call_count; > - sum += irq_stats(cpu)->irq_tlb_count; > + /* irq_tlb_count is already added to irq_call_count */

[patch for-3.6] mm, thp: fix mapped pages avoiding unevictable list on mlock

2012-09-19 Thread David Rientjes
When a transparent hugepage is mapped and it is included in an mlock() range, follow_page() incorrectly avoids setting the page's mlock bit and moving it to the unevictable lru. This is evident if you try to mlock(), munlock(), and then mlock() a range again. Currently: #define

[PATCH 1/2] aoe: mark AoE packets as requiring no checksumming

2012-09-19 Thread Ed Cashin
In order for the network layer to see that AoE requires no checksumming in a generic way, packets should be marked CHECKSUM_NONE. Rather than relying on the current behavior of alloc_skb, this change causes the aoe driver to explicitly mark its packets as requiring no checksum. Signed-off-by: Ed

[PATCH 0/2] do not disable sg when packet requires no checksum

2012-09-19 Thread Ed Cashin
This two-part patchset replaces an earlier net-only patch that added an explicit check for the AoE protocol to harmonize_features in net/core/dev.c. Following the suggestion of Ben Hutchings, this patchset makes the decision in the network layer protocol agnostic instead of using ETH_P_AOE as a

Re: [PATCH] memory-hotplug: fix zone stat mismatch

2012-09-19 Thread Wen Congyang
At 09/20/2012 04:17 AM, Minchan Kim Wrote: > Hi KOSAKI, > > On Wed, Sep 19, 2012 at 02:05:20PM -0400, KOSAKI Motohiro wrote: >> On Wed, Sep 19, 2012 at 3:29 AM, Minchan Kim wrote: >>> During memory-hotplug stress test, I found NR_ISOLATED_[ANON|FILE] >>> are increasing so that kernel are hang

[PATCH -mm v3] coredump: extend core dump note section to contain file names of mapped files

2012-09-19 Thread Denys Vlasenko
This note has the following format: long count -- how many files are mapped long page_size -- units for file_ofs array of [COUNT] elements of long start long end long file_ofs followed by COUNT filenames in ASCII: "FILE1" NUL "FILE2" NUL... Changes since previous version: * reworked

Re: [PATCHv2] virtio_console: Add support for remoteproc serial

2012-09-19 Thread Rusty Russell
sjur.brandel...@stericsson.com writes: > From: Sjur Brændeland > > Add a simple serial connection driver called > VIRTIO_ID_RPROC_SERIAL (0xB) for communicating with a > remote processor in an asymmetric multi-processing > configuration. > > This implementation reuses the existing virtio_console

Re: lve module taint?

2012-09-19 Thread Rusty Russell
Greg KH writes: > On Wed, Sep 19, 2012 at 09:58:09AM +0400, Michael Tokarev wrote: >> On 19.09.2012 06:02, Rusty Russell wrote: >> This is setting a, in my opinion, rather bad precedent. Next we'll >> be adding various modules here due to various reasons. We have, that bridge has already been

Re: [PATCH] mfd: arizona: use IRQF_ONESHOT

2012-09-19 Thread Mark Brown
On Thu, Sep 20, 2012 at 07:24:03AM +0800, Fengguang Wu wrote: > Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci > > Make sure threaded IRQs without a primary handler are always request > with IRQF_ONESHOT. > > Signed-off-by: Fengguang Wu > --- > > Please take the patch only if it's a

Re: [RFC][PATCH 0/3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-09-19 Thread Scott Wood
On 09/19/2012 08:49:14 AM, Kumar Gala wrote: On Sep 19, 2012, at 8:17 AM, wrote: > From: Varun Sethi > > This patchset provides the Freescale PAMU (Peripheral Access Management Unit) driver > and the corresponding IOMMU API implementation. PAMU is the IOMMU present on Freescale >

Re: [RFC][PATCH 2/3] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-09-19 Thread Scott Wood
On 09/19/2012 08:52:27 AM, Kumar Gala wrote: On Sep 19, 2012, at 8:17 AM, wrote: > From: Varun Sethi > > Added the following domain attributes required by FSL PAMU driver: > 1. Subwindows field added to the iommu domain geometry attribute. > 2. Added new iommu stash attribute, which

Re: [patch] block: make struct block_device cacheline_aligned

2012-09-19 Thread Mikulas Patocka
On Wed, 19 Sep 2012, Jeff Moyer wrote: > Mikulas Patocka writes: > > > On Wed, 19 Sep 2012, Jeff Moyer wrote: > > > >> Mikulas Patocka writes: > >> > >> > On Wed, 19 Sep 2012, Jeff Moyer wrote: > >> > > >> >> Jeff Moyer writes: > >> >> > >> >> > Hi, > >> >> > > >> >> > When testing

Re: [PATCH 3/6] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()

2012-09-19 Thread Suresh Siddha
On Wed, 2012-09-19 at 10:18 -0700, Suresh Siddha wrote: > These routines (kvm_load/put_guest_fpu()) are already called with > preemption disabled but as you mentioned, we don't want the preemption > to be disabled completely between the kvm_load_guest_fpu() and > kvm_put_guest_fpu(). > > Also KVM

Re: rcu self-detected stall messages on OMAP3, 4 boards

2012-09-19 Thread Paul E. McKenney
On Thu, Sep 13, 2012 at 06:52:10PM +, Paul Walmsley wrote: > Hi Paul, > > thanks for the reply, > > On Wed, 12 Sep 2012, Paul E. McKenney wrote: > > > Interesting. I am assuming that the interrupt in the stack below came > > from idle, if not, please let me know what. > > According to the

Re: RCU lockup in the SMP idle thread, help...

2012-09-19 Thread Paul E. McKenney
On Mon, Sep 17, 2012 at 11:10:30AM +0200, Linus Walleij wrote: > On Fri, Sep 14, 2012 at 7:53 PM, Paul E. McKenney > wrote: > > > Could you please try reproducing with CONFIG_RCU_CPU_STALL_INFO=y? > > Yep: looks like this: > > INFO: rcu_preempt detected stalls on CPUs/tasks: > 0: (0

Re: Tracking down suspend/resume ext3/mmc issues on imx233

2012-09-19 Thread Theodore Ts'o
On Thu, Sep 20, 2012 at 01:23:49AM +0200, Pavel Machek wrote: > > I'm not sure I agree. > > If you treat root fs as removable, you'll get "crash". You'll need to > replay the journal, but data is safe. > > If you treat it as non-removable, and someone manages to remove it, > mount, and

RE: [PATCH] ARM: EXYNOS: no duplicate mask/unmask in eint0_15

2012-09-19 Thread Kukjin Kim
Doug Anderson wrote: > > On Thu, Sep 6, 2012 at 8:21 AM, Daniel Kurtz wrote: > > chained_irq_enter/exit() already mask/unmask the chained interrupt. > > There is no need to also explicitly do it in the handler. > > > > Signed-off-by: Daniel Kurtz > > --- > > arch/arm/mach-exynos/common.c |

[PATCH 11/11] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2012-09-19 Thread Anton Vorontsov
If enabled, kernel will able to enter KGDB upon serial line activity on UART ports. Note that even with this patch and CONFIG_KGDB_FIQ is enabled, you still need to pass kgdb_fiq.enable=1 kernel command line option, otherwise UART will behave in a normal way. By default UART0 is used, but this

[PATCH 09/11] ARM: Add KGDB/KDB FIQ debugger generic code

2012-09-19 Thread Anton Vorontsov
The FIQ debugger may be used to debug situations when the kernel stuck in uninterruptable sections, e.g. the kernel infinitely loops or deadlocked in an interrupt or with interrupts disabled. By default KGDB FIQ is disabled in runtime, but can be enabled with kgdb_fiq.enable=1 kernel command line

[PATCH 10/11] ARM: VIC: Add a couple of low-level FIQ management helpers

2012-09-19 Thread Anton Vorontsov
Just a couple of calls to manage VIC FIQ routing. We'll use them for KGDB FIQ support on ARM Versatile machines. Signed-off-by: Anton Vorontsov --- arch/arm/common/vic.c | 28 arch/arm/include/asm/hardware/vic.h | 2 ++ 2 files changed, 30

Re: [PATCH] mm: fix NR_ISOLATED_[ANON|FILE] mismatch

2012-09-19 Thread Minchan Kim
On Wed, Sep 19, 2012 at 02:28:10PM -0400, Johannes Weiner wrote: > On Wed, Sep 19, 2012 at 01:04:56PM -0400, KOSAKI Motohiro wrote: > > On Wed, Sep 19, 2012 at 3:45 AM, Minchan Kim wrote: > > > When I looked at zone stat mismatch problem, I found > > > migrate_to_node doesn't decrease

[PATCH 08/11] ARM: Move some macros from entry-armv to entry-header

2012-09-19 Thread Anton Vorontsov
Just move the macros into header file as we would want to use them for KGDB FIQ entry code. The following macros were moved: - svc_entry - usr_entry - kuser_cmpxchg_check - vector_stub To make kuser_cmpxchg_check actually work across different files, we also have to make

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

[PATCH 06/11] tty/serial/amba-pl011: Quiesce interrupts in poll_get_char

2012-09-19 Thread Anton Vorontsov
We need to quiesce interrupts in the poll_get_char routine, otherwise, if used with KGDB NMI debugger, we'll keep reentering the NMI. Quiescing interrupts is pretty straightforward, except for TXIM interrupt. The interrupt has "ready to transmit" meaning, so it's almost always raised, and the

[PATCH 05/11] tty/serial/amba-pl011: Implement poll_init callback

2012-09-19 Thread Anton Vorontsov
The callback is used to initialize the hardware, nothing else should be done, i.e. we should not request interrupts (but we can and do unmask some of them, as they might be useful for NMI entry). As a side-effect, the patch also fixes a division by zero[1] when booting with kgdboc options

Re: Subject: [PATCH 1/1] drivers/md/raid1.c: fix NULL pointer bug in fix_read_error function

2012-09-19 Thread NeilBrown
On Thu, 13 Sep 2012 14:21:05 +0800 hank wrote: > On 09/13/2012 01:44 PM, NeilBrown wrote: > > > On Thu, 13 Sep 2012 10:28:32 +0800 hank wrote: > > > >> On 09/04/2012 11:07 AM, hank wrote: > >> > >>> From 0ba5879082544dc3aa13807087563b1258124b1e Mon Sep 17 00:00:00 2001 > >>> From: hank > >>>

Re: [patch] mm, numa: reclaim from all nodes within reclaim distance

2012-09-19 Thread Andrew Morton
On Tue, 18 Sep 2012 00:03:57 -0700 (PDT) David Rientjes wrote: > RECLAIM_DISTANCE represents the distance between nodes at which it is > deemed too costly to allocate from; it's preferred to try to reclaim from > a local zone before falling back to allocating on a remote node with such > a

[PATCH 04/11] tty/serial/core: Introduce poll_init callback

2012-09-19 Thread Anton Vorontsov
It was noticed that polling drivers (like KGDB) are not able to use serial ports if the ports were not previously initialized via console. I.e. when booting with console=ttyAMA0 kgdboc=ttyAMA0, everything works fine, but with console=ttyFOO kgdboc=ttyAMA0, the kgdboc doesn't work. This is

  1   2   3   4   5   6   7   8   9   10   >