Re: [PATCH 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-08-25 Thread Michael S. Tsirkin
On Fri, Aug 23, 2013 at 04:50:38PM +0800, Jason Wang wrote: On 08/20/2013 10:33 AM, Jason Wang wrote: On 08/16/2013 05:54 PM, Michael S. Tsirkin wrote: On Fri, Aug 16, 2013 at 01:16:26PM +0800, Jason Wang wrote: Switch to use vhost_add_used_and_signal_n() to avoid multiple calls to

Re: [PATCH 6/6] vhost_net: remove the max pending check

2013-08-25 Thread Michael S. Tsirkin
On Fri, Aug 23, 2013 at 04:55:49PM +0800, Jason Wang wrote: On 08/20/2013 10:48 AM, Jason Wang wrote: On 08/16/2013 06:02 PM, Michael S. Tsirkin wrote: On Fri, Aug 16, 2013 at 01:16:30PM +0800, Jason Wang wrote: We used to limit the max pending DMAs to prevent guest from pinning too

Re: [PATCH 1/2] acpi-dma, doc: append managed function to the list

2013-08-25 Thread Vinod Koul
On Wed, Aug 21, 2013 at 02:27:05PM +0300, Andy Shevchenko wrote: ACPI DMA provides managed function to register the slave DMA controller in the internal container. This patch anounces that function in the corresponding documentation file. Applied, thanks ~Vinod -- To unsubscribe from this

Re: [PATCH 1/4] zswap bugfix: memory leaks when re-swapon

2013-08-25 Thread Weijie Yang
2013/8/23 Seth Jennings sjenn...@linux.vnet.ibm.com: On Fri, Aug 23, 2013 at 07:03:37PM +0800, Weijie Yang wrote: zswap_tree is not freed when swapoff, and it got re-kzalloc in swapon, memory leak occurs. Add check statement in zswap_frontswap_init so that zswap_tree is inited only once.

Vážení E-mail užívateľa;

2013-08-25 Thread Šubert Ladislav
Vážení E-mail užívateľa; Prekročili ste 23432 boxy nastaviť svoje Webová služba / Administrátor, a budete mať problémy pri odosielaní a prijímať e-maily, kým znova overiť. Musíte aktualizovať kliknutím na odkaz nižšie a vyplňte údaje pre overenie vášho účtu Prosím,  kliknite na odkaz nižšie

Re: [PATCH V12 3/5] kvm : Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration

2013-08-25 Thread Gleb Natapov
On Wed, Aug 07, 2013 at 12:40:36AM +0530, Raghavendra K T wrote: On 08/07/2013 12:02 AM, Eric Northup wrote: If this is about migration correctness, could it get folded into the previous patch 2/5, so that there's not a broken commit which could hurt bisection? Yes. It could be. Only

Re: [PATCH] Documentation/trace: Correcting and extending tracepoint documentation

2013-08-25 Thread Rob Landley
On 08/22/2013 04:49:31 PM, Zoltan Kiss wrote: The sample missed the moving of the header files into the events subdirectory. I've also extended it based on the existing headers, and mentioned the tiny but important role of CREATE_TRACE_POINTS. Signed-off-by: Zoltan Kiss

Re: [PATCH v2] vfs: Tighten up linkat(..., AT_EMPTY_PATH)

2013-08-25 Thread Al Viro
On Sun, Aug 25, 2013 at 12:26:34AM -0700, Andy Lutomirski wrote: I think this is more screwed up than just flink and open. For example: $ echo 'WTF' test $ truncate -s 1 /proc/self/fd/3 3test $ cat test W$ IMO that should have failed. Why? truncate() always follows links, so what's

RE: Asus F5RL laptop unable to resume from S3 because of radeon module

2013-08-25 Thread Deucher, Alexander
-Original Message- From: Ondrej Zary [mailto:li...@rainbow-software.org] Sent: Friday, August 23, 2013 1:55 PM To: Deucher, Alexander Cc: Kernel development list Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module On Friday 23 August 2013 00:08:33

Re: [PATCH 2/2] ppc: kvm: use anon_inode_getfd() with O_CLOEXEC flag

2013-08-25 Thread Alexander Graf
On 24.08.2013, at 21:14, Yann Droneaud wrote: KVM uses anon_inode_get() to allocate file descriptors as part of some of its ioctls. But those ioctls are lacking a flag argument allowing userspace to choose options for the newly opened file descriptor. In such case it's advised to use

Re: [PATCH v5] media: i2c: tvp7002: add OF support

2013-08-25 Thread naim . dahnoun
Sent from my iPhone On 23 Aug 2013, at 18:25, Sylwester Nawrocki s.nawro...@samsung.com wrote: On 08/13/2013 03:00 AM, Kumar Gala wrote: On Aug 11, 2013, at 1:25 AM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com add OF support for the tvp7002 driver.

Re: [PATCH RFC 1/2] PM / Hibernate: use name_to_dev_t to parse resume

2013-08-25 Thread Pavel Machek
Hi! Use the name_to_dev_t call to parse the device name echo'd to to /sys/power/resume. This imitates the method used in hibernate.c in software_resume, and allows the resume partition to be specified using other equivalent device formats as well. By allowing /sys/debug/resume to accept

[REGRESSION 3.11-rc] wm8775 9-001b: I2C: cannot write ??? to register R??

2013-08-25 Thread Knut Petersen
Booting current git kernel dmesg shows a set of new warnings: wm8775 9-001b: I2C: cannot write ??? to register R?? Nevertheless, the hardware seems to work fine. This is a new problem, introduced after kernel 3.10. If necessary I can bisect. dmesg snippet: [ 11.841431] Linux video

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Oleg Nesterov
Hi Willy, On 08/24, Willy Tarreau wrote: On Sat, Aug 24, 2013 at 08:29:39PM +0200, Oleg Nesterov wrote: On 08/22, Willy Tarreau wrote: It's not only that, it also supports sockets and pipes that you can access via /proc/pid/fd and not via a real symlink which would try to open eg

Re: [PATCH 02/18] asymmetric keys: implement EMSA_PKCS1-v1_5-ENCODE in rsa

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:41, Lee, Chun-Yi wrote: Implement EMSA_PKCS1-v1_5-ENCODE [RFC3447 sec 9.2] in rsa.c. It's the first step of signature generation operation (RSASSA-PKCS1-v1_5-SIGN). Is this your own code, or did you copy it from somewhere? + if (!T) + goto error_T; +

[PATCH] regulator: Add devm_regulator_get_exclusive()

2013-08-25 Thread Matthias Kaehlcke
Add a resource managed regulator_get_exclusive() Signed-off-by: Matthias Kaehlcke matth...@kaehlcke.net --- drivers/regulator/core.c | 30 ++ include/linux/regulator/consumer.h |2 ++ 2 files changed, 32 insertions(+) diff --git

Re: [PATCH 03/18] asymmetric keys: separate the length checking of octet string from RSA_I2OSP

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:42, Lee, Chun-Yi wrote: Due to RSA_I2OSP is not only used by signature verification path but also used in signature generation path. So, separate the length checking of octet string because it's not for generate 0x00 0x01 leading string when used in signature

Re: [PATCH 06/18] asymmetric keys: support parsing PKCS #8 private key information

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:45, Lee, Chun-Yi wrote: Add ASN.1 files and parser to support parsing PKCS #8 noncompressed private key information. It's better than direct parsing pure private key because PKCS #8 has a privateKeyAlgorithm to indicate the algorithm of private key, e.g. RSA from PKCS

Re: [PATCH 07/18] asymmetric keys: explicitly add the leading zero byte to encoded message

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:46, Lee, Chun-Yi wrote: Per PKCS1 spec, the EMSA-PKCS1-v1_5 encoded message is leading by 0x00 0x01 in its first 2 bytes. The leading zero byte is suppressed by MPI so we pass a pointer to the _preceding_ byte to RSA_verify() in original code, but it has risk for the

Re: [PATCH 08/18] Secure boot: Add new capability

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:47, Lee, Chun-Yi wrote: From: Matthew Garrett m...@redhat.com Secure boot adds certain policy requirements, including that root must not be able to do anything that could cause the kernel to execute arbitrary code. The simplest way to handle this would seem to be to

Re: [PATCH 09/18] Secure boot: Add a dummy kernel parameter that will switch on Secure Boot mode

2013-08-25 Thread Pavel Machek
You may want to check subject. If it does something, it is not dummy. --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -2784,6 +2784,13 @@ bytes respectively. Such letter suffixes can also be entirely omitted. Note: increases power

Re: [PATCH 10/18] efi: Enable secure boot lockdown automatically when enabled in firmware

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:49, Lee, Chun-Yi wrote: From: Matthew Garrett m...@redhat.com The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should lock itself down. We also indicate the machine is in secure boot

Re: [PATCH 11/18] Hibernate: introduced RSA key-pair to verify signature of snapshot

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:50, Lee, Chun-Yi wrote: Introduced a hibernate_key.c file to query the key pair from EFI variables and maintain key pair for check signature of S4 snapshot image. We loaded the private key when snapshot image stored success. This patch introduced 2 EFI variables for

Re: [PATCH 10/18] efi: Enable secure boot lockdown automatically when enabled in firmware

2013-08-25 Thread Matthew Garrett
On Sun, Aug 25, 2013 at 06:22:43PM +0200, Pavel Machek wrote: On Thu 2013-08-22 19:01:49, Lee, Chun-Yi wrote: From: Matthew Garrett m...@redhat.com The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should

Re: [PATCH 12/18] Hibernate: generate and verify signature of snapshot

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:51, Lee, Chun-Yi wrote: This patch add the code for generate/verify signature of snapshot, it put the signature to snapshot header. This approach can support both on userspace hibernate and in-kernel hibernate. v2: - Due to loaded S4 sign key before ExitBootServices,

Re: [PATCH 13/18] Hibernate: Avoid S4 sign key data included in snapshot image

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:52, Lee, Chun-Yi wrote: This patch add swsusp_page_is_sign_key() method to hibernate_key.c and check the page is S4 sign key data when collect saveable page in snapshot.c to avoid sign key data included in snapshot image. Reviewed-by: Jiri Kosina jkos...@suse.cz

Re: [PATCH 15/18] Hibernate: adapt to UEFI secure boot with signature check

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:54, Lee, Chun-Yi wrote: In current solution, the snapshot signature check used the RSA key-pair that are generated by bootloader(e.g. shim) and pass the key-pair to kernel through EFI variables. I choice to binding the snapshot signature check mechanism with UEFI secure

Re: [PATCH 17/18] Hibernate: introduced SNAPSHOT_SIG_HASH config for select hash algorithm

2013-08-25 Thread Pavel Machek
On Thu 2013-08-22 19:01:56, Lee, Chun-Yi wrote: This patch introduced SNAPSHOT_SIG_HASH config for user to select which hash algorithm will be used during signature generation of snapshot. v2: Add define check of oCONFIG_SNAPSHOT_VERIFICATION in snapshot.c before declare pkey_hash().

Re: [PATCH v2] vfs: Tighten up linkat(..., AT_EMPTY_PATH)

2013-08-25 Thread Andy Lutomirski
On Sun, Aug 25, 2013 at 7:23 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Aug 25, 2013 at 12:26:34AM -0700, Andy Lutomirski wrote: I think this is more screwed up than just flink and open. For example: $ echo 'WTF' test $ truncate -s 1 /proc/self/fd/3 3test $ cat test W$ IMO that

Re: Asus F5RL laptop unable to resume from S3 because of radeon module

2013-08-25 Thread Ondrej Zary
On Sunday 25 August 2013 16:51:06 Deucher, Alexander wrote: -Original Message- From: Ondrej Zary [mailto:li...@rainbow-software.org] Sent: Friday, August 23, 2013 1:55 PM To: Deucher, Alexander Cc: Kernel development list Subject: Re: Asus F5RL laptop unable to resume from S3

[PATCH] acpi: blacklist win8 OSI for buggy laptops

2013-08-25 Thread Felipe Contreras
Since v3.7 the acpi backlight driver doesn't work correctly in several machines because ACPI code has different code for Windows 8, and the rest. The commit ea45ea7 (in v3.11-rc2) tried to fix this problem by using the intel backlight driver, however it introduced several other issues in

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-25 Thread Paul E. McKenney
On Sun, Aug 25, 2013 at 11:19:37PM +0800, Lai Jiangshan wrote: Hi, Steven Any comments about this patch? For whatever it is worth, it ran without incident for two hours worth of rcutorture on my P5 test (boosting but no CPU hotplug). Lai, do you have a specific test for this patch? Your

Re: [PATCH v2] ARM: dts: exynos5420/5250: add ADC device tree node

2013-08-25 Thread Kukjin Kim
On 08/23/13 17:02, Naveen Krishna Chatradhi wrote: Add ADC device tree node for exynos5420 and exynos5250 Signed-off-by: Naveen Krishna Chatradhich.nav...@samsung.com Signed-off-by: Doug Andersondiand...@chromium.org --- Added recipients accordingly, ./scripts/get_maintainer.pl -f of the

[PATCH 1/1] anon_inodefs: forbid open via /proc

2013-08-25 Thread Oleg Nesterov
open(/proc/pid/$anon-fd) should fail, we can't create the new file with correct f_op/etc correctly. Currently this creates the bogus file with the empty anon_inode_fops, this is harmless but still wrong and misleading. Add anon_inode_fops-anon_open() which simply returns ENXIO like sock_no_open()

[PATCH 0/1] anon_inodefs: forbid open via /proc

2013-08-25 Thread Oleg Nesterov
On 08/25, Oleg Nesterov wrote: I find it hard to believe that anything actually relies on open(2) succeeding, given that it returns an fd with the wrong f_ops. OK, let me send the patch then. I won't argue if it is ignored or nacked. Damn. Sorry for noise, I removed lkml by accident, let

[GIT PATCH] Staging driver fixes for 3.11-rc7

2013-08-25 Thread Greg KH
The following changes since commit d4e4ab86bcba5a72779c43dc1459f71fea3d89c8: Linux 3.11-rc5 (2013-08-11 18:04:20 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.11-rc7 for you to fetch changes up to

[GIT PATCH] USB fixes for 3.11-rc7

2013-08-25 Thread Greg KH
The following changes since commit b36f4be3de1b123d8601de062e7dbfc904f305fb: Linux 3.11-rc6 (2013-08-18 14:36:53 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.11-rc7 for you to fetch changes up to

Re: [RFC PATCH 3/4] gcov: compile specific gcov implementation based on gcc version

2013-08-25 Thread Arnd Bergmann
On Saturday 24 August 2013, Frantisek Hrbata wrote: If I understand it correctly, this would mean that you will be able to use only one implementation of gcov format at the time. Meaning you will be able to get coverage data for module, but not for kernel if it was compiled with different

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Linus Torvalds
On Sat, Aug 24, 2013 at 10:23 PM, Al Viro v...@zeniv.linux.org.uk wrote: We are really stuck with the current semantics here - switching to *BSD one would not only mean serious surgery on descriptor handling (it's one of the wartier areas in *BSD VFS, in large part because of

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Linus Torvalds
On Sat, Aug 24, 2013 at 11:50 PM, Willy Tarreau w...@1wt.eu wrote: Thanks for explaining Al, that really helps me understand. However there's still a difference between /proc/pid called from the process itself (=/proc/self) and called from other processes that seems to suit the situation :

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Al Viro
On Sun, Aug 25, 2013 at 11:32:45AM -0700, Linus Torvalds wrote: On Sat, Aug 24, 2013 at 10:23 PM, Al Viro v...@zeniv.linux.org.uk wrote: We are really stuck with the current semantics here - switching to *BSD one would not only mean serious surgery on descriptor handling (it's one of the

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Andy Lutomirski
On Sun, Aug 25, 2013 at 11:32 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Sat, Aug 24, 2013 at 10:23 PM, Al Viro v...@zeniv.linux.org.uk wrote: We are really stuck with the current semantics here - switching to *BSD one would not only mean serious surgery on descriptor handling

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Paul E. McKenney
On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: [ . . . ] Don't get me wrong, I do welcome appropriate patches. In fact, if you look at RCU's git history, you will see

Re: [PATCH tip/core/rcu 1/5] rcu: Add duplicate-callback tests to rcutorture

2013-08-25 Thread Paul E. McKenney
On Sat, Aug 24, 2013 at 03:25:36PM -0400, Mathieu Desnoyers wrote: * Paul E. McKenney (paul...@linux.vnet.ibm.com) wrote: [...] The result is as follows. Better? Hi Paul, Pitching in late in the thread, so that I can get a share of the fun ;-)

Re: [PATCH V3] gpio: New driver for LSI ZEVIO SoCs

2013-08-25 Thread Fabian Vogt
Hi, On 08/07/2013 06:53 AM, Fabian Vogt wrote: This driver supports the GPIO controller found in LSI ZEVIO SoCs. It has been successfully tested on a TI nspire CX calculator. diff --git a/Documentation/devicetree/bindings/gpio/gpio-zevio.txt

Re: [PATCH] acpi: blacklist win8 OSI for buggy laptops

2013-08-25 Thread Rafael J. Wysocki
On Sunday, August 25, 2013 12:37:33 PM Felipe Contreras wrote: Since v3.7 the acpi backlight driver doesn't work correctly in several machines because ACPI code has different code for Windows 8, and the rest. The commit ea45ea7 (in v3.11-rc2) tried to fix this problem by using the intel

Re: [PATCH] mmc: omap_hsmmc: clear status flags before starting a new command

2013-08-25 Thread Balaji T K
On Saturday 29 June 2013 11:55 AM, Francesco Lavra wrote: Commit 1f6b9fa40e76fffaaa0b3bd6a0bfdcf1cdc06efa consolidated writes to the STAT register in one location, moving them from omap_hsmmc_do_irq() to omap_hsmmc_irq(). This move has the unwanted side effect that the controller status flags

Re: [PATCH] mmc: omap_hsmmc: clear status flags before starting a new command

2013-08-25 Thread Chris Ball
Hi, On Sun, Aug 25 2013, Balaji T K wrote: On Saturday 29 June 2013 11:55 AM, Francesco Lavra wrote: Commit 1f6b9fa40e76fffaaa0b3bd6a0bfdcf1cdc06efa consolidated writes to the STAT register in one location, moving them from omap_hsmmc_do_irq() to omap_hsmmc_irq(). This move has the unwanted

[PATCH V4] gpio: New driver for LSI ZEVIO SoCs

2013-08-25 Thread Fabian Vogt
This driver supports the GPIO controller found in LSI ZEVIO SoCs. It has been successfully tested on a TI nspire CX calculator. --- .../devicetree/bindings/gpio/gpio-zevio.txt| 18 ++ drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile

Re: Unusually high system CPU usage with recent kernels

2013-08-25 Thread Tibor Billes
From: Paul E. McKenney Sent: 08/24/13 11:03 PM On Sat, Aug 24, 2013 at 09:59:45PM +0200, Tibor Billes wrote: From: Paul E. McKenney Sent: 08/22/13 12:09 AM On Wed, Aug 21, 2013 at 11:05:51PM +0200, Tibor Billes wrote: From: Paul E. McKenney Sent: 08/21/13 09:12 PM On Wed, Aug 21,

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Oleg Nesterov
Cough. I am going off-topic again, but I can't resist... On 08/25, Linus Torvalds wrote: Look at the code that creates the fd stat information, for example. It's in tid_fd_revalidate(), and it really doesn't make much sense to use the task credentials for it. Or pid_revalidate(), but my

Re: [PATCH v2] vfs: Tighten up linkat(..., AT_EMPTY_PATH)

2013-08-25 Thread Linus Torvalds
On Sat, Aug 24, 2013 at 8:37 PM, Al Viro v...@zeniv.linux.org.uk wrote: FWIW, I'm tempted to try the following trick: * introduce FMODE_FLINK in file-f_mode; O_TMPFILE would set it, unless O_EXCL is present. * introduce LOOKUP_LINK, to be passed by sys_linkat() when resolving

[PATCH] driver core / ACPI: Avoid device removal locking problems

2013-08-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com There are two mutexes, device_hotplug_lock and acpi_scan_lock, held around the acpi_bus_trim() call in acpi_scan_hot_remove() which generally removes devices (it removes ACPI device objects at least, but it may also remove physical device objects

Re: [PATCH v2] vfs: Tighten up linkat(..., AT_EMPTY_PATH)

2013-08-25 Thread Al Viro
On Sun, Aug 25, 2013 at 12:57:25PM -0700, Linus Torvalds wrote: Yes. I think we should do this, but I think we should also look at what _other_ LOOKUP_xyz we should do for the /proc case. For the read-only fd case, we should have a LOOKUP_WRITE flag, and return -EPERM if an operation is a

Re: /proc/pid/fd anon_inode_fops

2013-08-25 Thread Linus Torvalds
On Sun, Aug 25, 2013 at 12:48 PM, Oleg Nesterov o...@redhat.com wrote: Or pid_revalidate(), but my concern is task_dumpable() logic. pid_revalidate() does inode-i_*id = GLOBAL_ROOT_*ID if task_dumpable() fails, but it can fail simply because -mm = NULL. This means that almost everything in

Re: [PATCH v2] vfs: Tighten up linkat(..., AT_EMPTY_PATH)

2013-08-25 Thread Linus Torvalds
On Sun, Aug 25, 2013 at 1:06 PM, Al Viro v...@zeniv.linux.org.uk wrote: Timestamp updates, chmod/chown, xattr mess... Ok, so that's just too much details. So I'll just go back to square one, and wonder if we could/should just make the rule be that in order to be in that LAST_BIND case, you

Re: [PATCH V2] PCI: exynos: add support for MSI

2013-08-25 Thread Arnd Bergmann
On Friday 23 August 2013, Thierry Reding wrote: + if (IS_ENABLED(CONFIG_PCI_MSI)) { + if (of_property_read_u32(np, msi-base, pp-msi_irq_start)) { + dev_err(pp-dev, Failed to parse the number of lanes\n); + return

Re: [PATCHv3 02/10] clk: sunxi: fix initialization of basic clocks

2013-08-25 Thread Mike Turquette
Quoting Maxime Ripard (2013-08-04 02:47:29) From: Emilio López emi...@elopez.com.ar With the recent move towards CLK_OF_DECLARE(...), the driver stopped initializing osc32k, which is compatible fixed-clock. This is because we never called of_clk_init(NULL). Fix this by moving the only other

Re: [PATCH] driver core / ACPI: Avoid device removal locking problems

2013-08-25 Thread Greg Kroah-Hartman
On Sun, Aug 25, 2013 at 10:09:47PM +0200, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com There are two mutexes, device_hotplug_lock and acpi_scan_lock, held around the acpi_bus_trim() call in acpi_scan_hot_remove() which generally removes devices (it removes ACPI

Re: [PATCH 07/15] Input: gameport: convert bus code to use drv_groups

2013-08-25 Thread Greg Kroah-Hartman
On Sat, Aug 24, 2013 at 04:33:18PM -0700, Dmitry Torokhov wrote: On Fri, Aug 23, 2013 at 02:24:33PM -0700, Greg Kroah-Hartman wrote: The drv_attrs field of struct bus_type is going away soon, drv_groups should be used instead. This converts the gameport bus code to use the correct field.

Re: Asus F5RL laptop unable to resume from S3 because of radeon module

2013-08-25 Thread Ondrej Zary
On Sunday 25 August 2013 19:12:32 Ondrej Zary wrote: On Sunday 25 August 2013 16:51:06 Deucher, Alexander wrote: -Original Message- From: Ondrej Zary [mailto:li...@rainbow-software.org] Sent: Friday, August 23, 2013 1:55 PM To: Deucher, Alexander Cc: Kernel development list

[PATCH V6 0/2] iio: input: ti_am335x_adc: Add continuous sampling support

2013-08-25 Thread Zubair Lutfullah
This applies to togreg branch in iio. Round 6 updates Fixed trigger the way iio list wanted. Driver has its own trigger. Triggers at every FIFO Threshold IRQ and pushes samples to iio buffer. Went through the driver and cleaned it up quite a bit. Squashed patches together instead of having

[PATCH 1/2] input: ti_am335x_tsc: Enable shared IRQ for TSC

2013-08-25 Thread Zubair Lutfullah
Enable shared IRQ to allow ADC to share IRQ line from parent MFD core. Only FIFO0 IRQs are for TSC and handled on the TSC side. Step mask would be updated from cached variable only previously. In rare cases when both TSC and ADC are used, the cached variable gets mixed up. The step mask is

[PATCH 2/2] iio: ti_am335x_adc: Add continuous sampling support

2013-08-25 Thread Zubair Lutfullah
Previously the driver had only one-shot reading functionality. This patch adds triggered buffer support to the driver. Continuous sampling starts when buffer is enabled. And samples are pushed to userpace by the trigger which triggers automatically at every hardware interrupt of FIFO1 filling

Re: [PATCH 3/3] thinkpad_acpi: Wire unused micmute LED to capslock

2013-08-25 Thread Jason A. Donenfeld
On Fri, Aug 23, 2013 at 8:18 PM, Henrique de Moraes Holschuh h...@hmh.eng.br wrote: NACK. This we won't do. It is a LED misuse, and it will get in the way when we finally put that LED to its proper use. Agreed. Please see my response to mjg. -- To unsubscribe from this list: send the line

[PATCH RESEND] dma: sh: remove unnecessary platform_set_drvdata()

2013-08-25 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han jg1@samsung.com Acked-by: Simon Horman horms+rene...@verge.net.au --- drivers/dma/sh/shdmac.c |3 ---

Re: [PATCH v2 2/3] gpio: pcf857x: Remove pdata argument to pcf857x_irq_domain_init()

2013-08-25 Thread Kuninori Morimoto
Hi The argument is not used, remove it. No board registers a pcf857x device with an IRQ without specifying platform data, IRQ domain registration behaviour is thus not affected by this change. Signed-off-by: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com Patch applied,

Re: [PATCH v2] kernel/padata.c: share code between CPU_ONLINE and CPU_DOWN_FAILED, same to CPU_DOWN_PREPARE and CPU_UP_CANCELED

2013-08-25 Thread Chen Gang
On 08/23/2013 06:47 PM, Herbert Xu wrote: On Fri, Aug 23, 2013 at 12:44:48PM +0200, Steffen Klassert wrote: On Thu, Aug 22, 2013 at 02:43:37PM +0800, Chen Gang wrote: Share code between CPU_ONLINE and CPU_DOWN_FAILED, same to CPU_DOWN_PREPARE and CPU_UP_CANCELED. It will fix 2 bugs: not

[PATCH v3 6/8] mm/hwpoison: drop forward reference declarations __soft_offline_page()

2013-08-25 Thread Wanpeng Li
Drop forward reference declarations __soft_offline_page. Reviewed-by: Naoya Horiguchi n-horigu...@ah.jp.nec.com Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- mm/memory-failure.c | 128 ++-- 1 file changed, 63 insertions(+), 65

[PATCH v3 3/8] mm/hwpoison: fix race against poison thp

2013-08-25 Thread Wanpeng Li
v1 - v2: * unpoison thp fail There is a race between hwpoison page and unpoison page, memory_failure set the page hwpoison and increase num_poisoned_pages without hold page lock, and one page count will be accounted against thp for num_poisoned_pages. However, unpoison can occur before

[PATCH v3 5/8] mm/hwpoison: don't set migration type twice to avoid hold heavy contend zone-lock

2013-08-25 Thread Wanpeng Li
v1 - v2: * add more explanation in patch description. v2 - v3: * set MIGRATE_ISOLATE only if it's not set. Set pageblock migration type will hold zone-lock which is heavy contended in system to avoid race. However, soft offline page will set pageblock migration type twice during get page if

[PATCH v3 8/8] mm/hwpoison: fix memory failure still hold reference count after unpoison empty zero page

2013-08-25 Thread Wanpeng Li
madvise hwpoison inject will poison the read-only empty zero page if there is no write access before poison. Empty zero page reference count will be increased for hwpoison, subsequent poison zero page will return directly since page has already been set PG_hwpoison, however, page reference

[PATCH v3 7/8] mm/hwpoison: add '#' to madvise_hwpoison

2013-08-25 Thread Wanpeng Li
Add '#' to madvise_hwpoison. Before patch: [ 95.892866] Injecting memory failure for page 19d0 at b7786000 [ 95.893151] MCE 0x19d0: non LRU page recovery: Ignored After patch: [ 95.892866] Injecting memory failure for page 0x19d0 at 0xb7786000 [ 95.893151] MCE 0x19d0: non LRU page

[PATCH v3 2/8] mm/hwpoison: don't need to hold compound lock for hugetlbfs page

2013-08-25 Thread Wanpeng Li
v1 - v2: * drop compound_trans_order completely compound lock is introduced by commit e9da73d67(thp: compound_lock.), it is used to serialize put_page against __split_huge_page_refcount(). In addition, transparent hugepages will be splitted in hwpoison handler and just one subpage will be

[PATCH v3 1/8] mm/hwpoison: fix lose PG_dirty flag for errors on mlocked pages

2013-08-25 Thread Wanpeng Li
memory_failure() store the page flag of the error page before doing unmap, and (only) if the first check with page flags at the time decided the error page is unknown, it do the second check with the stored page flag since memory_failure() does unmapping of the error pages before doing

[PATCH v3 4/8] mm/hwpoison: replacing atomic_long_sub() with atomic_long_dec()

2013-08-25 Thread Wanpeng Li
Repalce atomic_long_sub() with atomic_long_dec() since the page is normal page instead of hugetlbfs page or thp. Reviewed-by: Naoya Horiguchi n-horigu...@ah.jp.nec.com Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v2] tile: support KVM for tilegx

2013-08-25 Thread Chris Metcalf
On 8/25/2013 7:39 AM, Gleb Natapov wrote: On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote: This change provides the initial framework support for KVM on tilegx. Basic virtual disk and networking is supported. This needs to be broken down to more reviewable patches. I already

Re: [PATCH v6 2/3] mmc: dw_mmc: Honor requests to set the clock to 0 (turn off clock)

2013-08-25 Thread Jaehoon Chung
Hi Doug, On 08/24/2013 05:40 AM, Doug Anderson wrote: Jaehoon, On Fri, Aug 23, 2013 at 6:21 AM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi Doug, If the clock-gating is enabled, then maybe it's continuously printed the kernel message for Bus_speed. Can you explain? I don't think

Re: Re: [RFC PATCH 00/11] trace-cmd: Support the feature recording trace data of guests on the host

2013-08-25 Thread Yoshihiro YUNOMAE
Hi Steven, Thank you for reviewing my patches. Sorry for the late reply. (2013/08/21 1:00), Steven Rostedt wrote: On Mon, 19 Aug 2013 18:46:20 +0900 Yoshihiro YUNOMAE yoshihiro.yunomae...@hitachi.com wrote: d) merge feature of trace data of multiple guests and a host in chronological

Re: Re: [RFC PATCH 07/11] [CLEANUP] trace-cmd: Split out binding a port and fork reader from open_udp()

2013-08-25 Thread Yoshihiro YUNOMAE
(2013/08/21 2:49), Steven Rostedt wrote: On Mon, 19 Aug 2013 18:46:37 +0900 Yoshihiro YUNOMAE yoshihiro.yunomae...@hitachi.com wrote: Split out binding a port and fork reader from open_udp() for avoiding duplicate codes between listen mode and virt-server mode. Signed-off-by: Yoshihiro

Re: [Patch v2 1/3] kprobes: unify insn caches

2013-08-25 Thread Masami Hiramatsu
(2013/08/23 20:04), Heiko Carstens wrote: The two insn caches (insn, and optinsn) each have an own mutex and alloc/free functions (get_[opt]insn_slot() / free_[opt]insn_slot()). Since there is the need for yet another insn cache which satifies dma allocations on s390, unify and simplify the

Re: Re: [RFC PATCH 08/11] trace-cmd: Apply the trace-msg protocol for communication between a server and clients

2013-08-25 Thread Yoshihiro YUNOMAE
(2013/08/21 2:56), Steven Rostedt wrote: On Mon, 19 Aug 2013 18:46:39 +0900 Yoshihiro YUNOMAE yoshihiro.yunomae...@hitachi.com wrote: This message protocol is incompatible with the previous unstructured message protocol. So, if an old(new)-version client tries to connect to an

Re: [PATCH 1/2] HID: apple: Add another device ID for the mid-2013 Macbook Air

2013-08-25 Thread Ian Munsie
Brad, Linus, does the above patch work for you as well as for Ian? That would work fine for me, but I guess we need confirmation from someone with the ISO or JIS layouts. Cheers, -Ian -- http://sites.google.com/site/DarkStarJunkSpace -- http://darkstarshout.blogspot.com/ -- Please avoid

Re: [PATCH 2/3 v2] Refactor msi/msix restore code Part2

2013-08-25 Thread Zhenzhong Duan
On 2013-08-24 01:15, Konrad Rzeszutek Wilk wrote: On Thu, Aug 22, 2013 at 03:14:34PM -0600, Bjorn Helgaas wrote: On Mon, Aug 5, 2013 at 1:21 AM, Zhenzhong Duan zhenzhong.d...@oracle.com wrote: xen_initdom_restore_msi_irqs trigger a hypercall to restore addr/data/mask in dom0. It's better to

[PATCH v3] xHCI: Fixing xhci_readl definition and function call

2013-08-25 Thread Kumar Gaurav
This patch redefine function xhci_readl.xhci_readl function doesn't use xhci_hcd argument. Hence there is no need of keeping it in the function arguments. Redefining this function breaks other functions which calls this function. This phatch also correct those calls in xhci driver.

Re: Re: [PATCH] USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support

2013-08-25 Thread Joe Perches
On Mon, 2013-08-26 at 10:14 +0800, liujunliang_ljl wrote: do you need me to merge the patch and re-send it again. I do not. And which version of kernel will release this driver. No idea. That's up to David Miller or Greg KH to pick up the driver and maybe take the follow-on patch I sent. I

Re: [Patch v2 2/3] kprobes: allow to specify custum allocator for insn caches

2013-08-25 Thread Masami Hiramatsu
(2013/08/23 20:04), Heiko Carstens wrote: The current two insn slot caches both use module_alloc/module_free to allocate and free insn slot cache pages. For s390 this is not sufficient since there is the need to allocate insn slots that are either within the vmalloc module area or within dma

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-25 Thread Chen Gang F T
Firstly, thank you for your reply with these details. On 08/26/2013 03:18 AM, Paul E. McKenney wrote: On Thu, Aug 22, 2013 at 11:01:53AM +0800, Chen Gang wrote: On 08/21/2013 10:23 PM, Paul E. McKenney wrote: On Wed, Aug 21, 2013 at 01:59:29PM +0800, Chen Gang wrote: [ . . . ] Don't

ipv6 global address remains while route item disappears after this interface is restared in 2.6.34.x

2013-08-25 Thread zhuyj
With two directly connected targets running kernel 2.6.34.x. TargetA - TargetB 3000::1/643000::2/64 TargetA - bring the interface down by doing an ifconfig eth1 down - bring the interface back up by doing an ifconfig eth1 up TargetB -

Re: Re: Re: [PATCH] USB2NET : SR9700 : One chip USB 1.1 USB2NETSR9700Device Driver Support

2013-08-25 Thread liujunliang_ljl
Dear all : Thanks a lot. 2013-08-26 liujunliang_ljl 发件人: Joe Perches 发送时间: 2013-08-26 10:19:35 收件人: liujunliang_ljl 抄送: davem; horms; romieu; gregkh; netdev; linux-usb; linux-kernel; sunhecheng 主题: Re: Re: [PATCH] USB2NET : SR9700 : One chip USB 1.1

Re: Re: [PATCH] USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support

2013-08-25 Thread liujunliang_ljl
DearJoe : I'm sorry to ask you that, do you need me to merge the patch and re-send it again. And which version of kernel will release this driver. Thanks a lot and apologizing for making you trouble.

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-25 Thread Lai Jiangshan
On 08/26/2013 01:43 AM, Paul E. McKenney wrote: On Sun, Aug 25, 2013 at 11:19:37PM +0800, Lai Jiangshan wrote: Hi, Steven Any comments about this patch? For whatever it is worth, it ran without incident for two hours worth of rcutorture on my P5 test (boosting but no CPU hotplug). Lai,

Re: [Patch v2 3/3] s390/kprobes: add support for pc-relative long displacement instructions

2013-08-25 Thread Masami Hiramatsu
(2013/08/23 20:04), Heiko Carstens wrote: With the general-instruction extension facility (z10) a couple of instructions with a pc-relative long displacement were introduced. The kprobes support for these instructions however was never implemented. In result, if anybody ever put a probe on

Re: [PATCH v3 2/2] media: i2c: adv7343: add OF support

2013-08-25 Thread Prabhakar Lad
Hi Sylwester, On Fri, Aug 23, 2013 at 11:33 PM, Sylwester Nawrocki s.nawro...@samsung.com wrote: Cc: DT binding maintainers On 07/20/2013 08:21 AM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com add OF support for the adv7343 driver. Signed-off-by: Lad, Prabhakar

[PATCH 1/1] ipv6:remove ipv6 global address after the interface is down

2013-08-25 Thread zhuyj
2.6.34.x kernels require a similar logic change as commit 73a8bd74 [ipv6:Revert 'administrative down' address handling changes] introduces for newer kernels. In 2.6.34.x kernels, when an interface with ipv6 global address is restarted, the ipv6 route item disappear, but ipv6 global address still

RE: [PATCH v2] pinctrl: Pass all configs to driver on pin_config_set()

2013-08-25 Thread Sherman Yin
Hi Linus, Didn't you get review from Stephen Warren? Yes, just wasn't sure when those tags should be added. They have been added to v3 now. Please try to put all the maintainers for the above files on the To: line so they get a chance to review/ack the patch. Ok. I've added the emails from

Re: [PATCH 03/10] sched: Clean-up struct sd_lb_stat

2013-08-25 Thread Lei Wen
On Tue, Aug 20, 2013 at 12:01 AM, Peter Zijlstra pet...@infradead.org wrote: From: Joonsoo Kim iamjoonsoo@lge.com There is no reason to maintain separate variables for this_group and busiest_group in sd_lb_stat, except saving some space. But this structure is always allocated in stack, so

[PATCH] staging: rtl8192e: Remove pt_regs * irq handler parameter

2013-08-25 Thread navin patidar
struct pt_regs pointer is no longer passed as a irq handler argument. and also remove unnecessary macros. Signed-off-by: navin patidar nav...@cdac.in --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c |5 +++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.h |6 -- 2 files changed, 3

[v4][PATCH 4/8] book3e/kexec/kdump: create a 1:1 TLB mapping

2013-08-25 Thread Tiejun Chen
book3e have no real MMU mode so we have to create a 1:1 TLB mapping to make sure we can access the real physical address. And correct something to support this pseudo real mode on book3e. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/kernel/head_64.S |9 ---

[v4][PATCH 0/8] powerpc/book3e: support kexec and kdump

2013-08-25 Thread Tiejun Chen
Ben, I don't see any further comments, so could you merge this kindly? This patchset is used to support kexec and kdump on book3e. Tested on fsl-p5040 DS. v4: * rebase on next branch v3: * add one patch to rename interrupt_end_book3e with __end_interrupts then we can have a unique lable

<    1   2   3   4   >