From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D03D5C388F7 for ; Tue, 3 Nov 2020 21:48:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7774A22384 for ; Tue, 3 Nov 2020 21:48:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604440115; bh=htbCk3ghqWk9KBudqT3he2YY5YIGXCk+Mdqfd3iCmdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rIbOtDzzHJrfOQqfwDuqN1iPzrANrm+KJJLU3PI8EQd7uMZ7r+ZFYA2RWGsz16rAj 1i0DsqPRGBMxqZ3A9XqI9CxRdgCoMd2Iwadcquufn0RaRYm5dMUZXOwRGPkUxm6p+k VHiI2kMRohLEvBq8wgFHKDAheoEoj+vrvAZg9pyg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731748AbgKCUuK (ORCPT ); Tue, 3 Nov 2020 15:50:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:43960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731763AbgKCUuK (ORCPT ); Tue, 3 Nov 2020 15:50:10 -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 AC90F20719; Tue, 3 Nov 2020 20:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436610; bh=htbCk3ghqWk9KBudqT3he2YY5YIGXCk+Mdqfd3iCmdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A5kT4w/Tf4cljfP8yVGTgLids5n9Cr+jf7dM2VhCyaHEN3OiUsBNvqc87teaAkb/4 QMKeR1saDxfDWnVgqWn96oeVz3iQ/i2OJNkHq++TZLxXWZ5w7n2nrXMQVEZnREmLoP eIkIo1EuaMpnfO4+LAMvX1mXHhhMw6bBoaXW6FYc= 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.9 325/391] drm/amdgpu: increase the reserved VM size to 2MB Date: Tue, 3 Nov 2020 21:36:16 +0100 Message-Id: <20201103203409.056081006@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203348.153465465@linuxfoundation.org> References: <20201103203348.153465465@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: stable@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 @@ -112,8 +112,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