From patchwork Fri Oct 9 15:03:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 11826185 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B186139F for ; Fri, 9 Oct 2020 15:03:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 174E722260 for ; Fri, 9 Oct 2020 15:03:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n2lSWZNp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 174E722260 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 315016B009D; Fri, 9 Oct 2020 11:03:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2A8B06B009E; Fri, 9 Oct 2020 11:03:51 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13BFC94000B; Fri, 9 Oct 2020 11:03:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0152.hostedemail.com [216.40.44.152]) by kanga.kvack.org (Postfix) with ESMTP id D54D56B009D for ; Fri, 9 Oct 2020 11:03:50 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 607A9180AD811 for ; Fri, 9 Oct 2020 15:03:50 +0000 (UTC) X-FDA: 77352706620.06.vase96_3b156a5271e1 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 4260E101DB63F for ; Fri, 9 Oct 2020 15:03:50 +0000 (UTC) X-Spam-Summary: 1,0,0,a0d5def3d0a8cb0a,d41d8cd98f00b204,ckoenig.leichtzumerken@gmail.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1534:1541:1593:1594:1676:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3350:3866:3867:3868:3871:4250:4321:5007:6261:6653:6737:9413:10004:10400:11026:11657:11658:11914:12043:12048:12114:12297:12438:12517:12519:12555:12895:12986:13069:13311:13357:13894:14096:14097:14181:14394:14659:14687:14721:21080:21433:21444:21451:21627:21666:21987:21990:30054:30064,0,RBL:209.85.218.66:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yr4jjecmegu9fb6g1q896jqfmzkoczyw5yk6qfp5csehfduwirg57zp8kb8us.1ja4wps5icgn45cmpinth8usgdsi3a47f7m8455goq4qpso16bnrnyyeckx38qe.k-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: vase96_3b156a5271e1 X-Filterd-Recvd-Size: 4485 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Fri, 9 Oct 2020 15:03:49 +0000 (UTC) Received: by mail-ej1-f66.google.com with SMTP id h24so13511713ejg.9 for ; 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=cUB9DeDTrEudUeR+Khr+BXIrPCJpN3eHpoG/NrDNf54TzlvaFDRaZZFm7c3V5Lm/NS 8NgYSGpJssjNZZCQQq8l0/R32txMJjV9Y5fIV4/IsK0YAmDuQRfDAK1bAr2E9A5KJ91/ nAZozUhzkIYa6x0fANagmU1SesCd4vVh4tQeTwdAHBBi6GvHigqzhPgtERkoklGZ35WR tT9MGlPZFhJUzM3IOudORAlbKnPYEF62LyZhpIfA2hV9t0EF72uejGp0cw3NVYNVYhtx XjOvJMF4OAp9sm2TUYZUnNcBc7eaAqjFWW5TNcdWwC8QEhmkPnnfYZxptXJoK1wjxbLX Oldg== X-Gm-Message-State: AOAM531WqGI6P6PJs+qrttdyg4nZa2GQshN3lohT1mtTpIOCDR0XihbN A6wWW6gMx7d7/k5N9Elam9JpbaS+uAA= X-Google-Smtp-Source: ABdhPJwwEFyy7ezS1KLDN5XkqzgWY/1qVctpNR81azSANIwKr5bqZ2LqAFPivOFH8zfDpSVfOFDs8Q== 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_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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);