From: Sagar Arun Kamble <sagar.a.kamble@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 04/14] drm/i915/guc: Move doc near related definitions
Date: Fri, 13 Oct 2017 11:23:19 +0530 [thread overview]
Message-ID: <59a885c6-e0e7-a63f-d642-76fd7873ea1e@intel.com> (raw)
In-Reply-To: <20171012225447.256-5-michal.wajdeczko@intel.com>
On 10/13/2017 4:24 AM, Michal Wajdeczko wrote:
> After Guc code reorg some documentation was left in wrong
> place. Move it closer to corresponding definitions.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
nitpick: Can we use "GuC" or other preferred name consistently in all
comments/commit message/subject except for tag
for all GuC related changes.
> ---
> drivers/gpu/drm/i915/intel_guc.h | 11 +++++++++++
> drivers/gpu/drm/i915/intel_guc_loader.c | 23 -----------------------
> drivers/gpu/drm/i915/intel_uc_fw.h | 5 +++++
> 3 files changed, 16 insertions(+), 23 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_guc.h b/drivers/gpu/drm/i915/intel_guc.h
> index 8b44165..c7088a7 100644
> --- a/drivers/gpu/drm/i915/intel_guc.h
> +++ b/drivers/gpu/drm/i915/intel_guc.h
> @@ -33,6 +33,11 @@
> #include "i915_guc_reg.h"
> #include "i915_vma.h"
>
> +/*
> + * Top level structure of guc. It handles firmware loading and manages client
> + * pool and doorbells. intel_guc owns a i915_guc_client to replace the legacy
> + * ExecList submission.
> + */
> struct intel_guc {
> struct intel_uc_fw fw;
> struct intel_guc_log log;
> @@ -83,6 +88,12 @@ static inline void intel_guc_notify(struct intel_guc *guc)
> guc->notify(guc);
> }
>
> +/*
> + * GuC does not allow any gfx GGTT address that falls into range [0, WOPCM_TOP),
> + * which is reserved for Boot ROM, SRAM and WOPCM. Currently this top address is
> + * 512K. In order to exclude 0-512K address space from GGTT, all gfx objects
> + * used by GuC is pinned with PIN_OFFSET_BIAS along with size of WOPCM.
> + */
> static inline u32 guc_ggtt_offset(struct i915_vma *vma)
> {
> u32 offset = i915_ggtt_offset(vma);
> diff --git a/drivers/gpu/drm/i915/intel_guc_loader.c b/drivers/gpu/drm/i915/intel_guc_loader.c
> index d9089bc..8508b94 100644
> --- a/drivers/gpu/drm/i915/intel_guc_loader.c
> +++ b/drivers/gpu/drm/i915/intel_guc_loader.c
> @@ -29,29 +29,6 @@
> #include "i915_drv.h"
> #include "intel_uc.h"
>
> -/**
> - * DOC: GuC-specific firmware loader
> - *
> - * intel_guc:
> - * Top level structure of guc. It handles firmware loading and manages client
> - * pool and doorbells. intel_guc owns a i915_guc_client to replace the legacy
> - * ExecList submission.
> - *
> - * Firmware versioning:
> - * The firmware build process will generate a version header file with major and
> - * minor version defined. The versions are built into CSS header of firmware.
> - * i915 kernel driver set the minimal firmware version required per platform.
> - * The firmware installation package will install (symbolic link) proper version
> - * of firmware.
> - *
> - * GuC address space:
> - * GuC does not allow any gfx GGTT address that falls into range [0, WOPCM_TOP),
> - * which is reserved for Boot ROM, SRAM and WOPCM. Currently this top address is
> - * 512K. In order to exclude 0-512K address space from GGTT, all gfx objects
> - * used by GuC is pinned with PIN_OFFSET_BIAS along with size of WOPCM.
> - *
> - */
> -
> #define SKL_FW_MAJOR 6
> #define SKL_FW_MINOR 1
>
> diff --git a/drivers/gpu/drm/i915/intel_uc_fw.h b/drivers/gpu/drm/i915/intel_uc_fw.h
> index c3e9af4..5c01849 100644
> --- a/drivers/gpu/drm/i915/intel_uc_fw.h
> +++ b/drivers/gpu/drm/i915/intel_uc_fw.h
> @@ -50,6 +50,11 @@ struct intel_uc_fw {
> enum intel_uc_fw_status fetch_status;
> enum intel_uc_fw_status load_status;
>
> + /*
> + * The firmware build process will generate a version header file with major and
> + * minor version defined. The versions are built into CSS header of firmware.
> + * i915 kernel driver set the minimal firmware version required per platform.
> + */
> u16 major_ver_wanted;
> u16 minor_ver_wanted;
> u16 major_ver_found;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-10-13 5:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 22:54 [PATCH v3 00/14] Firmware code reorg Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 01/14] drm/i915: Move intel_guc_wopcm_size to intel_guc.c Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 02/14] drm/i915/guc: Move GuC boot param initialization out of xfer Michal Wajdeczko
2017-10-13 5:13 ` Sagar Arun Kamble
2017-10-13 5:15 ` Sagar Arun Kamble
2017-10-12 22:54 ` [PATCH v3 03/14] drm/i915/guc: Small fixups post code move Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 04/14] drm/i915/guc: Move doc near related definitions Michal Wajdeczko
2017-10-13 5:53 ` Sagar Arun Kamble [this message]
2017-10-12 22:54 ` [PATCH v3 05/14] drm/i915/guc: Rename intel_guc_loader.c to intel_guc_fw.c Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 06/14] drm/i915/guc: Reorder functions in intel_guc_fw.c Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 07/14] drm/i915/guc: Move firmware size check out of generic code Michal Wajdeczko
2017-10-13 6:49 ` Sagar Arun Kamble
2017-10-13 9:54 ` Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 08/14] drm/i915/guc: Pick better place for Guc final status message Michal Wajdeczko
2017-10-13 6:54 ` Sagar Arun Kamble
2017-10-13 9:58 ` Michal Wajdeczko
2017-10-13 10:14 ` Michal Wajdeczko
2017-10-13 10:17 ` Sagar Arun Kamble
2017-10-12 22:54 ` [PATCH v3 09/14] drm/i915/uc: Improve debug messages in firmware fetch Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 10/14] drm/i915/uc: Add message with firmware url Michal Wajdeczko
2017-10-12 23:20 ` Chris Wilson
2017-10-13 6:47 ` Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 11/14] drm/i915/uc: Unify firmware loading Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 12/14] drm/i915/guc: Update Guc messages on load failure Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 13/14] drm/i915/huc: Move fw select function Michal Wajdeczko
2017-10-12 22:54 ` [PATCH v3 14/14] HAX enable GuC submission for CI Michal Wajdeczko
2017-10-12 23:27 ` ✗ Fi.CI.BAT: failure for Firmware code reorg (rev2) 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=59a885c6-e0e7-a63f-d642-76fd7873ea1e@intel.com \
--to=sagar.a.kamble@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=michal.wajdeczko@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