drm/amdgpu: drop alpha support
We will probably never see this combination. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c8b26bd1d2
commit
b94e433660
@ -538,31 +538,6 @@ static int amdgpu_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
mem->bus.base = adev->mc.aper_base;
|
mem->bus.base = adev->mc.aper_base;
|
||||||
mem->bus.is_iomem = true;
|
mem->bus.is_iomem = true;
|
||||||
#ifdef __alpha__
|
|
||||||
/*
|
|
||||||
* Alpha: use bus.addr to hold the ioremap() return,
|
|
||||||
* so we can modify bus.base below.
|
|
||||||
*/
|
|
||||||
if (mem->placement & TTM_PL_FLAG_WC)
|
|
||||||
mem->bus.addr =
|
|
||||||
ioremap_wc(mem->bus.base + mem->bus.offset,
|
|
||||||
mem->bus.size);
|
|
||||||
else
|
|
||||||
mem->bus.addr =
|
|
||||||
ioremap_nocache(mem->bus.base + mem->bus.offset,
|
|
||||||
mem->bus.size);
|
|
||||||
if (!mem->bus.addr)
|
|
||||||
return -ENOMEM;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Alpha: Use just the bus offset plus
|
|
||||||
* the hose/domain memory base for bus.base.
|
|
||||||
* It then can be used to build PTEs for VRAM
|
|
||||||
* access, as done in ttm_bo_vm_fault().
|
|
||||||
*/
|
|
||||||
mem->bus.base = (mem->bus.base & 0x0ffffffffUL) +
|
|
||||||
adev->ddev->hose->dense_mem_base;
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user