From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2] drm/xe: Generate oob before compiling anything
Date: Tue, 9 Jul 2024 15:08:29 -0400 [thread overview]
Message-ID: <Zo2KrYfuRcnowOZs@intel.com> (raw)
In-Reply-To: <20240708213041.1734028-1-lucas.demarchi@intel.com>
On Mon, Jul 08, 2024 at 02:29:06PM -0700, Lucas De Marchi wrote:
> Instead of keep adding more dependencies as WAs are needed in different
> places of the driver, just add a rule with all the objects so the code
> generation happens before anything else.
>
> While at it, group lines related to wa_oob in the Makefile.
>
> v2: Prefix $(obj) when declaring dependency
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
>
> This v2 is now built-tested with the same container CI is using, so
> hopefully it's now compatible with make < 4.3.
with crossed fingers here and trusting more your build tests then my Makefile skills:
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> drivers/gpu/drm/xe/Makefile | 25 ++++---------------------
> 1 file changed, 4 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index 0eb0acc4f198..1ff9602a52f6 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -12,35 +12,15 @@ subdir-ccflags-$(CONFIG_DRM_XE_WERROR) += -Werror
> subdir-ccflags-y += -I$(obj) -I$(src)
>
> # generated sources
> -hostprogs := xe_gen_wa_oob
>
> +hostprogs := xe_gen_wa_oob
> generated_oob := $(obj)/generated/xe_wa_oob.c $(obj)/generated/xe_wa_oob.h
> -
> quiet_cmd_wa_oob = GEN $(notdir $(generated_oob))
> cmd_wa_oob = mkdir -p $(@D); $^ $(generated_oob)
> -
> $(obj)/generated/%_wa_oob.c $(obj)/generated/%_wa_oob.h: $(obj)/xe_gen_wa_oob \
> $(src)/xe_wa_oob.rules
> $(call cmd,wa_oob)
>
> -uses_generated_oob := \
> - $(obj)/xe_ggtt.o \
> - $(obj)/xe_device.o \
> - $(obj)/xe_gsc.o \
> - $(obj)/xe_gt.o \
> - $(obj)/xe_guc.o \
> - $(obj)/xe_guc_ads.o \
> - $(obj)/xe_guc_pc.o \
> - $(obj)/xe_migrate.o \
> - $(obj)/xe_pat.o \
> - $(obj)/xe_ring_ops.o \
> - $(obj)/xe_vm.o \
> - $(obj)/xe_wa.o \
> - $(obj)/xe_ttm_stolen_mgr.o \
> - $(obj)/display/xe_display_wa.o
> -
> -$(uses_generated_oob): $(generated_oob)
> -
> # Please keep these build lists sorted!
>
> # core driver code
> @@ -324,3 +304,6 @@ quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
>
> $(obj)/%.hdrtest: $(src)/%.h FORCE
> $(call if_changed_dep,hdrtest)
> +
> +uses_generated_oob := $(addprefix $(obj)/, $(xe-y))
> +$(uses_generated_oob): $(obj)/generated/xe_wa_oob.h
> --
> 2.43.0
>
next prev parent reply other threads:[~2024-07-09 19:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 21:29 [PATCH v2] drm/xe: Generate oob before compiling anything Lucas De Marchi
2024-07-08 22:09 ` ✓ CI.Patch_applied: success for drm/xe: Generate oob before compiling anything (rev2) Patchwork
2024-07-08 22:09 ` ✓ CI.checkpatch: " Patchwork
2024-07-08 22:10 ` ✓ CI.KUnit: " Patchwork
2024-07-08 22:22 ` ✓ CI.Build: " Patchwork
2024-07-08 22:24 ` ✓ CI.Hooks: " Patchwork
2024-07-08 22:26 ` ✓ CI.checksparse: " Patchwork
2024-07-08 22:47 ` ✓ CI.BAT: " Patchwork
2024-07-09 3:29 ` ✓ CI.FULL: " Patchwork
2024-07-09 19:08 ` Rodrigo Vivi [this message]
2024-07-09 19:46 ` [PATCH v2] drm/xe: Generate oob before compiling anything Lucas De Marchi
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=Zo2KrYfuRcnowOZs@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.