Re: [PATCH 1/2] drm/amdgpu/gmc10: remove dead code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 08, 2020 at 10:16:01PM -0500, Alex Deucher wrote:
> Leftover from bring up.  We look up the actual pre-OS memory usage
> value later in the same function.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>

Series are Reviewed-by: Huang Rui <ray.huang@xxxxxxx>

> ---
>  drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> index 7dc8c068c62a..faa310b76b50 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> @@ -736,15 +736,6 @@ static int gmc_v10_0_sw_init(void *handle)
>  	 */
>  	adev->gmc.mc_mask = 0xffffffffffffULL; /* 48 bit MC */
>  
> -	/*
> -	 * Reserve 8M stolen memory for navi10 like vega10
> -	 * TODO: will check if it's really needed on asic.
> -	 */
> -	if (amdgpu_emu_mode == 1)
> -		adev->gmc.stolen_size = 0;
> -	else
> -		adev->gmc.stolen_size = 9 * 1024 *1024;
> -
>  	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
>  	if (r) {
>  		printk(KERN_WARNING "amdgpu: No suitable DMA available.\n");
> -- 
> 2.24.1
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cray.huang%40amd.com%7Cfcadbf4647914b13864b08d794b24878%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637141365794342902&amp;sdata=NLyK5M3lt7wTTYi3qKerRge46seP7DEi06vjCOOeo3Q%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux