Re: [PATCH v3 3/8] drm/i915/guc: Introduce USES_GUC_xxx helper macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 05 Dec 2017 23:43:19 +0100, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:

Quoting Michal Wajdeczko (2017-12-05 16:38:39)
In the upcoming patch we will change the way how to recognize
when GuC is in use. Using helper macros will minimize scope
of that changes. While here, update dev_info message.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@xxxxxxxxx>
Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
Cc: Sagar Arun Kamble <sagar.a.kamble@xxxxxxxxx>
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

... but can we please stop it with dev_priv :) We don't use it now or
later, we are just making it more complicated for no imminent benefit,
right?

Note that there are few benefits for keeping dev_priv:

a) it nicely matches all other existing HAS_|USES_ macros
   (even if dev_priv is not used/required: see USES_PPGTT or HAS_AUX_IRQ)
   (yes I know that you want to kill former and later is not widely used ;)
b) as "uses" suggests that it reflects state of the driver, I hope one day
   we will stop relying on modparam and read actual state of driver from
   dev_priv (or struct guc or struct uc or something else that can be
   reached out from this dev_priv)

Michal
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux