From patchwork Mon May 8 07:53:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 13234182 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 F025AC77B73 for ; Mon, 8 May 2023 07:54:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C7A2510E106; Mon, 8 May 2023 07:54:04 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCE8E10E139 for ; Mon, 8 May 2023 07:54:02 +0000 (UTC) Received: from localhost.localdomain (unknown [IPv6:2a02:2f05:8115:9300:9eb6:d0ff:fe91:8037]) (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 88F116603264; Mon, 8 May 2023 08:54:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683532441; bh=huhcWtt1gb2DzP82kA9cyR5kjiCXe3xm8As34p5mgwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fPXDZ6r5srW6wXDUxGg4JIp2ex3Qpa1tFyNab4V4gpYkTz/w6zS9d7UiHVbHnr/xQ 6VMm1uLfJutf5lNNHv+e2zESaaPfqkYoK481pFEMd+82jHF59fsHWA7a96bDlcF+Aj +lRbrQROvkZhzm6vEkRcCn7AMIPQndswCKkFTgOltnnbmdF3CgoQcsrNfl0NQEtMPE JFQ3UHCBamztDEYj2W014u9EPzMsZsMCwPV7UYvRcebC5dxbX5sqtGffSXGwWGVpBc 1lwkNAExRDVaWVPevYafMOLuQLb/8S0ZUz98DMVdr8TR51Qy7lVyNTrRCLeuMKpvXK uU5K7ZfU60Z1w== From: Marius Vlad To: dri-devel@lists.freedesktop.org Subject: [PATCH v5 1/4] vkms: Pass the correct bitmask for possible crtcs Date: Mon, 8 May 2023 10:53:53 +0300 Message-Id: <20230508075356.6511-2-marius.vlad@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508075356.6511-1-marius.vlad@collabora.com> References: <20230508075356.6511-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, yixie@chromium.org, mcanal@igalia.com, melissa.srw@gmail.com, jshargo@chromium.org, brpol@chromium.org, 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) {