Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp291009lqb; Tue, 28 May 2024 16:08:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXT1lI6OTsizpb+Hzvh+GJmyiHJR4KrEBe5WEAvB6LnA1OIdsgxa3nkG74woqJkL0OOCwITa3774tOrblPwEqWOQNNTJ0fgxq16qQmJPA== X-Google-Smtp-Source: AGHT+IG+jnPF3yXLWHpxiO+MbeW1miL8XVhsdwqjHdDFJETCdCFyGzhX+FfNo0Aw+/ufe9e8hzk4 X-Received: by 2002:a05:6a20:a10c:b0:1ac:3b6e:3e4a with SMTP id adf61e73a8af0-1b212cc74bemr15832589637.9.1716937738661; Tue, 28 May 2024 16:08:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716937738; cv=pass; d=google.com; s=arc-20160816; b=smbM3tmU0uEVNS67si89QzUT6ywldpgYcjtsC/NYNlpdPxkYSPUUpZKJFkzfQSKtF8 YKAsQfVtVKvbK/tgW9KZZziqRndbprd+9ivDkkI2ITO7x0BfiIriK+BkezynLsp3lund dThUWRoF+2BCAgedkEZNH3E9/FnFcGE1Q/Zk6D7gGjzGT1s+8Ijv0ydGScnndZ0BtTtO oIRHc4wAhoshXTQ88nP1swg/gUkMBqk88K/Lcki4zGDD6Nk7r7TZwaIzjmCoR2jssebK 0ssArzyFZADAGNznZzG0yxBmewGtW45KOgstWy8psgIFEvit9V1bLnsxVoQ1TtKBHi1v IVnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LEWqXxlN8+QgRXFtixWH/P7uFfcQicinWJBWnqLtJmI=; fh=SN4z0hOpb48FKlLyTtJFtxQD95wI/P329/16IjMXnWA=; b=vQ9aUtgMraFar8a3z6IufGV9Gn1mOXKiatLaYBG7usDZO1patpCslMls36CuRpLtd/ RtA1+DBtiaZxfcPJry1A5q4s/2nuqE7X/oNecMOyvOmEJUX07gUE/oG6rqr5XYsPBfqV e7X5B0VnO3sYCtMk9jNnrj6dRAaoxH4EAWMGjt6Q202chm3minCUUaorogyYj1/uvW0A MPlYYrRWZPH6RYi/XCcaG6lZAYnpWpAAzXS+nugmqToNsvMSd2KYqEBXlsGUzVhxFTZq VPkp1Signp7bCnGphtJaZBtcMaFk1CwDWnC7xIq35xt85uKkL9toQTESsLdGVNtiAPuF KZZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jXAyLE6m; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-193219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779bddfsi9409230a12.393.2024.05.28.16.08.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 16:08:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jXAyLE6m; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-193219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1DFD4B242F4 for ; Tue, 28 May 2024 23:07:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1153A13EFE4; Tue, 28 May 2024 23:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jXAyLE6m" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 EB74B17C6A; Tue, 28 May 2024 23:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716937654; cv=none; b=kBrNnxUuiKfyyKmfPodwz4mG6mzMOmgj+K9UYdBwqwCoyasynHRPqzzdij447P65kl4w+vrSxwj58RB7dvtLyFrgLjQx7ckdc6e41IB07uK/supNuYdFh9te0LyKhfRVXZi0P5Z2P5VwsCuxFxTUdKer/QLIlp4Ygggrp4EIABE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716937654; c=relaxed/simple; bh=vBMeZTkhyDDxp+wlSPbDk+sMNIkxvokmcNsBc/EF4/o=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ni72DkgiGnuLdoo0rrQO1AkttK09+mH4XDCCCniAXq8Lw0j3XvvT/ReaHGCpu1U0m1OJHkFFV5XLEtCR847tHlhGi1VbxtByViJ+YWdr8Q8pBHR9R0uPYeWmceQ1wb/c5CtDFCsHakx1GbkJgHTRJxuNP86KN/+wsu49t/29nQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jXAyLE6m; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44SMBEm9018067; Tue, 28 May 2024 23:07:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LEWqXxlN8+QgRXFtixWH/P7uFfcQicinWJBWnqLtJmI=; b=jXAyLE6mDs0y1WyA jDyBpGWdDb6HXDC3TdwRxYzlCO2rLNGPT61KoBCX0kxse3oimougxpvAT8Kf9RQr 78ncSgTFNGYKlqZyIYSurs6zPtiQuqSYPR9Nw83271X5WSCue5nOsaURyO74bpwf hFF6YZk1bnZOqi0GiTZredB3F2uFdkId6UdhHtHI2RNp5NUPcWswKkwQOhvybD4e bU92h96ay1JPyeaEDY5qgMBtBgTQiiTAp3iRSgCUA7RWlUpSad8ZbzgPJSJ+3hH8 1WeLSEc+WGIDZBviLYOF5AlufdR2axsO//4Y+eFhlQZ2xH6MuRSYmUrs7m1GS6MK wRHCKA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba2nfhfm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 23:07:21 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44SN7IEf009714 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 23:07:18 GMT Received: from [10.71.108.229] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 28 May 2024 16:07:17 -0700 Message-ID: <76b94146-1328-499c-9d17-4f2e8108556e@quicinc.com> Date: Tue, 28 May 2024 16:07:17 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 2/6] drm/msm/dpu: adjust data width for widen bus case Content-Language: en-US To: Jun Nie , Rob Clark , "Abhinav Kumar" , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , "Daniel Vetter" , Vinod Koul CC: , , , References: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-2-f797ffba4682@linaro.org> From: Jessica Zhang In-Reply-To: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-2-f797ffba4682@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: vLv8xHiONxaDkiG-Lali-YCIBFkea5A5 X-Proofpoint-GUID: vLv8xHiONxaDkiG-Lali-YCIBFkea5A5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-28_14,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280171 On 5/27/2024 7:21 AM, Jun Nie wrote: > data is valid for only half the active window if widebus > is enabled > > Signed-off-by: Jun Nie Hi Jun, Reviewed-by: Jessica Zhang Thanks, Jessica Zhang > --- > 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 >