Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread Alan Cox
AF_UNIX between roots raises some interesting semantic questions when you begin passing file descriptors down them as well. Why is that? A file descriptor carries all that information with it... Things like fchdir(). It's not a machine breaking problem but for containers as opposed to

Re: [lm-sensors] hwmon : raw reading - temperature conversion

2012-08-10 Thread Guenter Roeck
On Fri, Aug 10, 2012 at 07:48:14PM +0530, Bitan Biswas wrote: Hi, I have a question related to hwmon driver and need suggestions. I am working on a temperature sensor driver that is hwmon driver. - The temperature is calculated from raw sensor reading and certain initialization

Re: [RFC PATCH 1/2] unix sockets: add ability for search for peer from passed root

2012-08-10 Thread Stanislav Kinsbursky
10.08.2012 22:10, J. Bruce Fields пишет: On Fri, Aug 10, 2012 at 04:57:30PM +0400, Stanislav Kinsbursky wrote: This helper is used stream sockets yet. All is simple: if non-NULL struct path was passed to unix_find_other(), then vfs_path_lookup() is called instead of kern_path(). I'm having

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread H. Peter Anvin
On 08/10/2012 11:40 AM, Alan Cox wrote: Agreed on open() for sockets.. the lack of open is a Berklix derived pecularity of the interface. It would equally be useful to be able to open /dev/socket/ipv4/1.2.3.4/1135 and the like for scripts and stuff That needs VFS changes however so you can

[PATCH] staging: csr: Fix up version.h includes

2012-08-10 Thread Jesper Juhl
Include version.h where actually needed, remove where unneeded. Signed-off-by: Jesper Juhl j...@chaosbits.net --- drivers/staging/csr/csr_panic.c| 1 - drivers/staging/csr/drv.c | 3 +-- drivers/staging/csr/io.c | 2 +- drivers/staging/csr/monitor.c

pull request: wireless 2012-08-10

2012-08-10 Thread John W. Linville
commit 039aafba1b57ed39acb3abc290c11be37402feb2 Dave, Here is a handful of fixes intended for 3.6. Daniel Drake offers a cfg80211 fix to consume pending events before taking a wireless device down. This prevents a resource leak. Stanislaw Gruszka gives us a fix for a NULL pointer dereference

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread Stanislav Kinsbursky
10.08.2012 22:15, H. Peter Anvin пишет: On 08/10/2012 05:57 AM, Stanislav Kinsbursky wrote: Today, there is a problem in connecting of local SUNRPC thansports. These transports uses UNIX sockets and connection itself is done by rpciod workqueue. But UNIX sockets lookup is done in context of

Re: mellanox mlx4_core and SR-IOV

2012-08-10 Thread Chris Friesen
On 08/03/2012 02:33 AM, Lukas Hejtmanek wrote: I also tried OFED package from Mellanox which seems to have better SR-IOV support (at least mlx4_ib does not complain that SR-IOV is not supported). However, it does not work when SR-IOV enabled: Last I heard they were not officially providing

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Michal Hocko
On Fri 10-08-12 19:30:00, Michal Hocko wrote: On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] For now retry up to COSTLY_ORDER (as page_alloc.c does) and make sure not to do it if __GFP_NORETRY. Who is using __GFP_NORETRY for user backed memory (except for hugetlb which has its own

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Michal Hocko
On Thu 09-08-12 17:01:10, Glauber Costa wrote: From: Suleiman Souhlal ssouh...@freebsd.org mem_cgroup_do_charge() was written before kmem accounting, and expects three cases: being called for 1 page, being called for a stock of 32 pages, or being called for a hugepage. If we call for 2 or 3

Re: i915 regression on 3.6-rc1: lid blanks screen

2012-08-10 Thread Hugh Dickins
On Fri, 10 Aug 2012, Takashi Iwai wrote: At Fri, 10 Aug 2012 14:35:13 +0200, Daniel Vetter wrote: On Fri, Aug 10, 2012 at 1:59 PM, Takashi Iwai ti...@suse.de wrote: At Mon, 6 Aug 2012 11:25:30 -0700 (PDT), Hugh Dickins wrote: On Mon, 6 Aug 2012, Daniel Vetter wrote: On Mon,

[GIT PULL 1/3] arm-soc: bug fixes for v3.6-rc2

2012-08-10 Thread Arnd Bergmann
The following changes since commit 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee: Linux 3.6-rc1 (2012-08-02 16:38:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/fixes-for-linus for you to fetch changes up to

[GIT PULL 2/3] arm-soc: late at91 changes

2012-08-10 Thread Arnd Bergmann
The following changes since commit 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee: Linux 3.6-rc1 (2012-08-02 16:38:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/late-at91-mci for you to fetch changes up to

[GIT PULL 3/3] arm-soc: make of_device_id-data constant

2012-08-10 Thread Arnd Bergmann
The following changes since commit 28a33cbc24e4256c143dce96c7d93bf423229f92: Linux 3.5 (2012-07-21 13:58:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/late-warnings for you to fetch changes up to

[GIT PULL 0/3] arm-soc updates

2012-08-10 Thread Arnd Bergmann
Hi Linus, Here are three pull requests for you to consider for the next -rc. The first one is our regular bug fix series, this time with a lot of patches fixing build regressions. Please pull at least this one. The other two are things that fell through the cracks in the v3.6 merge window

[PATCH] printk: Fix calculation of length used to discard records

2012-08-10 Thread Jeff Mahoney
While tracking down a weird buffer overflow issue in a program that looked to be sane, I started double checking the length returned by syslog(SYSLOG_ACTION_READ_ALL, ...) to make sure it wasn't overflowing the buffer. Sure enough, it was. I saw this in strace: 11339

[ANNOUNCE] 3.0.40-rt60

2012-08-10 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.0.40-rt60 stable release. This release is just an update to the new stable 3.0.40 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread J. Bruce Fields
On Fri, Aug 10, 2012 at 07:26:28PM +0100, Alan Cox wrote: On that whole subject... Do we need a Unix domain socket equivalent to openat()? I don't think so. The name is just a file system indexing trick, it's not really the socket proper. It's little more than ascii string with

Re: [PATCH 02/15] Declaring udp protocols has its own proc entry

2012-08-10 Thread Jan Ceuleers
On 08/10/2012 08:31 PM, Jan Ceuleers wrote: Two points: - I haven't seen patch 01/15; Correction: I have. - these patches should go to netdev rather than lkml But this is still the case; MAINTAINERS would have told you that. -- To unsubscribe from this list: send the line unsubscribe

Re: [Regression] x86-64/efi: Use EFI to deal with platform wall clock prevents my machine from booting

2012-08-10 Thread Yinghai Lu
On Thu, Aug 9, 2012 at 1:51 AM, Matt Fleming matt.flem...@intel.com wrote: On Tue, 2012-08-07 at 11:50 +0100, Jan Beulich wrote: I managed to find a machine to reproduce this on and it looks like the ASUS firmware engineers are upto their old tricks of referencing physical addresses after

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread Alan Cox
On Fri, 10 Aug 2012 15:11:50 -0400 J. Bruce Fields bfie...@fieldses.org wrote: On Fri, Aug 10, 2012 at 07:26:28PM +0100, Alan Cox wrote: On that whole subject... Do we need a Unix domain socket equivalent to openat()? I don't think so. The name is just a file system indexing

Re: [Regression] x86-64/efi: Use EFI to deal with platform wall clock prevents my machine from booting

2012-08-10 Thread Matthew Garrett
On Fri, Aug 10, 2012 at 12:22:12PM -0700, Yinghai Lu wrote: What is solution for this regression? Revert the patch for now, we'll add it back once we've got the UEFI pagetable set up. -- Matthew Garrett | mj...@srcf.ucam.org -- To unsubscribe from this list: send the line unsubscribe

Re: Q: how to control the TTY output queue in real time?

2012-08-10 Thread Alan Cox
I am writing an app that needs to control the serial xmit in real-time. What I need is a notification that the TTY output queue fillup (returned by TIOCOUTQ ioctl) have dropped below the specified value. Not a supported feature basically. I haven't found anything that can help implementing

Q: how to control the TTY output queue in real time?

2012-08-10 Thread Stas Sergeev
Hello. I am writing an app that needs to control the serial xmit in real-time. What I need is a notification that the TTY output queue fillup (returned by TIOCOUTQ ioctl) have dropped below the specified value. I haven't found anything that can help implementing this. If I can't get an async

Re: [Linaro-mm-sig] [PATCH 1/4] dma-buf: remove fallback for !CONFIG_DMA_SHARED_BUFFER

2012-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2012 at 04:57:43PM +0200, Maarten Lankhorst wrote: Documentation says that code requiring dma-buf should add it to select, so inline fallbacks are not going to be used. A link error will make it obvious what went wrong, instead of silently doing nothing at runtime.

Re: [Linaro-mm-sig] [PATCH 3/4] dma-seqno-fence: Hardware dma-buf implementation of fencing (v2)

2012-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2012 at 04:57:58PM +0200, Maarten Lankhorst wrote: This type of fence can be used with hardware synchronization for simple hardware that can block execution until the condition (dma_buf[offset] - value) = 0 has been met. A software fallback still has to be provided in case

[PATCH 2/2] radio-shark2: Only compile led support when CONFIG_LED_CLASS is set

2012-08-10 Thread Hans de Goede
Reported-by: Dadiv Rientjes rient...@google.com Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/media/radio/radio-shark2.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/radio-shark2.c

[PATCH 1/2] radio-shark: Only compile led support when CONFIG_LED_CLASS is set

2012-08-10 Thread Hans de Goede
Reported-by: Dadiv Rientjes rient...@google.com Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/media/radio/radio-shark.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/media/radio/radio-shark.c

Re: Q: how to control the TTY output queue in real time?

2012-08-10 Thread Stas Sergeev
Hi Alan, thanks, clear enough now. :) 10.08.2012 23:33, Alan Cox wrote: if (bytes_left constant) write_wakeup and I suspect if you made that adjustable and turned off the fifo and any other funnies you'd at least make it work for a sufficiently rigged demo. You

Re: [PATCH v3 0/6] omap-am33xx rtc dt support

2012-08-10 Thread Sekhar Nori
On 7/27/2012 5:53 PM, Afzal Mohammed wrote: Hi, This series makes rtc-omap driver DT capable, adds AM33xx RTC DT support along with a few enchancments to the driver. rtc-omap driver is made intelligent enough to handle kicker mechanism. This helps in removing kicker mechanism support

Re: Q: how to control the TTY output queue in real time?

2012-08-10 Thread Alan Cox
If they do quite fine with the fifo, then maybe the new function will do too? Its basically a tcdrain(), just with the controllable watermark I guess. I guess providing you account the fifo, and any hardware flow control it would work. -- To unsubscribe from this list: send the line

Re: [PATCH 1/2] radio-shark: Only compile led support when CONFIG_LED_CLASS is set

2012-08-10 Thread Mauro Carvalho Chehab
Em 10-08-2012 16:58, Hans de Goede escreveu: Reported-by: Dadiv Rientjes rient...@google.com Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/media/radio/radio-shark.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git

Re: [Linaro-mm-sig] [PATCH 2/4] dma-fence: dma-buf synchronization (v8 )

2012-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2012 at 04:57:52PM +0200, Maarten Lankhorst wrote: A dma-fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next

[GIT PULL] Power management fixes for 3.6-rc2

2012-08-10 Thread Rafael J. Wysocki
Hi Linus, Please pull from the git repository at git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-for-3.6-rc2 to receive power management fixes for v3.6-rc2 with top-most commit 07368d32f1a67e797def08cf2ee3ea1647b204b6 tpm_tis / PM: Fix unused function warning for

Re: [PATCH v6 3/3] KVM: perf kvm events analysis tool

2012-08-10 Thread David Ahern
Thanks for resubmitting this; it was on my to-do list as well. On 8/9/12 9:19 PM, Dong Hao wrote: +static bool kvm_events_exist(const char *event) +{ + char evt_path[MAXPATHLEN]; + int fd; + + snprintf(evt_path, MAXPATHLEN, %s/kvm/%s/id, tracing_events_path, +

[RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-10 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI device and release it after cleanup is complete to solve

linux-user-chroot 2012.2

2012-08-10 Thread Colin Walters
Hi, This is the release of linux-user-chroot 2012.2. The major change now is that it makes use of Andy's new PR_SET_NO_NEW_PRIVS. This doesn't close any security hole I'm aware of - our previous use of the MS_NOSUID bind mount over / should work - but, belt and suspenders as they say. The

Re: [PATCH] [PATCH V4]Extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices

2012-08-10 Thread Jonathan Cameron
On 08/08/2012 02:04 AM, anish kumar wrote: From: anish kumar anish198519851...@gmail.com External connector devices that decides connection information based on ADC values may use adc-jack device driver. The user simply needs to provide a table of adc range and connection states. Then, extcon

Re: [PATCH] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-08-10 Thread David Miller
From: Jan Engelhardt jeng...@inai.de Date: Fri, 10 Aug 2012 14:51:49 +0200 (CEST) On Saturday 2012-07-21 02:46, David Miller wrote: Arnd Bergmann a...@arndb.de wrote: I don't generally like to put stuff into asm-generic when it's unlikely to be overridden by architectures. It would really

Re: xtensa port maintenance

2012-08-10 Thread Arnd Bergmann
On Monday 06 August 2012, Max Filippov wrote: I have a couple of questions regarding the path of xtensa-specific patches upstream: - which git tree should they be targeted for? Should I set up a tree for pull requests, or will patches be picked up into some existing tree?

[PATCH RESEND 1/2] msm: io: Remove 7x30 iomap region from 7x00

2012-08-10 Thread Rohit Vaswani
This is redundant code. Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org --- arch/arm/mach-msm/io.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index a1e7b11..2409c0b 100644 --- a/arch/arm/mach-msm/io.c +++

[PATCH RESEND 2/2] msm: io: Change the default static iomappings to be shared

2012-08-10 Thread Rohit Vaswani
With 3.4 kernel the static iomappings can be shared with the ioremap mappings. If ioremap is called with an address for which a static mapping already exists, then that mapping should be used instead of creating a new one. However, the MT_DEVICE_NONSHARED flag prevents this. Hence, get rid of this

[PATCH 1/3] HWPOISON: fix action_result() to print out dirty/clean

2012-08-10 Thread Naoya Horiguchi
action_result() fails to print out dirty even if an error occurred on a dirty pagecache, because when we check PageDirty in action_result() it was cleared after page isolation even if it's dirty before error handling. This can break some applications that monitor this message, so should be fixed.

[PATCH 2/3] HWPOISON: undo memory error handling for dirty pagecache

2012-08-10 Thread Naoya Horiguchi
Current memory error handling on dirty pagecache has a bug that user processes who use corrupted pages via read() or write() can't be aware of the memory error and result in discarding dirty data silently. The following patch is to improve handling/reporting memory errors on this case, but as a

[PATCH 0/3 v1] HWPOISON: improve dirty pagecache error handling

2012-08-10 Thread Naoya Horiguchi
Hi, This patchset is to improve handling and reporting of memory errors on dirty pagecache. Patch 1 is to fix a messaging bug, and patch 2 is to temporarily undo the code which can happen the data lost. I think these two are obvious fixes so I want to push them to merge promptly. Patch 3 is

[PATCH 3/3] HWPOISON: improve handling/reporting of memory error on dirty pagecache

2012-08-10 Thread Naoya Horiguchi
Current error reporting of memory errors on dirty pagecache has silent data lost problem because AS_EIO in struct address_space is cleared once checked. A simple solution is to make AS_EIO sticky (as Wu Fengguang proposed in https://lkml.org/lkml/2009/6/11/294), but this patch does more to make

Re: [PATCH 0/4] vfs: fix file creation mode bugs

2012-08-10 Thread Richard W.M. Jones
On Tue, Aug 07, 2012 at 02:45:45PM +0200, Miklos Szeredi wrote: Al, Please consider the following patches. The first one fixes an old bug (stable CC-d). The others are fixes for the atomic-open series. Thanks, Miklos Miklos Szeredi (4): vfs: canonicalize create mode in

Re: Upgraded from 3.4 to 3.5.1 kernel: machine does not boot

2012-08-10 Thread Justin Piszcz
On Fri, Aug 10, 2012 at 1:53 PM, Jesper Juhl j...@chaosbits.net wrote: On Fri, 10 Aug 2012, Justin Piszcz wrote: Hello, Motherboard: Supermicro X8DTH-6F Distro: Debian Testing x86_64 From 3.4 - 3.5.1 on x86_64 make oldconfig and a few minor changes and the machine attempts to boot but

Failure while make modules_install if kmod was compiled with --with-rootprefix set

2012-08-10 Thread Arokux B.
Dear Mr. Marek, dear all, I have detected a hidden failure while building the kernel. If --with-rootprefix is set for kmod, then depmod will look for modules installed at the location $ROOTPREFIX/lib/modules/version. The kernel build system does not know anything about $ROOTPREFIX, and so the

[PATCH 1/2] ARM: local timers: Unmask interrupt before new TVAL is set

2012-08-10 Thread Rohit Vaswani
Level triggered interrupt is deasserted when a new TVAL is written only when the interrupt is unmasked. Make sure that the interrupt is unmasked in CTL register before TVAL is written. If this order is not followed, there are chances that on some hardware you would not receive any timer

[PATCH 2/2] ARM: local timers: add timer support using IO mapped register

2012-08-10 Thread Rohit Vaswani
The current arch_timer only support accessing through CP15 interface. Add support for ARM processors that only support IO mapped register interface Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org --- .../devicetree/bindings/arm/arch_timer.txt |7 + arch/arm/kernel/arch_timer.c

Re: [PATCH 3/3] HWPOISON: improve handling/reporting of memory error on dirty pagecache

2012-08-10 Thread Naoya Horiguchi
On Fri, Aug 10, 2012 at 05:41:53PM -0400, Naoya Horiguchi wrote: ... +/* * Dirty cache page page * Issues: when the error hit a hole page the error is not properly * propagated. */ static int me_pagecache_dirty(struct page *p, unsigned long pfn) { - /* - * The original

Re: [PATCH 2/2] ARM: local timers: add timer support using IO mapped register

2012-08-10 Thread Rob Herring
On 08/10/2012 04:58 PM, Rohit Vaswani wrote: The current arch_timer only support accessing through CP15 interface. Add support for ARM processors that only support IO mapped register interface Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org ---

Re: [RFC PATCH 3/5] drm/i915: register LVDS connector even if we can't get a panel mode

2012-08-10 Thread Seth Forshee
On Mon, Aug 06, 2012 at 07:44:16AM +1000, Dave Airlie wrote: The correct approach is clearly to just have the drm core change the i2c mux before requesting edid, but that's made difficult because of the absence of ordering guarantees in initialisation. I don't like quirking this, since

[PATCH v2 00/16] perf: various symbol resolution fixes, including .opd section use.

2012-08-10 Thread Cody P Schafer
1-4,6,7 are small cleanups. 5 fixes a potential segfault. 8 fixes a use after free for dso-long_name 9 avoids a segfault in elfutils when a truncated elf is loaded. 10 properly tracks that a dso had symbols loaded from a vmlinux image 11-16 fix handling of the '.opd' section in the presence

[PATCH 01/16] perf symbol: correct comment wrt kallsyms loading

2012-08-10 Thread Cody P Schafer
In kallsyms_parse() when calling process_symbol() (a callback argument to kallsyms_parse()), we pass start as both start end (ie: start=start, end=start). In map__process_kallsym_symbol(), the length is calculated as 'end - start + 1', making the length 1, not 0. Essentially, start end define

[PATCH 12/16] perf symbol: set symtab_type in dso__load_sym

2012-08-10 Thread Cody P Schafer
In certain cases, dso__load requires dso-symbol_type to be set prior to calling it. With the introduction of symsrc*, the symtab_type is now stored in a symsrc which is then passed to dso__load_sym(). Change dso__load_sym() to use the symtab_type from them symsrc (setting dso-symtab_type as

[PATCH 13/16] perf symbol: switch dso__synthesize_plt_symbols() to use symsrc

2012-08-10 Thread Cody P Schafer
Previously dso__synthesize_plt_symbols() was reopening the elf file to obtain dynsyms from it. Rather than reopen the file, use the already opened reference within the symsrc to access it. Setup for the later patch perf symbol: use both runtime and debug images Signed-off-by: Cody P Schafer

[PATCH 15/16] perf symbol: convert dso__load_syms to take 2 symsrc's

2012-08-10 Thread Cody P Schafer
To properly handle platforms with an opd section, both a runtime image (which contains the opd section but possibly lacks symbols) and a symbol image (which probably lacks an opd section but has symbols). The next patch (perf symbol: use both runtime and debug images) adjusts the callsite in

[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-10 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be

[PATCH 10/16] perf symbol: track symtab_type of vmlinux

2012-08-10 Thread Cody P Schafer
Previously, symtab_type would have been left at 0, or KALLSYMS, which is not quite accurate. Introduce DSO_SYMTAB_TYPE__VMLINUX[_GUEST]. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- tools/perf/util/symbol.c | 9 + tools/perf/util/symbol.h | 2 ++ 2 files changed, 11

[PATCH 11/16] perf symbol: introduce symsrc structure.

2012-08-10 Thread Cody P Schafer
Factors opening of certain sections tracking certain elf info into an external structure. The goal here is to keep multiple elfs (and their looked up sections/indexes) around during the symbol generation process (in dso__load()). We need this to properly resolve symbols on PPC due to the use of

[PATCH 06/16] perf symbol: remove unneeded call to dso__set_long_name()

2012-08-10 Thread Cody P Schafer
dso__set_long_name() is already called by dso__load_vmlinux(), avoid calling it a second time unnecessarily. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- tools/perf/util/symbol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/util/symbol.c

[PATCH 16/16] perf symbol: use both runtime and debug images

2012-08-10 Thread Cody P Schafer
We keep both a 'runtime' elf image as well as a 'debug' elf image around and generate symbols by looking at both of these. This eliminates the need for the want_symtab/goto restart mechanism combined with iterating over and reopening the elf images a second time. Also give

[PATCH 08/16] perf symbol: only set vmlinux longname mark loaded if really loaded

2012-08-10 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso-long_name. Change dso__load_vmlinux() so that finding 0

[PATCH 05/16] perf symbol: don't try to synthesize plt without dynstr.

2012-08-10 Thread Cody P Schafer
If .dynsym exists but .dynstr is empty (NO_BITS or size==0), a segfault occurs. Avoid this by checking that .dynstr is not empty. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- tools/perf/util/symbol-elf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 03/16] perf symbol: only un-prelink non-zero symbols

2012-08-10 Thread Cody P Schafer
Prelink only adjusts the addresses of non-zero symbols. Do the same when we reverse the adjustments. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- tools/perf/util/symbol-elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/symbol-elf.c

[PATCH 02/16] perf symbol: remove unused 'end' arg in kallsyms parse cb

2012-08-10 Thread Cody P Schafer
kallsyms__parse() takes a callback that is called on every discovered symbol. As /proc/kallsyms does not supply symbol sizes, the callback was simply called with end=start, faking the symbol size to 1. All of the callbacks (there are 2) used in calls to kallsyms__parse() are _only_ used as

[PATCH 14/16] perf symbol: factor want_symtab out of dso__load_sym()

2012-08-10 Thread Cody P Schafer
Only one callsite of dso__load_sym() uses the want_symtab functionality, so place the logic at the callsite instead of within dso__load_sym(). This sets us up for removal of want_symtab completely once we keep multiple elf handles (within symsrc's) around. Setup for the later patch perf symbol:

[PATCH 07/16] perf symbol: simplify out_fixup in kernel syms loading

2012-08-10 Thread Cody P Schafer
The only site that jumps to out_fixup has (kallsyms_filename == NULL). And all paths that reach 'if (err 0)' without 'goto out_fixup' have kallsyms_filename != NULL. So skip over both the check dso__set_long_name(), and remove the check. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com

[PATCH 04/16] perf utils: remove unused function map__objdump_2ip

2012-08-10 Thread Cody P Schafer
map__objdump_2ip was introduced in: ee11b90b12 perf top: Fix annotate for userspace And it's last user removed in: 36532461a0 perf top: Ditch private annotation code, share perf annotate's Remove it. Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- tools/perf/util/map.c | 8

Re: mellanox mlx4_core and SR-IOV

2012-08-10 Thread Lukas Hejtmanek
On Fri, Aug 10, 2012 at 12:51:53PM -0600, Chris Friesen wrote: On 08/03/2012 02:33 AM, Lukas Hejtmanek wrote: I also tried OFED package from Mellanox which seems to have better SR-IOV support (at least mlx4_ib does not complain that SR-IOV is not supported). However, it does not work when

[PATCH v8 0/6] kvm: level irqfd support

2012-08-10 Thread Alex Williamson
v8: Trying a new approach. Nobody seems to like the internal IRQ source ID object and the interactions it implies between irqfd and eoifd, so let's get rid of it. Instead, simply expose IRQ source IDs to userspace. This lets the user be in charge of freeing them or hanging onto a source ID for

[PATCH v8 1/6] kvm: Allow filtering of acked irqs

2012-08-10 Thread Alex Williamson
Registering an kvm_irq_ack_notifier with kian.irq_source_id 0 retains existing behavior, filling in the actual irq_source_id results in the callback only being called when the specified irq_source_id is asserting the given gsi. The i8254 PIT remains unfiltered because it de-asserts it's irq

[PATCH v8 2/6] kvm: Expose IRQ source IDs to userspace

2012-08-10 Thread Alex Williamson
Introduce KVM_IRQ_SOURCE_ID and KVM_CAP_NR_IRQ_SOURCE_ID to allow user allocation of IRQ source IDs and querying both the capability and the total count of IRQ source IDs. These will later be used by interfaces for setting up level IRQs. Signed-off-by: Alex Williamson alex.william...@redhat.com

[PATCH v8 3/6] kvm: Add IRQ source ID option to KVM_IRQFD

2012-08-10 Thread Alex Williamson
This allows specifying an IRQ source ID to be used when injecting an interrupt. When not specified KVM_USERSPACE_IRQ_SOURCE_ID is used. Signed-off-by: Alex Williamson alex.william...@redhat.com --- Documentation/virtual/kvm/api.txt |5 + arch/x86/kvm/x86.c|1 +

[PATCH v8 4/6] kvm: Add assert-only option to KVM_IRQFD

2012-08-10 Thread Alex Williamson
This allows specifying that an irqfd is used only to assert the specified gsi, whereas standard behavior is to follow the assertion with a deassertion. This will later allow a level interrupt to be asserted via eventfd and later de-asserted by other means. Signed-off-by: Alex Williamson

[PATCH v8 5/6] kvm: KVM_IRQ_ACKFD

2012-08-10 Thread Alex Williamson
Enable a mechanism for IRQ ACKs to be exposed through an eventfd. The user can specify the GSI and optionally an IRQ source ID and have the provided eventfd trigger whenever the irqchip resamples it's inputs, for instance on EOI. Signed-off-by: Alex Williamson alex.william...@redhat.com ---

[PATCH v8 6/6] kvm: Add de-assert option to KVM_IRQ_ACKFD

2012-08-10 Thread Alex Williamson
It's likely (vfio) that one of the reasons to watch for an IRQ ACK is to de-assert and re-enable an interrupt. As the IRQ ACK notfier is already watching a GSI for an IRQ source ID we can easily couple these together. Signed-off-by: Alex Williamson alex.william...@redhat.com ---

Re: xtensa port maintenance

2012-08-10 Thread Chris Zankel
Hi Arnd, Given the recent renewed push for Xtensa, I'll step in to feed the changes upstream. We might change that in future, though. Max has volunteered to help bring the Xtensa port up-to-date. Most of the recent development was done on outdated trees and never got submitted in true

dma mapping error check analysis

2012-08-10 Thread Shuah Khan
I analyzed current calls to dma_map_single() and dma_map_page() in the kernel to see if dma mapping errors are checked after mapping routines return. Reference linux-next August 6 2012. This analysis stemmed from the discussion on my patch that disables swiotlb overflow as a first step towards

RE: Upgraded from 3.4 to 3.5.1 kernel: machine does not boot

2012-08-10 Thread Justin Piszcz
-Original Message- From: Justin Piszcz [mailto:jpis...@lucidpixels.com] Sent: Friday, August 10, 2012 5:46 PM To: Jesper Juhl Cc: linux-kernel@vger.kernel.org; a...@solarrain.com Subject: Re: Upgraded from 3.4 to 3.5.1 kernel: machine does not boot On Fri, Aug 10, 2012 at 1:53 PM,

Re: [PATCH 1/3] HWPOISON: fix action_result() to print out dirty/clean

2012-08-10 Thread Andi Kleen
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: action_result() fails to print out dirty even if an error occurred on a dirty pagecache, because when we check PageDirty in action_result() it was cleared after page isolation even if it's dirty before error handling. This can break some

Re: null pointer dereference while loading i915

2012-08-10 Thread Mihai Moldovan
* On 10.08.2012 07:44 PM, Mihai Moldovan wrote: Hm, OK. Well, I'm done now. bisect log: git bisect start # good: [805a6af8dba5dfdd35ec35dc52ec0122400b2610] Linux 3.2 git bisect good 805a6af8dba5dfdd35ec35dc52ec0122400b2610 # bad: [28a33cbc24e4256c143dce96c7d93bf423229f92] Linux 3.5 git

Re: [PATCH 2/3] HWPOISON: undo memory error handling for dirty pagecache

2012-08-10 Thread Andi Kleen
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Current memory error handling on dirty pagecache has a bug that user processes who use corrupted pages via read() or write() can't be aware of the memory error and result in discarding dirty data silently. The following patch is to improve

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread H. Peter Anvin
On 08/10/2012 12:28 PM, Alan Cox wrote: Explicitly for Linux yes - this is not generally true of the AF_UNIX socket domain and even the permissions aspect isn't guaranteed to be supported on some BSD environments ! Yes, but let's worry about what the Linux behavior should be. The name is

[PATCH] rtc: add MAX8907 RTC driver

2012-08-10 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com The MAX8907 is an I2C-based power-management IC containing voltage regulators, a reset controller, a real-time clock, and a touch-screen controller. The driver is based on an original by or fixed by: * Tom Cherry tche...@nvidia.com * Prashant Gaikwad

Re: [PATCH 3/3] HWPOISON: improve handling/reporting of memory error on dirty pagecache

2012-08-10 Thread Andi Kleen
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Current error reporting of memory errors on dirty pagecache has silent data lost problem because AS_EIO in struct address_space is cleared once checked. Seems very complicated. I think I would prefer something simpler if possible, especially

Re: [PATCH 1/2] pinctrl/nomadik: add STn8815 ASIC support

2012-08-10 Thread Stephen Warren
On 08/09/2012 04:43 PM, Linus Walleij wrote: This adds support for the STN8815 ASIC for the Nomadik pin controller. Acked-by: Stephen Warren swar...@wwwdotorg.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 2/2] ARM: nomadik: configure Nomadik for pin control

2012-08-10 Thread Stephen Warren
On 08/09/2012 04:43 PM, Linus Walleij wrote: This converts the Nomadik to using pin control using the driver for the STN8815 ASIC. diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c +static inline void +cpu8815_add_pinctrl(struct device *parent, const char

Re: pull request: wireless 2012-08-10

2012-08-10 Thread David Miller
From: John W. Linville linvi...@tuxdriver.com Date: Fri, 10 Aug 2012 14:33:51 -0400 Here is a handful of fixes intended for 3.6. Daniel Drake offers a cfg80211 fix to consume pending events before taking a wireless device down. This prevents a resource leak. Stanislaw Gruszka gives us a

Re: [PATCH 2/2] ARM: local timers: add timer support using IO mapped register

2012-08-10 Thread Rohit Vaswani
Thanks for your feedback Rob. On 8/10/2012 3:10 PM, Rob Herring wrote: On 08/10/2012 04:58 PM, Rohit Vaswani wrote: The current arch_timer only support accessing through CP15 interface. Add support for ARM processors that only support IO mapped register interface Signed-off-by: Rohit Vaswani

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-10 Thread H. Peter Anvin
On 08/09/2012 03:34 PM, Betty Dall wrote: I thought this should be a break instead of a continue since the code does a break if the class is 0x. If the function does not have a valid VENDOR_ID, then the remaining function numbers do not have to be scanned because functions are

[tip:x86/urgent] x86, build: Globally set -fno-pic

2012-08-10 Thread tip-bot for Andrew Boie
Commit-ID: 484d90eec884d814b005c9736bcf3fd018acba65 Gitweb: http://git.kernel.org/tip/484d90eec884d814b005c9736bcf3fd018acba65 Author: Andrew Boie andrew.p.b...@intel.com AuthorDate: Fri, 10 Aug 2012 11:49:06 -0700 Committer: H. Peter Anvin h...@linux.intel.com CommitDate: Fri, 10 Aug

Re: [PATCH] xconfig: Display dependency values in debug_info

2012-08-10 Thread Randy Dunlap
On 08/09/2012 11:54 AM, Salar Ali Mumtaz wrote: On 12-08-07 12:55 PM, Randy Dunlap wrote: In Kconfig language, is the same as 'n' ? If so, I'm OK with your proposal above. So a colleague of mine tested this and came up with a conclusion that expressions in Kconfig can only deal with

Linux 3.2.27

2012-08-10 Thread Ben Hutchings
I'm announcing the release of the 3.2.27 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 2/3] HWPOISON: undo memory error handling for dirty pagecache

2012-08-10 Thread Naoya Horiguchi
Hi Andi, On Fri, Aug 10, 2012 at 04:09:48PM -0700, Andi Kleen wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Current memory error handling on dirty pagecache has a bug that user processes who use corrupted pages via read() or write() can't be aware of the memory error and

Re: [PATCH 3/3] HWPOISON: improve handling/reporting of memory error on dirty pagecache

2012-08-10 Thread Naoya Horiguchi
Hello, On Fri, Aug 10, 2012 at 04:13:03PM -0700, Andi Kleen wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Current error reporting of memory errors on dirty pagecache has silent data lost problem because AS_EIO in struct address_space is cleared once checked. Seems very

[PATCH v2 14/22] ARM: LPAE: accomodate 32-bit addresses for page table base

2012-08-10 Thread Cyril Chemparathy
This patch redefines the early boot time use of the R4 register to steal a few low order bits (ARCH_PGD_SHIFT bits) on LPAE systems. This allows for up to 38-bit physical addresses. Signed-off-by: Cyril Chemparathy cy...@ti.com Signed-off-by: Vitaly Andrianov vita...@ti.com ---

[PATCH v2 17/22] ARM: mm: clean up membank size limit checks

2012-08-10 Thread Cyril Chemparathy
This patch cleans up the highmem sanity check code by simplifying the range checks with a pre-calculated size_limit. This patch should otherwise have no functional impact on behavior. This patch also removes a redundant (bank-start vmalloc_limit) check, since this is already covered by the

<    2   3   4   5   6   7   8   >