public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: Ashwin Chaugule <ashwin.chaugule@linaro.org>,
	"jaswinder.singh@linaro.org" <jaswinder.singh@linaro.org>,
	"patches@linaro.org" <patches@linaro.org>,
	"linaro-acpi@lists.linaro.org" <linaro-acpi@lists.linaro.org>,
	"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"lv.zheng@intel.com" <lv.zheng@intel.com>
Subject: Re: [Linaro-acpi] [PATCH v10 1/1] Mailbox: Add support for Platform Communication Channel
Date: Tue, 11 Nov 2014 21:25:02 +0100	[thread overview]
Message-ID: <1620095.ORCbaZ8QlJ@wuerfel> (raw)
In-Reply-To: <546224C8.7050502@arm.com>

On Tuesday 11 November 2014 15:01:28 Sudeep Holla wrote:
> On 11/11/14 13:18, Ashwin Chaugule wrote:
> > On 11 November 2014 05:30, Sudeep Holla <sudeep.holla@arm.com> wrote:
> >> On 07/11/14 14:52, Ashwin Chaugule wrote:
> >>> +static struct mbox_chan pcc_mbox_chan[MAX_PCC_SUBSPACES];
> >>
> >>
> >> Really, do you want to allocate 256 structures of mbox_chan even on
> >> systems with just 1 - 2 channels(typically that would be the case) ?
> >>
> >
> > Spec says, max of 256. Easier to support it this way.
> >
> 
> I tend to disagree, you can allocate dynamically. And use exactly same
> logic you use in get_subspace_id to populate con_priv later. When you
> parse PCC Subspace, you can just validate header and not record them in
> pcc_mbox_chan. You can get the exact count in acpi_table_parse_entries
> and then do the required allocation.

Right, I think that would be best.

> >>> +
> >>> +       count = acpi_table_parse_entries(ACPI_SIG_PCCT,
> >>> +                       sizeof(struct acpi_table_pcct),
> >>
> >>
> >> s/struct acpi_table_pcct/*pcct_tbl/
> >>
> >> In general, the interrupt part of the PCCT SS is not considered in this
> >> patch. It's better to see/discuss how that can be fit into the mailbox
> >> framework, though it could be follow up patch.
> >
> > The IRQ part of the spec seems to be under discussion (single irq per
> > subspace / common IRQ across all) and as you may be aware we're
> > working on trying it out on Juno. That'll guide the design. What I
> > have here is good enough to start off with and has been tested. I dont
> > think we should have a problem using the mailbox API for asyn tx
> > though, but I'd really^n prefer if we get something out there first.
> >
> 
> That's the different and still under discussion. But you need to support
> Type 1 subspace as it stands in ACPI v5.1

Why? We should only implement whatever is required to support existing hardware,
not because something is in the spec.

	Arnd

  reply	other threads:[~2014-11-11 20:25 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 14:52 [PATCH v10 0/1] PCC: Platform Communication Channel Ashwin Chaugule
2014-11-07 14:52 ` [PATCH v10 1/1] Mailbox: Add support for " Ashwin Chaugule
2014-11-09 13:48   ` Jassi Brar
2014-11-09 15:20     ` Ashwin Chaugule
2014-11-09 16:18       ` Jassi Brar
2014-11-09 17:22         ` Ashwin Chaugule
2014-11-10  4:13           ` Jassi Brar
2014-11-10 12:57             ` Ashwin Chaugule
2014-11-10 13:39               ` Jassi Brar
2014-11-10 13:53                 ` Ashwin Chaugule
2014-11-10 14:16                   ` Jassi Brar
2014-11-10 14:47                     ` Ashwin Chaugule
2014-11-10 17:44                       ` Jassi Brar
2014-11-10 20:13                         ` Mark Brown
2014-11-10 20:29                           ` [Linaro-acpi] " Arnd Bergmann
2014-11-11  4:31                             ` Jassi Brar
2014-11-11  4:04                           ` Jassi Brar
2014-11-11 13:02                             ` Ashwin Chaugule
2014-11-11 13:57                               ` Jassi Brar
2014-11-11 16:33                                 ` [Linaro-acpi] " Arnd Bergmann
2014-11-11 17:39                                   ` Jassi Brar
2014-11-11 17:54                                     ` Arnd Bergmann
2014-11-11 19:08                                       ` Jassi Brar
2014-11-11 19:22                                         ` Ashwin Chaugule
2014-11-11 20:38                                         ` Arnd Bergmann
2014-11-11 17:53                                   ` Mark Brown
2014-11-11 10:30   ` Sudeep Holla
2014-11-11 13:18     ` Ashwin Chaugule
2014-11-11 15:01       ` Sudeep Holla
2014-11-11 20:25         ` Arnd Bergmann [this message]
2014-11-12 13:32           ` Sudeep Holla
2014-11-12 13:48             ` Ashwin Chaugule
2014-11-12 14:03               ` Sudeep Holla
2014-11-12 18:25           ` [Linaro-acpi] " Ashwin Chaugule
2014-11-12 18:26             ` Mark Brown
2014-11-12 19:04             ` Jassi Brar
2014-11-12 19:16               ` Ashwin Chaugule
2014-11-11 17:29     ` Mark Brown
2014-11-11 18:07       ` Sudeep Holla
2014-11-11 15:12   ` Jassi Brar
2014-11-11 15:19     ` Ashwin Chaugule
2014-11-11 15:25       ` Jassi Brar

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=1620095.ORCbaZ8QlJ@wuerfel \
    --to=arnd@arndb.de \
    --cc=ashwin.chaugule@linaro.org \
    --cc=broonie@kernel.org \
    --cc=jaswinder.singh@linaro.org \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lv.zheng@intel.com \
    --cc=patches@linaro.org \
    --cc=rjw@rjwysocki.net \
    --cc=sudeep.holla@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox