[PATCH] cirrus: cs89x0: fix time comparison

2014-12-14 Thread Asaf Vertz
To be future-proof and for better readability the time comparisons are modified to use time_before, time_after, and time_after_eq instead of plain, error-prone math. Signed-off-by: Asaf Vertz --- drivers/net/ethernet/cirrus/cs89x0.c | 27 ++- 1 files changed, 14 inserti

Re: Bug#772807: binfmt-support: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument

2014-12-14 Thread Arthur Marsh
Al Viro wrote on 12/12/14 16:31: On Fri, Dec 12, 2014 at 02:51:55PM +1030, Arthur Marsh wrote: 6b899c4e9a049dfca759d990bd53b14f81c3626c is the first bad commit commit 6b899c4e9a049dfca759d990bd53b14f81c3626c Author: Mike Frysinger Date: Wed Dec 10 15:52:08 2014 -0800 binfmt_misc: add

UFS RPMB

2014-12-14 Thread Tomas Winkler
Hi, sorry fore a newbie question. What is the current interface for accessing rpmb LUN in a UFS devices. For emmc one need to issue a raw mmc ioctl command MMC_IOC_CMD. Thanks Tomas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [PATCHv3 0/5] ARM:sunxi:ps2 Added support for A10/A20 ps2 controller.

2014-12-14 Thread Hans de Goede
Hi, On 13-12-14 21:01, Vishnu Patekar wrote: Hello Hans, Please find my comments inlined. On 12/13/14, Hans de Goede wrote: Hi VishnuPatekar, The patch mangling for this set seems to have gone a bit wrong I'm afraid No, this time I've corrected it. Infact, last version of patch did not use

Re: [PATCH 2/2] Input: gpio_keys - replace timer and workqueue with delayed workqueue

2014-12-14 Thread Linus Walleij
On Mon, Dec 8, 2014 at 8:21 AM, Dmitry Torokhov wrote: > We do not need to roll our own implementation of delayed work now that we > have proper implementation of mod_delayed_work. > > For interrupt-only driven buttons we retain the timer, but we rename > it to release_timer to better reflect its

Re: bluetooth: Add hci_h4p driver

2014-12-14 Thread Pavel Machek
On Sun 2014-12-14 01:07:42, Marcel Holtmann wrote: > Hi Pavel, > > >>> My notes say that Marcel wanted different filenames, but I'd need > >>> advice exactly what filenames. I guess platform data supprort should > >>> be removed altogether, rather than renamed. > >> > >> Yes, the platform support

Re: [PATCH v2 1/4] pci: iProc: define Broadcom iProc PCIe binding

2014-12-14 Thread Arend van Spriel
On 12/13/14 20:46, Arnd Bergmann wrote: On Saturday 13 December 2014 11:05:52 Arend van Spriel wrote: Makes sense. I think that is what Hauke meant by "adding additional support for registering to bcma". So the discovery info is a piece of read-only memory in the chip. Its address is stored in

Re: [PATCH] sched/fair: change where we report sched stats

2014-12-14 Thread Mike Galbraith
On Thu, 2014-12-11 at 09:55 -0500, Josef Bacik wrote: > How did you do it? I had one latency spike in a 90 minute test that > runs across 30 boxes that could have been caused by anything, so if > there is a way I could have easily found that without moving these > tracepoints around I'd love t

Re: [v4, 1/4] powerpc: powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2014-12-14 Thread Michael Ellerman
On Tue, 2014-09-12 at 18:56:50 UTC, "Shreyas B. Prabhu" wrote: > From: Paul Mackerras > > Currently, when going idle, we set the flag indicating that we are in > nap mode (paca->kvm_hstate.hwthread_state) and then execute the nap > (or sleep or rvwinkle) instruction, all with the MMU on. This is

Re: [v3, 2/4] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-12-14 Thread Michael Ellerman
On Thu, 2014-04-12 at 07:28:21 UTC, "Shreyas B. Prabhu" wrote: > From: "Preeti U. Murthy" > > The secondary threads should enter deep idle states so as to gain maximum > powersavings when the entire core is offline. To do so the offline path > must be made aware of the available deepest idle stat

Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Michael Ellerman
On Tue, 2014-09-12 at 18:56:53 UTC, "Shreyas B. Prabhu" wrote: > Winkle is a deep idle state supported in power8 chips. A core enters > winkle when all the threads of the core enter winkle. In this state > power supply to the entire chiplet i.e core, private L2 and private L3 > is turned off. As a

Re: bluetooth: Add hci_h4p driver

2014-12-14 Thread Pavel Machek
On Sun 2014-12-14 00:30:13, Marcel Holtmann wrote: > Hi Pavel, > > > Add hci_h4p bluetooth driver to staging tree. This device is used > > for example on Nokia N900 cell phone. > > > > Signed-off-by: Pavel Machek > > Thanks-to: Sebastian Reichel > > Thanks-to: Joe Perches > > > > --- > > > >

Re: Status of tip/x86/apic

2014-12-14 Thread Jiang Liu
On 2014/12/13 4:35, Thomas Gleixner wrote: > Folks, > > after mulling this in my head for quite some time, I'm going to > postpone the whole thing for 3.20. > > That said, I need to say, that I'm really happy with the outcome of > this massive overhaul. I really want to thank all involved people,

Re: bluetooth: Add hci_h4p driver

2014-12-14 Thread Pavel Machek
On Sun 2014-12-14 00:30:13, Marcel Holtmann wrote: > Hi Pavel, > > > Add hci_h4p bluetooth driver to staging tree. This device is used > > for example on Nokia N900 cell phone. > > > > Signed-off-by: Pavel Machek > > Thanks-to: Sebastian Reichel > > Thanks-to: Joe Perches > > > > --- > > > >

Re: [v3, 2/4] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-12-14 Thread Shreyas B Prabhu
On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > On Thu, 2014-04-12 at 07:28:21 UTC, "Shreyas B. Prabhu" wrote: >> From: "Preeti U. Murthy" >> >> The secondary threads should enter deep idle states so as to gain maximum >> powersavings when the entire core is offline. To do so the

Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Shreyas B Prabhu
On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > On Tue, 2014-09-12 at 18:56:53 UTC, "Shreyas B. Prabhu" wrote: >> Winkle is a deep idle state supported in power8 chips. A core enters >> winkle when all the threads of the core enter winkle. In this state >> power supply to the entir

[Regression] 3.18 black screen after boot (bisected)

2014-12-14 Thread Heinz Diehl
Hi, since kernel 3.18 I'm no longer able to run X on my machine. While 3.17.6 is fine, 3.18 leaves me with a black screen when starting X. Booting into runlevel 1/3 is fine. I did a "git bisect", and the offending commit is this one: [root@kiera linux-git]# git bisect bad 83f45fc360c8e16a3304748

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Paul E. McKenney
On Sat, Dec 13, 2014 at 11:26:36PM -0800, Andy Lutomirski wrote: > On Dec 13, 2014 10:58 PM, "Stephen Rothwell" wrote: > > > > Hi Andy, > > > > The luto-misc tree seems to have a whole series of commits in it that > > have just bee removed from the rcu tree ... You really have to be very > > care

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Stephen Rothwell
Hi Andy, On Sat, 13 Dec 2014 23:26:36 -0800 Andy Lutomirski wrote: > > On Dec 13, 2014 10:58 PM, "Stephen Rothwell" wrote: > > > > The luto-misc tree seems to have a whole series of commits in it that > > have just bee removed from the rcu tree ... You really have to be very > > careful if you

INFO

2014-12-14 Thread INFO
greetings my dear?forgive me for burdering you. but you have to understand that after going through your profile, My heart acepted you,Honestly my heart loves you. I beleive you are the person I am looking for .I like you my dear ,and I want to hold a very strong relationship with you.Please don

Re: [PATCH 1/4] iio: dht11: Add locking

2014-12-14 Thread Hartmut Knaack
Richard Weinberger schrieb am 03.12.2014 um 00:32: > Make sure that the read function is not interrupted... There is already a mutex iio_dev->info_exist_lock used to serialize iio_channel_read(), which in turn accesses _read_raw(). See [1]. [1]http://lxr.free-electrons.com/ident?i=iio_channel_read

Re: [PATCH 4/4] iio: dht11: Fix out-of-bounds read

2014-12-14 Thread Hartmut Knaack
Richard Weinberger schrieb am 03.12.2014 um 00:32: > As we access i-1 we must not start with i=0. > > Signed-off-by: Richard Weinberger Acked-by: Hartmut Knaack > --- > drivers/iio/humidity/dht11.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/humidity/dh

[PATCH] cpupower: Correctly detect if running as root

2014-12-14 Thread Michal Privoznik
Some operations, like frequency-set, need root privileges. However, the way that this is detected is not correct. The getuid() is called, while in fact geteuid() should be. This way we can allow distributions or users to set SETUID flags on the cpupower binary if they want to and let regular users

Through the peridot forest: a contemplation of the systemd debacle

2014-12-14 Thread Lookingglass Sun
Remeber the past, before our refuge that was linux? The chaos of the Microsoft era that we ran away from. Now that chaos, the forced marches, all of it, has found us again. Here is a soundscape that explores that history: http://youtu.be/L50h6UoBC5c A temporary trip through a wonderful self conta

Re: UBI: Add support for scatter gather and blk-mq

2014-12-14 Thread Ezequiel Garcia
Hey Richard, On 11/24/2014 01:04 PM, Richard Weinberger wrote: > This two patches implement blk-mq support for the UBI block driver. > As the scatter gather part is rather generic I've moved it directl > into UBI such that it can be reused later. > So far only reading data into a scatter gather li

[PATCH] mn10300: drop dead code

2014-12-14 Thread Michael S. Tsirkin
pci-iomap.c was (apparently, mistakenly) reintroduced as part of commit 83c2dc15ce824450e7044b9f90cd529c25747ae0 MN10300: Handle cacheable PCI regions in pci_iomap() probably as side-effect of forward-porting the patch from an old kernel. It's not really needed: the generic pci_iomap does the

Re: bluetooth: Add hci_h4p driver

2014-12-14 Thread Bastien Nocera
On Sun, 2014-12-14 at 11:40 +0100, Pavel Machek wrote: > On Sun 2014-12-14 00:30:13, Marcel Holtmann wrote: > > Hi Pavel, > > > > > Add hci_h4p bluetooth driver to staging tree. This device is used > > > for example on Nokia N900 cell phone. > > > > > > Signed-off-by: Pavel Machek > > > Thanks-t

[PULL REQUEST] i2c for 3.19

2014-12-14 Thread Wolfram Sang
Linus, for 3.19, the I2C subsystem has to offer special candy this time. Right in time for Christmas :) * I2C slave framework: finally, a generic mechanism for Linux being an I2C slave (if the bus driver supports that). Docs are still missing but will come later this cycle, the code is good e

Re: UBI: Add support for scatter gather and blk-mq

2014-12-14 Thread Richard Weinberger
Am 14.12.2014 um 13:43 schrieb Ezequiel Garcia: > Hey Richard, > > On 11/24/2014 01:04 PM, Richard Weinberger wrote: >> This two patches implement blk-mq support for the UBI block driver. >> As the scatter gather part is rather generic I've moved it directl >> into UBI such that it can be reused l

Re: [PATCH v10 1/8] tpm: merge duplicate transmit_cmd() functions

2014-12-14 Thread Stefan Berger
On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. Added "tpm_" prefix for consistency sake. Changed cmd parameter as opaque. This enables to use separate command structures for TPM1 and TPM2 commands in future. Loose coupling works

Re: [PATCH 1/4] iio: dht11: Add locking

2014-12-14 Thread Richard Weinberger
Am 14.12.2014 um 13:31 schrieb Hartmut Knaack: > Richard Weinberger schrieb am 03.12.2014 um 00:32: >> Make sure that the read function is not interrupted... > There is already a mutex iio_dev->info_exist_lock used to serialize > iio_channel_read(), which in turn accesses _read_raw(). See [1]. > >

[PATCH 2/2] Fix no idle state information return value

2014-12-14 Thread Prarit Bhargava
sysfs_get_idlestate_count() returns an unsigned int. Returning -ENODEV is not the right thing to do here, and in any case is handled the same way as if there are no states found. Cc: Thomas Renninger Cc: Rafael J. Wysocki Signed-off-by: Prarit Bhargava --- tools/power/cpupower/utils/helpers/s

[PATCH 0/2] Properly fix sysfs_get_idlestate_count()

2014-12-14 Thread Prarit Bhargava
My previous commit 16b7c275c055 ("tools: cpupower: fix return checks for sysfs_get_idlestate_count()") was not correct. After looking at the changelog for cpupower I noticed that Thomas had changed the return of sysfs_get_idlestate_count() to an unsigned int to simplify the code. The problem is r

[PATCH 1/2] Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"

2014-12-14 Thread Prarit Bhargava
This reverts commit 16b7c275c055cc36218404b5d147be7f76575087. My previous commit 16b7c275c055 ("tools: cpupower: fix return checks for sysfs_get_idlestate_count()") was not correct. After looking at the changelog for cpupower I noticed that Thomas had changed the return of sysfs_get_idlestate_cou

Re: [PATCH] tools/liblockdep: Fix debug_check thinko in mutex destroy

2014-12-14 Thread Kirill Smelkov
On Mon, Dec 08, 2014 at 09:59:54AM -0500, Sasha Levin wrote: > On 12/08/2014 06:07 AM, Kirill Smelkov wrote: > > In mutex destroy code currently we pass to debug_check_no_locks_freed() > > > > [mem_from, mem_end) > > > > address region. But debug_check_no_locks_freed() accepts > > > > me

[PATCH 1/1] staging: rtl8723au: Fix sparse warnings invalid assignment |=

2014-12-14 Thread Yannis Damigos
This is a patch to the hal/rtl8723au_xmit.c file that fixes various warnings: "invalid warning: invalid assignment: |= left side has type unsigned int right side has type restricted __le32" found by sparse tool. Signed-off-by: Yannis Damigos --- drivers/staging/rtl8723au/hal/rtl8723au_xmit.c

Re: [PATCH] tools/liblockdep: Fix debug_check thinko in mutex destroy

2014-12-14 Thread Sasha Levin
On 12/14/2014 09:21 AM, Kirill Smelkov wrote: > On Mon, Dec 08, 2014 at 09:59:54AM -0500, Sasha Levin wrote: >> > On 12/08/2014 06:07 AM, Kirill Smelkov wrote: >>> > > In mutex destroy code currently we pass to debug_check_no_locks_freed() >>> > > >>> > > [mem_from, mem_end) >>> > > >>> > > a

Re: [PATCH v10 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-14 Thread Stefan Berger
On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: Detect TPM 2.0 by sending idempotent TPM 2.x command. Ordinals for TPM 2.0 are higher than TPM 1.x commands so this should be fail-safe. Using STS3 is unreliable because some chips just report 0xff and not what the spec says. TPM TIS 1.2 can report

Re: [tpmdd-devel] [PATCH v10 0/8] TPM 2.0 support

2014-12-14 Thread Jarkko Sakkinen
On Sat, 2014-12-13 at 17:53 +, Scot Doyle wrote: > On Fri, 12 Dec 2014, Jarkko Sakkinen wrote: > > > This patch set enables TPM2 protocol and provides drivers for FIFO and > > CRB interfaces. This patch set does not export any sysfs attributes for > > TPM 2.0 because existing sysfs attributes

Re: [PATCH v10 1/8] tpm: merge duplicate transmit_cmd() functions

2014-12-14 Thread Jarkko Sakkinen
On Sun, 2014-12-14 at 09:03 -0500, Stefan Berger wrote: > On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: > > Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. > > Added "tpm_" prefix for consistency sake. Changed cmd parameter as > > opaque. This enables to use separate command st

Re: [patch 2/2] ALSA: oxfw: fix detect_loud_models() return value

2014-12-14 Thread Takashi Iwai
At Sat, 13 Dec 2014 13:45:55 +0900, Takashi Sakamoto wrote: > > On Dec 13 2014 04:28, Dan Carpenter wrote: > > This code causes a static checker warning: > > > > sound/firewire/oxfw/oxfw.c:46 detect_loud_models() > > warn: signedness bug returning '(-2)' > > > > The detect_loud_models()

[PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Stefan Wahren
According to i.MX23 and i.MX28 reference manual the fractional clock control registers must be addressed by byte instructions. This patch fixes the erroneous 32-bit access to these registers. The changes has been tested only with a i.MX28 board, because i don't have access to an i.MX23 board. Si

Re: [PATCH v10 1/8] tpm: merge duplicate transmit_cmd() functions

2014-12-14 Thread peterhuewe
On 14. Dezember 2014 15:57:10 MEZ, Jarkko Sakkinen wrote: >On Sun, 2014-12-14 at 09:03 -0500, Stefan Berger wrote: >> On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: >> > Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. >> > Added "tpm_" prefix for consistency sake. Changed cm

Re: [PATCH v10 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-14 Thread Jarkko Sakkinen
On Sun, Dec 14, 2014 at 09:48:26AM -0500, Stefan Berger wrote: > On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: > >Detect TPM 2.0 by sending idempotent TPM 2.x command. Ordinals for > >TPM 2.0 are higher than TPM 1.x commands so this should be fail-safe. > >Using STS3 is unreliable because some chi

Re: [PATCH v10 1/8] tpm: merge duplicate transmit_cmd() functions

2014-12-14 Thread Jarkko Sakkinen
On Sun, Dec 14, 2014 at 04:31:10PM +0100, peterhu...@gmx.de wrote: > > > On 14. Dezember 2014 15:57:10 MEZ, Jarkko Sakkinen > wrote: > >On Sun, 2014-12-14 at 09:03 -0500, Stefan Berger wrote: > >> On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: > >> > Merged transmit_cmd() functions in tpm-inter

[PATCH v2] drivers: scsi: megaraid: Add "megaraid_sas_internal.h" for internal shared functions using

2014-12-14 Thread Chen Gang
For shared inline functions crossed source files, better to let it as "static inline" in a header file. For extern functions, better to declare them in header file. Signed-off-by: Chen Gang --- drivers/scsi/megaraid/megaraid_sas_base.c | 76 + drivers/scsi/megaraid/megaraid_

Re: [PATCH v10 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-14 Thread Stefan Berger
On 12/14/2014 10:40 AM, Jarkko Sakkinen wrote: On Sun, Dec 14, 2014 at 09:48:26AM -0500, Stefan Berger wrote: On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: Detect TPM 2.0 by sending idempotent TPM 2.x command. Ordinals for TPM 2.0 are higher than TPM 1.x commands so this should be fail-safe. U

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Marek Vasut
On Sunday, December 14, 2014 at 04:28:53 PM, Stefan Wahren wrote: > According to i.MX23 and i.MX28 reference manual the fractional > clock control registers must be addressed by byte instructions. > > This patch fixes the erroneous 32-bit access to these registers. > > The changes has been tested

Re: [tip:x86/urgent] MAINTAINERS: Add me as x86 VDSO submaintainer

2014-12-14 Thread Andy Lutomirski
On Dec 13, 2014 11:54 PM, "tip-bot for Andy Lutomirski" wrote: > > Commit-ID: f0905c5a32ce6e9b743b4d9c70e53d1ce447852d > Gitweb: http://git.kernel.org/tip/f0905c5a32ce6e9b743b4d9c70e53d1ce447852d > Author: Andy Lutomirski > AuthorDate: Fri, 12 Dec 2014 16:25:47 -0800 > Committer: Ingo M

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Andy Lutomirski
On Sun, Dec 14, 2014 at 4:03 AM, Paul E. McKenney wrote: > On Sat, Dec 13, 2014 at 11:26:36PM -0800, Andy Lutomirski wrote: >> On Dec 13, 2014 10:58 PM, "Stephen Rothwell" wrote: >> > >> > Hi Andy, >> > >> > The luto-misc tree seems to have a whole series of commits in it that >> > have just bee

Re: [PATCH v2 1/4] pci: iProc: define Broadcom iProc PCIe binding

2014-12-14 Thread Arnd Bergmann
On Sunday 14 December 2014 10:48:01 Arend van Spriel wrote: > On 12/13/14 20:46, Arnd Bergmann wrote: > > On Saturday 13 December 2014 11:05:52 Arend van Spriel wrote: > >> > >> Makes sense. I think that is what Hauke meant by "adding > >> additional support for registering to bcma". So the discove

[PATCH 3/3] tracing: Add tp_printk cmdline to have tracepoints go to printk()

2014-12-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add the kernel command line tp_printk option that will have tracepoints that are active sent to printk() as well as to the trace buffer. Passing "tp_printk" will activate this. To turn it off, the sysctl /proc/sys/kernel/tracepoint_printk can have '0' echoed into

[PATCH 2/3] tracing: Move enabling tracepoints to just after mm_init()

2014-12-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Enabling tracepoints at boot up can be very useful. The tracepoint can be initialized right after memory has been. There's no need to wait for the early_initcall() to be called. That's too late for some things that can use tracepoints for debugging. Move the logic

[PATCH 0/3] tracing: Enable tracepoints early and allow printk to use them

2014-12-14 Thread Steven Rostedt
As the merge window is still open, and this code was not as complex as I thought it might be. I'm thinking of pushing this in now. This will allow Thomas to debug his irq work for 3.20. This code is not that intrusive and I'm currently running it through all my tests (which caught the call_rcu_sc

[PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" In order to move enabling of trace events to just after mm_init(), the tracepoint enable code can not use call_rcu_sched() because rcu isn't even initialized yet. Since this can only happen before SMP is set up (and even before interrupts are set up), there's no

[PATCH 00/18] uaccess: fix sparse warning on get_user for bitwise types

2014-12-14 Thread Michael S. Tsirkin
At the moment, if p and x are both tagged as bitwise types, get_user(x, p) produces a sparse warning on many architectures. This is because *p on these architectures is loaded into long (typically using asm), then cast back to typeof(*p). When typeof(*p) is a bitwise type (which is uncommon), such

[PATCH 01/18] x86/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/x86/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 02/18] alpha/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/alpha/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH 08/18] m32r/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/m32r/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 04/18] avr32/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/avr32/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH 18/18] m68k/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/m68k/include/asm/uaccess_mm.h | 4 ++-- 1 file changed, 2 insertions(

[PATCH 15/18] sparc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/sparc/include/asm/uaccess_32.h | 8 1 file changed, 4 insert

[PATCH 11/18] openrisc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/openrisc/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions

[PATCH 06/18] cris/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/cris/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/powerpc/include/asm/uaccess.h | 6 +++--- 1 file changed, 3 insertion

[PATCH 03/18] arm64/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/arm64/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 16/18] sparc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/sparc/include/asm/uaccess_64.h | 4 ++-- 1 file changed, 2 insertions

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 11:41:05 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > In order to move enabling of trace events to just after mm_init(), the > tracepoint enable code can not use call_rcu_sched() because rcu isn't > even initialized yet. Since this can only happen befo

[PATCH 17/18] xtensa/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/xtensa/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 12/18] parisc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/parisc/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 10/18] microblaze/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/microblaze/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertio

[PATCH 09/18] metag/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/metag/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH 14/18] sh/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/sh/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 05/18] blackfin/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/blackfin/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+)

[PATCH 07/18] ia64/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/ia64/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: linux-kernel@vger.kernel.org > Cc: "Linus Torvalds" , "Ingo Molnar" > , "Andrew Morton" > , "Thomas Gleixner" , "Mathieu > Desnoyers" > , "Paul E. McKenney" > > Sent: Sunday, December 14, 2014 11:41:05 AM > Subject: [PATCH 1/3] tracep

Re: [PATCH 0/3] tracing: Enable tracepoints early and allow printk to use them

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 11:41:04 -0500 Steven Rostedt wrote: > As the merge window is still open, and this code was not as complex > as I thought it might be. I'm thinking of pushing this in now. > > This will allow Thomas to debug his irq work for 3.20. Bah, my cover letters have sucked lately. Le

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 17:05:49 + (UTC) Mathieu Desnoyers wrote: > > #ifdef CONFIG_MODULES > > /* > > * Tracepoint module list mutex protects the local module list. > > @@ -76,7 +85,16 @@ static inline void release_probes(struct tracepoint_func > > *old) > > if (old) { > > s

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Stefan Wahren
Hi Marek, > Marek Vasut hat am 14. Dezember 2014 um 17:12 geschrieben: > > > > > static void __iomem *digctrl; > > #define DIGCTRL digctrl > > @@ -118,11 +119,12 @@ static void __init clk_misc_init(void) > > /* > > * 480 MHz seems too high to be ssp clock source directly, > > * so set frac0 to ge

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 12:14:57 -0500 Steven Rostedt wrote: > If IRQ setup, or other core pieces of code can use this, then I would > agree that rcu should be changed. But until then, I rather not add > another conditional to the core RCU code. Also, call_rcu*() is called from several hot paths. Th

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: "Mathieu Desnoyers" > Cc: linux-kernel@vger.kernel.org, "Linus Torvalds" > , "Ingo Molnar" , > "Andrew Morton" , "Thomas Gleixner" > , "Paul E. McKenney" > > Sent: Sunday, December 14, 2014 12:21:36 PM > Subject: Re: [PATCH 1/3] trace

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 08:29:33AM -0800, Andy Lutomirski wrote: > On Sun, Dec 14, 2014 at 4:03 AM, Paul E. McKenney > wrote: > > On Sat, Dec 13, 2014 at 11:26:36PM -0800, Andy Lutomirski wrote: > >> On Dec 13, 2014 10:58 PM, "Stephen Rothwell" wrote: > >> > > >> > Hi Andy, > >> > > >> > The luto

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Andy Lutomirski
On Sun, Dec 14, 2014 at 9:37 AM, Paul E. McKenney wrote: > On Sun, Dec 14, 2014 at 08:29:33AM -0800, Andy Lutomirski wrote: >> On Sun, Dec 14, 2014 at 4:03 AM, Paul E. McKenney >> wrote: >> > On Sat, Dec 13, 2014 at 11:26:36PM -0800, Andy Lutomirski wrote: >> >> On Dec 13, 2014 10:58 PM, "Stephen

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 17:29:28 + (UTC) Mathieu Desnoyers wrote: > Given that your reason for having this RCU-specific logic in tracepoint.c > rather than within call_rcu*() is not slowing down a fast-path, how about > creating a new call_rcu_early() and call_rcu_sched_early() which can be > cal

Re: frequent lockups in 3.18rc4

2014-12-14 Thread Paul E. McKenney
On Sat, Dec 13, 2014 at 10:07:52AM -0800, Paul E. McKenney wrote: > On Sat, Dec 13, 2014 at 10:53:35AM -0500, Sasha Levin wrote: > > On 12/13/2014 03:30 AM, Ingo Molnar wrote: > > >> > This is my no_hz related config: > > >> > > > >> > $ grep NO_HZ .config > > >> > CONFIG_NO_HZ_COMMON=y > > >> > #

Re: [PATCH] USB: serial: add nt124 usb to serial driver

2014-12-14 Thread George McCollister
Johan, While working on the tx_empty changes you suggested it occurred to me that it might not be obvious to others that the firmware doesn't send a packet with the NT124_CTRL_TXEMPTY flag cleared when it begins transmitting. The practical implication is that if the driver sets tx_empty = true whe

Re: [PATCH] sched: Fix lost reschedule in __cond_resched()

2014-12-14 Thread Frederic Weisbecker
On Sat, Dec 13, 2014 at 08:36:34AM +0100, Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > I'm also not sure if the bug ever happens with preemption > > disabled. Sasha, was that you who reported that you cannot > > reproduce it without preemption? It strikes me that there's a > > race co

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 11:53:32AM -0500, Steven Rostedt wrote: > On Sun, 14 Dec 2014 11:41:05 -0500 > Steven Rostedt wrote: > > > From: "Steven Rostedt (Red Hat)" > > > > In order to move enabling of trace events to just after mm_init(), the > > tracepoint enable code can not use call_rcu_sche

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 12:44:31PM -0500, Steven Rostedt wrote: > On Sun, 14 Dec 2014 17:29:28 + (UTC) > Mathieu Desnoyers wrote: > > > Given that your reason for having this RCU-specific logic in tracepoint.c > > rather than within call_rcu*() is not slowing down a fast-path, how about > > c

Re: [PATCH 2/3] tracing: Move enabling tracepoints to just after mm_init()

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 11:41:06AM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Enabling tracepoints at boot up can be very useful. The tracepoint > can be initialized right after memory has been. There's no need to > wait for the early_initcall() to be called. That's too l

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 10:08:54 -0800 "Paul E. McKenney" wrote: > On Sun, Dec 14, 2014 at 11:53:32AM -0500, Steven Rostedt wrote: > > On Sun, 14 Dec 2014 11:41:05 -0500 > > Steven Rostedt wrote: > > > > > From: "Steven Rostedt (Red Hat)" > > > > > > In order to move enabling of trace events to j

Re: need help to clear kernel (2.6.16.17) cached memory

2014-12-14 Thread Bruno Prémont
Hi, On Sat, 13 December 2014 Manish Yadav wrote: > on my system (based on 2.6.16.17), i am trying to clear the cached > memory but it is not being cleared. > > mars# free -m > total used free sharedbuffers cached > Mem: 925459465

Re: linux-next: question about the luto-misc tree

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 09:41:04AM -0800, Andy Lutomirski wrote: > On Sun, Dec 14, 2014 at 9:37 AM, Paul E. McKenney > wrote: > > On Sun, Dec 14, 2014 at 08:29:33AM -0800, Andy Lutomirski wrote: > >> On Sun, Dec 14, 2014 at 4:03 AM, Paul E. McKenney > >> wrote: > >> > On Sat, Dec 13, 2014 at 11:2

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Paul E. McKenney
On Sun, Dec 14, 2014 at 01:15:38PM -0500, Steven Rostedt wrote: > On Sun, 14 Dec 2014 10:08:54 -0800 > "Paul E. McKenney" wrote: > > > On Sun, Dec 14, 2014 at 11:53:32AM -0500, Steven Rostedt wrote: > > > On Sun, 14 Dec 2014 11:41:05 -0500 > > > Steven Rostedt wrote: > > > > > > > From: "Steven

Re: [PATCH 2/3] tracing: Move enabling tracepoints to just after mm_init()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 10:14:44 -0800 "Paul E. McKenney" wrote: > > diff --git a/init/main.c b/init/main.c > > index 800a0daede7e..060e60b6aa59 100644 > > --- a/init/main.c > > +++ b/init/main.c > > @@ -561,6 +561,9 @@ asmlinkage __visible void __init start_kernel(void) > > trap_init(); > >

Re: Kernel boot panic 3.12-34 > 3.12.35

2014-12-14 Thread Borislav Petkov
On Sun, Dec 14, 2014 at 03:41:20PM +, Richard Farthing wrote: > I patched 3.12.34 to 3.12.35 and the attached now happens at boot. > Sorry I don't have better than a photo, cannot get past this. > > The root FS is EXT2. It's admittedly an old test machine that I'm using to > build up a new co

Re: [PATCH 1/3] tracepoints: Do not use call_rcu_sched() before early_initcall()

2014-12-14 Thread Steven Rostedt
On Sun, 14 Dec 2014 10:18:35 -0800 "Paul E. McKenney" wrote: > > With your feed back, and because I would like this to go into 3.19, I > > would like to keep the current patch as is (with the read_mostly > > update, which I'm currently testing). We can always change it later > > after call_rcu()

Re: [PATCH v4 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor

2014-12-14 Thread Paul Walmsley
Hi I have not reviewed this code closely, but a few items just caught my eye at a brief glance. On Tue, 9 Dec 2014, Tomeu Vizoso wrote: > The ACTMON block can monitor several counters, providing averaging and firing > interrupts based on watermarking configuration. This implementation monitors

Re: [PATCH v10 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-14 Thread Scot Doyle
On Sun, 14 Dec 2014, Stefan Berger wrote: > On 12/14/2014 10:40 AM, Jarkko Sakkinen wrote: > > On Sun, Dec 14, 2014 at 09:48:26AM -0500, Stefan Berger wrote: > > > On 12/12/2014 02:46 PM, Jarkko Sakkinen wrote: > > > > Detect TPM 2.0 by sending idempotent TPM 2.x command. Ordinals for > > > > TPM 2

RE: [PATCH 2/2] Drivers: hv: balloon: Fix the deadlock issue in the memory hot-add code

2014-12-14 Thread KY Srinivasan
> -Original Message- > From: Michal Hocko [mailto:mho...@suse.cz] > Sent: Thursday, December 11, 2014 4:58 AM > To: KY Srinivasan > Cc: Yasuaki Ishimatsu; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; linux

  1   2   3   4   5   >