From patchwork Mon Jan 2 12:45:33 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: 13086732 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 D32FFC3DA7A for ; Mon, 2 Jan 2023 12:45:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E10710E31B; Mon, 2 Jan 2023 12:45:58 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 69BBB10E31B for ; Mon, 2 Jan 2023 12:45:56 +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=AvW4I9oLms1w8aftufZa9GpPMmmLdl/m7r3DUrKGxmI=; b=CvJhee1WCp2BTEuUWhh3IyatcH 3DMk9mQ3JDM7Ima/tDqtAxJShAyug5APttW6YIi5Gnn1G1JaBPw0j1PIfUpGImqTe6GYaMyfoRSQQ aXhnEH5CS/v/zUeX4Z+bBrPb+hSoutPMpEbBhjbO+iCbA5ill29JlY5tUMeqdQ8oaDfokYTbAXVC9 pWVMmvsfLuksukwKO90lHPftiWTXofbu1mugLDfV3CnyuOq0Yq3QWWDhfoFNyqkELidd6rDEv8Jxy JvyYFf2bcv3OPtlkJ0qzVN6fD7/4Yz5gGUFBXzoi7lYLwbqnyXyVPcnfSEosIHfLuU4L+0pu5A1F3 Qka+3LvQ==; 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 1pCKCJ-00FGSv-Tt; Mon, 02 Jan 2023 13:45:48 +0100 From: =?utf-8?q?Ma=C3=ADra_Canal?= To: Maxime Ripard , Emma Anholt , David Airlie , Daniel Vetter Subject: [PATCH 0/2] drm/vc4: Improve drm_gem_object handling Date: Mon, 2 Jan 2023 09:45:33 -0300 Message-Id: <20230102124535.139202-1-mcanal@igalia.com> X-Mailer: git-send-email 2.38.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: Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , =?utf-8?q?Andr=C3=A9_Alme?= =?utf-8?q?ida?= , 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(). 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(-)