Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2100259lqb; Mon, 27 May 2024 07:54:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUME26sl0XP0nH3YGKZNWdHFdVyHqofgkYRh5JbGZLd5cWWtGytTZh7uO8OCLhoUpekEOMcjaqMhCF80rImiMM709kFnkQwZYThrosmCA== X-Google-Smtp-Source: AGHT+IEPYl/PphJ6+WjL1Yw4HrKOeBLx4hyfui3u5Btra/PU7tRflYcK8MUJbQbFRM3EB6GkcD92 X-Received: by 2002:a50:c35d:0:b0:578:57b9:8e13 with SMTP id 4fb4d7f45d1cf-57861d60208mr7583482a12.10.1716821686819; Mon, 27 May 2024 07:54:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716821686; cv=pass; d=google.com; s=arc-20160816; b=JtjkoT5q273JigwwfP4S142DkQ0/Y1zRp8U+mxfX/I5qAnYRE0yUOjGJg/rXzmScQG e9Z0UPEjpwDP3lrO86TcVpkq/Y4yLUobGWSdlgGJzO1nFO1XgMfciSGXwHDiC9BnsrnZ 04leEJlLHrTE7hT04LQhgJizP8UdjxL6l6PztJVAq1A53Kwfnun+yYn+mam/PWtDVwYw bbKZyEkwULPa6iFZBbIQI7pskGxhJCIsMy9QT9AtDDqVawuYnCxB7bPzk+0m10B/4dEL 9DnBWo5mONkO0J2DY3jXOyDz5l/JliDwYRCuwn5X3ZlfJHrAprGpbt6ThpbXMD0ARdi5 jLrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=or9AvWwVuKmZ+9fVlUmm74FcJvOEhh8SwrrrpYlBRos=; fh=HJkO/9KNAnqONVeWlM4M4MDAvrXx2LbqpV3hOuBwYno=; b=UGtUdsw7IiJeV/db9TI6Ax6k7mP4HH3lJfIMJkgi+QAnxWa6sJoeyw7clQGphFAYqy 368uND+509/tZ4FoQsQMmF+Ledg9RNXwCYdAJYyyWp2/ju+kGFB6jDLSMSTLMsIw9Zqx RSW1TD1+C2s0Sx4UTofKR1voOxqOlSRZQdes9BR1PU+Qdz9o+E7haM8g2tXD98SzFsC7 VD+vpW3ielEb1In4sZ0a1WXwSkAcdfCXMHCKqsdyzzfC12MQIgyR/q0upWLX+uYF2vb8 zABEM9xhhOlB5aSlYfYCuDTdstkJaQUihV/vycK5SV2Co1mFNHWcy9gShl0kViI2aiw+ jG/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yQix86qx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 4fb4d7f45d1cf-57856d60629si3729901a12.654.2024.05.27.07.54.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190951-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=@linaro.org header.s=google header.b=yQix86qx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 62A2E1F21C40 for ; Mon, 27 May 2024 14:54:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EC2F16089A; Mon, 27 May 2024 14:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yQix86qx" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18A761607B8 for ; Mon, 27 May 2024 14:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819820; cv=none; b=q2qzrdb3ixfgZ8DOkS2BtVfCBNwYbk7HGm77aSP+XQMW1Yc6coPDoL6jfEqxjTyvezm3iQmfACMrkSKcH2Mmm2LvKtCg1S3r+kaFm4RzmluYqU5kFYsUk1uK20Q1qK1myup32nzXoHsbGGxAK3GPwjyGNUxcGl0ncjiCGStgdnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819820; c=relaxed/simple; bh=jIW+hVQ5X0Zur669tpB4Gs4vZvbIu7XObZH+l6jhkHM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Nv5S5W1WqOWXA9EBnd/vzeWvOh9e76eTT9SyQUecbLjIHTiVGAO+IdMpcMyekNjiRZCB7AI/MVl9w9aP4racnhpyYtyE0aHoD9XSr04q7fhdJvVRNaIPzzDRofe1DBqSBIg3TC/JedWuThV1uWBL/z/rkfxcPhAhv4VZAzlYZdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yQix86qx; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6f8e98784b3so2441038b3a.1 for ; Mon, 27 May 2024 07:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716819818; x=1717424618; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=or9AvWwVuKmZ+9fVlUmm74FcJvOEhh8SwrrrpYlBRos=; b=yQix86qxiVtPxGDzRKbEokVryIUDdEhmRh5a/sWE1NXsaLS/ZDBut/pc9T++4y2uxC bgclVofE25MRih1kA5E9egivfhOTcGa1Gg45/MR0TYkMmd80prPzoxs0KFenSPMypOT9 QHrKA/rulQi7/QGLGFEopZAP+R8PapBmxzYA2RYIXjkEq8TMaaFwUc61UeoWLUD1v9TV S/bjilVf8c1ehJbk8SEjOIZHeWjybBItOlJbspqd/vBYihRDyf8ODcBm+l4UBeV3wALn /noFqavdxk82A3IOQW62tkPEOcI9Ru0ZHM/BGl6wTw+jPf6FOQBKZetIoyPfqI5PSh0y NgQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716819818; x=1717424618; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=or9AvWwVuKmZ+9fVlUmm74FcJvOEhh8SwrrrpYlBRos=; b=RZcQoKr2pOV/DjtxtVuRTOmUW7+6yw8adAIn1aTWywZs9EYw4xVH5/3SBwYZgndrC6 Fr7uEa7CUMQk45Z4vKT4GDl5vyl1rykOSkO1QHKs5gDoHSzI9fkpHv7cHB8FUslt1NLk XrbyIcP3o8cjEuvzVNPEomqUSTm3SJJsNMge9axjiw8rikFVNcRZiKHEad4d0hcxe3u3 /G2IHcFC4gt69/e+obMDLTMzmQWhdN1sDrS3C45y9uUURJS/9eztomgUP6wRhIcnD4Ay TMbQkhs7y7VZe9E4Oe0C59WLzDp9iM7o0JgFau8VPSWxnSOG0VoXsSBEEFvzfCsG5A4L QFjw== X-Forwarded-Encrypted: i=1; AJvYcCXurb0G+1sQjep8tkhG+pGrmJXsnsHHiv9+/hez4nKDAk0pLOhL77fElqodXd0iI6KCODb3U92tBUluk+55yzCS8Sifyj5BC4N51AIP X-Gm-Message-State: AOJu0Yzl9///L8UTfA4hA9tlZE8JKRBLa3Fp/2srLgVfGoYpUPR+PZxG br3XS+33xRRn/zLF092UZKjOgXPViNOQSeyaUfrEL8URfukfaIiTV9T/X2Z/RA4= X-Received: by 2002:a05:6a00:1f0f:b0:6f8:c476:4a7c with SMTP id d2e1a72fcca58-6f8f2d6ad6amr9840061b3a.9.1716819818292; Mon, 27 May 2024 07:23:38 -0700 (PDT) Received: from [127.0.1.1] ([112.64.61.67]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fbd3eb67sm5109895b3a.19.2024.05.27.07.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:23:37 -0700 (PDT) From: Jun Nie Date: Mon, 27 May 2024 22:21:48 +0800 Subject: [PATCH v5 2/6] drm/msm/dpu: adjust data width for widen bus case Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-2-f797ffba4682@linaro.org> References: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> In-Reply-To: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Jessica Zhang , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jun Nie X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716819804; l=1032; i=jun.nie@linaro.org; s=20240403; h=from:subject:message-id; bh=jIW+hVQ5X0Zur669tpB4Gs4vZvbIu7XObZH+l6jhkHM=; b=ZW/KEuf6tsdQf0Sk0wk5BACoDmI2+DpY51Q4pwE0OKKXu364y9sAhtTGrFFKHEQ79OwXPuh2F xX2RHPQo34GDpKQvAZ4eNpMtIVTlQepkOvcKf8rkEpVIRCgHs6R/TDt X-Developer-Key: i=jun.nie@linaro.org; a=ed25519; pk=MNiBt/faLPvo+iJoP1hodyY2x6ozVXL8QMptmsKg3cc= data is valid for only half the active window if widebus is enabled Signed-off-by: Jun Nie --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c index 225c1c7768ff..f97221423249 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c @@ -168,6 +168,15 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *intf, data_width = p->width; + /* + * If widebus is enabled, data is valid for only half the active window + * since the data rate is doubled in this mode. But for the compression + * mode in DP case, the p->width is already adjusted in + * drm_mode_to_intf_timing_params() + */ + if (p->wide_bus_en && !dp_intf) + data_width = p->width >> 1; + hsync_data_start_x = hsync_start_x; hsync_data_end_x = hsync_start_x + data_width - 1; -- 2.34.1