qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Henrique Barboza <danielhb413@gmail.com>
To: "Nicholas Piggin" <npiggin@gmail.com>,
	"Joel Stanley" <joel@jms.id.au>,
	"Cédric Le Goater" <clg@kaod.org>,
	"Frédéric Barrat" <fbarrat@linux.ibm.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v2] ppc/pnv: Add QME region for P10
Date: Mon, 10 Jul 2023 06:33:49 -0300	[thread overview]
Message-ID: <92c81c75-881d-ba11-e864-a78c34b4f451@gmail.com> (raw)
In-Reply-To: <CTWE73ZF1T37.IQUBV31TU3LF@wheely>



On 7/7/23 22:16, Nicholas Piggin wrote:
> On Fri Jul 7, 2023 at 5:12 PM AEST, Joel Stanley wrote:
>> The Quad Management Engine (QME) manages power related settings for its
>> quad. The xscom region is separate from the quad xscoms, therefore a new
>> region is added. The xscoms in a QME select a given core by selecting
>> the forth nibble.
>>
>> Implement dummy reads for the stop state history (SSH) and special
>> wakeup (SPWU) registers. This quietens some sxcom errors when skiboot
>> boots on p10.
>>
>> Power9 does not have a QME.
>>
>> Signed-off-by: Joel Stanley <joel@jms.id.au>
> 
> Nice, already merged but looks good to me. Just one thing...
> 
>> diff --git a/include/hw/ppc/pnv_xscom.h b/include/hw/ppc/pnv_xscom.h
>> index a4c9d95dc5d3..9bc64635471e 100644
>> --- a/include/hw/ppc/pnv_xscom.h
>> +++ b/include/hw/ppc/pnv_xscom.h
>> @@ -127,6 +127,17 @@ struct PnvXScomInterfaceClass {
>>   #define PNV10_XSCOM_EC(proc)                    \
>>       ((0x2 << 16) | ((1 << (3 - (proc))) << 12))
>>   
>> +#define PNV10_XSCOM_QME(chiplet) \
>> +        (PNV10_XSCOM_EQ(chiplet) | (0xE << 16))
>> +
>> +/*
>> + * Make the region larger by 0x1000 (instead of starting at an offset) so the
>> + * modelled addresses start from 0
>> + */
>> +#define PNV10_XSCOM_QME_BASE(core)     \
>> +    ((uint64_t) PNV10_XSCOM_QME(PNV10_XSCOM_EQ_CHIPLET(core)))
>> +#define PNV10_XSCOM_QME_SIZE        (0x8000 + 0x1000)
> 
> I couldn't work out this comment.

FWIW if a comment is inaccurate/wrong it is OK to fix it during the code
freeze window. No need to hold it until after 8.1 is released. Thanks,


Daniel

> 
> Thanks,
> Nick
> 


      parent reply	other threads:[~2023-07-10  9:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-07  7:12 [PATCH v2] ppc/pnv: Add QME region for P10 Joel Stanley
2023-07-07  7:30 ` Cédric Le Goater
2023-07-07  7:55   ` Joel Stanley
2023-07-07 11:08 ` Daniel Henrique Barboza
2023-07-08  1:16 ` Nicholas Piggin
2023-07-10  0:25   ` Joel Stanley
2023-07-12  2:21     ` Nicholas Piggin
2023-07-10  9:32   ` Daniel Henrique Barboza
2023-07-10  9:33   ` Daniel Henrique Barboza [this message]

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=92c81c75-881d-ba11-e864-a78c34b4f451@gmail.com \
    --to=danielhb413@gmail.com \
    --cc=clg@kaod.org \
    --cc=fbarrat@linux.ibm.com \
    --cc=joel@jms.id.au \
    --cc=npiggin@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.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;
as well as URLs for NNTP newsgroup(s).