From patchwork Thu Feb 2 11:19:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ma=C3=ADra_Canal?= X-Patchwork-Id: 13125841 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 A71B5C61DA4 for ; Thu, 2 Feb 2023 11:33:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CCD6A10E184; Thu, 2 Feb 2023 11:33:29 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED72910E184 for ; Thu, 2 Feb 2023 11:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=q0mloO5zA9Q4e1v1bB1TvvWGQJNzEV2eRcI0LFKgLg0=; b=EerMgFcd9XDXgbWQS0Aur8EBkM fcpIJL5wQT3F11rK34vB0bgzp5SedxiGKpJjmklE9/A9bDYiaVJrBcyFZUnfWJVGEMqJz8OykkqK2 AKTETAnRuY3HgGnNI4m4hFIMduQPUrdK9eaKWMUXEjCoB2rTuMDMWmUIyZKcGTtK8RjbIvz1858bR ZyIPd87ukHgmHctO1/4IWaoi5/NtpozMMq76hVn/OBxp45960hUzS+vANwXdeaJCRyjcz4H5bhafQ adrfx58lzNrEruFrmATAf5fRwlnxEwCqRQrZu0Ha5zDPJpS1fT9mDyi9DIt0ePtW6WHfj1vVoqMIE 1NqMz2ag==; Received: from [187.36.234.139] (helo=bowie..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pNXqD-007IGk-8T; Thu, 02 Feb 2023 12:33:21 +0100 From: =?utf-8?q?Ma=C3=ADra_Canal?= To: Daniel Vetter , David Airlie , Maxime Ripard , Melissa Wen Subject: [PATCH v2 0/2] drm/vc4: Improve drm_gem_object handling Date: Thu, 2 Feb 2023 08:19:42 -0300 Message-Id: <20230202111943.111757-1-mcanal@igalia.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 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: =?utf-8?q?Ma=C3=ADra_Canal?= , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Currently, the array of BOs that are lookup up at the start of exec is being instantiated as drm_gem_dma_object, which is not needed and makes it difficult to use the drm_gem_objects_lookup() helper. Therefore, replace drm_gem_dma_object for drm_gem_object and then replace obj lookup steps with drm_gem_objects_lookup(). v1 -> v2: * Add André Almeida's Reviewed-by. Best Regards, - Maíra Canal Maíra Canal (2): drm/vc4: replace drm_gem_dma_object for drm_gem_object in vc4_exec_info drm/vc4: replace obj lookup steps with drm_gem_objects_lookup drivers/gpu/drm/vc4/vc4_drv.h | 2 +- drivers/gpu/drm/vc4/vc4_gem.c | 78 +++++++----------------------- drivers/gpu/drm/vc4/vc4_validate.c | 4 +- 3 files changed, 21 insertions(+), 63 deletions(-)