Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2293163pxu; Fri, 9 Oct 2020 12:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb8Wpa5a04vjbmrpyiOWbycyfbHKlyUiMLfvJunBYknjWaee5IwxnaO76wz9UTTGoJK07q X-Received: by 2002:a17:906:1411:: with SMTP id p17mr16425253ejc.102.1602273117494; Fri, 09 Oct 2020 12:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602273117; cv=none; d=google.com; s=arc-20160816; b=m3vOKv6pXKameXSjDY4a3rP6iQZDkLD21wZ3Cscr81d97AdRQfaFyiurZhB+IWQpUD 30gSCs5NMNTu8mdjlZAtNH88BHP5ytJIHqDx+iq3l4c+Zu8qef2om2meq+8fMYk+MWnr X8HbXn+GDgO3Uvj0NyLoHswBu9T6wkEauD07KOPo5vjsqvWinymUF3eIU3sg3tYzyP1k F0qZeTlCwoTTNAqkA54as9Bd7nvqvkodoroLsC5z0kNntqF/rpvhDyDzRRYYb4yP347b oSYgTwbKdP9lof38FKuJ3w+kiDHQhJTyMsJ5i0gpvi6Di+R5MQjMxOCcZJZADN78RfA5 PekA== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=aQ0/dy64GNY6E3PqMvkOeCw7tku1OiiEuNnrmc12zf0=; b=bzPjSQX4Oy133EjhkUC9U150fAyOYyh2RptzN2C6HYKH5R0DHrKftNNnjEhG3nv0Im r2ynsT0itYg8w20OnwXxYdbZeqooEEbgGe+zf1zfZG9rdZvCLPZpwo1UcF+3tBLZq31u eVRmro7636fzlYoDaTTUxnwdqqPVhacHdLXp5/B0+HFr756SFbC6RxuRDggAmA3/oKR9 xE1VpJpNOK/Dilv0okFlZw/xUd8vdetuSacSiZAhfM34R8XM0Y0kkfCrisodrdrp/ux7 UUybpFGlBYiZiVByUtqdsJADS0qPgwc0/ZRdxrSGz467+5AeL2dJdtTISYh5V4EMHpZk 1uIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n2lSWZNp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck10si6836779ejb.707.2020.10.09.12.51.34; Fri, 09 Oct 2020 12:51:57 -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=@gmail.com header.s=20161025 header.b=n2lSWZNp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389162AbgJIPDy (ORCPT + 99 others); Fri, 9 Oct 2020 11:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389135AbgJIPDu (ORCPT ); Fri, 9 Oct 2020 11:03:50 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88FCC0613D2; Fri, 9 Oct 2020 08:03:49 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id qp15so13548099ejb.3; Fri, 09 Oct 2020 08:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=aQ0/dy64GNY6E3PqMvkOeCw7tku1OiiEuNnrmc12zf0=; b=n2lSWZNpzrKXWTKd1W6mZN+iU+a03pL3chC65/ow10mL+TcHLgzGZy6LaSdOqRudg2 6ZnCwN00jr16PIJT7A98Fh3R0/ILkQEqWtvrPP/EU7af/GK7xJj7ImO32dzizw+rTHBN UmGIHDUFMyX/UowHrHokTHnotADyzWToutWCXju6AkMzkRsX4dAzjjaZ38Jn1LDDk/rU kQk4B1CL3KlMA1w76fNMBa6Dag//EKTiATOsGcXZhdPTVPjgo08ilGkEuMmtxaTFsFcj LmSJsFK/XxxeDqkKIxFcIh2W6lZz/j27/KRVNINvUTONV0HOh9W4FwjbGGLfQiPc9voJ ZhbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aQ0/dy64GNY6E3PqMvkOeCw7tku1OiiEuNnrmc12zf0=; b=SaOedBEGPzdoQw589qsPp7w/zJz95kmm/8WAFRJycpAaXh2UeDvUQ+a32VMsFjJteQ OPXpJxmyoXD/bxQP5SzNFjbNpBgwBdqRqboW9l9I4STWygAV9wE5hrQROc+dHUV1XeXL P2aTI1AUZoFnP4w9/+Hryc+mUbiHMZI3ufggGscpLDMJCjTyDOkIJl65h6kfsSV4qry4 Evd/k27zPWpQuzjxvU2MwksfCh1fT50gmSd2OddN0wjBg1XrSNYzYzGCDHIi1vmsmkGw TXTvXa+q2qaCyKGiNDYT0r8/U6Bn+oqmra3J3Ax9QrsedVvcHGsvGw0TGJRpIqNycdfV deAg== X-Gm-Message-State: AOAM530mwbj5890yKRF89Xqruyfyr511cLaaxxc5EgqAmg/Z0fRvDSf8 CzIi8OeJZAUPfYOZBcJWzLA= X-Received: by 2002:a17:906:2681:: with SMTP id t1mr15258406ejc.474.1602255828284; Fri, 09 Oct 2020 08:03:48 -0700 (PDT) Received: from abel.fritz.box ([2a02:908:1252:fb60:65f3:51d4:50d0:15b0]) by smtp.gmail.com with ESMTPSA id v14sm789364edy.68.2020.10.09.08.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 08:03:47 -0700 (PDT) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, chris@chris-wilson.co.uk, airlied@redhat.com, akpm@linux-foundation.org, daniel@ffwll.ch, sumit.semwal@linaro.org, willy@infradead.org, jhubbard@nvidia.com, jgg@ziepe.ca Subject: [PATCH 4/6] drm/amdgpu: stop using pages with drm_prime_sg_to_page_addr_arrays Date: Fri, 9 Oct 2020 17:03:40 +0200 Message-Id: <20201009150342.1979-4-christian.koenig@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201009150342.1979-1-christian.koenig@amd.com> References: <20201009150342.1979-1-christian.koenig@amd.com> 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 This is deprecated. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 399961035ae6..ac463e706b19 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1011,8 +1011,8 @@ static int amdgpu_ttm_tt_pin_userptr(struct ttm_bo_device *bdev, goto release_sg; /* convert SG to linear array of pages and dma addresses */ - drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages, - gtt->ttm.dma_address, ttm->num_pages); + drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL, gtt->ttm.dma_address, + ttm->num_pages); return 0; @@ -1345,7 +1345,7 @@ static int amdgpu_ttm_tt_populate(struct ttm_bo_device *bdev, ttm->sg = sgt; } - drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages, + drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL, gtt->ttm.dma_address, ttm->num_pages); ttm_tt_set_populated(ttm); -- 2.17.1