From patchwork Mon Aug 7 16:32:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13344535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E48D9C00528 for ; Mon, 7 Aug 2023 16:32:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 832DA10E2BE; Mon, 7 Aug 2023 16:32:49 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id B3F3B10E2BE for ; Mon, 7 Aug 2023 16:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691425965; 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; bh=8RzhR0Defsn9yPdyrBq2FgdXanmnGOPFDzct4NabJUc=; b=C+/CyL6DWmJ97DvzadNxN/4lkkgbk7hRr9Zj4E1hmAdSuzbgFhJXbaLPqoRQZ2II9WaIxO m7EasRiv0PRVjFn8teXb4HaZDs0Hwr6jVAu/kIjrxLNAiwJ3dMHwqe7XqJDB4SKPAWQHCP AIO/QqAOj/nbEn1Ej8k7nPDvDK/qhUo= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-171-RoW8FnpvP0-zyeHXxHpUHA-1; Mon, 07 Aug 2023 12:32:44 -0400 X-MC-Unique: RoW8FnpvP0-zyeHXxHpUHA-1 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-4fe0e1dfdbaso4476621e87.1 for ; Mon, 07 Aug 2023 09:32:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691425962; x=1692030762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8RzhR0Defsn9yPdyrBq2FgdXanmnGOPFDzct4NabJUc=; b=XLLNzDkcxGj/QwS+rd8NwAupsxb8qj/8rxjU4h+Jg6L9VL/gfDgc6gsWsUCCk9jKgw JMAWmxG6hzpCq0sbqCUsWYtjT6xIJslSozgfQ/dSfViu75KzZjeYKaPInvtDXnJG3D+5 kUsH+HqydyhrbZsI5PEVSUvq52DGjl4LFKugAFDyldSWE+I0cZBjhl4qP0jLKhOl0dAR KzrAqau/lEzGU7kT7yxcTBcqKbnpLF+hk6Lie69DcoK52Q285Xv/+Di2YZlkHbo1CaaU ETM9+kw0GE9gDiAn/bLusX1bV73KJkVMZKo1ukEsOSAKFUSHy4J924mDxydEixR8hVt2 XbOA== X-Gm-Message-State: AOJu0YybZsX8VoOlOL9zB6XhSHuMJ74pne9iEgTWB+lTvehg6L5+R+hB fZxt88/xERGlumkI1ySI9CoAlQvJNJ+NmAXpomxFh/UxxD/ETv0e9x/AP6JzTM29OybTef/+318 wGt3V9fwQ1tw9cfSQu27gXm4aGw1f X-Received: by 2002:ac2:5e90:0:b0:4fb:c657:3376 with SMTP id b16-20020ac25e90000000b004fbc6573376mr5710686lfq.29.1691425962408; Mon, 07 Aug 2023 09:32:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoveHUcxmtOtYeVGuvV0X+WYxTBKr9SEAQjhSbownwD6MHWzDQxtVUZ5WIVK3lj030C9Zegw== X-Received: by 2002:ac2:5e90:0:b0:4fb:c657:3376 with SMTP id b16-20020ac25e90000000b004fbc6573376mr5710669lfq.29.1691425962042; Mon, 07 Aug 2023 09:32:42 -0700 (PDT) Received: from cassiopeiae.. ([2a02:810d:4b3f:de9c:642:1aff:fe31:a19f]) by smtp.gmail.com with ESMTPSA id d17-20020a50fb11000000b00522572f323dsm5394761edq.16.2023.08.07.09.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 09:32:41 -0700 (PDT) From: Danilo Krummrich To: airlied@gmail.com, daniel@ffwll.ch, bskeggs@redhat.com, kherbst@redhat.com, lyude@redhat.com, sfr@canb.auug.org.au Subject: [PATCH drm-misc-next 0/5] Nouveau VM_BIND uAPI Fixes Date: Mon, 7 Aug 2023 18:32:21 +0200 Message-ID: <20230807163238.2091-1-dakr@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau@lists.freedesktop.org, Danilo Krummrich , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The patch series provides a few fixes for the recently merged VM_BIND uAPI mostly addressing a couple of warnings. It also contains one patch to slightly reduce the memory footprint of struct nouveau_uvma. Danilo Krummrich (5): nouveau/dmem: fix copy-paste error in nouveau_dmem_migrate_chunk() drm/nouveau: nvkm: vmm: silence warning from cast drm/nouveau: remove incorrect __user annotations drm/nouveau: uvmm: remove incorrect calls to mas_unlock() drm/nouveau: uvmm: remove dedicated VM pointer from VMAs drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 +- drivers/gpu/drm/nouveau/nouveau_exec.c | 6 ++--- drivers/gpu/drm/nouveau/nouveau_exec.h | 2 +- drivers/gpu/drm/nouveau/nouveau_uvmm.c | 23 ++++++++----------- drivers/gpu/drm/nouveau/nouveau_uvmm.h | 14 +++++------ .../gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c | 5 ++-- 6 files changed, 24 insertions(+), 28 deletions(-) base-commit: 82d750e9d2f5d0594c8f7057ce59127e701af781 Reviewed-by: Dave Airlie