Message ID | 20230620004217.4700-8-dakr@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD6FEEB64D9 for <linux-mm@archiver.kernel.org>; Tue, 20 Jun 2023 00:43:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61C838D000A; Mon, 19 Jun 2023 20:43:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5CC608D0001; Mon, 19 Jun 2023 20:43:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 46D698D000A; Mon, 19 Jun 2023 20:43:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 38F2B8D0001 for <linux-mm@kvack.org>; Mon, 19 Jun 2023 20:43:06 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 11FD7A04A9 for <linux-mm@kvack.org>; Tue, 20 Jun 2023 00:43:06 +0000 (UTC) X-FDA: 80921276772.13.87AA900 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf19.hostedemail.com (Postfix) with ESMTP id 00C851A0006 for <linux-mm@kvack.org>; Tue, 20 Jun 2023 00:43:03 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OKX1MvwD; spf=pass (imf19.hostedemail.com: domain of dakr@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dakr@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687221784; a=rsa-sha256; cv=none; b=XjIw3BI7Tr3DJUmtCpiXEMkLv31DurtMHo3jB0b2lSQvfzK+tsrvfx+OkBd9Yzt9gWrReU m3x8TSzi5pbsm+BLSnzTw4oHfaizKRghvUjOpBMDr50MHK8HE/bFmghJ1t0K0LHqVRwATN kEjmYBHs628o8JLJ6u5exCghbvjd+Qs= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OKX1MvwD; spf=pass (imf19.hostedemail.com: domain of dakr@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dakr@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687221784; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=N2u1hP2d/8CjIhjRb+gqUMgVIAuG2+DtyciZrujYDGU=; b=okK4BeRWRH8FZHCHVGLIZb8g0Lk30kTgQScL8CGjMs0Ly6DdGt6Is+DwlqqzNuGxcCDib+ 8JXI/LjyA62dJiIxtZNJAWy21i+ZwaTBYRUS6elCaQ+QaP8YjHGbelSDEEeqY8qsdLm42A jxg4lCG6CA5VR002DlMEO7Fn2paBkLM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687221783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N2u1hP2d/8CjIhjRb+gqUMgVIAuG2+DtyciZrujYDGU=; b=OKX1MvwDR7WaJrzgDUBKN0gYhmXR/v1Imo6TftmfSiZ4ZltiFu2B63InxSXGaeuNOVNqhm mIMTzD6TkqPXyhHaQ5sCBF6FuB1+AU+KdXAsk56Ju6KAXJYlA35Utz2rwDPFL31xLLkTwd Yd6rK4xMJANhDTlSnfnQgRP0L914or8= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-510-GStpFFj8PRWEviVYRdKGQg-1; Mon, 19 Jun 2023 20:43:01 -0400 X-MC-Unique: GStpFFj8PRWEviVYRdKGQg-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-518676b6d09so1951855a12.1 for <linux-mm@kvack.org>; Mon, 19 Jun 2023 17:43:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687221779; x=1689813779; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N2u1hP2d/8CjIhjRb+gqUMgVIAuG2+DtyciZrujYDGU=; b=Bpn2+LNgLyAnOb6lYBw1HOyXjqXXtEJk0RTcYnRghfY8aonCHvp7DuLJZp4YotTpi4 3v5gaevsny6lCb0CLZaIkiImegQQzNwLYtLekfRlWHiBkwz0gr9CiVmHLAzY864qYRdB naZAm8hX79k9s+gtZqSitFpmtjSLkyvsD1d6pfO7bLskp5S94eGaPmq9FPTQZSkMzLz+ FAu8TIq6o5Kc7mSVT9f3zLe18WAbAZKh1ivghL1+qIfpRpuhtAcVQu7j6vghgAgTi5+G 7iuJdRoM8typBUgwJdpoSrRBLne+qk+TG7gFQiMzWSFhyeN+7ZYpu/bbjP63+S00zvJn MzVQ== X-Gm-Message-State: AC+VfDxtoW4staAA6UVip1UmqRRqCe30sBNnZ+WnjLFA/2oLKGdmzgnW 2H+lFt3mdkWkGbG0fOAXpCidh7UPmD/eEpxZHsOPRnuj8CF4MKuKSu1ieLzVebeVcAriAaINe+J zmvA+AdpFLC4= X-Received: by 2002:aa7:cd45:0:b0:514:994c:2982 with SMTP id v5-20020aa7cd45000000b00514994c2982mr6151177edw.40.1687221779428; Mon, 19 Jun 2023 17:42:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65FSvnjaoggF9h58zTqyT2DOkL9H5Vbq5o8fo2niPqP1lOxX39BSK0TAWF98v1OjzcZEYMlQ== X-Received: by 2002:aa7:cd45:0:b0:514:994c:2982 with SMTP id v5-20020aa7cd45000000b00514994c2982mr6151166edw.40.1687221779253; Mon, 19 Jun 2023 17:42:59 -0700 (PDT) Received: from cassiopeiae.. ([2a02:810d:4b3f:de9c:642:1aff:fe31:a19f]) by smtp.gmail.com with ESMTPSA id d8-20020a056402078800b005187a42b44fsm310743edy.58.2023.06.19.17.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 17:42:58 -0700 (PDT) From: Danilo Krummrich <dakr@redhat.com> To: airlied@gmail.com, daniel@ffwll.ch, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net, christian.koenig@amd.com, bskeggs@redhat.com, Liam.Howlett@oracle.com, matthew.brost@intel.com, boris.brezillon@collabora.com, alexdeucher@gmail.com, ogabbay@kernel.org, bagasdotme@gmail.com, willy@infradead.org, jason@jlekstrand.net Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Danilo Krummrich <dakr@redhat.com> Subject: [PATCH drm-next v5 07/14] drm/nouveau: bo: initialize GEM GPU VA interface Date: Tue, 20 Jun 2023 02:42:10 +0200 Message-Id: <20230620004217.4700-8-dakr@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230620004217.4700-1-dakr@redhat.com> References: <20230620004217.4700-1-dakr@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 00C851A0006 X-Stat-Signature: 9p7kb7hcsatu8tqjobznyfwqiupzqymz X-Rspam-User: X-HE-Tag: 1687221783-200277 X-HE-Meta: U2FsdGVkX19e/FPT4dctbrp73AsZ6HiN9IvfB31Wx3wiwsSNFeA05KLITcuLwCOL71OQI9cmlw5MgWqXtxwwgVz5wU2lF9zA03F/JmCc6636GmUjyfqfRsyy7jOiOFDUiVMDKbO4lCzk6oSIqvUcxPmaFPecRi4uU+ssq7HhXGor0Y+NQMyqwRJ2+kxZ9jrzeZaVAAGMqKqo+0mgJ47QRC+ovTPWJ1n5NI86d5r0fMfFrgrCbFTRsYPVK6wMhoeCbDVoM8OgsM1xe0xaMiEFVtfpI4jU1VSjRV4PXH55wKYxaMGtfn6/fen0mXIyD31IG/1WVmrdxLmq7Jbb91MjCYTLPFbBIdvSzxP382+WBF+yBUB5cHr/Gh5S5pkEETyIyqunlTFqM5df4dIDwXZOBdi7+A07XJQIJWkRQDJUggo/qkZ3WWz888OJDgXnNgC/f0n19aN7/2c2S8ayo6AqWPspNn9alJvq3d7YW10EjrDd8s34ZQSaoWQacu5HE6AO9z6yd2/J0NEvZw+ptIDUhBtUAJhFv6jfWFBsAHspQ0NC0GbLtbc/JD+u680CPq6JaNwG9QOjaMphzt3mCj0i8e7Cgbg721di6SMIAN1Nt3DFjhMuD86E7+BgX4mcMFQMTe0xu9ozClhVz9MZOSQCaleUUdanwYafnx1xro0U0htwvhiMXBXxTJFck74q/OdywNy8dPDX9n5buXm9afqr8kexMvcKWXmwKuO9n4xr5JWURWUUTUZoltCLjQUVznnpwKFhjOA7ZFzPxVBekllBi0bNhAoubQjnFq4Ut4CRP9hDrBKZPZM2OgZLf36LcXeUIVfxzfa4fFMEx2aSMM3HdhGUMAfpMpTExaqxz6MAs2VuMVodKxrTapZbwIassD8YZYUgAwszrOitwv70dwwb1gpj72TihwSQMfHIOWODN3o25+9llP4zNmpW4F+9UI6nW+8fRTRUdW+ThG2kYwO oaWOt6qz wyqAHgLfFIVp2b7TPONJ/z+SXXWGAMOEMNaB48i5FHL8qDZ7VfdqiR/FuZ1ZuDpQmZCm+mcnEu40GbuM7O1vY4fpxYcjzxvL7mkWZYIIltuGw/U8YwztqsHvOAeqGcz/HybwqN2AHbfSx866s4fVHVjdk9C+LohLfUsYtv8+1PqeIyCy81d9GuuUNrXc/4JM7WZXDOdOFufulUxnqSy7/Hv3YvlNcvM++biXaw2qANxEqQnFr7L9Vt0UPUE/LPoMyZA4eAkBgGQId/TEb9+prGz1tiqpq+n0RfzWlQIZIRuW6TRtTu47MaKSfldiOm0fOOokQBHewR75883Z666HmSosetfhkUtCftCm5bFQeQY6kYv2KqdtaXuVL034EZzw9atX7usrW9bfLS8M= 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 |
DRM GPUVA Manager & Nouveau VM_BIND UAPI
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 7724fe63067d..057bc995f19b 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -215,11 +215,14 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 *size, int *align, u32 domain, nvbo = kzalloc(sizeof(struct nouveau_bo), GFP_KERNEL); if (!nvbo) return ERR_PTR(-ENOMEM); + INIT_LIST_HEAD(&nvbo->head); INIT_LIST_HEAD(&nvbo->entry); INIT_LIST_HEAD(&nvbo->vma_list); nvbo->bo.bdev = &drm->ttm.bdev; + drm_gem_gpuva_init(&nvbo->bo.base); + /* This is confusing, and doesn't actually mean we want an uncached * mapping, but is what NOUVEAU_GEM_DOMAIN_COHERENT gets translated * into in nouveau_gem_new().
Initialize the GEM's DRM GPU VA manager interface in preparation for the (u)vmm implementation, provided by subsequent commits, to make use of it. Signed-off-by: Danilo Krummrich <dakr@redhat.com> --- drivers/gpu/drm/nouveau/nouveau_bo.c | 3 +++ 1 file changed, 3 insertions(+)