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
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
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
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
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
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
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...@
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
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
-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
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
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'
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:
>>>&
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
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
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
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
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
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
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
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
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
-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.
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
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
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
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
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
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
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
+ 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
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
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
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
.
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
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() (
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
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
(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
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
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
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.
>>>
>
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
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 +=
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
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
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
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
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&
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.
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
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
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
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/
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
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
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 +-
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
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
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,
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
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
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
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
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 +-
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
-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 +
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
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
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
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
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]
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
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
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
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
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
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
.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
-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
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
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
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
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
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
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
.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
-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
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
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 |
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
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 +---
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
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
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:
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
.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
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
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
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
201 - 300 of 390 matches
Mail list logo