]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: cleanup the region class/instance encoding
authorMatthew Auld <matthew.auld@intel.com>
Fri, 5 Feb 2021 10:20:25 +0000 (10:20 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 18:31:59 +0000 (19:31 +0100)
commit230ad5f958b5674692185b4d7323632dec069fa2
tree39047f3c2be31cd783114f7e5d0516ed44c94508
parent1d34fa14532a983adec6577a0f53e7c1d3ce59d9
drm/i915: cleanup the region class/instance encoding

Get rid of the strange REGION_MAP encoding stuff and just use an
explicit class/instance pair for each region. This better matches our
future uAPI where all queryable regions are identified with a u16 class
and u16 instance.

v2: fix whitespace

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205102026.806699-1-matthew.auld@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_memory_region.c
drivers/gpu/drm/i915/intel_memory_region.h