Re: [PATCH] memcg: Add memory.pressure_level events

2013-02-12 Thread Glauber Costa
>>> +void __init enable_pressure_cgroup(void) >>> +{ >>> + WARN_ON(cgroup_add_cftypes(_cgroup_subsys, >>> + vmpressure_cgroup_files)); >>> +} >> >> There is no functionality discovery going on here, and this is >> conditional on nothing. Isn't it better then to just

Re: [PATCH] sched: fix env->src_cpu for active migration

2013-02-12 Thread Vincent Guittot
Hi Damien, Thanks for the test and the feedback. Could you send me the sched_domain configuration of your machine with the kernel that boots on your machine ? It's available in /proc/sys/kernel/sched_domain/cpu*/ This should not have any impact on your machine but it looks like it have one.

Re: [PATCH 1/2] perf stat: refactor aggregation code

2013-02-12 Thread Namhyung Kim
Hi Stephane, On Tue, 12 Feb 2013 15:09:27 +0100, Stephane Eranian wrote: > Refactor aggregation code by introducing > a single aggr_mode variable and an enum > for aggregation. > > Also refactor cpumap code having to do > with cpu to socket mappings. All in preparation > for extended modes, such

Re: [PATCH 3/3 RESEND] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-12 Thread Guennadi Liakhovetski
On Wed, 13 Feb 2013, Marek Szyprowski wrote: > Hello, > > On 2/12/2013 11:10 PM, Guennadi Liakhovetski wrote: > > Hi Marek > > > > On Tue, 12 Feb 2013, Marek Szyprowski wrote: > > > > > Some regulators don't report any voltage values, so checking supported > > > voltage range results in

Re: [REGRESSION] [nailed] USB boot failure: USB: EHCI: make ehci-pci a separate driver

2013-02-12 Thread Andreas Mohr
[CC initramfs-tools] On Wed, Feb 13, 2013 at 08:16:28AM +0100, Andreas Mohr wrote: > Hi, > > On Wed, Feb 13, 2013 at 07:44:36AM +0100, Andreas Mohr wrote: > > So, what to do? I'm now going to do some experimentation with git revert > > on some revision, and I'm trying to establish the USB port

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

2013-02-12 Thread Stephen Rothwell
Hi Kukjin, Today's linux-next merge of the samsung tree got conflicts in quite a few files between commits from the arm-soc tree and commits from the samsung tree. I took Olof's advice and just dropped the samsung tree for today. -- Cheers, Stephen Rothwell

Re: [PATCH linux-next] autofs4: autofs4_catatonic_mode(): remove redundant null check on kfree()

2013-02-12 Thread Michael Tokarev
13.02.2013 11:37, Ian Kent wrote: [] So, you would like me to forward this to Linus? I'd be inclined to wait until the window for 3.9 opens since Linus probably has more than enough to do finalizing 3.8 right now. I guess this change is anything but urgent ;) Thanks, /mjt -- To unsubscribe

Re: [PATCH linux-next] autofs4: autofs4_catatonic_mode(): remove redundant null check on kfree()

2013-02-12 Thread Ian Kent
On Wed, 2013-02-13 at 11:23 +0400, Michael Tokarev wrote: > 13.02.2013 11:20, Ian Kent wrote: > > On Tue, 2013-02-12 at 10:12 -0700, Tim Gardner wrote: > >> smatch analysis: > >> > >> fs/autofs4/waitq.c:46 autofs4_catatonic_mode() info: redundant null > >> check on wq->name.name calling kfree()

Re: [PATCH] memcg: Add memory.pressure_level events

2013-02-12 Thread Greg Thelen
On Sun, Feb 10 2013, Anton Vorontsov wrote: > With this patch userland applications that want to maintain the > interactivity/memory allocation cost can use the new pressure level > notifications. The levels are defined like this: > > The "low" level means that the system is reclaiming memory for

Re: [PATCH 3/3 RESEND] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-12 Thread Marek Szyprowski
Hello, On 2/12/2013 11:10 PM, Guennadi Liakhovetski wrote: Hi Marek On Tue, 12 Feb 2013, Marek Szyprowski wrote: > Some regulators don't report any voltage values, so checking supported > voltage range results in disabling all SDHCI_CAN_VDD_* flags and > registration failure. This patch

Re: [PATCH] staging/comedi: Fix undefined array subscript

2013-02-12 Thread Dan Carpenter
On Wed, Feb 13, 2013 at 04:30:54AM +0100, Peter Huewe wrote: > In vmk80xx_do_insn_bits the local variable reg, which is used as an > index to the tx_buf array, can be used uninitialized if > - data[0] == 0 > and > - devpriv->model != VMK8061_MODEL > -> we get into the else branch without having

Re: [PATCH 1/3 v3] selftests: Add tests for efivarfs

2013-02-12 Thread Matt Fleming
On Tue, 2013-02-12 at 15:50 -0800, Andrew Morton wrote: > On Fri, 08 Feb 2013 10:08:49 + > Matt Fleming wrote: > > > On Fri, 2013-02-08 at 18:05 +0800, Jeremy Kerr wrote: > > > However, the tests expose a bug at the moment, so run_tests will fail. > > > Matt will have that fixed soon though

[PATCH] USB: EHCI: make ehci-vt8500 a separate driver

2013-02-12 Thread manjunath . goudar
From: Manjunath Goudar Separate the vt8500 host controller driver from ehci-hcd host code into its own driver module. Signed-off-by: Manjunath Goudar Cc: Greg KH Cc: Alan Stern Cc: Tony Prisk Cc: Alexey Charkov Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

Re: [PATCH] memcg: Add memory.pressure_level events

2013-02-12 Thread Anton Vorontsov
Hi Glauber, On Mon, Feb 11, 2013 at 02:17:06PM +0400, Glauber Costa wrote: [...] > > +static struct vmpressure *vmpressure_parent(struct vmpressure *vmpr) > > +{ > > + struct cgroup *cg = vmpr_to_css(vmpr)->cgroup->parent; > > + > > + if (!cg) > > + return NULL; > > + return

Re: [PATCH linux-next] autofs4: autofs4_catatonic_mode(): remove redundant null check on kfree()

2013-02-12 Thread Michael Tokarev
13.02.2013 11:20, Ian Kent wrote: On Tue, 2013-02-12 at 10:12 -0700, Tim Gardner wrote: smatch analysis: fs/autofs4/waitq.c:46 autofs4_catatonic_mode() info: redundant null check on wq->name.name calling kfree() I'm not sure about this change. autofs4_catatonic_mode() could be called when

Re: [PATCH linux-next] autofs4: autofs4_catatonic_mode(): remove redundant null check on kfree()

2013-02-12 Thread Ian Kent
On Tue, 2013-02-12 at 10:12 -0700, Tim Gardner wrote: > smatch analysis: > > fs/autofs4/waitq.c:46 autofs4_catatonic_mode() info: redundant null > check on wq->name.name calling kfree() I'm not sure about this change. autofs4_catatonic_mode() could be called when there are remaining entries in

Re: [PATCH] memcg: Add memory.pressure_level events

2013-02-12 Thread Anton Vorontsov
Hi Greg, Thanks for taking a look! On Tue, Feb 12, 2013 at 10:42:51PM -0800, Greg Thelen wrote: [...] > > +static unsigned long vmpressure_calc_level(unsigned int win, > > + unsigned int s, unsigned int r) > > Should seems like the return type of this

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

2013-02-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/irqchip/Makefile between commit 270de53f851b ("metag: Internal and external irqchips") from the metag tree and commit a900e5d99718 ("ARM: exynos: move exynos4210-combiner to drivers/irqchip") from the arm-soc tree. I

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-12 Thread anish singh
Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar wrote: > From: anish kumar > > This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is > multifold. > Uses are: > 1. Check if smpboot_register_percpu_thread function passed. > 2. Makes sure that user

Re: [REGRESSION] [nailed] USB boot failure: USB: EHCI: make ehci-pci a separate driver

2013-02-12 Thread Andreas Mohr
Hi, On Wed, Feb 13, 2013 at 07:44:36AM +0100, Andreas Mohr wrote: > So, what to do? I'm now going to do some experimentation with git revert > on some revision, and I'm trying to establish the USB port dependency > (BIOS-owned handoff root hub invisible!?, as discussed in initial mail). After

[PATCH] USB: EHCI: make ehci-mv a separate driver

2013-02-12 Thread manjunath . goudar
From: Manjunath Goudar Separate the mv(marvell) host controller driver from ehci-hcd host code into its own driver module. Signed-off-by: Manjunath Goudar Cc: Greg KH Cc: Alan Stern Cc: Jason Cooper Cc: Andrew Lunn Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

Re: [PATCH v3] gpio: Add device driver for GRGPIO cores and support custom accessors with gpio-generic

2013-02-12 Thread Anton Vorontsov
On Tue, Feb 12, 2013 at 08:24:33AM +0100, Andreas Larsson wrote: > This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP > core library from Aeroflex Gaisler. > > This also adds support to gpio-generic for using custom accessor > functions. The grgpio driver uses this to use

Re: [PATCH V2] clk: tegra: initialise parent of uart clocks

2013-02-12 Thread Laxman Dewangan
uency properties from serial nodes", the UART clocks get turned off and the console breaks. I tested this in next-20130212 where "clock-frequency" is there in tegra30.dtsi file. If you remove this from dts file at all then it will not work as there is no execution path to call th

Re: [ 00/61] 3.7.8-stable review

2013-02-12 Thread Satoru Takeuchi
At Tue, 12 Feb 2013 12:34:20 -0800, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.7.8 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. >

[PATCH 1/4] gpiolib: check descriptors validity before use

2013-02-12 Thread Alexandre Courbot
From: Alexandre Courbot Some functions dereferenced their GPIO descriptor argument without checking its validity first, potentially leading to an oops when given an invalid argument. This patch also makes gpio_get_value() more resilient when given an invalid GPIO, returning 0 instead of

[PATCH 2/4] gpiolib: use const parameters when possible

2013-02-12 Thread Alexandre Courbot
From: Alexandre Courbot Constify descriptor parameter of gpiod_* functions for those that should obviously not modify it. This includes value or direction get, cansleep, and IRQ number query. Signed-off-by: Alexandre Courbot --- drivers/gpio/gpiolib.c | 29 - 1

[PATCH 0/4] gpiolib: some fixup patches

2013-02-12 Thread Alexandre Courbot
This short series is a fixup to patch 6/9 of my previous series ("gpiolib: use descriptors internally"), which mainly addresses issues raised by Linus W. in this patch and a few other minor ones caught while proof-reading gpiolib. First patch is the most significant. It mostly avoids oopses

[PATCH 4/4] gpiolib: rename local offset variables to "hwgpio"

2013-02-12 Thread Alexandre Courbot
Delivered-To: gnu...@gmail.com Received: by 10.64.96.232 with SMTP id dv8csp15271ieb; Sun, 10 Feb 2013 05:48:07 -0800 (PST) X-Received: by 10.68.0.39 with SMTP id 7mr11102539pbb.124.1360504086445; Sun, 10 Feb 2013 05:48:06 -0800 (PST) Return-Path: Received: from

[PATCH 3/4] gpiolib: move comment to right function

2013-02-12 Thread Alexandre Courbot
From: Alexandre Courbot This comment applies to gpio_to_chip(), not gpiod_to_chip(). Signed-off-by: Alexandre Courbot --- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index ad6df6b..d8aa1a0 100644

[PATCH 4/4] gpiolib: rename local offset variables to "hwgpio"

2013-02-12 Thread Alexandre Courbot
From: Alexandre Courbot Their value being obtained by gpio_chip_hwgpio(), this better reflects their use. Signed-off-by: Alexandre Courbot --- drivers/gpio/gpiolib.c | 70 +- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git

Re: [PATCH v2] IIO ADC support for AD7923

2013-02-12 Thread leroy christophe
Le 12/02/2013 19:54, Lars-Peter Clausen a écrit : On 02/12/2013 06:10 PM, Christophe Leroy wrote: This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy Looks good to me except for one small, but important

[PATCH v3] IIO ADC support for AD7923

2013-02-12 Thread Christophe Leroy
This patch adds support for Analog Devices AD7923 ADC in the IIO Subsystem. Signed-off-by: Patrick Vasseur Signed-off-by: Christophe Leroy diff -urN linux-next-e347c98/drivers/iio/adc/Kconfig linux-next-e347c98.new/drivers/iio/adc/Kconfig --- linux-next-e347c98/drivers/iio/adc/Kconfig

[REGRESSION] [nailed] USB boot failure: USB: EHCI: make ehci-pci a separate driver

2013-02-12 Thread Andreas Mohr
Hi guys (*wink*), On Tue, Feb 12, 2013 at 08:16:17AM -0800, Greg KH wrote: > On Tue, Feb 12, 2013 at 05:07:27PM +0100, Andreas Mohr wrote: > > On Sun, Feb 10, 2013 at 03:05:54PM +0100, Andreas Mohr wrote: > > > Regression sorta confirmed now. -rc3 with a fully suitable .config does > > > not boot

Re: [PATCH] x86: Lock down MSR writing in secure boot

2013-02-12 Thread Matthew Garrett
On Tue, 2013-02-12 at 22:33 -0800, H. Peter Anvin wrote: > That is just batshit crazy. If you have CAP_SYS_RAWIO you can do iopl() > which means you can reprogram your northbridge, at which point you most > definitely *can* modify the running kernel. Well right, that's the point of this

ksignal changes for 3.9

2013-02-12 Thread Vineet Gupta
Hi Al, linux-next contains ksignal conversion for some of the architectures. Are you planning to complete that in 3.9 merge window. The reason I ask is so that the newer architectures (arc/metag - for a likely 3.9 merge) can queue the corresponding changes via respective trees. Thx, -Vineet --

Re: [PATCH] MAINTAINERS: Remove Jarod Wilson and orphan LIRC drivers

2013-02-12 Thread Dan Carpenter
On Tue, Feb 12, 2013 at 01:20:36PM -0800, Joe Perches wrote: > His email bounces and he hasn't done work on > these sections in a couple of years. > I've added him to the CC list. Can we just update MAINTAINERS with the correct email address? It's been useful to CC him on stuff. regards, dan

Re: [PATCH] x86: Lock down MSR writing in secure boot

2013-02-12 Thread H. Peter Anvin
On 02/12/2013 10:27 PM, Matthew Garrett wrote: On Tue, 2013-02-12 at 22:12 -0800, H. Peter Anvin wrote: Sounds like you are thinking of CAP_SYS_ADMIN, but I don't really see a huge difference between MSRs and I/O control registers... just different address spaces. Not having CAP_SYS_RAWIO

RE: [PATCH v5 0/2] Adding USB 3.0 DRD-phy support for exynos5250

2013-02-12 Thread kgene
Vivek Gautam wrote: > > Based on 'usb-next' > > Changes from v4: > - Modifying function names and driver names to follow a common >naming convention. > "usb2phy" for samsung-usb2phy driver > "usb3phy" for samsung-usb3phy driver > - Changing file names "samsung-usb2.c" to

Re: [PATCH] x86: Lock down MSR writing in secure boot

2013-02-12 Thread Matthew Garrett
On Tue, 2013-02-12 at 22:12 -0800, H. Peter Anvin wrote: > Sounds like you are thinking of CAP_SYS_ADMIN, but I don't really see a > huge difference between MSRs and I/O control registers... just different > address spaces. Not having CAP_SYS_RAWIO blocks various SCSI commands, for instance.

Re: [PATCH] sched: fix env->src_cpu for active migration

2013-02-12 Thread Damien Wyart
Hi, I tested this on top of 3.8-rc7 and this made the machine (x86_64, Core i7 920) unable to boot (very early as nothing at all is displayed on screen). Nothing in the kernel log (after booting with a working kernel). Double-checked by just backing out only this patch and this made the machine

Re: [PATCHv4 6/7] zswap: add flushing support

2013-02-12 Thread Seth Jennings
On 02/01/2013 01:27 AM, Minchan Kim wrote: > On Tue, Jan 29, 2013 at 03:40:26PM -0600, Seth Jennings wrote: >> This patchset adds support for flush pages out of the compressed >> pool to the swap device >> Thanks for the review Minchan! Sorry for the delayed response. I'm prepping v5 for

Re: [PATCH]sched/stop_task: Do not account zero delta_exec in put_prev_task_stop

2013-02-12 Thread Namhyung Kim
Hi Kirill, On Tue, 12 Feb 2013 01:40:04 +0400, Kirill Tkhai wrote: > Simple return > > Signed-off-by: Kirill V Tkhai > CC: Steven Rostedt > CC: Ingo Molnar > CC: Peter Zijlstra > CC: linux-rt-users > --- > kernel/sched/stop_task.c |4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [PATCH] x86: Lock down MSR writing in secure boot

2013-02-12 Thread H. Peter Anvin
On 02/12/2013 09:39 PM, Matthew Garrett wrote: On Tue, 2013-02-12 at 16:48 -0800, H. Peter Anvin wrote: OK... what none of this gets into: Why should CAP_RAWIO be allowed on a secure boot system, when there are 2^n known ways of compromise a system with CAP_RAWIO? CAP_SYS_RAWIO seems to

Re: [v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-12 Thread Hiroshi Doyu
Stephen Warren wrote @ Tue, 12 Feb 2013 17:35:56 +0100: > However I'd like to avoid changing the body of those two functions at > all if possible, since I hope the PCIe driver rework will be merged in > 3.10, and that will allow the Harmony and TrimSlice init functions to be > removed entirely.

Re: [PATCH] x86: Lock down MSR writing in secure boot

2013-02-12 Thread Matthew Garrett
On Tue, 2013-02-12 at 16:48 -0800, H. Peter Anvin wrote: > OK... what none of this gets into: > > Why should CAP_RAWIO be allowed on a secure boot system, when there are > 2^n known ways of compromise a system with CAP_RAWIO? CAP_SYS_RAWIO seems to have ended up being a catchall of "Maybe

Re: Debugging Thinkpad T430s occasional suspend failure.

2013-02-12 Thread Hugh Dickins
On Tue, 12 Feb 2013, Dave Jones wrote: > On Tue, Feb 12, 2013 at 04:56:55PM -0800, Hugh Dickins wrote: > > > > so I can hit this pretty quickly with this.. > > > > > > while [ 1 ]; > > > do > > > rtcwake -s 5 -m no ; pm-suspend > > > done > > > > > > Which should make it bisectable at

RE: [PATCH v6 05/12] iommu/exynos: support for device tree

2013-02-12 Thread Kukjin Kim
KyongHo Cho wrote: > > On Fri, Feb 1, 2013 at 10:51 PM, Joerg Roedel wrote: > > Cho, > > > > On Wed, Jan 02, 2013 at 02:53:49PM +0900, KyongHo Cho wrote: > >> On Tuesday, January 1, 2013, Sylwester Nawrocki > > > > >> > Cc: devicetree-disc...@lists.ozlabs.org > > > > Since patch 7 of this set

Re: [PATCH v2 5/6] Input: matrix-keymap: Add function to read the new DT binding

2013-02-12 Thread a0131647
Hi, On Wednesday 13 February 2013 08:12 AM, Simon Glass wrote: We now have a binding which adds two parameters to the matrix keypad DT node. This is separate from the GPIO-driven matrix keypad binding, and unfortunately incompatible, since that uses row-gpios/col-gpios for the row and column

[next-20130204] nouveau: lockdep warning (not the same as the subdev lockdep warning)

2013-02-12 Thread Peter Hurley
Got this lockdep warning straightaway during boot: [7.435890] = [7.435891] [ INFO: possible recursive locking detected ] [7.435893] 3.8.0-next-20130204+pcipatch-xeon+lockdep #20130204+pcipatch Not tainted [7.435893]

Re: [PATCH 0/2] NFSD: fix races in service per-net resources allocation

2013-02-12 Thread Stanislav Kinsbursky
13.02.2013 01:18, Peter Staubach пишет: The "+" thing seems a little odd. Why not use "||" instead? The sum of the two returns isn't really the important thing, is it? It is that either call to svc_close_list() returns non-zero. Thanx... Yep, thanks for the notice.

Re: [next-20130204] hard LOCKUP on cpu 5, 3, 4, 2

2013-02-12 Thread Peter Hurley
On Tue, 2013-02-12 at 23:45 -0500, Peter Hurley wrote: > Got this message log (excerpted below) while building a kernel on > next-20130204. > > The build was taking place on an ext4 fs which is device-mapped on > stripped fakeraid. Happened directly on boot on a lockdep next-20130204 kernel. Log

[GIT PULL] parisc fixes for 3.8-rc7

2013-02-12 Thread James Bottomley
This is a couple of patches, one to fix a broken build with HPUX compatibility and the other to solve a coherency problem we've been seeing in our TLB where setting a page read only occasionally fails to trigger a COW because of a stale writeable TLB entry. The patches are here:

linux-next: manual merge of the drm tree with Linus' tree

2013-02-12 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in drivers/gpu/drm/radeon/evergreen_cs.c between commit de0babd60d8d ("drm/radeon: enforce use of radeon_get_ib_value when reading user cmd") from Linus' tree and commit 0fcb6155cb5c ("radeon/kms: cleanup async dma packet checking")

Re: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread Yinghai Lu
On Tue, Feb 12, 2013 at 7:58 PM, KY Srinivasan wrote: > > >> -Original Message- >> From: H. Peter Anvin [mailto:h...@zytor.com] >> Sent: Tuesday, February 12, 2013 10:55 PM >> To: KY Srinivasan >> Cc: Yinghai Lu; mi...@kernel.org; linux-kernel@vger.kernel.org; >> t...@linutronix.de;

Re: Abysmal HDD/USB write speed after sleep on a UEFI system

2013-02-12 Thread Bjorn Helgaas
[+cc linux-pci, Rafael, Alan] [https://bugzilla.kernel.org/show_bug.cgi?id=53551] On Tue, Feb 12, 2013 at 1:13 PM, Artem S. Tashkinov wrote: > Feb 13, 2013 01:32:53 AM, Linus Torvalds wrote: > On Tue, Feb 12, 2013 at 10:29 AM, Artem S. Tashkinov wrote: >>> Feb 12, 2013 11:30:20 PM, Linus

Re: [PATCH] ACPI, PCI: Get PRT entry during acpi_pci_enable_irq()

2013-02-12 Thread Peter Hurley
On Tue, 2013-02-12 at 18:42 -0800, Yinghai Lu wrote: > On Tue, Feb 12, 2013 at 6:20 PM, Peter Hurley > wrote: > > > > Reported-and-tested-by: Peter Hurley > > Thanks. > > > PS - I just happened to see this version on the list. Would you please > > cc me on any future versions? > > oh, my

Re: Debugging Thinkpad T430s occasional suspend failure.

2013-02-12 Thread Dave Jones
On Tue, Feb 12, 2013 at 04:56:55PM -0800, Hugh Dickins wrote: > > so I can hit this pretty quickly with this.. > > > > while [ 1 ]; > > do > > rtcwake -s 5 -m no ; pm-suspend > > done > > > > Which should make it bisectable at least.. > > Thanks, I'll give that a try this evening.

RE: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread KY Srinivasan
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Tuesday, February 12, 2013 10:55 PM > To: KY Srinivasan > Cc: Yinghai Lu; mi...@kernel.org; linux-kernel@vger.kernel.org; > t...@linutronix.de; h...@linux.intel.com; linux-tip-comm...@vger.kernel.org > Subject:

Re: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread H. Peter Anvin
On 02/12/2013 07:49 PM, KY Srinivasan wrote: The issue was that you could turn on CONFIG_HYPERV without enabling CONFIG_X86_LOCAL_APIC. Peter fixed it. He is asking why you are using IS_ENABLED() instead of #ifdef. The difference is that IS_ENABLED() works even for modules. My mistake!

RE: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread KY Srinivasan
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Tuesday, February 12, 2013 10:46 PM > To: KY Srinivasan > Cc: Yinghai Lu; mi...@kernel.org; linux-kernel@vger.kernel.org; > t...@linutronix.de; h...@linux.intel.com; linux-tip-comm...@vger.kernel.org > Subject:

Re: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread H. Peter Anvin
On 02/12/2013 07:32 PM, KY Srinivasan wrote: +#if IS_ENABLED(CONFIG_HYPERV) +apicinterrupt HYPERVISOR_CALLBACK_VECTOR \ + hyperv_callback_vector hyperv_vector_handler +#endif /* CONFIG_HYPERV */ + so #ifdef CONFIG_HYPERV does not work here? The issue was that you could turn on

Re: [ 61/61] drm/nouveau: add lockdep annotations

2013-02-12 Thread Peter Hurley
On Tue, 2013-02-12 at 12:35 -0800, Greg Kroah-Hartman wrote: > 3.7-stable review patch. If anyone has any objections, please let me know. FWIW, I never saw this on 3.7 but it happened 1st time on 3.8-rcX I haven't tested this fix either. Regards, Peter Hurley -- To unsubscribe from this list:

Re: [PATCH v2 2/6] mfd: Add ChromeOS EC implementation

2013-02-12 Thread Joe Perches
On Tue, 2013-02-12 at 18:42 -0800, Simon Glass wrote: > This is the base EC implementation, which provides a high level > interface to the EC for use by the rest of the kernel. The actual > communcations is dealt with by a separate protocol driver which > registers itself with this interface.

RE: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread KY Srinivasan
> -Original Message- > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu > Sent: Tuesday, February 12, 2013 9:56 PM > To: mi...@kernel.org; h...@zytor.com; linux-kernel@vger.kernel.org; KY > Srinivasan; t...@linutronix.de; h...@linux.intel.com > Cc:

Re: [PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-12 Thread Yasuaki Ishimatsu
Hi Rafael, I have another comment at container.c. 2013/02/13 12:08, Yasuaki Ishimatsu wrote: Hi Rafael, The patch seems good. There is a comment below. 2013/02/13 9:19, Rafael J. Wysocki wrote: From: Rafael J. Wysocki This changeset is aimed at fixing a few different but related problems

[PATCH] staging/comedi: Fix undefined array subscript

2013-02-12 Thread Peter Huewe
In vmk80xx_do_insn_bits the local variable reg, which is used as an index to the tx_buf array, can be used uninitialized if - data[0] == 0 and - devpriv->model != VMK8061_MODEL -> we get into the else branch without having reg initialized. Since the driver usually differentiates between

Re: [PATCH 1/1] VSOCK: Introduce VM Sockets

2013-02-12 Thread Andy King
Hi Gerd, > > +/* Option name for socket's service label. Use as the option name in > > + * setsockopt(3) or getsockopt(3) to set or get the service label for a > > socket. > > + * The service label is a C-style NUL-terminated string. Only available > > for > > + * hypervisor endpoints. > > + */

Re: [Pv-drivers] [PATCH 1/1] VSOCK: Introduce VM Sockets

2013-02-12 Thread Andy King
> stream_has_data: Returns amount of data available (in bytes) in the > socket's receive buffer, or -1 if empty. > > stream_has_space: Returns amount of space available (in bytes) in the > socket's send buffer, or -1 if full. Actually, I think it's for empty/full, and -1 for an error (say, the

Re: [PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-12 Thread Yasuaki Ishimatsu
Hi Rafael, The patch seems good. There is a comment below. 2013/02/13 9:19, Rafael J. Wysocki wrote: From: Rafael J. Wysocki This changeset is aimed at fixing a few different but related problems in the ACPI hotplug infrastructure. First of all, since notify handlers may be run in parallel

[PATCH 9/9] staging/rtl8187se: Mark functions as static to silence sparse

2013-02-12 Thread Peter Huewe
Sparse complains that some functions can be declared as static: 123:6: warning: symbol 'PlatformIOWrite1Byte' was not declared. Should it be static? 129:6: warning: symbol 'PlatformIOWrite2Byte' was not declared. Should it be static? 135:6: warning: symbol 'PlatformIOWrite4Byte' was not

[PATCH 5/9] staging/rtl8187se: Reuse ReadBBPortUchar to avoid duplicated code

2013-02-12 Thread Peter Huewe
WriteBBPortUchar reimplements ReadBBPortUchar in its body, so we can remove the duplicated code by calling ReadBBPortUchar directly. Unfortunately we have to move ReadBBPortUchar around; while at it we can also get rid of the temporary variable for the return value. Also we can remove the local

Re: [PATCH 1/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Hüwe
Am Mittwoch, 13. Februar 2013, 03:54:26 schrieb Peter Huewe: > Local variable AcmCtrl is never read/used after assignment so we can remove > all assignments to it and the related code around the assignments. > > Signed-off-by: Peter Huewe Sorry wrong distribution list. Seems my script went a

[PATCH 7/9] staging/rtl8187se: Remove unused functions PlatformIORead2Byte / PlatformIORead4Byte

2013-02-12 Thread Peter Huewe
These two functions PlatformIORead2Byte and PlatformIORead4Byte are unused and thus can be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 20 1 files changed, 0 insertions(+), 20 deletions(-) diff --git

[PATCH 8/9] staging/rtl8187se: Remove duplicated code by using an offset

2013-02-12 Thread Peter Huewe
In SetAntennaConfig87SE both branches of if (bAntDiversity) do exactly the same, except that there is an offset of 0x80 for the register values if bAntDiversity is true. -> Consolidate both branches and assign the offset if necessary. Signed-off-by: Peter Huewe ---

[PATCH 6/9] staging/rtl8187se: Remove temporary variable for return value

2013-02-12 Thread Peter Huewe
The simple PlatformIORead1Byte function doesn't need to store its return value in a temporary variable; rather simply return the value directly. By moving the function to the top we can also get rid of the forward declaration. The wrapper functions could be easily replaced by direct calls to

Re: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-12 Thread Yinghai Lu
On Tue, Feb 12, 2013 at 4:58 PM, tip-bot for K. Y. Srinivasan wrote: > Commit-ID: bc2b0331e077f576369a2b6c75d15ed4de4ef91f > Gitweb: http://git.kernel.org/tip/bc2b0331e077f576369a2b6c75d15ed4de4ef91f > Author: K. Y. Srinivasan > AuthorDate: Sun, 3 Feb 2013 17:22:39 -0800 > Committer:

[PATCH 2/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
The local variable u4bAcParam is never read/used after assignment, thus we can remove the declaration, assignment and any related code. -> the local variables u1bAIFS, eACI and pAcParam can also be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 39

[PATCH 4/9] staging/rtl8187se: Remove unused/unnecessary variables

2013-02-12 Thread Peter Huewe
The local variables priv and ieee are not used and thus can be removed. The local variable u1bAIFS is not used/read after assignment and thus can be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-)

[PATCH 3/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
The local variable AcParam is only assigned to but not read/used afterwards, thus it and all related code can be removed. The bFollowLegacySetting variable and check can also be removed as it is always true. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 35

[PATCH 1/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
Local variable AcmCtrl is never read/used after assignment so we can remove all assignments to it and the related code around the assignments. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 49 +-- 1 files changed, 1 insertions(+), 48

[PATCH 3/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
The local variable AcParam is only assigned to but not read/used afterwards, thus it and all related code can be removed. The bFollowLegacySetting variable and check can also be removed as it is always true. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 35

[PATCH 4/9] staging/rtl8187se: Remove unused/unnecessary variables

2013-02-12 Thread Peter Huewe
The local variables priv and ieee are not used and thus can be removed. The local variable u1bAIFS is not used/read after assignment and thus can be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-)

[PATCH 2/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
The local variable u4bAcParam is never read/used after assignment, thus we can remove the declaration, assignment and any related code. -> the local variables u1bAIFS, eACI and pAcParam can also be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 39

[PATCH 6/9] staging/rtl8187se: Remove temporary variable for return value

2013-02-12 Thread Peter Huewe
The simple PlatformIORead1Byte function doesn't need to store its return value in a temporary variable; rather simply return the value directly. By moving the function to the top we can also get rid of the forward declaration. The wrapper functions could be easily replaced by direct calls to

[PATCH 9/9] staging/rtl8187se: Mark functions as static to silence sparse

2013-02-12 Thread Peter Huewe
Sparse complains that some functions can be declared as static: 123:6: warning: symbol 'PlatformIOWrite1Byte' was not declared. Should it be static? 129:6: warning: symbol 'PlatformIOWrite2Byte' was not declared. Should it be static? 135:6: warning: symbol 'PlatformIOWrite4Byte' was not

[PATCH v2 3/6] mfd: Add ChromeOS EC I2C driver

2013-02-12 Thread Simon Glass
This uses an I2C bus to talk to the ChromeOS EC. The protocol is defined by the EC and is fairly simple, with a length byte, checksum, command byte and version byte (to permit easy creation of new commands). Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou --- Changes in v2: - Remove

[PATCH 5/9] staging/rtl8187se: Reuse ReadBBPortUchar to avoid duplicated code

2013-02-12 Thread Peter Huewe
WriteBBPortUchar reimplements ReadBBPortUchar in its body, so we can remove the duplicated code by calling ReadBBPortUchar directly. Unfortunately we have to move ReadBBPortUchar around; while at it we can also get rid of the temporary variable for the return value. Also we can remove the local

[PATCH 7/9] staging/rtl8187se: Remove unused functions PlatformIORead2Byte / PlatformIORead4Byte

2013-02-12 Thread Peter Huewe
These two functions PlatformIORead2Byte and PlatformIORead4Byte are unused and thus can be removed. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 20 1 files changed, 0 insertions(+), 20 deletions(-) diff --git

[PATCH 1/9] staging/rtl8187se: Remove code without effect

2013-02-12 Thread Peter Huewe
Local variable AcmCtrl is never read/used after assignment so we can remove all assignments to it and the related code around the assignments. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r8185b_init.c | 49 +-- 1 files changed, 1 insertions(+), 48

[PATCH 8/9] staging/rtl8187se: Remove duplicated code by using an offset

2013-02-12 Thread Peter Huewe
In SetAntennaConfig87SE both branches of if (bAntDiversity) do exactly the same, except that there is an offset of 0x80 for the register values if bAntDiversity is true. -> Consolidate both branches and assign the offset if necessary. Signed-off-by: Peter Huewe ---

Re: iio: adc: add exynos5 adc driver under iio framwork

2013-02-12 Thread Naveen Krishna Ch
On 13 February 2013 02:37, Guenter Roeck wrote: > On Wed, Jan 23, 2013 at 04:58:06AM -, Naveen Krishna Chatradhi wrote: >> This patch add an ADC IP found on EXYNOS5 series socs from Samsung. >> Also adds the Documentation for device tree bindings. >> >> Signed-off-by: Naveen Krishna Chatradhi

[PATCH v2 1/6] mfd: Add ChromeOS EC messages header

2013-02-12 Thread Simon Glass
This file is included verbatim from the ChromeOS EC respository. Ideally we would prefer to avoid changing it, to make it easier to track this rapidly-changing file. Signed-off-by: Simon Glass Signed-off-by: Che-Liang Chiou Signed-off-by: Vincent Palatin --- Changes in v2: None

[PATCH v2 5/6] Input: matrix-keymap: Add function to read the new DT binding

2013-02-12 Thread Simon Glass
We now have a binding which adds two parameters to the matrix keypad DT node. This is separate from the GPIO-driven matrix keypad binding, and unfortunately incompatible, since that uses row-gpios/col-gpios for the row and column counts. So the easiest option here is to provide a function for

[PATCH v2 0/6] Add ChromeOS Embedded Controller support

2013-02-12 Thread Simon Glass
The ChromeOS Embedded Controller (EC) is an Open Source EC implementation used on ARM and Intel Chromebooks. Current implementations use a Cortex-M3 connected on a bus (such as I2C, SPI, LPC) to the AP. A separate interrupt line is used to indicate when the EC needs service. Functions performed

[PATCH v2 4/6] mfd: Add ChromeOS EC SPI driver

2013-02-12 Thread Simon Glass
This uses a SPI bus to talk to the ChromeOS EC. The protocol is defined by the EC and is fairly simple, with a length byte, checksum, command byte and version byte (to permit easy creation of new commands). Signed-off-by: Simon Glass --- Changes in v2: - Remove use of __devinit/__devexit

[PATCH v2 6/6] Input: Add ChromeOS EC keyboard driver

2013-02-12 Thread Simon Glass
Use the key-matrix layer to interpret key scan information from the EC and inject input based on the FDT-supplied key map. This driver registers itself with the ChromeOS EC driver to perform communications. Additional FDT bindings are provided to specify rows/columns and the auto-repeat

[PATCH v2 2/6] mfd: Add ChromeOS EC implementation

2013-02-12 Thread Simon Glass
This is the base EC implementation, which provides a high level interface to the EC for use by the rest of the kernel. The actual communcations is dealt with by a separate protocol driver which registers itself with this interface. Interrupts are passed on through a notifier. The driver supports

Re: [PATCH] ACPI, PCI: Get PRT entry during acpi_pci_enable_irq()

2013-02-12 Thread Yinghai Lu
On Tue, Feb 12, 2013 at 6:20 PM, Peter Hurley wrote: > On Tue, 2013-02-12 at 11:11 -0800, Yinghai Lu wrote: >> Peter Hurley found "irq 18 nobody cared" with pci-next, and dmesg has >> >> [8.983246] pci :00:1e.0: can't derive routing for PCI INT A >> [8.983600] snd_ctxfi :09:02.0:

Re: [PATCH v2 00/26] x86, irq: support ioapic device hotplug

2013-02-12 Thread Yinghai Lu
On Mon, Feb 11, 2013 at 10:10 PM, H. Peter Anvin wrote: > On 02/11/2013 01:34 AM, Ingo Molnar wrote: >> >> * Yinghai Lu wrote: >> >>> Hi, >>> >>> Current x86 code does not support iapic hotplug yet. >> >> Please give a better high-level description: outline how an >> IO-APIC will be hotplugged

Re: [PATCH] ACPI, PCI: Get PRT entry during acpi_pci_enable_irq()

2013-02-12 Thread Peter Hurley
On Tue, 2013-02-12 at 11:11 -0800, Yinghai Lu wrote: > Peter Hurley found "irq 18 nobody cared" with pci-next, and dmesg has > > [8.983246] pci :00:1e.0: can't derive routing for PCI INT A > [8.983600] snd_ctxfi :09:02.0: PCI INT A: no GSI - using ISA IRQ 5 > > bisect to > |

  1   2   3   4   5   6   7   8   9   10   >