[PATCH v7 0/5] ACPI: parse the SPCR table

2016-03-31 Thread Aleksey Makarov
opic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx [3] https://lkml.kernel.org/g/cover.1458714002.git.lv.zh...@intel.com [4] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org [5] https://lkml.k

[PATCH v7 0/5] ACPI: parse the SPCR table

2016-03-31 Thread Aleksey Makarov
opic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx [3] https://lkml.kernel.org/g/cover.1458714002.git.lv.zh...@intel.com [4] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org [5] https://lkml.k

[PATCH v7 1/5] of/serial: move earlycon early_param handling to serial

2016-03-31 Thread Aleksey Makarov
o avoid clashing with the function from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm <leif.lindh...@linaro.org> Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> Acked-by: Rob Herring <r...@kernel.org> --- drivers/of/fdt.c | 11 +--

[PATCH v7 1/5] of/serial: move earlycon early_param handling to serial

2016-03-31 Thread Aleksey Makarov
from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov Acked-by: Rob Herring --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 2 +- include/linux/of_fdt.h| 2 ++ 3 files changed, 4 insertions(+), 11 deletion

[PATCH v6 3/5] ACPI: parse SPCR and enable matching console

2016-03-24 Thread Aleksey Makarov
/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile | 1 + drivers/acpi/spcr.c | 125 ++ drivers/tty/serial/earlycon.c | 11 +++- include

[PATCH v6 1/5] of/serial: move earlycon early_param handling to serial

2016-03-24 Thread Aleksey Makarov
o avoid clashing with the function from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm <leif.lindh...@linaro.org> Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 2 +- include/linu

[PATCH v6 3/5] ACPI: parse SPCR and enable matching console

2016-03-24 Thread Aleksey Makarov
/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile | 1 + drivers/acpi/spcr.c | 125 ++ drivers/tty/serial/earlycon.c | 11 +++- include/linux/acpi.h | 8 +++ 5

[PATCH v6 1/5] of/serial: move earlycon early_param handling to serial

2016-03-24 Thread Aleksey Makarov
from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 2 +- include/linux/of_fdt.h| 2 ++ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/driver

[PATCH v6 5/5] serial: pl011: add console matching function

2016-03-24 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.

[PATCH v6 2/5] ACPI: add definitions of DBG2 subtypes

2016-03-24 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a

[PATCH v6 4/5] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-24 Thread Aleksey Makarov
. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07b6a16..c77b4b2 100644 --- a/arch/arm64/Kconfig +++

[PATCH v6 2/5] ACPI: add definitions of DBG2 subtypes

2016-03-24 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a4ef625..652f747 100644

[PATCH v6 4/5] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-24 Thread Aleksey Makarov
. Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07b6a16..c77b4b2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -3,6 +3,7

[PATCH v6 5/5] serial: pl011: add console matching function

2016-03-24 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba

[PATCH v6 0/5] ACPI: parse the SPCR table

2016-03-24 Thread Aleksey Makarov
6217-23786-1-git-send-email-leif.lindh...@linaro.org [4] https://lkml.kernel.org/g/1457415800-8799-1-git-send-email-...@codeaurora.org Aleksey Makarov (4): ACPI: add definitions of DBG2 subtypes ACPI: parse SPCR and enable matching console ACPI: enable ACPI_SPCR_TABLE on ARM64 serial: pl011: add

[PATCH v6 0/5] ACPI: parse the SPCR table

2016-03-24 Thread Aleksey Makarov
6217-23786-1-git-send-email-leif.lindh...@linaro.org [4] https://lkml.kernel.org/g/1457415800-8799-1-git-send-email-...@codeaurora.org Aleksey Makarov (4): ACPI: add definitions of DBG2 subtypes ACPI: parse SPCR and enable matching console ACPI: enable ACPI_SPCR_TABLE on ARM64 serial: pl011: add

Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:15 PM, Peter Hurley wrote: > On 03/22/2016 03:46 AM, Aleksey Makarov wrote: >> This patch adds definition of early console data for pl011. >> It allows setting up an early console with a string passed in >> command line or compiled by the AC

Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:15 PM, Peter Hurley wrote: > On 03/22/2016 03:46 AM, Aleksey Makarov wrote: >> This patch adds definition of early console data for pl011. >> It allows setting up an early console with a string passed in >> command line or compiled by the AC

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:51 PM, Yury Norov wrote: > On Tue, Mar 22, 2016 at 07:57:04AM -0700, Peter Hurley wrote: > > [...] > +static bool init_earlycon; + +void __init init_spcr_earlycon(void) +{ + init_earlycon = true; +} + >>> >>> 1. I see you keep in mind

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:51 PM, Yury Norov wrote: > On Tue, Mar 22, 2016 at 07:57:04AM -0700, Peter Hurley wrote: > > [...] > +static bool init_earlycon; + +void __init init_spcr_earlycon(void) +{ + init_earlycon = true; +} + >>> >>> 1. I see you keep in mind

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:07 PM, Peter Hurley wrote: > On 03/22/2016 04:09 AM, Andy Shevchenko wrote: >> On Tue, Mar 22, 2016 at 12:46 PM, Aleksey Makarov >> <aleksey.maka...@linaro.org> wrote: >>> + sprintf(opts, "%s,%s,0x%llx,%d", uart, iotype, >&g

Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 07:07 PM, Peter Hurley wrote: > On 03/22/2016 04:09 AM, Andy Shevchenko wrote: >> On Tue, Mar 22, 2016 at 12:46 PM, Aleksey Makarov >> wrote: >>> + sprintf(opts, "%s,%s,0x%llx,%d", uart, iotype, >>> + table->seri

Re: [PATCH v5 1/6] of/serial: move earlycon early_param handling to serial

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 02:15 PM, Rob Herring wrote: > On Tue, Mar 22, 2016 at 5:46 AM, Aleksey Makarov > <aleksey.maka...@linaro.org> wrote: >> From: Leif Lindholm <leif.lindh...@linaro.org> >> >> We have multiple "earlycon" early_param handlers - merge t

Re: [PATCH v5 1/6] of/serial: move earlycon early_param handling to serial

2016-03-22 Thread Aleksey Makarov
On 03/22/2016 02:15 PM, Rob Herring wrote: > On Tue, Mar 22, 2016 at 5:46 AM, Aleksey Makarov > wrote: >> From: Leif Lindholm >> >> We have multiple "earlycon" early_param handlers - merge the DT one into >> the main earlycon one. It's a cleanup that

[PATCH v5 4/6] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-22 Thread Aleksey Makarov
. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07b6a16..c77b4b2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @

[PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
work. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/acpi/Kconfig | 3 ++ driver

[PATCH v5 4/6] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-22 Thread Aleksey Makarov
. Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07b6a16..c77b4b2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -3,6 +3,7 @@ config ARM64

[PATCH v5 3/6] ACPI: parse SPCR and enable matching console

2016-03-22 Thread Aleksey Makarov
work. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- drivers/acpi/Kconfig | 3 ++ drivers/acpi/Makefile | 1

[PATCH v5 2/6] ACPI: add definitions of DBG2 subtypes

2016-03-22 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a

[PATCH v5 2/6] ACPI: add definitions of DBG2 subtypes

2016-03-22 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a4ef625..652f747 100644

[PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Aleksey Makarov
This patch adds definition of early console data for pl011. It allows setting up an early console with a string passed in command line or compiled by the ACPI SPCR table handler. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/tty/serial/amba-pl011.c | 1 + 1 file c

[PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE

2016-03-22 Thread Aleksey Makarov
This patch adds definition of early console data for pl011. It allows setting up an early console with a string passed in command line or compiled by the ACPI SPCR table handler. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 5/6] serial: pl011: add console matching function

2016-03-22 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.

[PATCH v5 5/6] serial: pl011: add console matching function

2016-03-22 Thread Aleksey Makarov
This patch adds function pl011_console_match() that implements method match of struct console. It allows to match consoles against data specified in a string, for example taken from command line or compiled by ACPI SPCR table handler. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba

[PATCH v5 0/6] ACPI: parse the SPCR table

2016-03-22 Thread Aleksey Makarov
/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx [3] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org [4] https://lkml.kernel.org/g/1457415800-8799-1-git-send-email-...@codea

[PATCH v5 0/6] ACPI: parse the SPCR table

2016-03-22 Thread Aleksey Makarov
/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx [3] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org [4] https://lkml.kernel.org/g/1457415800-8799-1-git-send-email-...@codea

[PATCH v5 1/6] of/serial: move earlycon early_param handling to serial

2016-03-22 Thread Aleksey Makarov
@linaro.org> Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 3 ++- include/linux/of_fdt.h| 2 ++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/of/fdt.c b/dr

[PATCH v5 1/6] of/serial: move earlycon early_param handling to serial

2016-03-22 Thread Aleksey Makarov
From: Leif Lindholm We have multiple "earlycon" early_param handlers - merge the DT one into the main earlycon one. It's a cleanup that also will be useful to decide if ACPI SPCR earlycon should be set up. Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov --- driver

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-11 Thread Aleksey Makarov
Thank you Aleksey Makarov On 04.03.2016 22:47, Peter Hurley wrote: On 03/04/2016 03:53 AM, Aleksey Makarov wrote: On 03/03/2016 06:35 PM, Peter Hurley wrote: On 03/03/2016 03:59 AM, Aleksey Makarov wrote: On 03/01/2016 06:31 PM, Peter Hurley wrote: On 02/29/2016 04:02 AM, Aleksey Makarov wr

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-11 Thread Aleksey Makarov
Thank you Aleksey Makarov On 04.03.2016 22:47, Peter Hurley wrote: On 03/04/2016 03:53 AM, Aleksey Makarov wrote: On 03/03/2016 06:35 PM, Peter Hurley wrote: On 03/03/2016 03:59 AM, Aleksey Makarov wrote: On 03/01/2016 06:31 PM, Peter Hurley wrote: On 02/29/2016 04:02 AM, Aleksey Makarov wr

Re: [PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 08:48 PM, Peter Hurley wrote: > On 03/01/2016 08:57 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 06:53 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> Add ACPI_DBG2_EARLYCON_DECLARE() macros that de

Re: [PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 08:48 PM, Peter Hurley wrote: > On 03/01/2016 08:57 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 06:53 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> Add ACPI_DBG2_EARLYCON_DECLARE() macros that de

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 07:40 PM, Peter Hurley wrote: > On 03/01/2016 10:19 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 08:22 PM, Peter Hurley wrote: >>> On 03/01/2016 08:24 AM, Aleksey Makarov wrote: >>>> >>>> >>>> On 03/01/2016 0

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 07:40 PM, Peter Hurley wrote: > On 03/01/2016 10:19 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 08:22 PM, Peter Hurley wrote: >>> On 03/01/2016 08:24 AM, Aleksey Makarov wrote: >>>> >>>> >>>> On 03/01/2016 0

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 06:35 PM, Peter Hurley wrote: > On 03/03/2016 03:59 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 06:31 PM, Peter Hurley wrote: >>> On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >>>> 'ARM Server Base Boot Requirements' [1] mentions

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-04 Thread Aleksey Makarov
On 03/03/2016 06:35 PM, Peter Hurley wrote: > On 03/03/2016 03:59 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 06:31 PM, Peter Hurley wrote: >>> On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >>>> 'ARM Server Base Boot Requirements' [1] mentions

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-03 Thread Aleksey Makarov
On 03/01/2016 06:31 PM, Peter Hurley wrote: > On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >> Console Redirection Table) [2] as a mandatory ACPI table that >> specifies the configuration of serial con

Re: [PATCH v4 0/4] ACPI: parse the SPCR table

2016-03-03 Thread Aleksey Makarov
On 03/01/2016 06:31 PM, Peter Hurley wrote: > On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >> Console Redirection Table) [2] as a mandatory ACPI table that >> specifies the configuration of serial con

Re: [PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-03-03 Thread Aleksey Makarov
On 03/01/2016 08:25 PM, Peter Hurley wrote: > On 03/01/2016 09:02 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:52 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> SBBR mentions DBG2 as a mandatory ACPI table. &g

Re: [PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-03-03 Thread Aleksey Makarov
On 03/01/2016 08:25 PM, Peter Hurley wrote: > On 03/01/2016 09:02 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:52 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> SBBR mentions DBG2 as a mandatory ACPI table. &g

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 08:22 PM, Peter Hurley wrote: > On 03/01/2016 08:24 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:49 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> 'ARM Server Base Boot Requirements' [1] mentions D

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 08:22 PM, Peter Hurley wrote: > On 03/01/2016 08:24 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:49 PM, Peter Hurley wrote: >>> On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >>>> 'ARM Server Base Boot Requirements' [1] mentions D

Re: [PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 08:24 PM, Peter Hurley wrote: > On 03/01/2016 08:31 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:50 PM, Peter Hurley wrote: >>> On 02/29/2016 04:41 AM, Aleksey Makarov wrote: >>>> From: Leif Lindholm <leif.lindh...@lin

Re: [PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 08:24 PM, Peter Hurley wrote: > On 03/01/2016 08:31 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 05:50 PM, Peter Hurley wrote: >>> On 02/29/2016 04:41 AM, Aleksey Makarov wrote: >>>> From: Leif Lindholm >>>> >>>&g

Re: [PATCH v4 2/4] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 06:27 PM, Peter Hurley wrote: > On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >> SBBR mentions SPCR as a mandatory ACPI table. >> So enable it for ARM64 > > Why is this opt-in per-arch? It could depend only on CONFIG_ACPI. I will do that in the next version,

Re: [PATCH v4 2/4] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 06:27 PM, Peter Hurley wrote: > On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >> SBBR mentions SPCR as a mandatory ACPI table. >> So enable it for ARM64 > > Why is this opt-in per-arch? It could depend only on CONFIG_ACPI. I will do that in the next version,

Re: [PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:52 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> SBBR mentions DBG2 as a mandatory ACPI table. >> So enable it for ARM64 > > Why does this have to be opted-in per-arch? DBG2 can specify earlycons. They should start as soon

Re: [PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:52 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> SBBR mentions DBG2 as a mandatory ACPI table. >> So enable it for ARM64 > > Why does this have to be opted-in per-arch? DBG2 can specify earlycons. They should start as soon

Re: [PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 06:53 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> Add ACPI_DBG2_EARLYCON_DECLARE() macros that declares >> an earlycon on the serial port specified in the DBG2 ACPI table. >> >> Pass the string "earlycon=acpi

Re: [PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 06:53 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> Add ACPI_DBG2_EARLYCON_DECLARE() macros that declares >> an earlycon on the serial port specified in the DBG2 ACPI table. >> >> Pass the string "earlycon=acpi

Re: [PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:50 PM, Peter Hurley wrote: > On 02/29/2016 04:41 AM, Aleksey Makarov wrote: >> From: Leif Lindholm <leif.lindh...@linaro.org> >> >> We have multiple "earlycon" early_param handlers - merge the DT one into >> the main earlycon one. This

Re: [PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:50 PM, Peter Hurley wrote: > On 02/29/2016 04:41 AM, Aleksey Makarov wrote: >> From: Leif Lindholm >> >> We have multiple "earlycon" early_param handlers - merge the DT one into >> the main earlycon one. This means the earlycon early_

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:49 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> 'ARM Server Base Boot Requirements' [1] mentions DBG2 (Microsoft Debug >> Port Table 2) [2] as a mandatory ACPI table that specifies debug ports. >> >> - Implement macros &

Re: [PATCH v3 4/7] ACPI: parse DBG2 table

2016-03-01 Thread Aleksey Makarov
On 03/01/2016 05:49 PM, Peter Hurley wrote: > On 02/29/2016 04:42 AM, Aleksey Makarov wrote: >> 'ARM Server Base Boot Requirements' [1] mentions DBG2 (Microsoft Debug >> Port Table 2) [2] as a mandatory ACPI table that specifies debug ports. >> >> - Implement macros &

Re: [PATCH v4 1/4] ACPI: parse SPCR and enable matching console

2016-02-29 Thread Aleksey Makarov
Hi Andy, Thank you for review. On 02/29/2016 04:29 PM, Andy Shevchenko wrote: > On Mon, Feb 29, 2016 at 2:02 PM, Aleksey Makarov > <aleksey.maka...@linaro.org> wrote: >> 'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port >> Console Redirection Table) [2] a

Re: [PATCH v4 1/4] ACPI: parse SPCR and enable matching console

2016-02-29 Thread Aleksey Makarov
Hi Andy, Thank you for review. On 02/29/2016 04:29 PM, Andy Shevchenko wrote: > On Mon, Feb 29, 2016 at 2:02 PM, Aleksey Makarov > wrote: >> 'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port >> Console Redirection Table) [2] as a mandatory ACPI table

[PATCH v3 3/7] ACPI: genaralize iterating over subtables in ACPI_PROBE_TABLE()

2016-02-29 Thread Aleksey Makarov
callback validator. Instead, pass the sideband data specified by the driver. - Fix the driver's callback signatures: a. Add an unused pointer to void for table matchers (currently only clocksource callback) b. Change the type of sideband data to kernel_ulong_t. Signed-off-by: Aleksey Makarov

[PATCH v3 3/7] ACPI: genaralize iterating over subtables in ACPI_PROBE_TABLE()

2016-02-29 Thread Aleksey Makarov
callback validator. Instead, pass the sideband data specified by the driver. - Fix the driver's callback signatures: a. Add an unused pointer to void for table matchers (currently only clocksource callback) b. Change the type of sideband data to kernel_ulong_t. Signed-off-by: Aleksey Makarov

[PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-02-29 Thread Aleksey Makarov
holm <leif.lindh...@linaro.org> Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 3 ++- include/linux/of_fdt.h| 2 ++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-02-29 Thread Aleksey Makarov
SBBR mentions DBG2 as a mandatory ACPI table. So enable it for ARM64 Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig

[PATCH v3 1/7] of/serial: move earlycon early_param handling to serial

2016-02-29 Thread Aleksey Makarov
From: Leif Lindholm We have multiple "earlycon" early_param handlers - merge the DT one into the main earlycon one. This means the earlycon early_param handler does not just return success if no options are specified. Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov --

[PATCH v3 6/7] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-02-29 Thread Aleksey Makarov
SBBR mentions DBG2 as a mandatory ACPI table. So enable it for ARM64 Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9dc5209..0b614d4 100644

[PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-02-29 Thread Aleksey Makarov
Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- Documentation/kernel-parameters.txt | 3 ++ drivers/tty/serial/earlycon.c | 60 + include/linux/acpi_dbg2.h | 20 + 3 files changed, 83 insertions(+) diff --git a/Docu

[PATCH v3 4/7] ACPI: parse DBG2 table

2016-02-29 Thread Aleksey Makarov
. - For each declared port that is also described in the ACPI DBG2 table call the provided callback. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] http://go.microsoft.com/fwlink/p/?LinkId=234837 Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.

[PATCH v3 0/7] ACPI: parse the DBG2 table

2016-02-29 Thread Aleksey Makarov
a...@linaro.org [4] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org Aleksey Makarov (6): ACPI: add definitions of DBG2 subtypes ACPI: genaralize iterating over subtables in ACPI_PROBE_TABLE() ACPI: parse DBG2 table ACPI: serial: implement earlycon on ACP

[PATCH v3 7/7] serial: pl011: add ACPI DBG2 serial port

2016-02-29 Thread Aleksey Makarov
Add a handler for ACPI DBG2 serial port of type ACPI_DBG2_ARM_PL011 that sets up an earlycon on it. Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/tty/serial/amba-pl011.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/amba-pl011.c b/drive

[PATCH v3 5/7] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-02-29 Thread Aleksey Makarov
Signed-off-by: Aleksey Makarov --- Documentation/kernel-parameters.txt | 3 ++ drivers/tty/serial/earlycon.c | 60 + include/linux/acpi_dbg2.h | 20 + 3 files changed, 83 insertions(+) diff --git a/Documentation/kernel-paramet

[PATCH v3 4/7] ACPI: parse DBG2 table

2016-02-29 Thread Aleksey Makarov
. - For each declared port that is also described in the ACPI DBG2 table call the provided callback. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] http://go.microsoft.com/fwlink/p/?LinkId=234837 Signed-off-by: Aleksey Makarov --- drivers/acpi/Kconfig

[PATCH v3 0/7] ACPI: parse the DBG2 table

2016-02-29 Thread Aleksey Makarov
://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindh...@linaro.org Aleksey Makarov (6): ACPI: add definitions of DBG2 subtypes ACPI: genaralize iterating over subtables in ACPI_PROBE_TABLE() ACPI: parse DBG2 table ACPI: serial: implement earlycon on ACPI DBG2 port ACPI: enable ACPI

[PATCH v3 7/7] serial: pl011: add ACPI DBG2 serial port

2016-02-29 Thread Aleksey Makarov
Add a handler for ACPI DBG2 serial port of type ACPI_DBG2_ARM_PL011 that sets up an earlycon on it. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index

[PATCH v3 2/7] ACPI: add definitions of DBG2 subtypes

2016-02-29 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a

[PATCH v3 2/7] ACPI: add definitions of DBG2 subtypes

2016-02-29 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a4ef625..652f747 100644

[PATCH v4 4/4] serial: pl011: use ACPI SPCR to setup 32-bit access

2016-02-29 Thread Aleksey Makarov
is ACPI_DBG2_ARM_SBSA_32BIT. How this value is described in the DBG2 spec: "(deprecated) ARM SBSA (2.x only) Generic UART supporting only 32-bit accesses" Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/acpi/spcr.c | 22 ++ dr

[PATCH v4 1/4] ACPI: parse SPCR and enable matching console

2016-02-29 Thread Aleksey Makarov
/index.html [2] http://msdn.microsoft.com/en-us/library/windows/hardware/dn639131(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile| 1 + drivers/acpi/spcr.c

[PATCH v4 4/4] serial: pl011: use ACPI SPCR to setup 32-bit access

2016-02-29 Thread Aleksey Makarov
is ACPI_DBG2_ARM_SBSA_32BIT. How this value is described in the DBG2 spec: "(deprecated) ARM SBSA (2.x only) Generic UART supporting only 32-bit accesses" Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 22 ++ drivers/tty/serial/amba-pl

[PATCH v4 1/4] ACPI: parse SPCR and enable matching console

2016-02-29 Thread Aleksey Makarov
/index.html [2] http://msdn.microsoft.com/en-us/library/windows/hardware/dn639131(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile| 1 + drivers/acpi/spcr.c | 116 +++ drivers

[PATCH v4 3/4] ACPI: add definitions of DBG2 subtypes

2016-02-29 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a

[PATCH v4 3/4] ACPI: add definitions of DBG2 subtypes

2016-02-29 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a4ef625..652f747 100644

[PATCH v4 2/4] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-02-29 Thread Aleksey Makarov
SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64 Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9dc5209..544af2e 100644 --- a/arch

[PATCH v4 2/4] ACPI: enable ACPI_SPCR_TABLE on ARM64

2016-02-29 Thread Aleksey Makarov
SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64 Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9dc5209..544af2e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig

[PATCH v4 0/4] ACPI: parse the SPCR table

2016-02-29 Thread Aleksey Makarov
it-send-email-leif.lindh...@linaro.org Aleksey Makarov (4): ACPI: parse SPCR and enable matching console ACPI: enable ACPI_SPCR_TABLE on ARM64 ACPI: add definitions of DBG2 subtypes serial: pl011: use ACPI SPCR to setup 32-bit access arch/arm64/Kconfig | 1 + drivers

[PATCH v4 0/4] ACPI: parse the SPCR table

2016-02-29 Thread Aleksey Makarov
it-send-email-leif.lindh...@linaro.org Aleksey Makarov (4): ACPI: parse SPCR and enable matching console ACPI: enable ACPI_SPCR_TABLE on ARM64 ACPI: add definitions of DBG2 subtypes serial: pl011: use ACPI SPCR to setup 32-bit access arch/arm64/Kconfig | 1 + drivers

Re: [PATCH v3 1/5] ACPI: change __init to __ref for early_acpi_os_unmap_memory()

2016-02-26 Thread Aleksey Makarov
fine, I use the approach I described in the last mail, it works. Thank you Aleksey Makarov > > Thanks and best regards > -Lv > >> From: Aleksey Makarov [mailto:aleksey.maka...@linaro.org] >> Sent: Monday, February 22, 2016 10:58 PM >> Subject: Re: [PATCH v3 1/5] ACPI: c

Re: [PATCH v3 1/5] ACPI: change __init to __ref for early_acpi_os_unmap_memory()

2016-02-26 Thread Aleksey Makarov
fine, I use the approach I described in the last mail, it works. Thank you Aleksey Makarov > > Thanks and best regards > -Lv > >> From: Aleksey Makarov [mailto:aleksey.maka...@linaro.org] >> Sent: Monday, February 22, 2016 10:58 PM >> Subject: Re: [PATCH v3 1/5] ACPI: c

Re: [PATCH v2 1/8] arm64: move acpi/dt decision earlier in boot process

2016-02-25 Thread Aleksey Makarov
Hi Matthias, On 02/24/2016 09:22 PM, Matthias Brugger wrote: > > > On 24/02/16 18:10, Aleksey Makarov wrote: >> From: Leif Lindholm <leif.lindh...@linaro.org> >> >> In order to support selecting earlycon via either ACPI or DT, move >> the decision o

Re: [PATCH v2 1/8] arm64: move acpi/dt decision earlier in boot process

2016-02-25 Thread Aleksey Makarov
Hi Matthias, On 02/24/2016 09:22 PM, Matthias Brugger wrote: > > > On 24/02/16 18:10, Aleksey Makarov wrote: >> From: Leif Lindholm >> >> In order to support selecting earlycon via either ACPI or DT, move >> the decision on whether to attempt ACPI configuration

Re: [PATCH v2 3/8] ACPI: add definitions of DBG2 subtypes

2016-02-24 Thread Aleksey Makarov
On 02/24/2016 08:17 PM, Moore, Robert wrote: > I've got these for the next release of ACPICA It have not been pulled to linux-next but is required for the patchset. So I included it here. > > >> -Original Message- >> From: Aleksey Makarov [mailto:aleksey.maka..

Re: [PATCH v2 3/8] ACPI: add definitions of DBG2 subtypes

2016-02-24 Thread Aleksey Makarov
On 02/24/2016 08:17 PM, Moore, Robert wrote: > I've got these for the next release of ACPICA It have not been pulled to linux-next but is required for the patchset. So I included it here. > > >> -Original Message- >> From: Aleksey Makarov [mailto:aleksey.maka..

[PATCH v2 3/8] ACPI: add definitions of DBG2 subtypes

2016-02-24 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov <aleksey.maka...@linaro.org> --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a

[PATCH v2 3/8] ACPI: add definitions of DBG2 subtypes

2016-02-24 Thread Aleksey Makarov
.85).aspx [2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a4ef625..652f747 100644

<    1   2   3   4   5   6   7   8   >