From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Francois Dugast <francois.dugast@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/xe: Don't rely on indirect includes from xe_mmio.h
Date: Tue, 21 May 2024 16:10:25 +0200 [thread overview]
Message-ID: <19473e9d-8380-4f39-a42b-c522bfbcbfd1@intel.com> (raw)
In-Reply-To: <ZkypTw2yXt7R2lIu@fdugast-desk>
On 21.05.2024 16:01, Francois Dugast wrote:
> Hi Michal,
>
> On Mon, May 20, 2024 at 08:18:13PM +0200, Michal Wajdeczko wrote:
>> These compilation units use udelay() or some GT oriented printk
>> functions without explicitly including proper header files, and
>> relying on #includes from the xe_mmio.h instead. Fix that.
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>> ---
>> drivers/gpu/drm/xe/xe_device.c | 2 ++
>> drivers/gpu/drm/xe/xe_gsc.c | 2 ++
>> drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 1 +
>> drivers/gpu/drm/xe/xe_guc_ads.c | 1 +
>> drivers/gpu/drm/xe/xe_huc.c | 2 ++
>> drivers/gpu/drm/xe/xe_mocs.c | 1 +
>> drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 1 +
>> drivers/gpu/drm/xe/xe_uc_fw.c | 1 +
>> 8 files changed, 11 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
>> index 8da90934c900..28a4e0c3b1fe 100644
>> --- a/drivers/gpu/drm/xe/xe_device.c
>> +++ b/drivers/gpu/drm/xe/xe_device.c
>> @@ -5,6 +5,7 @@
>>
>> #include "xe_device.h"
>>
>> +#include <linux/delay.h>
>> #include <linux/units.h>
>>
>> #include <drm/drm_aperture.h>
>> @@ -33,6 +34,7 @@
>> #include "xe_gsc_proxy.h"
>> #include "xe_gt.h"
>> #include "xe_gt_mcr.h"
>> +#include "xe_gt_printk.h"
>
> It is obvious in the occurrences of this include in other compilation
> units below, but in xe_device.c I am not seeing the need for
> xe_gt_printk.h, am I missing something?
void xe_device_td_flush(struct xe_device *xe)
...
xe_gt_err_once(gt, "TD flush timeout\n");
>
> Francois
>
>> #include "xe_hwmon.h"
>> #include "xe_irq.h"
>> #include "xe_memirq.h"
>> diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
>> index 8cc6420a9e7f..80a61934decc 100644
>> --- a/drivers/gpu/drm/xe/xe_gsc.c
>> +++ b/drivers/gpu/drm/xe/xe_gsc.c
>> @@ -5,6 +5,8 @@
>>
>> #include "xe_gsc.h"
>>
>> +#include <linux/delay.h>
>> +
>> #include <drm/drm_managed.h>
>>
>> #include <generated/xe_wa_oob.h>
>> diff --git a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
>> index a34c9a24dafc..f90cf679c5d7 100644
>> --- a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
>> +++ b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
>> @@ -9,6 +9,7 @@
>> #include "xe_assert.h"
>> #include "xe_gt.h"
>> #include "xe_gt_ccs_mode.h"
>> +#include "xe_gt_printk.h"
>> #include "xe_gt_sysfs.h"
>> #include "xe_mmio.h"
>>
>> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
>> index 9c33cca4e370..1c60b685dbc6 100644
>> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
>> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
>> @@ -16,6 +16,7 @@
>> #include "xe_bo.h"
>> #include "xe_gt.h"
>> #include "xe_gt_ccs_mode.h"
>> +#include "xe_gt_printk.h"
>> #include "xe_guc.h"
>> #include "xe_guc_ct.h"
>> #include "xe_hw_engine.h"
>> diff --git a/drivers/gpu/drm/xe/xe_huc.c b/drivers/gpu/drm/xe/xe_huc.c
>> index 39a484a57585..b039ff49341b 100644
>> --- a/drivers/gpu/drm/xe/xe_huc.c
>> +++ b/drivers/gpu/drm/xe/xe_huc.c
>> @@ -5,6 +5,8 @@
>>
>> #include "xe_huc.h"
>>
>> +#include <linux/delay.h>
>> +
>> #include <drm/drm_managed.h>
>>
>> #include "abi/gsc_pxp_commands_abi.h"
>> diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
>> index f04754ad911b..de3f2d3f1b04 100644
>> --- a/drivers/gpu/drm/xe/xe_mocs.c
>> +++ b/drivers/gpu/drm/xe/xe_mocs.c
>> @@ -12,6 +12,7 @@
>> #include "xe_force_wake.h"
>> #include "xe_gt.h"
>> #include "xe_gt_mcr.h"
>> +#include "xe_gt_printk.h"
>> #include "xe_mmio.h"
>> #include "xe_platform_types.h"
>> #include "xe_pm.h"
>> diff --git a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
>> index f77367329760..64592a8e527b 100644
>> --- a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
>> +++ b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
>> @@ -18,6 +18,7 @@
>> #include "xe_bo.h"
>> #include "xe_device.h"
>> #include "xe_gt.h"
>> +#include "xe_gt_printk.h"
>> #include "xe_mmio.h"
>> #include "xe_res_cursor.h"
>> #include "xe_sriov.h"
>> diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
>> index ed819f1df888..12346645a8e5 100644
>> --- a/drivers/gpu/drm/xe/xe_uc_fw.c
>> +++ b/drivers/gpu/drm/xe/xe_uc_fw.c
>> @@ -14,6 +14,7 @@
>> #include "xe_force_wake.h"
>> #include "xe_gsc.h"
>> #include "xe_gt.h"
>> +#include "xe_gt_printk.h"
>> #include "xe_map.h"
>> #include "xe_mmio.h"
>> #include "xe_module.h"
>> --
>> 2.43.0
>>
next prev parent reply other threads:[~2024-05-21 14:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 18:18 [PATCH 0/3] drm/xe: Cleanup xe_mmio.h Michal Wajdeczko
2024-05-20 18:18 ` [PATCH 1/3] drm/i915/display: Add missing include to intel_vga.c Michal Wajdeczko
2024-05-21 9:24 ` Jani Nikula
2024-05-20 18:18 ` [PATCH 2/3] drm/xe: Don't rely on indirect includes from xe_mmio.h Michal Wajdeczko
2024-05-21 14:01 ` Francois Dugast
2024-05-21 14:10 ` Michal Wajdeczko [this message]
2024-05-21 14:50 ` Francois Dugast
2024-05-20 18:18 ` [PATCH 3/3] drm/xe: Cleanup xe_mmio.h Michal Wajdeczko
2024-05-22 9:39 ` Ghimiray, Himal Prasad
2024-05-20 18:23 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-20 18:23 ` ✗ CI.checkpatch: warning " Patchwork
2024-05-20 18:24 ` ✓ CI.KUnit: success " Patchwork
2024-05-20 18:36 ` ✓ CI.Build: " Patchwork
2024-05-20 18:39 ` ✓ CI.Hooks: " Patchwork
2024-05-20 18:40 ` ✗ CI.checksparse: warning " Patchwork
2024-05-20 19:02 ` ✓ CI.BAT: success " Patchwork
2024-05-20 20:00 ` ✓ 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=19473e9d-8380-4f39-a42b-c522bfbcbfd1@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=francois.dugast@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@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