* Re: [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
@ 2020-09-21 13:09 Lee, Shawn C
0 siblings, 0 replies; 6+ messages in thread
From: Lee, Shawn C @ 2020-09-21 13:09 UTC (permalink / raw)
To: Ville Syrjälä
Cc: Chiou, Cooper, Tseng, William, Nikula, Jani, intel-gfx
On Tue, Sept. 15, 2020, 1:35 p.m. Ville Syrjälä wrote:
>On Tue, Sep 15, 2020 at 01:18:13PM +0000, Lee, Shawn C wrote:
>> On Fri, Sept. 11, 2020, 2:21 p.m. Ville Syrjälä wrote:
>> >On Thu, Aug 27, 2020 at 01:51:29PM +0800, Lee Shawn C wrote:
>> >> Customer report random display flicker issue on Nightfury board.
>> >> And we found this problem might be caused by VT-d and FBC are both
>> >> enabled. According to sighting report, it recommend to turn
>> >> drm/i915/fbc: disable FBC on Nightfury board
>> >>
>> >> Customer report random display flicker issue on Nightfury board.
>> >> And we found this problem might be caused by VT-d and FBC are both
>> >> enabled. According to sighting report, it recommend to turn FBC off to
>> >> workaround this kind of issue.
>> >>
>> >> This change refer to DMI BOARD_VENDOR and BOARD_NAME information to
>> >> disable FBC.
>> >
>> >What is this "nightfury board" exactly?
>>
>> It is chrome os project on CML platform. The board name is "nightfury".
>
>OK, then someone should definitely test if that missing w/a
>fixes the underruns.
Customer already confirmed display flicker issue disappear after
applied this w/a.
BTW, here is the patch v2 to fix some typo in v1.
https://patchwork.freedesktop.org/series/81087/#rev2
Best regards,
Shawn
>
>>
>> >
>> >I think we're missing at least one fbc vs. vt-d w/a on some kbl/cfl/etc. era platforms:
>> >git://github.com/vsyrjala/linux.git vtd_wa_1142
>> >
>> >>
>> >> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> >> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> >> Cc: Jani Nikula <jani.nikula@intel.com>
>> >> Cc: William Tseng <william.tseng@intel.com>
>> >> Cc: Cooper Chiou <cooper.chiou@intel.com>
>> >> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
>> >> ---
>> >> drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++++++++++++++++++++++
>> >> 1 file changed, 22 insertions(+)
>> >>
>> >> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> b/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> index 327af428d73f..20660fdbab36 100644
>> >> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> @@ -39,6 +39,7 @@
>> >> */
>> >>
>> >> #include <drm/drm_fourcc.h>
>> >> +#include <linux/dmi.h>
>> >>
>> >> #include "i915_drv.h"
>> >> #include "i915_trace.h"
>> >> @@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
>> >> return 0;
>> >> }
>> >>
>> >> +static int intel_fbc_vtd_callback(const struct dmi_system_id *id) {
>> >> + DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
>> >> + return 1;
>> >> +}
>> >> +
>> >> +static const struct dmi_system_id intel_fbc_vtd_detect[] = {
>> >> + {
>> >> + .callback = intel_fbc_vtd_callback,
>> >> + .ident = "Google Nightfury",
>> >> + .matches = {
>> >> + DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
>> >> + DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
>> >> + },
>> >> + },
>> >> + { }
>> >> +};
>> >> +
>> >> static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv) {
>> >> /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */ @@ -1450,6 +1469,9
>> >> @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
>> >> return true;
>> >> }
>> >>
>> >> + if (dmi_check_system(intel_fbc_vtd_detect))
>> >> + return true;
>> >> +
>> >> return false;
>> >> }
>> >>
>> >> --
>> >> 2.17.1
>> >
>> >--
>> >Ville Syrjälä
>> >Intel
>>
>> Best regards,
>> Shawn
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
2020-09-15 13:35 ` Ville Syrjälä
@ 2020-09-21 13:15 ` Lee, Shawn C
0 siblings, 0 replies; 6+ messages in thread
From: Lee, Shawn C @ 2020-09-21 13:15 UTC (permalink / raw)
To: Ville Syrjälä, 20200827055129.26566-1-shawn.c.lee
Cc: Nikula, Jani, Chiou, Cooper, intel-gfx, Tseng, William
On Tue, Sept. 15, 2020, 1:35 p.m. Ville Syrjälä wrote:
>On Tue, Sep 15, 2020 at 01:18:13PM +0000, Lee, Shawn C wrote:
>> On Fri, Sept. 11, 2020, 2:21 p.m. Ville Syrjälä wrote:
>> >On Thu, Aug 27, 2020 at 01:51:29PM +0800, Lee Shawn C wrote:
>> >> Customer report random display flicker issue on Nightfury board.
>> >> And we found this problem might be caused by VT-d and FBC are both
>> >> enabled. According to sighting report, it recommend to turn
>> >> drm/i915/fbc: disable FBC on Nightfury board
>> >>
>> >> Customer report random display flicker issue on Nightfury board.
>> >> And we found this problem might be caused by VT-d and FBC are both
>> >> enabled. According to sighting report, it recommend to turn FBC
>> >> off to workaround this kind of issue.
>> >>
>> >> This change refer to DMI BOARD_VENDOR and BOARD_NAME information
>> >> to disable FBC.
>> >
>> >What is this "nightfury board" exactly?
>>
>> It is chrome os project on CML platform. The board name is "nightfury".
>
>OK, then someone should definitely test if that missing w/a fixes the
>underruns.
Customer already confirmed display flicker issue disappear after applied this w/a.
BTW, here is the patch v2 to fix some typo in v1.
https://patchwork.freedesktop.org/series/81087/#rev2
Best regards,
Shawn
>
>>
>> >
>> >I think we're missing at least one fbc vs. vt-d w/a on some kbl/cfl/etc. era platforms:
>> >git://github.com/vsyrjala/linux.git vtd_wa_1142
>> >
>> >>
>> >> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> >> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> >> Cc: Jani Nikula <jani.nikula@intel.com>
>> >> Cc: William Tseng <william.tseng@intel.com>
>> >> Cc: Cooper Chiou <cooper.chiou@intel.com>
>> >> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
>> >> ---
>> >> drivers/gpu/drm/i915/display/intel_fbc.c | 22
>> >> ++++++++++++++++++++++
>> >> 1 file changed, 22 insertions(+)
>> >>
>> >> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> b/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> index 327af428d73f..20660fdbab36 100644
>> >> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
>> >> @@ -39,6 +39,7 @@
>> >> */
>> >>
>> >> #include <drm/drm_fourcc.h>
>> >> +#include <linux/dmi.h>
>> >>
>> >> #include "i915_drv.h"
>> >> #include "i915_trace.h"
>> >> @@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
>> >> return 0;
>> >> }
>> >>
>> >> +static int intel_fbc_vtd_callback(const struct dmi_system_id *id) {
>> >> + DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
>> >> + return 1;
>> >> +}
>> >> +
>> >> +static const struct dmi_system_id intel_fbc_vtd_detect[] = {
>> >> + {
>> >> + .callback = intel_fbc_vtd_callback,
>> >> + .ident = "Google Nightfury",
>> >> + .matches = {
>> >> + DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
>> >> + DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
>> >> + },
>> >> + },
>> >> + { }
>> >> +};
>> >> +
>> >> static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv) {
>> >> /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */ @@ -1450,6
>> >> +1469,9 @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
>> >> return true;
>> >> }
>> >>
>> >> + if (dmi_check_system(intel_fbc_vtd_detect))
>> >> + return true;
>> >> +
>> >> return false;
>> >> }
>> >>
>> >> --
>> >> 2.17.1
>> >
>> >--
>> >Ville Syrjälä
>> >Intel
>>
>> Best regards,
>> Shawn
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
2020-09-15 13:18 ` Lee, Shawn C
@ 2020-09-15 13:35 ` Ville Syrjälä
2020-09-21 13:15 ` Lee, Shawn C
0 siblings, 1 reply; 6+ messages in thread
From: Ville Syrjälä @ 2020-09-15 13:35 UTC (permalink / raw)
To: 20200827055129.26566-1-shawn.c.lee
Cc: Chiou, Cooper, Tseng, William, Nikula, Jani, intel-gfx
On Tue, Sep 15, 2020 at 01:18:13PM +0000, Lee, Shawn C wrote:
> On Fri, Sept. 11, 2020, 2:21 p.m. Ville Syrjälä wrote:
> >On Thu, Aug 27, 2020 at 01:51:29PM +0800, Lee Shawn C wrote:
> >> Customer report random display flicker issue on Nightfury board.
> >> And we found this problem might be caused by VT-d and FBC are both
> >> enabled. According to sighting report, it recommend to turn
> >> drm/i915/fbc: disable FBC on Nightfury board
> >>
> >> Customer report random display flicker issue on Nightfury board.
> >> And we found this problem might be caused by VT-d and FBC are both
> >> enabled. According to sighting report, it recommend to turn FBC off to
> >> workaround this kind of issue.
> >>
> >> This change refer to DMI BOARD_VENDOR and BOARD_NAME information to
> >> disable FBC.
> >
> >What is this "nightfury board" exactly?
>
> It is chrome os project on CML platform. The board name is "nightfury".
OK, then someone should definitely test if that missing w/a
fixes the underruns.
>
> >
> >I think we're missing at least one fbc vs. vt-d w/a on some kbl/cfl/etc. era platforms:
> >git://github.com/vsyrjala/linux.git vtd_wa_1142
> >
> >>
> >> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> >> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> >> Cc: Jani Nikula <jani.nikula@intel.com>
> >> Cc: William Tseng <william.tseng@intel.com>
> >> Cc: Cooper Chiou <cooper.chiou@intel.com>
> >> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
> >> ---
> >> drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++++++++++++++++++++++
> >> 1 file changed, 22 insertions(+)
> >>
> >> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c
> >> b/drivers/gpu/drm/i915/display/intel_fbc.c
> >> index 327af428d73f..20660fdbab36 100644
> >> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
> >> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
> >> @@ -39,6 +39,7 @@
> >> */
> >>
> >> #include <drm/drm_fourcc.h>
> >> +#include <linux/dmi.h>
> >>
> >> #include "i915_drv.h"
> >> #include "i915_trace.h"
> >> @@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
> >> return 0;
> >> }
> >>
> >> +static int intel_fbc_vtd_callback(const struct dmi_system_id *id) {
> >> + DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
> >> + return 1;
> >> +}
> >> +
> >> +static const struct dmi_system_id intel_fbc_vtd_detect[] = {
> >> + {
> >> + .callback = intel_fbc_vtd_callback,
> >> + .ident = "Google Nightfury",
> >> + .matches = {
> >> + DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
> >> + DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
> >> + },
> >> + },
> >> + { }
> >> +};
> >> +
> >> static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv) {
> >> /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */ @@ -1450,6 +1469,9
> >> @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
> >> return true;
> >> }
> >>
> >> + if (dmi_check_system(intel_fbc_vtd_detect))
> >> + return true;
> >> +
> >> return false;
> >> }
> >>
> >> --
> >> 2.17.1
> >
> >--
> >Ville Syrjälä
> >Intel
>
> Best regards,
> Shawn
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
2020-09-11 14:21 ` Ville Syrjälä
@ 2020-09-15 13:18 ` Lee, Shawn C
2020-09-15 13:35 ` Ville Syrjälä
0 siblings, 1 reply; 6+ messages in thread
From: Lee, Shawn C @ 2020-09-15 13:18 UTC (permalink / raw)
To: Ville Syrjälä
Cc: Chiou, Cooper, Tseng, William, Nikula, Jani, intel-gfx
On Fri, Sept. 11, 2020, 2:21 p.m. Ville Syrjälä wrote:
>On Thu, Aug 27, 2020 at 01:51:29PM +0800, Lee Shawn C wrote:
>> Customer report random display flicker issue on Nightfury board.
>> And we found this problem might be caused by VT-d and FBC are both
>> enabled. According to sighting report, it recommend to turn
>> drm/i915/fbc: disable FBC on Nightfury board
>>
>> Customer report random display flicker issue on Nightfury board.
>> And we found this problem might be caused by VT-d and FBC are both
>> enabled. According to sighting report, it recommend to turn FBC off to
>> workaround this kind of issue.
>>
>> This change refer to DMI BOARD_VENDOR and BOARD_NAME information to
>> disable FBC.
>
>What is this "nightfury board" exactly?
It is chrome os project on CML platform. The board name is "nightfury".
>
>I think we're missing at least one fbc vs. vt-d w/a on some kbl/cfl/etc. era platforms:
>git://github.com/vsyrjala/linux.git vtd_wa_1142
>
>>
>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> Cc: Jani Nikula <jani.nikula@intel.com>
>> Cc: William Tseng <william.tseng@intel.com>
>> Cc: Cooper Chiou <cooper.chiou@intel.com>
>> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++++++++++++++++++++++
>> 1 file changed, 22 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c
>> b/drivers/gpu/drm/i915/display/intel_fbc.c
>> index 327af428d73f..20660fdbab36 100644
>> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
>> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
>> @@ -39,6 +39,7 @@
>> */
>>
>> #include <drm/drm_fourcc.h>
>> +#include <linux/dmi.h>
>>
>> #include "i915_drv.h"
>> #include "i915_trace.h"
>> @@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
>> return 0;
>> }
>>
>> +static int intel_fbc_vtd_callback(const struct dmi_system_id *id) {
>> + DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
>> + return 1;
>> +}
>> +
>> +static const struct dmi_system_id intel_fbc_vtd_detect[] = {
>> + {
>> + .callback = intel_fbc_vtd_callback,
>> + .ident = "Google Nightfury",
>> + .matches = {
>> + DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
>> + DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
>> + },
>> + },
>> + { }
>> +};
>> +
>> static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv) {
>> /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */ @@ -1450,6 +1469,9
>> @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
>> return true;
>> }
>>
>> + if (dmi_check_system(intel_fbc_vtd_detect))
>> + return true;
>> +
>> return false;
>> }
>>
>> --
>> 2.17.1
>
>--
>Ville Syrjälä
>Intel
Best regards,
Shawn
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
2020-08-27 5:51 Lee Shawn C
@ 2020-09-11 14:21 ` Ville Syrjälä
2020-09-15 13:18 ` Lee, Shawn C
0 siblings, 1 reply; 6+ messages in thread
From: Ville Syrjälä @ 2020-09-11 14:21 UTC (permalink / raw)
To: Lee Shawn C; +Cc: Cooper Chiou, William Tseng, Jani Nikula, intel-gfx
On Thu, Aug 27, 2020 at 01:51:29PM +0800, Lee Shawn C wrote:
> Customer report random display flicker issue on Nightfury board.
> And we found this problem might be caused by VT-d and FBC are
> both enabled. According to sighting report, it recommend to turn
> drm/i915/fbc: disable FBC on Nightfury board
>
> Customer report random display flicker issue on Nightfury board.
> And we found this problem might be caused by VT-d and FBC are
> both enabled. According to sighting report, it recommend to turn
> FBC off to workaround this kind of issue.
>
> This change refer to DMI BOARD_VENDOR and BOARD_NAME information
> to disable FBC.
What is this "nightfury board" exactly?
I think we're missing at least one fbc vs. vt-d w/a on some
kbl/cfl/etc. era platforms:
git://github.com/vsyrjala/linux.git vtd_wa_1142
>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: William Tseng <william.tseng@intel.com>
> Cc: Cooper Chiou <cooper.chiou@intel.com>
> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
> index 327af428d73f..20660fdbab36 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
> @@ -39,6 +39,7 @@
> */
>
> #include <drm/drm_fourcc.h>
> +#include <linux/dmi.h>
>
> #include "i915_drv.h"
> #include "i915_trace.h"
> @@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
> return 0;
> }
>
> +static int intel_fbc_vtd_callback(const struct dmi_system_id *id)
> +{
> + DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
> + return 1;
> +}
> +
> +static const struct dmi_system_id intel_fbc_vtd_detect[] = {
> + {
> + .callback = intel_fbc_vtd_callback,
> + .ident = "Google Nightfury",
> + .matches = {
> + DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
> + DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
> + },
> + },
> + { }
> +};
> +
> static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
> {
> /* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */
> @@ -1450,6 +1469,9 @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
> return true;
> }
>
> + if (dmi_check_system(intel_fbc_vtd_detect))
> + return true;
> +
> return false;
> }
>
> --
> 2.17.1
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board
@ 2020-08-27 5:51 Lee Shawn C
2020-09-11 14:21 ` Ville Syrjälä
0 siblings, 1 reply; 6+ messages in thread
From: Lee Shawn C @ 2020-08-27 5:51 UTC (permalink / raw)
To: intel-gfx; +Cc: Cooper Chiou, William Tseng, Jani Nikula
Customer report random display flicker issue on Nightfury board.
And we found this problem might be caused by VT-d and FBC are
both enabled. According to sighting report, it recommend to turn
drm/i915/fbc: disable FBC on Nightfury board
Customer report random display flicker issue on Nightfury board.
And we found this problem might be caused by VT-d and FBC are
both enabled. According to sighting report, it recommend to turn
FBC off to workaround this kind of issue.
This change refer to DMI BOARD_VENDOR and BOARD_NAME information
to disable FBC.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: William Tseng <william.tseng@intel.com>
Cc: Cooper Chiou <cooper.chiou@intel.com>
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
---
drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 327af428d73f..20660fdbab36 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -39,6 +39,7 @@
*/
#include <drm/drm_fourcc.h>
+#include <linux/dmi.h>
#include "i915_drv.h"
#include "i915_trace.h"
@@ -1439,6 +1440,24 @@ static int intel_sanitize_fbc_option(struct drm_i915_private *dev_priv)
return 0;
}
+static int intel_fbc_vtd_callback(const struct dmi_system_id *id)
+{
+ DRM_DEBUG_KMS("Disabling FBC to prevent screen flicker on %s device\n", id->ident);
+ return 1;
+}
+
+static const struct dmi_system_id intel_fbc_vtd_detect[] = {
+ {
+ .callback = intel_fbc_vtd_callback,
+ .ident = "Google Nightfury",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "Google"),
+ DMI_MATCH(DMI_BOARD_NAME, "Nightfury"),
+ },
+ },
+ { }
+};
+
static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
{
/* WaFbcTurnOffFbcWhenHyperVisorIsUsed:skl,bxt */
@@ -1450,6 +1469,9 @@ static bool need_fbc_vtd_wa(struct drm_i915_private *dev_priv)
return true;
}
+ if (dmi_check_system(intel_fbc_vtd_detect))
+ return true;
+
return false;
}
--
2.17.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-09-21 13:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:09 [Intel-gfx] [PATCH] drm/i915/fbc: disable FBC on Nightfury board Lee, Shawn C
-- strict thread matches above, loose matches on Subject: below --
2020-08-27 5:51 Lee Shawn C
2020-09-11 14:21 ` Ville Syrjälä
2020-09-15 13:18 ` Lee, Shawn C
2020-09-15 13:35 ` Ville Syrjälä
2020-09-21 13:15 ` Lee, Shawn C
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.