Re: [PATCH 1/1 linux-next] jfs: atomically read inode size

2017-01-23 Thread Fabian Frederick
> On 23 January 2017 at 19:43 Dave Kleikamp wrote: > > > On 01/23/2017 11:50 AM, Fabian Frederick wrote: > > See i_size_read() comments in include/linux/fs.h > > Is this fixing a real problem? Can the bd_inode size change while we're > mounting or resizing the filesystem? > Behind good locking,

Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler

2017-01-23 Thread Andi Kleen
> Do you know if there is any tool comparing the output of objdump -d to what is > produced by a similar xed based tool? I'm not aware of such a tool, but could be written using the "xed" tool in the xed distribution. However I would trust xed over objdump, it is used widely in Intel tools with li

Re: [PATCH v4 1/3] dt: bindings: add documentation for zx2967 family watchdog controller

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 04:16:46PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > watchdog controller. > > Signed-off-by: Baoyou Xie > --- > .../bindings/watchdog/zte,zx2967-wdt.txt | 31 > ++ > 1 file changed, 31 insertions

Re: [PATCH v7 3/5] phy: Add set_vbus callback

2017-01-23 Thread Stephen Boyd
Quoting Kishon Vijay Abraham I (2017-01-22 00:46:21) > Hi, > > On Saturday 21 January 2017 12:20 AM, Stephen Boyd wrote: > > Some USB PHYs need to be told about vbus changing state > > explicitly. For example the qcom USB HS PHY needs to toggle a bit > > when vbus goes from low to high (VBUSVLDEXT

Re: [PATCH 02/22] irqchip: DT bindings for Cortina Gemini irqchip

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:16:09PM +0100, Linus Walleij wrote: > This adds device tree bindings for the Cortina Gemini interrupt > controller. They are pretty standard. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Si

Re: [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-23 Thread Andrey Pronin
On Tue, Jan 17, 2017 at 04:22:07PM -0700, Jason Gunthorpe wrote: > On Tue, Jan 17, 2017 at 03:00:53PM -0800, Andrey Pronin wrote: > > > Here I was talking not about tpm_tis_spi or tpm_tis. Those can > > continue relying on the core, or register the default handler using > > .shutdown = tpm_shutdow

Re: [PATCH 04/22] clocksource: add DT bindings for Cortina Gemini

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:17:07PM +0100, Linus Walleij wrote: > This adds device tree bindings for the Cortina Systems Gemini > timer block used in these SoCs. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Signed-off

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

2017-01-23 Thread Mel Gorman
On Mon, Jan 23, 2017 at 12:03:29PM -0500, Tejun Heo wrote: > Hello, > > On Fri, Jan 20, 2017 at 03:26:06PM +, Mel Gorman wrote: > > > This translates to queue_work_on(), which has the comment of "We queue > > > the work to a specific CPU, the caller must ensure it can't go away.", > > > so is

Re: [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:18:30PM +0100, Linus Walleij wrote: > This adds fairly standard DT bindings for the Cortina Systems > Gemini GPIO controller. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Signed-off-by: Lin

Re: [PATCH v2 tip/core/rcu 2/3] srcu: Force full grace-period ordering

2017-01-23 Thread Lance Roy
On Mon, 23 Jan 2017 11:12:07 -0800 "Paul E. McKenney" wrote: > On Mon, Jan 23, 2017 at 12:38:29AM -0800, Lance Roy wrote: > > On Sun, 15 Jan 2017 14:42:34 -0800 > > "Paul E. McKenney" wrote: > > > > > @@ -413,6 +415,8 @@ static void __synchronize_srcu(struct srcu_struct *sp, > > > int trycoun

Re: [PATCH 08/22] rtc: Add device tree probing to the Gemini driver

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:19:50PM +0100, Linus Walleij wrote: > This adds bindings and simple probing for the Cortina Systems Gemini > SoC RTC. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Signed-off-by: Linus Walle

Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler

2017-01-23 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 23, 2017 at 11:55:21AM -0800, Andi Kleen escreveu: > > Do you know if there is any tool comparing the output of objdump -d to what > > is > > produced by a similar xed based tool? > > I'm not aware of such a tool, but could be written using the "xed" tool > in the xed distribution. Ho

Re: [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field

2017-01-23 Thread Andy Lutomirski
On Mon, Jan 23, 2017 at 3:46 AM, Djalal Harouni wrote: > On Sat, Jan 21, 2017 at 1:53 AM, Andy Lutomirski wrote: >> I agree that the kernel change to do it per task is very simple. But >> this is an unfortunate slippery slope. What if you want to block off >> everything in /proc that isn't asso

Re: [PATCH v3 2/4] dt-bindings: Add TI SCI PM Domains

2017-01-23 Thread Dave Gerlach
On 01/20/2017 10:52 AM, Ulf Hansson wrote: [...] Another option is create something new either common or TI SCI specific. It could be just a table of ids and phandles in the SCI node. I'm much more comfortable with an isolated property in one node than something scattered throughout the DT. T

Re: [PATCH 09/22] mtd: add DT bindings for the Cortina Systems Gemini Flash

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:21:19PM +0100, Linus Walleij wrote: > This adds device tree bindings for the Cortina systems Gemini > flash controller, a simple physmap which however need a few > syscon bits to be poked to operate properly. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli K

Re: [tpmdd-devel] [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-23 Thread Andrey Pronin
On Mon, Jan 23, 2017 at 12:02:46PM -0800, Andrey Pronin wrote: > On Tue, Jan 17, 2017 at 04:22:07PM -0700, Jason Gunthorpe wrote: > > On Tue, Jan 17, 2017 at 03:00:53PM -0800, Andrey Pronin wrote: > > > > > Here I was talking not about tpm_tis_spi or tpm_tis. Those can > > > continue relying on th

[PATCH v2 tip/core/rcu 1/3] srcu: Implement more-efficient reader counts

2017-01-23 Thread Lance Roy
Here is a more recent version of the patch. It has more accurate comments.

Re: [PATCH 8/8] x86/intel_rdt: rmdir,umount and hotcpu updates for MBA

2017-01-23 Thread Shivappa Vikas
On Mon, 16 Jan 2017, Thomas Gleixner wrote: On Tue, 10 Jan 2017, Vikas Shivappa wrote: During rmdir only reset the ctrl values for the rdtgroup's closid. This is done so that that next time when the closid is reused they dont reflect old values. How on earth is that related to MBA? This

[PATCH] SRCU: More efficient reader counts.

2017-01-23 Thread Lance Roy
SRCU uses two per-cpu counters: a nesting counter to count the number of active critical sections, and a sequence counter to ensure that the nesting counters don't change while they are being added together in srcu_readers_active_idx_check(). This patch instead uses per-cpu lock and unlock counter

Re: [PATCH 11/22] ARM: dts: add top-level DT bindings for Cortina Gemini

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 01:22:19PM +0100, Linus Walleij wrote: > This adds the top level SoC bindings for Cortina systems Gemini > platforms. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Signed-off-by: Linus Walleij

Re: [PATCH linux v3 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-01-23 Thread Guenter Roeck
On Mon, Jan 23, 2017 at 01:28:52PM -0600, Edward James wrote: > I still just can't get gmail to reply to this. Thanks for the review. > > On Sat, Jan 21, 2017 at 11:49 AM, Guenter Roeck wrote: > > On 01/16/2017 01:13 PM, eajames@gmail.com wrote: > >> > >> From: "Edward A. James" > >> > >> Ad

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2017-01-23 Thread Andy Lutomirski
On Sun, Jan 22, 2017 at 8:31 PM, Alexei Starovoitov wrote: > On Thu, Jan 19, 2017 at 08:04:59PM -0800, Andy Lutomirski wrote: >> On Thu, Jan 19, 2017 at 6:39 PM, Alexei Starovoitov >> wrote: >> > On Wed, Jan 18, 2017 at 06:29:22PM -0800, Andy Lutomirski wrote: >> >> I think it could work by makin

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Pavel Machek
On Mon 2017-01-23 15:13:31, Pavel Machek wrote: > Hi! > > > It seems that battery driver stopped working on N900 between -rc4 and > > -rc5. > > pavel@amd:/data/l/linux-n900$ git bisect log > # bad: [41f283973653dc44af47585fa79fb6da6ffdc2e2] Merge > /data//l/clean-cg into mini-v4.10 > # good: [4f8

Re: [PATCH v2 tip/core/rcu 07/18] rcu: Add long-term CPU kicking

2017-01-23 Thread Josh Triplett
On Mon, Jan 23, 2017 at 11:34:45AM -0800, Paul E. McKenney wrote: > On Sat, Jan 21, 2017 at 12:42:55PM -0800, Josh Triplett wrote: > > On Tue, Jan 17, 2017 at 06:53:46PM -0800, Paul E. McKenney wrote: > > > Commit d2db185bfee8 ("rcu: Remove short-term CPU kicking") removed > > > frequent calls to r

Re: [PATCH 7/9] of: Add vendor prefix for Multi-Inno

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 07:11:15PM +0100, Noralf Trønnes wrote: > Multi-Inno Technology Co.,Ltd is a Hong Kong based company offering > LCD, LCD module products and complete panel solutions. > > Signed-off-by: Noralf Trønnes > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + >

Re: [PATCH] SRCU: More efficient reader counts.

2017-01-23 Thread Paul E. McKenney
On Mon, Jan 23, 2017 at 12:17:25PM -0800, Lance Roy wrote: > SRCU uses two per-cpu counters: a nesting counter to count the number of > active critical sections, and a sequence counter to ensure that the nesting > counters don't change while they are being added together in > srcu_readers_active_id

Re: [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-23 Thread Jason Gunthorpe
On Mon, Jan 23, 2017 at 12:02:46PM -0800, Andrey Pronin wrote: > > But if there is no actual need to do this right now then don't worry > > about overdesigning things.. > > OK, I can live with chip->id specific logic in probe/shutdown, if that's > the current approach. It is where we are heading

Re: [PATCH 8/9] dt-bindings: Add Multi-Inno MI0283QT binding

2017-01-23 Thread Rob Herring
On Sun, Jan 22, 2017 at 07:11:16PM +0100, Noralf Trønnes wrote: > Add device-tree binding documentation for the MI0283QT display panel. > > Signed-off-by: Noralf Trønnes > --- > > Datasheet: https://cdn-shop.adafruit.com/datasheets/MI0283QT-11+V1.1.PDF > > > .../bindings/display/multi-inno,mi

Re: [PATCH] virtio_net: fix PAGE_SIZE > 64k

2017-01-23 Thread kbuild test robot
Hi Michael, [auto build test WARNING on net-next/master] [also build test WARNING on v4.10-rc5 next-20170123] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/virtio_net-fix

Re: [PATCH v2] jump_label: reduce the size of struct static_key

2017-01-23 Thread Jason Baron
On 01/21/2017 02:07 AM, Ingo Molnar wrote: * Jason Baron wrote: For example the last line could sure be written as: key->entries = jlm->entries; key->type |= static_key_type(key); right? Hi, So that is going to over-write the static_key_t

[PATCH v3 3/3] gpio: Support gpio nexus dt bindings

2017-01-23 Thread Stephen Boyd
Platforms like 96boards have a standardized connector/expansion slot that exposes signals like GPIOs to expansion boards in an SoC agnostic way. We'd like the DT overlays for the expansion boards to be written once without knowledge of the SoC on the other side of the connector. This avoids the uns

[PATCH v3 1/3] of: Support parsing phandle argument lists through a nexus node

2017-01-23 Thread Stephen Boyd
Platforms like 96boards have a standardized connector/expansion slot that exposes signals like GPIOs to expansion boards in an SoC agnostic way. We'd like the DT overlays for the expansion boards to be written once without knowledge of the SoC on the other side of the connector. This avoids the uns

[PATCH v3 2/3] of: unittest: Add phandle remapping test

2017-01-23 Thread Stephen Boyd
Test the functionality of of_parse_phandle_with_args_map(). Cc: Pantelis Antoniou Cc: Linus Walleij Cc: Mark Brown Signed-off-by: Stephen Boyd --- drivers/of/unittest-data/testcases.dts | 11 +++ drivers/of/unittest-data/tests-phandle.dtsi | 25 ++ drivers/of/unittest.c

[PATCH v3 0/3] OF phandle nexus support + GPIO nexus

2017-01-23 Thread Stephen Boyd
This is one small chunk of work related to DT overlays for expansion boards. It would be good to have a way to expose #-cells types of providers through a connector in a standard way. So we introduce a way to make "nexus" nodes for these types of properties to remap the consumer number space to the

[PATCH] ACPI/IORT: Fix error handling

2017-01-23 Thread Christophe JAILLET
If 'platform_device_alloc()' returns NULL, the current code returns 0, which means success. Return -ENOMEM instead. Fixes: 846f0e9e74a0 ("ACPI/IORT: Add support for ARM SMMU platform devices creation") Signed-off-by: Christophe JAILLET --- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 in

Re: [PATCH 1/4] Documentation: devicetree: Add document bindings for leds-mt6323

2017-01-23 Thread Rob Herring
On Mon, Jan 23, 2017 at 11:54:42AM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This patch adds documentation for devicetree bindings > for LED support on MT6323 PMIC > > Signed-off-by: Sean Wang > --- > .../devicetree/bindings/leds/leds-mt6323.txt | 60 > +

Re: [PATCH 2/4] Documentation: devicetree: Add LED subnode binding for MT6323 PMIC

2017-01-23 Thread Rob Herring
On Mon, Jan 23, 2017 at 11:54:43AM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This patch adds documentation for devicetree bindings > for LED support as the subnode of MT6323 PMIC > > Signed-off-by: Sean Wang > --- > Documentation/devicetree/bindings/mfd/mt6397.txt | 4 >

Re: [PATCH v2 1/3] dt: bindings: add documentation for zx2967 family i2c controller

2017-01-23 Thread Rob Herring
On Mon, Jan 23, 2017 at 01:03:24PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > i2c controller. > > Signed-off-by: Baoyou Xie > --- > .../devicetree/bindings/i2c/i2c-zx2967.txt | 22 > ++ > 1 file changed, 22 insertions(+) >

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

2017-01-23 Thread Tejun Heo
Hello, Mel. On Mon, Jan 23, 2017 at 08:04:12PM +, Mel Gorman wrote: > What is the actual mechanism that does that? It's not something that > schedule_on_each_cpu does and one would expect that the core workqueue > implementation would get this sort of detail correct. Or is this a proposal > on

Re: [PATCH] PCI/MSI: Export all remapped MSIs to sysfs attributes

2017-01-23 Thread Myron Stowe
On Thu, Oct 15, 2015 at 11:23 AM, Bjorn Helgaas wrote: > On Thu, Sep 24, 2015 at 01:31:16AM +0200, Romain Bezut wrote: >> irqbalance uses these attributes to populate its internal database, which is >> then used to bind the irq on the appropriate NUMA node. >> >> On a device accepting multiple MSI

Re: [PATCH v2] net: moxa: constify net_device_ops structures

2017-01-23 Thread David Miller
From: Bhumika Goyal Date: Sat, 21 Jan 2017 12:27:26 +0530 > Declare net_device_ops structure as const as it is only stored in > the netdev_ops field of a net_device structure. This field is of type > const, so net_device_ops structures having same properties can be made > const too. > Done using

Re: [PATCH v3 1/2] devicetree: document new marvell-8xxx and pwrseq-sd8787 options

2017-01-23 Thread Matt Ranostay
On Mon, Jan 23, 2017 at 9:04 AM, Rob Herring wrote: > On Fri, Jan 20, 2017 at 09:50:38PM -0800, Matt Ranostay wrote: >> Cc: devicet...@vger.kernel.org >> Signed-off-by: Matt Ranostay >> --- >> .../devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 14 >> ++ >> .../devicetree/b

Re: [PATCH v2] net: xilinx: constify net_device_ops structure

2017-01-23 Thread David Miller
From: Bhumika Goyal Date: Sat, 21 Jan 2017 12:28:58 +0530 > Declare net_device_ops structure as const as it is only stored in > the netdev_ops field of a net_device structure. This field is of type > const, so net_device_ops structures having same properties can be made > const too. > Done using

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Yu-cheng Yu
On Mon, Jan 23, 2017 at 09:23:06AM -0800, Dave Hansen wrote: > On 01/23/2017 08:55 AM, Yu-cheng Yu wrote: > >> The best fix here would be not to paper over the issue in the copy > >> function but find where it got clobbered, or where some initialization > >> code failed to set it. > > > > Someone

Re: [PATCH 0/8] staging: lustre: lnet: change wire protocol typedefs to proper structure

2017-01-23 Thread Joe Perches
On Sat, 2017-01-21 at 19:40 -0500, James Simmons wrote: > The upstream kernel requires proper structures so > convert nearly all the LNet wire protocols typedefs in > the LNet core. Thanks. Perhaps s/\bWIRE_ATTR\b/__packed/g one day too

Re: [PATCH v12 01/12] dt-bindings: display: mediatek: update supported chips

2017-01-23 Thread Rob Herring
On Mon, Jan 23, 2017 at 07:05:14PM +0800, YT Shen wrote: > Add decriptions about supported chips, including MT2701 & MT8173 > > Signed-off-by: YT Shen > Acked-by: Rob Herring > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 ++ > Documentation/devicetree/bindings

Re: [PATCH 2/2] scsi: storvsc: Add support for FC lightweight host.

2017-01-23 Thread Cathy Avery
Hi, There is no way to issue a lip directly as the current client for this feature ( storvsc ) does not handle that request as a physical fc hba can. Storvsc only has two fc attributes exposed - port_name and node_name. You can rescan the bus with the standard echo "- - -" > /sys/class/scs

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Dave Hansen
On 01/23/2017 12:57 PM, Yu-cheng Yu wrote: > On Mon, Jan 23, 2017 at 09:23:06AM -0800, Dave Hansen wrote: >> On 01/23/2017 08:55 AM, Yu-cheng Yu wrote: The best fix here would be not to paper over the issue in the copy function but find where it got clobbered, or where some initialization

Re: [PATCH 13/20] arc: migrate exception table users off module.h and onto extable.h

2017-01-23 Thread Vineet Gupta
On 01/22/2017 08:32 AM, Paul Gortmaker wrote: > This file was only including module.h for exception table related > functions. We've now separated that content out into its own file > "extable.h" so now move over to that and avoid all the extra header > content in module.h that we don't really nee

[PATCH] [media] exynos4-is: Add missing 'of_node_put'

2017-01-23 Thread Christophe JAILLET
It is likely that a "of_node_put(ep)" is missing here. There is one in the previous error handling code, and one a few lines below in the normal case as well. Signed-off-by: Christophe JAILLET --- drivers/media/platform/exynos4-is/media-dev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [RFC PATCH v2 0/2] block: fix backing_dev_info lifetime

2017-01-23 Thread Thiago Jung Bauermann
Hello Dan, Am Freitag, 6. Januar 2017, 17:02:51 BRST schrieb Dan Williams: > v1 of these changes [1] was a one line change to bdev_get_queue() to > prevent a shutdown crash when del_gendisk() races the final > __blkdev_put(). > > While it is known at del_gendisk() time that the queue is still ali

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Yu-cheng Yu
On Mon, Jan 23, 2017 at 01:10:20PM -0800, Dave Hansen wrote: > The code is: > > > void fpstate_init(union fpregs_state *state) > > { > > if (!static_cpu_has(X86_FEATURE_FPU)) { > > fpstate_init_soft(&state->soft); > > return; > > } > > > > m

Re: [PATCH 5/8] efi: Get the secure boot status [ver #6]

2017-01-23 Thread Matt Fleming
On Mon, 16 Jan, at 03:39:18PM, David Howells wrote: > Matt Fleming wrote: > > > On Wed, 11 Jan, at 03:27:23PM, David Howells wrote: > > > Matt Fleming wrote: > > > > > > > > + movb$0, BP_secure_boot(%rsi) > > > > > #ifdef CONFIG_EFI_STUB > > > > > /* > > > > >* The entry

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Dave Hansen
On 01/23/2017 01:16 PM, Yu-cheng Yu wrote: > On Mon, Jan 23, 2017 at 01:10:20PM -0800, Dave Hansen wrote: >> The code is: >> >>> void fpstate_init(union fpregs_state *state) >>> { >>> if (!static_cpu_has(X86_FEATURE_FPU)) { >>> fpstate_init_soft(&state->soft); >>>

Re: [PATCH] SRCU: More efficient reader counts.

2017-01-23 Thread Lance Roy
On Mon, 23 Jan 2017 12:35:08 -0800 "Paul E. McKenney" wrote: > On Mon, Jan 23, 2017 at 12:17:25PM -0800, Lance Roy wrote: > > SRCU uses two per-cpu counters: a nesting counter to count the number of > > active critical sections, and a sequence counter to ensure that the nesting > > counters don't

Re: [PATCH 1/1] drm/amd/powerplay: fix misspelling in header guard

2017-01-23 Thread Alex Deucher
On Sun, Jan 22, 2017 at 8:47 AM, Nicolas Iooss wrote: > In smu7_clockpowergating.h, the #ifndef statement which prevents > multiple inclusions of the header file uses _SMU7_CLOCK_POWER_GATING_H_ > but the following #define statement uses _SMU7_CLOCK__POWER_GATING_H_. > > Signed-off-by: Nicolas Ioo

[PATCH] srcu: Implement more-efficient reader counts

2017-01-23 Thread Lance Roy
SRCU uses two per-cpu counters: a nesting counter to count the number of active critical sections, and a sequence counter to ensure that the nesting counters don't change while they are being added together in srcu_readers_active_idx_check(). This patch instead uses per-cpu lock and unlock counter

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-23 Thread Jarkko Sakkinen
On Mon, Jan 23, 2017 at 06:58:23PM +0200, Jarkko Sakkinen wrote: > On Mon, Jan 23, 2017 at 04:09:42PM +0200, Jarkko Sakkinen wrote: > > On Sun, Jan 22, 2017 at 01:36:28PM -0800, James Bottomley wrote: > > > On Sun, 2017-01-22 at 23:04 +0200, Jarkko Sakkinen wrote: > > > > On Sun, Jan 22, 2017 at 11

Re: [tpmdd-devel] [PATCH RFC v4 1/5] tpm: validate TPM 2.0 commands

2017-01-23 Thread Jarkko Sakkinen
On Sun, Jan 22, 2017 at 09:02:17PM -0500, Stefan Berger wrote: > On 01/22/2017 06:44 PM, Jarkko Sakkinen wrote: > > @@ -1025,8 +1029,60 @@ int tpm2_auto_startup(struct tpm_chip *chip) > > } > > } > > > > + rc = tpm2_get_tpm_pt(chip, TPM_PT_TOTAL_COMMANDS, &nr_commands, NULL); > >

Re: [PATCH 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-01-23 Thread Alban Crequy
On 14 January 2017 at 15:15, Kirill Tkhai wrote: > For correct checkpointing/restoring of a task from userspace > it's need to know the task's pid_ns_for_children. Currently, > there is no a sane way to do that (the only possible trick > is to force the task create a new child and to analize the >

Re: [PATCH v8 0/5] Add platform clock for BayTrail platforms

2017-01-23 Thread Andy Shevchenko
On Mon, 2017-01-23 at 12:07 -0600, Pierre-Louis Bossart wrote: > These patches specifically enable the audio MCLK required by Baytrail > CR devices. It is the remaining part of a bigger set of patches > (already merged in Mark Brown's tree) that enable sound for Baytrail > CR > devices (especially

Re: [PATCH] PCI/MSI: Export all remapped MSIs to sysfs attributes

2017-01-23 Thread Neil Horman
On Mon, Jan 23, 2017 at 01:57:28PM -0700, Myron Stowe wrote: > On Thu, Oct 15, 2015 at 11:23 AM, Bjorn Helgaas wrote: > > On Thu, Sep 24, 2015 at 01:31:16AM +0200, Romain Bezut wrote: > >> irqbalance uses these attributes to populate its internal database, which > >> is > >> then used to bind the

Re: [PULL] vhost: cleanups and fixes

2017-01-23 Thread Linus Torvalds
On Mon, Jan 23, 2017 at 7:05 AM, Michael S. Tsirkin wrote: > > virtio, vhost: fixes, cleanups Was there a reason why you sent this twice? Or was this *supposed* to be the ARM DMA fix pull request? Because it wasn't. Linus

[PATCH] fpga: fpga-manager: make __fpga_mgr_get() static

2017-01-23 Thread Joshua Clayton
Running sparse on this subdirectory suggested __fpga_mgr_get() should be static. __fpga_mgr_get() is internal to the fpga-mgr framework. Define it as static Signed-off-by: Joshua Clayton --- drivers/fpga/fpga-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/

[PATCH] ARM: vf610m4: defconfig: enable EXT4 filesystem

2017-01-23 Thread afzal mohammed
Enable EXT4_FS to have rootfs in EXT[2-4]. Other changes are result of savedefconfig keeping minimal config (even without enabling EXT4_FS, these would be present). Signed-off-by: afzal mohammed --- Hi Shawn, i am not sure about the route for this patch, sending it you as the Vybrid maintainer

Re: [PATCH 5/8] efi: Get the secure boot status [ver #6]

2017-01-23 Thread David Howells
Matt Fleming wrote: > > (4) extract_kernel() calls sanitize_boot_params() which would otherwise > > clear > > the secure-boot flag. > > The ->sentinel flag should be clear (because you zero'd boot_params on > alloc), so the code inside of sanitize_boot_params() should never > trigger for

Re: [PATCH linux v3 2/6] hwmon: occ: Add sysfs interface

2017-01-23 Thread Guenter Roeck
On Mon, Jan 23, 2017 at 04:01:25PM -0600, Edward James wrote: > > > On Sat, Jan 21, 2017 at 12:08 PM, Guenter Roeck wrote: > > On 01/16/2017 01:13 PM, eajames@gmail.com wrote: > >> > >> From: "Edward A. James" > >> > >> Add a generic mechanism to expose the sensors provided by the OCC in >

Re: [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-23 Thread Andrey Pronin
On Mon, Jan 23, 2017 at 01:39:01PM -0700, Jason Gunthorpe wrote: > On Mon, Jan 23, 2017 at 12:02:46PM -0800, Andrey Pronin wrote: > > > > But if there is no actual need to do this right now then don't worry > > > about overdesigning things.. > > > > OK, I can live with chip->id specific logic in

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-23 Thread James Bottomley
On Mon, 2017-01-23 at 23:42 +0200, Jarkko Sakkinen wrote: > On Mon, Jan 23, 2017 at 06:58:23PM +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 23, 2017 at 04:09:42PM +0200, Jarkko Sakkinen wrote: > > > On Sun, Jan 22, 2017 at 01:36:28PM -0800, James Bottomley wrote: > > > > On Sun, 2017-01-22 at 23:0

Claims Requirements

2017-01-23 Thread Daniel Ellmerer
The British National Lottery P O Box 1010 3b Olympic Way, Sefton Business Park, Aintree, Liverpool , L30 1RD (Customer Services) Ref: UK/9420X2/68 Batch: 074/05/ZY369 Ticket number:56475600545 188 Lucky Numbers: 05,06,17,20,28,42(Bonus33) WINNING NOTIFICATION: We wish to congratulate and inf

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread Jan Engelhardt
On Monday 2017-01-23 18:26, Borislav Petkov wrote: >On Mon, Jan 23, 2017 at 09:21:03AM -0800, Christoph Hellwig wrote: >> Or keep the exported version as-is and never changed it, and use >> a different copy for the kernel itself. > >I guess we'll have to do that if something in userspace has put i

v4.9 to v4.10 regression: oops when USB cable is plugged in.

2017-01-23 Thread Pavel Machek
Hi! v4.9 was ok (this is annoying enought that I'd notice). v4.10-rc5 is not. (And yes, I probably [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 4.10.0-rc5-142127-g41f2839-dirty (pavel@amd) (gcc version 4.7.2 (GCC) ) #222 Mon Jan 23 15:13:11 CET 2017 [0.

Re: [tpmdd-devel] [PATCH RFC v4 4/5] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-01-23 Thread James Bottomley
On Mon, 2017-01-23 at 09:47 -0700, Jason Gunthorpe wrote: > On Mon, Jan 23, 2017 at 01:44:32AM +0200, Jarkko Sakkinen wrote: > > From: James Bottomley > > > > Signed-off-by: James Bottomley > > > > I really think we should not use the ugly read/write interface for > any new things. The R/W in

Re: [PATCH v2 tip/core/rcu 02/18] lockdep: Make RCU suspicious-access splats use pr_err

2017-01-23 Thread Josh Triplett
On Mon, Jan 23, 2017 at 11:30:16AM -0800, Paul E. McKenney wrote: > On Sat, Jan 21, 2017 at 12:40:23PM -0800, Josh Triplett wrote: > > On Tue, Jan 17, 2017 at 06:53:41PM -0800, Paul E. McKenney wrote: > > > This commit switches RCU suspicious-access splats use pr_err() > > > instead of the current

RE: [char-misc-next] mei: simplify error handling via devres function.

2017-01-23 Thread Winkler, Tomas
> > On Sat, 2017-01-21 at 10:12 +, Winkler, Tomas wrote: > > > > > > > > -struct mei_device *mei_txe_dev_init(struct pci_dev *pdev) > > > > +struct mei_device *devm_mei_txe_init(struct pci_dev *pdev) > > > > > > Ditto. > > > > > > >  end: > > > > +   pci_set_drvdata(pdev, NULL); > > > > >

Re: [PATCH] mm: fix maybe-uninitialized warning in section_deactivate()

2017-01-23 Thread Andrew Morton
On Mon, 23 Jan 2017 17:51:17 +0100 Arnd Bergmann wrote: > gcc cannot track the combined state of the 'mask' variable across the > barrier in pgdat_resize_unlock() at compile time, so it warns that we > can run into undefined behavior: > > mm/sparse.c: In function 'section_deactivate': > mm/spars

Re: [GIT PULL] tpmdd updates for Linux 4.11

2017-01-23 Thread James Morris
gt; > seccomp: dump core when using SECCOMP_RET_KILL (2017-01-23 21:42:42 +1100) > > are available in the git repository at: > > git://git.infradead.org/users/jjs/linux-tpmdd.git tags/tpmdd-next-20170123 > Pulled, thanks! -- James Morris

Re: [char-misc-next] mei: simplify error handling via devres function.

2017-01-23 Thread Andy Shevchenko
On Tue, Jan 24, 2017 at 12:33 AM, Winkler, Tomas wrote: >> On Sat, 2017-01-21 at 10:12 +, Winkler, Tomas wrote: >> > > > - free_irq(pdev->irq, dev); >> > > > + devm_free_irq(&pdev->dev, pdev->irq, dev); >> > > > pci_disable_msi(pdev); >> > > >> > > All three not needed >>

Re: v4.9 to v4.10 regression: oops when USB cable is plugged in.

2017-01-23 Thread Tony Lindgren
* Pavel Machek [170123 14:26]: > [25392.239837] Unhandled fault: external abort on non-linefetch (0x1028) at > 0xfa0ab060 > [25392.239868] pgd = c0004000 > [25392.239898] [fa0ab060] *pgd=48011452(bad) > [25392.239929] Internal error: : 1028 [#1] ARM > [25392.239929] Modules linked in: > [25392.23

Re: [PATCH 1/2] device property: export code duplicating array of property entries

2017-01-23 Thread Dmitry Torokhov
On Mon, Jan 23, 2017 at 05:00:38PM +0200, Andy Shevchenko wrote: > On Sun, 2017-01-22 at 23:38 -0800, Dmitry Torokhov wrote: > > When augmenting ACPI-enumerated devices with additional property data > > based > > on DMI info, a module has often several potential property sets, with > > only > > one

Re: [PATCH 2/4] perf probe: Delete an unnecessary assignment in try_to_find_absolute_address()

2017-01-23 Thread Masami Hiramatsu
On Mon, 23 Jan 2017 16:24:06 +0100 SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 23 Jan 2017 15:10:19 +0100 > > Remove an error code assignment which is redundant in an if branch for > the handling of a memory allocation failure because the same value was set > for the local vari

Re: [PATCH 1/4] perf probe: Delete an unnecessary check in try_to_find_absolute_address()

2017-01-23 Thread Masami Hiramatsu
On Mon, 23 Jan 2017 16:22:22 +0100 SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 23 Jan 2017 14:54:26 +0100 > > Remove a condition check which is unnecessary at the end > because this source code place should usually only be reached > with a non-zero pointer. Looks good to me :)

Re: [tpmdd-devel] [PATCH RFC v4 4/5] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-01-23 Thread Jason Gunthorpe
On Mon, Jan 23, 2017 at 02:28:23PM -0800, James Bottomley wrote: > On Mon, 2017-01-23 at 09:47 -0700, Jason Gunthorpe wrote: > > On Mon, Jan 23, 2017 at 01:44:32AM +0200, Jarkko Sakkinen wrote: > > > From: James Bottomley > > > > > > Signed-off-by: James Bottomley > > > > > > > I really think w

Re: x86: WARNING: kernel stack frame pointer in kworker has bad value

2017-01-23 Thread Josh Poimboeuf
On Mon, Jan 23, 2017 at 07:43:18PM +0100, Dmitry Vyukov wrote: > Hello, > > I am getting the following warnings while running syzkaller fuzzer on > 7a308bb3016f57e5be11a677d15b821536419d36: > > WARNING: kernel stack frame pointer at 880065f7fef8 in > kworker/1:3:21075 has bad value 81

[PATCH v8 1/3] doc: dt: add cyclone-ps-spi binding document

2017-01-23 Thread Joshua Clayton
Describe a cyclone-ps-spi devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring --- .../bindings/fpga/altera-passive-serial.txt| 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/alte

[PATCH v8 3/3] ARM: dts: imx6q-evi: support cyclone-ps-spi

2017-01-23 Thread Joshua Clayton
Add support for Altera cyclone V FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts inde

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-23 Thread Borislav Petkov
On Mon, Jan 23, 2017 at 11:24:02PM +0100, Jan Engelhardt wrote: > So if some userspace component depends on that particular msr header > (which, unlike ipt_SAME, was not intended for export), is it not > reasonable to expect them to make a copy if and when they need it? Yeah, either copy the whole

[PATCH v8 2/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs

2017-01-23 Thread Joshua Clayton
cyclone-ps-spi loads FPGA firmware over spi, using the "passive serial" interface on Altera Cyclone FPGAS. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional spi with lsb first. Signed-off-by: Joshua Clayton --- drivers/fpga/Kconfig

[PATCH v8 0/3] Altera Cyclone Passive Serial SPI FPGA Manager

2017-01-23 Thread Joshua Clayton
This series adds an FPGA manager for Altera cyclone FPGAs that can program them using an spi port and a couple of gpios, using Alteras passive serial protocol. Changes from v7: Add Rob Herrings Ack on the bindings change (Thanks!) Change const u8* to const char * to make sparse happy Changes from

Re: [PATCH] mm: ensure alloc_flags in slow path are initialized

2017-01-23 Thread David Rientjes
On Mon, 23 Jan 2017, Arnd Bergmann wrote: > The __alloc_pages_slowpath() has gotten rather complex and gcc > is no longer able to follow the gotos and prove that the > alloc_flags variable is initialized at the time it is used: > > mm/page_alloc.c: In function '__alloc_pages_slowpath': > mm/page_

[PATCH v2 02/10] slub: separate out sysfs_slab_release() from sysfs_slab_remove()

2017-01-23 Thread Tejun Heo
>From 3b0cdd93b2d9bdea62ea6681e612bdae7a40d883 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 23 Jan 2017 17:53:18 -0500 Separate out slub sysfs removal and release, and call the former earlier from __kmem_cache_shutdown(). There's no reason to defer sysfs removal through RCU and this will

Re: [PATCH 3/4] perf session: Move an error code assignment in __perf_session__set_tracepoints_handlers()

2017-01-23 Thread Masami Hiramatsu
On Mon, 23 Jan 2017 16:25:23 +0100 SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 23 Jan 2017 15:43:13 +0100 > > A local variable was set to an error code before a concrete error situation > was detected. Thus move the corresponding assignment into an if branch > to indicate a sof

Re: [tpmdd-devel] [PATCH RFC v4 4/5] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-01-23 Thread James Bottomley
On Mon, 2017-01-23 at 15:49 -0700, Jason Gunthorpe wrote: > On Mon, Jan 23, 2017 at 02:28:23PM -0800, James Bottomley wrote: > > On Mon, 2017-01-23 at 09:47 -0700, Jason Gunthorpe wrote: > > > On Mon, Jan 23, 2017 at 01:44:32AM +0200, Jarkko Sakkinen wrote: > > > > From: James Bottomley > > > > >

Re: [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-23 Thread Jason Gunthorpe
On Mon, Jan 23, 2017 at 02:19:29PM -0800, Andrey Pronin wrote: > Simplifying to class vs driver handlers, it checks class suspend > first. And if it exists, calls it. Otherwise, it calls driver > suspend. So, it's "either-or", not "first one, then another". > Unless I'm missing something obvious,

[PATCH] x86/fpu/xstate: Fix xcomp_bv in XSAVES header

2017-01-23 Thread Yu-cheng Yu
The compacted-format XSAVES area is determined at boot time and never changed after. The field xsave.header.xcomp_bv indicates which components are in the fixed XSAVES format. In fpstate_init() we did not set xcomp_bv to reflect the XSAVES format since at the time there is no valid data. However

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

2017-01-23 Thread Mel Gorman
On Mon, Jan 23, 2017 at 03:55:01PM -0500, Tejun Heo wrote: > Hello, Mel. > > On Mon, Jan 23, 2017 at 08:04:12PM +, Mel Gorman wrote: > > What is the actual mechanism that does that? It's not something that > > schedule_on_each_cpu does and one would expect that the core workqueue > > implement

Re: [tpmdd-devel] [PATCH RFC v4 4/5] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-01-23 Thread Jason Gunthorpe
On Mon, Jan 23, 2017 at 02:57:11PM -0800, James Bottomley wrote: > On Mon, 2017-01-23 at 15:49 -0700, Jason Gunthorpe wrote: > > On Mon, Jan 23, 2017 at 02:28:23PM -0800, James Bottomley wrote: > > > On Mon, 2017-01-23 at 09:47 -0700, Jason Gunthorpe wrote: > > > > On Mon, Jan 23, 2017 at 01:44:32A

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-23 Thread Steve Longerbeam
On 01/23/2017 03:00 AM, Philipp Zabel wrote: On Fri, 2017-01-20 at 21:39 +0100, Hans Verkuil wrote: [...] There is a VDIC entity in the i.MX IPU that performs de-interlacing with hardware filters for motion compensation. Some of the motion compensation modes ("low" and "medium" motion) require

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-23 Thread Marcelo Tosatti
On Mon, Jan 23, 2017 at 07:44:15PM +0100, Richard Cochran wrote: > On Mon, Jan 23, 2017 at 11:19:17AM -0200, Marcelo Tosatti wrote: > > This is needed to generate the PTP_SYS_OFFSET data: a table with read > > from realtime clock, read from device clock, read from realtime clock, > > ... : > > > >

Re: [PATCH 2/3] ath10k: use dma_zalloc_coherent()

2017-01-23 Thread Joe Perches
On Mon, 2017-01-23 at 15:04 +, Srinivas Kandagatla wrote: > use dma_zalloc_coherent() instead of dma_alloc_coherent and memset(). [] > diff --git a/drivers/net/wireless/ath/ath10k/pci.c > b/drivers/net/wireless/ath/ath10k/pci.c [] > @@ -896,7 +896,7 @@ static int ath10k_pci_diag_read_mem(struc

  1   2   3   4   5   6   7   8   9   >