From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
To: intel-xe@lists.freedesktop.org, janga.rahul.kumar@intel.com,
ramadevi.gandi@intel.com
Cc: matthew.d.roper@intel.com, lucas.demarchi@intel.com
Subject: [PATCH v4 1/2] drm/xe: Relocate regs_are_mcr function
Date: Tue, 30 Apr 2024 22:34:26 +0530 [thread overview]
Message-ID: <20240430170427.1808136-2-janga.rahul.kumar@intel.com> (raw)
In-Reply-To: <20240430170427.1808136-1-janga.rahul.kumar@intel.com>
Relocate regs_are_mcr funciton to a higher position in the file
for improved visibility.
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
---
drivers/gpu/drm/xe/xe_mocs.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
index 1e92f8ee07ba..aef09eb423e9 100644
--- a/drivers/gpu/drm/xe/xe_mocs.c
+++ b/drivers/gpu/drm/xe/xe_mocs.c
@@ -255,6 +255,16 @@ static const struct xe_mocs_entry gen12_mocs_desc[] = {
L3_1_UC)
};
+static bool regs_are_mcr(struct xe_gt *gt)
+{
+ struct xe_device *xe = gt_to_xe(gt);
+
+ if (xe_gt_is_media_type(gt))
+ return MEDIA_VER(xe) >= 20;
+ else
+ return GRAPHICS_VERx100(xe) >= 1250;
+}
+
static const struct xe_mocs_entry dg1_mocs_desc[] = {
/* UC */
MOCS_ENTRY(1, 0, L3_1_UC),
@@ -467,16 +477,6 @@ static u32 get_entry_control(const struct xe_mocs_info *info,
return info->table[info->unused_entries_index].control_value;
}
-static bool regs_are_mcr(struct xe_gt *gt)
-{
- struct xe_device *xe = gt_to_xe(gt);
-
- if (xe_gt_is_media_type(gt))
- return MEDIA_VER(xe) >= 20;
- else
- return GRAPHICS_VERx100(xe) >= 1250;
-}
-
static void __init_mocs_table(struct xe_gt *gt,
const struct xe_mocs_info *info)
{
--
2.25.1
next prev parent reply other threads:[~2024-04-30 17:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 17:04 [PATCH v4 0/2] drm/xe/mocs: Add debugfs node to dump mocs Janga Rahul Kumar
2024-04-30 17:04 ` Janga Rahul Kumar [this message]
2024-05-01 19:19 ` [PATCH v4 1/2] drm/xe: Relocate regs_are_mcr function Lucas De Marchi
2024-04-30 17:04 ` [PATCH v4 2/2] drm/xe/mocs: Add debugfs node to dump mocs Janga Rahul Kumar
2024-05-01 21:04 ` Lucas De Marchi
2024-05-03 19:42 ` Kumar, Janga Rahul
2024-04-30 19:43 ` ✓ CI.Patch_applied: success for drm/xe/mocs: Add debugfs node to dump mocs (rev4) Patchwork
2024-04-30 19:43 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-30 19:44 ` ✓ CI.KUnit: success " Patchwork
2024-04-30 19:56 ` ✓ CI.Build: " Patchwork
2024-04-30 19:58 ` ✓ CI.Hooks: " Patchwork
2024-04-30 20:00 ` ✓ CI.checksparse: " Patchwork
2024-04-30 20:33 ` ✓ CI.BAT: " Patchwork
2024-04-30 23:50 ` ✓ CI.FULL: " Patchwork
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=20240430170427.1808136-2-janga.rahul.kumar@intel.com \
--to=janga.rahul.kumar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=ramadevi.gandi@intel.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