Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2392930lqp; Sun, 24 Mar 2024 17:28:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFNdTTHZtqmTyh5naCkU5EAPToYS0WDBFUSF9zMxKL6DOD8I6mjvZVqW0ymEiZYjtvGjp/o2abCxdgC35QOCUtlfkZUZXdZVoGEUQzOw== X-Google-Smtp-Source: AGHT+IGikEWXQA/nS1UZRttWrEUugMRdYvNPBsZGhhEtXwLJy6MvhGmxxsHF0HpKkwVCOYS0KWNv X-Received: by 2002:a17:906:11d8:b0:a46:d6f7:e8f5 with SMTP id o24-20020a17090611d800b00a46d6f7e8f5mr3500410eja.18.1711326514786; Sun, 24 Mar 2024 17:28:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326514; cv=pass; d=google.com; s=arc-20160816; b=cb7Tu79eZCL7mlsR9BOedVbYk5OHWzMFbJmF/yJPaS13EsKN2K79WDqO4C9vGSxI3h Cc4O1+iK93F1gs+qWN04CSrXzYjS19I2Ha5d7gI78nOQCnqqIhGEIrYZXsUAYTUEcXS3 VDY3k1gkJUz6lACm9VWMBsR52gUWnK5uZLfSYu3k1UtHVHtZFg7Wd7x3oe7CLCb0fZu0 0ftczg6CEsqwbowp4JGm1bgaqZaZV1RJrMVDzD6wlATPhpx5ZT/hBqQWFLASre8QCXmV BD4r+be4nKpm6fLFAhEdu8uQGFlyzbSQq7IpZBGPrXh50Ybh/GJaV5Sxf2Y7b09c5nG5 HQ9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=m7cFSFk/jrM5ukiNmon5Czjhvh22et7cy3y8e1rTbT4=; fh=Bpn8LCLmZtoT6G0HKStE3r+QjkWqbCbGYxqhe7+CyiE=; b=og/5iobJi58BcqjNpnnN263t432BpJEVgVPDcyaaKqgvMCsh7CeCkOzviWyeuNKal6 2bMZ4BPCZG/tXTv1jnlUVW/yTrJL3UaAu/hyWATZeZmHbnvveq32KNoz2QNcY6FOyQA/ IZG4ozGM9pZHIeRIJ+CEQny0Sgwmc8RjNhyr+r9i5M5CetD0j51CQW20kZ4uCzGX6icU b1orp2Lob+YfJ+Domw2wu2uLfwaesTUnsdqrzSVG9rHPxjh7PrAzWQx+X0gP/YQ8zzVc AHVDMq3CoiPRZH4Z2hmGiv2bqTnoL4Z77N75Czp3kIEii3Z2Z7fM2DEmw5gSYkuFX1rZ QhRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AW4f14tJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mf10-20020a170906cb8a00b00a4a33885f09si534952ejb.770.2024.03.24.17.28.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AW4f14tJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 39CF81F24606 for ; Mon, 25 Mar 2024 00:27:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBF2D1A435B; Sun, 24 Mar 2024 22:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AW4f14tJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E94881A4340; Sun, 24 Mar 2024 22:43:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320201; cv=none; b=s6QhVihyO1a2kIhMT0bsBqrRoXxMuJ/If+ME06e82g7bDBInPVPLQyDcVyGq8l9V4YHTt7g3zzvvytobnzRRuqkRKz54z36/Jt1cmwkn6FY3zhxqxXMJi6zdkTFXN+k7BbaCp3SW1rayb3wNoNmenANB89YqpolUM5nPfF9XtQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320201; c=relaxed/simple; bh=+SChueW4aiGDhNe28gOu9r+rnNWL+FfG6Vdr3Jg0dsE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OfXNhIIpKQi6riaHZQ5/tXyxvg+M/M31pgMpgAt8OXUgRLxFh1Ha9Wy/nHgusCcJtDAINzlPK4qp6POdU2IjzkEEm3mtTdhsHOvyWg1YxTek6JcCNDj6e0iVrSzi1+CYx2yK/5dGSCyS1J/EyVNNjeL9gXMWrh9NAu1EMdeMXfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AW4f14tJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3608EC43390; Sun, 24 Mar 2024 22:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320200; bh=+SChueW4aiGDhNe28gOu9r+rnNWL+FfG6Vdr3Jg0dsE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AW4f14tJvdd6lIU/jBMVXkZvIMQd3qWNF8YbSdtMhkbA0YXjgVYKy6ShkOLQe1nFH +8ad4uk2tl2lXydSjms5lQegtAJNpDEoHIGdDqKiN3t2Vot2eOL6Rf/5e9xGFeHOa/ dtGvdxCe3xokUh2Yz6ePQu0Mg3N4JzUp34nvGOpp183GOsu8eqVnoS/QKlJ/8K4N8u zWRq4Q7fdYU6SydG7CVw8xhXXLu+bFsJq7rRt2VpIdhXR54MtGgGbPMllOpPFBvfKs E0KZLgTU+jIX4SyWzevZTTCdMNIaVGy2P0vyaVaRhQfdBXpzc/QI2bkhFhEJ8nv235 +8v4+tfNPNv6Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Paloma Arellano , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 6.8 508/715] drm/msm/dpu: add division of drm_display_mode's hskew parameter Date: Sun, 24 Mar 2024 18:31:27 -0400 Message-ID: <20240324223455.1342824-509-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Paloma Arellano [ Upstream commit 551ee0f210991d25f336bc27262353bfe99d3eed ] Setting up the timing engine when the physical encoder has a split role neglects dividing the drm_display_mode's hskew parameter. Let's fix this since this must also be done in preparation for implementing YUV420 over DP. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Paloma Arellano Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/579605/ Link: https://lore.kernel.org/r/20240222194025.25329-3-quic_parellan@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c index f562beb6f7971..f02411b062c4c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c @@ -260,12 +260,14 @@ static void dpu_encoder_phys_vid_setup_timing_engine( mode.htotal >>= 1; mode.hsync_start >>= 1; mode.hsync_end >>= 1; + mode.hskew >>= 1; DPU_DEBUG_VIDENC(phys_enc, - "split_role %d, halve horizontal %d %d %d %d\n", + "split_role %d, halve horizontal %d %d %d %d %d\n", phys_enc->split_role, mode.hdisplay, mode.htotal, - mode.hsync_start, mode.hsync_end); + mode.hsync_start, mode.hsync_end, + mode.hskew); } drm_mode_to_intf_timing_params(phys_enc, &mode, &timing_params); -- 2.43.0