All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ACPI: parse the SPCR table
@ 2016-01-25 11:45 ` Aleksey Makarov
  0 siblings, 0 replies; 69+ messages in thread
From: Aleksey Makarov @ 2016-01-25 11:45 UTC (permalink / raw)
  To: linux-acpi
  Cc: linux-kernel, linux-arm-kernel, linux-serial, Aleksey Makarov,
	Graeme Gregory, Russell King, Greg Kroah-Hartman,
	Rafael J . Wysocki, Leif Lindholm

This patchset is based on the patchset by Leif Lindholm [1]

'ARM Server Base Boot Requirements' [2] mention SPCR 
(Serial Port Console Redirection Table) [3] as a mandatory
ACPI table that specifies the configuration of serial console.

Licensing concerns have prevented implementing it in the past, but as of
10 August 2015, these tables have both been released also under 
OWF 1.0 [4].

SPCR support is included in QEMU's ARM mach-virt since 2.4 release.

Parse the SPCR table and check if any registered console match
the description.  If it does, enable that console.

To implement that, introduce a new member
int (*acpi_match)(struct console *, struct acpi_table_spcr *);
of struct console.  It allows drivers to check if they provide
a matching console device.

Also add an implementation of this member function to the pl011 driver
and fix a minor issue in kernel/printk/printk.c

[1] https://lkml.kernel.org/g/1441716217-23786-1-git-send-email-leif.lindholm@linaro.org
[2] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html
[3] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx
[4] http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0

Aleksey Makarov (3):
  printk: make preferred_console local static bool
  ACPI: parse SPCR and enable matching console
  serial: pl011: add acpi_match for amba-pl011.c

 arch/arm64/Kconfig              |  1 +
 drivers/acpi/Kconfig            |  3 ++
 drivers/acpi/Makefile           |  1 +
 drivers/acpi/spcr.c             | 85 +++++++++++++++++++++++++++++++++++++
 drivers/tty/serial/amba-pl011.c | 14 ++++++
 include/acpi/actbl2.h           |  4 ++
 include/linux/console.h         | 12 ++++++
 kernel/printk/printk.c          | 94 +++++++++++++++++++++++++++++++----------
 8 files changed, 191 insertions(+), 23 deletions(-)
 create mode 100644 drivers/acpi/spcr.c

-- 
2.7.0


^ permalink raw reply	[flat|nested] 69+ messages in thread

end of thread, other threads:[~2016-03-04 20:04 UTC | newest]

Thread overview: 69+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 11:45 [PATCH 0/3] ACPI: parse the SPCR table Aleksey Makarov
2016-01-25 11:45 ` Aleksey Makarov
2016-01-25 11:45 ` [PATCH 1/3] printk: make preferred_console local static bool Aleksey Makarov
2016-01-25 11:45   ` Aleksey Makarov
2016-01-25 12:45   ` Joe Perches
2016-01-25 12:45     ` Joe Perches
2016-01-25 12:45     ` Joe Perches
2016-01-25 12:51     ` Aleksey Makarov
2016-01-25 12:51       ` Aleksey Makarov
2016-01-25 13:23       ` Joe Perches
2016-01-25 13:23         ` Joe Perches
2016-01-25 13:23         ` Joe Perches
2016-01-25 13:28         ` Aleksey Makarov
2016-01-25 13:28           ` Aleksey Makarov
2016-01-25 16:14           ` Peter Hurley
2016-01-25 16:14             ` Peter Hurley
2016-01-25 14:24   ` Andy Shevchenko
2016-01-25 14:24     ` Andy Shevchenko
2016-01-25 14:55     ` Aleksey Makarov
2016-01-25 14:55       ` Aleksey Makarov
2016-01-25 11:45 ` [PATCH 2/3] ACPI: parse SPCR and enable matching console Aleksey Makarov
2016-01-25 11:45   ` Aleksey Makarov
2016-01-25 14:14   ` Andy Shevchenko
2016-01-25 14:14     ` Andy Shevchenko
2016-01-25 15:07     ` Aleksey Makarov
2016-01-25 15:07       ` Aleksey Makarov
2016-01-25 16:32   ` Peter Hurley
2016-01-25 16:32     ` Peter Hurley
2016-01-27 13:57     ` Aleksey Makarov
2016-01-27 13:57       ` Aleksey Makarov
2016-01-28  0:45       ` Peter Hurley
2016-01-28  0:45         ` Peter Hurley
2016-01-28 13:23         ` Aleksey Makarov
2016-01-28 13:23           ` Aleksey Makarov
2016-01-28 19:40           ` Peter Hurley
2016-01-28 19:40             ` Peter Hurley
2016-02-01  9:01   ` Graeme Gregory
2016-02-01  9:01     ` Graeme Gregory
2016-02-01  9:13     ` Graeme Gregory
2016-02-01  9:13       ` Graeme Gregory
2016-01-25 11:45 ` [PATCH 3/3] serial: pl011: add acpi_match for amba-pl011.c Aleksey Makarov
2016-01-25 11:45   ` Aleksey Makarov
2016-01-25 14:21   ` Andy Shevchenko
2016-01-25 14:21     ` Andy Shevchenko
2016-01-25 14:22     ` Andy Shevchenko
2016-01-25 14:22       ` Andy Shevchenko
2016-01-25 15:08       ` Aleksey Makarov
2016-01-25 15:08         ` Aleksey Makarov
2016-01-25 16:11 ` [PATCH 0/3] ACPI: parse the SPCR table Peter Hurley
2016-01-25 16:11   ` Peter Hurley
2016-01-27 12:17   ` Aleksey Makarov
2016-01-27 12:17     ` Aleksey Makarov
2016-01-27 12:17     ` Aleksey Makarov
2016-01-27 13:45     ` One Thousand Gnomes
2016-01-27 13:45       ` One Thousand Gnomes
2016-01-27 13:45       ` One Thousand Gnomes
2016-02-01  5:46       ` Jon Masters
2016-02-01  5:46         ` Jon Masters
2016-02-01  5:46         ` Jon Masters
2016-02-10 23:39     ` Al Stone
2016-02-10 23:39       ` Al Stone
2016-03-03 20:08       ` Peter Hurley
2016-03-03 20:08         ` Peter Hurley
2016-03-03 20:08         ` Peter Hurley
     [not found]         ` <67709E22-E82E-40BA-A271-2107608F4EF3@redhat.com>
2016-03-04 19:34           ` Peter Hurley
2016-03-04 19:34             ` Peter Hurley
2016-03-04 20:03             ` Peter Hurley
2016-03-04 20:03               ` Peter Hurley
2016-03-04 20:03               ` Peter Hurley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.