From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>,
<intel-xe@lists.freedesktop.org>, <saurabhg.gupta@intel.com>,
<alex.zuo@intel.com>, <john.c.harrison@intel.com>,
<stable@vger.kernel.org>
Subject: Re: [PATCH v3] drm/xe/xe_guc_ads: save/restore OA registers
Date: Mon, 28 Oct 2024 13:38:29 -0700 [thread overview]
Message-ID: <Zx/2RYp2HD4gDn0a@orsosgc001> (raw)
In-Reply-To: <854j4wtca7.wl-ashutosh.dixit@intel.com>
On Mon, Oct 28, 2024 at 09:36:32AM -0700, Dixit, Ashutosh wrote:
>On Wed, 23 Oct 2024 13:07:15 -0700, Jonathan Cavitt wrote:
>>
>
>Hi Umesh,
>
>> @@ -748,6 +754,14 @@ static unsigned int guc_mmio_regset_write(struct xe_guc_ads *ads,
>> }
>> }
>>
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL0, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL1, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL2, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL3, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL4, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL5, count++);
>> + guc_mmio_regset_write_one(ads, regset_map, EU_PERF_CNTL6, count++);
>
>I am trying to understand how this works. So these registers are
>saved/restored by GuC because they are not part of HW context image
correct.
>and that is why GuC needs to do the save/restore?
yes, only if GuC performs an engine reset
>Bspec 46458/56839 do seem to
>be saying that these registers are context saved/restored? If that is
>indeed true (though not sure), do they need to be here?
For pre-gen12 they were part of the engine context image, but not from
gen12 onwards. From gen12, they are in the power context image.
These were added because users were seeing the EuStall and EuActive
counters zeroed out during OA use case. GuC was doing an engine reset
for some reason and that was resetting these registers. Once we added it
here (so GuC would save restore these), the counters had correct values.
Regards,
Umesh
>
>Thanks.
>--
>Ashutosh
next prev parent reply other threads:[~2024-10-28 20:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 20:07 [PATCH v3] drm/xe/xe_guc_ads: save/restore OA registers Jonathan Cavitt
2024-10-24 11:52 ` ✓ CI.Patch_applied: success for drm/xe/xe_guc_ads: save/restore OA registers (rev3) Patchwork
2024-10-24 11:52 ` ✓ CI.checkpatch: " Patchwork
2024-10-24 11:53 ` ✓ CI.KUnit: " Patchwork
2024-10-24 12:05 ` ✓ CI.Build: " Patchwork
2024-10-24 12:07 ` ✓ CI.Hooks: " Patchwork
2024-10-24 12:08 ` ✓ CI.checksparse: " Patchwork
2024-10-24 12:30 ` ✗ CI.BAT: failure " Patchwork
2024-10-25 9:19 ` ✗ CI.FULL: " Patchwork
2024-10-28 16:36 ` [PATCH v3] drm/xe/xe_guc_ads: save/restore OA registers Dixit, Ashutosh
2024-10-28 20:38 ` Umesh Nerlige Ramappa [this message]
2024-10-28 20:48 ` Dixit, Ashutosh
2024-10-28 22:49 ` Dixit, Ashutosh
2024-10-29 16:23 ` Lucas De Marchi
2024-10-29 17:15 ` Dixit, Ashutosh
2024-10-29 17:32 ` Lucas De Marchi
2024-10-29 19:33 ` Matt Roper
2024-10-29 19:44 ` Dixit, Ashutosh
2024-10-29 19:50 ` Lucas De Marchi
2024-10-29 19:46 ` Lucas De Marchi
2024-10-29 21:19 ` Umesh Nerlige Ramappa
2024-10-29 19:38 ` Dixit, Ashutosh
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=Zx/2RYp2HD4gDn0a@orsosgc001 \
--to=umesh.nerlige.ramappa@intel.com \
--cc=alex.zuo@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=jonathan.cavitt@intel.com \
--cc=saurabhg.gupta@intel.com \
--cc=stable@vger.kernel.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