Re: [PATCH 1/2] drm/i915: drop lrc header page

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

 



Quoting Daniele Ceraolo Spurio (2019-10-31 01:30:39)
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.h b/drivers/gpu/drm/i915/gt/intel_lrc.h
> index faa2d56c279b..04511d8ebdc1 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.h
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.h
> @@ -86,31 +86,12 @@ int intel_execlists_submission_setup(struct intel_engine_cs *engine);
>  int intel_execlists_submission_init(struct intel_engine_cs *engine);
>  
>  /* Logical Ring Contexts */
> -
> -/*
> - * We allocate a header at the start of the context image for our own
> - * use, therefore the actual location of the logical state is offset
> - * from the start of the VMA. The layout is
> - *
> - * | [guc]          | [hwsp] [logical state] |
> - * |<- our header ->|<- context image      ->|
> - *
> - */
> -/* The first page is used for sharing data with the GuC */
> -#define LRC_GUCSHR_PN  (0)
> -#define LRC_GUCSHR_SZ  (1)
>  /* At the start of the context image is its per-process HWS page */
> -#define LRC_PPHWSP_PN  (LRC_GUCSHR_PN + LRC_GUCSHR_SZ)
> +#define LRC_PPHWSP_PN  (0)
>  #define LRC_PPHWSP_SZ  (1)
> -/* Finally we have the logical state for the context */
> +/* After the PPHWSP we have the logical state for the context */
>  #define LRC_STATE_PN   (LRC_PPHWSP_PN + LRC_PPHWSP_SZ)
>  
> -/*
> - * Currently we include the PPHWSP in __intel_engine_context_size() so
> - * the size of the header is synonymous with the start of the PPHWSP.
> - */
> -#define LRC_HEADER_PAGES LRC_PPHWSP_PN

Acked-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux