FreeBSD/sys/dev/drm2/radeon/si.c
/* SI MC address space is 40 bits */
SI MC address space is 40 bits
SI MC address space is 40 bits
static void si_vram_location(struct radeon_device *rdev,
			     struct radeon_mc *mc, u64 base)
{
	mc->vram_start = base;
	if (mc->mc_vram_size > (0xFFFFFFFFFFULL - base + 1)) {
		dev_warn(rdev->dev, "limiting VRAM to PCI aperture size\n");
		mc->real_vram_size = mc->aper_size;
		mc->mc_vram_size = mc->aper_size;
	}
	mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
	dev_info(rdev->dev, "VRAM: %juM 0x%016jX - 0x%016jX (%juM used)\n",
			(uintmax_t)mc->mc_vram_size >> 20, (uintmax_t)mc->vram_start,
			(uintmax_t)mc->vram_end, (uintmax_t)mc->real_vram_size >> 20);
}
static void si_vram_location ( struct radeon_device * rdev , struct radeon_mc * mc , u64 base ) { mc -> vram_start = base ; if ( mc -> mc_vram_size > ( 0xFFFFFFFFFFULL - base + 1 ) ) { dev_warn ( rdev -> dev , " \n " ) ; mc -> real_vram_size = mc -> aper_size ; mc -> mc_vram_size = mc -> aper_size ; } mc -> vram_end = mc -> vram_start + mc -> mc_vram_size - 1 ; dev_info ( rdev -> dev , " \n " , ( uintmax_t ) mc -> mc_vram_size >> 20 , ( uintmax_t ) mc -> vram_start , ( uintmax_t ) mc -> vram_end , ( uintmax_t ) mc -> real_vram_size >> 20 ) ; }
SI MC address space is 40 bits
SI MC address space is 40 bits