[RFC PATCH 1/3] drm: introduce new struct drm_mem_region

2019-07-29 Thread Brian Welty
Move basic members of ttm_mem_type_manager into a new DRM memory region structure. The idea is for this base structure to be nested inside the TTM structure and later in Intel's proposed intel_memory_region. As comments in the code suggest, the following future work can extend the usefulness of t

Re: [RFC PATCH 1/3] drm: introduce new struct drm_mem_region

2019-07-29 Thread Sam Ravnborg
Hi Brian. Small nit below - did not try to understand your patch. Sam > diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h > index 2c3bbb43c7d1..3d123eb10d62 100644 > --- a/include/drm/drm_mm.h > +++ b/include/drm/drm_mm.h > @@ -43,6 +43,8 @@ > #include > #include > #include

[RFC PATCH 1/3] drm: introduce new struct drm_mem_region

2019-07-29 Thread Brian Welty
Move basic members of ttm_mem_type_manager into a new DRM memory region structure. The idea is for this base structure to be nested inside the TTM structure and later in Intel's proposed intel_memory_region. As comments in the code suggest, the following future work can extend the usefulness of t