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

2017-01-22 Thread Jarkko Sakkinen
On Sat, Jan 21, 2017 at 11:28:55AM -0800, James Bottomley wrote: > On Fri, 2017-01-20 at 23:05 +0200, Jarkko Sakkinen wrote: > > On Fri, Jan 20, 2017 at 03:39:14PM +0200, Jarkko Sakkinen wrote: > > > On Thu, Jan 19, 2017 at 07:19:40AM -0500, James Bottomley wrote: > > > > On Thu, 2017-01-19 at 12:4

[PATCH v2 02/14] Documentation: dt/bindings: Document pinctrl-gpio

2017-01-22 Thread Paul Cercueil
This commit adds documentation for the devicetree bidings of the pinctrl-gpio driver, which handles GPIOs of the Ingenic SoCs currently supported by the Linux kernel. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/gpio/ingenic,gpio.txt | 45 ++ 1 file changed,

[PATCH v2 03/14] pinctrl-ingenic: add a pinctrl driver for the Ingenic jz47xx SoCs

2017-01-22 Thread Paul Cercueil
This driver handles pin configuration and pin muxing for the JZ4740 and JZ4780 SoCs from Ingenic. Signed-off-by: Paul Cercueil --- drivers/pinctrl/Kconfig | 8 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-ingenic.c | 488 ++

[PATCH v2 08/14] MIPS: JZ4740: Qi LB60: Add pinctrl configuration for several drivers

2017-01-22 Thread Paul Cercueil
We set the pin configuration for the jz4740-nand, jz4740-mmc, jz4740-fb, jz4740-pwm and jz4740-uart drivers. This will permit those drivers to be cleaned out of the custom GPIO code that they currently use. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/qi_lb60.dts | 13 +++

[PATCH v2 06/14] MIPS: jz4740: DTS: Add nodes for ingenic pinctrl and gpio drivers

2017-01-22 Thread Paul Cercueil
For a description of the pinctrl devicetree node, please read Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.txt For a description of the gpio devicetree nodes, please read Documentation/devicetree/bindings/gpio/ingenic,gpio.txt Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ing

[PATCH v2 11/14] mtd: nand: jz4740: Let the pinctrl driver configure the pins

2017-01-22 Thread Paul Cercueil
Before, this NAND driver would set itself the configuration of the chip-select pins for the various NAND banks. Now that the JZ4740 and similar SoCs have a pinctrl driver, we rely on the pins being properly configured before the driver probes. Signed-off-by: Paul Cercueil --- drivers/mtd/nand/j

[PATCH v2 07/14] MIPS: jz4780: DTS: Add nodes for ingenic pinctrl and gpio drivers

2017-01-22 Thread Paul Cercueil
For a description of the devicetree node, please read Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.txt For a description of the gpio devicetree nodes, please read Documentation/devicetree/bindings/gpio/ingenic,gpio.txt Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4

[PATCH v2 13/14] pwm: jz4740: Let the pinctrl driver configure the pins

2017-01-22 Thread Paul Cercueil
Now that the JZ4740 and similar SoCs have a pinctrl driver, we rely on the pins being properly configured before the driver probes. One inherent problem of this new approach is that the pinctrl framework does not allow us to configure each pin on demand, when the various PWM channels are requested

[PATCH v2 09/14] MIPS: JZ4780: CI20: Add pinctrl configuration for several drivers

2017-01-22 Thread Paul Cercueil
We set the pin configuration for the jz4780-nand and jz4780-uart drivers. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/ci20.dts | 60 + 1 file changed, 60 insertions(+) v2: Changed the devicetree bindings to match the new driver diff --git a/a

[PATCH v2 05/14] MIPS: ingenic: Enable pinctrl for all ingenic SoCs

2017-01-22 Thread Paul Cercueil
There is a pinctrl driver for each of the Ingenic SoCs supported by the upstream Linux kernel. In order to switch away from the old GPIO platform code, we now enable the pinctrl drivers by default for the Ingenic SoCs. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 + 1 file changed, 1 i

[PATCH v2 14/14] MIPS: jz4740: Remove custom GPIO code

2017-01-22 Thread Paul Cercueil
All the drivers for the various hardware elements of the jz4740 SoC have been modified to use the pinctrl framework for their pin configuration needs. As such, this platform code is now unused and can be deleted. Signed-off-by: Paul Cercueil --- arch/mips/include/asm/mach-jz4740/gpio.h | 371 ---

[PATCH 4/5] ARM: tegra: nyan-big: Proper pinmux for TPM i2c

2017-01-22 Thread Paul Kocialkowski
This corrects the pinmux for accessing the TPM over the i2c line. Thus, it allows correctly probing the module, that previously failed with i2c errors. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-nyan-big.dts | 20 ++-- 1 file changed, 10 insertions(+), 10 del

[PATCH v2 04/14] GPIO: Add gpio-ingenic driver

2017-01-22 Thread Paul Cercueil
This driver handles the GPIOs of all the Ingenic JZ47xx SoCs currently supported by the upsteam Linux kernel. Signed-off-by: Paul Cercueil --- drivers/gpio/Kconfig| 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-ingenic.c | 367

[PATCH 2/5] ARM: tegra: nyan: Use external control for bq24735 charger

2017-01-22 Thread Paul Kocialkowski
Nyan boards come with an embedded controller that controls when to enable and disable the charge. Thus, it should not be left up to the kernel to handle that. Using the ti,external-control property allows specifying this use-case. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-

[PATCH v2 12/14] fbdev: jz4740-fb: Let the pinctrl driver configure the pins

2017-01-22 Thread Paul Cercueil
Now that the JZ4740 and similar SoCs have a pinctrl driver, we rely on the pins being properly configured before the driver probes. Signed-off-by: Paul Cercueil --- drivers/video/fbdev/jz4740_fb.c | 104 ++-- 1 file changed, 3 insertions(+), 101 deletions(-)

[PATCH 1/5] ARM: tegra: nyan: Use proper IRQ type definitions

2017-01-22 Thread Paul Kocialkowski
This switches a few interrupt definitions that were using GPIO_ACTIVE_HIGH as IRQ type, which is invalid. This is mostly a cosmetic change, that doesn't affect any driver. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-nyan.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH 5/5] ARM: tegra: nyan-blaze: Proper pinmux for TPM i2c

2017-01-22 Thread Paul Kocialkowski
From: Jerome Coste This corrects the pinmux for accessing the TPM over the i2c line. Thus, it allows correctly probing the module, that previously failed with i2c errors. --- arch/arm/boot/dts/tegra124-nyan-blaze.dts | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) d

[PATCH 3/5] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2017-01-22 Thread Paul Kocialkowski
Depthcharge (the payload used with cros devices) will attempt to detect boards using their revision. This includes all the known revisions for the nyan-big board so that the dtb can be selected preferably. Defining compatibly revisions allows depthcharge to select the kernel via the revision it de

[PATCH v2 00/14] Ingenic JZ4740 / JZ4780 pinctrl driver

2017-01-22 Thread Paul Cercueil
Hi, This is the v2 of my ingenic pinctrl patch series. Huge changes in there, the pinctrl driver was completely rewritten, and the GPIO code was split into a separate driver. It now uses the generic functions to handle pin groups, as well as generic devicetree bindings. Best regards, - Paul

[PATCH v2 10/14] mmc: jz4740: Let the pinctrl driver configure the pins

2017-01-22 Thread Paul Cercueil
Now that the JZ4740 and similar SoCs have a pinctrl driver, we rely on the pins being properly configured before the driver probes. Signed-off-by: Paul Cercueil --- drivers/mmc/host/jz4740_mmc.c | 45 +-- 1 file changed, 5 insertions(+), 40 deletions(-) v

[PATCH v2 01/14] Documentation: dt/bindings: Document pinctrl-ingenic

2017-01-22 Thread Paul Cercueil
This commit adds documentation for the devicetree bidings of the pinctrl-ingenic driver, which handles pin configuration and pin muxing of the Ingenic SoCs currently supported by the Linux kernel. Signed-off-by: Paul Cercueil --- .../bindings/pinctrl/ingenic,pinctrl.txt | 77 ++

Re: [PATCH 1/2] random: use chacha20 for get_random_int/long

2017-01-22 Thread Greg Kroah-Hartman
On Sun, Jan 22, 2017 at 01:21:39PM +0100, Jason A. Donenfeld wrote: > Hey Greg, > > On Sun, Jan 22, 2017 at 12:24 PM, Greg Kroah-Hartman > wrote: > > On Sat, Jan 21, 2017 at 03:08:12PM +0100, Jason A. Donenfeld wrote: > >> Hi Ted, > >> > >> On Sat, Jan 21, 2017 at 7:24 AM, Theodore Ts'o wrote: >

[PATCH 1/2] random: use chacha20 for get_random_int/long

2017-01-22 Thread Jason A. Donenfeld
Now that our crng uses chacha20, we can rely on its speedy characteristics for replacing MD5, while simultaneously achieving a higher security guarantee. Before the idea was to use these functions if you wanted random integers that aren't stupidly insecure but aren't necessarily secure either, a va

[PATCH 2/2] random: convert get_random_int/long into get_random_u32/u64

2017-01-22 Thread Jason A. Donenfeld
Many times, when a user wants a random number, he wants a random number of a guaranteed size. So, thinking of get_random_int and get_random_long in terms of get_random_u32 and get_random_u64 makes it much easier to achieve this. It also makes the code simpler. On 32-bit platforms, get_random_int a

RE: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Matthew Wilcox
From: Christoph Hellwig [mailto:h...@lst.de] > On Sat, Jan 21, 2017 at 04:28:52PM +, Matthew Wilcox wrote: > > Of course, there may not be a backing device either! > > s/backing device/block device/ ? If so fully agreed. I like the dax_ops > scheme, but we should go all the way and detangle

[PATCH v2 1/6] ARM: tegra: nyan: Use proper IRQ type definitions

2017-01-22 Thread Paul Kocialkowski
This switches a few interrupt definitions that were using GPIO_ACTIVE_HIGH as IRQ type, which is invalid. This is mostly a cosmetic change, that doesn't affect any driver. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-nyan.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v2 2/6] ARM: tegra: nyan: Use external control for bq24735 charger

2017-01-22 Thread Paul Kocialkowski
Nyan boards come with an embedded controller that controls when to enable and disable the charge. Thus, it should not be left up to the kernel to handle that. Using the ti,external-control property allows specifying this use-case. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-

[PATCH v2 3/6] ARM: tegra: nyan-big: Include compatible revisions for proper detection

2017-01-22 Thread Paul Kocialkowski
Depthcharge (the payload used with cros devices) will attempt to detect boards using their revision. This includes all the known revisions for the nyan-big board so that the dtb can be selected preferably. Defining compatibly revisions allows depthcharge to select the kernel via the revision it de

[PATCH v2 5/6] ARM: tegra: nyan-big: Proper pinmux for TPM i2c

2017-01-22 Thread Paul Kocialkowski
This corrects the pinmux for accessing the TPM over the i2c line. Thus, it allows correctly probing the module, that previously failed with i2c errors. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-nyan-big.dts | 20 ++-- 1 file changed, 10 insertions(+), 10 del

[PATCH v2 4/6] ARM: tegra: nyan-blaze: Include compatible revisions for proper detection

2017-01-22 Thread Paul Kocialkowski
Depthcharge (the payload used with cros devices) will attempt to detect boards using their revision. This includes all the known revisions for the nyan-blaze board so that the dtb can be selected preferably. Defining compatibly revisions allows depthcharge to select the kernel via the revision it

[PATCH v2 6/6] ARM: tegra: nyan-blaze: Proper pinmux for TPM i2c

2017-01-22 Thread Paul Kocialkowski
From: Jerome Coste This corrects the pinmux for accessing the TPM over the i2c line. Thus, it allows correctly probing the module, that previously failed with i2c errors. --- arch/arm/boot/dts/tegra124-nyan-blaze.dts | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) d

Re: [PATCH 1/1] EDAC: always return an initialized value in knl_show_interleave_mode

2017-01-22 Thread Nicolas Iooss
On 22/01/17 15:41, Borislav Petkov wrote: > On Sun, Jan 22, 2017 at 02:51:15PM +0100, Nicolas Iooss wrote: >> When building drivers/edac/sb_edac.c with compiler warning flags which >> aim to detect the use of uninitialized values at compile time, the >> compiler reports that knl_show_interleave_mod

Re: [PATCH v2] iio: trigger: free trigger resource correctly

2017-01-22 Thread Lars-Peter Clausen
On 01/22/2017 03:25 PM, Jonathan Cameron wrote: > On 20/01/17 03:47, Alison Schofield wrote: >> These stand-alone trigger drivers were using iio_trigger_put() >> where they should have been using iio_trigger_free(). The >> iio_trigger_put() adds a module_put which is bad since they >> never did a

Re: [PATCH 1/1] EDAC: always return an initialized value in knl_show_interleave_mode

2017-01-22 Thread Borislav Petkov
On Sun, Jan 22, 2017 at 04:50:31PM +0100, Nicolas Iooss wrote: > if (!is_knl) > return interleave_mode(reg) ? > "[8:6]" : "[8:6]XOR[18:16]"; > else > return knl_intlv_mode[knl_interleave_mode(reg)]; > > Would this be good for you? Ah,

Re: [PATCH v2] iio: trigger: free trigger resource correctly

2017-01-22 Thread Jonathan Cameron
On 22/01/17 15:56, Lars-Peter Clausen wrote: > On 01/22/2017 03:25 PM, Jonathan Cameron wrote: >> On 20/01/17 03:47, Alison Schofield wrote: >>> These stand-alone trigger drivers were using iio_trigger_put() >>> where they should have been using iio_trigger_free(). The >>> iio_trigger_put() adds a

Re: [PATCH v2 04/14] GPIO: Add gpio-ingenic driver

2017-01-22 Thread kbuild test robot
-driver/20170122-232326 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached

[PATCH 01/20] ia64: move ia64_done_with_exception out of asm/uaccess.h

2017-01-22 Thread Paul Gortmaker
Move ia64_done_with_exception out of asm/uaccess.h (which is widely used) and into asm/exception.h (like ARM has) and then ensure the few callers of it include this new header. Most of the other C content in asm files is implemented in macro form. So we do that conversion at the same time as the m

[PATCH 03/20] m32r: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 need to compile these files. Cc: Sudip Mukherjee Ack

[PATCH 02/20] ia64: ensure exception table search users include extable.h

2017-01-22 Thread Paul Gortmaker
We start with a delete of a duplicate prototype in asm/exception.h that no longer needs to exist, as it duplicates content in extable.h and since that header is so small, there is no point trying to avoid using it. Then we make sure anyone using search_exception_tables directly or via the ia64_don

[PATCH 06/20] mn10300: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 need to compile these files. Cc: David Howells Cc: l

[PATCH 05/20] alpha: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 need to compile these files. Cc: Richard Henderson C

[PATCH 18/20] hexagon: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: Richard Kuo Cc: linux-he

[PATCH 16/20] unicore32: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: Guan Xuetao Signed-off-b

[PATCH 14/20] metag: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: James Hogan Signed-off-b

[PATCH 08/20] sh: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 need to compile these files. One uses "print_modules"

[PATCH 12/20] nios2: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Reported-by: kbuild test robo

[PATCH 17/20] microblaze: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: Michal Simek Signed-off-

[PATCH 19/20] core: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 where possible, avoid all the extra header content in module.h that we don't really need to compile these non-modular files. N

[PATCH v3 00/20] Finalize separation of extable.h from module.h

2017-01-22 Thread Paul Gortmaker
If you already read the v2 00/NN, then you can skip this v3; the only change is to add new arch specific patches that extended build coverage and more intelligent regex patterns lead to. Updated copy of the original v2 00/NN text follows: Some of the arch specific changes have already been picked

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

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Since the file does have some

[PATCH 10/20] openrisc: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile these files. Reported-by: kbuild test ro

[PATCH 20/20] module.h: remove extable.h include now users have migrated

2017-01-22 Thread Paul Gortmaker
With hopefully most/all users of module.h that were looking for exception table functions moved over to the new extable.h header, we can remove the back-compat include that let us transition without introducing build regressions. Cc: Rusty Russell Cc: Andrew Morton Cc: Linus Torvalds Signed-off

[PATCH 04/20] arm: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
These files were 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 need to compile these files. Cc: Russell King Cc: li

[PATCH 15/20] score: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: Chen Liqin Cc: Lennox Wu

[PATCH 11/20] sparc: migrate exception table users onto extable.h

2017-01-22 Thread Paul Gortmaker
This file was using module.h for search_exception_table. We've now separated that content out into its own file "extable.h" so now move over to that. Unlike most other instances, we can't delete the module.h include here since the file needs that for the within_module_init definition. Reported-b

[PATCH 09/20] frv: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Reported-by: kbuild test robo

[PATCH 07/20] xtensa: migrate exception table users off module.h and onto extable.h

2017-01-22 Thread Paul Gortmaker
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 need to compile this file. Cc: Chris Zankel Cc: Max Fil

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Christoph Hellwig
On Sun, Jan 22, 2017 at 03:43:09PM +, Matthew Wilcox wrote: > In the case of a network filesystem being used to communicate with > a different VM on the same physical machine, there is no backing > device, just a network protocol. Again, do you mean block device? For a filesystem that does no

[PATCH -next] ARM: 8641/1: treewide: fix error return code in hip04_smp_init()

2017-01-22 Thread Wei Yongjun
From: Wei Yongjun Fix to return error code -ENODEV from the of_find_compatible_node() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- arch/arm/mach-hisi/platmcpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-hisi/plat

[PATCH v2 1/1] EDAC: kill ->show_interleave_mode()

2017-01-22 Thread Nicolas Iooss
Function sbridge_register_mci() sets pvt->info.show_interleave_mode to knl_show_interleave_mode() on Knight's Landing and show_interleave_mode() anywhere else. These functions are only called in a debug statement and knl_show_interleave_mode() implementation causes a compiler warning (the compiler

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Dan Williams
On Sat, Jan 21, 2017 at 9:52 AM, Christoph Hellwig wrote: > On Sat, Jan 21, 2017 at 04:28:52PM +, Matthew Wilcox wrote: >> Of course, there may not be a backing device either! > > s/backing device/block device/ ? If so fully agreed. I like the dax_ops > scheme, but we should go all the way a

Re: [btrfs/rt] lockdep false positive

2017-01-22 Thread Mike Galbraith
On Sun, 2017-01-22 at 09:46 +0100, Mike Galbraith wrote: > Greetings btrfs/lockdep wizards, > > RT trees have trouble with the BTRFS lockdep positive avoidance lock > class dance (see disk-io.c). Seems the trouble is due to RT not having > a means of telling lockdep that its rwlocks are recursive

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

2017-01-22 Thread James Bottomley
On Fri, 2017-01-20 at 23:05 +0200, Jarkko Sakkinen wrote: > 'tabrm4' branch has been now rebased. It's now on top of master > branch > that contains Stefan's latest patch (min body length check) that I've > reviewed and tested. It also contains your updated /dev/tpms patch. > > I guess the 5 commi

Re: [PATCH v2 04/14] GPIO: Add gpio-ingenic driver

2017-01-22 Thread kbuild test robot
-pinctrl-driver/20170122-232326 coccinelle warnings: (new ones prefixed by >>) >> drivers/gpio/gpio-ingenic.c:101:2-3: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.o

[PATCH] GPIO: fix semicolon.cocci warnings

2017-01-22 Thread kbuild test robot
drivers/gpio/gpio-ingenic.c:101:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Paul Cercueil Signed-off-by: Fengguang Wu --- gpio-ingenic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-ingeni

[PATCH -next] staging: greybus: audio_gb.c: Change uint32_t to u32

2017-01-22 Thread Marcos Paulo de Souza
Change uint32_t to u32, solved the issue reported by checkpatch.pl: CHECK: Prefer kernel type 'u32' over 'uint32_t' + uint32_t *format, uint32_t *rate, u8 *channels, CHECK: Prefer kernel type 'u32' over 'uint32_t' + uint32_t format, uint32_t rate, u8 ch

[PATCH -v2] Input: i8042: Add dbg msg when a command can't write its parameter

2017-01-22 Thread Marcos Paulo de Souza
This can happen in cases like bug #102951[1], so add a proper debug msg as done in wait_read. Also, change wait_read debug message to differ from wait_write. [1] https://bugzilla.kernel.org/show_bug.cgi?id=102951 Signed-off-by: Marcos Paulo de Souza --- Changes from v1: * use dbg instead of pr_

Re: [PATCH v6 0/5] x86: Cleanup and simplify cpu-specific data

2017-01-22 Thread Borislav Petkov
On Sun, Jan 22, 2017 at 05:47:35PM +, Kevin Winchester wrote: > I still think this was a reasonably nice clean up for some of the x86 > code, so if anyone else wants to take it on, I would be glad to see it > eventually be accepted. Yeah, same here. If no one beats me to it, I'd put it on the

[PATCH 0/9] KVM: Fine-tuning for several function implementations

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 19:06:54 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (9): Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl() Move error code settings in kvm_vm_ioctl() Move error

[PATCH 0/9] drm: Add support for tiny LCD displays

2017-01-22 Thread Noralf Trønnes
This is an attempt at providing a DRM version of drivers/staging/fbtft. The tinydrm library provides a very simplified view of DRM in particular for tiny displays that has onboard video memory and is connected through a slow bus like SPI/I2C. Main changes since the RFCv2 in April last year: - No

[PATCH 2/9] drm: debugfs: Remove all files automatically on cleanup

2017-01-22 Thread Noralf Trønnes
Instead of having the drivers call drm_debugfs_remove_files() in their drm_driver->debugfs_cleanup hook, do it automatically by traversing minor->debugfs_list. Also use debugfs_remove_recursive() so drivers who add their own debugfs files don't have to keep track of them for removal. Signed-off-by

[PATCH 3/9] drm/simple-helpers: Add missing includes

2017-01-22 Thread Noralf Trønnes
Add missing includes to pull in definitions for drm_crtc, drm_plane and drm_encoder. Signed-off-by: Noralf Trønnes --- include/drm/drm_simple_kms_helper.h | 4 1 file changed, 4 insertions(+) diff --git a/include/drm/drm_simple_kms_helper.h b/include/drm/drm_simple_kms_helper.h index fe8c

[PATCH 1/9] drm/fb-cma-helper: Add drm_fbdev_cma_set_suspend_unlocked()

2017-01-22 Thread Noralf Trønnes
Add a CMA version of drm_fb_helper_set_suspend_unlocked(). Cc: laurent.pinch...@ideasonboard.com Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_cma_helper.c | 18 ++ include/drm/drm_fb_cma_helper.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu

[PATCH 5/9] drm/tinydrm: Add helper functions

2017-01-22 Thread Noralf Trønnes
Add common functionality needed by many tinydrm drivers. Signed-off-by: Noralf Trønnes --- Documentation/gpu/drm-kms-helpers.rst | 6 + drivers/gpu/drm/tinydrm/core/Makefile | 2 +- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 490 + include/drm/

[PATCH 4/9] drm: Add DRM support for tiny LCD displays

2017-01-22 Thread Noralf Trønnes
tinydrm provides helpers for very simple displays that can use CMA backed framebuffers and need flushing on changes. Signed-off-by: Noralf Trønnes --- Documentation/gpu/drm-kms-helpers.rst | 15 ++ MAINTAINERS | 7 + drivers/gpu/drm/Kconfig

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

2017-01-22 Thread Noralf Trønnes
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 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

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

2017-01-22 Thread Noralf Trønnes
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,mi0283qt.txt | 27 ++ 1 file changed, 27 insertions(+) cr

[PATCH 9/9] drm/tinydrm: Add support for Multi-Inno MI0283QT display

2017-01-22 Thread Noralf Trønnes
Add driver to support the Multi-Inno MI0283QT display panel. It has an ILI9341 MIPI DBI compatible display controller. Signed-off-by: Noralf Trønnes --- MAINTAINERS| 6 + drivers/gpu/drm/tinydrm/Kconfig| 8 ++ drivers/gpu/drm/tinydrm/Makefile | 3 + drivers/gp

[PATCH 1/9] KVM: Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 11:30:21 +0100 * Return directly after a call of the function "copy_from_user" failed in a case block. This issue was detected by using the Coccinelle software. * Delete the jump label "out" which became unnecessary with this refactoring. Signe

[PATCH 2/9] KVM: Move error code settings in kvm_vm_ioctl()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 13:45:18 +0100 * A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a software failure there. This issue was detected by using the Coccine

[PATCH 3/9] KVM: Move error code settings in kvm_vcpu_compat_ioctl()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 13:57:40 +0100 * A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding settings into if branches to indicate a software failure there. This issue was detected by using the Coccinelle

Re: [PATCH -next] ARM: 8641/1: treewide: fix error return code in hip04_smp_init()

2017-01-22 Thread Russell King - ARM Linux
What does this have to do with patch 8641/1 ("ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol") ? Your patch also isn't "treewide" either. Confused. On Sun, Jan 22, 2017 at 04:41:28PM +, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return error code -ENODEV from t

[PATCH 6/9] drm/tinydrm: Add MIPI DBI support

2017-01-22 Thread Noralf Trønnes
Add support for MIPI DBI compatible controllers. Interface type C option 1 and 3 are supported (SPI). Signed-off-by: Noralf Trønnes --- Documentation/gpu/drm-kms-helpers.rst | 12 + drivers/gpu/drm/tinydrm/Kconfig |3 + drivers/gpu/drm/tinydrm/Makefile |3 + drivers/gpu/drm/

[PATCH 5/9] KVM: Improve size determinations in kvm_vcpu_ioctl()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 17:11:16 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Marku

[PATCH 4/9] KVM: Move error code settings in kvm_vcpu_ioctl()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 17:00:19 +0100 * A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a software failure there. This issue was detected by using the Coccine

[PATCH 6/9] KVM: Return an error code only as a constant in kvm_get_dirty_log_protect()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 17:30:16 +0100 * Return an error code without storing it in an intermediate variable. * Delete the local variable "r" and the jump label "out" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- virt/kvm/kvm_main.c |

[PATCH 7/9] KVM: Return an error code only as a constant in kvm_get_dirty_log()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 17:41:07 +0100 * Return an error code without storing it in an intermediate variable. * Delete the local variable "r" and the jump label "out" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- virt/kvm/kvm_main.c |

[PATCH 8/9] KVM: Adjust seven checks for null pointers

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 18:54:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written … Thus fix affected source code places.

[PATCH 9/9] KVM: Improve another size determination in kvm_create_vm()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Jan 2017 18:56:26 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

RE: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Matthew Wilcox
From: Christoph Hellwig [mailto:h...@lst.de] > On Sun, Jan 22, 2017 at 03:43:09PM +, Matthew Wilcox wrote: > > In the case of a network filesystem being used to communicate with > > a different VM on the same physical machine, there is no backing > > device, just a network protocol. > > Again,

[PATCH 00/37] cputime: Convert core use of cputime_t to nsecs v3

2017-01-22 Thread Frederic Weisbecker
Summary of this patchset in v1 (actually v2 as the v1 got posted 2 years ago): https://lkml.org/lkml/2016/11/17/583 Changes in this version: * Rebase against latest cputime changes (vtime accumulation and accounting delayed on tick and context switch) * Fix leaking cputime remainder on s390 *

[PATCH 03/37] sched: Remove unused INIT_CPUTIME macro

2017-01-22 Thread Frederic Weisbecker
It's a leftover from removed code. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Stanislaw Gruszka Cc: Wanpeng Li Sig

[PATCH 10/37] x86: Convert obsolete cputime type to nsecs

2017-01-22 Thread Frederic Weisbecker
Use the new nsec based cputime accessors as part of the whole cputime conversion from cputime_t to nsecs. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thoma

[PATCH 05/37] macintosh/rack-meter: Remove cputime_t internal use

2017-01-22 Thread Frederic Weisbecker
cputime_t is being obsolete and replaced by nsecs units. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Stanislaw Gruszk

[PATCH 04/37] cputime: Convert kcpustat to nsecs

2017-01-22 Thread Frederic Weisbecker
Kernel cpu stats are stored in cputime_t which is an architecture defined type, and hence a bit opaque and requiring accessors and mutators for any operation. Converting them to nsecs simplifies the code and is one step toward the removal of cputime_t in the core code. Cc: Benjamin Herrenschmidt

[PATCH 09/37] alpha: Convert obsolete cputime_t to nsecs

2017-01-22 Thread Frederic Weisbecker
Use the new nsec based cputime accessors as part of the whole cputime conversion from cputime_t to nsecs. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thoma

[PATCH 06/37] cputime: Convert guest time accounting to nsecs

2017-01-22 Thread Frederic Weisbecker
cputime_t is being obsolete and replaced by nsecs units in order to make internal timestamps less opaque and more granular. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik v

[PATCH 20/37] itimer: Convert internal cputime_t units to nsec

2017-01-22 Thread Frederic Weisbecker
Use the new nsec based cputime accessors as part of the whole cputime conversion from cputime_t to nsecs. Also convert itimers to use nsec based internal counters. This simplifies it and remove the whole game with error/inc_error which served to deal with cputime_t random granularity. Cc: Benjami

[PATCH 13/37] acct: Convert obsolete cputime type to nsecs

2017-01-22 Thread Frederic Weisbecker
Use the new nsec based cputime accessors as part of the whole cputime conversion from cputime_t to nsecs. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thoma

[PATCH 12/37] binfmt: Convert obsolete cputime type to nsecs

2017-01-22 Thread Frederic Weisbecker
Use the new nsec based cputime accessors as part of the whole cputime conversion from cputime_t to nsecs. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thoma

<    1   2   3   4   5   >