[PATCH v2 11/12] MIPS: OCTEON: Update octeon-model.h code for new SoCs.

2014-12-18 Thread Aleksey Makarov
From: David Daney Add coverage for OCTEON III models. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/octeon/octeon-model.h | 65 - 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/octeon

[PATCH] MIPS: Remove unneeded #ifdef __KERNEL__ from asm/processor.h

2014-12-18 Thread Aleksey Makarov
From: David Daney Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/processor.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index f1df4cb..6c10e94 100644 --- a/arch/mips

[PATCH v2] mmc: OCTEON: Add host driver for OCTEON MMC controller

2015-01-20 Thread Aleksey Makarov
Chavva Signed-off-by: Peter Swain [aleksey.maka...@auriga.com: preparation for submission] Signed-off-by: Aleksey Makarov --- This patch should be applied on top of the patchset "MIPS: OCTEON: flash: syncronize bootbus access" https://lkml.kernel.org/g/<1419337623-16101-1-git-send-email

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

2016-04-06 Thread Aleksey Makarov
ented differently. Now the code uses the existing match() member of struct console. It has already been implemented for 8250. Probably SPCR table specifies incorrect data. It was reported that D02 board has similar issue. Thank you Aleksey Makarov > > --Mark > > > On Thu, 20

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

2016-04-06 Thread Aleksey Makarov
Hi Rafael, May I ask for review/ACK for this new version please? Thank you Aleksey Makarov On 03/31/2016 04:40 PM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port > Console Redirection Table) [2] as a mandatory ACPI table that

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

2016-03-31 Thread Aleksey Makarov
ction 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 del

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

2016-03-31 Thread Aleksey Makarov
enter.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 [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...@

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

2016-03-31 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 v7 3/5] ACPI: parse SPCR and enable matching console

2016-03-31 Thread Aleksey Makarov
f required, enable specified console. Thanks to Peter Hurley for explaining how this should 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: Aleks

[PATCH v7 4/5] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-03-31 Thread Aleksey Makarov
-arch. When ACPI_SPCR_TABLE is defined initialization of DT earlycon is deferred until the DT/ACPI decision is done. Initialize DT earlycon if ACPI is disabled. Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 11 ++- 2 files change

[PATCH v7 2/5] ACPICA: Headers: Add new constants for the DBG2 ACPI table

2016-03-31 Thread Aleksey Makarov
ACPICA commit 1607b69238df9c1b2940262a17aa94ec49033278 Link: https://github.com/acpica/acpica/commit/1607b692 Signed-off-by: Aleksey Makarov . Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- DO NOT MERGE This patch is from pending ACPICA series [1]. It is needed by the next patch, but

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

2016-03-31 Thread Aleksey Makarov
On 03/31/2016 07:32 PM, Greg Kroah-Hartman wrote: > On Thu, Mar 31, 2016 at 04:40:23PM +0300, Aleksey Makarov wrote: >> From: Leif Lindholm >> >> We have multiple "earlycon" early_param handlers - merge the DT one into >> the main earlycon one. It'

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

2016-03-31 Thread Aleksey Makarov
On 03/31/2016 08:37 PM, Greg Kroah-Hartman wrote: > On Thu, Mar 31, 2016 at 08:04:20PM +0300, Aleksey Makarov wrote: >> >> >> On 03/31/2016 07:32 PM, Greg Kroah-Hartman wrote: >>> On Thu, Mar 31, 2016 at 04:40:23PM +0300, Aleksey Makarov wrote: >>>&

[PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Aleksey Makarov
terface Type field of the SPCR table. For discussion: https://lkml.kernel.org/r/7fa523de-3fbb-1566-f521-927143f73...@redhat.com Signed-off-by: Aleksey Makarov Signed-off-by: Graeme Gregory Reported-by: Heyi Guo --- drivers/acpi/spcr.c | 4 1 file changed, 4 insertions(+) diff --git a/driv

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-06 Thread Aleksey Makarov
0"; break; case 7: - baud_rate = 115200; + baud_rate_string = ",115200"; break; default: err = -ENOENT; goto done; } - snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, i

[RFC v2 1/4] ACPI: SPCR: check bit width for the 16550 UART

2016-12-06 Thread Aleksey Makarov
terface Type field of the SPCR table. Signed-off-by: Aleksey Makarov Signed-off-by: Graeme Gregory Reported-by: Heyi Guo --- drivers/acpi/spcr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c index e8d7bc7..6c6710b 100644 --- a/drivers/acpi/sp

[RFC v2 2/4] ACPI: SPCR: don't initialize baud rate

2016-12-06 Thread Aleksey Makarov
es a check for this value. In this case the code does not emit baud rate specification for initialization of the console. Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/acpi/spcr.c

[RFC v2 3/4] ACPI: DBG2: add 16550 UART with 32-bit access

2016-12-06 Thread Aleksey Makarov
would be 16550-compatible with 32-bit access. There already exists 32-bit variant ACPI_DBG2_ARM_SBSA_32BIT of SBSA console ACPI_DBG2_ARM_SBSA_GENERIC. This patch introduces it to Linux kernel. Signed-off-by: Aleksey Makarov --- include/acpi/actbl2.h | 1 + 1 file changed, 1 insertion(+) diff

[RFC v2 0/4] ACPI: SPCR: 32-bit access and non-standard baud rate

2016-12-06 Thread Aleksey Makarov
https://lkml.kernel.org/r/20160905123617.18775-1-aleksey.maka...@linaro.org [discussion] https://lkml.kernel.org/r/7fa523de-3fbb-1566-f521-927143f73...@redhat.com [v1] https://lkml.kernel.org/r/20161205130534.11080-1-aleksey.maka...@linaro.org Aleksey Makarov (4): ACPI: SPCR: check bit width fo

[RFC v2 4/4] ACPI: SPCR: support 16550 UART with 32-bit access

2016-12-06 Thread Aleksey Makarov
would be 16550-compatible with 32-bit access. There already exists 32-bit variant ACPI_DBG2_ARM_SBSA_32BIT of SBSA console ACPI_DBG2_ARM_SBSA_GENERIC. This patch supports this type of console. Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v3] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-17 Thread Aleksey Makarov
d caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. [1] https://lkml.kernel.org/r/1484127714-3263-1-git-send-email-eric.au...@redhat.com Signed-off-by: Aleksey Makarov --- v3: - keep formatting of the comment - fix printk message after t

Re: [PATCH v3] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-19 Thread Aleksey Makarov
Hi Tomasz, On 01/19/2017 11:55 AM, Tomasz Nowicki wrote: > Hi Aleksey, > > On 17.01.2017 16:14, Aleksey Makarov wrote: >> Enable the Extended Stream ID feature when available. >> >> This patch on top of series "KVM PCIe/MSI passthrough on ARM/ARM64 >> and I

[PATCH v4] iommu/arm-smmu: Support for Extended Stream ID (16 bit)

2017-01-19 Thread Aleksey Makarov
-off-by: Aleksey Makarov Tested-by: Tomasz Nowicki --- v4: change the commit message: - explain the reason why the warning happens (Tomasz Nowicki) - add 'Reviewed-by' and 'Tested-by' from Tomasz Nowicki v3: https://lkml.kernel.org/r/20170117151431.17085-1-aleksey.maka.

Re: [RFC PATCH] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-16 Thread Aleksey Makarov
On 01/11/2017 05:15 PM, Robin Murphy wrote: > On 10/01/17 11:57, Aleksey Makarov wrote: >> Enable the Extended Stream ID feature when available. >> >> This patch on top of series "[PATCH v7 00/19] KVM PCIe/MSI passthrough >> on ARM/ARM64 and IOVA reserved reg

[PATCH v2] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-16 Thread Aleksey Makarov
d caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. [1] https://lkml.kernel.org/r/1484127714-3263-1-git-send-email-eric.au...@redhat.com Signed-off-by: Aleksey Makarov --- v2: - remove unnecessary parentheses (Robin Murphy) - refactor t

[RFC PATCH] IOMMU: SMMUv2: Support for Extended Stream ID (16 bit)

2017-01-10 Thread Aleksey Makarov
that card caused a warning like pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) during boot. Signed-off-by: Aleksey Makarov --- drivers/iommu/arm-smmu.c | 53 +--- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git

Re: [PATCH v8 4/4] serial: pl011: add console matching function

2016-06-22 Thread Aleksey Makarov
On 05/20/2016 04:03 PM, Aleksey Makarov wrote: > 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

Re: [PATCH v3 5/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-14 Thread Aleksey Makarov
On 06/02/2016 08:49 PM, Aleksey Makarov wrote: > From: Jon Masters > > This patch adds support for ACPI_TABLE_UPGRADE for ARM64 Hi Catalin, Will, Can you review this v3 patch please? I changed PFN_PHYS(max_pfn) to MEMBLOCK_ALLOC_ACCESSIBLE. Thank you Aleksey Makarov > To a

[PATCH v3 5/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-02 Thread Aleksey Makarov
acpi_table_upgrade() and acpi_boot_table_init() are called so I think that we can just move this mapping one function earlier too. Signed-off-by: Jon Masters Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig| 1 + arch/arm64/include/asm/acpi.h | 2 ++ arch/arm64/kernel/setup.c | 6

Re: [PATCH v8 4/4] serial: pl011: add console matching function

2016-06-02 Thread Aleksey Makarov
On 05/20/2016 04:03 PM, Aleksey Makarov wrote: > 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 t

Re: [PATCH v3 11/14] ACPI: irq: introduce interrupt producer

2016-12-01 Thread Aleksey Makarov
+ else if (acpi_gsi_domain_id) + /* devices connecting to gicd in default */ + fwspec.fwnode = acpi_gsi_domain_id; + else { pr_warn("GSI: No registered irqchip, giving up\n"); return -EINVAL; } [ ... ] All the best Aleksey Makarov

[PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
introduce predicate _braille_is_braille_console() that checks if its argument is an entry describing a braille console. Also introduce a macro for_each_console_cmdline() to traverse the console_cmdline array. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v5 -> v6: - drop v5 and

Re: [PATCH v6 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
On 03/17/2017 02:43 PM, Aleksey Makarov wrote: [..] > @@ -2457,40 +2491,50 @@ void register_console(struct console *newcon) > } > > /* > - * See if this console matches one we selected on > - * the command line. > + * See if this c

[PATCH v7 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
t matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v6 -> v7: - return back to v5 :) - leave the check for already registered entries and add a function that maintains the invariant. v5 -> v6: - drop v5 and continue to work on v4: - introduce _braille_is_braille_c

Re: [PATCH] braille-console: Fix value returned by _braille_console_setup

2017-03-19 Thread Aleksey Makarov
. Did you test the code on real braille hardware? I am asking because there could also be other problems with the code that have not been run for 3 years since it was changed. Thank you Aleksey Makarov Signed-off-by: Samuel Thibault Cc: Aleksey Makarov Cc: Joe Perches Cc: Ming Lei Cc: Stev

[PATCH v8 3/3] printk: fix double printing with earlycon

2017-03-20 Thread Aleksey Makarov
t matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v7 -> v8: - add an explanation to the comment how console_cmdline can contain entries referring to the same console - move the body of the function introduced in the previous version to cycle - don't panic() (

Re: [PATCH v8 3/3] printk: fix double printing with earlycon

2017-03-27 Thread Aleksey Makarov
On 03/27/2017 05:14 PM, Petr Mladek wrote: On Mon 2017-03-20 13:03:00, Aleksey Makarov wrote: [..] diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index fd752f0c8ef1..462036e7a767 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1909,8 +1909,28 @@ static

[PATCH v5 0/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
01161347.4202-1-aleksey.maka...@linaro.org [1] https://lkml.kernel.org/r/1485963998-921-1-git-send-email-sudeep.ho...@arm.com commit aea9a80ba98a ("tty: serial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro

[PATCH v5 1/3] printk: fix name/type/scope of preferred_console var

2017-03-15 Thread Aleksey Makarov
(VMware) Reviewed-by: Sergey Senozhatsky Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 2984fb0f0257..80bc1b72d03d 100644 --- a/kernel/printk

[PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-15 Thread Aleksey Makarov
le is preferred then it will be the first matching entry. Reported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 45 + 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/kernel/printk/printk.c b/kernel

[PATCH v5 2/3] printk: rename selected_console -> preferred_console

2017-03-15 Thread Aleksey Makarov
re consoles are selected (enabled) and only one is preferred (first)." Acked-by: Steven Rostedt (VMware) Acked-by: Petr Mladek Reviewed-by: Sergey Senozhatsky Suggested-by: Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 10 +- 1 file changed, 5 insert

Re: [PATCH v3] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-16 Thread Aleksey Makarov
On 03/16/2017 10:11 AM, Jayachandran C. wrote: > Hi Greg, > > On Tue, Mar 14, 2017 at 9:44 PM, Sudeep Holla wrote: >> >> >> On 01/03/17 15:23, Aleksey Makarov wrote: >>> The original patch makes the condition always true, so it is wrong. >>> >

Re: [PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-16 Thread Aleksey Makarov
On 03/15/2017 07:58 PM, Petr Mladek wrote: > On Wed 2017-03-15 13:28:52, Aleksey Makarov wrote: >> If a console was specified by ACPI SPCR table _and_ command line >> parameters like "console=ttyAMA0" _and_ "earlycon" were specified, >> then log messa

Does braille console work?

2017-03-16 Thread Aleksey Makarov
Hi, I am looking at the braille console code and don't understand how its initialization works. This is from kernel/printk/braille.c: char *_braille_console_setup(char **str, char **brl_options) { if (!strncmp(*str, "brl,", 4)) { *brl_options = ""; *str +=

Re: [PATCH v5 3/3] printk: fix double printing with earlycon

2017-03-17 Thread Aleksey Makarov
On 03/16/2017 04:54 PM, Petr Mladek wrote: > On Thu 2017-03-16 13:36:35, Aleksey Makarov wrote: >> >> >> On 03/15/2017 07:58 PM, Petr Mladek wrote: >>> On Wed 2017-03-15 13:28:52, Aleksey Makarov wrote: [..] > I personally prefer v4. The braille console adds an

Re: Does braille console work?

2017-03-17 Thread Aleksey Makarov
On 03/17/2017 03:53 AM, Samuel Thibault wrote: > Hello, > > Aleksey Makarov, on jeu. 16 mars 2017 17:02:53 +0300, wrote: >> There can be 3 outcomes from this function: >> 1) it returns NULL and does not set brl_options >> 2) it returns NULL and set the variable poin

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-07 Thread Aleksey Makarov
On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: On (03/03/17 18:49), Aleksey Makarov wrote: [..] +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN, CONSOLE_MATCH_NEXT } +match_console(struct console *newcon, struct console_cmdline *c) that enum in function return is interesting :) can we

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-08 Thread Aleksey Makarov
On 03/08/2017 06:33 AM, Sergey Senozhatsky wrote: Hello, sorry for the delay. On (03/07/17 15:54), Aleksey Makarov wrote: On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: On (03/03/17 18:49), Aleksey Makarov wrote: [..] +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN

Re: [PATCH] iommu/arm-smmu: Report smmu type in dmesg

2017-03-08 Thread Aleksey Makarov
RM_SMMU_V2, ARM_MMU500, "arm-mmu500"); +ARM_SMMU_TYPE(cavium_smmuv2, ARM_SMMU_V2, CAVIUM_SMMUV2, "cavium-smmuv2"); So that this change will not be required? Thank you Aleksey Makarov static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,smmu-v1&

[PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-03 Thread Aleksey Makarov
ported-by: Sudeep Holla Signed-off-by: Aleksey Makarov --- v2 -> v3: v2 still changes the logic of the code and calls newcon->match() several times. V3 fixes that. It initially matches the console against the preferred_console entry, and then if that fails, against other entries.

Re: [PATCH] tty: serial: pl011: add ttyAMA for matching pl011 console

2017-03-01 Thread Aleksey Makarov
nsidered to match pl011 console. > > Fixes: 10879ae5f12e ("serial: pl011: add console matching function") > Cc: Russell King > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Peter Hurley > Cc: Aleksey Makarov > Signed-off-by: Sudeep Holla > --- > drivers/t

[PATCH] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes condition always true, so it is wrong. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. --- drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c i

Re: [PATCH] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
On 03/01/2017 03:59 PM, Robin Murphy wrote: > On 01/03/17 12:26, Aleksey Makarov wrote: >> The original patch makes condition always true, so it is wrong. >> >> This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. > > It seems fairly clear that the intent

[PATCH v3] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
the root cause was identified incorrectly. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. Signed-off-by: Aleksey Makarov --- v3: fix commit message (Robin Murphy) v2: add Signed-off-by: drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH v2] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes condition always true, so it is wrong. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. Signed-off-by: Aleksey Makarov --- v2: add Signed-off-by: drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 0/2] printk: fix double printing with earlycon

2017-03-01 Thread Aleksey Makarov
ial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro.org [3] https://lkml.kernel.org/r/1455299022-11641-2-git-send-email-aleksey.maka...@linaro.org Aleksey Makarov (2): printk: fix name and type of some vari

[PATCH 1/2] printk: fix name and type of some variables

2017-03-01 Thread Aleksey Makarov
variables: selected_console -> preferred_console preferred_console -> has_preferred and make the new has_preferred local static bool. Renaming was suggested by Peter Hurley Signed-off-by: Aleksey Makarov Tested-by: Christopher Covington --- kernel/printk/printk.c | 18 +-

[PATCH 2/2] printk: fix double printing with earlycon

2017-03-01 Thread Aleksey Makarov
set, so bootconsole is not deregistered. To fix that, match the console against the `console_cmdline` entry pointed by `preferred_console` instead of the first match. Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 52 ++ 1 file ch

[PATCH v2 0/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
com commit aea9a80ba98a ("tty: serial: pl011: add ttyAMA for matching pl011 console") [2] https://lkml.kernel.org/r/20170301152304.29635-1-aleksey.maka...@linaro.org [3] https://lkml.kernel.org/r/1455299022-11641-2-git-send-email-aleksey.maka...@linaro.org Aleksey Makarov (3): printk

[PATCH v2 3/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
t, so bootconsole is not deregistered. To fix that, match the console against the `console_cmdline` entry pointed by `preferred_console` instead of the first match. Signed-off-by: Aleksey Makarov --- kernel/printk/printk.c | 49 ++--- 1 file changed,

[PATCH v2 1/3] printk: fix name/type/scope of preferred_console var

2017-03-02 Thread Aleksey Makarov
The variable preferred_console is used only inside register_console() and its semantics is boolean. It is negative when no console has been made preferred. Make it static bool and rename to has_preferred. Renaming was suggested by Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk

[PATCH v2 2/3] printk: rename selected_console -> preferred_console

2017-03-02 Thread Aleksey Makarov
The variable selected_console is set in __add_preferred_console() to point to the last console parameter that was added to the console_cmdline array. Rename it to preferred_console so that the name reflects the usage. Suggested-by: Peter Hurley Signed-off-by: Aleksey Makarov --- kernel/printk

Re: [PATCH v2 3/3] printk: fix double printing with earlycon

2017-03-02 Thread Aleksey Makarov
On 03/02/2017 04:11 PM, Aleksey Makarov wrote: > If a console was specified by ACPI SPCR table _and_ command line > parameters like "console=ttyAMA0" _and_ "earlycon" were specified, > then log messages appear twice. > > The root cause is that the code travers

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

2016-08-11 Thread Aleksey Makarov
nel.org/g/1453722324-22407-1-git-send-email-aleksey.maka...@linaro.org [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 [3] https://lkml.kernel.org/g/1441716217-23786-1-git-send

[PATCH v9 1/4] of/serial: move earlycon early_param handling to serial

2016-08-11 Thread Aleksey Makarov
ction from arch/microblaze/kernel/prom.c Signed-off-by: Leif Lindholm Signed-off-by: Aleksey Makarov Acked-by: Rob Herring Acked-by: Greg Kroah-Hartman Reviewed-by: Peter Hurley Tested-by: Kefeng Wang --- drivers/of/fdt.c | 11 +-- drivers/tty/serial/earlycon.c | 2 +-

[PATCH v9 2/4] ACPI: parse SPCR and enable matching console

2016-08-11 Thread Aleksey Makarov
f required, enable specified console. Thanks to Peter Hurley for explaining how this should 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: Aleks

[PATCH v9 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE

2016-08-11 Thread Aleksey Makarov
-arch. When ACPI_SPCR_TABLE is defined initialization of DT earlycon is deferred until the DT/ACPI decision is done. Initialize DT earlycon if ACPI is disabled. Signed-off-by: Aleksey Makarov Tested-by: Kefeng Wang --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 11 +

[PATCH v9 4/4] serial: pl011: add console matching function

2016-08-11 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 Reviewed-by: Peter Hurley

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 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 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 se

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]

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 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

[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 --- d

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

2016-03-22 Thread Aleksey Makarov
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 [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

[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 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 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 --- a

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

2016-03-22 Thread Aleksey Makarov
-arch. 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

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

2016-03-22 Thread Aleksey Makarov
his should 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

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

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 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 multipl

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 ACPI SPCR tab

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

2016-03-24 Thread Aleksey Makarov
tps://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-...@codeaurora.org Aleksey Makarov (4): ACPI: add definitions of DBG2 subtypes ACPI: parse SPCR and enable matching console ACPI: enable ACPI_SPCR_TABLE

[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 --- a

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

2016-03-24 Thread Aleksey Makarov
-arch. 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

[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 3/5] ACPI: parse SPCR and enable matching console

2016-03-24 Thread Aleksey Makarov
s/hardware/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 |

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

2016-03-24 Thread Aleksey Makarov
ction 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/d

[PATCH 2/8] of/serial: move earlycon early_param handling to serial

2016-02-22 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 --- drivers/of/fdt.c | 11 +---

[PATCH 6/8] ACPI: serial: implement earlycon on ACPI DBG2 port

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

[PATCH 7/8] ACPI: enable ACPI_DBG2_TABLE on ARM64

2016-02-22 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 6bb21d8..27cb5d7 100644 --- a

[PATCH 4/8] ACPI: genaralize iterating over subtables in ACPI_PROBE_TABLE()

2016-02-22 Thread Aleksey Makarov
e subtable 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:

[PATCH 8/8] serial: pl011: add ACPI DBG2 serial port

2016-02-22 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 3/8] ACPI: add definitions of DBG2 subtypes

2016-02-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 --- a

[PATCH 5/8] ACPI: parse DBG2 table

2016-02-22 Thread Aleksey Makarov
nd subtype. - 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/ac

[PATCH 0/8] ACPI: parse the DBG2 table

2016-02-22 Thread Aleksey Makarov
for pl011 serial [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html [2] http://go.microsoft.com/fwlink/p/?LinkId=234837 [3] https://lkml.kernel.org/g/49532-8305-1-git-send-email-aleksey.maka...@linaro.org Aleksey Makarov (6): ACPI: add definitions of DBG2 subty

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

2016-02-22 Thread Aleksey Makarov
From: Leif Lindholm In order to support selecting earlycon via either ACPI or DT, move the decision on whether to attempt ACPI configuration into the early_param handling. Then make acpi_boot_table_init() bail out if acpi_disabled. Signed-off-by: Leif Lindholm --- arch/arm64/kernel/acpi.c | 54

<    1   2   3   4   >