mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
Revert "gpu: nvgpu: vgpu: support reduced BAR1 range"
This reverts commit 2adf9164d9.
Change-Id: I3f34fe3f7353d57da576cb90ca704d375b45ef63
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1126311
Reviewed-by: Adeel Raza <araza@nvidia.com>
This commit is contained in:
@@ -233,7 +233,6 @@ clean_up:
|
||||
static int vgpu_init_fifo_setup_sw(struct gk20a *g)
|
||||
{
|
||||
struct gk20a_platform *platform = gk20a_get_platform(g->dev);
|
||||
struct resource *r = platform_get_resource(g->dev, IORESOURCE_MEM, 0);
|
||||
struct fifo_gk20a *f = &g->fifo;
|
||||
struct device *d = dev_from_gk20a(g);
|
||||
int chid, err = 0;
|
||||
@@ -271,11 +270,6 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g)
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
/* if reduced BAR1 range is specified, use offset of 0
|
||||
(server returns offset assuming full BAR1 range) */
|
||||
if (resource_size(r) == (resource_size_t)f->userd.size)
|
||||
f->userd.gpu_va = 0;
|
||||
|
||||
gk20a_dbg(gpu_dbg_map, "userd bar1 va = 0x%llx", f->userd.gpu_va);
|
||||
|
||||
f->channel = kzalloc(f->num_channels * sizeof(*f->channel),
|
||||
|
||||
Reference in New Issue
Block a user