From patchwork Tue Apr 25 07:30:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 13222916 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 526C2C77B61 for ; Tue, 25 Apr 2023 07:30:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF0D110E6AB; Tue, 25 Apr 2023 07:30:26 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3F8EF10E6AB for ; Tue, 25 Apr 2023 07:30:22 +0000 (UTC) Received: from localhost.localdomain (unknown [109.100.38.211]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mvlad) by madras.collabora.co.uk (Postfix) with ESMTPSA id AA94C66031CD; Tue, 25 Apr 2023 08:30:17 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682407818; bh=huhcWtt1gb2DzP82kA9cyR5kjiCXe3xm8As34p5mgwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JUjJHXHh3J2hkKAHFg2wJadeMYKrLq7dj98AfGHcW1sDQHhoJang2LzkkrclaGmso N5Il3sZy3RmMhumhUTWjQSakTbVGJnHzbGt31IX/Mnn6QLqdwTAXonVRX1jTONVWJi eDbMrUWQ06q5uN/KDpjdg/v0i/BJKLJR7LNxKESU+o8qysZNk9pEPDf+5Qw8tfD5R7 1yCYK7ahnQzHOAYs9YEEZ/ojPhgcH8rA0VUuOFSNbxvYh/9IRHMMokeF8aNpIlLTyL oatzQymNU3fOTdxUNc+T9NWOO3GkWu0mfxmDYYtOxH/RKHV8UP9C+tE5xxZ2VuASoh /XsC10Txb8YkQ== From: Marius Vlad To: dri-devel@lists.freedesktop.org Subject: [PATCH v3 1/3] vkms: Pass the correct bitmask for possible crtcs Date: Tue, 25 Apr 2023 10:30:10 +0300 Message-Id: <20230425073012.11036-2-marius.vlad@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230425073012.11036-1-marius.vlad@collabora.com> References: <20230425073012.11036-1-marius.vlad@collabora.com> 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: mwen@igalia.com, tzimmermann@suse.de, rodrigosiqueiramelo@gmail.com, mcanal@igalia.com, melissa.srw@gmail.com, marius.vlad@collabora.com, igormtorrente@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In preparation of having multiple pipelines we need to able to choose the correct encoder/connectors/crtc combination so pass also the index as a bitmask as possible CRTCs for the encoder. Signed-off-by: Marius Vlad --- drivers/gpu/drm/vkms/vkms_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vkms/vkms_output.c b/drivers/gpu/drm/vkms/vkms_output.c index 5ce70dd946aa..1b8aa3a34e46 100644 --- a/drivers/gpu/drm/vkms/vkms_output.c +++ b/drivers/gpu/drm/vkms/vkms_output.c @@ -95,7 +95,7 @@ int vkms_output_init(struct vkms_device *vkmsdev, int index) DRM_ERROR("Failed to init encoder\n"); goto err_encoder; } - encoder->possible_crtcs = 1; + encoder->possible_crtcs = (1 << index); ret = drm_connector_attach_encoder(connector, encoder); if (ret) {