From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 2/3] lib/huc_copy: Rename to avoid macro name clash
Date: Tue, 7 Mar 2023 11:45:18 +0100 [thread overview]
Message-ID: <20230307104519.706553-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20230307104519.706553-1-zbigniew.kempczynski@intel.com>
Adding intel_gpu_commands.h requires to solve some name clashes.
Rename MFX_WAIT to HUC_MFX_WAIT to be consistent with other macros
in the huc code.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
lib/huc_copy.c | 6 +++---
lib/huc_copy.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/huc_copy.c b/lib/huc_copy.c
index 6ec68864b7..bf8254c612 100644
--- a/lib/huc_copy.c
+++ b/lib/huc_copy.c
@@ -80,14 +80,14 @@ gen9_huc_copyfunc(int fd, uint64_t ahnd,
buf[i++] = 0;
buf[i++] = 0x3;
- buf[i++] = MFX_WAIT;
- buf[i++] = MFX_WAIT;
+ buf[i++] = HUC_MFX_WAIT;
+ buf[i++] = HUC_MFX_WAIT;
buf[i++] = HUC_PIPE_MODE_SELECT;
buf[i++] = 0;
buf[i++] = 0;
- buf[i++] = MFX_WAIT;
+ buf[i++] = HUC_MFX_WAIT;
memset(reloc, 0, sizeof(reloc));
diff --git a/lib/huc_copy.h b/lib/huc_copy.h
index 69d1409335..1789e87359 100644
--- a/lib/huc_copy.h
+++ b/lib/huc_copy.h
@@ -31,7 +31,7 @@
#include "intel_reg.h"
#define PARALLEL_VIDEO_PIPE (0x3<<29)
-#define MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8))
+#define HUC_MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8))
#define HUC_IMEM_STATE (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|(0x1<<16)|0x3)
#define HUC_PIPE_MODE_SELECT (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|0x1)
--
2.34.1
next prev parent reply other threads:[~2023-03-07 10:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 10:45 [igt-dev] [PATCH i-g-t v2 0/3] Start using intel_gpu_commands.h header Zbigniew Kempczyński
2023-03-07 10:45 ` [igt-dev] [PATCH i-g-t v2 1/3] intel_gpu_commands: Use kernel gpu command definitions Zbigniew Kempczyński
2023-03-07 14:30 ` Kamil Konieczny
2023-03-07 10:45 ` Zbigniew Kempczyński [this message]
2023-03-07 14:32 ` [igt-dev] [PATCH i-g-t v2 2/3] lib/huc_copy: Rename to avoid macro name clash Kamil Konieczny
2023-03-07 10:45 ` [igt-dev] [PATCH i-g-t v2 3/3] igt: Remove duplicated macros Zbigniew Kempczyński
2023-03-07 15:07 ` Kamil Konieczny
2023-03-07 11:49 ` [igt-dev] ✓ Fi.CI.BAT: success for Start using intel_gpu_commands.h header (rev2) Patchwork
2023-03-08 10:48 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20230307104519.706553-3-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=igt-dev@lists.freedesktop.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