From patchwork Thu Oct 8 11:23:41 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: 11822663 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 24F666CA for ; Thu, 8 Oct 2020 11:23:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C9444217BA for ; Thu, 8 Oct 2020 11:23:52 +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="N72ShT07" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9444217BA 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 2FD786B006C; Thu, 8 Oct 2020 07:23:49 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 289556B0070; Thu, 8 Oct 2020 07:23:49 -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 15082900002; Thu, 8 Oct 2020 07:23:49 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0003.hostedemail.com [216.40.44.3]) by kanga.kvack.org (Postfix) with ESMTP id DE6E06B006C for ; Thu, 8 Oct 2020 07:23:48 -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 7D847180AD806 for ; Thu, 8 Oct 2020 11:23:48 +0000 (UTC) X-FDA: 77348523336.06.glass91_4402d41271d7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 5A7A01003DB0A for ; Thu, 8 Oct 2020 11:23:48 +0000 (UTC) X-Spam-Summary: 1,0,0,c74d6df2b40b220d,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:1515:1516:1518:1534:1541:1593:1594:1676:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3351:3871:3876:5007:6261:6653:9413:10004:10400:11026:11657:11658:11914:12043:12048:12114:12296:12297:12438:12517:12519:12555:12895:13069:13311:13357:13894:14096:14097:14181:14394:14659:14687:14721:21080:21444:21451:21627:21666:21987:21990:30054:30064,0,RBL:209.85.218.66:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yf1r4hyrs75qefo8ukua35puk61oceqphwuqi9uxuosktkwskhfn1i7pcnwez.wjw78ywqym5huzk7m79niczphijx8pbs7njkcazb49sw153pnaj8kgcc7a71nt3.w-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:23,LUA_SUMMARY:none X-HE-Tag: glass91_4402d41271d7 X-Filterd-Recvd-Size: 4436 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Thu, 8 Oct 2020 11:23:47 +0000 (UTC) Received: by mail-ej1-f66.google.com with SMTP id ce10so7565591ejc.5 for ; Thu, 08 Oct 2020 04:23:47 -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=MkTgctKmN/+akcDLdg3dMFFDd8/FeV1m0XEzLiveir0=; b=N72ShT079eXQazlnE4442KsEjcieKGhUZ1afEO0IPorQavbqRU0ZxaG0ZRbxEyqGem Zx47TfD8/NAi6oQnUr7c9xV4sr2Q0DfHH0IQWtuJrGMGMWlcNSrD9Vqi3XLo1gbyiyAW DP9j8NEPbHN6ejO8Hh3Ike4eC8QhwNR3CK51RSGGTQNvIr6Cny38/8E7l1YYGbh7xtfj VfXDQxkNCUpazWHChb3RD62Au5iMbkOGIAv/dqXajlxntP8EdKjWnrjIth9+YtsGYOzo x80XrVVy20COvcFAhhLqdMyinw9dPHAw8BaZ5cq0nj8eZKj7sGLu9I04HzAvT1pG5zPs jorQ== 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=MkTgctKmN/+akcDLdg3dMFFDd8/FeV1m0XEzLiveir0=; b=fsoaEJLb7tTNeN0cDavKHtylKOUtyuyiKZ68lYfKTswH55VZ/Tqj2c7QYIAgAbagos U7SAMDfQN31XQPIkxg12f9jgNy131bCVron+9aLi0B2k6qdpiPWph8CiEdECFQ5L6h7B 74D4PAUseRGDCrgYrqOPbVhyS3JI2sMjCJPRDJcDeAqzZR6+sdIZF3DU0DAlHLsVaT+U 1kfk9GUOOQ7Y/hF8fhKq3bf9HHyRP75jNOoxTQWR08g1EvX9p0sIIxs+KIqd8UjV7Eu9 dV5GR7VyBrkq2TEedxnaHjqDoKtZopszGyNAPXJl+5XRRI4wn0ZG1P8aSmAh5YBbs0hz sqkQ== X-Gm-Message-State: AOAM5330Nu2pJHo/Wgs0eWJ6sJwL6oppYRuJRPPYf+hpWILn0+BE0Qbl Jz2i7qMScxAZleDqmYGlCl625YJYf9Y= X-Google-Smtp-Source: ABdhPJydc6wMYfotM6Ls7zhjsrHFWLvCwnPy4prHIfnBFnQVlWjXOhRunGbHJon/G6KJb7Y66ZUIsg== X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr8424563ejc.47.1602156226681; Thu, 08 Oct 2020 04:23:46 -0700 (PDT) Received: from abel.fritz.box ([2a02:908:1252:fb60:4c64:a9a0:5e0:905a]) by smtp.gmail.com with ESMTPSA id i20sm3529030edv.96.2020.10.08.04.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 04:23:46 -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 Subject: [PATCH 3/4] drm/radeon: stop using pages with drm_prime_sg_to_page_addr_arrays Date: Thu, 8 Oct 2020 13:23:41 +0200 Message-Id: <20201008112342.9394-3-christian.koenig@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008112342.9394-1-christian.koenig@amd.com> References: <20201008112342.9394-1-christian.koenig@amd.com> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000011, 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/radeon/radeon_ttm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 63e38b05a5bc..4b92cdbcd29b 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -474,8 +474,8 @@ static int radeon_ttm_tt_pin_userptr(struct ttm_bo_device *bdev, struct ttm_tt * if (r) goto release_sg; - 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; @@ -642,8 +642,9 @@ static int radeon_ttm_tt_populate(struct ttm_bo_device *bdev, } if (slave && ttm->sg) { - 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); ttm_tt_set_populated(ttm); return 0; }