gpu: nvgpu: set soc memory aperture type

Set platform data for soc memory aperture type, whether
soc memory aperture seen as sysmem or vidmem. For gk20a/gm20b,
soc memory aperture seen as vidmem.

Bug 1749338

Change-Id: I407562ca484c1a4bae1bee12089d2b19f378ca53
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1129167
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
This commit is contained in:
Seshendra Gadagottu
2016-04-19 14:27:23 -07:00
committed by Ken Adams
parent 63319c0fb9
commit 26b0037dc6
2 changed files with 10 additions and 0 deletions

View File

@@ -211,6 +211,10 @@ struct gk20a_platform {
/* soc name for finding firmware files */
const char *soc_name;
/* if vidmem aperture actually points to vidmem*/
bool vidmem_is_vidmem;
};
static inline struct gk20a_platform *gk20a_get_platform(