mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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:
committed by
Ken Adams
parent
63319c0fb9
commit
26b0037dc6
@@ -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(
|
||||
|
||||
@@ -774,6 +774,8 @@ static int gk20a_tegra_probe(struct device *dev)
|
||||
if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA13)
|
||||
platform->soc_name = "tegra13x";
|
||||
|
||||
platform->g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem;
|
||||
|
||||
gk20a_tegra_get_clocks(dev);
|
||||
|
||||
return 0;
|
||||
@@ -910,6 +912,8 @@ struct gk20a_platform gk20a_tegra_platform = {
|
||||
.dump_platform_dependencies = gk20a_tegra_debug_dump,
|
||||
|
||||
.soc_name = "tegra12x",
|
||||
|
||||
.vidmem_is_vidmem = false,
|
||||
};
|
||||
|
||||
struct gk20a_platform gm20b_tegra_platform = {
|
||||
@@ -970,4 +974,6 @@ struct gk20a_platform gm20b_tegra_platform = {
|
||||
.has_cde = true,
|
||||
|
||||
.soc_name = "tegra21x",
|
||||
|
||||
.vidmem_is_vidmem = false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user