Re: [patch v4 07/18] sched: set initial load avg of new forked task

2013-02-19 Thread Paul Turner
On Fri, Feb 15, 2013 at 2:07 AM, Alex Shi alex@intel.com wrote: diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 1dff78a..9d1c193 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1557,8 +1557,8 @@ static void __sched_fork(struct task_struct *p) *

Re: [PATCH] dma: timb_dma: Fix compiler warning

2013-02-19 Thread Lars-Peter Clausen
On 02/18/2013 08:59 PM, maxin.j...@gmail.com wrote: From: Maxin B. John maxin.j...@enea.com Fix this compiler warning: warning: 'td_remove' defined but not used [-Wunused-function] Signed-off-by: Maxin B. John maxin.j...@enea.com --- drivers/dma/timb_dma.c |2 +- 1 files changed, 1

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 08:11:49AM -0300, Mauro Carvalho Chehab wrote: I remember I saw some discussions about it in the past at bluesmoke ML, saying that -ENODEV is the expected behavior when this is not supported. Changing from -ENODEV to N/A will break anything that would be

Re: [RFC][PATCH] vfs: always protect diretory file-fpos with inode mutex

2013-02-19 Thread Li Zefan
On 2013/2/19 17:19, Jan Kara wrote: On Tue 19-02-13 09:22:40, Li Zefan wrote: There's a long long-standing bug...As long as I don't know when it dates from. I've written and attached a simple program to reproduce this bug, and it can immediately trigger the bug in my box. It uses two

Re: [RFC][PATCH] vfs: always protect diretory file-fpos with inode mutex

2013-02-19 Thread Li Zefan
On 2013/2/19 17:19, Jan Kara wrote: On Tue 19-02-13 09:22:40, Li Zefan wrote: There's a long long-standing bug...As long as I don't know when it dates from. I've written and attached a simple program to reproduce this bug, and it can immediately trigger the bug in my box. It uses two

Re[6]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Alexander Shiyan
... struct regmap *syscon_regmap_lookup_by_compatible(const char *s) { struct device_node *syscon_np; struct regmap *regmap; + struct syscon *syscon; + struct device *dev; syscon_np = of_find_compatible_node(NULL, NULL, s); - if

[PATCH] fat: instead of constant number, use the i_blkbits of struct inode to calculate the number of blocks

2013-02-19 Thread Hyeoncheol Lee
To calculate the number of blocks from the number of clusters, use the i_blkbits of struct inode instead of 9. Signed-off-by: Hyeoncheol Lee hyc@gmail.com --- fs/fat/misc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fat/misc.c b/fs/fat/misc.c index

Re: [PATCH] fat: instead of constant number, use the i_blkbits of struct inode to calculate the number of blocks

2013-02-19 Thread OGAWA Hirofumi
Hyeoncheol Lee hyc@gmail.com writes: To calculate the number of blocks from the number of clusters, use the i_blkbits of struct inode instead of 9. Signed-off-by: Hyeoncheol Lee hyc@gmail.com --- fs/fat/misc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

THP bug and crash on sparc64 3.8

2013-02-19 Thread Meelis Roos
I am receiving this with 3.8.0 on Sun E420R (4G RAM, 4 CPUs). System hangs after logging this to syslog. It was busy running ap at the moment of crash. CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set BUG: sleeping function

Re: [PATCH] mm: fadvise: Drain all pagevecs if POSIX_FADV_DONTNEED fails to discard all pages

2013-02-19 Thread Mel Gorman
On Thu, Feb 14, 2013 at 12:39:26PM -0800, Andrew Morton wrote: On Thu, 14 Feb 2013 12:03:49 + Mel Gorman mgor...@suse.de wrote: Rob van der Heij reported the following (paraphrased) on private mail. The scenario is that I want to avoid backups to fill up the page cache and

Re: [PATCH] param, charp: Cache val length

2013-02-19 Thread Borislav Petkov
On Mon, Feb 18, 2013 at 09:54:22PM +1030, Rusty Russell wrote: I'm delighted with your enthusiasm for making trivial changes, Who says I'm enthusiastic about it? but I have trouble sharing in it. I just assumed that noodling for a second time over a string of possible length of 1024 chars (I

Re: [PATCH EDAC 07/13] edac: add support for raw error reports

2013-02-19 Thread Mauro Carvalho Chehab
Em Mon, 18 Feb 2013 12:24:29 -0300 Mauro Carvalho Chehab mche...@redhat.com escreveu: Em Mon, 18 Feb 2013 14:52:51 +0100 Borislav Petkov b...@alien8.de escreveu: On Sun, Feb 17, 2013 at 07:44:04AM -0300, Mauro Carvalho Chehab wrote: We could do it for the location. The space for label,

[PATCH 1/2] staging/sep: Fix smatch false positive about potential NULL dereference in sep_main.c

2013-02-19 Thread Peter Huewe
Smatch complains about a potential NULL pointer dereference: sep_main.c:2312 sep_construct_dma_tables_from_lli() error: potential NULL dereference 'info_out_entry_ptr'. info_out_entry_ptr is initialized with NULL and if info_in_entry_ptr is not NULL it gets derefenced. However info_out_entry_ptr

[PATCH 2/2] staging/sep: Check pointers before dereferencing (fix smatch warning)

2013-02-19 Thread Peter Huewe
smatch complains about two dereferenced before check issues: sep_main.c:2898 sep_free_dma_tables_and_dcb() warn: variable dereferenced before check 'dma_ctx' (see line 2885) sep_main.c:2898 sep_free_dma_tables_and_dcb() warn: variable dereferenced before check '*dma_ctx' (see line 2885) - Move

Re: [RFT][PATCH 1/2] regulator: ab8500: Fix build error

2013-02-19 Thread Mark Brown
On Mon, Feb 18, 2013 at 10:24:21AM +, Lee Jones wrote: The patches which caused the issues addressed by this patch-set have since been rewritten. I have subsequently requested that Mark deletes the AB8500 for-next branch. We're going to start again after this merge window. So, as

Re: THP bug and crash on sparc64 3.8

2013-02-19 Thread Meelis Roos
(Resent to correct cparclinux address) I am receiving this with 3.8.0 on Sun E420R (4G RAM, 4 CPUs). System hangs after logging this to syslog. It was busy running ap at the moment of crash. CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y #

Re: [patch v5 0/15] power aware scheduling

2013-02-19 Thread Paul Turner
FYI I'm currently out of the country in New Zealand and won't be able to take a proper look at this until the beginning of March. On Mon, Feb 18, 2013 at 6:07 PM, Alex Shi alex@intel.com wrote: Since the simplification of fork/exec/wake balancing has much arguments, I removed that part in

Re: [PATCH, RFC 1/8] ARM: localtimer: return percpu clkevt on register

2013-02-19 Thread Felipe Balbi
Hi, On Mon, Feb 18, 2013 at 05:06:39PM +0530, Afzal Mohammed wrote: @@ -315,6 +315,7 @@ static struct local_timer_ops twd_lt_ops __cpuinitdata = { static int __init twd_local_timer_common_register(struct device_node *np) { int err; + struct clock_event_device *evt;

Re: [PATCH, RFC 2/8] ARM: twd: register clock event for 1 core SMP

2013-02-19 Thread Felipe Balbi
On Tue, Feb 19, 2013 at 03:44:14PM +0530, Santosh Shilimkar wrote: On Monday 18 February 2013 05:07 PM, Afzal Mohammed wrote: Register percpu local timer for scheduler tick in the case of one core SMP configuration. In other cases - secondary cpu's as well as boot cpu's having more than one

Re: Linux 3.8

2013-02-19 Thread Steven Rostedt
On Tue, Feb 19, 2013 at 01:15:15PM +1100, Stephen Rothwell wrote: So, presumably the merge window is open and Linus will start pulling trees shortly. So, here I go again: Please do *not* rebase your tree before asking Linus to pull it. Grumble, I did a small rebase after the window opened

[GIT PULL] AMD64_EDAC stuff for 3.9

2013-02-19 Thread Borislav Petkov
Hi Linus, please pull the following updates for (mostly) AMD's side of EDAC. It is basically a new family enablement stuff - the rest is trivial cleanups. Thanks. The following changes since commit 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619: Linux 3.8-rc4 (2013-01-17 19:25:45 -0800) are

Re: [PATCH] ptrace: add ability to retrieve signals without removing them from a queue

2013-02-19 Thread Michael Kerrisk (man-pages)
On Wed, Feb 13, 2013 at 4:16 PM, Andrey Vagin ava...@openvz.org wrote: This patch adds a new ptrace request PTRACE_PEEKSIGINFO. This request is used to retrieve information about a signal with the specified sequence number. A siginfo_t structure is copied from the child to location data in

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 12:43:46 +0100 Borislav Petkov b...@alien8.de escreveu: On Tue, Feb 19, 2013 at 08:11:49AM -0300, Mauro Carvalho Chehab wrote: I remember I saw some discussions about it in the past at bluesmoke ML, saying that -ENODEV is the expected behavior when this is not

Re: [PATCH] mfd: wm8994: add missing variable initialization

2013-02-19 Thread Mark Brown
On Tue, Feb 19, 2013 at 09:56:26AM +0900, Jingoo Han wrote: - int ret, i, patch_regs; + int ret, i, patch_regs = 0; As with all such changes you really need to explain why it's safe to just blindly initialise to this particular value and why this isn't just masking a real issue in the

Re: Questin about swap_slot free and invalidate page

2013-02-19 Thread Ric Mason
On 02/05/2013 05:28 AM, Dan Magenheimer wrote: From: Minchan Kim [mailto:minc...@kernel.org] Sent: Sunday, February 03, 2013 7:50 PM To: Hugh Dickins Cc: Nitin Gupta; Dan Magenheimer; Seth Jennings; Konrad Rzeszutek Wilk; linux...@kvack.org; linux- ker...@vger.kernel.org; Andrew Morton Subject:

Re: [RFC][PATCH] vfs: always protect diretory file-fpos with inode mutex

2013-02-19 Thread Zheng Liu
On Tue, Feb 19, 2013 at 09:22:40AM +0800, Li Zefan wrote: There's a long long-standing bug...As long as I don't know when it dates from. I've written and attached a simple program to reproduce this bug, and it can immediately trigger the bug in my box. It uses two threads, one keeps calling

Re: [PATCH, RFC 2/8] ARM: twd: register clock event for 1 core SMP

2013-02-19 Thread Santosh Shilimkar
On Tuesday 19 February 2013 05:44 PM, Felipe Balbi wrote: On Tue, Feb 19, 2013 at 03:44:14PM +0530, Santosh Shilimkar wrote: On Monday 18 February 2013 05:07 PM, Afzal Mohammed wrote: Register percpu local timer for scheduler tick in the case of one core SMP configuration. In other cases -

Re: [PATCH 1/2] staging/sep: Fix smatch false positive about potential NULL dereference in sep_main.c

2013-02-19 Thread Dan Carpenter
On Tue, Feb 19, 2013 at 01:07:27PM +0100, Peter Huewe wrote: Smatch complains about a potential NULL pointer dereference: sep_main.c:2312 sep_construct_dma_tables_from_lli() error: potential NULL dereference 'info_out_entry_ptr'. info_out_entry_ptr is initialized with NULL and if

[GIT PULL] ACPI and power management updates for v3.9-rc1

2013-02-19 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+acpi-3.9-rc1 to receive ACPI and power management updates for v3.9 with top-most commit 10baf04e95fbf7eb6089410220a547211dd2ffa7 Merge branch 'release' of

Re: [PATCH] vt: add init_hide parameter to suppress boot output

2013-02-19 Thread Jiri Slaby
On 02/19/2013 10:38 AM, Kirill A. Shutemov wrote: From: Andy Ross andy.r...@windriver.com When vt.init_hide=1 is set, suppress output on newly created consoles until an affirmative switched to that console. This prevents boot output from displaying (and clobbering splash screens, etc...)

Re: [PATCH v2 0/5] Generic PHY Framework

2013-02-19 Thread Arnd Bergmann
On Tuesday 19 February 2013, kishon wrote: On Tuesday 19 February 2013 04:14 PM, Arnd Bergmann wrote: On Tuesday 19 February 2013, Kishon Vijay Abraham I wrote: Added a generic PHY framework that provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY

Re: [PATCH v3] mmc: dw_mmc: Add MSHC compatible for Exynos4412

2013-02-19 Thread Dongjin Kim
Hello Seungwon, Thank you for reviewing and I understand what you mean. I agree that Exynos5250 and Exynos4412 are not same, no idea how much they are different because no Exynos5250 spec on my hand. But at least I assumed that the capabilities below are supported by Exynos4412 in terms of its

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 09:16:10AM -0300, Mauro Carvalho Chehab wrote: I'm not sure if is there a way to pass fs permissions to something similar to device_create_file(). struct device_attribute.attr.mode? I.e., second arg. On both cases, an error will happen at open: - if file doesn't

Re: [PATCH 4/4] regulator: palmas: Change the DT node property names to follow the convention

2013-02-19 Thread Mark Brown
On Mon, Feb 18, 2013 at 10:44:20AM +0530, J Keerthy wrote: DT node properties should not have _. Replacing them by -. Signed-off-by: J Keerthy j-keer...@ti.com This must need an update to the binding document too, and probably any DT files that ended up getting merged for it? signature.asc

Re: [RFC][PATCH] vfs: always protect diretory file-fpos with inode mutex

2013-02-19 Thread Li Zefan
On 2013/2/19 20:33, Zheng Liu wrote: On Tue, Feb 19, 2013 at 09:22:40AM +0800, Li Zefan wrote: There's a long long-standing bug...As long as I don't know when it dates from. I've written and attached a simple program to reproduce this bug, and it can immediately trigger the bug in my box. It

[patch 1/1] early_printk: Consolidate random copies of identical code

2013-02-19 Thread Thomas Gleixner
The early console implementations are the same all over the place. Move the print function to kernel/printk and get rid of the copies. Signed-off-by: Thomas Gleixner t...@linutronix.de Cc: Russell King li...@arm.linux.org.uk Cc: Mike Frysinger vap...@gentoo.org Cc: Michal Simek mon...@monstr.eu

Re: [PATCH] dma: timb_dma: Fix compiler warning

2013-02-19 Thread Maxin B. John
On Tue, Feb 19, 2013 at 12:36 PM, Lars-Peter Clausen l...@metafoo.de wrote: On 02/18/2013 08:59 PM, maxin.j...@gmail.com wrote: From: Maxin B. John maxin.j...@enea.com Fix this compiler warning: warning: 'td_remove' defined but not used [-Wunused-function] Signed-off-by: Maxin B. John

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 13:35:02 +0100 Borislav Petkov b...@alien8.de escreveu: On Tue, Feb 19, 2013 at 09:16:10AM -0300, Mauro Carvalho Chehab wrote: I'm not sure if is there a way to pass fs permissions to something similar to device_create_file(). struct device_attribute.attr.mode? I.e.,

[PATCH v3 0/3] suspend/resume support for OMAP nand driver

2013-02-19 Thread Philip Avinash
This patch series adds low power transition support for OMAP NAND driver. With recent driver conversion of GPMC to platform_driver, pm_runtime calls can be used to handle module enable disable of GPMC. This is taken care patch #1. patch #2 is for GPMC suspend/resume support. This includes low

[PATCH v3 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable

2013-02-19 Thread Philip Avinash
Support for pm_runtime add to GPMC driver. Signed-off-by: Philip Avinash avinashphi...@ti.com --- arch/arm/mach-omap2/gpmc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 2c57f81..b1cd6c1 100644 ---

RE: [PATCH v2 3/4] mtd: devices: elm: Low power transition support

2013-02-19 Thread Philip, Avinash
On Wed, Feb 13, 2013 at 18:13:03, Russell King - ARM Linux wrote: On Wed, Feb 13, 2013 at 11:42:01AM +, Philip, Avinash wrote: On Sat, Feb 09, 2013 at 15:52:44, Russell King - ARM Linux wrote: On Thu, Feb 07, 2013 at 06:06:57PM +0530, Philip Avinash wrote: +static int

[PATCH v3 2/3] arm: gpmc: Low power transition support

2013-02-19 Thread Philip Avinash
With GPMC converted to platform driver recently, adds low power transition support in driver itself. Signed-off-by: Philip Avinash avinashphi...@ti.com --- Changes since v1: Module disable enable added using pm_runtime support. arch/arm/mach-omap2/gpmc.c | 20 1

[PATCH v3 3/3] mtd: devices: elm: Low power transition support

2013-02-19 Thread Philip Avinash
In low power modes of AM335X platforms, peripherals power is cut off. This patch supports low power sleep transition support for ELM driver. Signed-off-by: Philip Avinash avinashphi...@ti.com --- Changes Since v2: - Removes wait queue mechanism. The order of device creation ensures

Re: [PATCH 1/2] hid: Add report descriptor for Logitech Driving Force wheel

2013-02-19 Thread Jiri Kosina
On Sun, 17 Feb 2013, Paul Sbarra wrote: This is the original report descriptor as reported by lsusb -vd 046d:c294. I have now applied both patches. Paul, please try to provide more verbose changelogs in the future even for such trivial changes as this. Thanks. -- Jiri Kosina SUSE Labs --

Re: [PATCH v2 1/5] drivers: phy: add generic PHY framework

2013-02-19 Thread Arnd Bergmann
On Tuesday 19 February 2013, Kishon Vijay Abraham I wrote: +static struct class *phy_class; +static LIST_HEAD(phy_list); +static DEFINE_MUTEX(phy_list_mutex); +static LIST_HEAD(phy_bind_list); Hmm, so you actually do have a 'class'. There is a GregKH mandated ban on new classes, meaning that

[GIT PULL] devicetree for v3.9

2013-02-19 Thread Grant Likely
Hi Linus, Description of changes below and in tag. Please pull. g. The following changes since commit 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7: Linux 3.8-rc6 (2013-02-01 12:08:14 +1100) are available in the git repository at: git://git.secretlab.ca/git/linux tags/dt-for-linus for you to

Re: [RFC][PATCH] vfs: always protect diretory file-fpos with inode mutex

2013-02-19 Thread Jan Kara
On Tue 19-02-13 19:47:30, Li Zefan wrote: On 2013/2/19 17:19, Jan Kara wrote: On Tue 19-02-13 09:22:40, Li Zefan wrote: There's a long long-standing bug...As long as I don't know when it dates from. I've written and attached a simple program to reproduce this bug, and it can

[PATCH] backlight: adp8860/adp8870: Fix resume

2013-02-19 Thread Lars-Peter Clausen
Clearing the NSTBY bit in the control register also automatically clears the BLEN bit. So we need to make sure to set it again during resume, otherwise the backlight will stay off. Cc: sta...@vger.kernel.org Signed-off-by: Lars-Peter Clausen l...@metafoo.de ---

[Bug fix PATCH 2/2] acpi, movablemem_map: Set numa_nodes_hotplug nodemask when using SRAT info.

2013-02-19 Thread Tang Chen
We should also set movablemem_map.numa_nodes_hotplug nodemask when we insert a hot-pluggable range in SRAT into movablemem_map.map[]. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- arch/x86/mm/srat.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Bug fix PATCH 1/2] acpi, movablemem_map: Do not zero numa_meminfo in numa_init().

2013-02-19 Thread Tang Chen
early_parse_srat() is called before numa_init(), and has initialized numa_meminfo. So do not zero numa_meminfo in numa_init(), otherwise we will lose memory numa info. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- arch/x86/mm/numa.c |6 -- 1 files changed, 4 insertions(+), 2

Re: [PATCH v2] tty: mxser: improve error handling in mxser_probe() and mxser_module_init()

2013-02-19 Thread Jiri Slaby
On 02/19/2013 06:57 AM, Alexey Khoroshilov wrote: 1. Currently mxser_probe() and mxser_module_init() ignore errors that can happen in tty_port_register_device(). 2. mxser_module_init() does not deallocate resources allocated in mxser_get_ISA_conf() if mxser_initbrd() failed. The patch

[Bug fix PATCH 0/2] Bug fix for movablemem_map boot option.

2013-02-19 Thread Tang Chen
Two bug fix patches for movablemem_map boot option. root (2): acpi, movablemem_map: Do not zero numa_meminfo in numa_init(). acpi, movablemem_map: Set numa_nodes_hotplug nodemask when using SRAT info. arch/x86/mm/numa.c |6 -- arch/x86/mm/srat.c |6 ++ 2 files changed,

Re: [patch 1/1] early_printk: Consolidate random copies of identical code

2013-02-19 Thread Ingo Molnar
* Thomas Gleixner t...@linutronix.de wrote: The early console implementations are the same all over the place. Move the print function to kernel/printk and get rid of the copies. Signed-off-by: Thomas Gleixner t...@linutronix.de Cc: Russell King li...@arm.linux.org.uk Cc: Mike Frysinger

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 09:46:40AM -0300, Mauro Carvalho Chehab wrote: Ah, now I see what you're meaning. That would require to dynamically create a per-mci DEVICE_ATTR(). Dude, look at the code, we do that already. And you're using it with dev_attr_sdram_scrub_rate. Simply change the

Re: [PATCH] backlight: adp8860/adp8870: Fix resume

2013-02-19 Thread Michael Hennerich
On 02/19/2013 02:02 PM, Lars-Peter Clausen wrote: Clearing the NSTBY bit in the control register also automatically clears the BLEN bit. So we need to make sure to set it again during resume, otherwise the backlight will stay off. Cc: sta...@vger.kernel.org Signed-off-by: Lars-Peter Clausen

Re: [PATCH] mfd:adp5520: Restore mode bits on resume

2013-02-19 Thread Michael Hennerich
On 02/19/2013 11:51 AM, Lars-Peter Clausen wrote: The adp5520 unfortunately also clears the BL_EN bit when the nSTNDBY bit is cleared. So we need to make sure to restore it during resume if it was set before suspend. Cc: sta...@vger.kernel.org Signed-off-by: Lars-Peter Clausen l...@metafoo.de

Re: [PATCH v2 0/5] Generic PHY Framework

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 12:33:54PM +, Arnd Bergmann wrote: On Tuesday 19 February 2013, kishon wrote: On Tuesday 19 February 2013 04:14 PM, Arnd Bergmann wrote: On Tuesday 19 February 2013, Kishon Vijay Abraham I wrote: Added a generic PHY framework that provides a set of APIs

Re: [PATCH] irqchip: Renesas INTC External IRQ pin driver

2013-02-19 Thread Thomas Gleixner
On Tue, 19 Feb 2013, Magnus Damm wrote: On Tue, Feb 19, 2013 at 7:11 PM, Thomas Gleixner t...@linutronix.de wrote: +static DEFINE_RAW_SPINLOCK(intc_irqpin_lock); /* only used by slow path */ Shouldn't the lock be part of struct intc_irqpin_priv ? Good idea, but I need to lock access to

[GIT PULL] SPI for v3.9

2013-02-19 Thread Grant Likely
The following changes since commit 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7: Linux 3.8-rc6 (2013-02-01 12:08:14 +1100) are available in the git repository at: git://git.secretlab.ca/git/linux tags/spi-for-linus for you to fetch changes up to 095c3752e673c0ba039a2f67fd867297fde75ae7:

Re: SYSFS errors

2013-02-19 Thread Felipe Balbi
On Tue, Feb 19, 2013 at 02:06:26PM +0100, Borislav Petkov wrote: On Tue, Feb 19, 2013 at 09:46:40AM -0300, Mauro Carvalho Chehab wrote: Ah, now I see what you're meaning. That would require to dynamically create a per-mci DEVICE_ATTR(). Dude, look at the code, we do that already. And

Re: [Bug fix PATCH 1/2] acpi, movablemem_map: Do not zero numa_meminfo in numa_init().

2013-02-19 Thread Tang Chen
Sorry, add cc Li Shaohua. Reported-by: Li Shaohua s...@kernel.org On 02/19/2013 09:01 PM, Tang Chen wrote: early_parse_srat() is called before numa_init(), and has initialized numa_meminfo. So do not zero numa_meminfo in numa_init(), otherwise we will lose memory numa info. Signed-off-by:

Re: [PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-19 Thread Simon Jeons
On 02/05/2013 03:10 PM, Marek Szyprowski wrote: Hello, On 2/5/2013 12:34 AM, Minchan Kim wrote: On Mon, Feb 04, 2013 at 11:27:05AM +0100, Marek Szyprowski wrote: The total number of low memory pages is determined as totalram_pages - totalhigh_pages, so without this patch all CMA pageblocks

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 03:15:00PM +0200, Felipe Balbi wrote: what's the problem with that ? Not a problem - simply annoying. $ ./test.sh cat: /path/to/file/that/doesnt/exist.txt: No such file or directory Setting scrubrate to: I'm sure someone would ask themselves why all of a sudden the file

Re: [char-misc-next 01/12 v3] mei: Rename mei_device to mei_host

2013-02-19 Thread Tomas Winkler
On Wed, Feb 13, 2013 at 11:39 AM, Samuel Ortiz sa...@linux.intel.com wrote: On Tue, Feb 12, 2013 at 11:09:00PM +, Arnd Bergmann wrote: On Tuesday 12 February 2013, gre...@linuxfoundation.org wrote: Please let's find something that makes both hw and Linux happy I still believe

Re: [PATCH] NET: ath5k, check ath5k_eeprom_mode_from_channel retval

2013-02-19 Thread Jiri Slaby
On 02/18/2013 01:47 AM, Nick Kossifidis wrote: int ath5k_eeprom_mode_from_channel(struct ieee80211_channel *channel) { switch (channel-hw_value) { case AR5K_MODE_11A: return AR5K_EEPROM_MODE_11A; case AR5K_MODE_11G: return

Re: [PATCH] staging: android: ashmem: get_name, set_name not to hold ashmem_mutex

2013-02-19 Thread Dan Carpenter
Good job fixing the bug. :) My one concern would be that in set_name() there is a race caused by dropping the lock. It would be better to do that copy_from_user() first, before taking the lock. I don't expect this to actually be a problem in real life. + /* +* Local variable to

Re: SYSFS errors

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 02:28:54PM +0100, Borislav Petkov wrote: On Tue, Feb 19, 2013 at 03:15:00PM +0200, Felipe Balbi wrote: what's the problem with that ? Not a problem - simply annoying. $ ./test.sh cat: /path/to/file/that/doesnt/exist.txt: No such file or directory Setting

Re: [PATCH 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-02-19 Thread Lin Feng
Hi Mel, On 02/05/2013 09:32 PM, Mel Gorman wrote: On Tue, Feb 05, 2013 at 11:57:22AM +, Mel Gorman wrote: + migrate_pre_flag = 1; + } + + if (!isolate_lru_page(pages[i])) { +

[PATCH] spi: tegra114: add spi driver

2013-02-19 Thread Laxman Dewangan
Add spi driver for NVIDIA's Tegra114 spi controller. This controller is different than the older SoCs spi controller in internal design as well as register interface. This driver supports the: - non DMA based transfer for smaller transfer i.e. less than FIFO depth. - APB DMA based transfer for

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 14:06:26 +0100 Borislav Petkov b...@alien8.de escreveu: No, on both cases, open() will return an error (-ENOENT against -EPERM). What if it is a shell script doing: cat /sys/devices/system/edac/mc/mc0/sdram_scrub_rate or similar? Well, cat will return 1 if an error

Re: [Xen-devel] [PATCH] xen: netback: remove redundant xenvif_put

2013-02-19 Thread Ian Campbell
On Tue, 2013-02-19 at 08:03 +, Jan Beulich wrote: The core of it is that the put here parallels the one in netbk_tx_err(), and the one in xenvif_carrier_off() matches the get from xenvif_connect() (which normally would be done on the path coming through xenvif_disconnect()). A few

[GIT PULL] RCU changes for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest core-rcu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-rcu-for-linus HEAD: ac0e32024b8f40987b3db7d2defdc6b5153ba354 Merge branch 'rcu/srcu' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 03:38:09PM +0200, Felipe Balbi wrote: because changing the permission will cause the same issue: Actually, I take that back. Mauro's patch will already create the file anyway: if (mci-set_sdram_scrub_rate || mci-get_sdram_scrub_rate) Adjusting the permissions is

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 15:38:09 +0200 Felipe Balbi ba...@ti.com escreveu: Hi, On Tue, Feb 19, 2013 at 02:28:54PM +0100, Borislav Petkov wrote: On Tue, Feb 19, 2013 at 03:15:00PM +0200, Felipe Balbi wrote: what's the problem with that ? Not a problem - simply annoying. $ ./test.sh

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 10:50:48AM -0300, Mauro Carvalho Chehab wrote: It is actually worse, as if someone is using a C code to open the device with fp = open (/sys/devices/system/edac/mc/mc0/sdram_scrub_rate, O_RDWR); It will now start to fail if the device doesn't have both

[GIT PULL] irq/core changes for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus HEAD: 36a5df85e9a3c218b73f6cf80098016ca3f0410d genirq: Export enable/disable_percpu_irq() The biggest changes are the IRQ-work and printk changes

Re: [PATCH v2 1/5] drivers: phy: add generic PHY framework

2013-02-19 Thread kishon
Hi, On Tuesday 19 February 2013 06:26 PM, Arnd Bergmann wrote: On Tuesday 19 February 2013, Kishon Vijay Abraham I wrote: +static struct class *phy_class; +static LIST_HEAD(phy_list); +static DEFINE_MUTEX(phy_list_mutex); +static LIST_HEAD(phy_bind_list); Hmm, so you actually do have a

Re: SYSFS errors

2013-02-19 Thread Hannes Reinecke
On 02/19/2013 02:50 PM, Borislav Petkov wrote: On Tue, Feb 19, 2013 at 03:38:09PM +0200, Felipe Balbi wrote: because changing the permission will cause the same issue: Actually, I take that back. Mauro's patch will already create the file anyway: if (mci-set_sdram_scrub_rate ||

[PATCH] xen: introduce xen_remap, use it instead of ioremap

2013-02-19 Thread Stefano Stabellini
ioremap can't be used to map ring pages on ARM because it uses device memory caching attributes (MT_DEVICE*). Introduce a Xen specific abstraction to map ring pages, called xen_remap, that is defined as ioremap on x86 (no behavioral changes). On ARM it explicitly calls __arm_ioremap with the

Timer broadcast question

2013-02-19 Thread Daniel Lezcano
Hi John, Frederic, I am working on identifying the different wakeup sources from the interrupts and I have a question regarding the timer broadcast. The broadcast timer is setup to the next event and that will wake up any cpu, right ? The time framework will look at the different cpus

Re: SYSFS errors

2013-02-19 Thread Borislav Petkov
On Tue, Feb 19, 2013 at 02:58:07PM +0100, Hannes Reinecke wrote: Please consider adding a default attribute which return '-EINVAL' or somesuch when the function pointers are not set. But _not_ adding it via device_create_file(). That's evil. This is what we do now. We probably could add the

[GIT PULL] perf changes for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus HEAD: e259514eef764a5286873618e34c560ecb6cff13 perf/x86/amd: Enable northbridge performance counters on AMD family 15h There are lots of

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 14:58:07 +0100 Hannes Reinecke h...@suse.de escreveu: On 02/19/2013 02:50 PM, Borislav Petkov wrote: On Tue, Feb 19, 2013 at 03:38:09PM +0200, Felipe Balbi wrote: because changing the permission will cause the same issue: Actually, I take that back. Mauro's patch will

[GIT PULL] perf fix for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus HEAD: e97cbe3edf7d88aad4c21dd3de124d9f9d039881 perf/hwbp: Fix cleanup in case of kzalloc() failure Leftover fix from the v3.8 cycle.

Re: [PATCH 1/1] block: IBM RamSan 70/80 driver fixes.

2013-02-19 Thread Brian King
On 02/18/2013 02:00 PM, Philip J. Kelleher wrote: diff -uprN -X linux-block-vanilla/Documentation/dontdiff linux-block-vanilla/drivers/block/rsxx/config.c linux-block/drivers/block/rsxx/config.c --- linux-block-vanilla/drivers/block/rsxx/config.c 2013-02-12 11:25:37.756352070 -0600 +++

Re: SYSFS errors

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 11:14:40AM -0300, Mauro Carvalho Chehab wrote: Please consider adding a default attribute which return '-EINVAL' or somesuch when the function pointers are not set. But _not_ adding it via device_create_file(). That's evil. This thread started with Felipe's

[PATCH RFC] pwm: add sysfs interface

2013-02-19 Thread Lars Poeschel
From: Lars Poeschel poesc...@lemonage.de This adds a simple sysfs interface to the pwm subsystem. It is heavily inspired by the gpio sysfs interface. /sys/class/pwm /export ... asks the kernel to export a PWM to userspace /unexport ... to return a PWM to

Re: WARNING: at kernel/mutex.c:386 __mutex_lock_common()

2013-02-19 Thread Maarten Lankhorst
Hey, 2013/2/18 Fengguang Wu fengguang...@intel.com: Greetings, I got the below warning and the first bad commit is commit 11eb5a2ce9655ee552f705f2da6b8f96f466c0d4 Author: Maarten Lankhorst maarten.lankho...@canonical.com Date: Wed Nov 7 11:53:51 2012 +0100 mutex: add support for

[GIT PULL] smp/hotplug changes for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest smp-hotplug-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-hotplug-for-linus HEAD: 14e568e78f6f80ca1e27256641ddf524c7dbdc51 stop_machine: Use smpboot threads Some early preparatory changes for the WIP hotplug rework

Re: [PATCH 5/5] coredump: ignore non-fatal signals when core dumping to a pipe

2013-02-19 Thread Oleg Nesterov
On 02/18, Mandeep Singh Baines wrote: On Sat, Feb 16, 2013 at 11:46 AM, Oleg Nesterov o...@redhat.com wrote: --- x/fs/coredump.c +++ x/fs/coredump.c @@ -416,17 +416,17 @@ static void wait_for_dump_helpers(struct pipe_lock(pipe); pipe-readers++; pipe-writers--; +

Re: [PATCH v2 1/5] drivers: phy: add generic PHY framework

2013-02-19 Thread Arnd Bergmann
On Tuesday 19 February 2013, kishon wrote: + + devname = dev_name(dev); + device_initialize(phy-dev); + phy-desc = desc; + phy-dev.class = phy_class; + phy-dev.parent = dev; + phy-dev.bus = desc-bus; + ret = dev_set_name(phy-dev, %s, devname); Passing a bus_type

Re: [PATCH v2 0/5] Generic PHY Framework

2013-02-19 Thread Arnd Bergmann
On Tuesday 19 February 2013, Felipe Balbi wrote: On Tue, Feb 19, 2013 at 12:33:54PM +, Arnd Bergmann wrote: Currently drivers/phy and drivers/net/phy are independent and are not related to each other. There are some fundamental differences on how these frameworks work. IIUC, the

Re: SYSFS errors

2013-02-19 Thread Mauro Carvalho Chehab
Em Tue, 19 Feb 2013 14:50:56 +0100 Borislav Petkov b...@alien8.de escreveu: On Tue, Feb 19, 2013 at 03:38:09PM +0200, Felipe Balbi wrote: because changing the permission will cause the same issue: Actually, I take that back. Mauro's patch will already create the file anyway: if

Re: [PATCH 4/4 v8] AMD64 EDAC: Fix type usage in NB IDs and memory ranges

2013-02-19 Thread Daniel J Blueman
Hi Boris, On 05/12/2012 00:01, Borislav Petkov wrote: On Tue, Dec 04, 2012 at 05:24:16PM +0800, Daniel J Blueman wrote: It works well on fam10h and fam15h boxes, with and without Numaconnect. Good, thanks for testing. I will send it upstream after the upcoming merge window closes since it

Re: [PATCH] xen: introduce xen_remap, use it instead of ioremap

2013-02-19 Thread Konrad Rzeszutek Wilk
On Tue, Feb 19, 2013 at 01:59:19PM +, Stefano Stabellini wrote: ioremap can't be used to map ring pages on ARM because it uses device memory caching attributes (MT_DEVICE*). Introduce a Xen specific abstraction to map ring pages, called xen_remap, that is defined as ioremap on x86 (no

[GIT PULL] timer changes for v3.9

2013-02-19 Thread Ingo Molnar
Linus, Please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus HEAD: 36dfbbf136db0d645bacfd42ce7d9d6928ea532d timers/x86/hpet: Use HPET_COUNTER to specify the hpet counter in vread_hpet() Main changes:

[PATCH V2] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-02-19 Thread Ian Campbell
The following two patches (one for Xen, one for Linux) switch Xen event channels from unsigned long to xen_ulong_t. On arm, this enables us to have the same interface on arm32 and arm64 because xen_ulong_t is a 64-bit type on ARM. On x86 there is no change because xen_ulong_t is unsigned long on

Re: [PATCH] xen: introduce xen_remap, use it instead of ioremap

2013-02-19 Thread Stefano Stabellini
On Tue, 19 Feb 2013, Konrad Rzeszutek Wilk wrote: On Tue, Feb 19, 2013 at 01:59:19PM +, Stefano Stabellini wrote: ioremap can't be used to map ring pages on ARM because it uses device memory caching attributes (MT_DEVICE*). Introduce a Xen specific abstraction to map ring pages,

[PATCH LINUX] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-02-19 Thread Ian Campbell
On ARM we want these to be the same size on 32- and 64-bit. This is an ABI change on ARM. X86 does not change. Signed-off-by: Ian Campbell ian.campb...@citrix.com Cc: Jan Beulich jbeul...@suse.com Cc: Keir (Xen.org) k...@xen.org Cc: Tim Deegan t...@xen.org Cc: Stefano Stabellini

[PATCH XEN] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-02-19 Thread Ian Campbell
On ARM we want these to be the same size on 32- and 64-bit. This is an ABI change on ARM. X86 does not change. Signed-off-by: Ian Campbell ian.campb...@citrix.com Cc: Jan Beulich jbeul...@suse.com Cc: Keir (Xen.org) k...@xen.org Cc: Tim Deegan t...@xen.org Cc: Stefano Stabellini

<    5   6   7   8   9   10   11   12   13   14   >