public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: lorenzo.pieralisi@arm.com (Lorenzo Pieralisi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM64: kernel: implement ACPI parking protocol
Date: Fri, 11 Sep 2015 15:35:36 +0100	[thread overview]
Message-ID: <20150911143536.GB13033@red-moon> (raw)
In-Reply-To: <1441978255.18796.12.camel@redhat.com>

On Fri, Sep 11, 2015 at 02:30:55PM +0100, Mark Salter wrote:
> On Thu, 2015-09-10 at 18:40 +0100, Lorenzo Pieralisi wrote:

[...]

> > +++ b/arch/arm64/kernel/acpi_parking_protocol.c
> > @@ -0,0 +1,153 @@
> > +/*
> > + * ARM64 ACPI Parking Protocol implementation
> > + *
> > + * Authors: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > + *       Mark Salter <msalter@redhat.com>
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> > + * GNU General Public License for more details.
> > + *
> > + * You should have received a copy of the GNU General Public License
> > + * along with this program.  If not, see <http://www.gnu.org/licenses/>.
> > + */
> > +#include <linux/acpi.h>
> > +#include <linux/types.h>
> > +
> > +#include <asm/cpu_ops.h>
> > +
> > +struct cpu_mailbox_entry {
> > +     phys_addr_t mailbox_addr;
> > +     u8 version;
> > +     u8 gic_cpu_id;
>         ^^^
> Shouldn't that be u32?

If I read the ACPI specs and the parking protocol specs correctly answer
is no, allowed values are 0 to 7. The ACPI MADT GICC is rather unclear on
that, I think the definition of the "CPU Interface Number" field in the
GICC structure corresponds to the Processor ID definition in the parking
protocol document attached, but I will countercheck on that and ask for
clarification.

I can certainly update both version and gic CPU id to u32, but the
question on GICC specification for the CPU Interface number is still
valid.

Thanks,
Lorenzo

  reply	other threads:[~2015-09-11 14:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 17:40 [PATCH v2] ARM64: kernel: implement ACPI parking protocol Lorenzo Pieralisi
2015-09-11 13:30 ` Mark Salter
2015-09-11 14:35   ` Lorenzo Pieralisi [this message]
2015-10-06 16:50 ` Catalin Marinas
2015-10-06 17:15   ` Mark Salter
2015-10-06 17:31     ` Lorenzo Pieralisi
2015-10-07 13:03       ` Catalin Marinas
     [not found] <CAPw-ZTmsLqgh6W6R0uLgQjueV7XjaGOD49CYCRYufJ43zT8Kyg@mail.gmail.com>
2016-01-08 15:01 ` Lorenzo Pieralisi
2016-01-08 19:05   ` Loc Ho
2016-01-25 21:28     ` Loc Ho

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=20150911143536.GB13033@red-moon \
    --to=lorenzo.pieralisi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox