Re: [PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Greg KH
On Tue, May 03, 2016 at 10:56:09PM -0700, Greg KH wrote: > On Wed, May 04, 2016 at 02:41:22PM +0900, Daeseok Youn wrote: > > The error handling for print_drive after calling tty_alloc_driver() > > was needed. But there was error handling but too late for this. > > Error handling code moved after

Re: [PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Greg KH
On Tue, May 03, 2016 at 10:56:09PM -0700, Greg KH wrote: > On Wed, May 04, 2016 at 02:41:22PM +0900, Daeseok Youn wrote: > > The error handling for print_drive after calling tty_alloc_driver() > > was needed. But there was error handling but too late for this. > > Error handling code moved after

Re: [PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Greg KH
On Wed, May 04, 2016 at 02:41:22PM +0900, Daeseok Youn wrote: > The error handling for print_drive after calling tty_alloc_driver() > was needed. But there was error handling but too late for this. > Error handling code moved after tty_alloc_driver() call. > > Fixes: 60b3109e5e2d ("staging: dgnc:

Re: [PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Greg KH
On Wed, May 04, 2016 at 02:41:22PM +0900, Daeseok Youn wrote: > The error handling for print_drive after calling tty_alloc_driver() > was needed. But there was error handling but too late for this. > Error handling code moved after tty_alloc_driver() call. > > Fixes: 60b3109e5e2d ("staging: dgnc:

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread Yinghai Lu
On Tue, May 3, 2016 at 10:08 PM, Yinghai Lu wrote: > On Tue, May 3, 2016 at 6:25 PM, Bjorn Helgaas wrote: >> I did not propose changing any user-visible ABI. To recap what I did >> propose: > > I want to avoid introduce one strange pci_user_to_resource. >

[PATCH 06/15] ACPICA: ACPI 6.0, tools/iasl: Add support for new resource descriptors

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 5a0555ece4ba9917e5842b21d88469ae06b4e815 Adds full support for: i2c_serial_bus_v2 spi_serial_bus_v2 uart_serial_bus_v2 Compiler, Disassembler, Resource Manager, acpi_help. Link: https://github.com/acpica/acpica/commit/5a0555ec

linux-next: build warning after merge of the lightnvm tree

2016-05-03 Thread Stephen Rothwell
Hi Matias, After merging the lightnvm tree, today's linux-next build (powerpc allyesconfig) produced this warning: In file included from include/linux/swab.h:4:0, from include/uapi/linux/byteorder/big_endia n.h:12, from include/linux/byteorder/big_endian.h:4 ,

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread Yinghai Lu
On Tue, May 3, 2016 at 10:08 PM, Yinghai Lu wrote: > On Tue, May 3, 2016 at 6:25 PM, Bjorn Helgaas wrote: >> I did not propose changing any user-visible ABI. To recap what I did >> propose: > > I want to avoid introduce one strange pci_user_to_resource. > >> >> - The sysfs path uses offsets

[PATCH 06/15] ACPICA: ACPI 6.0, tools/iasl: Add support for new resource descriptors

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 5a0555ece4ba9917e5842b21d88469ae06b4e815 Adds full support for: i2c_serial_bus_v2 spi_serial_bus_v2 uart_serial_bus_v2 Compiler, Disassembler, Resource Manager, acpi_help. Link: https://github.com/acpica/acpica/commit/5a0555ec Signed-off-by: Bob Moore

linux-next: build warning after merge of the lightnvm tree

2016-05-03 Thread Stephen Rothwell
Hi Matias, After merging the lightnvm tree, today's linux-next build (powerpc allyesconfig) produced this warning: In file included from include/linux/swab.h:4:0, from include/uapi/linux/byteorder/big_endia n.h:12, from include/linux/byteorder/big_endian.h:4 ,

[PATCH 12/15] ACPICA: Hardware: Add access_width/bit_offset support in acpi_hw_read()

2016-05-03 Thread Lv Zheng
ACPICA commit 96ece052d4d073aae4f935f0ff0746646aea1174 ACPICA commit 3d8583a054e410f2ea4d73b48986facad9cfc0d4 This patch adds access_width/bit_offset support in acpi_hw_read(). This also enables GAS definition where bit_width is not a power of two. Lv Zheng. Link:

[PATCH 12/15] ACPICA: Hardware: Add access_width/bit_offset support in acpi_hw_read()

2016-05-03 Thread Lv Zheng
ACPICA commit 96ece052d4d073aae4f935f0ff0746646aea1174 ACPICA commit 3d8583a054e410f2ea4d73b48986facad9cfc0d4 This patch adds access_width/bit_offset support in acpi_hw_read(). This also enables GAS definition where bit_width is not a power of two. Lv Zheng. Link:

[PATCH 15/15] ACPICA: Update version to 20160422

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit a2327ba410e19c2aabaf34b711dbadf7d1dcf346 Version 20160422. Link: https://github.com/acpica/acpica/commit/a2327ba4 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/acpixf.h |

[PATCH 15/15] ACPICA: Update version to 20160422

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit a2327ba410e19c2aabaf34b711dbadf7d1dcf346 Version 20160422. Link: https://github.com/acpica/acpica/commit/a2327ba4 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/acpixf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 05/15] ACPICA: ACPI 6.0: Update _BIX support for new package element

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 3451e6d49d37919c13ec2c0019a31534b0dfc0c0 One integer was added at the end of the _BIX method, and the version number was incremented. Link: https://github.com/acpica/acpica/commit/3451e6d4 Signed-off-by: Bob Moore

[PATCH 13/15] ACPICA: Hardware: Add access_width/bit_offset support for acpi_hw_write()

2016-05-03 Thread Lv Zheng
ACPICA commit 48eea5e7993ccb7189bd63cd726e02adafee6057 This patch adds access_width/bit_offset support in acpi_hw_write(). Lv Zheng. Link: https://github.com/acpica/acpica/commit/48eea5e7 Link: https://bugs.acpica.org/show_bug.cgi?id=1240 Signed-off-by: Lv Zheng

[PATCH 08/15] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-05-03 Thread Lv Zheng
From: Prarit Bhargava ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25 Set the mutex owner thread ID. Original patch from: Prarit Bhargava Link: https://github.com/acpica/acpica/commit/7a3bd2d9 Signed-off-by: Prarit Bhargava

[PATCH 10/15] ACPICA: Hardware: Add optimized access bit width support

2016-05-03 Thread Lv Zheng
ACPICA commit c49a751b4dae7baec1790748a2b4b6e8ab599f51 For Access Size = 0, it actually can use user expected access bit width. This patch implements this. Besides of the ACPICA upstream commit, this patch also includes a fix fixing the issue reported by the FreeBSD community. The old register

[PATCH 07/15] ACPICA: Renamed some #defined flag constants for clarity

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 438905b205e64e742f9670a0970419c426264831 Expanded a couple of cryptic names. Link: https://github.com/acpica/acpica/commit/438905b2 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng ---

[PATCH 14/15] ACPICA: Move all ASCII utilities to a common file

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit ba60e4500053010bf775d58f6f61febbdb94d817 New file is utascii.c Link: https://github.com/acpica/acpica/commit/ba60e450 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng ---

[PATCH 05/15] ACPICA: ACPI 6.0: Update _BIX support for new package element

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 3451e6d49d37919c13ec2c0019a31534b0dfc0c0 One integer was added at the end of the _BIX method, and the version number was incremented. Link: https://github.com/acpica/acpica/commit/3451e6d4 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng ---

[PATCH 13/15] ACPICA: Hardware: Add access_width/bit_offset support for acpi_hw_write()

2016-05-03 Thread Lv Zheng
ACPICA commit 48eea5e7993ccb7189bd63cd726e02adafee6057 This patch adds access_width/bit_offset support in acpi_hw_write(). Lv Zheng. Link: https://github.com/acpica/acpica/commit/48eea5e7 Link: https://bugs.acpica.org/show_bug.cgi?id=1240 Signed-off-by: Lv Zheng Signed-off-by: Bob Moore ---

[PATCH 08/15] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-05-03 Thread Lv Zheng
From: Prarit Bhargava ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25 Set the mutex owner thread ID. Original patch from: Prarit Bhargava Link: https://github.com/acpica/acpica/commit/7a3bd2d9 Signed-off-by: Prarit Bhargava Signed-off-by: Bob Moore Signed-off-by: Lv Zheng ---

[PATCH 10/15] ACPICA: Hardware: Add optimized access bit width support

2016-05-03 Thread Lv Zheng
ACPICA commit c49a751b4dae7baec1790748a2b4b6e8ab599f51 For Access Size = 0, it actually can use user expected access bit width. This patch implements this. Besides of the ACPICA upstream commit, this patch also includes a fix fixing the issue reported by the FreeBSD community. The old register

[PATCH 07/15] ACPICA: Renamed some #defined flag constants for clarity

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 438905b205e64e742f9670a0970419c426264831 Expanded a couple of cryptic names. Link: https://github.com/acpica/acpica/commit/438905b2 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/aclocal.h | 30 +++---

[PATCH 14/15] ACPICA: Move all ASCII utilities to a common file

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit ba60e4500053010bf775d58f6f61febbdb94d817 New file is utascii.c Link: https://github.com/acpica/acpica/commit/ba60e450 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/Makefile |1 + drivers/acpi/acpica/actables.h

[PATCH 04/15] ACPICA: ACPI 6.1: Support for new PCCT subtable

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit de3ea7c322b9b6bdb09aa90c2e1d420cd4dce47c Additional subspace structure was added. Link: https://github.com/acpica/acpica/commit/de3ea7c3 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng ---

[PATCH 09/15] ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro

2016-05-03 Thread Lv Zheng
This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acmacros.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h index 73f6653..ecbaaba

[PATCH 11/15] ACPICA: Executer: Introduce a set of macros to handle bit width mask generation

2016-05-03 Thread Lv Zheng
ACPICA commit c23034a3a09d5ed79f1827d51f43cfbccf68ab64 A regression was reported to the shift offset >= width of type. This patch fixes this issue. BZ 1270. This is a part of the fix because the order of the patches are modified for Linux upstream, containing the cleanups for the old code. Lv

[PATCH 04/15] ACPICA: ACPI 6.1: Support for new PCCT subtable

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit de3ea7c322b9b6bdb09aa90c2e1d420cd4dce47c Additional subspace structure was added. Link: https://github.com/acpica/acpica/commit/de3ea7c3 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl3.h | 23 ++- 1 file changed,

[PATCH 09/15] ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro

2016-05-03 Thread Lv Zheng
This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acmacros.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h index 73f6653..ecbaaba 100644 ---

[PATCH 11/15] ACPICA: Executer: Introduce a set of macros to handle bit width mask generation

2016-05-03 Thread Lv Zheng
ACPICA commit c23034a3a09d5ed79f1827d51f43cfbccf68ab64 A regression was reported to the shift offset >= width of type. This patch fixes this issue. BZ 1270. This is a part of the fix because the order of the patches are modified for Linux upstream, containing the cleanups for the old code. Lv

[PATCH 03/15] ACPICA: Refactor evaluate_object to reduce nesting

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 599e9159f53565e4a3f3e67f6a03f81fcb10a4cf Original patch from hanjun@linaro.org ACPICA BZ 1072. Link: https://github.com/acpica/acpica/commit/599e9159 Link: https://bugs.acpica.org/show_bug.cgi?id=1072 Original-by: Hanjun Guo

[PATCH 00/15] ACPICA: 20160422 Release

2016-05-03 Thread Lv Zheng
The 20160422 ACPICA kernel-resident subsystem updates are linuxized based on the linux-pm/linux-next branch. NOTE: 1. Indentation improvement The [PATCH 02] is a result of an ACPICA release process fix. It requires much of human intervention, and many linuxized patches in my hand that are not

[PATCH 02/15] ACPICA: Divergence: remove unwanted spaces for typedef

2016-05-03 Thread Lv Zheng
ACPICA commit b2294cae776f5a66a7697414b21949d307e6856f This patch removes unwanted spaces for typedef. This solution doesn't cover function types. Note that the linuxize result of this commit is very giant and should have many conflicts against the current Linux upstream. Thus it is required to

[PATCH 01/15] ACPICA: Linuxize: reduce divergences for 20160422 release

2016-05-03 Thread Lv Zheng
The patch reduces source code differences between the Linux kernel and the ACPICA upstream so that the linuxized ACPICA 20160422 release can be applied with reduced human intervention. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/aclocal.h |2 +-

[PATCH 03/15] ACPICA: Refactor evaluate_object to reduce nesting

2016-05-03 Thread Lv Zheng
From: Bob Moore ACPICA commit 599e9159f53565e4a3f3e67f6a03f81fcb10a4cf Original patch from hanjun@linaro.org ACPICA BZ 1072. Link: https://github.com/acpica/acpica/commit/599e9159 Link: https://bugs.acpica.org/show_bug.cgi?id=1072 Original-by: Hanjun Guo Signed-off-by: Bob Moore

[PATCH 00/15] ACPICA: 20160422 Release

2016-05-03 Thread Lv Zheng
The 20160422 ACPICA kernel-resident subsystem updates are linuxized based on the linux-pm/linux-next branch. NOTE: 1. Indentation improvement The [PATCH 02] is a result of an ACPICA release process fix. It requires much of human intervention, and many linuxized patches in my hand that are not

[PATCH 02/15] ACPICA: Divergence: remove unwanted spaces for typedef

2016-05-03 Thread Lv Zheng
ACPICA commit b2294cae776f5a66a7697414b21949d307e6856f This patch removes unwanted spaces for typedef. This solution doesn't cover function types. Note that the linuxize result of this commit is very giant and should have many conflicts against the current Linux upstream. Thus it is required to

[PATCH 01/15] ACPICA: Linuxize: reduce divergences for 20160422 release

2016-05-03 Thread Lv Zheng
The patch reduces source code differences between the Linux kernel and the ACPICA upstream so that the linuxized ACPICA 20160422 release can be applied with reduced human intervention. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/aclocal.h |2 +- drivers/acpi/acpica/acresrc.h |2 +-

Re: [PATCH 0.14] oom detection rework v6

2016-05-03 Thread Joonsoo Kim
On Wed, Apr 20, 2016 at 03:47:13PM -0400, Michal Hocko wrote: > Hi, > > This is v6 of the series. The previous version was posted [1]. The > code hasn't changed much since then. I have found one old standing > bug (patch 1) which just got much more severe and visible with this > series. Other

Re: [PATCH 0.14] oom detection rework v6

2016-05-03 Thread Joonsoo Kim
On Wed, Apr 20, 2016 at 03:47:13PM -0400, Michal Hocko wrote: > Hi, > > This is v6 of the series. The previous version was posted [1]. The > code hasn't changed much since then. I have found one old standing > bug (patch 1) which just got much more severe and visible with this > series. Other

[PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Daeseok Youn
The error handling for print_drive after calling tty_alloc_driver() was needed. But there was error handling but too late for this. Error handling code moved after tty_alloc_driver() call. Fixes: 60b3109e5e2d ("staging: dgnc: use tty_alloc_driver instead of kcalloc") Reported-by: Dan Carpenter

[PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Daeseok Youn
The error handling for print_drive after calling tty_alloc_driver() was needed. But there was error handling but too late for this. Error handling code moved after tty_alloc_driver() call. Fixes: 60b3109e5e2d ("staging: dgnc: use tty_alloc_driver instead of kcalloc") Reported-by: Dan Carpenter

Re: [PATCH 2/2] Fix issue with dmesg.py and python 3.X

2016-05-03 Thread Jan Kiszka
On 2016-05-04 05:12, buzdelab...@gmail.com wrote: > From: Dom Cote > > Replace the addition (+) of 2 python 'memoryview' objects > with the addition of 2 'bytes' objects, convert the result > back to memoryview. > > Tested with python 3.4 and 2.7 > Tested with gdb 7.7

Re: [PATCH 2/2] Fix issue with dmesg.py and python 3.X

2016-05-03 Thread Jan Kiszka
On 2016-05-04 05:12, buzdelab...@gmail.com wrote: > From: Dom Cote > > Replace the addition (+) of 2 python 'memoryview' objects > with the addition of 2 'bytes' objects, convert the result > back to memoryview. > > Tested with python 3.4 and 2.7 > Tested with gdb 7.7 A word here on what setup

[PATCH 3/3] staging: dgnc: clean up the dgnc_get_modem_info()

2016-05-03 Thread Daeseok Youn
the "ch" in dgnc_get_modem_info() was already checked before calling this function and also if "ch" is not NULL, dgnc_get_mstat() returns valid value so it doesn't need to check an error. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 12 +---

[PATCH 3/3] staging: dgnc: clean up the dgnc_get_modem_info()

2016-05-03 Thread Daeseok Youn
the "ch" in dgnc_get_modem_info() was already checked before calling this function and also if "ch" is not NULL, dgnc_get_mstat() returns valid value so it doesn't need to check an error. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 12 +--- 1 file changed, 1

Re: [PATCH] PCI: dra7xx: program outbound atu with correct address

2016-05-03 Thread Kishon Vijay Abraham I
On Tuesday 03 May 2016 10:20 PM, Bjorn Helgaas wrote: > On Mon, May 02, 2016 at 04:09:33PM -0500, Bjorn Helgaas wrote: >> On Mon, May 02, 2016 at 04:54:40PM +0200, Niklas Cassel wrote: >>> From: Niklas Cassel >>> >>> commit 1488aefa37a4 ("PCI: designware: Move Root

[PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-03 Thread Daeseok Youn
the result in dgnc_get_mstat() was initialized with -EIO but there are no use of EIO as a result in this function. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH] PCI: dra7xx: program outbound atu with correct address

2016-05-03 Thread Kishon Vijay Abraham I
On Tuesday 03 May 2016 10:20 PM, Bjorn Helgaas wrote: > On Mon, May 02, 2016 at 04:09:33PM -0500, Bjorn Helgaas wrote: >> On Mon, May 02, 2016 at 04:54:40PM +0200, Niklas Cassel wrote: >>> From: Niklas Cassel >>> >>> commit 1488aefa37a4 ("PCI: designware: Move Root Complex >>> setup code to

[PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-03 Thread Daeseok Youn
the result in dgnc_get_mstat() was initialized with -EIO but there are no use of EIO as a result in this function. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c

[PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-03 Thread Daeseok Youn
tty and ch are already checked for NULL before calling dgnc_block_til_ready(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c

[PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-03 Thread Daeseok Youn
tty and ch are already checked for NULL before calling dgnc_block_til_ready(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index

Re: [linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Priit Laes
On Tue, 2016-05-03 at 17:52 +0200, Olliver Schinagl wrote: > Hey all, > > On 03-05-16 17:02, christo.ra...@gmail.com wrote: > > On Tuesday, May 3, 2016 at 4:14:41 PM UTC+3, Maxime Ripard wrote: > > > Hi, > > > > > > On Tue, May 03, 2016 at 4:12:06 PM UTC+3, Christo Radev wrote: > > > > Hi to

Re: [linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-03 Thread Priit Laes
On Tue, 2016-05-03 at 17:52 +0200, Olliver Schinagl wrote: > Hey all, > > On 03-05-16 17:02, christo.ra...@gmail.com wrote: > > On Tuesday, May 3, 2016 at 4:14:41 PM UTC+3, Maxime Ripard wrote: > > > Hi, > > > > > > On Tue, May 03, 2016 at 4:12:06 PM UTC+3, Christo Radev wrote: > > > > Hi to

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread Yinghai Lu
On Tue, May 3, 2016 at 6:25 PM, Bjorn Helgaas wrote: > On Wed, May 04, 2016 at 10:37:40AM +1000, Benjamin Herrenschmidt wrote: >> >> The problem tends to be old Xserver expectations... >> >> That stuff has been a can of worms over the years and we did things in >> the kernel

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread Yinghai Lu
On Tue, May 3, 2016 at 6:25 PM, Bjorn Helgaas wrote: > On Wed, May 04, 2016 at 10:37:40AM +1000, Benjamin Herrenschmidt wrote: >> >> The problem tends to be old Xserver expectations... >> >> That stuff has been a can of worms over the years and we did things in >> the kernel to work around X

Re: [PATCH v2 5/5] dax: handle media errors in dax_do_io

2016-05-03 Thread Dan Williams
On Tue, May 3, 2016 at 8:18 PM, Dave Chinner wrote: > On Tue, May 03, 2016 at 10:28:15AM -0700, Dan Williams wrote: >> On Mon, May 2, 2016 at 6:51 PM, Dave Chinner wrote: >> > On Mon, May 02, 2016 at 04:25:51PM -0700, Dan Williams wrote: >> [..] >> >

Re: [PATCH v2 5/5] dax: handle media errors in dax_do_io

2016-05-03 Thread Dan Williams
On Tue, May 3, 2016 at 8:18 PM, Dave Chinner wrote: > On Tue, May 03, 2016 at 10:28:15AM -0700, Dan Williams wrote: >> On Mon, May 2, 2016 at 6:51 PM, Dave Chinner wrote: >> > On Mon, May 02, 2016 at 04:25:51PM -0700, Dan Williams wrote: >> [..] >> > Yes, I know, and it doesn't answer any of the

Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2)

2016-05-03 Thread Jamie Heilman
Tadeusz Struk wrote: > On 05/03/2016 07:26 PM, Jamie Heilman wrote: > >>> Alrighty, presumably relevant bits: > >>> > > > >>> > > X.509: Cert Issuer: Build time autogenerated kernel key > >>> > > X.509: Cert Subject: Build time autogenerated kernel key > >>> > > X.509: Cert Key Algo: rsa > >>> > >

Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2)

2016-05-03 Thread Jamie Heilman
Tadeusz Struk wrote: > On 05/03/2016 07:26 PM, Jamie Heilman wrote: > >>> Alrighty, presumably relevant bits: > >>> > > > >>> > > X.509: Cert Issuer: Build time autogenerated kernel key > >>> > > X.509: Cert Subject: Build time autogenerated kernel key > >>> > > X.509: Cert Key Algo: rsa > >>> > >

Re: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings

2016-05-03 Thread Christian Lamparter
On Tuesday, May 03, 2016 09:22:10 PM Rob Herring wrote: > On Sun, May 01, 2016 at 02:18:37PM +0200, Christian Lamparter wrote: > > This patch adds the device tree bindings for the Western Digital's > > MyBook Live memory-mapped GPIO controllers. > > > > The gpios will be supported by gpio-mmio

Re: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings

2016-05-03 Thread Christian Lamparter
On Tuesday, May 03, 2016 09:22:10 PM Rob Herring wrote: > On Sun, May 01, 2016 at 02:18:37PM +0200, Christian Lamparter wrote: > > This patch adds the device tree bindings for the Western Digital's > > MyBook Live memory-mapped GPIO controllers. > > > > The gpios will be supported by gpio-mmio

Re: [GIT PULL for v4.6-rc1] media updates

2016-05-03 Thread Stefan Lippers-Hollmann
Hi On 2016-05-03, Linus Torvalds wrote: > On Tue, May 3, 2016 at 2:38 PM, Stefan Lippers-Hollmann wrote: > > Hi > > [...] > >> Mauro Carvalho Chehab (95): > > [...] > >> [media] use v4l2_mc_usb_media_device_init() on most USB devices > > [...] > > > > This change, as

Re: [GIT PULL for v4.6-rc1] media updates

2016-05-03 Thread Stefan Lippers-Hollmann
Hi On 2016-05-03, Linus Torvalds wrote: > On Tue, May 3, 2016 at 2:38 PM, Stefan Lippers-Hollmann wrote: > > Hi > > [...] > >> Mauro Carvalho Chehab (95): > > [...] > >> [media] use v4l2_mc_usb_media_device_init() on most USB devices > > [...] > > > > This change, as part of

Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2)

2016-05-03 Thread Tadeusz Struk
On 05/03/2016 07:26 PM, Jamie Heilman wrote: >>> Alrighty, presumably relevant bits: >>> > > >>> > > X.509: Cert Issuer: Build time autogenerated kernel key >>> > > X.509: Cert Subject: Build time autogenerated kernel key >>> > > X.509: Cert Key Algo: rsa >>> > > X.509: Cert Valid period:

Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2)

2016-05-03 Thread Tadeusz Struk
On 05/03/2016 07:26 PM, Jamie Heilman wrote: >>> Alrighty, presumably relevant bits: >>> > > >>> > > X.509: Cert Issuer: Build time autogenerated kernel key >>> > > X.509: Cert Subject: Build time autogenerated kernel key >>> > > X.509: Cert Key Algo: rsa >>> > > X.509: Cert Valid period:

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread David Miller
From: Benjamin Herrenschmidt Date: Wed, 04 May 2016 10:37:40 +1000 > On Tue, 2016-05-03 at 15:52 -0700, Yinghai Lu wrote: >> BenH and DavidM, >> Are you ok to let /proc/bus/pci/devices to expose resource value >> instead of >> BAR value? >> powerpc already expose MMIO

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-03 Thread David Miller
From: Benjamin Herrenschmidt Date: Wed, 04 May 2016 10:37:40 +1000 > On Tue, 2016-05-03 at 15:52 -0700, Yinghai Lu wrote: >> BenH and DavidM, >> Are you ok to let /proc/bus/pci/devices to expose resource value >> instead of >> BAR value? >> powerpc already expose MMIO as resource value, but

Re: [PATCH] crypto: algif_skcipher: replace sg++ with sg_next()

2016-05-03 Thread Herbert Xu
Muhammad Falak R Wani wrote: > Never use sg++, always use sg = sg_next(sg). Scatterlist entries can > be combined if the memory is contiguous but sg++ won't know about > that. It sure would run on the slower side. > But regardless, sg++ should never be used, only sg_next is

Re: [PATCH] crypto: algif_skcipher: replace sg++ with sg_next()

2016-05-03 Thread Herbert Xu
Muhammad Falak R Wani wrote: > Never use sg++, always use sg = sg_next(sg). Scatterlist entries can > be combined if the memory is contiguous but sg++ won't know about > that. It sure would run on the slower side. > But regardless, sg++ should never be used, only sg_next is safe. > >

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Masahiro Yamada
Hi Emese, 2016-05-04 6:29 GMT+09:00 Emese Revfy : > On Tue, 3 May 2016 11:00:56 +0900 > Masahiro Yamada wrote: > > Hi, > >> # Compile .c file, create position independent .o file >> # host-cxxshobjs -> .o >> quiet_cmd_host-cxxshobjs = HOSTCXX

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Masahiro Yamada
Hi Emese, 2016-05-04 6:29 GMT+09:00 Emese Revfy : > On Tue, 3 May 2016 11:00:56 +0900 > Masahiro Yamada wrote: > > Hi, > >> # Compile .c file, create position independent .o file >> # host-cxxshobjs -> .o >> quiet_cmd_host-cxxshobjs = HOSTCXX -fPIC $@ >> cmd_host-cxxshobjs = $(HOSTCXX)

Re: [PATCH] mmc: omap: Use dma_request_chan() for requesting DMA channel

2016-05-03 Thread Peter Ujfalusi
On 05/03/2016 11:00 PM, Peter Ujfalusi wrote: >>> @@ -1382,29 +1379,31 @@ static int mmc_omap_probe(struct platform_device >>> *pdev) >>> goto err_free_iclk; >>> } >>> >>> - dma_cap_zero(mask); >>> - dma_cap_set(DMA_SLAVE, mask); >>> - >>>

Re: [PATCH] mmc: omap: Use dma_request_chan() for requesting DMA channel

2016-05-03 Thread Peter Ujfalusi
On 05/03/2016 11:00 PM, Peter Ujfalusi wrote: >>> @@ -1382,29 +1379,31 @@ static int mmc_omap_probe(struct platform_device >>> *pdev) >>> goto err_free_iclk; >>> } >>> >>> - dma_cap_zero(mask); >>> - dma_cap_set(DMA_SLAVE, mask); >>> - >>>

[PATCH] drivers: usb: dwc3 : Configure DMA properties and ops from DT

2016-05-03 Thread Rajesh Bhagat
On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set to be able to do DMA allocations, so use the of_dma_configure() helper to populate the dma properties and assign an appropriate dma_ops. Signed-off-by: Rajesh Bhagat Reviewed-by: Yang-Leo Li

[PATCH] drivers: usb: dwc3 : Configure DMA properties and ops from DT

2016-05-03 Thread Rajesh Bhagat
On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set to be able to do DMA allocations, so use the of_dma_configure() helper to populate the dma properties and assign an appropriate dma_ops. Signed-off-by: Rajesh Bhagat Reviewed-by: Yang-Leo Li --- drivers/usb/dwc3/host.c |

[v9, 5/7] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-05-03 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd

[v9, 0/7] Fix eSDHC host version register bug

2016-05-03 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To get the SoC version and revision, it's needed to add the GUTS driver to access the global utilities registers. So, the first four patches are to add the GUTS driver. The following patches except

[v9, 5/7] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-05-03 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd Acked-by: Scott Wood Acked-by: Joerg Roedel --- Changes for

[v9, 0/7] Fix eSDHC host version register bug

2016-05-03 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To get the SoC version and revision, it's needed to add the GUTS driver to access the global utilities registers. So, the first four patches are to add the GUTS driver. The following patches except

[v9, 6/7] MAINTAINERS: add entry for Freescale SoC driver

2016-05-03 Thread Yangbo Lu
Add maintainer entry for Freescale SoC driver including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail list - Removed

[v9, 2/7] ARM64: dts: ls2080a: add device configuration node

2016-05-03 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7:

[v9, 6/7] MAINTAINERS: add entry for Freescale SoC driver

2016-05-03 Thread Yangbo Lu
Add maintainer entry for Freescale SoC driver including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail list - Removed GUTS driver entry ---

[v9, 2/7] ARM64: dts: ls2080a: add device configuration node

2016-05-03 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7: - None Changes for v8:

[v9, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-05-03 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added a list for the possible

[v9, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-05-03 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added a list for the possible compatibles ---

[PATCH v3 06/12] documentation: Add scheduler/sched-avg.txt

2016-05-03 Thread Yuyang Du
This doc file has the program to generate the constants to compute sched averages. Signed-off-by: Yuyang Du --- Documentation/scheduler/sched-avg.txt | 94 + 1 file changed, 94 insertions(+) create mode 100644

[PATCH v3 07/12] sched/fair: Generalize the load/util averages resolution definition

2016-05-03 Thread Yuyang Du
Integer metric needs fixed point arithmetic. In sched/fair, a few metrics, including weight, load, load_avg, util_avg, freq, and capacity, may have different fixed point ranges. In order to avoid errors relating to the fixed point range of these metrics, we define a basic fixed point range, and

[PATCH v3 05/12] sched/fair: Optimize __update_sched_avg()

2016-05-03 Thread Yuyang Du
__update_sched_avg() has these steps: 1. add the remainder of the last incomplete period 2. decay old sum 3. accumulate new sum in full periods since last_update_time 4. add the current incomplete period 5. update averages Previously, we separately computed steps 1, 3, and 4, leading

[PATCH v3 03/12] sched/fair: Change the variable to hold the number of periods to 32bit

2016-05-03 Thread Yuyang Du
In sched average update, a period is about 1ms, so a 32-bit unsigned integer can approximately hold a maximum of 49 (=2^32/1000/3600/24) days. For usual cases, 32bit is big enough and 64bit is needless. But if a task sleeps longer than it, there can be two outcomes: Consider a task sleeps

[PATCH v3 06/12] documentation: Add scheduler/sched-avg.txt

2016-05-03 Thread Yuyang Du
This doc file has the program to generate the constants to compute sched averages. Signed-off-by: Yuyang Du --- Documentation/scheduler/sched-avg.txt | 94 + 1 file changed, 94 insertions(+) create mode 100644 Documentation/scheduler/sched-avg.txt diff --git

[PATCH v3 07/12] sched/fair: Generalize the load/util averages resolution definition

2016-05-03 Thread Yuyang Du
Integer metric needs fixed point arithmetic. In sched/fair, a few metrics, including weight, load, load_avg, util_avg, freq, and capacity, may have different fixed point ranges. In order to avoid errors relating to the fixed point range of these metrics, we define a basic fixed point range, and

[PATCH v3 05/12] sched/fair: Optimize __update_sched_avg()

2016-05-03 Thread Yuyang Du
__update_sched_avg() has these steps: 1. add the remainder of the last incomplete period 2. decay old sum 3. accumulate new sum in full periods since last_update_time 4. add the current incomplete period 5. update averages Previously, we separately computed steps 1, 3, and 4, leading

[PATCH v3 03/12] sched/fair: Change the variable to hold the number of periods to 32bit

2016-05-03 Thread Yuyang Du
In sched average update, a period is about 1ms, so a 32-bit unsigned integer can approximately hold a maximum of 49 (=2^32/1000/3600/24) days. For usual cases, 32bit is big enough and 64bit is needless. But if a task sleeps longer than it, there can be two outcomes: Consider a task sleeps

[PATCH v3 11/12] sched/fair: Rename scale_load() and scale_load_down()

2016-05-03 Thread Yuyang Du
Rename scale_load() and scale_load_down() to user_to_kernel_load() and kernel_to_user_load() respectively. This helps us tag them clearly and avoid confusion. [update calculate_imbalance] Signed-off-by: Vincent Guittot Signed-off-by: Yuyang Du

[PATCH v3 11/12] sched/fair: Rename scale_load() and scale_load_down()

2016-05-03 Thread Yuyang Du
Rename scale_load() and scale_load_down() to user_to_kernel_load() and kernel_to_user_load() respectively. This helps us tag them clearly and avoid confusion. [update calculate_imbalance] Signed-off-by: Vincent Guittot Signed-off-by: Yuyang Du --- kernel/sched/core.c |8

[PATCH v3 08/12] sched/fair: Remove SCHED_LOAD_SHIFT and SCHED_LOAD_SCALE

2016-05-03 Thread Yuyang Du
After cleaning up the sched metrics, these two definitions that cause ambiguity are not needed any more. Use NICE_0_LOAD_SHIFT and NICE_0_LOAD instead (the names suggest clearly who they are). Suggested-by: Ben Segall Signed-off-by: Yuyang Du ---

[PATCH v3 09/12] sched/fair: Add introduction to the sched average metrics

2016-05-03 Thread Yuyang Du
These sched metrics have become complex enough. We introduce them at their definitions. Signed-off-by: Yuyang Du --- include/linux/sched.h | 60 - 1 file changed, 49 insertions(+), 11 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >