From patchwork Wed Apr 26 10:40:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 13224445 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 0E33AC7618E for ; Wed, 26 Apr 2023 10:41:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9ED9610E8C7; Wed, 26 Apr 2023 10:41:11 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id B063910E914 for ; Wed, 26 Apr 2023 10:41:09 +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 DE66D66032A7; Wed, 26 Apr 2023 11:41:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682505668; bh=huhcWtt1gb2DzP82kA9cyR5kjiCXe3xm8As34p5mgwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jx4yv/O9ae7xDl8+8xhyKWdj54dKHRfAMToRyeJ863jEUMrE5WOV9GokuvjjtdmxQ kyXH+pGUcMLYS83aQDVBsynykjsiW+sQEfh7dFBJQW579kSQuFQu5x4imWs84gSvIE VnFFpDTumFpZGuiwPi3dj6+8F2nu/4e7XvNxmo1OGJVD6jN9o3wUUphQZTr9AxP4DQ 42YfcHQcp2XJjkGaAb76TvDGff46M87XUqJBdCQ7LFa2utWVGpSH9unnM8xz7fPh0d PPh/TU57q0nuSDqcU9yzENSp4SHHl88yx+D1hLMQ9c3g1A8eSy43zRd9tvI8h39WGQ 2tQGgALAVmzFA== From: Marius Vlad To: dri-devel@lists.freedesktop.org Subject: [PATCH v4 1/3] vkms: Pass the correct bitmask for possible crtcs Date: Wed, 26 Apr 2023 13:40:57 +0300 Message-Id: <20230426104059.28732-2-marius.vlad@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230426104059.28732-1-marius.vlad@collabora.com> References: <20230426104059.28732-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, 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) {