Thanks for the comments. V2 has been sent.

-----Original Message-----
From: Vivi, Rodrigo 
Sent: Thursday, September 14, 2017 8:37 PM
To: Wang, Zhi A <[email protected]>
Cc: [email protected]; [email protected]; 
[email protected]; [email protected]; 
[email protected]; Widawsky, Benjamin <[email protected]>
Subject: Re: [PATCH 1/2] drm/i915: Fix a typo in i915_ppat_get()


well, I wouldn't call this as a typo.
This is a logic fix and deserves a better subject a proper commit message an 
also fixes tag:

Fixes: 4395890a4855 ("drm/i915: Introduce private PAT management")

On Thu, Sep 14, 2017 at 05:24:09PM +0000, Zhi Wang wrote:
> Cc: Chris Wilson <[email protected]>
> Cc: Ben Widawsky <[email protected]>
> Cc: Rodrigo Vivi <[email protected]>
> Cc: Joonas Lahtinen <[email protected]>
> Signed-off-by: Zhi Wang <[email protected]>
> ---
>  drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c 
> b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index 729ebaf..37cd086 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -2965,7 +2965,7 @@ static unsigned int bdw_private_pat_match(u8 src, u8 
> dst)
>       };
>  
>       /* Cache attribute has to be matched. */
> -     if (GEN8_PPAT_GET_CA(src) == GEN8_PPAT_GET_CA(dst))
> +     if (GEN8_PPAT_GET_CA(src) != GEN8_PPAT_GET_CA(dst))
>               return 0;
>  
>       score |= CA_MATCH;
> --
> 2.7.4
> 
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to