Message ID | 20220704161548.1343042-1-arun.r.murthy@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PATCHv3] drm/i915: Support Async Flip on Linear buffers | expand |
Gentle Reminder! Thanks and Regards, Arun R Murthy -------------------- > -----Original Message----- > From: Murthy, Arun R <arun.r.murthy@intel.com> > Sent: Monday, July 4, 2022 9:46 PM > To: intel-gfx@lists.freedesktop.org > Cc: ville.syrjala@linux.intel.com; Shankar, Uma <uma.shankar@intel.com>; > Murthy, Arun R <arun.r.murthy@intel.com> > Subject: [PATCHv3] drm/i915: Support Async Flip on Linear buffers > > Intel Gen do support Async Flip is supported on linear buffers. Since we > didn't had a use case, it was not enabled. Now that as part of hybrid graphics > for unsupported hardware pixel formats, its being converted to linear > memory and then flipped, hence enabling! > This patch enables support for async on linear buffer. > > v2: added use case > v3: enabled async on linear for pre Gen 12 as well > > Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com> > --- > drivers/gpu/drm/i915/display/intel_display.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c > b/drivers/gpu/drm/i915/display/intel_display.c > index a0f84cbe974f..99ad67af74e3 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -6614,6 +6614,7 @@ static int intel_async_flip_check_hw(struct > intel_atomic_state *state, struct in > * this selectively if required. > */ > switch (new_plane_state->hw.fb->modifier) { > + case DRM_FORMAT_MOD_LINEAR: > case I915_FORMAT_MOD_X_TILED: > case I915_FORMAT_MOD_Y_TILED: > case I915_FORMAT_MOD_Yf_TILED: > -- > 2.25.1
On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote: > Intel Gen do support Async Flip is supported on linear buffers. Since we > didn't had a use case, it was not enabled. Now that as part of hybrid > graphics for unsupported hardware pixel formats, its being converted to > linear memory and then flipped, hence enabling! > This patch enables support for async on linear buffer. > > v2: added use case > v3: enabled async on linear for pre Gen 12 as well I didn't think it went all the way back to gen9? Also we still don't seem to have any tests for this stuff... > > Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com> > --- > drivers/gpu/drm/i915/display/intel_display.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c > index a0f84cbe974f..99ad67af74e3 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -6614,6 +6614,7 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct in > * this selectively if required. > */ > switch (new_plane_state->hw.fb->modifier) { > + case DRM_FORMAT_MOD_LINEAR: > case I915_FORMAT_MOD_X_TILED: > case I915_FORMAT_MOD_Y_TILED: > case I915_FORMAT_MOD_Yf_TILED: > -- > 2.25.1
> -----Original Message----- > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > Sent: Tuesday, August 23, 2022 6:27 PM > To: Murthy, Arun R <arun.r.murthy@intel.com> > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma <uma.shankar@intel.com> > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear buffers > > On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote: > > Intel Gen do support Async Flip is supported on linear buffers. Since > > we didn't had a use case, it was not enabled. Now that as part of > > hybrid graphics for unsupported hardware pixel formats, its being > > converted to linear memory and then flipped, hence enabling! > > This patch enables support for async on linear buffer. > > > > v2: added use case > > v3: enabled async on linear for pre Gen 12 as well > > I didn't think it went all the way back to gen9? > It's the same as other buffers. I have just added support for linear buffer in the present async flip path, so the platforms on which the async flip is supported will support linear buffer as well. > Also we still don't seem to have any tests for this stuff... There is an IGT patch in queue, once this patch is merged, the IGT patch will be floated. Thanks and Regards, Arun R Murthy --------------------
On Wed, Aug 24, 2022 at 03:02:33AM +0000, Murthy, Arun R wrote: > > -----Original Message----- > > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Sent: Tuesday, August 23, 2022 6:27 PM > > To: Murthy, Arun R <arun.r.murthy@intel.com> > > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma <uma.shankar@intel.com> > > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear buffers > > > > On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote: > > > Intel Gen do support Async Flip is supported on linear buffers. Since > > > we didn't had a use case, it was not enabled. Now that as part of > > > hybrid graphics for unsupported hardware pixel formats, its being > > > converted to linear memory and then flipped, hence enabling! > > > This patch enables support for async on linear buffer. > > > > > > v2: added use case > > > v3: enabled async on linear for pre Gen 12 as well > > > > I didn't think it went all the way back to gen9? > > > It's the same as other buffers. I have just added support for linear buffer in the present async flip path, so the platforms on which the async flip is supported will support linear buffer as well. I know what the patch does. But I don't think bspec agrees with it. > > > Also we still don't seem to have any tests for this stuff... > > There is an IGT patch in queue, once this patch is merged, the IGT patch will be floated. Do the igt stuff first. Then you can at least get some CI results for this stuff.
> -----Original Message----- > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > Sent: Wednesday, August 24, 2022 5:48 PM > To: Murthy, Arun R <arun.r.murthy@intel.com> > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma <uma.shankar@intel.com> > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear buffers > > On Wed, Aug 24, 2022 at 03:02:33AM +0000, Murthy, Arun R wrote: > > > -----Original Message----- > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > > Sent: Tuesday, August 23, 2022 6:27 PM > > > To: Murthy, Arun R <arun.r.murthy@intel.com> > > > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma > > > <uma.shankar@intel.com> > > > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear > > > buffers > > > > > > On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote: > > > > Intel Gen do support Async Flip is supported on linear buffers. > > > > Since we didn't had a use case, it was not enabled. Now that as > > > > part of hybrid graphics for unsupported hardware pixel formats, > > > > its being converted to linear memory and then flipped, hence enabling! > > > > This patch enables support for async on linear buffer. > > > > > > > > v2: added use case > > > > v3: enabled async on linear for pre Gen 12 as well > > > > > > I didn't think it went all the way back to gen9? > > > > > It's the same as other buffers. I have just added support for linear buffer in > the present async flip path, so the platforms on which the async flip is > supported will support linear buffer as well. > > I know what the patch does. But I don't think bspec agrees with it. > I initially had this async on linear buffer support from Gen12 onwards. Will add that check back. > > > > > Also we still don't seem to have any tests for this stuff... > > > > There is an IGT patch in queue, once this patch is merged, the IGT patch will > be floated. > > Do the igt stuff first. Then you can at least get some CI results for this stuff. > IGT has be floated. https://patchwork.freedesktop.org/series/107871/ Thanks and Regards, Arun R Murthy --------------------
On Tue, Aug 30, 2022 at 06:15:44AM +0000, Murthy, Arun R wrote: > > -----Original Message----- > > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > Sent: Wednesday, August 24, 2022 5:48 PM > > To: Murthy, Arun R <arun.r.murthy@intel.com> > > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma <uma.shankar@intel.com> > > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear buffers > > > > On Wed, Aug 24, 2022 at 03:02:33AM +0000, Murthy, Arun R wrote: > > > > -----Original Message----- > > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > > > Sent: Tuesday, August 23, 2022 6:27 PM > > > > To: Murthy, Arun R <arun.r.murthy@intel.com> > > > > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma > > > > <uma.shankar@intel.com> > > > > Subject: Re: [PATCHv3] drm/i915: Support Async Flip on Linear > > > > buffers > > > > > > > > On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote: > > > > > Intel Gen do support Async Flip is supported on linear buffers. > > > > > Since we didn't had a use case, it was not enabled. Now that as > > > > > part of hybrid graphics for unsupported hardware pixel formats, > > > > > its being converted to linear memory and then flipped, hence enabling! > > > > > This patch enables support for async on linear buffer. > > > > > > > > > > v2: added use case > > > > > v3: enabled async on linear for pre Gen 12 as well > > > > > > > > I didn't think it went all the way back to gen9? > > > > > > > It's the same as other buffers. I have just added support for linear buffer in > > the present async flip path, so the platforms on which the async flip is > > supported will support linear buffer as well. > > > > I know what the patch does. But I don't think bspec agrees with it. > > > I initially had this async on linear buffer support from Gen12 onwards. Will add that check back. We're just going in circles here. What I've asked repeatedly is actual justification for whatever gen check or no gen check there is. Ie. please *read* the bspec and include the appropriate information in the patch. Otherwise there is no point in me even looking at these patches anymore. > > > > > > > > Also we still don't seem to have any tests for this stuff... > > > > > > There is an IGT patch in queue, once this patch is merged, the IGT patch will > > be floated. > > > > Do the igt stuff first. Then you can at least get some CI results for this stuff. > > > IGT has be floated. https://patchwork.freedesktop.org/series/107871/ > > Thanks and Regards, > Arun R Murthy > --------------------
> > > > > > Intel Gen do support Async Flip is supported on linear buffers. > > > > > > Since we didn't had a use case, it was not enabled. Now that > > > > > > as part of hybrid graphics for unsupported hardware pixel > > > > > > formats, its being converted to linear memory and then flipped, > hence enabling! > > > > > > This patch enables support for async on linear buffer. > > > > > > > > > > > > v2: added use case > > > > > > v3: enabled async on linear for pre Gen 12 as well > > > > > > > > > > I didn't think it went all the way back to gen9? > > > > > > > > > It's the same as other buffers. I have just added support for > > > > linear buffer in > > > the present async flip path, so the platforms on which the async > > > flip is supported will support linear buffer as well. > > > > > > I know what the patch does. But I don't think bspec agrees with it. > > > > > I initially had this async on linear buffer support from Gen12 onwards. Will > add that check back. > > We're just going in circles here. What I've asked repeatedly is actual > justification for whatever gen check or no gen check there is. Ie. please > *read* the bspec and include the appropriate information in the patch. > Otherwise there is no point in me even looking at these patches anymore. > Per the BSpec async on Linear is not supported on Pre Gen 12. > > > > > > > > > > > Also we still don't seem to have any tests for this stuff... > > > > > > > > There is an IGT patch in queue, once this patch is merged, the IGT > > > > patch will > > > be floated. > > > > > > Do the igt stuff first. Then you can at least get some CI results for this > stuff. > > > > > IGT has be floated. https://patchwork.freedesktop.org/series/107871/ > > Thanks and Regards, Arun R Murthy --------------------
On Tue, Aug 30, 2022 at 07:57:15AM +0000, Murthy, Arun R wrote: > > > > > > > Intel Gen do support Async Flip is supported on linear buffers. > > > > > > > Since we didn't had a use case, it was not enabled. Now that > > > > > > > as part of hybrid graphics for unsupported hardware pixel > > > > > > > formats, its being converted to linear memory and then flipped, > > hence enabling! > > > > > > > This patch enables support for async on linear buffer. > > > > > > > > > > > > > > v2: added use case > > > > > > > v3: enabled async on linear for pre Gen 12 as well > > > > > > > > > > > > I didn't think it went all the way back to gen9? > > > > > > > > > > > It's the same as other buffers. I have just added support for > > > > > linear buffer in > > > > the present async flip path, so the platforms on which the async > > > > flip is supported will support linear buffer as well. > > > > > > > > I know what the patch does. But I don't think bspec agrees with it. > > > > > > > I initially had this async on linear buffer support from Gen12 onwards. Will > > add that check back. > > > > We're just going in circles here. What I've asked repeatedly is actual > > justification for whatever gen check or no gen check there is. Ie. please > > *read* the bspec and include the appropriate information in the patch. > > Otherwise there is no point in me even looking at these patches anymore. > > > Per the BSpec async on Linear is not supported on Pre Gen 12. Where in bspec does it say that? > > > > > > > > > > > > > > > Also we still don't seem to have any tests for this stuff... > > > > > > > > > > There is an IGT patch in queue, once this patch is merged, the IGT > > > > > patch will > > > > be floated. > > > > > > > > Do the igt stuff first. Then you can at least get some CI results for this > > stuff. > > > > > > > IGT has be floated. https://patchwork.freedesktop.org/series/107871/ > > > > > Thanks and Regards, > Arun R Murthy > --------------------
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index a0f84cbe974f..99ad67af74e3 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -6614,6 +6614,7 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct in * this selectively if required. */ switch (new_plane_state->hw.fb->modifier) { + case DRM_FORMAT_MOD_LINEAR: case I915_FORMAT_MOD_X_TILED: case I915_FORMAT_MOD_Y_TILED: case I915_FORMAT_MOD_Yf_TILED:
Intel Gen do support Async Flip is supported on linear buffers. Since we didn't had a use case, it was not enabled. Now that as part of hybrid graphics for unsupported hardware pixel formats, its being converted to linear memory and then flipped, hence enabling! This patch enables support for async on linear buffer. v2: added use case v3: enabled async on linear for pre Gen 12 as well Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com> --- drivers/gpu/drm/i915/display/intel_display.c | 1 + 1 file changed, 1 insertion(+)