Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3546464pxj; Mon, 24 May 2021 09:05:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjCDMTxYtXKCVQ0pxUXcelXozelqqqATqFXxdtdZqfdSaMYTqPr7mmRfQ2ArlCY7E/a7Ew X-Received: by 2002:a05:6402:b63:: with SMTP id cb3mr26660765edb.189.1621872354871; Mon, 24 May 2021 09:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872354; cv=none; d=google.com; s=arc-20160816; b=A/0KQqkE2S0PsemNPWPitXTd3j/p6FYAlb1Fh6xyzDqa2lCx9U5DydUzcOSXBfEU/r tYvBuoRG5G7oxGvao4uoHmN5FgNEDd3GNe7F0rnZGA5Wi0QoYCHphYjBddZgCDZ9/x9o y0ptvEY/Y3SigfHosoXRkFF1lsX/4Pec8JCnxdaIWs+w8vsaqpBuRtUnrbFg7KhT2Kpy 8hEYn/iH+Qu0h+9vE+53Q/kLkRem7KGfJsunSY+LIT5GJ1BU7ZZl8x1Jn2kwn8NsoWGf EF6QWO9xz+h7nto5Rl9ULMPO3U61p5j/JNl2WlRINnB5Wy9zVnp3uLq62rLu0THvM1kQ 0Nyg== 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=cse+JLwOtHp6b4uD2WDKM15Hd4V8W5mA7lA7OQVH0F8=; b=ntA1Dc5RvYn/WDSq2xN/Sy0p4JkauS22VbAOn9fH9GRU2ZK9QFB9mF6WAXXCM5QIim VrDpeRNkJQegfpYHJ6bBL6oxADKHG/BhoOhb008jX/fmPdKXsodPym2Z6lmOjv1n6ni7 TMVLyOPKSffdM7lTg+HstcDVgrL4L5WkYc17jQKeeCkVB8tJA+0iZIm9mP6sxrG0vPpx MPvVCM2//mQkpQ1afeIrz1bjofn90CN8890qUw7giHCmm0LBVGq0D+cSV33ZBpYSHpRF LGbjHH7HZrq96tl/D/wKvsQB0mAXPWm+6IDvKkLR0PGH6XkZXbczo9Bi3bwEwcUvEIiA m3Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G/ggzB4v"; 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=pass (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 e6si14554765edz.576.2021.05.24.09.05.22; Mon, 24 May 2021 09:05:54 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="G/ggzB4v"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237859AbhEXQFm (ORCPT + 99 others); Mon, 24 May 2021 12:05:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:43814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235783AbhEXP7K (ORCPT ); Mon, 24 May 2021 11:59:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB29E6144F; Mon, 24 May 2021 15:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871105; bh=WG1NXLp8LD315tqu5BuRcUtXWwveUUwUbSnMh7d7p7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G/ggzB4vAOAUy6yoJRs1IQUc/Z4hP/ams8RaITR+7H7DKmiZuMxefCqunRkr/oNTx uaRPVRLuMPoRhyLA6kEmhTK+W5MTRXzsfTTlC77lXuLoSrlzJ873hNula3nXiau/fZ wHjyKHa4vKm9o9HQYW7m3eGwVlEzDo6ZHOZHsUKs= 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?= , Alex Deucher Subject: [PATCH 5.12 076/127] drm/radeon: use the dummy page for GART if needed Date: Mon, 24 May 2021 17:26:33 +0200 Message-Id: <20210524152337.423141123@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@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 0c8df343c200529e6b9820bdfed01814140f75e4 upstream. Imported BOs don't have a pagelist any more. Signed-off-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Fixes: 0575ff3d33cd ("drm/radeon: stop using pages with drm_prime_sg_to_page_addr_arrays v2") CC: stable@vger.kernel.org # 5.12 Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_gart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c @@ -301,7 +301,8 @@ int radeon_gart_bind(struct radeon_devic p = t / (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); for (i = 0; i < pages; i++, p++) { - rdev->gart.pages[p] = pagelist[i]; + rdev->gart.pages[p] = pagelist ? pagelist[i] : + rdev->dummy_page.page; page_base = dma_addr[i]; for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) { page_entry = radeon_gart_get_page_entry(page_base, flags);