Re: [PATCH V3 1/2] i2c-designware: Add i2c bus locking support

2014-12-03 Thread Jarkko Nikula
Hi On 12/02/2014 02:09 AM, David E. Box wrote: Adds support for acquiring and releasing a hardware bus lock in the i2c designware core transfer function. This is needed for i2c bus controllers that are shared with but not controlled by the kernel. Signed-off-by: David E. Box ---

Re: 3.12.33 - BUG xfrm_selector_match+0x25/0x2f6

2014-12-03 Thread Steffen Klassert
On Wed, Dec 03, 2014 at 03:55:30PM +0100, Smart Weblications GmbH - Florian Wiessner wrote: > Hi list, > > > > [16623.095403] BUG: unable to handle kernel paging request at 010600d0 > [16623.095445] IP: [] xfrm_selector_match+0x25/0x2f6 > [16623.095480] PGD aeaea067 PUD 85d95067 PMD 0

Re: [PATCH 1/3] video: fbdev: vt8623fb: suppress build warning

2014-12-03 Thread Tomi Valkeinen
warning at all. With a quick glance, >> vga_res.start is the size of a pointer. So the sizes of the integer and >> the pointer should be the same. But the warning still says "of different >> size". > > poking my nose into your discussion. > I tried to see the warning, and I re-compiled like make W=1 > M=drivers/video/fbdev/ (before that make clean M=drivers/video/fbdev was done) > I can see warning with many other files, but drivers/video/fbdev/vt8623fb.o > was quiet and there was no warning. > I tested with next=20141203. > did i miss something in checking the warning ? I don't see the warning either when compiling for arm or x86_64. On what architecture do you see the warning? Tomi signature.asc Description: OpenPGP digital signature

Re: [PATCH 02/02] ARM: shmobile: marzen-reference: Remove IRLM workaround

2014-12-03 Thread Simon Horman
On Thu, Dec 04, 2014 at 04:33:25PM +0900, Magnus Damm wrote: > Hi Simon, > > On Thu, Dec 4, 2014 at 4:21 PM, Simon Horman wrote: > > Hi Magnus, > > > > On Wed, Dec 03, 2014 at 09:18:13PM +0900, Magnus Damm wrote: > >> From: Magnus Damm > >> > >> Adjust the r8a7779 SoC DTS and the Marzen

Re: [PATCH 01/02] irqchip: renesas-intc-irqpin: r8a7779 IRLM setup support

2014-12-03 Thread Simon Horman
On Thu, Dec 04, 2014 at 04:29:49PM +0900, Magnus Damm wrote: > Hi Simon, > > On Thu, Dec 4, 2014 at 4:18 PM, Simon Horman wrote: > > Hi Magnus, > > > > I see you have been busy with the marzen board. > > Yes! =) > > > On Wed, Dec 03, 2014 at 09:18:03PM +0900, Magnus Damm wrote: > >> From:

[PATCH] x86, mm: fix zone ranges print in boot

2014-12-03 Thread Xishi Qiu
This is the usual log without restrict memory. ... [0.00] Zone ranges: [0.00] DMA [mem 0x1000-0x00ff] [0.00] DMA32[mem 0x0100-0x] [0.00] Normal [mem 0x1-0xc3fff] [0.00] Movable zone start for each node [

Re: [PATCH 1/3] video: fbdev: vt8623fb: suppress build warning

2014-12-03 Thread Sudip Mukherjee
ot sure what you meant from 'where does this warning > > come from' its in the commit message. > > I meant why is there a warning at all. With a quick glance, > vga_res.start is the size of a pointer. So the sizes of the integer and > the pointer should be the same. But the

Re: [PATCH 4/5] ASoC: dwc: Add devicetree support for Designware I2S

2014-12-03 Thread rajeev kumar
Sorry for the last blank mail. On Wed, Dec 3, 2014 at 10:09 PM, Andrew Jackson wrote: > Convert to driver to use either platform_data or device-tree for configuration > of the device. When using device-tree, the I2S block's configuration is read > from the relevant registers: this reduces the

Re: [PATCH v3] staging: rtl8192u: fix sparse warnings

2014-12-03 Thread Sudip Mukherjee
f alignment, but v3 is again having 3 problems. and your patch doesnot apply to next-20141203 sudip > > drivers/staging/rtl8192u/r8192U_core.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/rtl8192u/r8192U_core.c > b/drive

Re: [PATCH 02/02] ARM: shmobile: marzen-reference: Remove IRLM workaround

2014-12-03 Thread Magnus Damm
Hi Simon, On Thu, Dec 4, 2014 at 4:21 PM, Simon Horman wrote: > Hi Magnus, > > On Wed, Dec 03, 2014 at 09:18:13PM +0900, Magnus Damm wrote: >> From: Magnus Damm >> >> Adjust the r8a7779 SoC DTS and the Marzen Reference >> C board code to use DTS only for INTC-IRQPIN IRLM setup. >> >>

Re: [PATCH v6 0/7] ARM: shmobile: R-Mobile: DT PM domain support

2014-12-03 Thread Simon Horman
On Wed, Dec 03, 2014 at 02:41:40PM +0100, Geert Uytterhoeven wrote: > Hi Simon, Magnus, > > This patch series enables DT support for PM domains on Renesas R-Mobile SoCs. > > Currently it's limited to R-Mobile A1 (r8a7740), but given the similarity of > the SYSC System-Controller on the

Re: [PATCH 01/02] irqchip: renesas-intc-irqpin: r8a7779 IRLM setup support

2014-12-03 Thread Magnus Damm
Hi Simon, On Thu, Dec 4, 2014 at 4:18 PM, Simon Horman wrote: > Hi Magnus, > > I see you have been busy with the marzen board. Yes! =) > On Wed, Dec 03, 2014 at 09:18:03PM +0900, Magnus Damm wrote: >> From: Magnus Damm >> >> Add r8a7779 specific support for IRLM bit configuration >> in the

[PATCH v3 4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-03 Thread Shreyas B. Prabhu
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 result it gives higher powersavings compared to sleep. But entering

[PATCH v3 1/4] powerpc: powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2014-12-03 Thread Shreyas B. Prabhu
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 bad for two reasons: (a) the architecture specifies that those

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

2014-12-03 Thread Shreyas B. Prabhu
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 state. Hence probe the device tree for the possible idle states in powernv

[PATCH v3 3/4] powernv: cpuidle: Redesign idle states management

2014-12-03 Thread Shreyas B. Prabhu
Deep idle states like sleep and winkle are per core idle states. A core enters these states only when all the threads enter either the particular idle state or a deeper one. There are tasks like fastsleep hardware bug workaround and hypervisor core state save which have to be done only by the last

Re: [RFC 0/6] zsmalloc support compaction

2014-12-03 Thread 박승호/책임연구원/SW Platform(연)AOT팀(seungho1.p...@lge.com)
Hi, Minchan. I got it. Thank u :). Seungho. 2014-12-04 오후 4:20에 Minchan Kim 이(가) 쓴 글: Hey Seungho, On Thu, Dec 04, 2014 at 03:49:21PM +0900, "박승호/책임연구원/SW Platform(연)AOT팀(seungho1.p...@lge.com)" wrote: Hi, Minchan. I have a question. The problem mentioned can't be resolved with

[PATCH v3 0/4] powernv: cpuidle: Redesign idle states management

2014-12-03 Thread Shreyas B. Prabhu
Deep idle states like sleep and winkle are per core idle states. A core enters these states only when all the threads enter either the particular idle state or a deeper one. There are tasks like fastsleep hardware bug workaround and hypervisor core state save which have to be done only by the last

Re: [PATCH V3] MIPS: BCM47XX: Move NVRAM driver to the drivers/soc/

2014-12-03 Thread Rafał Miłecki
On 4 December 2014 at 07:43, Paul Walmsley wrote: > Hello Rafał, > > On Fri, 28 Nov 2014, Paul Walmsley wrote: > >> On Thu, 27 Nov 2014, Rafał Miłecki wrote: >> >> > I'm pretty sure you look at some old version of arch/bcm47xx/nvram.c. >> > I wouldn't dare to move such a MIPS-focused driver to

[PATCH v2] Add TI CDCE925 I2C controlled clock synthesizer driver

2014-12-03 Thread Mike Looijmans
This driver supports the TI CDCE925 programmable clock synthesizer. The chip contains two PLLs with spread-spectrum clocking support and five output dividers. The driver only supports the following setup, and uses a fixed setting for the output muxes: Y1 is derived from the input clock Y2 and

[PATCH md] lib: raid: raid_cauchy_init() can be static

2014-12-03 Thread kbuild test robot
lib/raid/module.c:417:12: sparse: symbol 'raid_cauchy_init' was not declared. Should it be static? lib/raid/raid.c:156:9: sparse: symbol 'raid_zero_block' was not declared. Should it be static? Signed-off-by: Fengguang Wu --- module.c |2 +- raid.c |2 +- 2 files changed, 2

Re: [PATCH] optimize ktime_divns for constant divisors

2014-12-03 Thread Nicolas Pitre
On Wed, 3 Dec 2014, Arnd Bergmann wrote: > On Wednesday 03 December 2014 14:43:06 Nicolas Pitre wrote: > > At least on ARM, do_div() is optimized to turn constant divisors into > > an inline multiplication by the reciprocal value at compile time. > > However this optimization is missed entirely

Re: [RESEND PATCH v5 3/5] acerhdf: Use bang-bang thermal governor

2014-12-03 Thread Peter Feuerer
Hi again, Peter Feuerer writes: Hi Darren, thank you very much for your reply. Darren Hart writes: On Fri, Nov 28, 2014 at 03:20:50PM +0100, Peter Feuerer wrote: acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point

Re: [PATCH 02/02] ARM: shmobile: marzen-reference: Remove IRLM workaround

2014-12-03 Thread Simon Horman
Hi Magnus, On Wed, Dec 03, 2014 at 09:18:13PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Adjust the r8a7779 SoC DTS and the Marzen Reference > C board code to use DTS only for INTC-IRQPIN IRLM setup. > > Signed-off-by: Magnus Damm > --- > > Written on top of

Re: [RFC 0/6] zsmalloc support compaction

2014-12-03 Thread 박승호/책임연구원/SW Platform(연)AOT팀(seungho1.p...@lge.com)
Hi, Minchan. Sorry, I got it. You made zsmalloc pages movable. forget it. Seungho. 2014-12-04 오후 3:49에 "박승호/책임연구원/SW Platform(연)AOT팀 (seungho1.p...@lge.com)" 이(가) 쓴 글: Hi, Minchan. I have a question. The problem mentioned can't be resolved with compaction? Is there any reason that zsmalloc

Re: [RFC 0/6] zsmalloc support compaction

2014-12-03 Thread Minchan Kim
Hey Seungho, On Thu, Dec 04, 2014 at 03:49:21PM +0900, "박승호/책임연구원/SW Platform(연)AOT팀(seungho1.p...@lge.com)" wrote: > Hi, Minchan. > > I have a question. > The problem mentioned can't be resolved with compaction? > Is there any reason that zsmalloc pages can't be moved by compaction > operation

Re: [PATCH 01/02] irqchip: renesas-intc-irqpin: r8a7779 IRLM setup support

2014-12-03 Thread Simon Horman
Hi Magnus, I see you have been busy with the marzen board. On Wed, Dec 03, 2014 at 09:18:03PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Add r8a7779 specific support for IRLM bit configuration > in the INTC-IRQPIN driver. Without this code we need > special workaround code in

Re: [PATCH v2 0/4] clk: mediatek: Add common clock support for Mediatek MT8135.

2014-12-03 Thread James Liao
Hi, On Thu, 2014-12-04 at 14:52 +0800, James Liao wrote: > This patchset contains the initial common clock support for Mediatek SoCs. > Mediatek SoC's clock architecture comprises of various PLLs, dividers, > muxes and clock gates. > > This patchset also contains a basic clock support for

Re: [RESEND PATCH v5 3/5] acerhdf: Use bang-bang thermal governor

2014-12-03 Thread Peter Feuerer
Hi Darren, thank you very much for your reply. Darren Hart writes: On Fri, Nov 28, 2014 at 03:20:50PM +0100, Peter Feuerer wrote: acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables

Re: [PATCH 1/3] video: fbdev: vt8623fb: suppress build warning

2014-12-03 Thread Tomi Valkeinen
On 03/12/14 20:29, Prabhakar Lad wrote: > On Wed, Dec 3, 2014 at 11:49 AM, Tomi Valkeinen wrote: >> On 27/11/14 00:07, Lad, Prabhakar wrote: >>> this patch fixes following build warning: >>> drivers/video/fbdev/vt8623fb.c: In function ‘vt8623_pci_probe’: >>> drivers/video/fbdev/vt8623fb.c:734:23:

Re: [PATCH 4/5] ASoC: dwc: Add devicetree support for Designware I2S

2014-12-03 Thread rajeev kumar
On Wed, Dec 3, 2014 at 10:09 PM, Andrew Jackson wrote: > Convert to driver to use either platform_data or device-tree for configuration > of the device. When using device-tree, the I2S block's configuration is read > from the relevant registers: this reduces the amount of information required >

Re: [PATCH RFC] locking: Add volatile to arch_spinlock_t structures

2014-12-03 Thread Paul E. McKenney
On Wed, Dec 03, 2014 at 10:40:45PM -0800, Linus Torvalds wrote: > On Dec 3, 2014 10:31 PM, "Linus Torvalds" > wrote: > > > > So no, no, no. C got this wrong. Volatile data structures are a > fundamental mistake and a bug. > > BTW, I'm not at all interested in language lawyering and people who

Re: [PATCH RFC] locking: Add volatile to arch_spinlock_t structures

2014-12-03 Thread Paul E. McKenney
One point of the patch is "one more thing to watch for" in generated code, namely temporary clobbering of synchronization variables, locks included, due to overzealous optimization. If this happens to the kernel, I guess that the other quick workaround is to add alignment directives or padding.

RE: [RFC] fdt:free the fdt reserved memory

2014-12-03 Thread Wang, Yalin
> -Original Message- > From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant Likely > Sent: Wednesday, September 24, 2014 10:45 PM > To: Wang, Yalin; 'robh...@kernel.org'; 'devicet...@vger.kernel.org'; > 'pawel.m...@arm.com'; 'mark.rutl...@arm.com'; >

Re: [PATCH 3/5] ASoC: dwc: Iterate over all channels

2014-12-03 Thread rajeev kumar
On Wed, Dec 3, 2014 at 10:59 PM, Mark Brown wrote: > On Wed, Dec 03, 2014 at 04:39:01PM +, Andrew Jackson wrote: > >> + /* Iterate over set of channels - independently controlled. >> + */ >> + do { >> + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { >> +

Re: [PATCH v3 6/8] mm/page_owner: keep track of page owners

2014-12-03 Thread Joonsoo Kim
On Wed, Dec 03, 2014 at 06:54:08PM +0530, Chintan Pandya wrote: > Hi Kim, Hello, Chintan. > > This is really useful stuff that you are doing. And the runtime > allocation for storing page owner stack is a good call. > > Along with that, we also use extended version of the original > page_owner

[PATCH] sound/soc/adi/axi-spdif.c: Support programmable master clock

2014-12-03 Thread Mike Looijmans
If the master clock supports programmable rates, program it to generate the desired frequency. Only apply constraints when the clock is fixed. This allows proper clock generation for both 44100 and 48000 Hz based sampling rates if the platform supports it. The clock frequency must be set before

Re: [RFC 0/6] zsmalloc support compaction

2014-12-03 Thread 박승호/책임연구원/SW Platform(연)AOT팀(seungho1.p...@lge.com)
Hi, Minchan. I have a question. The problem mentioned can't be resolved with compaction? Is there any reason that zsmalloc pages can't be moved by compaction operation in direct reclaim? 2014-12-02 오전 11:49에 Minchan Kim 이(가) 쓴 글: Recently, there was issue about zsmalloc fragmentation and I got

Re: [PATCH 2/5] ASoC: dwc: Don't allow negative use counts

2014-12-03 Thread rajeev kumar
On Thu, Dec 4, 2014 at 12:10 PM, rajeev kumar wrote: > On Wed, Dec 3, 2014 at 10:55 PM, Mark Brown wrote: >> On Wed, Dec 03, 2014 at 04:38:55PM +, Andrew Jackson wrote: >> >>> case SNDRV_PCM_TRIGGER_STOP: >>> case SNDRV_PCM_TRIGGER_SUSPEND: >>> case

[PATCH v2 2/3] toshiba_acpi: Change notify funtion to handle more events

2014-12-03 Thread Azael Avalos
Currently the function toshiba_acpi_notify only takes care of hotkeys, however, the TOS devices receive more events that can be useful. This patch changes the function to be able to handle more events, and in the process, move all hotkey related code residing in it to a new function called

Re: [PATCH V3] MIPS: BCM47XX: Move NVRAM driver to the drivers/soc/

2014-12-03 Thread Paul Walmsley
Hello Rafał, On Fri, 28 Nov 2014, Paul Walmsley wrote: > On Thu, 27 Nov 2014, Rafał Miłecki wrote: > > > I'm pretty sure you look at some old version of arch/bcm47xx/nvram.c. > > I wouldn't dare to move such a MIPS-focused driver to some common > > place ;) > > > > Please check for the version

[PATCH v2 0/3] toshiba_acpi: Hotkeys and event handling changes

2014-12-03 Thread Azael Avalos
These patches change the current code to accomodate the handling of more events, since so far, it only handles hotkey events (0x80), move the hotkey enabling code to a sub function to avoid duplication, and add event 0x92 which indicates a change in the keyboard backlight mode. Changes since V1:

[PATCH v2 1/3] toshiba_acpi: Move hotkey enabling code to own function

2014-12-03 Thread Azael Avalos
The hotkey enabling code is being used by toshiba_acpi_setup_keyboard and also by toshiba_acpi_resume. This patch creates a new function called toshiba_acpi_enable_hotkeys to be used by these two functions to avoid duplicating code. Signed-off-by: Azael Avalos ---

[PATCH v2 3/3] toshiba_acpi: Add keyboard backlight mode change event

2014-12-03 Thread Azael Avalos
A previous patch added support to handle more events. This patch adds support to update the sysfs group whenever we receive a 0x92 event, which indicates a change in the keyboard backlight mode. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 13 +++-- 1 file

Re: [PATCH 2/5] ASoC: dwc: Don't allow negative use counts

2014-12-03 Thread rajeev kumar
On Wed, Dec 3, 2014 at 10:55 PM, Mark Brown wrote: > On Wed, Dec 03, 2014 at 04:38:55PM +, Andrew Jackson wrote: > >> case SNDRV_PCM_TRIGGER_STOP: >> case SNDRV_PCM_TRIGGER_SUSPEND: >> case SNDRV_PCM_TRIGGER_PAUSE_PUSH: >> - dev->active--; >> + if

[PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'

2014-12-03 Thread Chunyan Zhang
If I include asm/irq.h on the top of my code, and set ARCH=arm64, I'll get a compile warning, details are below: warning: ‘struct pt_regs’ declared inside parameter list [enabled by default] This patch is suggested by Arnd, see:

Re: [RFC PATCH v2] tinification: Introduce CONFIG_SRCU to make SRCU optional

2014-12-03 Thread Paul E. McKenney
On Wed, Dec 03, 2014 at 11:03:52PM -0500, Pranith Kumar wrote: > (CC list trimmed since this is just for initial feedback) > > SRCU is not necessary to be compiled by default in all cases. For tinification > efforts not compiling SRCU unless necessary is desirable. > > The current patch tries to

[PATCH v2] arm: omap3: twl: remove usb phy init data

2014-12-03 Thread Kishon Vijay Abraham I
From: Heikki Krogerus commit dbc98635e0d4 ("phy: remove the old lookup method") removes struct phy_consumer but twl-common.c still uses the "phy_consumer" structure resulting in the following compilation warning. arch/arm/mach-omap2/twl-common.c:94:21: error: array type has incomplete element

[PATCH RFC] locking: Add volatile to arch_spinlock_t structures

2014-12-03 Thread Paul E. McKenney
More concern about compilers... Most architectures mark the fields in their arch_spinlock_t structures as volatile, which forces the compiler to respect the integrity of those fields. Without volatile markings, the compiler is within its rights to overwrite these fields, for example, by using a

Re: [PATCH 1/2] toshiba_acpi: Move hotkey enabling code to own function

2014-12-03 Thread Darren Hart
On Tue, Dec 02, 2014 at 10:36:31PM -0700, Azael Avalos wrote: > The hotkey enabling code is being used by > *_setup_keyboard and also by *_resume. > > This patch creates a new function called > toshiba_acpi_enable_hotkeys to be used by > these two functions to avoid duplicating > code. 42 is a

Re: [PATCH 2/2] toshiba_acpi: Change notify funtion to handle more events

2014-12-03 Thread Darren Hart
On Tue, Dec 02, 2014 at 10:36:32PM -0700, Azael Avalos wrote: > Currently the function toshiba_acpi_notify only > takes care of hotkeys, however, the TOS > devices receive more events that can be useful. > > This patch changes the function to be able to > handle more events, and in the

Re: [PATCH] kernel: sysctl: use 'unsigned long' type for 'zero' variable

2014-12-03 Thread Manfred Spraul
Hi Andrew, On 12/04/2014 12:25 AM, Andrew Morton wrote: On Wed, 03 Dec 2014 15:41:21 +0300 Andrey Ryabinin wrote: Use the 'unsigned long' type for 'zero' variable to fix this. Changing type to 'unsigned long' shouldn't affect any other users of this variable. Reported-by: Dmitry Vyukov

RE: [RFC V2] mm:add zero_page _mapcount when mapped into user space

2014-12-03 Thread Wang, Yalin
> -Original Message- > From: Kirill A. Shutemov [mailto:kir...@shutemov.name] > Sent: Tuesday, December 02, 2014 7:30 PM > To: Wang, Yalin > Cc: 'linux-kernel@vger.kernel.org'; 'linux...@kvack.org'; 'linux-arm- > ker...@lists.infradead.org' > Subject: Re: [RFC V2] mm:add zero_page

Re: [RESEND PATCH v5 4/5] acerhdf: added critical trip point

2014-12-03 Thread Darren Hart
On Fri, Nov 28, 2014 at 03:20:51PM +0100, Peter Feuerer wrote: > added critical trip point which represents the temperature limit. Nitpic, Add ^ > Added return -EINVAL in case wrong trip point is provided. Add (we are going to add it with this patch, it wasn't added previously). It's a nitpic.

Re: [PATCH v9 0/8] TPM 2.0 support

2014-12-03 Thread Jarkko Sakkinen
Please ignore this one. Sent another one with v9 prefixes. Sorry! /Jarkko On Thu, Dec 04, 2014 at 07:49:19AM +0200, 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

[PATCH v9 5/8] tpm: device class for tpm

2014-12-03 Thread Jarkko Sakkinen
Added own device class for TPM. Uses MISC_MAJOR:TPM_MINOR for the first character device in order to retain backwards compatibility. Added tpm_dev_release() back attached to the character device. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c| 72

[PATCH v9 3/8] tpm: fix raciness of PPI interface lookup

2014-12-03 Thread Jarkko Sakkinen
Traversal of the ACPI device tree was not done right. PPI interface should be looked up only from the ACPI device that is the platform device for the TPM. This could cause problems with systems with two TPM chips such as 4th gen Intel systems. In addition, added the missing license and copyright

[PATCH v9 6/8] tpm: TPM 2.0 baseline support

2014-12-03 Thread Jarkko Sakkinen
TPM 2.0 devices are separated by adding a field 'flags' to struct tpm_chip and defining a flag TPM_CHIP_FLAG_TPM2 for tagging them. This patch adds the following internal functions: - tpm2_get_random() - tpm2_get_tpm_pt() - tpm2_pcr_extend() - tpm2_pcr_read() - tpm2_startup() Additionally, the

[PATCH v9 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-03 Thread Jarkko Sakkinen
From: Will Arthur Detect TPM 2.0 by using the extended STS (STS3) register. For TPM 2.0, instead of calling tpm_get_timeouts(), assign duration and timeout values defined in the TPM 2.0 PTP specification. Signed-off-by: Will Arthur Signed-off-by: Jarkko Sakkinen ---

[PATCH v9 4/8] tpm: rename chip->dev to chip->pdev

2014-12-03 Thread Jarkko Sakkinen
Rename chip->dev to chip->pdev to make it explicit that this not the character device but actually represents the platform device. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 4 ++-- drivers/char/tpm/tpm-dev.c | 10 +-

[PATCH v9 7/8] tpm: TPM 2.0 CRB Interface

2014-12-03 Thread Jarkko Sakkinen
tpm_crb is a driver for TPM 2.0 Command Response Buffer (CRB) Interface as defined in PC Client Platform TPM Profile (PTP) Specification. Only polling and single locality is supported as these are the limitations of the available hardware, Platform Trust Techonlogy (PTT) in Haswell CPUs. The

[PATCH v9 2/8] tpm: two-phase chip management functions

2014-12-03 Thread Jarkko Sakkinen
tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. The problem is that the device might not be fully initialized when it comes visible to the user space. This patch resolves the issue by diving initialization into two parts: - tpmm_chip_alloc()

Re: [RESEND PATCH v5 3/5] acerhdf: Use bang-bang thermal governor

2014-12-03 Thread Darren Hart
On Fri, Nov 28, 2014 at 03:20:50PM +0100, Peter Feuerer wrote: > acerhdf has been doing an on-off fan control using hysteresis by > post-manipulating the outcome of thermal subsystem trip point handling. > This patch enables acerhdf to use the bang-bang governor, which is > intended for on-off

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

2014-12-03 Thread Jarkko Sakkinen
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 fine here. Signed-off-by: Jarkko Sakkinen ---

[PATCH v9 0/8] TPM 2.0 support

2014-12-03 Thread Jarkko Sakkinen
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 have three non-trivial issues: - They are associated with the platform device instead of character device. -

RE: [PATCH v12 01/19] input: cyapa: modify code to following kernel code style

2014-12-03 Thread Dudley Du
/cyapa.c b/drivers/input/mouse/cyapa.c > > index b409c3d..c9fdf6d 100644 > > --- a/drivers/input/mouse/cyapa.c > > +++ b/drivers/input/mouse/cyapa.c > [...] > > I was hoping to test out your patchset since the patch for the touchpad > problem [1] still has not

Re: [PATCH v8 0/8] TPM 2.0 support

2014-12-03 Thread Jarkko Sakkinen
On Wed, Dec 03, 2014 at 12:16:19AM +0100, Peter Hüwe wrote: > [SNIP] > > When applying to linux-v3.18-rc6 I get this new coccinelle warning: > drivers/char/tpm/tpm_i2c_nuvoton.c:607:1-3: WARNING: end returns can be > simpified > > > make -C ../../../linux/ M=$(pwd) coccicheck Not a huge

[PATCH v8 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-03 Thread Jarkko Sakkinen
From: Will Arthur Detect TPM 2.0 by using the extended STS (STS3) register. For TPM 2.0, instead of calling tpm_get_timeouts(), assign duration and timeout values defined in the TPM 2.0 PTP specification. Signed-off-by: Will Arthur Signed-off-by: Jarkko Sakkinen ---

[PATCH v8 4/8] tpm: rename chip->dev to chip->pdev

2014-12-03 Thread Jarkko Sakkinen
Rename chip->dev to chip->pdev to make it explicit that this not the character device but actually represents the platform device. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 4 ++-- drivers/char/tpm/tpm-dev.c | 10 +-

[PATCH v8 7/8] tpm: TPM 2.0 CRB Interface

2014-12-03 Thread Jarkko Sakkinen
tpm_crb is a driver for TPM 2.0 Command Response Buffer (CRB) Interface as defined in PC Client Platform TPM Profile (PTP) Specification. Only polling and single locality is supported as these are the limitations of the available hardware, Platform Trust Techonlogy (PTT) in Haswell CPUs. The

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

2014-12-03 Thread Jarkko Sakkinen
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 fine here. Signed-off-by: Jarkko Sakkinen ---

[PATCH v8 2/8] tpm: two-phase chip management functions

2014-12-03 Thread Jarkko Sakkinen
tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. The problem is that the device might not be fully initialized when it comes visible to the user space. This patch resolves the issue by diving initialization into two parts: - tpmm_chip_alloc()

[PATCH v8 3/8] tpm: fix raciness of PPI interface lookup

2014-12-03 Thread Jarkko Sakkinen
Traversal of the ACPI device tree was not done right. PPI interface should be looked up only from the ACPI device that is the platform device for the TPM. This could cause problems with systems with two TPM chips such as 4th gen Intel systems. In addition, added the missing license and copyright

[PATCH v8 6/8] tpm: TPM 2.0 baseline support

2014-12-03 Thread Jarkko Sakkinen
TPM 2.0 devices are separated by adding a field 'flags' to struct tpm_chip and defining a flag TPM_CHIP_FLAG_TPM2 for tagging them. This patch adds the following internal functions: - tpm2_get_random() - tpm2_get_tpm_pt() - tpm2_pcr_extend() - tpm2_pcr_read() - tpm2_startup() Additionally, the

[PATCH v8 5/8] tpm: device class for tpm

2014-12-03 Thread Jarkko Sakkinen
Added own device class for TPM. Uses MISC_MAJOR:TPM_MINOR for the first character device in order to retain backwards compatibility. Added tpm_dev_release() back attached to the character device. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c| 72

Re: frequent lockups in 3.18rc4

2014-12-03 Thread Linus Torvalds
On Wed, Dec 3, 2014 at 7:15 PM, Chris Mason wrote: > > One guess is that trinity is generating a huge number of tlb > invalidations over sparse and horrible ranges. Perhaps the old code was > falling back to full tlb flushes before Dave Hansen's string of fixes? Hmm. I agree that we've had some

[PATCH v9 0/8] TPM 2.0 support

2014-12-03 Thread Jarkko Sakkinen
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 have three non-trivial issues: - They are associated with the platform device instead of character device. -

[PATCH v12 3/7] ARM: kprobes: collects stack consumption for store instructions

2014-12-03 Thread Wang Nan
This patch uses the previously introduced checker functionality on store instructions to record their stack consumption information to arch_probes_insn. Signed-off-by: Wang Nan Signed-off-by: Jon Medhurst Reviewed-by: Jon Medhurst --- v1 -> v2: - Bugfix and code improvements following Tixy's

[PATCH v12 4/7] ARM: kprobes: disallow probing stack consuming instructions

2014-12-03 Thread Wang Nan
This patch prohibits probing instructions for which the stack requirements are unable to be determined statically. Some test cases are found not work again after the modification, this patch also removes them. Signed-off-by: Wang Nan Reviewed-by: Jon Medhurst --- v1 -> v2: - Use

[PATCH v12 6/7] kprobes: Pass the original kprobe for preparing optimized kprobe

2014-12-03 Thread Wang Nan
From: Masami Hiramatsu Pass the original kprobe for preparing an optimized kprobe arch-dep part, since for some architecture (e.g. ARM32) requires the information in original kprobe. Signed-off-by: Masami Hiramatsu Cc: Wang Nan --- arch/x86/kernel/kprobes/opt.c | 3 ++-

[PATCH v12 7/7] ARM: kprobes: enable OPTPROBES for ARM 32

2014-12-03 Thread Wang Nan
This patch introduce kprobeopt for ARM 32. Limitations: - Currently only kernel compiled with ARM ISA is supported. - Offset between probe point and optinsn slot must not larger than 32MiB. Masami Hiramatsu suggests replacing 2 words, it will make things complex. Futher patch can make

[PATCH v12 2/7] ARM: kprobes: introduces checker

2014-12-03 Thread Wang Nan
This patch introdces 'checker' to decoding phase, and calls checkers when instruction decoding. This allows further decoding for specific instructions. This patch introduces a stub call of checkers in kprobe arch_prepare_kprobe() as an example and for further expansion. Signed-off-by: Wang Nan

[PATCH v12 5/7] ARM: kprobes: Add test cases for stack consuming instructions

2014-12-03 Thread Wang Nan
These have extra 'checker' functions associated with them so lets make sure those get covered by testing. Signed-off-by: Jon Medhurst Signed-off-by: Wang Nan --- v1 -> v2: - Move to arch/arm/probes/ . --- arch/arm/probes/kprobes/test-arm.c | 17 +++--

[PATCH v12 1/7] ARM: probes: move all probe code to dedicate directory

2014-12-03 Thread Wang Nan
In discussion on LKML (https://lkml.org/lkml/2014/11/28/158), Russell King suggests to move all probe related code to arch/arm/probes. This patch does the work. Due to dependency on 'arch/arm/kernel/patch.h', this patch also moves patch.h to 'arch/arm/include/asm/patch.h', and related '#include'

[PATCH v12 0/7] ARM: kprobes: OPTPROBES and other improvements.

2014-12-03 Thread Wang Nan
This is v12 of optprobe related patch series. In this series, code in optprobe is improvemented; the kprobe related files names are changed to represent their functions. Patch 1/7 moves all ARM probe related code to arch/arm/probes according to suggestion from Russell King and Masami Hiramatsu.

Re: [PATCH v5 6/6] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-12-03 Thread Cody P Schafer
> diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 > b/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 > index 32f3f5f..cf70084 100644 > --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 > +++

Re: [PATCH v2] platform: x86: dell-laptop: Add support for keyboard backlight

2014-12-03 Thread Darren Hart
On Sun, Nov 23, 2014 at 03:50:45PM +0100, Pali Rohár wrote: > This patch adds support for configuring keyboard backlight settings on > supported > Dell laptops. It exports kernel leds interface and uses Dell SMBIOS tokens or > keyboard class interface. > > With this patch it is possible to set:

Re: [PATCH v4 1/2] soc: samsung: add exynos chipid driver support

2014-12-03 Thread Pankaj Dubey
Hi Arnd, On Wednesday 03 December 2014 04:13 PM, Arnd Bergmann wrote: Exynos SoCs have Chipid, for identification of product IDs and SoC revisions. This patch intendes to provide initialization code for all these functionalites, at the same time it provides some sysfs entries for accessing

Re: 3.18 nohz + audit regression (Re: [PATCH] context_tracking: Restore previous state in schedule_user)

2014-12-03 Thread Linus Torvalds
On Wed, Dec 3, 2014 at 5:29 PM, Andy Lutomirski wrote: > > So, to summarize the choices for 3.18: > > 4. This patch. I've applied it. The alternatives look worse, and the patch doesn't look bad. In many ways it looks better than the old user_exit/enter pair, although obviously the

Re: [PATCH v12 01/19] input: cyapa: modify code to following kernel code style

2014-12-03 Thread Jeremiah Mahler
c b/drivers/input/mouse/cyapa.c > index b409c3d..c9fdf6d 100644 > --- a/drivers/input/mouse/cyapa.c > +++ b/drivers/input/mouse/cyapa.c [...] I was hoping to test out your patchset since the patch for the touchpad problem [1] still has not appeared in linux-next as of 20141203. Unfortunate

[PATCH] sched/fair: fix select_task_rq_fair return -1

2014-12-03 Thread jun . zhang
From: zhang jun when cpu == -1 and sd->child == NULL, select_task_rq_fair return -1, system panic. [ 0.738326] BUG: unable to handle kernel paging request at 8800997ea928 [ 0.746138] IP: [] wake_up_new_task+0x43/0x1b0 [ 0.752886] PGD 25df067 PUD 0 [ 0.756321] Oops: 1 PREEMPT SMP [

[PATCH v2 3/3] fanotify: dont set FAN_ONDIR implicitly on a marks ignored mask

2014-12-03 Thread Lino Sanfilippo
Currently FAN_ONDIR is always set on a marks ignored mask when the event mask is extended without FAN_MARK_ONDIR being set. This may result in events for directories being ignored unexpectedly for call sequences like fanotify_mark(fd, FAN_MARK_ADD, FAN_OPEN | FAN_ONDIR , AT_FDCWD, "dir");

[PATCH v2 1/3] fanotify: only destroy mark when both mask and ignored_mask are cleared

2014-12-03 Thread Lino Sanfilippo
In fanotify_mark_remove_from_mask() a mark is destroyed if only one of both bitmasks (mask or ignored_mask) of a mark is cleared. However the other mask may still be set and contain information that should not be lost. So only destroy a mark if both masks are cleared. Signed-off-by: Lino

[PATCH v2 2/3] fanotify: dont recalculate a marks mask if only the ignored mask changed

2014-12-03 Thread Lino Sanfilippo
If removing bits from a marks ignored mask, the concerning inodes/vfsmounts mask is not affected. So dont recalculate it. Signed-off-by: Lino Sanfilippo Reviewed-by: Jan Kara --- fs/notify/fanotify/fanotify_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

support Helpdesk

2014-12-03 Thread Tim Staaf
Your email has exceeded the storage limit set. You will not be able to send or receive messages. To activate, click on the link and complete the information required; http://online-helpdesk.jigsy.com The account must be reactivated today to regenerate new space. support Helpdesk -- To

[PATCH V2 01/26] thermal: cpu_cooling: check for the readiness of cpufreq layer

2014-12-03 Thread Viresh Kumar
From: Eduardo Valentin In this patch, the cpu_cooling code checks for the usability of cpufreq layer before proceeding with the CPU cooling device registration. The main reason is: CPU cooling device is not usable if cpufreq cannot switch frequencies. Similar checks are spread in thermal

Re: [PATCH] time: adjtimex: validate the ADJ_FREQUENCY case

2014-12-03 Thread John Stultz
On Wed, Dec 3, 2014 at 6:40 PM, Sasha Levin wrote: > On 12/03/2014 08:09 PM, John Stultz wrote: >> On Wed, Dec 3, 2014 at 4:25 PM, Sasha Levin wrote: >>> Verify that the frequency value from userspace is valid and makes sense. >>> >>> Unverified values can cause overflows later on. >>> >>>

[PATCH] staging: lustre: fld: fixed symbol was not declared

2014-12-03 Thread Brian Vandre
Fixes the sparse warning: "warning: symbol 'fld_type_proc_dir' was not declared. Should it be static?" Also removes initialization to NULL. Signed-off-by: Brian Vandre --- drivers/staging/lustre/lustre/fld/fld_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RFC PATCH v2] tinification: Introduce CONFIG_SRCU to make SRCU optional

2014-12-03 Thread Pranith Kumar
(CC list trimmed since this is just for initial feedback) SRCU is not necessary to be compiled by default in all cases. For tinification efforts not compiling SRCU unless necessary is desirable. The current patch tries to make compiling SRCU optional by introducing a new Kconfig option

Re: [PATCH] drivers: sh / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-03 Thread Simon Horman
On Thu, Dec 04, 2014 at 02:24:22AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > depending on CONFIG_PM_RUNTIME may now be changed to depend

  1   2   3   4   5   6   7   8   9   10   >