Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp804359pxb; Tue, 3 Nov 2020 13:01:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp5MlvhmbJsM6n6lE6ywnNDWR2xQ6BWusJqBAtfAZSJy70Kl9kTNQeG76ysZW4DJFAnC2g X-Received: by 2002:a17:906:3617:: with SMTP id q23mr21703035ejb.371.1604437290067; Tue, 03 Nov 2020 13:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437290; cv=none; d=google.com; s=arc-20160816; b=EsQH77doMwWugLgk+8rnudrkN03G1HOR2ssEhuz/oVEFLdaIoEc+dl3Y27h5aCcBwS mHZcVrGKgCkNb6nQfS1gHjh22pPoE/1IqmtK+zRwRlJdreSkNRtNDS3+jViaKd/8sga4 0Fr9eb3XXFiTW6yPWvSoKnK9cdNw71m8KTXSbqKdCulZqtjjm3dljxAOPQzjtosjTgR2 iwwcoOony/mStMb57ET0V6+L1CV4FgckgUlLAjWaJShQQTBjk1b6UQPauBh52lvMQvrw Mtow1X4qnhfS7Q3niCnhHVZU+q6QpEKSlUnPZhVLd9tyQuq0fdvk8AIbRLv7N9YdoRUw QB2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OLxJ4GBDVxeCdy/BVZ321de7PdyqclMr3o9z5P99ygo=; b=B/JSp1s7FK9x44d+iwIgH4eXEWd1q5HYqkD11UyHT6Q43a2hwSLZAN/V/plweOKt1I 0/Fb3YaHAgEoDqfTqMOsuPGLaWU+4l1HIMDRJ2L1cNlTXtVmxzoo/MfZFreNJBkL8cev jUmRjOSpWkWA1ovbS1cyM8wpEamfIHC3vm4+VU0Mv8tOL1LNUgzJBPNwnX4ELvIpM87S RRJgAhpApG97h4kPY5YfhSL6JWnimVgA5mccNoq8ooDJhOZMYswUaVAHoxb1CDh/FewT VslWdlXQ3y6udwBnSZMufCuWuphij0XE5sxvadyncFp6Wsrsf0Cpsdhiylc7T3LKyoGh Atqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rSM0gHGB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si12007103edc.106.2020.11.03.13.01.06; Tue, 03 Nov 2020 13:01:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rSM0gHGB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733162AbgKCU7x (ORCPT + 99 others); Tue, 3 Nov 2020 15:59:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:35208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732595AbgKCU7u (ORCPT ); Tue, 3 Nov 2020 15:59:50 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3DE522226; Tue, 3 Nov 2020 20:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437190; bh=NxqE1FSMd0WMwGTNxS+IXqBEYByHxythC4dwMbHPXrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rSM0gHGB0/TfuX62yizMpnQ18178SilpQxWB+Tj8h0SWaVkk3+a84Fvn8u/hShKQp 0LfcIQ8qDJIjprC0GkE8Yuux7R1uwliqEDrt4YBZI7rSJuD/9wssgnoTWN7Pg1ie81 FFScZx0tDzSf508aXY84EiaErgzJhn1M0WO/53RU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , Madhav Chauhan , Felix Kuehling , Alex Deucher Subject: [PATCH 5.4 184/214] drm/amdgpu: increase the reserved VM size to 2MB Date: Tue, 3 Nov 2020 21:37:12 +0100 Message-Id: <20201103203307.950048751@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian König commit 55bb919be4e4973cd037a04f527ecc6686800437 upstream. Ideally this should be a multiple of the VM block size. 2MB should at least fit for Vega/Navi. Signed-off-by: Christian König Reviewed-by: Madhav Chauhan Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h @@ -105,8 +105,8 @@ struct amdgpu_bo_list_entry; #define AMDGPU_MMHUB_0 1 #define AMDGPU_MMHUB_1 2 -/* hardcode that limit for now */ -#define AMDGPU_VA_RESERVED_SIZE (1ULL << 20) +/* Reserve 2MB at top/bottom of address space for kernel use */ +#define AMDGPU_VA_RESERVED_SIZE (2ULL << 20) /* max vmids dedicated for process */ #define AMDGPU_VM_MAX_RESERVED_VMID 1