[PATCH 6/6] x86/dumpstack: remove dump_trace() and related callbacks

2016-09-15 Thread Josh Poimboeuf
All previous users of dump_trace() have been converted to use the new unwind interfaces, so we can remove it and the related print_context_stack() and print_context_stack_bp() callback functions. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/stacktrace.h | 36 arch/x86/

Re: [PATCH 3/6 linux-next] ext4: create EXT4_MAX_BLOCKS() macro

2016-09-15 Thread Theodore Ts'o
On Wed, Aug 24, 2016 at 10:03:17PM +0200, Fabian Frederick wrote: > Create a macro to calculate length + offset -> maximum blocks > This adds more readability. > > Signed-off-by: Fabian Frederick Applied, thanks. - Ted

[PATCH] dmaengine: imx-sdma: fix merge conflict

2016-09-15 Thread Arnd Bergmann
The sdma_handle_channel_loop() function was modified in one patch and removed in another, and the merge between those patches left an unused function in place: drivers/dma/imx-sdma.c:673:13: error: 'sdma_handle_channel_loop' defined but not used [-Werror=unused-function] This removes it again.

[PATCH 5/6] x86/dumpstack: convert show_trace_log_lvl() to use the new unwinder

2016-09-15 Thread Josh Poimboeuf
Convert show_trace_log_lvl() to use the new unwinder. dump_trace() has been deprecated. show_trace_log_lvl() is special compared to other users of the unwinder. It's the only place where both reliable *and* unreliable addresses are needed. With frame pointers enabled, most callers of the unwinde

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-15 Thread Radim Krčmář
2016-09-15 15:05+0800, Wanpeng Li: > 2016-09-14 20:03 GMT+08:00 Radim Krčmář : >> 2016-09-14 11:40+0200, Paolo Bonzini: >>> On 14/09/2016 09:58, Wanpeng Li wrote: From: Wanpeng Li I observed that kvmvapic(to optimize flexpriority=N or AMD) is used to boost TPR access when testi

Re: [PATCH 4/6 linux-next] ext4: use bool for check in ext4_ext_space_()

2016-09-15 Thread Theodore Ts'o
On Wed, Aug 24, 2016 at 10:03:18PM +0200, Fabian Frederick wrote: > check is used in 0/1 context. > > Also use unsigned int instead of unsigned (checkpatch warning) > > Signed-off-by: Fabian Frederick Dropped; this is a checkpatch-only style patch.

[PATCH] staging: android ion/hisi: fix dependencies

2016-09-15 Thread Arnd Bergmann
The newly added Hi6220 Ion code fails to build when the ION_OF helpers are not present: drivers/staging/android/ion/hisilicon/hi6220_ion.o: In function `hi6220_ion_remove': hi6220_ion.c:(.text.hi6220_ion_remove+0x4c): undefined reference to `ion_destroy_platform_data' drivers/staging/android/ion

Re: [PATCH 2/2] x86, kvm: use kvmclock to compute TSC deadline value

2016-09-15 Thread Paolo Bonzini
On 15/09/2016 17:09, Radim Krčmář wrote: > 2016-09-07 00:29+0200, Paolo Bonzini: >> Bad things happen if a guest using the TSC deadline timer is migrated. >> The guest doesn't re-calibrate the TSC after migration, and the >> TSC frequency can and will change unless your processor supports TSC >>

Re: [PATCH 5/6 linux-next] ext4: remove unused definition

2016-09-15 Thread Theodore Ts'o
On Wed, Aug 24, 2016 at 10:03:19PM +0200, Fabian Frederick wrote: > MAX_32_NUM isn't used in ext4 > > Signed-off-by: Fabian Frederick Applied, thanks. - Ted

Re: [PATCH] jbd2: move more common code into journal_init_common()

2016-09-15 Thread Theodore Ts'o
On Wed, Sep 07, 2016 at 03:16:24PM +0200, Jan Kara wrote: > On Wed 07-09-16 20:41:13, Geliang Tang wrote: > > There are some repetitive code in jbd2_journal_init_dev() and > > jbd2_journal_init_inode(). So this patch moves the common code into > > journal_init_common() helper to simplify the code.

Re: [GIT PULL] Greybus driver subsystem for 4.9-rc1

2016-09-15 Thread Bryan O'Donoghue
On Thu, 2016-09-15 at 16:47 +0100, Mark Rutland wrote: > On  > I can't say this any more explicitly: > > > * The DT *cannot* know anything about get_cycles() * > > > It's no more complex than

Re: [PATCH BUGFIX] mtd: nand: mxc: fix obiwan error in mxc_nand_v[12]_ooblayout_free() functions

2016-09-15 Thread Boris Brezillon
Hi Lothar, On Fri, 9 Sep 2016 16:44:11 +0200 Lothar Waßmann wrote: > commit a894cf6c5a82 ("mtd: nand: mxc: switch to mtd_ooblayout_ops") > introduced a regression accessing the OOB area from the mxc_nand > driver due to an Obiwan error in the mxc_nand_v[12]_ooblayout_free() > functions. They re

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-15 Thread Martin K. Petersen
> "Jason" == Jason A Donenfeld writes: Jason, >> How do they signal that they support the passthrough? Jason> Through the usual SCSI ATA-passthrough interface, "SAT" (SCSI-ATA Jason> Command Translation) -- ATA PASS THROUGH SCSI (16) and ATA PASS Jason> THROUGH SCSI (12). But how do they s

Re: [PATCH 1/2] gpiolib: Add possibility to mask which GPIOs are added to IRQ domain

2016-09-15 Thread Marc Zyngier
Mika, On 15/09/16 16:52, Mika Westerberg wrote: > When using GPIO irqchip helpers to setup irqchip for a gpiolib based > driver, it is not possible to select which GPIOs to add to the IRQ domain. > Instead it just adds all GPIOs which is not always desired. For example > there might be GPIOs that

Re: [Nbd] [RESEND][PATCH 0/5] nbd improvements

2016-09-15 Thread Alex Bligh
Wouter, > The server can always refuse to allow multiple connections. Sure, but it would be neater to warn the client of that at negotiation stage (it would only be one flag, e.g. 'multiple connections unsafe'). That way the connection won't fail with a cryptic EBUSY or whatever, but will just ne

RE: [PATCH 2/2] x86/tsc: Add additional Intel CPU models to crystal_khz whitelist

2016-09-15 Thread Brown, Len
> + crystal_khz = 24000;/* 25.0 MHz */ I guess I prefer no comment over an incorrect comment.

Re: [PATCH v9 00/19] Add support for FDMA DMA controller and slim core rproc found on STi chipsets

2016-09-15 Thread Vinod Koul
On Wed, Sep 14, 2016 at 06:37:40PM +0530, Vinod Koul wrote: > On Tue, Sep 13, 2016 at 11:06:16AM -0700, Bjorn Andersson wrote: > > > I hate to send a ping, > > > > Sorry about that. > > > > > but do you think we can merge this fdma series? It has gone > > > through quite a few review rounds now.

Re: [PATCH] arm64: kprobe: Always clear pstate.D in breakpoint exception handler

2016-09-15 Thread Pratyush Anand
Hi Sandeepa, On Wed, Aug 24, 2016 at 3:36 PM, Pratyush Anand wrote: > Hi Sandeepa, > > Thanks for the review. > > On 23/08/2016:04:33:08 PM, Sandeepa Prabhu wrote: >> Thanks for the fix, feel free to add my ACK as well. Has it been tested on >> guest kernel? > > have not tested on guest kernel.W

Re: [PATCH] kvm, x86: Properly check whether a pfn is an MMIO or not

2016-09-15 Thread Kani, Toshimitsu
On Thu, 2016-09-15 at 08:22 +0200, Paolo Bonzini wrote: > > On 15/09/2016 07:54, Raslan, KarimAllah wrote: > > > > > > > > > > On Jun 22, 2016, at 3:41 PM, Paolo Bonzini > > > wrote: > > > > > > > > > > > > On 22/06/2016 04:34, KarimAllah Ahmed wrote: > > > > > > > > pfn_valid check is not

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-15 Thread Mika Penttilä
On 09/15/2016 07:25 AM, Wanpeng Li wrote: > 2016-09-15 12:08 GMT+08:00 Mika Penttilä : >> On 09/14/2016 10:58 AM, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> I observed that kvmvapic(to optimize flexpriority=N or AMD) is used >>> to boost TPR access when testing kvm-unit-test/eventinj.flat tpr

Re: [PATCH v2] leds: Introduce userspace leds driver

2016-09-15 Thread David Lechner
On 09/15/2016 09:54 AM, Jacek Anaszewski wrote: Hi Pavel, On 09/15/2016 03:01 PM, Pavel Machek wrote: Hi! @@ -0,0 +1,23 @@ +/* + * Userspace driver support for leds subsystem + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General

Re: [PATCH] ARM: s3c24xx: Add dma_slave_map for s3c2440 devices

2016-09-15 Thread Vinod Koul
On Thu, Sep 15, 2016 at 11:05:12AM +0200, Sylwester Nawrocki wrote: > On 09/14/2016 08:29 PM, Sam Van Den Berge wrote: > > +static const struct dma_slave_map s3c2440_dma_slave_map[] = { > ... > > + { "3c2440-sdi", "rx", (void *)DMACH_SDI }, > > + { "3c2440-sdi", "tx", (void *)DMACH_SDI }, > >

[PATCH] configfs: Return -EFBIG from configfs_write_bin_file.

2016-09-15 Thread Phil Turnbull
The check for writing more than cb_max_size bytes does not 'goto out' so it is a no-op which allows users to vmalloc an arbitrary amount. Fixes: 03607ace807b ("configfs: implement binary attributes") Signed-off-by: Phil Turnbull --- fs/configfs/file.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] kvm, x86: Properly check whether a pfn is an MMIO or not

2016-09-15 Thread Paolo Bonzini
On 15/09/2016 18:04, Kani, Toshimitsu wrote: > On Thu, 2016-09-15 at 08:22 +0200, Paolo Bonzini wrote: >> >> On 15/09/2016 07:54, Raslan, KarimAllah wrote: >>> >>> On Jun 22, 2016, at 3:41 PM, Paolo Bonzini wrote: On 22/06/2016 04:34, KarimAllah Ahmed wrote: >>

Re: [PATCH] arm64: kprobe: Always clear pstate.D in breakpoint exception handler

2016-09-15 Thread Will Deacon
On Thu, Sep 15, 2016 at 09:45:09PM +0530, Pratyush Anand wrote: > On Wed, Aug 24, 2016 at 3:36 PM, Pratyush Anand wrote: > > On 23/08/2016:04:33:08 PM, Sandeepa Prabhu wrote: > >> Thanks for the fix, feel free to add my ACK as well. Has it been tested on > >> guest kernel? > > > > have not tested

[PATCH V2 04/11] block-throttle: add upgrade logic for LIMIT_HIGH state

2016-09-15 Thread Shaohua Li
When queue is in LIMIT_HIGH state and all cgroups with high limit cross the bps/iops limitation, we will upgrade queue's state to LIMIT_MAX For a cgroup hierarchy, there are two cases. Children has lower high limit than parent. Parent's high limit is meaningless. If children's bps/iops cross high

[PATCH V2 08/11] blk-throttle: detect completed idle cgroup

2016-09-15 Thread Shaohua Li
cgroup could be assigned a limit, but doesn't dispatch enough IO, eg the cgroup is idle. When this happens, the cgroup doesn't hit its limit, so we can't move the state machine to higher level and all cgroups will be throttled to thier lower limit, so we waste bandwidth. Detecting idle cgroup is ha

[PATCH V2 11/11] blk-throttle: ignore idle cgroup limit

2016-09-15 Thread Shaohua Li
Last patch introduces a way to detect idle cgroup. We use it to make upgrade/downgrade decision. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c ind

[PATCH V2 09/11] block-throttle: make bandwidth change smooth

2016-09-15 Thread Shaohua Li
When cgroups all reach high limit, cgroups can dispatch more IO. This could make some cgroups dispatch more IO but others not, and even some cgroups could dispatch less IO than their high limit. For example, cg1 high limit 10MB/s, cg2 limit 80MB/s, assume disk maximum bandwidth is 120M/s for the wo

[PATCH V2 01/11] block-throttle: prepare support multiple limits

2016-09-15 Thread Shaohua Li
We are going to support high/max limit, each cgroup will have 2 limits after that. This patch prepares for the multiple limits change. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 109 --- 1 file changed, 68 insertions(+), 41 deletions(-)

[PATCH V2 06/11] blk-throttle: make sure expire time isn't too big

2016-09-15 Thread Shaohua Li
cgroup could be throttled to a limit but when all cgroups cross high limit, queue enters a higher state and so the group should be throttled to a higher limit. It's possible the cgroup is sleeping because of throttle and other cgroups don't dispatch IO any more. In this case, nobody can trigger cur

[PATCH V2 10/11] block-throttle: add a simple idle detection

2016-09-15 Thread Shaohua Li
A cgroup gets assigned a high limit, but the cgroup could never dispatch enough IO to cross the high limit. In such case, the queue state machine will remain in LIMIT_HIGH state and all other cgroups will be throttled according to high limit. This is unfair for other cgroups. We should treat the cg

[PATCH V2 03/11] block-throttle: configure bps/iops limit for cgroup in high limit

2016-09-15 Thread Shaohua Li
each queue will have a state machine. Initially queue is in LIMIT_HIGH state, which means all cgroups will be throttled according to their high limit. After all cgroups with high limit cross the limit, the queue state gets upgraded to LIMIT_MAX state. cgroups without high limit will use max limit f

[PATCH V2 00/11] block-throttle: add .high limit

2016-09-15 Thread Shaohua Li
Hi, The background is we don't have an ioscheduler for blk-mq yet, so we can't prioritize processes/cgroups. This patch set tries to add basic arbitration between cgroups with blk-throttle. It adds a new limit io.high for blk-throttle. It's only for cgroup2. io.max is a hard limit throttling. cgr

[PATCH V2 05/11] block-throttle: add downgrade logic

2016-09-15 Thread Shaohua Li
When queue state machine is in LIMIT_MAX state, but a cgroup is below its high limit for some time, the queue should be downgraded to lower state as one cgroup's high limit isn't met. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 187 +++ 1

[PATCH] mwifiex: fix memory leak on regd when chan is zero

2016-09-15 Thread Colin King
From: Colin Ian King When chan is zero mwifiex_create_custom_regdomain does not kfree regd and we have a memory leak. Fix this by freeing regd before the return. Signed-off-by: Colin Ian King --- drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c | 4 +++- 1 file changed, 3 insertions(+), 1 de

[PATCH V2 07/11] blk-throttle: make throtl_slice tunable

2016-09-15 Thread Shaohua Li
throtl_slice is important for blk-throttling. A lot of stuffes depend on it, for example, throughput measurement. It has 100ms default value, which is not appropriate for all disks. For example, for SSD we might use a smaller value to make the throughput smoother. This patch makes it tunable. Sign

[PATCH V2 02/11] block-throttle: add .high interface

2016-09-15 Thread Shaohua Li
Add high limit for cgroup and corresponding cgroup interface. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 139 +++ 1 file changed, 107 insertions(+), 32 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 71ecee7..

RE: [PATCH v3 6/9] mtd: spi-nor: Support R/W for S25FS-S family flash

2016-09-15 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
Hello, > -Original Message- > From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf > Of Han Xu > Sent: Wednesday, September 14, 2016 9:49 PM > To: Yunhui Cui > Cc: Yunhui Cui ; David Woodhouse > ; linux-kernel@vger.kernel.org; linux- > m...@lists.infradead.org; han...@

Re: [Nbd] [RESEND][PATCH 0/5] nbd improvements

2016-09-15 Thread Wouter Verhelst
On Thu, Sep 15, 2016 at 05:08:21PM +0100, Alex Bligh wrote: > Wouter, > > > The server can always refuse to allow multiple connections. > > Sure, but it would be neater to warn the client of that at negotiation > stage (it would only be one flag, e.g. 'multiple connections > unsafe'). I suppose

Re: [PATCH] mwifiex: fix null pointer deference when adapter is null

2016-09-15 Thread kbuild test robot
Hi Colin, [auto build test WARNING on wireless-drivers-next/master] [also build test WARNING on next-20160915] [cannot apply to v4.8-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base=

Re: [PATCH v3] leds: Introduce userspace leds driver

2016-09-15 Thread David Lechner
On 09/15/2016 09:54 AM, Jacek Anaszewski wrote: Hi Pavel, On 09/15/2016 03:08 PM, Pavel Machek wrote: Hi! +if (copy_from_user(&udev->user_dev, buffer, + sizeof(struct uleds_user_dev))) { +ret = -EFAULT; +goto out; +} + +if (!udev->user_dev.name[0]) {

[PATCH v4 0/3] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Introduce mechanism to detect sun7i and provide a different regmap different compared to sun4i Allwinner A10. The controls will be extended in a forthcoming patch - it is necessary to distinguish between sun4i and sun7i controls because they have different registers. Renamed

Re: [PATCH] arm64: kprobe: Always clear pstate.D in breakpoint exception handler

2016-09-15 Thread Pratyush Anand
On Thu, Sep 15, 2016 at 9:48 PM, Will Deacon wrote: > On Thu, Sep 15, 2016 at 09:45:09PM +0530, Pratyush Anand wrote: >> On Wed, Aug 24, 2016 at 3:36 PM, Pratyush Anand wrote: >> > On 23/08/2016:04:33:08 PM, Sandeepa Prabhu wrote: >> >> Thanks for the fix, feel free to add my ACK as well. Has it

Re: [Nbd] [RESEND][PATCH 0/5] nbd improvements

2016-09-15 Thread Alex Bligh
Wouter, > On 15 Sep 2016, at 17:27, Wouter Verhelst wrote: > > On Thu, Sep 15, 2016 at 05:08:21PM +0100, Alex Bligh wrote: >> Wouter, >> >>> The server can always refuse to allow multiple connections. >> >> Sure, but it would be neater to warn the client of that at negotiation >> stage (it wou

[PATCH V6 0/3] Adding support for address filters

2016-09-15 Thread Mathieu Poirier
This patch set makes it possible to use the current filter framework with address filters. That way address filters for HW tracers such as CoreSight and IntelPT can be communicated to the kernel drivers. In this revision precursor work is done to make function perf_evsel__append_filter() generic,

[PATCH V6 1/3] perf tools: making perf_evsel__append_filter() generic

2016-09-15 Thread Mathieu Poirier
By making function perf_evsel__append_filter() take a format rather than an operator it is possible to reuse the code for other purposes (ex. intelPT and CoreSight) than tracepoints. Signed-off-by: Mathieu Poirier --- tools/perf/builtin-trace.c | 9 +++-- tools/perf/util/evsel.c|

Re: [PATCH] MMC: meson: remove unused variable

2016-09-15 Thread Kevin Hilman
Arnd Bergmann writes: > The newly added meson mmc driver causes a build warning from an unused > variable: > > drivers/mmc/host/meson-gxbb.c: In function 'meson_mmc_request_done': > drivers/mmc/host/meson-gxbb.c:411:22: error: unused variable 'cmd' > [-Werror=unused-variable] > > This removes th

[PATCH V6 3/3] perf tools: adding support for address filters

2016-09-15 Thread Mathieu Poirier
This patch makes it possible to use the current filter framework with address filters. That way address filters for HW tracers such as CoreSight and IntelPT can be communicated to the kernel drivers. Signed-off-by: Mathieu Poirier --- tools/perf/util/evsel.c| 5 + tools/perf/util/e

[PATCH v4 3/3] ASoC: sun4i-codec: Add custom regmap configs

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: The A20 has a few extra registers that the A10 doesn't have. Therefore, use different regmaps for A10 as compared to A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(

[PATCH v4 2/3] ASoC: rename some sun7i-only registers

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Some of the registers are sun7i-only. Therefore rename "SUN4I_CODEC_SYS_VERI" to "SUN7I_CODEC_AC_DAC_CAL" and rename "SUN4I_CODEC_AC_MIC_PHONE_CAL" to "SUN7I_CODEC_AC_MIC_PHONE_CAL". Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file chang

[PATCH V6 2/3] perf tools: new tracepoint specific function

2016-09-15 Thread Mathieu Poirier
Making function perf_evsel__append_filter() static and introducing a new tracepoint specific function to append filters. That way we eliminate redundant code and avoid formatting mistake. Signed-off-by: Mathieu Poirier --- tools/perf/builtin-trace.c | 7 +++ tools/perf/util/evsel.c

[PATCH v4 1/3] ASoC: sun4i-codec: rename sun4i_codec_widgets for consistency

2016-09-15 Thread Danny Milosavljevic
ASoC: sun4i-codec: Rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sou

[ANNOUNCE] 4.6.7-rt13

2016-09-15 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.6.7-rt13 patch set. Changes since v4.6.7-rt12: - The dcache regression fix up introduced another problem. As pointed out by Thomas Gleixner we can't avoid cpu_chill() for !RT tasks because the owner might be preempted and we would spin unt

Re: [RFC PATCH v2 15/20] iommu/amd: AMD IOMMU support for memory encryption

2016-09-15 Thread Tom Lendacky
On 09/14/2016 09:41 AM, Borislav Petkov wrote: > On Wed, Sep 14, 2016 at 08:45:44AM -0500, Tom Lendacky wrote: >> Currently, mem_encrypt.h only lives in the arch/x86 directory so it >> wouldn't be able to be included here without breaking other archs. > > I'm wondering if it would be simpler to mo

Re: [PATCH v2 2/3] mm, dax: add VM_DAX flag for DAX VMAs

2016-09-15 Thread Dan Williams
On Thu, Sep 15, 2016 at 1:26 AM, Christoph Hellwig wrote: > On Wed, Sep 14, 2016 at 11:54:38PM -0700, Dan Williams wrote: >> The DAX property, page cache bypass, of a VMA is only detectable via the >> vma_is_dax() helper to check the S_DAX inode flag. However, this is >> only available internal t

Re: [RFC PATCH v2 11/20] mm: Access BOOT related data in the clear

2016-09-15 Thread Tom Lendacky
On 09/15/2016 04:57 AM, Matt Fleming wrote: > On Wed, 14 Sep, at 09:20:44AM, Tom Lendacky wrote: >> On 09/12/2016 11:55 AM, Andy Lutomirski wrote: >>> On Aug 22, 2016 6:53 PM, "Tom Lendacky" wrote: BOOT data (such as EFI related data) is not encyrpted when the system is booted and n

Re: [RFC PATCH v2 19/20] x86: Access the setup data through debugfs un-encrypted

2016-09-15 Thread Tom Lendacky
On 09/14/2016 09:51 AM, Borislav Petkov wrote: > On Wed, Sep 14, 2016 at 09:29:41AM -0500, Tom Lendacky wrote: >> This is still required because just using the __va() would still cause >> the mapping created to have the encryption bit set. The ioremap call >> will result in the mapping not having t

Re: [PATCH v2 2/3] mm, dax: add VM_DAX flag for DAX VMAs

2016-09-15 Thread Darrick J. Wong
On Thu, Sep 15, 2016 at 10:01:03AM -0700, Dan Williams wrote: > On Thu, Sep 15, 2016 at 1:26 AM, Christoph Hellwig wrote: > > On Wed, Sep 14, 2016 at 11:54:38PM -0700, Dan Williams wrote: > >> The DAX property, page cache bypass, of a VMA is only detectable via the > >> vma_is_dax() helper to chec

Re: [PATCH] mwifiex: fix memory leak on regd when chan is zero

2016-09-15 Thread Kalle Valo
Colin King writes: > From: Colin Ian King > > When chan is zero mwifiex_create_custom_regdomain does not kfree > regd and we have a memory leak. Fix this by freeing regd before > the return. > > Signed-off-by: Colin Ian King > --- > drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c | 4 +++- >

Re: [PATCH 1/4] uinput: Add ioctl for using monotonic/ boot times

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:07 AM, Arnd Bergmann wrote: > On Tuesday, September 13, 2016 7:10:02 AM CEST Deepa Dinamani wrote: >> --- a/drivers/input/misc/uinput.c >> +++ b/drivers/input/misc/uinput.c >> @@ -46,11 +46,28 @@ static int uinput_dev_event(struct input_dev *dev, >>

Re: rcu_sched self-detected stall on CPU

2016-09-15 Thread NTU
Sorry!! Alec Ari On Thu, Sep 15, 2016 at 1:22 AM, Mike Galbraith wrote: > On Wed, 2016-09-14 at 23:02 -0500, NTU wrote: >> [ 26.542980] Call Trace: >> [ 26.542983] [] ? 0xa7fbd7c1 >> [ 26.542985] [] ? 0xa7f17d35 >> [ 26.542986] [] ? 0xa796c115 >> [ 26.542988]

Re: [PATCH 4/7 v3] sched: propagate load during synchronous attach/detach

2016-09-15 Thread Dietmar Eggemann
On 15/09/16 15:31, Vincent Guittot wrote: > On 15 September 2016 at 15:11, Dietmar Eggemann > wrote: [...] >> Wasn't 'consuming <1' related to 'NICE_0_LOAD' and not >> scale_load_down(gcfs_rq->tg->shares) before the rewrite of PELT (v4.2, >> __update_group_entity_contrib())? > > Yes before the

Re: [PATCH 4/4] input: serio: Replace timeval by timespec64

2016-09-15 Thread Deepa Dinamani
On Tue, Sep 13, 2016 at 8:13 AM, Arnd Bergmann wrote: > On Tuesday, September 13, 2016 7:10:05 AM CEST Deepa Dinamani wrote: >> struct timeval is not y2038 safe. >> All references to timeval will be deleted from the >> kernel to make it y2038 safe. >> Replace its uses by y2038 safe struct timespec

[GIT PULL rcu/next] RCU commits for 4.9

2016-09-15 Thread Paul E. McKenney
Hello, Ingo, This series contains the following changes: 1. Documentation updates, again just some simple changes. Yes, I am getting behind on design-level updates. :-/ http://lkml.kernel.org/g/20160822151413.ga6...@linux.vnet.ibm.com 2. Expedited grace-period changes

Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test

2016-09-15 Thread Sergio Paracuellos
That's true. It seems that checkpatch script is getting a false positive. Just trying to do checkpatch happy. Sorry for inconvenience. I'll be careful with Changelog stuff from now. Thanks for advice. Cheers, Sergio Paracuellos El 2016年09月15日 a las 16:51, Greg KH escribió: On Thu, Sep

[PATCH V3 04/10] dmaengine: qcom_hidma: configure DMA and MSI for OF

2016-09-15 Thread Sinan Kaya
Configure the DMA bindings for the device tree based firmware. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma_mgmt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 82f36e4..e8f6b84 100644 --- a/dri

[PATCH V3 08/10] dmaengine: qcom_hidma: add a common API to setup the interrupt

2016-09-15 Thread Sinan Kaya
Introducing the hidma_ll_setup_irq function to set up the interrupt type externally from the OS interface. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.h| 2 ++ drivers/dma/qcom/hidma_ll.c | 27 +++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --gi

[PATCH V3 07/10] dmaengine: qcom_hidma: bring out interrupt cause

2016-09-15 Thread Sinan Kaya
Bring out the interrupt cause to the top level so that MSI interrupts can be hooked at a later stage. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma_ll.c | 72 + 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/drivers/dma/qcom/hid

[PATCH V3 02/10] Documentation: DT: qcom_hidma: correct spelling mistakes

2016-09-15 Thread Sinan Kaya
Fix the spelling mistakes and extra and statements in the sentences. Acked-by: Rob Herring Signed-off-by: Sinan Kaya --- Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/qcom_h

[PATCH V3 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-09-15 Thread Sinan Kaya
Getting ready for the MSI interrupts. The pending_tre_count is used in the interrupt handler to make sure all outstanding requests are serviced. Making it atomic so that it can be updated from multiple contexts. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.h | 2 +- drivers/dma/qco

[PATCH V3 01/10] Documentation: DT: qcom_hidma: update binding for MSI

2016-09-15 Thread Sinan Kaya
Adding a new binding for qcom,hidma-1.1 to distinguish HW supporting MSI interrupts from the older revision. Signed-off-by: Sinan Kaya --- Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/dev

[PATCH V3 03/10] of: irq: make of_msi_configure accessible from modules

2016-09-15 Thread Sinan Kaya
The of_msi_configure routine is only accessible by the built-in kernel drivers. Export this function so that modules can use it too. This function is useful for configuring MSI on child device tree nodes on hierarchical objects. Acked-by: Rob Herring Signed-off-by: Sinan Kaya --- drivers/of/ir

[PATCH V3 10/10] dmaengine: qcom_hidma: add MSI support for interrupts

2016-09-15 Thread Sinan Kaya
The interrupts can now be delivered as platform MSI interrupts on newer platforms. The code looks for a new OF and ACPI strings in order to enable the functionality. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c| 129 ++-- drivers/dma/qcom/hid

[PATCH V3 06/10] dmaengine: qcom_hidma: make error and success path common

2016-09-15 Thread Sinan Kaya
Remove code duplication by feeding the error code from outside into successful data transfer handler. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma_ll.c | 34 ++ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/drivers/dma/qcom/hidma_ll.c b/d

[PATCH V3 09/10] dmaengine: qcom_hidma: protect common data structures

2016-09-15 Thread Sinan Kaya
When MSI interrupts are supported, error and the transfer interrupt can come from multiple processor contexts. Each error interrupt is an MSI interrupt. If the channel is disabled by the first error interrupt, the remaining error interrupts will gracefully return in the interrupt handler. If an e

Re: [PATCH v3 15/15] lockdep: Crossrelease feature documentation

2016-09-15 Thread Nilay Vaish
On 13 September 2016 at 04:45, Byungchul Park wrote: > This document describes the concept of crossrelease feature, which > generalizes what causes a deadlock and how can detect a deadlock. > > Signed-off-by: Byungchul Park > --- > Documentation/locking/crossrelease.txt | 785 >

Re: [PATCH v2 3/3] remoteproc: core: add rproc ops for memory allocation

2016-09-15 Thread Bjorn Andersson
On Tue 06 Sep 00:39 PDT 2016, Loic Pallardy wrote: > Remoteproc core is currently using dma_alloc_coherent for > carveout and vring allocation. > It doesn't allow to support specific use cases like fixed memory > region or internal RAM support. > > Two new rproc ops (alloc and free) is added to p

Re: [PATCH] mwifiex: fix memory leak on regd when chan is zero

2016-09-15 Thread Colin Ian King
On 15/09/16 18:10, Kalle Valo wrote: > Colin King writes: > >> From: Colin Ian King >> >> When chan is zero mwifiex_create_custom_regdomain does not kfree >> regd and we have a memory leak. Fix this by freeing regd before >> the return. >> >> Signed-off-by: Colin Ian King >> --- >> drivers/net

Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test

2016-09-15 Thread Joe Perches
On Thu, 2016-09-15 at 19:22 +0200, Sergio Paracuellos wrote: > That's true. It seems that checkpatch script is getting a false > positive. Just trying to do checkpatch happy. Sorry for inconvenience. Keeping the style consistent instead of taking the simplest path to quiet the checkpatch messages

Re: [PATCH] sctp: Remove some redundant code

2016-09-15 Thread Marcelo
On Sun, Sep 04, 2016 at 11:38:13AM +0200, Christophe JAILLET wrote: > In commit 311b21774f13 ("sctp: simplify sk_receive_queue locking"), a call > to 'skb_queue_splice_tail_init()' has been made explicit. Previously it was > hidden in 'sctp_skb_list_tail()' > > Now, the code around it looks redund

Re: [PATCH 4/7 v3] sched: propagate load during synchronous attach/detach

2016-09-15 Thread Dietmar Eggemann
On 15/09/16 16:14, Peter Zijlstra wrote: > On Thu, Sep 15, 2016 at 02:11:49PM +0100, Dietmar Eggemann wrote: >> On 12/09/16 08:47, Vincent Guittot wrote: > >>> +/* Take into account change of load of a child task group */ >>> +static inline void >>> +update_tg_cfs_load(struct cfs_rq *cfs_rq, struc

Re: [PATCH 6/7] AGPGART-UniNorth: Rename a jump label in uninorth_create_gatt_table()

2016-09-15 Thread kbuild test robot
Hi Markus, [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.8-rc6 next-20160915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

Re: [PATCH 2/2] x86/tsc: Add additional Intel CPU models to crystal_khz whitelist

2016-09-15 Thread Peter Zijlstra
On Thu, Sep 15, 2016 at 04:08:36PM +, Brown, Len wrote: > > + crystal_khz = 24000;/* 25.0 MHz */ > > I guess I prefer no comment over an incorrect comment. > >From this I take it it should really have been 24 MHz and it could have joined the existing case. I assumed (ha

Re: [PATCH] drm/radeon/radeon_device: remove unused function

2016-09-15 Thread Christian König
Am 15.09.2016 um 16:13 schrieb Baoyou Xie: We get 2 warnings when building kernel with W=1: drivers/gpu/drm/radeon/radeon_device.c:1961:5: warning: no previous prototype for 'radeon_debugfs_init' [-Wmissing-prototypes] drivers/gpu/drm/radeon/radeon_device.c:1966:6: warning: no previous prototype

Re: [PATCH v2 2/3] mm, dax: add VM_DAX flag for DAX VMAs

2016-09-15 Thread Dan Williams
On Thu, Sep 15, 2016 at 10:09 AM, Darrick J. Wong wrote: > On Thu, Sep 15, 2016 at 10:01:03AM -0700, Dan Williams wrote: >> On Thu, Sep 15, 2016 at 1:26 AM, Christoph Hellwig wrote: >> > On Wed, Sep 14, 2016 at 11:54:38PM -0700, Dan Williams wrote: >> >> The DAX property, page cache bypass, of a

Re: [PATCH 2/2] x86/tsc: Add additional Intel CPU models to crystal_khz whitelist

2016-09-15 Thread Prarit Bhargava
On 09/15/2016 01:43 PM, Peter Zijlstra wrote: > On Thu, Sep 15, 2016 at 04:08:36PM +, Brown, Len wrote: >>> + crystal_khz = 24000;/* 25.0 MHz */ >> >> I guess I prefer no comment over an incorrect comment. >> > > From this I take it it should really have been 24 MHz and

Re: [PATCH v3) posix-timers: make it configurable

2016-09-15 Thread John Stultz
On Wed, Sep 14, 2016 at 8:47 PM, Nicolas Pitre wrote: > Many embedded systems typically don't need them. This removes about > 22KB from the kernel binary size on ARM when configured out. > > Corresponding syscalls are routed to a stub logging the attempt to > use those syscalls which should be en

[PATCH 1/1] rapidio/rio_cm: avoid GFP_KERNEL in atomic context

2016-09-15 Thread Alexandre Bounine
As reported by Alexey Khoroshilov (see https://lkml.org/lkml/2016/9/9/737): riocm_send_close() is called from rio_cm_shutdown() under spin_lock_bh(idr_lock), but riocm_send_close() uses a GFP_KERNEL allocation. Fix by taking riocm_send_close() outside of spinlock protected code. Reported-by: Ale

Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource table spare bytes

2016-09-15 Thread Bjorn Andersson
On Wed 31 Aug 13:50 PDT 2016, Loic Pallardy wrote: > To allow resource appending to an existing resource table, > remoteproc framework should get information about resource > table spare area. With current resource table construction, > remoteproc is not able to identify by itself any free locatio

Re: [PATCH 4/7 v3] sched: propagate load during synchronous attach/detach

2016-09-15 Thread Peter Zijlstra
On Thu, Sep 15, 2016 at 06:36:53PM +0100, Dietmar Eggemann wrote: > > We did however loose a lot on why and how min(1, runnable_avg) is a > > sensible thing to do... > > Do you refer to the big comment on top of this if condition in the old > code in __update_group_entity_contrib()? The last two

Re: [PATCH v3) posix-timers: make it configurable

2016-09-15 Thread Nicolas Pitre
On Thu, 15 Sep 2016, John Stultz wrote: > On Wed, Sep 14, 2016 at 8:47 PM, Nicolas Pitre > wrote: > > Many embedded systems typically don't need them. This removes about > > 22KB from the kernel binary size on ARM when configured out. > > > > Corresponding syscalls are routed to a stub logging

Re: [PATCH v4 4/4] regulator: Prevent falling too fast

2016-09-15 Thread Matthias Kaehlcke
Hi Mark, El Thu, Sep 15, 2016 at 03:39:45PM +0100 Mark Brown ha dit: > On Tue, Sep 13, 2016 at 10:21:40AM -0700, Matthias Kaehlcke wrote: > > > Optimizing the delay time depends on the SoC; we have not measured > > this across a wide variety of devices and thus have very conservative > > numbers

Re: [PATCH 08/12] x86/dumpstack: Pin the target stack in save_stack_trace_tsk()

2016-09-15 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 11:35 AM, Josh Poimboeuf wrote: > On Wed, Sep 14, 2016 at 11:22:00AM -0700, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 7:55 AM, Josh Poimboeuf wrote: >> > On Tue, Sep 13, 2016 at 02:29:28PM -0700, Andy Lutomirski wrote: >> >> This will prevent a crash if the target

Re: [PATCH 1/1] ARM: imx5: Add clocks configuration

2016-09-15 Thread Alexander Shiyan
>Четверг, 15 сентября 2016, 13:13 +03:00 от Fabien Lahoudere >: > >From: Kalle Kankare < kalle.kank...@vincit.fi > > >Add clocks configuration for CSI, FIRI and IEEE1588. > >Signed-off-by: Fabien Lahoudere < fabien.lahoud...@collabora.co.uk > >--- > drivers/clk/imx/clk-imx51-imx53.c | 20

Re: [PATCH 1/2] gpiolib: Add possibility to mask which GPIOs are added to IRQ domain

2016-09-15 Thread Mika Westerberg
On Thu, Sep 15, 2016 at 05:07:58PM +0100, Marc Zyngier wrote: > Mika, > > On 15/09/16 16:52, Mika Westerberg wrote: > > When using GPIO irqchip helpers to setup irqchip for a gpiolib based > > driver, it is not possible to select which GPIOs to add to the IRQ domain. > > Instead it just adds all G

Re: [PATCH v3) posix-timers: make it configurable

2016-09-15 Thread John Stultz
> diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig > index 62824f2fe4..62504a2c9f 100644 > --- a/kernel/time/Kconfig > +++ b/kernel/time/Kconfig > @@ -195,3 +195,21 @@ config HIGH_RES_TIMERS > > endmenu > endif > + > +config POSIX_TIMERS > + bool "Posix Clocks & timers" if EMBEDDED >

Re: [PATCH 6/7] AGPGART-UniNorth: Rename a jump label in uninorth_create_gatt_table()

2016-09-15 Thread SF Markus Elfring
>drivers/char/agp/uninorth-agp.c: In function 'uninorth_create_gatt_table': >>> drivers/char/agp/uninorth-agp.c:426:3: error: label 'enomem' used but not >>> defined > goto enomem; > ^ > > vim +/enomem +426 drivers/char/agp/uninorth-agp.c This error message points a glitch out wh

Re: [PATCH v3) posix-timers: make it configurable

2016-09-15 Thread Nicolas Pitre
On Thu, 15 Sep 2016, John Stultz wrote: > > diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig > > index 62824f2fe4..62504a2c9f 100644 > > --- a/kernel/time/Kconfig > > +++ b/kernel/time/Kconfig > > @@ -195,3 +195,21 @@ config HIGH_RES_TIMERS > > > > endmenu > > endif > > + > > +config POSIX

Re: [PATCH] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-15 Thread nayeem
On Wednesday 14 September 2016 10:44 AM, Dilger, Andreas wrote: On Sep 12, 2016, at 04:27, Greg KH wrote: On Fri, Sep 09, 2016 at 08:50:35PM +0530, Nayeemahmed Badebade wrote: Added __acquires / __releases sparse locking annotations to lock_res_and_lock and unlock_res_and_lock functions in

<    1   2   3   4   5   6   7   8   9   >