All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graeme Gregory <gg@slimlogic.co.uk>
To: Mark Salter <msalter@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>,
	Aleksey Makarov <amakarov.linux@gmail.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Aleksey Makarov <aleksey.makarov@linaro.org>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	"Zheng, Lv" <lv.zheng@intel.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>,
	Russell King <linux@arm.linux.org.uk>,
	Peter Hurley <peter@hurleysoftware.com>,
	Graeme Gregory <graeme.gregory@linaro.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	linux-kernel@vger.kernel.org,
	Leif Lindholm <leif.lindholm@linaro.org>,
	linux-acpi@vger.kernel.org,
	Yury Norov <ynorov@caviumnetworks.com>,
	Christopher Covington <cov@codeaurora.org>,
	linux-serial@vger.kernel.org, Al Stone <ahs3@redhat.com>,
	linux-arm-kern
Subject: Re: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE
Date: Fri, 9 Sep 2016 09:36:27 +0100	[thread overview]
Message-ID: <20160909083627.GA7292@xora-monster> (raw)
In-Reply-To: <1473352456.21193.8.camel@redhat.com>

On Thu, Sep 08, 2016 at 12:34:16PM -0400, Mark Salter wrote:
> On Thu, 2016-09-08 at 12:16 +0100, Will Deacon wrote:
> > On Wed, Sep 07, 2016 at 12:30:19PM +0300, Aleksey Makarov wrote:
> > > 
> > > 
> > > On 09/05/2016 03:36 PM, Aleksey Makarov wrote:
> > > > 
> > > > SBBR mentions SPCR as a mandatory ACPI table.  So enable it for ARM64
> > > > 
> > > > Earlycon should be set up as early as possible.  ACPI boot tables are
> > > > mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that
> > > > is called from setup_arch() and that's where we parse SPCR.
> > > > So it has to be opted-in per-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.
> > > Hi Will, Catalin,
> > > 
> > > Can you review this patch and consider ACKing it please?
> > Hanjun, Al, Mark, Graeme -- any comments on this?
> > 
> > Will
> 
> I think there is a problem still with systems using 32-bit access to 8250
> UARTs (i.e. Mustang) but that will need a DBG2 table spec change and
> followup patch to resolve.
> 

We went over this with the HPE firmware people. The General Address
Structure has Register Bit Width and Access Size fields. If set
correctly then 8250 UART works.

AFAIK Moonshot firmware has this fix, I have no access to Mustang
firmware to verify on that platform.

Graeme

WARNING: multiple messages have this Message-ID (diff)
From: Graeme Gregory <gg@slimlogic.co.uk>
To: Mark Salter <msalter@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>,
	Aleksey Makarov <amakarov.linux@gmail.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Aleksey Makarov <aleksey.makarov@linaro.org>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	"Zheng, Lv" <lv.zheng@intel.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>,
	Russell King <linux@arm.linux.org.uk>,
	Peter Hurley <peter@hurleysoftware.com>,
	Graeme Gregory <graeme.gregory@linaro.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	linux-kernel@vger.kernel.org,
	Leif Lindholm <leif.lindholm@linaro.org>,
	linux-acpi@vger.kernel.org,
	Yury Norov <ynorov@caviumnetworks.com>,
	Christopher Covington <cov@codeaurora.org>,
	linux-serial@vger.kernel.org, Al Stone <ahs3@redhat.com>,
	linux-arm-kernel@lists.infradead.org, Len Brown <lenb@kernel.org>
Subject: Re: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE
Date: Fri, 9 Sep 2016 09:36:27 +0100	[thread overview]
Message-ID: <20160909083627.GA7292@xora-monster> (raw)
In-Reply-To: <1473352456.21193.8.camel@redhat.com>

On Thu, Sep 08, 2016 at 12:34:16PM -0400, Mark Salter wrote:
> On Thu, 2016-09-08 at 12:16 +0100, Will Deacon wrote:
> > On Wed, Sep 07, 2016 at 12:30:19PM +0300, Aleksey Makarov wrote:
> > > 
> > > 
> > > On 09/05/2016 03:36 PM, Aleksey Makarov wrote:
> > > > 
> > > > SBBR mentions SPCR as a mandatory ACPI table.  So enable it for ARM64
> > > > 
> > > > Earlycon should be set up as early as possible.  ACPI boot tables are
> > > > mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that
> > > > is called from setup_arch() and that's where we parse SPCR.
> > > > So it has to be opted-in per-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.
> > > Hi Will, Catalin,
> > > 
> > > Can you review this patch and consider ACKing it please?
> > Hanjun, Al, Mark, Graeme -- any comments on this?
> > 
> > Will
> 
> I think there is a problem still with systems using 32-bit access to 8250
> UARTs (i.e. Mustang) but that will need a DBG2 table spec change and
> followup patch to resolve.
> 

We went over this with the HPE firmware people. The General Address
Structure has Register Bit Width and Access Size fields. If set
correctly then 8250 UART works.

AFAIK Moonshot firmware has this fix, I have no access to Mustang
firmware to verify on that platform.

Graeme

WARNING: multiple messages have this Message-ID (diff)
From: gg@slimlogic.co.uk (Graeme Gregory)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE
Date: Fri, 9 Sep 2016 09:36:27 +0100	[thread overview]
Message-ID: <20160909083627.GA7292@xora-monster> (raw)
In-Reply-To: <1473352456.21193.8.camel@redhat.com>

On Thu, Sep 08, 2016 at 12:34:16PM -0400, Mark Salter wrote:
> On Thu, 2016-09-08 at 12:16 +0100, Will Deacon wrote:
> > On Wed, Sep 07, 2016 at 12:30:19PM +0300, Aleksey Makarov wrote:
> > > 
> > > 
> > > On 09/05/2016 03:36 PM, Aleksey Makarov wrote:
> > > > 
> > > > SBBR mentions SPCR as a mandatory ACPI table.??So enable it for ARM64
> > > > 
> > > > Earlycon should be set up as early as possible.??ACPI boot tables are
> > > > mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that
> > > > is called from setup_arch() and that's where we parse SPCR.
> > > > So it has to be opted-in per-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.
> > > Hi Will, Catalin,
> > > 
> > > Can you review this patch and consider ACKing it please?
> > Hanjun, Al, Mark, Graeme -- any comments on this?
> > 
> > Will
> 
> I think there is a problem still with systems using 32-bit access to 8250
> UARTs (i.e. Mustang) but that will need a DBG2 table spec change and
> followup patch to resolve.
> 

We went over this with the HPE firmware people. The General Address
Structure has Register Bit Width and Access Size fields. If set
correctly then 8250 UART works.

AFAIK Moonshot firmware has this fix, I have no access to Mustang
firmware to verify on that platform.

Graeme

  reply	other threads:[~2016-09-09  8:36 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 12:36 [PATCH v10 0/4] ACPI: parse the SPCR table Aleksey Makarov
2016-09-05 12:36 ` Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 1/4] of/serial: move earlycon early_param handling to serial Aleksey Makarov
2016-09-05 12:36   ` Aleksey Makarov
2016-09-05 12:36   ` Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 2/4] ACPI: parse SPCR and enable matching console Aleksey Makarov
2016-09-05 12:36   ` Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE Aleksey Makarov
2016-09-05 12:36   ` Aleksey Makarov
2016-09-07  9:30   ` Aleksey Makarov
2016-09-07  9:30     ` Aleksey Makarov
2016-09-08 11:16     ` Will Deacon
2016-09-08 11:16       ` Will Deacon
2016-09-08 13:25       ` Graeme Gregory
2016-09-08 13:25         ` Graeme Gregory
2016-09-08 13:25         ` Graeme Gregory
2016-09-08 13:35       ` Hanjun Guo
2016-09-08 13:35         ` Hanjun Guo
2016-09-08 16:34       ` Mark Salter
2016-09-08 16:34         ` Mark Salter
2016-09-09  8:36         ` Graeme Gregory [this message]
2016-09-09  8:36           ` Graeme Gregory
2016-09-09  8:36           ` Graeme Gregory
2016-09-09  9:28         ` Hanjun Guo
2016-09-09  9:28           ` Hanjun Guo
2016-09-13 18:45           ` Mark Salter
2016-09-13 18:45             ` Mark Salter
2016-09-09  9:29     ` Will Deacon
2016-09-09  9:29       ` Will Deacon
2016-09-09 15:07       ` Aleksey Makarov
2016-09-09 15:07         ` Aleksey Makarov
2016-09-09 15:17         ` Will Deacon
2016-09-09 15:17           ` Will Deacon
2016-09-05 12:36 ` [PATCH v10 4/4] serial: pl011: add console matching function Aleksey Makarov
2016-09-05 12:36   ` Aleksey Makarov
2016-09-12 15:55 ` [PATCH v10 0/4] ACPI: parse the SPCR table Aleksey Makarov
2016-09-12 15:55   ` Aleksey Makarov
2016-09-16 13:40 ` Aleksey Makarov
2016-09-16 13:40   ` Aleksey Makarov
2016-09-21 10:27 ` Aleksey Makarov
2016-09-21 10:27   ` Aleksey Makarov
2016-09-21 10:37   ` Greg Kroah-Hartman
2016-09-21 10:37     ` Greg Kroah-Hartman
2016-09-21 16:19     ` Timur Tabi
2016-09-21 16:19       ` Timur Tabi
2016-09-21 16:19       ` Timur Tabi
2016-09-21 16:38       ` Greg Kroah-Hartman
2016-09-21 16:38         ` Greg Kroah-Hartman
2016-09-21 16:38         ` Greg Kroah-Hartman
2016-09-21 17:22         ` Aleksey Makarov
2016-09-21 17:22           ` Aleksey Makarov
2016-09-21 17:22           ` Aleksey Makarov
2016-09-26 19:48           ` Aleksey Makarov
2016-09-26 19:48             ` Aleksey Makarov
2016-09-26 19:48             ` Aleksey Makarov
2016-09-27 15:19             ` Greg Kroah-Hartman
2016-09-27 15:19               ` Greg Kroah-Hartman
2016-09-27 15:19               ` Greg Kroah-Hartman
     [not found]               ` <20160927151953.GB4371-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2016-09-27 20:54                 ` [PATCH v11 1/4] of/serial: move earlycon early_param handling to serial Aleksey Makarov
2016-09-27 20:54                   ` Aleksey Makarov
2016-09-27 20:54                   ` Aleksey Makarov
2016-09-27 20:54                   ` [PATCH v11 2/4] ACPI: parse SPCR and enable matching console Aleksey Makarov
2016-09-27 20:54                     ` Aleksey Makarov
2017-09-11  9:11                     ` Andreas Schwab
2017-09-11  9:11                       ` Andreas Schwab
2017-09-11 11:05                       ` Leif Lindholm
2017-09-11 11:05                         ` Leif Lindholm
2017-09-11 11:39                         ` Andreas Schwab
2017-09-11 11:39                           ` Andreas Schwab
2017-09-11 11:39                           ` Andreas Schwab
2017-09-11 12:24                           ` Graeme Gregory
2017-09-11 12:24                             ` Graeme Gregory
2017-09-11 12:24                             ` Graeme Gregory
2017-09-11 12:28                             ` Andreas Schwab
2017-09-11 12:28                               ` Andreas Schwab
2017-09-11 12:28                               ` Andreas Schwab
2017-09-11 13:03                               ` Graeme Gregory
2017-09-11 13:03                                 ` Graeme Gregory
2017-09-11 13:03                                 ` Graeme Gregory
2017-09-11 13:23                               ` Leif Lindholm
2017-09-11 13:23                                 ` Leif Lindholm
2017-09-11 13:23                                 ` Leif Lindholm
2016-09-27 20:54                   ` [PATCH v11 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE Aleksey Makarov
2016-09-27 20:54                     ` Aleksey Makarov
2016-09-27 20:54                   ` [PATCH v11 4/4] serial: pl011: add console matching function Aleksey Makarov
2016-09-27 20:54                     ` Aleksey Makarov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160909083627.GA7292@xora-monster \
    --to=gg@slimlogic.co.uk \
    --cc=ahs3@redhat.com \
    --cc=aleksey.makarov@linaro.org \
    --cc=amakarov.linux@gmail.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=catalin.marinas@arm.com \
    --cc=cov@codeaurora.org \
    --cc=graeme.gregory@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=leif.lindholm@linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lv.zheng@intel.com \
    --cc=msalter@redhat.com \
    --cc=peter@hurleysoftware.com \
    --cc=rjw@rjwysocki.net \
    --cc=wangkefeng.wang@huawei.com \
    --cc=will.deacon@arm.com \
    --cc=ynorov@caviumnetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.