Message ID | 20201009150342.1979-5-christian.koenig@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=0lZN=DQ=kvack.org=owner-linux-mm@kernel.org> 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 B5076139F for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 9 Oct 2020 15:04:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7BF8E22276 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 9 Oct 2020 15:04:00 +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="XrFUM15i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BF8E22276 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 33BC16B009E; Fri, 9 Oct 2020 11:03:53 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2C65B94000B; Fri, 9 Oct 2020 11:03:53 -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 169E96B00A0; Fri, 9 Oct 2020 11:03:53 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0242.hostedemail.com [216.40.44.242]) by kanga.kvack.org (Postfix) with ESMTP id DC8C76B009E for <linux-mm@kvack.org>; Fri, 9 Oct 2020 11:03:52 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7612D1EF1 for <linux-mm@kvack.org>; Fri, 9 Oct 2020 15:03:52 +0000 (UTC) X-FDA: 77352706704.20.balls84_4c0a2d9271e1 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 4B45E180C07A3 for <linux-mm@kvack.org>; Fri, 9 Oct 2020 15:03:51 +0000 (UTC) X-Spam-Summary: 1,0,0,864380889208025c,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:1540:1568:1593:1594:1676:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:3871: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:21444:21451:21611:21627:21666:21740:21990:30054:30064,0,RBL:209.85.218.68:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04y8xwo3ainu9py38d3j5yxa4gpsgop7wu1ip5wrcu5mq3y7ibtm43z7nwsnaie.1ysbz6sywuqtpwrdmnwhuhhsb9jhbicuap4cwpzgqpr5acb8kehpu73eopw6s5k.s-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:24,LUA_SUMMARY:none X-HE-Tag: balls84_4c0a2d9271e1 X-Filterd-Recvd-Size: 4223 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by imf19.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Fri, 9 Oct 2020 15:03:50 +0000 (UTC) Received: by mail-ej1-f68.google.com with SMTP id p15so13526274ejm.7 for <linux-mm@kvack.org>; Fri, 09 Oct 2020 08:03:50 -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=FmM++3symsvpVR4siwjDU9+9KxruIk1gOAMHnKd0AiE=; b=XrFUM15iMxnW5r+cZykWaD+5lUM1thhhsQebgkflHil7pUpsJux+fxxaFn2fgRiHuV brSdA99+/2bMKqfPsJXJn/FuisTltXZglFLs2uC19dzC+26EGNznnkVDdEZckz8ZF+rt q1Hwvaxg+1a2kKO/MDHWsn09yXrDZALU9AamwjPCGg93X0G0EgyT/fdezAD9ZWNqqkaO BvILBcWk38vWvJGK/2UGNTh0gaNq7ZQJ0np3vWb7pRbdpBWS/pAZjyAxjzAgDYd4AfUr my9kTq68lUQL8GpKWHuIeUW5QVBbid6EmrB4IAeqZY3sXqRGtOgob8ueY2ImHtIhcOF9 f5vA== 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=FmM++3symsvpVR4siwjDU9+9KxruIk1gOAMHnKd0AiE=; b=d4LZ4ltrKdrfKI7oACGq3QSWgcoZY/IAaOgAy/zmS29+9aQRpytPqRcJvZYFmFNNwU jQEtFhwoIDunsr40uQrZKRIAuNn7kDfaBeQwTBu/q4UJwyhtdW3L8LB95FwE5y6h0UWA 5Zr8AyTyElVSGsi/Dxu8Pm3UD1bNxPRHjECw5Fr/dH6WFpP2MTVvrorelrFBNpLSnaxu gWrloCGLUiyVzYb+lodAJl0vthHmHxSxQ203vciEK7px/RB6d4q2hCHgCHqzyzdma1k7 /7/PTFiViZE1a/q/SYqEL4I6h/D7MzyH9PElmFjfKwtsXklK5lmR6ynlU0EwtrG8oVo5 zd3Q== X-Gm-Message-State: AOAM533fW/PdJJnjntzvOUihnOY3QuazKqGGS4KbVo8/J7VZrR3G/wYZ F5b7281ALKT3MVjHhkqoZjrPvGUWXdE= X-Google-Smtp-Source: ABdhPJyN5ELfE5Ze/1hZ+8RjxM7E1Du5RNH1vhDQ1NOfDbdJcYgRfdItr1lNkT4hlsX9OlPerKunKw== X-Received: by 2002:a17:906:7f8d:: with SMTP id f13mr14847374ejr.540.1602255829532; Fri, 09 Oct 2020 08:03:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 08:03:49 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " <ckoenig.leichtzumerken@gmail.com> X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com> 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 5/6] drm/nouveau: stop using pages with drm_prime_sg_to_page_addr_arrays Date: Fri, 9 Oct 2020 17:03:41 +0200 Message-Id: <20201009150342.1979-5-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: quoted-printable 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: <linux-mm.kvack.org> |
Series |
[1/6] mm: mmap: fix fput in error path
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 0c0ca44a6802..e378bb491688 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1299,9 +1299,9 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, return 0; if (slave && ttm->sg) { - /* make userspace faulting work */ - drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages, - ttm_dma->dma_address, ttm->num_pages); + drm_prime_sg_to_page_addr_arrays(ttm->sg, NULL, + ttm_dma->dma_address, + ttm->num_pages); ttm_tt_set_populated(ttm); return 0; }
This is deprecated, also drop the comment about faults. Signed-off-by: Christian König <christian.koenig@amd.com> --- drivers/gpu/drm/nouveau/nouveau_bo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)