drm/i915: Handle dbuf bypass path allocation earlier
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Apr 2021 17:10:05 +0000 (20:10 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Apr 2021 22:25:21 +0000 (01:25 +0300)
commit77531b0ef621b62e5164d33411106a3415eb7b67
tree1f263ab63fef6d4ec353df72c241ff4708b13d91
parent708de86e10e59352eb57a3ad6a5a524d8f5c9f13
drm/i915: Handle dbuf bypass path allocation earlier

We always reserve the same 4 dbuf blocks for the bypass path
allocation, so might as well do that when declaring the dbuf
size.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210416171011.19012-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_pm.c