Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-07 Thread sanbai
On 2013-06-08- 11:50, sanbai wrote: On 2013年06月08日 03:53, Vivek Goyal wrote: On Fri, Jun 07, 2013 at 11:09:54AM +0800, sanbai wrote: On 2013年06月05日 21:30, Vivek Goyal wrote: On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: We want to use blkio.cgroup on high-speed device (like

Re: [PATCH v2] arm64: kernel: compiling issue, need delete read_current_timer().

2013-06-07 Thread Chen Gang
Hello Maintainers: Please help check it, when you have time. Thanks. On 05/27/2013 06:02 PM, Chen Gang wrote: > Hello Maintainers: > > Please help check this patch whether OK, when you have time. > > Thanks. > > On 05/21/2013 05:46 PM, Chen Gang wrote: >> >> Under arm64, we will calibrate

Re: Linux 3.9.5

2013-06-07 Thread Guenter Roeck
On Fri, Jun 07, 2013 at 12:58:16PM -0700, Greg KH wrote: > I'm announcing the release of the 3.9.5 kernel. > > All users of the 3.9 kernel series must upgrade. > > The updated 3.9.y git tree can be found at: > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git >

Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-07 Thread sanbai
On 2013年06月08日 03:53, Vivek Goyal wrote: On Fri, Jun 07, 2013 at 11:09:54AM +0800, sanbai wrote: On 2013年06月05日 21:30, Vivek Goyal wrote: On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: We want to use blkio.cgroup on high-speed device (like fusionio) for our mysql clusters. After

dm-crypt reordering BIOs across barriers?

2013-06-07 Thread Richard Yao
When you use dm-crypt, block IO requests to a dm-* device will invoke dm_request_fn() -> map_request() -> crypt_map(). If a BIO is a write barrier, crypt_map() will return DM_MAPIO_REMAPPED to map_request(), which will immediately queue it to the device. If a few dozen IOs are queued in rapid

Attention

2013-06-07 Thread LEE YONG
My name is Lee Yong, Contact me for more information about a later client of mine that bears the same last name as yours leaving behind some funds. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH 0/7] irq: fix checkpatch errors and warnings

2013-06-07 Thread Kefeng Wang
On 2013-06-08 6:24, Joe Perches wrote: > On Fri, 2013-06-07 at 22:42 +0200, Thomas Gleixner wrote: >> On Thu, 6 Jun 2013, Kefeng Wang wrote: >> >>> Fix all the checkpath errors in kernel/irq dir, and some warnings >>> also fixed. >> >> Sorry, I'm not really interested in this kind of patches. To

[PATCH] KVM: x86: fix missed memory synchronization when patch hypercall

2013-06-07 Thread Xiao Guangrong
From: Xiao Guangrong Currently, memory synchronization is missed in emulator_fix_hypercall, please see the commit 758ccc89b83 (KVM: x86: drop calling kvm_mmu_zap_all in emulator_fix_hypercall) This patch fixes it by introducing kvm_vcpus_hang_on_page_start() and kvm_vcpus_hang_on_page_end which

Re: [PATCH RFC 0/3] clk: dt: bindings for mux & divider clocks

2013-06-07 Thread Shawn Guo
On Fri, Jun 07, 2013 at 10:52:54AM -0700, Mike Turquette wrote: > Yes, there was a time when I was firmly against doing such a thing. > However I'm not sure it is so bad now. More and more SoCs are going to > keep getting merged into the kernel and that just means more and more > clock data.

[PATCH V3 0/2] x86/microcode/amd: early loading fixes

2013-06-07 Thread Jacob Shin
This patchset addreses two problems with early loading on AMD. First, feedback from Yinghai that find_ucode_in_initrd() should be marked __init: https://lkml.org/lkml/2013/6/4/695 And second, feedback from Henrique that Intel early loading supports multiple microcode firmware concatenated

Re: [patch 0/9] sched: use runnable load avg in balance

2013-06-07 Thread Alex Shi
On 06/07/2013 03:20 PM, Alex Shi wrote: > Peter: > > v8: add a marco div64_ul and used it in task_h_load() > v7: rebasing on tip/sched/core tree. Peter & Ingo: IMHO, if the patch set missed in 3.11 kernel. We will lose the following widely benefit on many benchmarks, hackbench, pgbench,

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Yanmin Zhang
On Sat, 2013-06-08 at 03:52 +0200, Rafael J. Wysocki wrote: > On Saturday, June 08, 2013 09:36:03 AM Yanmin Zhang wrote: > > On Sat, 2013-06-08 at 03:30 +0200, Rafael J. Wysocki wrote: > > > On Friday, June 07, 2013 06:16:25 PM Greg KH wrote: > > > > On Sat, Jun 08, 2013 at 08:42:12AM +0800,

Re: [PATCH] irq: add a new function irq_in_progress to check pending IRQ handlers

2013-06-07 Thread Yanmin Zhang
On Fri, 2013-06-07 at 08:08 -0700, Greg KH wrote: > On Fri, Jun 07, 2013 at 12:54:55PM +0800, Yanmin Zhang wrote: > > On Thu, 2013-06-06 at 21:19 -0700, Greg KH wrote: > > > On Fri, Jun 07, 2013 at 11:18:06AM +0800, Yanmin Zhang wrote: > > > > On Thu, 2013-06-06 at 20:08 -0700, Greg KH wrote: > >

[PATCH V3 2/2] x86/microcode/amd: allow multiple families' bin files appended together

2013-06-07 Thread Jacob Shin
Add support for parsing through multiple families' microcode patch container binary files appended together when early loading. This is already supported on Intel. Reported-by: Henrique de Moraes Holschuh Signed-off-by: Jacob Shin --- arch/x86/kernel/microcode_amd_early.c | 68

[PATCH V3 1/2] x86/microcode/amd: make find_ucode_in_initrd() __init

2013-06-07 Thread Jacob Shin
Change find_ucode_in_initrd() to __init and only let BSP call it during cold boot. This is the right thing to do because only BSP will see initrd loaded by the boot loader. APs will offset into initrd_start to find the microcode patch binary. Reported-by: Yinghai Lu Signed-off-by: Jacob Shin

Re: [RFC patch 1/4] sched: change cfs_rq load avg to unsigned long

2013-06-07 Thread Alex Shi
On 06/07/2013 05:07 PM, Vincent Guittot wrote: > On 7 June 2013 09:29, Alex Shi wrote: >> > Since the 'u64 runnable_load_avg, blocked_load_avg' in cfs_rq struct are >> > smaller than 'unsigned long' cfs_rq->load.weight. We don't need u64 >> > vaiables to describe them. unsigned long is more

Re: [PATCH v2] thinkpad_acpi: return -NODEV while operating uninitialized LEDs

2013-06-07 Thread Amos Kong
On Fri, Jun 7, 2013 at 5:05 PM, Adam Lee wrote: > > Not all 0-15 LEDs are available for all models, sometimes it's even not > safe. This patch return -NODEV while operating uninitialized LEDs. > > Signed-off-by: Adam Lee > --- > drivers/platform/x86/thinkpad_acpi.c |5 - > 1 file

[PATCH] Change the internal SRAM memory type MT_MEMORY_NONCACHED

2013-06-07 Thread Wenyou Yang
Because MT_DEVICE is not executable in armv7, we change the internal SRAM memory type to MT_MEMORY_NONCACHED. As it seems that caching this internal SRAM memory is not necessary, we chose the this memory type. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/setup.c |2 +- 1 file changed,

Re: kernel/workqueue.c:4435:61: sparse: expression using sizeof bool

2013-06-07 Thread Fengguang Wu
// CC sparse people. On Fri, Jun 07, 2013 at 07:05:49PM -0700, Tejun Heo wrote: > Hello, Andrew. > > On Fri, Jun 07, 2013 at 06:46:14PM -0700, Andrew Morton wrote: > > I believe sizeof(bool) can vary between compilers (on gcc it's 1) but > > that doesn't matter here. > > Looking at the warning,

[PATCHv2] irqchip: Add support for TI-NSPIRE irqchip

2013-06-07 Thread Daniel Tang
This patch adds support for the interrupt controllers found in some TI-Nspire models. FIQ support was taken out to simplify the driver code and may be added in later. Since Linux on this platform doesn't really use FIQs, this wasn't really that important in the first place. Changes from v1 to

Re: [PATCH] Add TI-Nspire irqchip support

2013-06-07 Thread Daniel Tang
Hi, On 31/05/2013, at 10:06 PM, Grant Likely wrote: > > Hi Daniel, > > What is the SoC used in the Nspire? Is it something custom for the > calculator, or does it use an existing SoC? It seems to be a custom SoC from what I can see. > I'm just surprised that this > device needs a new

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Rafael J. Wysocki
On Saturday, June 08, 2013 09:36:03 AM Yanmin Zhang wrote: > On Sat, 2013-06-08 at 03:30 +0200, Rafael J. Wysocki wrote: > > On Friday, June 07, 2013 06:16:25 PM Greg KH wrote: > > > On Sat, Jun 08, 2013 at 08:42:12AM +0800, Yanmin Zhang wrote: > > > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J.

Re: [PATCH] Add Initial TI-Nspire support

2013-06-07 Thread Daniel Tang
Hi, On 08/06/2013, at 3:55 AM, Arnd Bergmann wrote: > On Friday 07 June 2013, Daniel Tang wrote: >> Hi, >> >> I was wondering if this patch had gone through yet. > > Sorry, not yet. A few things have changed since I sent in this patch so I need to add some adjustments to the patch. There's

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Yanmin Zhang
On Sat, 2013-06-08 at 03:30 +0200, Rafael J. Wysocki wrote: > On Friday, June 07, 2013 06:16:25 PM Greg KH wrote: > > On Sat, Jun 08, 2013 at 08:42:12AM +0800, Yanmin Zhang wrote: > > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > > > On Friday, June 07, 2013 04:20:30 PM

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Yanmin Zhang
On Fri, 2013-06-07 at 18:16 -0700, Greg KH wrote: > On Sat, Jun 08, 2013 at 08:42:12AM +0800, Yanmin Zhang wrote: > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > > > dpm_run_callback is used in other stages

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Rafael J. Wysocki
On Friday, June 07, 2013 06:16:25 PM Greg KH wrote: > On Sat, Jun 08, 2013 at 08:42:12AM +0800, Yanmin Zhang wrote: > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > > > dpm_run_callback is used in other stages

Re: [PATCH 1/2] PM: use dpm_run_callback in device_prepare

2013-06-07 Thread Yanmin Zhang
On Fri, 2013-06-07 at 18:15 -0700, Greg KH wrote: > On Sat, Jun 08, 2013 at 08:43:55AM +0800, Yanmin Zhang wrote: > > On Fri, 2013-06-07 at 10:37 -0700, Greg KH wrote: > > > On Fri, Jun 07, 2013 at 04:20:31PM +0800, shuox@intel.com wrote: > > > > From: ShuoX Liu > > > > > > > >

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Rafael J. Wysocki
On Saturday, June 08, 2013 09:17:13 AM Yanmin Zhang wrote: > On Sat, 2013-06-08 at 02:54 +0200, Rafael J. Wysocki wrote: > > On Saturday, June 08, 2013 08:42:12 AM Yanmin Zhang wrote: > > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > > > On Friday, June 07, 2013 04:20:30 PM

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Greg KH
On Sat, Jun 08, 2013 at 08:42:12AM +0800, Yanmin Zhang wrote: > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > > dpm_run_callback is used in other stages of power states changing. > > > It provides debug info

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Yanmin Zhang
On Sat, 2013-06-08 at 02:54 +0200, Rafael J. Wysocki wrote: > On Saturday, June 08, 2013 08:42:12 AM Yanmin Zhang wrote: > > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > > > dpm_run_callback is used in other

Re: [PATCH 1/2] PM: use dpm_run_callback in device_prepare

2013-06-07 Thread Greg KH
On Sat, Jun 08, 2013 at 08:43:55AM +0800, Yanmin Zhang wrote: > On Fri, 2013-06-07 at 10:37 -0700, Greg KH wrote: > > On Fri, Jun 07, 2013 at 04:20:31PM +0800, shuox@intel.com wrote: > > > From: ShuoX Liu > > > > > > dpm_run_callback could show more debug info around prepare stage. > > > >

Re: [PATCH v2] ARM: exynos: add debug_ll_io_init() call in exynos_init_io()

2013-06-07 Thread Olof Johansson
On Thu, Jun 06, 2013 at 08:32:04AM +0900, Kukjin Kim wrote: > Olof Johansson wrote: > > > > On Wed, Jun 5, 2013 at 1:56 PM, Doug Anderson > > wrote: > > > If the early MMU mapping of the UART happens to get booted out of the > > > TLB between the start of paging_init() and when we finally re-add

Re: [PATCH 2/2 v2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
Change log from v2: o fix description and simplify a code line (commented by Casey Schaufler) Change log from v1: o fix a bug From 9f889afcd74a58d9a538fa02f4af31d11eb17c54 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 3 Jun 2013 19:46:19 +0900 Subject: [PATCH] f2fs: support xattr

Re: [PATCH v2 1/3] ARM: EXYNOS: uncompress - print debug messages if DEBUG_LL is defined

2013-06-07 Thread Olof Johansson
On Thu, Jun 06, 2013 at 02:37:01PM +0530, Tushar Behera wrote: > On 06/04/2013 09:49 AM, Tushar Behera wrote: > > Printing low-level debug messages make an assumption that the specified > > UART port has been preconfigured by the bootloader. Incorrectly > > specified UART port results in system

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-07 Thread Chao Xie
hi, Arnd Thanks for your review. On Fri, Jun 7, 2013 at 12:26 AM, Arnd Bergmann wrote: > On Thursday 06 June 2013, Neil Zhang wrote: >> > > diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig >> > > index ebdda83..0955191 100644 >> > > --- a/arch/arm/mach-mmp/Kconfig >> > > +++

Re: [PATCH] xen/tmem: Don't over-write tmem_frontswap_poolid after tmem_frontswap_init set it.

2013-06-07 Thread Bob Liu
On 06/08/2013 03:45 AM, Konrad Rzeszutek Wilk wrote: > On Fri, Jun 07, 2013 at 12:29:15PM -0700, Konrad Rzeszutek Wilk wrote: > > CC-ing Bob. > >> Commit 10a7a0771399a57a297fca9615450dbb3f88081a ("xen: tmem: enable Xen >> tmem shim to be built/loaded as a module") allows the tmem module >> to be

Re: [PATCH 2/2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
Hi, Thank you for the review. I agreed all, and will submit v3. Thanks, 2013-06-07 (금), 15:13 -0700, Casey Schaufler: > On 6/6/2013 10:55 PM, Jaegeuk Kim wrote: > > This patch adds the support of security labels for f2fs, which will be used > > by SElinux. > > Please be inclusive. Security

[PATCH, revert] ACPI / scan: Revert scan handler check in acpi_bus_match()

2013-06-07 Thread Rafael J. Wysocki
On Friday, June 07, 2013 03:23:44 PM Tony Luck wrote: > On Fri, Jun 7, 2013 at 5:51 AM, Rafael J. Wysocki wrote: > > Aaron Lu (1): > > ACPI / scan: do not match drivers against objects having scan handlers > > This patch showed up in linux-next tag next-20130605 and appears to be the >

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Rafael J. Wysocki
On Saturday, June 08, 2013 08:42:12 AM Yanmin Zhang wrote: > On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > > dpm_run_callback is used in other stages of power states changing. > > > It provides debug info message

Re: [PATCH 1/2] PM: use dpm_run_callback in device_prepare

2013-06-07 Thread Yanmin Zhang
On Fri, 2013-06-07 at 10:37 -0700, Greg KH wrote: > On Fri, Jun 07, 2013 at 04:20:31PM +0800, shuox@intel.com wrote: > > From: ShuoX Liu > > > > dpm_run_callback could show more debug info around prepare stage. > > Why? Who needs this? What problem does it solve? > > Without answers to

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread Yanmin Zhang
On Fri, 2013-06-07 at 12:36 +0200, Rafael J. Wysocki wrote: > On Friday, June 07, 2013 04:20:30 PM shuox@intel.com wrote: > > dpm_run_callback is used in other stages of power states changing. > > It provides debug info message and time measurement when call these > > callback. We also want to

Re: [PATCH 2/2 v2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
2013-06-07 (금), 19:50 +0900, Namjae Jeon: > 2013/6/7, Jaegeuk Kim : > > Change log from v1: > > o fix a bug > > > > From 901aea226653e26aa3556edd88ca1e48fa89eb5f Mon Sep 17 00:00:00 2001 > > From: Jaegeuk Kim > > Date: Mon, 3 Jun 2013 19:46:19 +0900 > > Subject: [PATCH 2/2] f2fs: support xattr

Re: [PATCH 20/31] mips/kvm: Hook into TLB fault handlers.

2013-06-07 Thread David Daney
On 06/07/2013 04:34 PM, Sergei Shtylyov wrote: Hello. On 06/08/2013 03:03 AM, David Daney wrote: From: David Daney If the CPU is operating in guest mode when a TLB related excpetion occurs, give KVM a chance to do emulation. Signed-off-by: David Daney --- arch/mips/mm/fault.c | 8

Re: [PATCH 1/2] list: add list_for_each_entry_del

2013-06-07 Thread Andy Shevchenko
On Fri, Jun 7, 2013 at 9:48 PM, Jörn Engel wrote: > On Fri, 7 June 2013 21:30:16 +0300, Andy Shevchenko wrote: >> > >> > spin_lock >> > list_for_each_entry_safe >> > list_del >> > spin_unlock >> >> Who is doing such thing? > > Replace list_for_each_entry_safe with 'while

[PATCH 6/6] isdn: clean up debug format string usage

2013-06-07 Thread Kees Cook
Avoid unneeded local string buffers for constructing debug output. Also cleans up debug calls that contain a single parameter so that they cannot be accidentally parsed as format strings. Signed-off-by: Kees Cook Cc: Karsten Keil --- drivers/isdn/hisax/amd7930_fn.c |4 ++--

Re: [PATCH v2 5/8] pinctrl: add pinctrl driver for Rockchip SoCs

2013-06-07 Thread Heiko Stübner
Am Samstag, 8. Juni 2013, 01:13:48 schrieb Heiko Stübner: > Am Freitag, 7. Juni 2013, 14:53:51 schrieb Linus Walleij: > > On Thu, Jun 6, 2013 at 9:11 PM, Heiko Stübner wrote: > > > + for (i = 0, j = 0; i < size; i += 4, j++) { > > > + unsigned long pinconf; > > > + > > > +

[PATCH 3/6] device: avoid format string in dev_set_name

2013-06-07 Thread Kees Cook
Calling dev_set_name with a single paramter causes it to be handled as a format string. Many callers are passing potentially dynamic string content, so use "%s" in those cases to avoid any potential accidents, including wrappers like device_create*() and bdi_register(). Signed-off-by: Kees Cook

[PATCH 2/6] crypto: sanitize argument for format string

2013-06-07 Thread Kees Cook
The template lookup interface does not provide a way to use format strings, so make sure that the interface cannot be abused accidentally. Signed-off-by: Kees Cook Cc: sta...@vger.kernel.org Cc: Herbert Xu Cc: "David S. Miller" --- crypto/algapi.c |3 ++- 1 file changed, 2 insertions(+),

[PATCH 4/6] workqueue: avoid format strings in names

2013-06-07 Thread Kees Cook
For the workqueue creation interfaces that do not expect format strings, make sure they cannot accidently be parsed that way. Additionally, clean up calls made with a single parameter that would be handled as a format string. Many callers are passing potentially dynamic string content, so use "%s"

[PATCH 5/6] kthread: avoid parsing names as format strings

2013-06-07 Thread Kees Cook
Calling kthread_run with a single name parameter causes it to be handled as a format string. Many callers are passing potentially dynamic string content, so use "%s" in those cases to avoid any potential accidents. Signed-off-by: Kees Cook --- drivers/block/aoe/aoecmd.c |2 +-

[PATCH 1/6] block: do not pass disk names as format strings

2013-06-07 Thread Kees Cook
Disk names may contain arbitrary strings, so they must not be interpreted as format strings. It seems that only md allows arbitrary strings to be used for disk names, but this could allow for a local memory corruption from uid 0 into ring 0. CVE-2013-2851 Signed-off-by: Kees Cook Cc:

[PATCH v2 0/6] format string usage clean ups

2013-06-07 Thread Kees Cook
Version 2 of this series. Originally: https://lkml.org/lkml/2013/6/6/614 Changes: - "power: ensure event is not used as format string" taken by maintainer. - "kobject: sanitize argument for format string" taken by maintainer. - "device: avoid format string in dev_set_name" fixed for newly

Re: kernel/workqueue.c:4435:61: sparse: expression using sizeof bool

2013-06-07 Thread Fengguang Wu
On Fri, Jun 07, 2013 at 03:03:51PM -0700, Tejun Heo wrote: > On Fri, Jun 07, 2013 at 02:15:21PM -0700, Andrew Morton wrote: > > > 4434/* copy worker description */ > > > > 4435probe_kernel_read(_valid, >desc_valid, > > > > sizeof(desc_valid)); > > > > I don't understand

Re: adjusting the monotonic system time (from inside the kernel)

2013-06-07 Thread John Stultz
On 05/06/2013 07:02 AM, Alexander Holler wrote: Hello, I'm looking at how to adjust the (monotonic) system time from inside the kernel. Use case is that I have a hw-clock which (not necessarily) regulary sends a timestamp with millisecond precision which I want to use to adjust the system

acpi_sba_ioc_driver breakage (was: Re: [GIT PULL] Power management and ACPI fixes for v3.10-rc5)

2013-06-07 Thread Rafael J. Wysocki
On Friday, June 07, 2013 04:02:11 PM Tony Luck wrote: > On Fri, Jun 7, 2013 at 3:23 PM, Tony Luck wrote: > > So please don't pull. > > Bother. I see I was a few hours late finding this, and commit 9f29ab11ddb > is already in Linus' tree. > > That's what happens when I get busy and skip a couple

Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks

2013-06-07 Thread Jiannan Ouyang
Raghu, thanks for you input. I'm more than glad to work together with you to make this idea work better. -Jiannan On Thu, Jun 6, 2013 at 11:15 PM, Raghavendra K T wrote: > On 06/03/2013 11:51 AM, Raghavendra K T wrote: >> >> On 06/03/2013 07:10 AM, Raghavendra K T wrote: >>> >>> On 06/02/2013

Re: [PATCH 20/31] mips/kvm: Hook into TLB fault handlers.

2013-06-07 Thread Sergei Shtylyov
Hello. On 06/08/2013 03:03 AM, David Daney wrote: From: David Daney If the CPU is operating in guest mode when a TLB related excpetion occurs, give KVM a chance to do emulation. Signed-off-by: David Daney --- arch/mips/mm/fault.c | 8 arch/mips/mm/tlbex-fault.S | 6 ++

Re: race condition in schedule_on_each_cpu()

2013-06-07 Thread Tejun Heo
On Fri, Jun 07, 2013 at 10:24:50AM +0800, we...@kylinos.com.cn wrote: > >Before the commit you originally quoted, the calling thread could be > preempted and migrated to another CPU before get_online_cpus() thus > ending up executing the function twice on the new cpu but skipping the > old one. >

Re: [Arm-netbook] getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))

2013-06-07 Thread luke.leighton
On Sat, Jun 8, 2013 at 12:09 AM, Dennis Lan (dlan) wrote: > > > On Saturday, June 8, 2013, luke.leighton wrote: >> >> right - too many people contributed to this, input from jon smirl, >> wookie, maxime, tomasz, henrik, i've made a start here and will >> continue editing: this is notes for me to

[PATCH 05/31] mips/kvm: Use generic cache flushing functions.

2013-06-07 Thread David Daney
From: David Daney We don't know if we have the r4k specific functions available, so use universally available __flush_cache_all() instead. This takes longer as it flushes both i-cache and d-cache, but is available for all CPUs. Signed-off-by: David Daney --- arch/mips/kvm/kvm_mips_emul.c | 6

[PATCH 04/31] mips/kvm: Add casts to avoid pointer width mismatch build failures.

2013-06-07 Thread David Daney
From: David Daney When building for 64-bits we need these cases to make it build. Signed-off-by: David Daney --- arch/mips/kvm/kvm_mips.c | 4 ++-- arch/mips/kvm/kvm_mips_dyntrans.c | 4 ++-- arch/mips/kvm/kvm_mips_emul.c | 2 +- arch/mips/kvm/kvm_tlb.c | 4 ++-- 4

Re: [PATCH v2 5/8] pinctrl: add pinctrl driver for Rockchip SoCs

2013-06-07 Thread Heiko Stübner
Am Freitag, 7. Juni 2013, 14:53:51 schrieb Linus Walleij: > On Thu, Jun 6, 2013 at 9:11 PM, Heiko Stübner wrote: > > + for (i = 0, j = 0; i < size; i += 4, j++) { > > + unsigned long pinconf; > > + > > + num = be32_to_cpu(*list++); > > + bank =

[PATCH 03/31] mips/kvm: Fix 32-bitisms in kvm_locore.S

2013-06-07 Thread David Daney
From: David Daney For a warning free compile, we need to use the width aware PTR_LI and PTR_LA macros. Use LI variant for immediate data and LA variant for addresses. Signed-off-by: David Daney --- arch/mips/kvm/kvm_locore.S | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH 00/31] KVM/MIPS: Implement hardware virtualization via the MIPS-VZ extensions.

2013-06-07 Thread David Daney
I should also add that I will shortly send patches for the kvm tool required to drive this VM as well as a small set of patches that create a para-virtualized MIPS/Linux guest kernel. The idea is that because there is no standard SMP linux system, we create a standard para-virtualized system

[PATCH 02/31] MIPS: Save and restore K0/K1 when CONFIG_KVM_MIPSVZ

2013-06-07 Thread David Daney
From: David Daney We cannot clobber any registers on exceptions as any guest will need them all. Signed-off-by: David Daney --- arch/mips/include/asm/mipsregs.h | 2 ++ arch/mips/include/asm/stackframe.h | 15 +++ arch/mips/kernel/cpu-probe.c | 7 ++-

[PATCH 07/31] mips/kvm: Rename VCPU_registername to KVM_VCPU_ARCH_registername

2013-06-07 Thread David Daney
From: David Daney This makes it follow the pattern where the structure name is the symbol name prefix. Signed-off-by: David Daney --- arch/mips/kernel/asm-offsets.c | 68 +++--- arch/mips/kvm/kvm_locore.S | 206 - 2 files changed, 137

[PATCH 00/31] KVM/MIPS: Implement hardware virtualization via the MIPS-VZ extensions.

2013-06-07 Thread David Daney
From: David Daney These patches take a somewhat different approach to MIPS virtualization via the MIPS-VZ extensions than the patches previously sent by Sanjay Lal. Several facts about the code: o Existing exception handlers are modified to hook in to KVM instead of intercepting all

[PATCH 10/31] mips/kvm: Implement ioctls to get and set FPU registers.

2013-06-07 Thread David Daney
From: David Daney The current implementation does nothing with them, but future MIPSVZ work need them. Also add the asm-offsets accessors for the fields. Signed-off-by: David Daney --- arch/mips/include/asm/kvm_host.h | 8 arch/mips/kernel/asm-offsets.c | 8

[PATCH 06/31] mips/kvm: Rename kvm_vcpu_arch.pc to kvm_vcpu_arch.epc

2013-06-07 Thread David Daney
From: David Daney The proper MIPS name for this register is EPC, so use that. Change the asm-offsets name to KVM_VCPU_ARCH_EPC, so that the symbol name prefix matches the structure name. Signed-off-by: David Daney --- arch/mips/include/asm/kvm_host.h | 2 +- arch/mips/kernel/asm-offsets.c

[PATCH 08/31] mips/kvm: Fix code formatting in arch/mips/kvm/kvm_locore.S

2013-06-07 Thread David Daney
From: David Daney It was a completely inconsistent mix of spaces and tabs. Signed-off-by: David Daney --- arch/mips/kvm/kvm_locore.S | 921 +++-- 1 file changed, 464 insertions(+), 457 deletions(-) diff --git a/arch/mips/kvm/kvm_locore.S

Re: [GIT PULL] Power management and ACPI fixes for v3.10-rc5

2013-06-07 Thread Rafael J. Wysocki
On Friday, June 07, 2013 04:02:11 PM Tony Luck wrote: > On Fri, Jun 7, 2013 at 3:23 PM, Tony Luck wrote: > > So please don't pull. > > Bother. I see I was a few hours late finding this, and commit 9f29ab11ddb > is already in Linus' tree. > > That's what happens when I get busy and skip a couple

[PATCH 17/31] MIPS: Quit exposing Kconfig symbols in uapi headers.

2013-06-07 Thread David Daney
From: David Daney The kernel's struct pt_regs has many fields conditional on various Kconfig variables, we cannot be exporting this garbage to user-space. Move the kernel's definition to asm/ptrace.h, and put a uapi only version in uapi/asm/ptrace.h gated by #ifndef __KERNEL__ Signed-off-by:

Re: [PATCH 5/8] device: avoid format string in dev_set_name

2013-06-07 Thread Greg Kroah-Hartman
On Thu, Jun 06, 2013 at 01:52:22PM -0700, Kees Cook wrote: > --- a/mm/backing-dev.c > +++ b/mm/backing-dev.c > @@ -515,7 +515,6 @@ EXPORT_SYMBOL(bdi_destroy); > int bdi_setup_and_register(struct backing_dev_info *bdi, char *name, > unsigned int cap) > { > - char

[PATCH 16/31] mips/kvm: Add exception handler for MIPSVZ Guest exceptions.

2013-06-07 Thread David Daney
From: David Daney Signed-off-by: David Daney --- arch/mips/kernel/genex.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S index 163e299..ce0be96 100644 --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S @@ -486,6 +486,9 @@

[PATCH 14/31] mips/kvm: Add thread_info flag to indicate operation in MIPS VZ Guest Mode.

2013-06-07 Thread David Daney
From: David Daney Signed-off-by: David Daney --- arch/mips/include/asm/thread_info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h index 895320e..a7a894a 100644 --- a/arch/mips/include/asm/thread_info.h +++

[PATCH 15/31] mips/kvm: Exception handling to leave and reenter guest mode.

2013-06-07 Thread David Daney
From: David Daney Currently this is a little complex, here are the facts about how it works: o When running in Guest mode we set the high bit of CP0_XCONTEXT. If this bit is clear, we don't do anything special on an exception. o If we are in guest mode, upon an exception we: 1) load the

[PATCH 13/31] mips/kvm: Add accessors for MIPS VZ registers.

2013-06-07 Thread David Daney
From: David Daney There are accessors for both the guest control registers as well as guest CP0 context. Signed-off-by: David Daney --- arch/mips/include/asm/mipsregs.h | 260 +++ 1 file changed, 260 insertions(+) diff --git

[PATCH 22/31] mips/kvm: Split get_new_mmu_context into two parts.

2013-06-07 Thread David Daney
From: David Daney The new function (part) get_new_asid() can now be used from MIPSVZ code. Signed-off-by: David Daney --- arch/mips/include/asm/mmu_context.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mmu_context.h

[PATCH 21/31] mips/kvm: Allow set_except_vector() to be used from MIPSVZ code.

2013-06-07 Thread David Daney
From: David Daney We need to move it out of __init so we don't have section mismatch problems. Signed-off-by: David Daney --- arch/mips/include/asm/uasm.h | 2 +- arch/mips/kernel/traps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/uasm.h

[PATCH 19/31] mips/kvm: Add host definitions for MIPS VZ based host.

2013-06-07 Thread David Daney
From: David Daney Signed-off-by: David Daney --- arch/mips/include/asm/kvm_mips_vz.h | 29 + 1 file changed, 29 insertions(+) create mode 100644 arch/mips/include/asm/kvm_mips_vz.h diff --git a/arch/mips/include/asm/kvm_mips_vz.h

[PATCH 20/31] mips/kvm: Hook into TLB fault handlers.

2013-06-07 Thread David Daney
From: David Daney If the CPU is operating in guest mode when a TLB related excpetion occurs, give KVM a chance to do emulation. Signed-off-by: David Daney --- arch/mips/mm/fault.c | 8 arch/mips/mm/tlbex-fault.S | 6 ++ 2 files changed, 14 insertions(+) diff --git

[PATCH 18/31] mips/kvm: Add pt_regs slots for BadInstr and BadInstrP

2013-06-07 Thread David Daney
From: David Daney These save the instruction word to be used by MIPSVZ code for instruction emulation. Signed-off-by: David Daney --- arch/mips/include/asm/ptrace.h | 4 arch/mips/kernel/asm-offsets.c | 4 2 files changed, 8 insertions(+) diff --git a/arch/mips/include/asm/ptrace.h

Re: [Arm-netbook] getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))

2013-06-07 Thread luke.leighton
On Fri, Jun 7, 2013 at 11:08 PM, Maxime Ripard wrote: > On Fri, Jun 07, 2013 at 07:26:49PM +0100, luke.leighton wrote: >> maxime: we need to talk :) >> >> please tell me in 4 or 5 sentences what you've managed to do so far, >> expanding a little on what thomas says below, more specifically what

[PATCH 28/31] mips/kvm: Only use KVM_COALESCED_MMIO_PAGE_OFFSET with KVM_MIPSTE

2013-06-07 Thread David Daney
From: David Daney The forthcoming MIPSVZ code doesn't currently use this, so it must only be enabled for KVM_MIPSTE. Signed-off-by: David Daney --- arch/mips/include/asm/kvm_host.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/kvm_host.h

[PATCH 25/31] mips/kvm: Add some asm-offsets constants used by MIPSVZ.

2013-06-07 Thread David Daney
From: David Daney Signed-off-by: David Daney --- arch/mips/kernel/asm-offsets.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 37fd9e2..db09376 100644 --- a/arch/mips/kernel/asm-offsets.c +++

[PATCH 24/31] mips/kvm: Add thread_struct fields used by MIPSVZ hosts.

2013-06-07 Thread David Daney
From: David Daney ... and their accessors in asm-offsets.c Signed-off-by: David Daney --- arch/mips/include/asm/processor.h | 6 ++ arch/mips/kernel/asm-offsets.c| 5 + 2 files changed, 11 insertions(+) diff --git a/arch/mips/include/asm/processor.h

[PATCH 23/31] mips/kvm: Hook into CP unusable exception handler.

2013-06-07 Thread David Daney
From: David Daney The MIPS VZ KVM code needs this to be able to manage the FPU. Signed-off-by: David Daney --- arch/mips/kernel/traps.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index fca0a2f..2bdeb32 100644 ---

[PATCH 31/31] mips/kvm: Allow for upto 8 KVM vcpus per vm.

2013-06-07 Thread David Daney
From: David Daney The mipsvz implementation allows for SMP, so let's be able to create all those vcpus. Signed-off-by: David Daney --- arch/mips/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/kvm_host.h

[PATCH 26/31] mips/kvm: Split up Kconfig and Makefile definitions in preperation for MIPSVZ.

2013-06-07 Thread David Daney
From: David Daney Create the symbol KVM_MIPSTE, and use it to select the trap and emulate specific things. Signed-off-by: David Daney --- arch/mips/kvm/Kconfig | 14 +- arch/mips/kvm/Makefile | 14 -- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git

[PATCH 27/31] mips/kvm: Gate the use of kvm_local_flush_tlb_all() by KVM_MIPSTE

2013-06-07 Thread David Daney
From: David Daney Only the trap-and-emulate KVM code needs a Special tlb flusher. All other configurations should use the regular version. Signed-off-by: David Daney --- arch/mips/include/asm/mmu_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 30/31] mips/kvm: Enable MIPSVZ in Kconfig/Makefile

2013-06-07 Thread David Daney
From: David Daney Also let CPU_CAVIUM_OCTEON select KVM. Signed-off-by: David Daney --- arch/mips/Kconfig | 1 + arch/mips/kvm/Kconfig | 9 + arch/mips/kvm/Makefile | 1 + 3 files changed, 11 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index

[PATCH 12/31] MIPS: Add instruction format information for WAIT, MTC0, MFC0, et al.

2013-06-07 Thread David Daney
From: David Daney --- arch/mips/include/uapi/asm/inst.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h index 0f4aec2..133abc1 100644 --- a/arch/mips/include/uapi/asm/inst.h +++

[PATCH 11/31] MIPS: Rearrange branch.c so it can be used by kvm code.

2013-06-07 Thread David Daney
From: David Daney Introduce __compute_return_epc_for_insn0() entry point. Signed-off-by: David Daney --- arch/mips/include/asm/branch.h | 7 + arch/mips/kernel/branch.c | 63 +++--- 2 files changed, 54 insertions(+), 16 deletions(-) diff --git

[PATCH 01/31] MIPS: Move allocate_kscratch to cpu-probe.c and make it public.

2013-06-07 Thread David Daney
From: David Daney Signed-off-by: David Daney --- arch/mips/include/asm/mipsregs.h | 2 ++ arch/mips/kernel/cpu-probe.c | 29 + arch/mips/mm/tlbex.c | 20 +--- 3 files changed, 32 insertions(+), 19 deletions(-) diff --git

Re: [GIT PULL] Power management and ACPI fixes for v3.10-rc5

2013-06-07 Thread Tony Luck
On Fri, Jun 7, 2013 at 3:23 PM, Tony Luck wrote: > So please don't pull. Bother. I see I was a few hours late finding this, and commit 9f29ab11ddb is already in Linus' tree. That's what happens when I get busy and skip a couple of days testing linux-next :-( So my problem comes from

[PATCH v3 07/27] iommu, irq: Allocate irq_desc for dmar_msi with local node

2013-06-07 Thread Yinghai Lu
iommu irq's irq_desc should be on local node ram. Fix the return value checking problem. create_irq() will return -1 when fail to allocate. create_irq_nr() will return 0 when fail to allocate. here only check !irq, so need to change it to use create_irq_nr instead. Signed-off-by: Yinghai Lu

[PATCH v3 10/27] genirq: Split __irq_reserve_irqs from irq_alloc_descs

2013-06-07 Thread Yinghai Lu
irq_alloc_descs and irq_reserve_irqs are almost the same. Separate code out to __irq_reserved_irqs, and other two reuse __irq_reserve_irqs. We will use __irq_reserve_irqs for coming ioapic hotplug support. Signed-off-by: Yinghai Lu Cc: Alexander Gordeev --- include/linux/irq.h | 1 +

[PATCH v3 00/27] x86, irq: support ioapic device hotplug

2013-06-07 Thread Yinghai Lu
Hi, Intel cpu (from IVB) include cpu, mem controller, and IIO. When hotadd cpu physically, it will involve cpu hotplug, mem hotplug, and pci root hotplug. IIO includes pci host bridge, ioapic controller and iommu. pci devices will need to use ioapic and iommu. So to make pci root bus hotplug

[PATCH v3 17/27] genirq: Bail out early in free_desc()

2013-06-07 Thread Yinghai Lu
We pre-reserve irq range for hot-added ioapic, and later only some are used via realloc. So during hot-remove, we need to clear bits in allocated_irqs for both case. Check if the irq_desc is there at first, and bail out early if irq_desc is not allocated yet. We can use irq_free_descs to clear

[PATCH v3 25/27] PCI, x86, ACPI: Link acpi ioapic register to ioapic

2013-06-07 Thread Yinghai Lu
During ioapic hotplug, acpi_register_ioapic will be called. Now for x86, that function is blank. Fill that will update __mp_register_ioapic to use those ioapic. Signed-off-by: Yinghai Lu --- arch/x86/kernel/acpi/boot.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >