[RFC/PATCH 28/38] perf tools: Move BUILD_ID_SIZE definition to perf.h

2015-10-02 Thread Namhyung Kim
The util/event.h includes util/build-id.h only for BUILD_ID_SIZE. This is a problem when I include util/event.h from util/tool.h which is also included by util/build-id.h since it now makes a circular dependency resulting in incomplete type error. Signed-off-by: Namhyung Kim --- tools/perf/perf.

Re: [PATCH] [SCSI] fnic: use kzalloc in fnic_fcoe_process_vlan_resp

2015-10-02 Thread Johannes Thumshirn
Rasmus Villemoes writes: > This saves a little .text and avoids the sizeof(...) style > inconsistency. > > Signed-off-by: Rasmus Villemoes > --- > drivers/scsi/fnic/fnic_fcs.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi

Re: CRIS v32: leftover references on ETRAX_VIRTUAL_GPIO

2015-10-02 Thread Jesper Nilsson
On Fri, Oct 02, 2015 at 08:57:22AM +0200, Valentin Rothberg wrote: > Hi Rabin, Hi! > your commit ("CRIS v32: remove old GPIO and LEDs code") is in today's > linux-next tree (i.e., 20151002). Among other Kconfig options, the > commit removes ETRAX_VIRTUAL_GPIO but leav

Re: [PATCH 26/26] x86, pkeys: Documentation

2015-10-02 Thread Ingo Molnar
* Linus Torvalds wrote: > On Thu, Oct 1, 2015 at 6:33 PM, Dave Hansen wrote: > > > > Here it is in a quite fugly form (well, it's not opt-in). Init crashes if > > I > > boot with this, though. > > > > I'll see if I can turn it in to a bit more of an opt-in and see what's > > actually going

RE: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free bug

2015-10-02 Thread Kaukab, Yousaf
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Thursday, October 1, 2015 7:21 PM > To: Kaukab, Yousaf > Cc: ba...@ti.com; linux-...@vger.kernel.org; john.y...@synopsys.com; > l...@rock-chips.com; he...@sntech.de; c...@rock-chips.com; > h...@rock-chips.com; > y...@r

Re: [PATCH v3] kexec: fix out of the ELF headers buffer issue in syscall kexec_file_load()

2015-10-02 Thread Ingo Molnar
* Andrew Morton wrote: > On Tue, 29 Sep 2015 20:58:57 +0800 "Lee, Chun-Yi" > wrote: > > > This patch modified the code in fill_up_crash_elf_data by using > > walk_system_ram_res instead of walk_system_ram_range to count the max > > number of crash memory ranges. That's because the walk_system

[PATCH v3] Add driver for the si514 clock generator chip

2015-10-02 Thread Mike Looijmans
This patch adds the driver and devicetree documentation for the Silicon Labs SI514 clock generator chip. This is an I2C controlled oscillator capable of generating clock signals ranging from 100kHz to 250MHz. Signed-off-by: Mike Looijmans --- v3: After review from Stephen Boyd Removed "clock-

[PATCH v8 2/4] PM / Domains: add setter for dev.pm_domain

2015-10-02 Thread Tomeu Vizoso
Adds a function that sets the pointer to dev_pm_domain in struct device and that warns if the device has already finished probing. The reason why we want to enforce that is because in the general case that can cause problems and also that we can simplify code quite a bit if we can always assume tha

[PATCH v8 0/4] Allow USB devices to remain runtime-suspended when sleeping

2015-10-02 Thread Tomeu Vizoso
Hi, this is v8 of an attempt to make it easier for devices to remain in runtime PM when the system goes to sleep, mainly to reduce the time spent resuming devices. For this, we interpret the absence of all PM callback implementations as it being safe to do direct_complete, so their ancestors aren

Re: [PATCH] mm: optimize PageHighMem() check

2015-10-02 Thread Vineet Gupta
On Friday 02 October 2015 04:55 AM, Andrew Morton wrote: > On Tue, 29 Sep 2015 13:24:20 +0530 Vineet Gupta > wrote: > >> > This came up when implementing HIHGMEM/PAE40 for ARC. >> > The kmap() / kmap_atomic() generated code seemed needlessly bloated due >> > to the way PageHighMem() macro is imp

[PATCH v8 4/4] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-10-02 Thread Tomeu Vizoso
Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB devices can remain runtime-suspended when the system goes to a sleep state, if their wakeup state is correct and they have runtime PM enabled. Signed-off-by: Tomeu Vizoso --- drivers/usb/core/port.c | 6 ++ drivers/usb

Re: Soft lockup issue in Linux 4.1.9

2015-10-02 Thread Holger Hoffstätte
On 10/02/15 08:52, Andre Tomt wrote: > On 01. okt. 2015 13:52, Eric Dumazet wrote: >> On Thu, Oct 1, 2015 at 4:43 AM, Holger Hoffstätte >> wrote: >>> On 10/01/15 13:29, Eric Dumazet wrote: >> commit 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af Author: Eric Dumazet Date: Thu Aug 13 15

[PATCH v8 1/4] device core: add device_is_bound()

2015-10-02 Thread Tomeu Vizoso
Adds a function that tells whether a device is already bound to a driver. This is needed to warn when there is an attempt to change the PM domain of a device that has finished probing already. The reason why we want to enforce that is because in the general case that can cause problems and also th

[tip:x86/urgent] x86/kexec: Fix kexec crash in syscall kexec_file_load()

2015-10-02 Thread tip-bot for Lee, Chun-Yi
Commit-ID: e3c41e37b0f4b18cbd4dac76cbeece5a7558b909 Gitweb: http://git.kernel.org/tip/e3c41e37b0f4b18cbd4dac76cbeece5a7558b909 Author: Lee, Chun-Yi AuthorDate: Tue, 29 Sep 2015 20:58:57 +0800 Committer: Ingo Molnar CommitDate: Fri, 2 Oct 2015 09:13:06 +0200 x86/kexec: Fix kexec crash i

[PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks

2015-10-02 Thread Tomeu Vizoso
If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The reason for this is that there's lots of devices in a system that do no PM at all and there's no reason for them t

Re: rwx mapping between ex_table and rodata

2015-10-02 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Oct 1, 2015 at 2:12 AM, Ingo Molnar wrote: > > > > * Thomas Gleixner wrote: > > > >> On Mon, 28 Sep 2015, Kees Cook wrote: > >> > > --- a/arch/x86/mm/init_64.c > >> > > +++ b/arch/x86/mm/init_64.c > >> > > @@ -1132,7 +1132,7 @@ void mark_rodata_ro(void) > >> > >

[PATCH 1/1] ASoC: dwc: correct irq clear method

2015-10-02 Thread Yitian Bu
from Designware I2S datasheet, tx/rx XRUN irq is cleared by reading register TOR/ROR, rather than by writing into them. Signed-off-by: Yitian Bu --- sound/soc/dwc/designware_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/d

RE: [alsa-devel] [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method

2015-10-02 Thread yitian
Hi Mark: > From: alsa-devel-boun...@alsa-project.org > [mailto:alsa-devel-boun...@alsa-project.org] On Behalf Of Mark Brown > Sent: Thursday, October 1, 2015 6:04 PM > To: yitian > Cc: alsa-de...@alsa-project.org; w...@the-dreams.de; > linux-kernel@vger.kernel.org; andrew.jack...@arm.com; > lgirdw

Re: linux-next: kernel BUG at mm/slub.c:1447!

2015-10-02 Thread Michal Hocko
On Thu 01-10-15 13:49:04, Andrew Morton wrote: [...] > mpage_readpage() is getting the __GFP_HIGHMEM from mapping_gfp_mask() > and that got passed all the way into kmem_cache_alloc() to allocate a > bio. slab goes BUG if asked for highmem. > > A fix would be to mask off __GFP_HIGHMEM right there

Re: [RFC][PATCH] x86/mm: warn on W+x mappings

2015-10-02 Thread Ingo Molnar
* Borislav Petkov wrote: > On Thu, Oct 01, 2015 at 12:24:25PM -0700, Kees Cook wrote: > > On Thu, Oct 1, 2015 at 9:28 AM, Stephen Smalley wrote: > > > Warn on any residual W+x mappings if X86_PTDUMP is enabled. > > > > > > Sample dmesg output: > > > Checking for W+x mappings > > > 0x817

Re: [PATCH 3/4] Input: serio - use parallel port device model

2015-10-02 Thread Sudip Mukherjee
On Tue, Sep 29, 2015 at 10:06:33PM +0530, Sudip Mukherjee wrote: > Modify parkbd driver to use the new Parallel Port device model. > > Signed-off-by: Sudip Mukherjee > --- Hi Dmitry, I think you have missed this patch whie applying. regards sudip -- To unsubscribe from this list: send the line "

Re: [RFC][PATCH] x86/mm: warn on W+x mappings

2015-10-02 Thread Ingo Molnar
* Stephen Smalley wrote: > + st.check_wx = checkwx; > + if (checkwx) { > + pr_info("Checking for W+x mappings\n"); > + st.found_wx = false; > + } > + > for (i = 0; i < PTRS_PER_PGD; i++) { > st.current_address = normalize_addr(i * PGD_LEVEL

[PATCH v4 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-02 Thread Marek Szyprowski
DWC2 module on some platforms needs three additional hardware resources: phy controller, clock and power supply. All of them must be enabled/activated to properly initialize and operate. This was initially handled in s3c-hsotg driver, which has been converted to 'gadget' part of dwc2 driver. Unfort

[PATCH] kernel: time: timer.c: use __fls in apply_slack()

2015-10-02 Thread Rasmus Villemoes
In apply_slack(), find_last_bit() is applied to a bitmask consisting of precisely BITS_PER_LONG bits. Since mask is non-zero, we might as well eliminate the function call and use __fls() directly. On x86_64, this shaves 23 bytes of the only caller, mod_timer(). This also gets rid of Coverity CID 1

Re: [PATCH v2 1/3] leds: add device activity LED triggers

2015-10-02 Thread Maciek Borzecki
On 10/01 09:47, Josh Cartwright wrote: > Hello Maciek- > > Some architectural questions below: > > On Thu, Oct 01, 2015 at 04:04:31PM +0200, Maciek Borzecki wrote: > > The patch adds LED triggers for indicating an activity on a selected > > device. The drivers that intend to use triggers need to re

[PATCH v3 0/2] sched: consider missed ticks when updating cpu load

2015-10-02 Thread byungchul.park
From: Byungchul Park change from v3 to v2 - add a patch which make __update_cpu_load() handle active tickless change from v1 to v2 - add some additional commit message (logic is same exactly) Byungchul Park (2): sched: make __update_cpu_load() handle active tickless case sched: consider mis

Re: [PATCH RFC] x86: Reduce MAX_LOCAL_APIC and MAX_IO_APICS

2015-10-02 Thread Daniel J Blueman
On Saturday, September 26, 2015 at 4:40:07 AM UTC+8, Denys Vlasenko wrote: > Before this change MAX_LOCAL_APIC had the fixed value of 32*1024. > Such a big value causes several data arrays to be quite oversized: > > phys_cpu_present_map is 4 kbytes (one bit per apic id), > __apicid_to_node[] is 6

[PATCH v3 2/2] sched: consider missed ticks when updating global cpu load

2015-10-02 Thread byungchul.park
From: Byungchul Park in hrtimer_interrupt(), the first tick_program_event() can be failed because the next timer could be already expired due to, (see the comment in hrtimer_interrupt()) - tracing - long lasting callbacks - being scheduled away when running in a VM in the case that the first ti

[tip:x86/urgent] x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds

2015-10-02 Thread tip-bot for Ben Hutchings
Commit-ID: f4b4aae1828855db761bf998ce37d3062b1d6446 Gitweb: http://git.kernel.org/tip/f4b4aae1828855db761bf998ce37d3062b1d6446 Author: Ben Hutchings AuthorDate: Thu, 1 Oct 2015 01:40:43 +0100 Committer: Ingo Molnar CommitDate: Fri, 2 Oct 2015 09:43:21 +0200 x86/headers/uapi: Fix __BITS

[tip:x86/urgent] x86/mm: Set NX on gap between __ex_table and rodata

2015-10-02 Thread tip-bot for Stephen Smalley
Commit-ID: ab76f7b4ab2397ffdd2f1eb07c55697d19991d10 Gitweb: http://git.kernel.org/tip/ab76f7b4ab2397ffdd2f1eb07c55697d19991d10 Author: Stephen Smalley AuthorDate: Thu, 1 Oct 2015 09:04:22 -0400 Committer: Ingo Molnar CommitDate: Fri, 2 Oct 2015 09:21:06 +0200 x86/mm: Set NX on gap betw

Re: [RFC, 1/2] scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target

2015-10-02 Thread Michael Ellerman
On Wed, 2015-23-09 at 05:40:34 UTC, Michael Ellerman wrote: > Arch Makefiles can set KBUILD_DEFCONFIG to tell kbuild the name of the > defconfig that should be built by default. > > However currently there is an assumption that KBUILD_DEFCONFIG points to > a file at arch/$(SRCARCH)/configs/$(KBUIL

Re: [PATCH 03/12] net: igb: avoid using timespec

2015-10-02 Thread Richard Cochran
On Thu, Oct 01, 2015 at 10:01:57PM +0200, Arnd Bergmann wrote: > I tried to use this pattern whenever I convert the 64-bit 'long long' > tv_sec member of 'struct timespec64' into a 32-bit number, to annotate > the loss of range. Sounds reasonable to me. > I have thought about defining separate h

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-02 Thread Marek Szyprowski
Hello, On 2015-10-02 00:21, John Youn wrote: On 10/1/2015 3:04 PM, Felipe Balbi wrote: On Thu, Oct 01, 2015 at 09:04:59PM +, John Youn wrote: On 10/1/2015 8:50 AM, Felipe Balbi wrote: On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: DWC2 module on some platforms needs th

Re: [V4 PATCH 4/4] x86/apic: Introduce noextnmi boot option

2015-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2015 at 12:58:02AM +, 河合英宏 / KAWAI,HIDEHIRO wrote: > > On Thu, Oct 01, 2015 at 10:24:19AM +, 河合英宏 / KAWAI,HIDEHIRO wrote: > > > But how do we check if the starting kernel is a dump capture kernel? > > > > How does that first kernel pass info to the capture kernel? > > As I

Re: [RFC,2/2] powerpc: Add ppc64le_defconfig

2015-10-02 Thread Michael Ellerman
On Wed, 2015-23-09 at 05:40:35 UTC, Michael Ellerman wrote: > Based directly on ppc64_defconfig using merge_config. > > Signed-off-by: Michael Ellerman Applied to powerpc next. https://git.kernel.org/powerpc/c/2adc48a691866fbb3134dd3a cheers -- To unsubscribe from this list: send the line "uns

Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks

2015-10-02 Thread Ulf Hansson
On 2 October 2015 at 09:14, Tomeu Vizoso wrote: > If a suitable prepare callback cannot be found for a given device and > its driver has no PM callbacks at all, assume that it can go direct to > complete when the system goes to sleep. > > The reason for this is that there's lots of devices in a sy

Re: powerpc/vdso: Emit GNU & SysV hashes

2015-10-02 Thread Michael Ellerman
On Fri, 2015-07-08 at 03:05:42 UTC, Michael Ellerman wrote: > Andy Lutomirski says: > > Some dynamic loaders may be slightly faster if a GNU hash is > available. > > This is unlikely to have any measurable effect on the time it takes > to resolve vdso symbols (since there are so few of th

Re: powerpc: Kconfig: remove BE-only platforms from LE kernel build

2015-10-02 Thread Michael Ellerman
On Sun, 2015-06-09 at 23:58:00 UTC, Boqun Feng wrote: > Currently, little endian is only supported on powernv and pseries, > however, Kconfigs still allow us to include other platforms in a LE > kernel, this may result in space wasting or even build error if some > BE-only platforms always assume t

[PATCH v3 1/2] sched: make __update_cpu_load() handle active tickless case

2015-10-02 Thread byungchul.park
From: Byungchul Park There are some cases where distance between ticks is more then one tick, while the cpu is not idle, e.g. - full NOHZ - tracing - long lasting callbacks - being scheduled away when running in a VM However __update_cpu_load() assumes it is the idle tickless case if the di

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-02 Thread Ley Foon Tan
On Tue, Sep 29, 2015 at 1:31 AM, Rob Herring wrote: > On Mon, Sep 28, 2015 at 12:38 AM, Ley Foon Tan wrote: >> On Sat, Sep 26, 2015 at 11:55 AM, Rob Herring wrote: >>> >>> On 09/20/2015 09:13 PM, Ley Foon Tan wrote: >>> > This patch adds the bindings for Altera PCIe host controller driver and >>

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-02 Thread Ley Foon Tan
On Tue, Sep 29, 2015 at 3:38 AM, Arnd Bergmann wrote: > On Monday 28 September 2015 12:31:36 Rob Herring wrote: >> >> > + >> >> > +Required properties: >> >> > +- compatible : should contain "altr,pcie-root-port-1.0" >> >> > +- reg: a list of physical base address and length fo

Re: [PATCH] arm64: ftrace: fix function_graph tracer panic

2015-10-02 Thread AKASHI Takahiro
> Do I take this as an ack? Yes, but On 10/02/2015 12:27 AM, Catalin Marinas wrote: On Thu, Oct 01, 2015 at 03:11:29PM +0900, AKASHI Takahiro wrote: On 09/30/2015 11:49 AM, Li Bin wrote: When function graph tracer is enabled, the following operation will trigger panic: mount -t debugfs nodev

Re: [PATCH] [SCSI] FlashPoint: fix build warning

2015-10-02 Thread Sudip Mukherjee
On Wed, Sep 16, 2015 at 08:47:43AM -0600, Khalid Aziz wrote: > On 09/16/2015 08:06 AM, Sudip Mukherjee wrote: > >We have been getting a warning about non ANSI function. > >warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll' > > > >Signed-off-by: Sudip Mukherjee > >--- > >

Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks

2015-10-02 Thread Tomeu Vizoso
On 2 October 2015 at 09:48, Ulf Hansson wrote: > On 2 October 2015 at 09:14, Tomeu Vizoso wrote: >> If a suitable prepare callback cannot be found for a given device and >> its driver has no PM callbacks at all, assume that it can go direct to >> complete when the system goes to sleep. >> >> The

Re: [RFC][PATCH] x86/mm: warn on W+x mappings

2015-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2015 at 09:26:44AM +0200, Ingo Molnar wrote: > It's better to generate a WARN()ing programmatically if the W+X condition > occurs, > that gets noticed by tools and people alike. I'd like to start treating that > condition as a hard kernel bug. > > A dump in dmesg is subject to r

Re: [PATCH v3] tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0

2015-10-02 Thread Jarkko Sakkinen
On Wed, 2015-09-30 at 18:19 +0300, Jarkko Sakkinen wrote: > Both for FIFO and CRB interface TCG has decided to use the same HID > MSFT0101. They can be differentiated by looking at the start method > from > TPM2 ACPI table. This patches makes necessary fixes to tpm_tis and > tpm_crb modules in orde

[PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Johannes Thumshirn
Removing a SCSI target via scsi_remove_target() suspected to be racy. When a sibling get's removed from the list it can occassionly happen that one CPU is stuck endlessly looping around this code block list_for_each_entry(starget, &shost->__targets, siblings) { if (starget->state == STARGE

Re: [PATCH v2] Add driver for the si514 clock generator chip

2015-10-02 Thread Mike Looijmans
On 02-10-15 01:34, Stephen Boyd wrote: On 09/17, Mike Looijmans wrote: This patch adds the driver and devicetree documentation for the Silicon Labs SI514 clock generator chip. This is an I2C controlled oscilator capable of generating clock signals ranging from 100kHz s/oscilator/oscillator/

[PATCH 1/3] mfd: sec-core: Dump PMIC revision to find out the HW

2015-10-02 Thread Krzysztof Kozlowski
There are different revisions of the same chipset. For example S2MPS13 has more than 2 revisions. They differ slightly in regulator constraints. Print the revision number to easily find which PMIC is used on the board. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 10 ++

Re: [PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Hannes Reinecke
On 10/02/2015 10:21 AM, Johannes Thumshirn wrote: > Removing a SCSI target via scsi_remove_target() suspected to be racy. When a > sibling get's removed from the list it can occassionly happen that one CPU is > stuck endlessly looping around this code block > > list_for_each_entry(starget, &shost-

[PATCH 3/3] mfd: sec-core: Disable buck voltage reset on watchdog falling edge

2015-10-02 Thread Krzysztof Kozlowski
The WRSTBI bit (disabled by default but enabled by bootloader), when set, is responsible for resetting voltages to default values of certain bucks on falling edge of Warm Reset Input pin from AP. However on some boards (with S2MPS13) the pin is pulled down so any suspend will effectively trigger t

[PATCH 2/3] mfd: dt-bindings: Document pulled down WRSTBI pin on S2MPS1X

2015-10-02 Thread Krzysztof Kozlowski
Document a new Device Tree property 'samsung,s2mps11-wrstbi-ground' indicating that WRSTBI pin of S2MPS13 PMIC is pulled down so corresponding buck warm reset function should be disabled. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 3 +++ 1 file cha

[PATCH v2] tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c

2015-10-02 Thread Kosuke Tatsukawa
My colleague ran into a program stall on a x86_64 server, where n_tty_read() was waiting for data even if there was data in the buffer in the pty. kernel stack for the stuck process looks like below. #0 [88303d107b58] __schedule at 815c4b20 #1 [88303d107bd0] schedule at 8

Darlehen anbieten 1,5%

2015-10-02 Thread Lloyds TSB Bank Plc
Guten Tag, Dies ist Lloyds TSB Bank plc Kredite anbieten. Lloyds TSB bietet flexible und erschwingliche Kredite für jeden Zweck zu helfen, Ihre Ziele zu erreichen. wir Darlehen zu niedrigen Zinssatz von 1,5%. Hier sind einige wichtige Merkmale der persönlichen Kredit von Lloyds TSB angeb

Re: Force mkiss to reset the line discipline when serial device is removed

2015-10-02 Thread Jean-Christian de Rivaz
Le 02. 10. 15 00:57, Peter Hurley a écrit : On 10/01/2015 12:56 PM, Jean-Christian de Rivaz wrote: Hi Greg and Jiri, I try to fix a kernel panic bug related to the AX25 (and probably SLIP) line discipline when the corresponding serial device is removed [1]. I proposed some patches [2] [3] on

[PATCH 0/4] Basic trusted keys support for TPM 2.0

2015-10-02 Thread Jarkko Sakkinen
Basic trusted keys support, which means basic sealing with an authentication value by using SHA256. After we get the groundwork in place the functionality will be refined with algorithmic agility and policy based sealing. Jarkko Sakkinen (4): tpm: introduce struct tpm_buf trusted: move struct

[PATCH 3/4] tpm: seal/unseal for TPM 2.0

2015-10-02 Thread Jarkko Sakkinen
Added tpm_trusted_seal() and tpm_trusted_unseal() API for sealing trusted keys. This patch implements basic sealing and unsealing functionality for TPM 2.0: * Seal with a parent key using a 20 byte auth value. * Unseal with a parent key using a 20 byte auth value. Signed-off-by: Jarkko Sakkinen

[PATCH 2/4] trusted: move struct trusted_key_options to trusted-type.h

2015-10-02 Thread Jarkko Sakkinen
Moved struct trusted_key_options to trustes-type.h so that the fields can be accessed from drivers/char/tpm. Signed-off-by: Jarkko Sakkinen --- include/keys/trusted-type.h | 13 + security/keys/trusted.h | 11 --- 2 files changed, 13 insertions(+), 11 deletions(-) diff -

[PATCH 4/4] keys, trusted: seal/unseal with TPM 2.0 chips

2015-10-02 Thread Jarkko Sakkinen
Call tpm_seal_trusted() and tpm_unseal_trusted() for TPM 2.0 chips. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 2 +- include/linux/tpm_command.h | 1 - security/keys/trusted.c | 18 ++ security/keys/trusted.h | 7 +++ 4 files changed, 22 inser

[PATCH 1/4] tpm: introduce struct tpm_buf

2015-10-02 Thread Jarkko Sakkinen
This patch introduces struct tpm_buf that provides a string buffer for constructing TPM commands. This allows to construct variable sized TPM commands. This feature is needed for sealing and unsealing trusted keys because the input data is of variable size. The commands in tpm2-cmd.c have been upd

Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks

2015-10-02 Thread Ulf Hansson
On 2 October 2015 at 10:10, Tomeu Vizoso wrote: > On 2 October 2015 at 09:48, Ulf Hansson wrote: >> On 2 October 2015 at 09:14, Tomeu Vizoso wrote: >>> If a suitable prepare callback cannot be found for a given device and >>> its driver has no PM callbacks at all, assume that it can go direct to

Re: linux-next: kernel BUG at mm/slub.c:1447!

2015-10-02 Thread Michal Hocko
On Fri 02-10-15 09:25:22, Michal Hocko wrote: > On Thu 01-10-15 13:49:04, Andrew Morton wrote: [...] > > Now, we could redefine mapping_gfp_mask()'s purpose (or formalize > > stuff which has been sneaking in anyway). Treat mapping_gfp_mask() as > > a constraint mask - instead of it being "use this

[PATCH 1/2] s5p-mfc: fix spelling errors

2015-10-02 Thread Ingi Kim
This patch fixes spelling errors in mfc encoder. inavild -> invaild Signed-off-by: Ingi Kim --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/

[PATCH] drm/exynos: fix spelling errors

2015-10-02 Thread Ingi Kim
This patch fixes spelling errors in drm fimc/gsc inavild -> invaild Signed-off-by: Ingi Kim --- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 16 drivers/gpu/drm/exynos/exynos_drm_gsc.c | 12 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/gpu

Re: [PATCH net-next 3/3] r8169: support IPv6

2015-10-02 Thread David Woodhouse
> Support the IPv6 hw checksum for RTL8111C and later chips. Note > that the hw has the limitation for the transport offset. The > checksum must be calculated by sw, when the transport offset is > out of the range which the hw accepts. It would be better to implement this check in a .ndo_feature

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-10-02 Thread Paul Walmsley
Hello Péter, On Wed, 30 Sep 2015, Peter Ujfalusi wrote: > On 09/27/2015 10:02 AM, Paul Walmsley wrote: > >> /* > >> + * 'mcasp' class > >> + * > >> + */ > >> +static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = { > >> + .sysc_offs = 0x0004, > >> + .sysc_flags = SYSC_HAS_SIDLE

[PATCH v1 0/4] rtc: pcf2127: a fix, a cleanup and two questionable features

2015-10-02 Thread Uwe Kleine-König
Hello, the fix and the cleanup should be fine. Patches 3 and 4 are probably wrong (but still state of the art for other in-tree drivers) because sysfs_create_file is called too late. See http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/ for some details. I failed to find

[PATCH v1 4/4 RFC] rtc: pcf2127: implement access to nvram

2015-10-02 Thread Uwe Kleine-König
The rtc features a 512 byte battery backed RAM. Make it available via sysfs. Signed-off-by: Uwe Kleine-König --- Notes: This patch is broken in the same way as the previous one. Don't merge! drivers/rtc/rtc-pcf2127.c | 114 ++ 1 file changed, 114

Re: [PATCH] lockd: create NSM handles per net namespace

2015-10-02 Thread Andrey Ryabinin
On 10/01/2015 09:26 PM, J. Bruce Fields wrote: > On Thu, Oct 01, 2015 at 07:36:19PM +0300, Andrey Ryabinin wrote: >> On 09/29/2015 09:47 PM, J. Bruce Fields wrote: >>> On Wed, Sep 23, 2015 at 03:49:29PM +0300, Andrey Ryabinin wrote: Commit cb7323fffa85 ("lockd: create and use per-net NSM

[PATCH v1 3/4 RFC] rtc: pcf2127: implement reading battery status bits

2015-10-02 Thread Uwe Kleine-König
The rtc features a battery switch-over function. Export battery status and if a switch-over occured via sysfs. Signed-off-by: Uwe Kleine-König --- Notes: Note this patch is wrong, don't merge! Calling sysfs_create_files in the driver's probe is too late. I didn't find a nice alt

[PATCH v1 2/4] rtc: pcf2127: remove useless driver version

2015-10-02 Thread Uwe Kleine-König
A driver version is only really sensible for oot drivers. Also the dev_info about having found a chip only signals that allocating the driver data succeeded and so isn't worth much. Signed-off-by: Uwe Kleine-König --- drivers/rtc/rtc-pcf2127.c | 5 - 1 file changed, 5 deletions(-) diff --gi

RE: [v3 1/8] devres: add devm_alloc_percpu()

2015-10-02 Thread Madalin-Cristian Bucur
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, October 02, 2015 4:01 AM > > On Thu, Sep 24, 2015 at 06:00:12PM +0300, Madalin Bucur wrote: > > Introduce managed counterparts for alloc_percpu() and free_percpu(). > > Add devm_alloc_percpu() and devm_free_percpu() into the ma

[PATCH v1 1/4] rtc: pcf2127: fix reading uninitialized value on RTC_READ_VL ioctl

2015-10-02 Thread Uwe Kleine-König
The flag reported on the RTC_READ_VL ioctl is only initialized when the date is read out. So the voltage low value doesn't represent reality but the status at the time the date was read (or 0 if the date was not read yet). Moreover when userspace requests a value via an ioctl there is no added ben

Re: [PATCH v3 6/8] ARM: rockchip: add support smp for rk3036

2015-10-02 Thread Heiko Stübner
Hi, Am Dienstag, 29. September 2015, 10:13:51 schrieb Xing Zheng: > The rk3036 is dual-core soc, we can use this patch to enable cpu1 > enter boot secondary, and hotplug(online/offline). > > Signed-off-by: Xing Zheng > Reviewed-by: Heiko Stuebner > --- > > Changes in v3: None > > arch/arm/ma

[GIT PULL] MMC fixes for v.4.3 rc4

2015-10-02 Thread Ulf Hansson
Hi Linus, Here are some mmc fixes intended for v4.3 rc4 and it's based on v4.3-rc3. Details are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -040

Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init

2015-10-02 Thread Daniel Kurtz
On Fri, Oct 2, 2015 at 11:00 AM, James Liao wrote: > Hi Daniel, > > On Thu, 2015-10-01 at 18:08 +0800, Daniel Kurtz wrote: >> I see two cases where "a power domain is a consumer of a clock": >> (a) the clock is needed to access the power domain control >> registers. The clock must actually be i

[PATCH] x86: guest: rely on leaf 0x40000001 to detect Hyper-V

2015-10-02 Thread Paolo Bonzini
The specification says that "Microsoft Hv" is actually a vendor ID field that is only used for reporting and diagnostic purposes. The actual field that you need to check is the interface ID that you get in eax when querying the HYPERV_CPUID_INTERFACE. Change ms_hyperv_platform to actually do what

Re: [PATCH v3 2/5] mailbox: Add support for ST's Mailbox IP

2015-10-02 Thread Lee Jones
On Fri, 02 Oct 2015, Jassi Brar wrote: > On Wed, Aug 19, 2015 at 7:52 PM, Lee Jones wrote: > > > > > + > > +#define MBOX_BASE(mdev, inst) ((mdev)->base + (inst * 4)) > > > It should be(inst) * 4 I'm guessing you mean: ((mdev)->base + ((inst) * 4)) ? > > +/** > > + * STi Mailbox

Re: [Xen-devel] [PATCH 0/2] block/xen-blkfront: Support non-indirect with 64KB page granularity

2015-10-02 Thread Julien Grall
Hi, Ping, any comment on this series? Regards, On 11/09/15 20:31, Julien Grall wrote: > Hi all, > > This is a follow-up on the previous discussion [1] related to guest using 64KB > page granularity not booting with backend using non-indirect grant. > > This has been successly tested on ARM64 w

Re: [RESEND PATCH v4 0/8] i2c: Relax mandatory I2C ID table passing

2015-10-02 Thread Lee Jones
On Thu, 01 Oct 2015, Wolfram Sang wrote: > > > > Yes but that is not true for drivers that support both OF and legacy board > > > files. For those drivers, there will be a lot of boiler plate code > > > duplicated > > > that would look something like: > > > > > > unsigned long data; > > >

Re: [PATCH v5 00/23] ILP32 for ARM64

2015-10-02 Thread Catalin Marinas
On Thu, Oct 01, 2015 at 09:49:46PM +, Pinski, Andrew wrote: > Ok, we will rewrite these patches using 32bit time_t and 32bit off_t > and redo the toolchain support for them. Note this is going back to > the abi I had originally done when I submitted my original version > when it was asked to c

[PATCH 1/2] leds: rt5033: add DT binding for RT5033

2015-10-02 Thread Ingi Kim
This patch adds the device tree bindings for RT5033 flash LEDs. Signed-off-by: Ingi Kim --- .../devicetree/bindings/leds/leds-rt5033.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-rt5033.txt diff --git a/Do

[PATCH 0/2] Add RT5033 Flash LED driver

2015-10-02 Thread Ingi Kim
This patch adds ktd2692 Flash LED driver with LED Flash class Ingi Kim (2): leds: rt5033: add DT binding for RT5033 leds: rt5033: Add RT5033 Flash led device driver .../devicetree/bindings/leds/leds-rt5033.txt | 38 drivers/leds/Kconfig | 8 + driv

Re: [PATCH v3 2/5] mailbox: Add support for ST's Mailbox IP

2015-10-02 Thread Jassi Brar
On 2 October 2015 at 15:02, Lee Jones wrote: > On Fri, 02 Oct 2015, Jassi Brar wrote: > >> On Wed, Aug 19, 2015 at 7:52 PM, Lee Jones wrote: >> >> >> >> > + >> > +#define MBOX_BASE(mdev, inst) ((mdev)->base + (inst * 4)) >> > >> It should be(inst) * 4 > > I'm guessing you mean: > > (

[PATCH 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-10-02 Thread Ingi Kim
This patch adds device driver of Richtek RT5033 PMIC. The driver supports a current regulated output to drive white LEDs for camera flash. Signed-off-by: Ingi Kim --- drivers/leds/Kconfig | 8 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-rt5033.c | 222

Re: [tip:core/urgent] x86/efi: Fix boot crash by mapping EFI memmap entries bottom-up at runtime, instead of top-down

2015-10-02 Thread Matt Fleming
On Thu, 01 Oct, at 05:48:43AM, tip-bot for Matt Fleming wrote: > Commit-ID: a5caa209ba9c29c6421292e7879d2387a2ef39c9 > Gitweb: http://git.kernel.org/tip/a5caa209ba9c29c6421292e7879d2387a2ef39c9 > Author: Matt Fleming > AuthorDate: Fri, 25 Sep 2015 23:02:18 +0100 > Committer: Ingo Molnar

Re: [PATCH 5/6 RESEND] mfd: arizona: Remove use of codec build config #ifdefs

2015-10-02 Thread Charles Keepax
On Thu, Oct 01, 2015 at 12:44:52PM +0100, Lee Jones wrote: > On Mon, 28 Sep 2015, Richard Fitzgerald wrote: > > > Remove the use of #ifdefs around each case statement of the chip ID > > and type validation switches. > > > > We must ensure that the contained code still compiles to nothing if > > s

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Dongsheng Yang
On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: We should prevent user to erasing mtd device with an unaligned offset or length. Signed-off-by: Sudip Mukherjee --- I am not sure if I should add the Signed-off-by of Dongsheng Yang . He is the original author and he should get the credit for tha

[PATCH] tools/thermal: tmon: use pkg-config also for CFLAGS

2015-10-02 Thread Olaf Hering
The header might be in /usr/include/ncursesw, which is not part of the standard include path. This fixes compile on openSUSE. Signed-off-by: Olaf Hering --- tools/thermal/tmon/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefi

Re: [RFC PATCH v8 0/10] Add external dma support for Synopsys MSHC

2015-10-02 Thread Shawn Lin
On 2015/10/1 17:14, Jaehoon Chung wrote: Dear, All. I will apply patch 01-03 at my repository on today. But i don't know better how i do about other patches relevant to config file. Thanks, Jaehoon. :) I guess it would be acceptable to pick the config changes, already they were acked by the

Re: [PATCH v2 1/2] pinctrl: uniphier: fix input enable settings for PH1-sLD8

2015-10-02 Thread Linus Walleij
On Fri, Sep 11, 2015 at 2:33 AM, Masahiro Yamada wrote: > Currently, input enable settings are missing from the PH1-sLD8 > pinctrl driver. (All the entries in the pin table are set to > UNIPHIER_PIN_IECTRL_NONE). > > Fill the table with correct values. > > Fixes: 95372f9dc892 ("pinctrl: UniPhier

Re: [PATCH v2 2/2] pinctrl: uniphier: add SD card pinmux settings

2015-10-02 Thread Linus Walleij
On Fri, Sep 11, 2015 at 2:33 AM, Masahiro Yamada wrote: > Add SD card pinmux settings for PH1-LD4, PH1-Pro4, PH1-sLD8, > PH1-Pro5, ProXstream2, and PH1-LD6b SoCs. > > Signed-off-by: Masahiro Yamada Patch applied for devel (v4.4) Yours, Linus Walleij -- To unsubscribe from this list: send the l

Re: [PATCH v3 0/9] xen-block: support multi hardware-queues/rings

2015-10-02 Thread Rafal Mielniczuk
On 05/09/15 13:40, Bob Liu wrote: > Note: These patches were based on original work of Arianna's internship for > GNOME's Outreach Program for Women. > > The first patch which just convert xen-blkfront driver to use blk-mq api has > been applied by David. > > After using blk-mq api, a guest has mor

Re: [RFC 2/3] mmc: sdhci: add host_ops->voltage_switch callback for all other voltages

2015-10-02 Thread Linus Walleij
On Wed, Sep 2, 2015 at 1:19 AM, Vaibhav Hiremath wrote: > Not quite sure whether regulator would be right fit for this. > > Initially I was thinking of making use of pinconf framework, using > PIN_CONFIG_POWER_SOURCE, but that too I am not sure is the right way of > doing it. > > Probably, questi

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Sudip Mukherjee
On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: > On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: > >We should prevent user to erasing mtd device with an unaligned offset > >or length. > > > >Signed-off-by: Sudip Mukherjee > >--- > > > >I am not sure if I should add the Signed-off-b

Re: [PATCH] ARM: Remove __ref on hotplug cpu die path

2015-10-02 Thread Linus Walleij
On Mon, Sep 14, 2015 at 5:23 PM, Stephen Boyd wrote: > Now that __cpuinit has been removed, the __ref markings on these > functions are useless. Remove them. This also reduces the size of > the multi_v7_defconfig image: > > $ size before after >textdata bss dec hex filename >

Re: [PATCH 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-10-02 Thread kbuild test robot
Hi Ingi, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: i386-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): In file includ

[Dell XPS 13 9343] Random kernel Oops at boot with "acpi=ht", disappearing with "acpi=off"

2015-10-02 Thread Niccolò Belli
Hi, This laptop suffers of random kernel hangs at boot: I tested kernel 4.1.8, 4.2.1 and 4.3-rc3 and they are all affected. Every time I turn on my laptop I have to boot several times to be able to reach the sddm login because often I get hangs which prevent the system to boot. Once booted I do

[PATCH 2/2] slab.h: sprinkle __assume_aligned attributes

2015-10-02 Thread Rasmus Villemoes
The various allocators return aligned memory. Telling the compiler that allows it to generate better code in many cases, for example when the return value is immediately passed to memset(). Some code does become larger, but at least we win twice as much as we lose: $ scripts/bloat-o-meter /tmp/vm

[PATCH 1/2] compiler.h: add support for function attribute assume_aligned

2015-10-02 Thread Rasmus Villemoes
gcc 4.9 added the function attribute assume_aligned, indicating to the caller that the returned pointer may be assumed to have a certain minimal alignment. This is useful if, for example, the return value is passed to memset(). Add a shorthand macro for that. Signed-off-by: Rasmus Villemoes ---

  1   2   3   4   5   6   7   8   >