[PATCH v2] drm/i915/gvt: fix unhandled mmio warnings

Zhenyu Wang zhenyuw at linux.intel.com
Tue Feb 21 02:47:32 UTC 2017


On 2017.02.20 15:51:13 +0800, Zhao Yan wrote:
> some registers were missing or treated as BDW only. This patch is to fix it
> avoid unhandled mmio wanrings
> 
> v2: update commit message according to zhenyu's comment
> 
> Signed-off-by: Zhao Yan <yan.y.zhao at intel.com>
> ---

applied, thanks!

>  drivers/gpu/drm/i915/gvt/handlers.c | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index ab2ea15..8f2c164 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -1475,6 +1475,8 @@ static int init_generic_mmio_info(struct intel_gvt *gvt)
>  	MMIO_DFH(GEN7_GT_MODE, D_ALL, F_MODE_MASK, NULL, NULL);
>  	MMIO_DFH(CACHE_MODE_0_GEN7, D_ALL, F_MODE_MASK, NULL, NULL);
>  	MMIO_DFH(CACHE_MODE_1, D_ALL, F_MODE_MASK | F_CMD_ACCESS, NULL, NULL);
> +	MMIO_DFH(CACHE_MODE_0, D_ALL, F_MODE_MASK, NULL, NULL);
> +	MMIO_DFH(0x2124, D_ALL, F_MODE_MASK, NULL, NULL);
>  
>  	MMIO_DFH(0x20dc, D_ALL, F_MODE_MASK, NULL, NULL);
>  	MMIO_DFH(_3D_CHICKEN3, D_ALL, F_MODE_MASK, NULL, NULL);
> @@ -2346,9 +2348,9 @@ static int init_broadwell_mmio_info(struct intel_gvt *gvt)
>  
>  	MMIO_DFH(HDC_CHICKEN0, D_BDW_PLUS, F_MODE_MASK | F_CMD_ACCESS, NULL, NULL);
>  
> -	MMIO_D(CHICKEN_PIPESL_1(PIPE_A), D_BDW);
> -	MMIO_D(CHICKEN_PIPESL_1(PIPE_B), D_BDW);
> -	MMIO_D(CHICKEN_PIPESL_1(PIPE_C), D_BDW);
> +	MMIO_D(CHICKEN_PIPESL_1(PIPE_A), D_BDW_PLUS);
> +	MMIO_D(CHICKEN_PIPESL_1(PIPE_B), D_BDW_PLUS);
> +	MMIO_D(CHICKEN_PIPESL_1(PIPE_C), D_BDW_PLUS);
>  
>  	MMIO_D(WM_MISC, D_BDW);
>  	MMIO_D(BDW_EDP_PSR_BASE, D_BDW);
> @@ -2362,7 +2364,7 @@ static int init_broadwell_mmio_info(struct intel_gvt *gvt)
>  	MMIO_D(GEN8_EU_DISABLE1, D_BDW_PLUS);
>  	MMIO_D(GEN8_EU_DISABLE2, D_BDW_PLUS);
>  
> -	MMIO_D(0xfdc, D_BDW);
> +	MMIO_D(0xfdc, D_BDW_PLUS);
>  	MMIO_DFH(GEN8_ROW_CHICKEN, D_BDW_PLUS, F_CMD_ACCESS, NULL, NULL);
>  	MMIO_D(GEN7_ROW_CHICKEN2, D_BDW_PLUS);
>  	MMIO_D(GEN8_UCGCTL6, D_BDW_PLUS);
> @@ -2379,6 +2381,10 @@ static int init_broadwell_mmio_info(struct intel_gvt *gvt)
>  	MMIO_DFH(0x24d8, D_BDW_PLUS, F_CMD_ACCESS, NULL, NULL);
>  	MMIO_DFH(0x24dc, D_BDW_PLUS, F_CMD_ACCESS, NULL, NULL);
>  
> +	MMIO_D(0x22040, D_BDW_PLUS);
> +	MMIO_D(0x44484, D_BDW_PLUS);
> +	MMIO_D(0x4448c, D_BDW_PLUS);
> +
>  	MMIO_D(0x83a4, D_BDW);
>  	MMIO_D(GEN8_L3_LRA_1_GPGPU, D_BDW_PLUS);
>  
> @@ -2624,6 +2630,7 @@ static int init_skl_mmio_info(struct intel_gvt *gvt)
>  	MMIO_D(_PLANE_KEYMSK_1(PIPE_C), D_SKL);
>  
>  	MMIO_D(0x44500, D_SKL);
> +	MMIO_D(GEN9_CSFE_CHICKEN1_RCS, D_SKL_PLUS);
>  	return 0;
>  }
>  
> -- 
> 1.9.1
> 
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170221/7d94db50/attachment.sig>


More information about the intel-gvt-dev mailing list