Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1463735
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 |
| Date | Tue, 16 Aug 2016 14:00:01 +0200 |
| Message-ID | <s6Lcd-2BC-15@gated-at.bofh.it> (permalink) |
| References | <rAGDT-6VI-3@gated-at.bofh.it> <s6zkJ-3DX-13@gated-at.bofh.it> <s6zNL-3Px-5@gated-at.bofh.it> |
| User-Agent | KMail/4.11.5 (Linux/4.8.0-rc1+; KDE/4.11.5; x86_64; ; ) |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7Bit |
| Content-Type | text/plain; charset="utf-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 110 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jassi Brar <jassisinghbrar@gmail.com>, Ashwin Chaugule <ashwin.chaugule@linaro.org>, Robert Moore <robert.moore@intel.com>, Alexey Klimov <alexey.klimov@arm.com>, lkml <linux-kernel@vger.kernel.org>, linux acpi <linux-acpi@vger.kernel.org>, Loc Ho <lho@apm.com>, Duc Dang <dhdang@apm.com>, "Prakash, Prashanth" <pprakash@codeaurora.org> |
| X-Original-Date | Tue, 16 Aug 2016 13:56:35 +0200 |
| X-Original-Message-ID | <16935343.I93a8yB3ce@vostro.rjw.lan> |
| X-Original-References | <1463704347-22550-1-git-send-email-hotran@apm.com> <9102573.MEe9O1jMMq@vostro.rjw.lan> <CAFHUOYyw-AmTxZnO5oEq0RXgwEcJFL4TZcQYtjBE+NjYw9D3ww@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1463735 |
Show key headers only | View raw
On Monday, August 15, 2016 04:41:22 PM Hoan Tran wrote: > Hi Rafael, > > On Mon, Aug 15, 2016 at 4:18 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote: > > On Monday, August 15, 2016 09:45:24 AM Hoan Tran wrote: > >> On Mon, Jun 27, 2016 at 2:32 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote: > >> > > >> > On Monday, June 27, 2016 11:27:42 AM Hoan Tran wrote: > >> > > Hi Jassi and Rafael, > >> > > > >> > > On Wed, Jun 15, 2016 at 9:19 AM, Prakash, Prashanth > >> > > <pprakash@codeaurora.org> wrote: > >> > > > > >> > > > > >> > > > On 6/9/2016 4:43 PM, Hoan Tran wrote: > >> > > >> Hi Prashanth, > >> > > >> > >> > > >> On Thu, Jun 9, 2016 at 3:25 PM, Prakash, Prashanth > >> > > >> <pprakash@codeaurora.org> wrote: > >> > > >>> > >> > > >>> On 6/9/2016 2:47 PM, Hoan Tran wrote: > >> > > >>>> Hi Ashwin and Prashanth, > >> > > >>>> > >> > > >>>> On Wed, Jun 8, 2016 at 5:41 PM, Hoan Tran <hotran@apm.com> wrote: > >> > > >>>>> Hi Prashanth, > >> > > >>>>> > >> > > >>>>> > >> > > >>>>> On Wed, Jun 8, 2016 at 5:32 PM, Prakash, Prashanth > >> > > >>>>> <pprakash@codeaurora.org> wrote: > >> > > >>>>>> On 6/8/2016 10:24 AM, Hoan Tran wrote: > >> > > >>>>>>> Hi Ashwin, > >> > > >>>>>>> > >> > > >>>>>>> On Wed, Jun 8, 2016 at 5:18 AM, Ashwin Chaugule > >> > > >>>>>>> <ashwin.chaugule@linaro.org> wrote: > >> > > >>>>>>>> + Prashanth (Can you please have a look as well?) > >> > > >>>>>>>> > >> > > >>>>>>>> On 31 May 2016 at 15:35, Hoan Tran <hotran@apm.com> wrote: > >> > > >>>>>>>>> Hi Ashwin, > >> > > >>>>>>>> Hi, > >> > > >>>>>>>> > >> > > >>>>>>>> Sorry about the delay. I'm in the middle of switching jobs and > >> > > >>>>>>>> locations, so its been a bit crazy lately. > >> > > >>>>>>> It's ok and hope you're doing well. > >> > > >>>>>>> > >> > > >>>>>>>> I dont have any major > >> > > >>>>>>>> concerns with this code, although there could be subtle issues with > >> > > >>>>>>>> this IRQ thing. In this patchset, your intent is to add support for > >> > > >>>>>>>> PCC subspace type 2. But you're also adding support for tx command > >> > > >>>>>>>> completion which is not specific to Type 2. We could support that even > >> > > >>>>>>>> in Type 1. Hence I wanted to separate the two, not just for review, > >> > > >>>>>>>> but also the async IRQ completion has subtle issues esp. in the case > >> > > >>>>>>>> of async platform notification, where you could have a PCC client in > >> > > >>>>>>>> the OS writing to the cmd bit and the platform sending an async > >> > > >>>>>>>> notification by writing to some bits in the same 8byte address as the > >> > > >>>>>>>> cmd bit. So we need some mutual exclusivity there, otherwise the OS > >> > > >>>>>>>> and platform could step on each other. Perhaps Prashanth has better > >> > > >>>>>>>> insight into this. > >> > > >>>>>>> I think, this mutual exclusivity could be in another patch. > >> > > >>>>>> Ashwin, > >> > > >>>>>> Sorry, I am not sure how we can prevent platform and OSPM from stepping on > >> > > >>>>>> each other. There is a line is spec that says "all operations on status field > >> > > >>>>>> must be made using interlocked operations", but not sure what these > >> > > >>>>>> interlocked operation translates to. > >> > > >>>>> Yes, I had the same question about how to prevent it. > >> > > >>>> For platform notification, if the hardware doesn't support interlocked > >> > > >>>> operations. I think we can use a workaround that, platform triggers > >> > > >>>> interrupt to OSPM without touching status field. The OSPM PCC client > >> > > >>>> will decide what to do with this interrupt. For example, OSPM sends a > >> > > >>>> consumer command to check it. > >> > > >>> How do we decide which platform can support this interlocked operation? > >> > > >>> and how do we decide between a completion notification and platform > >> > > >>> notification? > >> > > >> Truly, we should follow the specification. But I don't know if there's > >> > > >> any hardware support this interlocked operation. > >> > > >> For the decide between a completion notification and platform notification > >> > > >> - Completion notification: Bit "Command Complete" is set. > >> > > >> - Platform notification: Bit "Command Complete" is not set. > >> > > >> > >> > > >>> I think the ACPI spec on platform notification is quite ambiguous and it is > >> > > >>> best to get the necessary clarification and/or correction before implementing > >> > > >>> anything related to platform notification. > >> > > >> Agreed, a clarification inside ACPI Specification is needed > >> > > > This patch look good to me, as it doesn't deal with platform notification. > >> > > > We can try to get some clarification from spec side before handling the platform > >> > > > notification pieces. > >> > > > > >> > > > Reviewed-by: Prashanth Prakash <pprakash@codeaurora.org> > >> > > > >> > > Do you have plan to apply this patch ? > >> > > >> > Yes. > >> > > >> > Thanks, > >> > Rafael > >> > > >> > >> Hi Rafael, > >> > >> This patch had an ACK from Prashanth. Can you consider to merge > >> this patch please? > > > > Can you please resend it with the ACK? > > Correcting, it got a "Reviewed-by: Prashanth Prakash > <pprakash@codeaurora.org>". Is it OK? Yes, it is. Thanks, Rafael
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 Hoan Tran <hotran@apm.com> - 2016-08-15 19:00 +0200
Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-08-16 01:20 +0200
Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 Hoan Tran <hotran@apm.com> - 2016-08-16 01:50 +0200
Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-08-16 14:00 +0200
Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2 Hoan Tran <hotran@apm.com> - 2016-08-16 18:30 +0200
csiph-web