[ 05/66] usb: Prevent dead ports when xhci is not enabled

2013-02-17 Thread Ben Hutchings
3.2-stable review patch. If anyone has any objections, please let me know. -- From: David Moore david.mo...@gmail.com commit 58b2939b4d5a030eaec469d29812ab8477ee7e76 upstream. When the xHCI driver is not available, actively switch the ports to EHCI mode since some BIOSes leave

[ 02/66] xhci: Fix isoc TD encoding.

2013-02-17 Thread Ben Hutchings
3.2-stable review patch. If anyone has any objections, please let me know. -- From: Sarah Sharp sarah.a.sh...@linux.intel.com commit 760973d2a74b93eb1697981f7448f0e62767cfc4 upstream. An isochronous TD is comprised of one isochronous TRB chained to zero or more normal TRBs.

Re: [PATCH 0/9] System Framebuffer Bus (sysfb)

2013-02-17 Thread David Herrmann
Hi Dave On Sun, Feb 17, 2013 at 11:02 PM, Dave Airlie airl...@gmail.com wrote: This series tries to fix the mess with global system framebuffer access in device drivers. Currently, architecture initialization sets the screen_info object according to the system framebuffer that was detected

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

2013-02-17 Thread Stephen Rothwell
Hi Ralf, After merging the mips tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/ssb/driver_gpio.c: In function 'ssb_gpio_chipco_to_irq': drivers/ssb/driver_gpio.c:82:3: error: implicit declaration of function 'ssb_mips_irq' [-Werror=implicit-function-declaration]

Re: [PATCH 0/9] System Framebuffer Bus (sysfb)

2013-02-17 Thread Dave Airlie
I'm unsure if I like this or not, and I don't see why its greatly more useful than the interface we have now. This interface at least solves the problem with having vesafb, uvesafb, vgacon, vga16fb, efifb, dvbe, defi and all other similar drivers from accessing the system framebuffer

[PATCH] add extra free kbytes tunable

2013-02-17 Thread dormando
From: Rik van Riel r...@redhat.com Add a userspace visible knob to tell the VM to keep an extra amount of memory free, by increasing the gap between each zone's min and low watermarks. This is useful for realtime applications that call system calls and have a bound on the number of allocations

Re: extra free kbytes tunable

2013-02-17 Thread dormando
On Fri, 15 Feb 2013, Rik van Riel wrote: On 02/15/2013 05:21 PM, Seiji Aguchi wrote: Rik, Satoru, Do you have any comments? IIRC at the time the patch was rejected as too inelegant. However, nobody else seems to have come up with a better plan, and there are users in need of a fix

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

2013-02-17 Thread Hauke Mehrtens
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/18/2013 12:43 AM, Stephen Rothwell wrote: Hi Ralf, After merging the mips tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/ssb/driver_gpio.c: In function 'ssb_gpio_chipco_to_irq':

[PATCH v2 0/3] ARM: S3C24XX: Add devicetree support for s3c2416

2013-02-17 Thread Heiko Stübner
This is the second installment of beginning devicetree support the Samsung S3C24xx architectures and focuses on the s3c2416 for now. Included is the devicetree support for the s3c24xx irq controller and basic support for smdk2416 boards, which can sucessfully boot. After the discussion with

[PATCH v2 1/3] ARM: S3C24XX: move irq driver to drivers/irqchip

2013-02-17 Thread Heiko Stübner
This move is necessary to make use of the irqchip infrastructure for the following devicetree support for s3c24xx architectures. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- drivers/irqchip/Makefile |

[PATCH v2 2/3] irqchip: irq-s3c24xx: add devicetree support

2013-02-17 Thread Heiko Stübner
This adds devicetree parsing of the controller-data for the interrupt controllers on S3C24XX architectures. As the interrupts and their parent differ on all s3c24xx SoCs the interrupt-list and parent-relationship is read from a list in the devicetree data. Signed-off-by: Heiko Stuebner

[PATCH v2 3/3] ARM: S3C24XX: Add devicetree support and dt-board file for s3c2416 SoCs

2013-02-17 Thread Heiko Stübner
This adds a board file and the devicetree source files to support boards using the Samsung S3C2416 SoC. The dt source files contain the definitions generic to all S3C24XX SoCs in the s3c24xx.dtsi file which then gets extendes with S3C2416 specific definitions. Signed-off-by: Heiko Stuebner

Re: [RFC] ARM: sa1100: collie-battery.c: include platform_device.h directly

2013-02-17 Thread Andrea Adami
On Sun, Feb 17, 2013 at 12:00 AM, Anton Vorontsov an...@enomsg.org wrote: Hi Andrea, On Sat, Feb 16, 2013 at 07:16:00PM +0100, Andrea Adami wrote: Initial try to fix compilation error Things are a bit more complex... linux/include/linux/mfd/mcp.h:22:16: error: field 'attached_device' has

RE: [PATCH 00/13] kdump, vmcore: support mmap() on /proc/vmcore

2013-02-17 Thread Hatayama, Daisuke
From: Atsushi Kumagai kumagai-atsu...@mxc.nes.nec.co.jp Subject: Re: [PATCH 00/13] kdump, vmcore: support mmap() on /proc/vmcore Date: Fri, 15 Feb 2013 12:57:01 +0900 On Thu, 14 Feb 2013 19:11:43 +0900 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com wrote: cut TODO - fix makedumpfile to

Re: BUG in find_pid_ns

2013-02-17 Thread Eric W. Biederman
Adding Oleg since he knows about as much about signals and pids as anyone. Sasha Levin sasha.le...@oracle.com writes: Hi all, While fuzzing with trinity inside a KVM tools guest, running latest -next kernel, I've stumbled on the following spew: To my knowledge there are no in progress

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

2013-02-17 Thread Nick Kossifidis
2013/2/7 Jiri Slaby jsl...@suse.cz: It can, if invalid argument given, return a negative value. In that case we would access arrays out-of-bounds and such. Check the value and yell loudly if that happened as it would be a bug in the implementation. (Instead of silently corrupting memory.)

Re: [GIT PULL] at91: more DT changes related to MTD for 3.9

2013-02-17 Thread Olof Johansson
On Wed, Feb 13, 2013 at 12:28:05PM +0100, Nicolas Ferre wrote: Hi Olof, Arnd, I would like you to consider this little pull request for modification of some AT91 Device Tree files. We have had a discussion about this material earlier and now that Artem has queued the driver modifications

[ANNOUNCE] Git v1.8.2-rc0

2013-02-17 Thread Junio C Hamano
An early preview Git v1.8.2-rc0 for the upcoming release is now available for testing at the usual places. The preview includes contributions from 80+ people, totaling some 570+ no-merge changes since v1.8.1 and should give you more or less a complete picture of what the upcoming 1.8.2 would look

[PATCH review 00/16] userns: Completion of kuid/kgid/kprojid pushdown.

2013-02-17 Thread Eric W. Biederman
I have spent some more time with the xfs code and finally figured out what needed to be done to safely add kuid/kgid support without significant logic changes. My first two xfs changes make the small logical adjustments required of xfs to get the primary inode uid, gid, and projid fields that

Re: [RFC] ARM: sa1100: collie-battery.c: include platform_device.h directly

2013-02-17 Thread Anton Vorontsov
On Mon, Feb 18, 2013 at 01:13:46AM +0100, Andrea Adami wrote: On Sun, Feb 17, 2013 at 12:00 AM, Anton Vorontsov an...@enomsg.org wrote: Hi Andrea, On Sat, Feb 16, 2013 at 07:16:00PM +0100, Andrea Adami wrote: Initial try to fix compilation error Things are a bit more complex...

linux-next: manual merge of the pm tree with the pci tree

2013-02-17 Thread Stephen Rothwell
Hi Rafael, Today's linux-next merge of the pm tree got a conflict in drivers/acpi/internal.h between commits 668192b67820 (PCI: acpiphp: Move host bridge hotplug to pci_root.c) and ab1a2e038ff2 (ACPI / PCI: Make pci_slot built-in only, not a module) from the pci tree and commit 00c43b968250 (ACPI

[PATCH review 01/16] xfs: Convert uids and gids in xfs acls to/from kuids and kgids

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - When reading from disk convert on disk uids and gids to kuids and kgids - When writing to the disk convert in memory kuids and kgids to uids and gids. - Don't write e_id as that field only exists when user namespace support is disabled. - Use

[PATCH review 02/16] xfs: Store projectid as a single variable.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com xfs_get_projid is torturous to read and it will not work at all when project ids are stored in a kprojid_t. So add a i_projid to xfs_inode, that is cheap to read and can handle future needs, and update all callers of xfs_get_projid to use i_projid.

[PATCH review 03/16] xfs: Always read uids and gids from the vfs inode

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com Add xfs_set_uid and xfs_set_gid to encapsulate the double write needed when updating uid and gids, and uset them for all uid and gid writes. Update VFS()-i_uid and VFS_I()-i_gid immediately after reading on-disk inode values so that all of the cached

[PATCH review 04/16] xfs: Update inode uids, gids, and projids to be kuids, kgids, and kprojids

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com Update i_projid on struct xfs_inode to be of type kprojid_t. Update the logic in xfs_iread when the values are read from disk to convert their on-disk values into the internal kernel representation. Update xfs_set_projid, xfs_set_uid, and

[PATCH review 07/16] xfs: Update ioctl(XFS_IOC_FREE_EOFBLOCKS) to handle callers in any userspace

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - Modify the ioctl to convert from uids, gid, and projids in the current user namespace to kuids, kgids, and kprojids, and to report an error if the conversion fails. - Create struct xfs_internal_eofblocks to hold the same information as struct

[PATCH review 08/16] xfs: Use kprojids when allocating inodes.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com In xfs_create and xfs_symlink compute the desired kprojid and pass it down into xfs_ialloc. Cc: Ben Myers b...@sgi.com Cc: Alex Elder el...@kernel.org Cc: Dave Chinner da...@fromorbit.com Signed-off-by: Eric W. Biederman ebied...@xmission.com ---

[PATCH review 09/16] xfs: Modify xfs_qm_vop_dqalloc to take kuids, kgids, and kprojids.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com Cc: Ben Myers b...@sgi.com Cc: Alex Elder el...@kernel.org Cc: Dave Chinner da...@fromorbit.com Signed-off-by: Eric W. Biederman ebied...@xmission.com --- fs/xfs/xfs_qm.c|6 +++--- fs/xfs/xfs_quota.h |4 ++-- 2 files changed, 5

[PATCH review 10/16] xfs: Push struct kqid into xfs_qm_scall_qmlim and xfs_qm_scall_getquota

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - In xfs_qm_scall_getquota map the quota id into the callers user namespace in the returned struct fs_disk_quota - Add a helper is_superquota and use it in xfs_qm_scall_setqlimi to see if we are setting the superusers quota limit. Setting the

[PATCH review 12/16] xfs: Remember the kqid for a quota

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - Add q_id to struct xfs_quota - Modify xfs_qm_dqread to take a struct kqid, allowing xfs_qm_dqread to set q_id on fresh quota structures. - Modify xfs_qm_dqget and xfs_qm_init_quota_info to pass a kqid to xfs_qm_dqread Cc: Ben Myers b...@sgi.com

[PATCH review 16/16] userns: Remove the EXPERMINTAL kconfig tag

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com While there is more work to be done in the form of allowing more to happen when you have root inside of a user namespace there is nothing experimental about them. Signed-off-by: Eric W. Biederman ebied...@xmission.com --- init/Kconfig |3 +-- 1

[PATCH review 15/16] userns: Now that everything has been converted remove the unnecessary infrastructure

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com In particular kill UIDGID_CONVERTED and UIDGID_STRICT_TYPE_CHECKS and have the code treat them as always true. Acked-by: Serge Hallyn serge.hal...@canonical.com Signed-off-by: Eric W. Biederman ebied...@xmission.com --- include/linux/posix_acl.h |

[PATCH review 06/16] xfs: Use kuids and kgids in xfs_setattr_nonsize

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com Cc: Ben Myers b...@sgi.com Cc: Alex Elder el...@kernel.org Cc: Dave Chinner da...@fromorbit.com Signed-off-by: Eric W. Biederman ebied...@xmission.com --- fs/xfs/xfs_iops.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff

[PATCH review 11/16] xfs: Modify xfs_qm_dqget to take a struct kqid.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - Modify xfs_qm_dqget, xfs_qm_dqattach_one, and xfs_qm_qutoacheck_dqadjust to take a struct kqid instead of an id and type pair. - Modify their callers to pass them a struct kqid. - Move xfs_qutoa_type into xfs_dquot.c where it is now used. Cc:

[PATCH review 14/16] xfs: Enable building with user namespaces enabled.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com Not that all of the types holding uids, gids, and projectids have been converted it is safe to allow users in different user namespaces to access an xfs filesystem. Cc: Ben Myers b...@sgi.com Cc: Alex Elder el...@kernel.org Cc: Dave Chinner

[PATCH review 13/16] xfs: Use q_id instead of q_core.d_id.

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - Use qid_lt on q_id when compariting two quota entries for order. - Use qid_eq or !qid_eq when comparing a quota entry for equality or inequality. - Use is_superquota when testing for the magic quota id of 0. - Use make_kqid_uid, make_kqid_gid, and

[PATCH review 05/16] xfs: Update xfs_ioctl_setattr to handle projids in any user namespace

2013-02-17 Thread Eric W. Biederman
From: Eric W. Biederman ebied...@xmission.com - Convert the userspace value in fa-fsx_projid into a kprojid and store it in the variable projid. - Verify that xfs can store the projid after it is converted into xfs's user namespace. - Replace uses of fa-fsx_projid with projid throughout

linux-next: manual merge of the pm tree with the pci tree

2013-02-17 Thread Stephen Rothwell
Hi Rafael, Today's linux-next merge of the pm tree got a conflict in drivers/acpi/scan.c between commits 668192b67820 (PCI: acpiphp: Move host bridge hotplug to pci_root.c) and ab1a2e038ff2 (ACPI / PCI: Make pci_slot built-in only, not a module) from the pci tree and commits 4daeaf68379f (ACPI /

[PATCH v2 2/2] cgroup: fix cgroup_path() vs rename() race, take 2

2013-02-17 Thread Li Zefan
rename() will change dentry-d_name. The result of this race can be worse than seeing partially rewritten name, but we might access a stale pointer because rename() will re-allocate memory to hold a longer name. As accessing dentry-name must be protected by dentry-d_lock or parent inode's i_mutex,

Re: [PATCH RFC 10/12] userns: Convert xfs to use kuid/kgid/kprojid where appropriate

2013-02-17 Thread Eric W. Biederman
Dave Chinner da...@fromorbit.com writes: On Wed, Feb 13, 2013 at 10:13:16AM -0800, Eric W. Biederman wrote: The crazy thing is that is that xfs appears to directly write their incore inode structure into their journal. Off topic, but it's actually a very sane thing to do. It's called

Re: [PATCH V2] smp: Give WARN()ing when calling smp_call_function_many()/single() in serving irq

2013-02-17 Thread Fengguang Wu
Chuansheng, It works fine on tip/next. Thanks for the fix! Tested-by: Fengguang Wu fengguang...@intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

prctl(PR_SET_MM)

2013-02-17 Thread Amnon Shiloh
Hello, The code in kernel/sys.c provides the prctl(PR_SET_MM) function, which is the only way a process can set or modify the following 11 per-process fields: start_code, end_code, start_data, end_data, start_brk, brk, start_stack, arg_start, arg_end, env_start, env_end. Being

Re: [PATCH] backlight: lm3630: remove ret = -EIO of lm3630_backlight_register()

2013-02-17 Thread gshark
2013년 02월 04일 09:14, Jingoo Han 쓴 글: There is no need to return -EIO, because backlight_device_register() already returns correct error values. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/video/backlight/lm3630_bl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

Re: Stupid user with user-space questions, matrix LED driving with user space code only.

2013-02-17 Thread Greg KH
On Sun, Feb 17, 2013 at 02:37:24PM +, Jonathan Andrews wrote: From a user perspective it seems a bit crap to have to change the kernel if you have a workload that preemption is harmful to. In the case of something like the Raspberry Pi changing the kernel if the distribution has not done

Re: [PATCH] HID: ntrig: use input_configured() callback to set the name

2013-02-17 Thread Rafi Rubin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Looks good, and I can confirm it works fine. Signed-off-by: Rafi Rubin r...@seas.upenn.edu On 02/08/13 09:51, Benjamin Tissoires wrote: The use of input_configured() allows the ntrig driver to actually change the name of the input and its bitmask

Re: BUG in find_pid_ns

2013-02-17 Thread Sasha Levin
On 02/17/2013 07:17 PM, ebied...@xmission.com wrote: The bad pointer value is 0xfff0. Hmm. If you have the failure location correct it looks like a corrupted hash entry was found while following the hash chain. It looks like the memory has been set to -16 -EBUSY? Weird. It

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

2013-02-17 Thread Axel Lin
This build error is introduced by commit 6a9fe8319 regulator: ab8500: Added get_optimum_mode on regulators with idle mode. CC drivers/regulator/ab8500.o drivers/regulator/ab8500.c:500:23: error: 'ab8500_regulator_fixed_ops' undeclared here (not in a function)

[RFT][PATCH 2/2] regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage

2013-02-17 Thread Axel Lin
Both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have volt_table setting, thus we can not use regulator_list_voltage_table for them. However, they have min_uV setting with n_voltages = 1, so use regulator_list_voltage_linear instead. Signed-off-by: Axel Lin axel@ingics.com ---

Re: [v3.8 Regression] watchdog: sp5100_tco: Add SB8x0 chipset support

2013-02-17 Thread Joseph Salisbury
On 02/17/2013 04:44 AM, Tanaka Takahisa wrote: Hi Joseph, 2013/2/15 Joseph Salisbury joseph.salisb...@canonical.com: On 02/15/2013 02:32 AM, Wim Van Sebroeck wrote: Hi Joseph, A bug was opened against the Ubuntu kernel[0]. It was found that reverting the following commit resolved this bug:

[RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be wrong, as I don't know kvm code, so correct me if I'm. /* * Race-free decouple logic (ordering is critical) */ static void

Re: [PATCH] Bluetooth: btmrvl_sdio: look for sd8688 firmware in alternate place

2013-02-17 Thread Ben Hutchings
On Sun, 2013-01-27 at 12:21 +0100, Lubomir Rintel wrote: On Mon, 2013-01-21 at 01:12 +, Ben Hutchings wrote: On Fri, 2013-01-18 at 08:33 +0100, Lubomir Rintel wrote: On Tue, 2013-01-08 at 22:35 -0800, Marcel Holtmann wrote: Hi Lubomir, linux-firmware ships the sd8688*

Re: [PATCH v9 4/4] sd: change to auto suspend mode

2013-02-17 Thread Aaron Lu
On Wed, Feb 06, 2013 at 10:51:19AM -0500, Alan Stern wrote: On Wed, 6 Feb 2013, Aaron Lu wrote: The if (err == -EAGAIN) test and the call to pm_schedule_suspend seem to have been dropped since v8 of this series. It looks like they ought to be moved into sdev_runtime_suspend. I

Re: usb_wwan_write() called while device still being resumed

2013-02-17 Thread Alex Courbot
On 02/15/2013 08:05 PM, Bjørn Mork wrote: Maybe something like the completely untested: diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 3148b10..38e19ba 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -512,6 +512,9 @@ static int

[RFT][PATCH] regulator: ab8500: Remove get_voltage_sel for fixed voltage

2013-02-17 Thread Axel Lin
Current code sets get_voltage_sel to ab8500_regulator_get_voltage_sel, however both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have voltage_bank, voltage_reg and voltage_mask settings. So it looks wrong to use ab8500_regulator_get_voltage_sel as get_voltage_sel callback in these

Re: [PATCH firmware] rtl_nic: update firmware for RTL8168G

2013-02-17 Thread Ben Hutchings
On Wed, 2013-02-06 at 23:18 +0800, Hayes Wang wrote: File: rtl_nic/rtl8168g-2.fw Version: 0.0.1 This firmware supports new fw setting mothod for linux kernel. Add MAC OCP settings for: -phy reset -PXE in ALDPS -pwron sequence -OBFF Signed-off-by: Hayes Wang hayesw...@realtek.com

linux-next: manual merge of the tip tree with the kbuild tree

2013-02-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in kernel/timeconst.pl between commit 70730bca1331 (kernel: Replace timeconst.pl with a bc script) from the kbuild tree and commit 63a3f603413f (timeconst.pl: Eliminate Perl warning) from the tip tree. I just droppped the tip tree

RE: [PATCH V2] watchdog: davinci_wdt: update to devm_* API

2013-02-17 Thread Kumar, Anil
Hi, On Fri, Feb 08, 2013 at 13:09:30, Kumar, Anil wrote: Update the code to use devm_* API so that driver core will manage resources. Signed-off-by: Kumar, Anil anilkuma...@ti.com --- This patch applies on top of v3.8-rc6. Tested on da850 EVM. Changes for V2: - Use return

Re: [RFC] sched: The removal of idle_balance()

2013-02-17 Thread Mike Galbraith
On Sun, 2013-02-17 at 16:54 -0500, Steven Rostedt wrote: On Sun, 2013-02-17 at 08:14 +0100, Mike Galbraith wrote: (And puts a dent in x264 ultrafast) What about my last patch? The one that avoids idle_balance() if the previous task was in a task_uninterruptible state. That one gave the

[PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
There is a quirk patch 5e5a4f5d5a08c9c504fe956391ac3dae2c66556d ata_piix: make DVD Drive recognisable on systems with Intel Sandybridge chipsets(v2) fixing the 4 ports IDE controller 32bit PIO mode. We've hit a problem with DVD not recognized on Haswell Desktop platform which includes Lynx

Re: [PATCH v2] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
As to my understanding Sergei did not suggest citing the whole commit message. I also find the numerous references to Sandy Bridge confusing as this is a fix for Lynx Point chipset. How about rephrasing the commit message in a way similar to the following one? --8- We've hit a

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Alex Williamson
On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be wrong, as I don't know kvm code, so correct me if I'm. /* * Race-free decouple logic

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
On 2013/2/18 12:02, Alex Williamson wrote: On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be wrong, as I don't know kvm code, so correct me if I'm.

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Alex Williamson
On Mon, 2013-02-18 at 12:09 +0800, Li Zefan wrote: On 2013/2/18 12:02, Alex Williamson wrote: On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
On 2013/2/18 12:09, Li Zefan wrote: On 2013/2/18 12:02, Alex Williamson wrote: On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be wrong, as I don't know

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

2013-02-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/host/ehci-vt8500.c between commit 148e11349b0c (usb: Convert to devm_ioremap_resource()) from the driver-core tree and commit d57ada0c37ec (USB: EHCI: make ehci-vt8500 a separate driver) from the usb tree. I fixed it

i915 black screen introduced by ACPI changes

2013-02-17 Thread Chris Li
My Lenovo Y580 laptop with FC18 start to get black screen after the kernel upgrade to 3.7.xxx The black screen happens about the time kernel switch to using VT console. At the point of black screen, no response of cap locks key led no network connection. The machine seems dead. The CPU is i7 and

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

2013-02-17 Thread Greg KH
On Mon, Feb 18, 2013 at 03:32:42PM +1100, Stephen Rothwell wrote: Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/host/ehci-vt8500.c between commit 148e11349b0c (usb: Convert to devm_ioremap_resource()) from the driver-core tree and commit d57ada0c37ec (USB:

Re: [PATCH v2] net: fix functions and variables related to netns_ipvs-sysctl_sync_qlen_max

2013-02-17 Thread Simon Horman
On Fri, Feb 15, 2013 at 11:39:34PM +0200, Julian Anastasov wrote: Hello, On Thu, 14 Feb 2013, Andrew Morton wrote: On Thu, 7 Feb 2013 10:40:26 +0200 (EET) Julian Anastasov j...@ssi.bg wrote: Another question about the sysctl_sync_qlen_max: This variable is assigned as:

cpuidle sizes (Re: [PATCH 14/16] intel_idle: remove use and definition of MWAIT_MAX_NUM_CSTATES)

2013-02-17 Thread Len Brown
On 02/12/2013 05:43 PM, Daniel Lezcano wrote: On 02/12/2013 12:46 AM, Len Brown wrote: On 02/11/2013 03:53 AM, Daniel Lezcano wrote: On 02/09/2013 02:08 AM, Len Brown wrote: The reason to change is that intel_idle will soon be able to export more than the 8 major states supported by MWAIT.

linux-next: manual merge of the arm-soc tree with the input tree

2013-02-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/input/keyboard/tegra-kbc.c between commit 9eee07d39fa6 (Input: tegra-kbc - require CONFIG_OF, remove platform data) from the input tree and commit 61fd290d213e (ARM: tegra: migrate to new clock code) from the arm-soc

Re: Stupid user with user-space questions, matrix LED driving with user space code only.

2013-02-17 Thread Jonathan Andrews
On Sun, 2013-02-17 at 18:05 -0800, Greg KH wrote: On Sun, Feb 17, 2013 at 02:37:24PM +, Jonathan Andrews wrote: From a user perspective it seems a bit crap to have to change the kernel if you have a workload that preemption is harmful to. In the case of something like the Raspberry

Re: [PATCH v3 1/1] tools/power x86_energy_perf_policy: fix cpuid for i686

2013-02-17 Thread Len Brown
Hi Benson, checkpatch.pl doesn't love this syntax: ERROR: spaces required around that ':' (ctx:ExV) #113: FILE: tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c:142: + :+a (_eax), =S (_ebx), =c (_ecx), =d (_edx) ^ ERROR: spaces required

[patch v5 0/15] power aware scheduling

2013-02-17 Thread Alex Shi
Since the simplification of fork/exec/wake balancing has much arguments, I removed that part in the patch set. This patch set implement/consummate the rough power aware scheduling proposal: https://lkml.org/lkml/2012/8/13/139. It defines 2 new power aware policy 'balance' and 'powersaving', then

[patch v5 02/15] sched: set initial load avg of new forked task

2013-02-17 Thread Alex Shi
New task has no runnable sum at its first runnable time, so its runnable load is zero. That makes burst forking balancing just select few idle cpus to assign tasks if we engage runnable load in balancing. Set initial load avg of new forked task as its load weight to resolve this issue.

[patch v5 10/15] sched: packing transitory tasks in wake/exec power balancing

2013-02-17 Thread Alex Shi
If the waked/execed task is transitory enough, it will has a chance to be packed into a cpu which is busy but still has time to care it. For powersaving policy, only the history util 25% task has chance to be packed, and for balance policy, only histroy util 12.5% has chance. If there is no cpu

[patch v5 11/15] sched: add power/performance balance allow flag

2013-02-17 Thread Alex Shi
If a sched domain is idle enough for regular power balance, power_lb will be set, perf_lb will be clean. If a sched domain is busy, their value will be set oppositely. If the domain is suitable for power balance, but balance should not be down by this cpu(this cpu is already idle or full), both

[patch v5 13/15] sched: no balance for prefer_sibling in power scheduling

2013-02-17 Thread Alex Shi
In power aware scheduling, we don't want to balance 'prefer_sibling' groups just because local group has capacity. If the local group has no tasks at the time, that is the power balance hope so. Signed-off-by: Alex Shi alex@intel.com --- kernel/sched/fair.c | 6 +- 1 file changed, 5

[patch v5 14/15] sched: power aware load balance

2013-02-17 Thread Alex Shi
This patch enabled the power aware consideration in load balance. As mentioned in the power aware scheduler proposal, Power aware scheduling has 2 assumptions: 1, race to idle is helpful for power saving 2, less active sched_groups will reduce power consumption The first assumption make

[patch v5 15/15] sched: lazy power balance

2013-02-17 Thread Alex Shi
When active task number in sched domain waves around the power friendly scheduling creteria, scheduling will thresh between the power friendly balance and performance balance, bring unnecessary task migration. The typical benchmark is 'make -j x'. To remove such issue, introduce a u64

[patch v5 12/15] sched: pull all tasks from source group

2013-02-17 Thread Alex Shi
In power balance, we hope some sched groups are fully empty to save CPU power of them. So, we want to move any tasks from them. Signed-off-by: Alex Shi alex@intel.com --- kernel/sched/fair.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c

[patch v5 03/15] Revert sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking

2013-02-17 Thread Alex Shi
Remove CONFIG_FAIR_GROUP_SCHED that covers the runnable info, then we can use runnable load variables. Signed-off-by: Alex Shi alex@intel.com --- include/linux/sched.h | 8 +--- kernel/sched/core.c | 7 +-- kernel/sched/fair.c | 13 ++--- kernel/sched/sched.h | 9

[patch v5 09/15] sched: add power aware scheduling in fork/exec/wake

2013-02-17 Thread Alex Shi
This patch add power aware scheduling in fork/exec/wake. It try to select cpu from the busiest while still has utilization group. That's will save power since it leaves more groups idle in system. The trade off is adding a power aware statistics collection in group seeking. But since the

[patch v5 08/15] sched: move sg/sd_lb_stats struct ahead

2013-02-17 Thread Alex Shi
Power aware fork/exec/wake balancing needs both of structs in incoming patches. So move ahead before it. Signed-off-by: Alex Shi alex@intel.com --- kernel/sched/fair.c | 101 ++-- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git

[patch v5 04/15] sched: add sched balance policies in kernel

2013-02-17 Thread Alex Shi
Current scheduler behavior is just consider for larger performance of system. So it try to spread tasks on more cpu sockets and cpu cores To adding the consideration of power awareness, the patchset adds 2 kinds of scheduler policy: powersaving and balance. They will use runnable load util in

[patch v5 07/15] sched: add new sg/sd_lb_stats fields for incoming fork/exec/wake balancing

2013-02-17 Thread Alex Shi
For power aware balancing, we care the sched domain/group's utilizations more than their load weight. So add: sd_lb_stats.sd_utils and sg_lb_stats.group_utils. We want to know the sd capacity, so add: sd_lb_stats.sd_capacity. And want to know which group is busiest but still has free time to

[patch v5 05/15] sched: add sysfs interface for sched_balance_policy selection

2013-02-17 Thread Alex Shi
This patch add the power aware scheduler knob into sysfs: $cat /sys/devices/system/cpu/sched_balance_policy/available_sched_balance_policy performance powersaving balance $cat /sys/devices/system/cpu/sched_balance_policy/current_sched_balance_policy powersaving This means the using sched balance

Re: [PATCH v2 0/4] nfsd: make is works in a container

2013-02-17 Thread Stanislav Kinsbursky
15.02.2013 20:20, J. Bruce Fields пишет: On Fri, Feb 01, 2013 at 03:56:05PM +0300, Stanislav Kinsbursky wrote: This patch set finally enables NFSd in container. I've tested it in container with it's own root, and also pid, net and mount namespaces. Thanks, these look fine to me; applying.

[patch v5 06/15] sched: log the cpu utilization at rq

2013-02-17 Thread Alex Shi
The cpu's utilization is to measure how busy is the cpu. util = cpu_rq(cpu)-avg.runnable_avg_sum / cpu_rq(cpu)-avg.runnable_avg_period; Since the util is no more than 1, we use its percentage value in later caculations. And set the the FULL_UTIL as 100%. In later power

[patch v5 01/15] sched: set initial value for runnable avg of sched entities.

2013-02-17 Thread Alex Shi
We need initialize the se.avg.{decay_count, load_avg_contrib} to zero after a new task forked. Otherwise random values of above variables cause mess when do new task enqueue: enqueue_task_fair enqueue_entity enqueue_entity_load_avg Signed-off-by: Alex Shi

[PATCH 0/4] mfd: Palmas: Correct the DT Node properties naming convention and add documentation.

2013-02-17 Thread J Keerthy
The series corrects the DT node properties naming convention and adds Documentation for the Palmas PMIC. Graeme Gregory (1): documentation: add palmas dts definition J Keerthy (3): mfd: palmas: Change the DT node property names to follow the convention regulator: palmas: Removing

[PATCH 1/4] documentation: add palmas dts definition

2013-02-17 Thread J Keerthy
From: Graeme Gregory g...@slimlogic.co.uk Add the DTS definition for the palmas device including the MFD children. Signed-off-by: Graeme Gregory g...@slimlogic.co.uk [j-keer...@ti.com: changed the DT node property names to follow the convention] Signed-off-by: J Keerthy j-keer...@ti.com ---

[PATCH 1/5 RESEND] video: s3c-fb: use ARCH_ dependancy

2013-02-17 Thread Jingoo Han
This patch uses ARCH_ dependancy when using s3c-fb. S3C_DEV_FB, S5P_DEV_FIMD0 cannot be enabled on EXYNOS5. So, ARCH_ should be used as dependancy for s3c-fb. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/video/Kconfig |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)

[PATCH 2/5 RESEND] video: s3c-fb: remove duplicated S3C_FB_MAX_WIN

2013-02-17 Thread Jingoo Han
S3C_FB_MAX_WIN is already defined in 'plat-samsung/include/plat/fb.h'. So, this definition in 'include/video/samsung_fimd.h' should be removed to avoid the duplication. Signed-off-by: Jingoo Han jg1@samsung.com --- include/video/samsung_fimd.h |2 -- 1 files changed, 0 insertions(+), 2

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

2013-02-17 Thread J Keerthy
DT node properties should not have _. Replacing them by -. Signed-off-by: J Keerthy j-keer...@ti.com --- drivers/mfd/palmas.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 6ffd7a2..d8467cf 100644 ---

[PATCH 3/4] regulator: palmas: Removing duplicated code

2013-02-17 Thread J Keerthy
Removing duplicate assignment in the existing code. Signed-off-by: J Keerthy j-keer...@ti.com --- drivers/regulator/palmas-regulator.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index

[PATCH 3/5 RESEND] video: s3c-fb: remove unnecessary brackets

2013-02-17 Thread Jingoo Han
This patch removes unnecessary brackets and the duplicated VIDTCON2 definition. Also, header comment is modified, because EXYNOS series is supported and mach/regs-fb.h is not available. Signed-off-by: Jingoo Han jg1@samsung.com --- include/video/samsung_fimd.h | 199

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

2013-02-17 Thread J Keerthy
DT node properties should not have _. Replacing them by -. Signed-off-by: J Keerthy j-keer...@ti.com --- drivers/regulator/palmas-regulator.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/palmas-regulator.c

[PATCH 4/5 RESEND] video: s3c-fb: add the bit definitions for CSC EQ709 and EQ601

2013-02-17 Thread Jingoo Han
This patch adds the bit definitions for CSC EQ709 and EQ601. These definitons are used to control the CSC parameter such as equation 709 and equation 601. Signed-off-by: Jingoo Han jg1@samsung.com --- include/video/samsung_fimd.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

Re: [PATCH v3 1/1] tools/power x86_energy_perf_policy: fix cpuid for i686

2013-02-17 Thread Mike Frysinger
On Thursday 14 February 2013 14:35:58 Benson Leung wrote: + asm volatile (mov %%ebx, %%edi; /* save ebx (for PIC) */ + cpuid; + mov %%ebx, %%esi; /* pass to caller */ + mov %%edi, %%ebx; /* restore ebx */ + :+a

[PATCH 5/5 RESEND] video: s3c-fb: Fix typo in definition of VIDCON1_VSTATUS_FRONTPORCH value

2013-02-17 Thread Jingoo Han
From: Tomasz Figa t.f...@samsung.com The correct value for VIDCON1_VSTATUS_FRONTPORCH is 3, not 0. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Jingoo Han jg1@samsung.com --- include/video/samsung_fimd.h |2 +- 1

<    1   2   3   4   5   6   7   >