Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp271321lqb; Tue, 28 May 2024 15:19:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA6wMZmZBUMPKEwVHsqnN7WevSlJH6GiYzjq2/4gaMu2o2MtkpZVIIsDV4rk1Hf6ZnbPAIsbXjbGpsE/zYwiT5l7RCYnCYApViyX8ZNw== X-Google-Smtp-Source: AGHT+IGKvMMBn53KaLbtercuaqumzT/tr0MzTcZmQuocLvh8mFcHR1AqSLFZDgVopyqSHQI+XV6t X-Received: by 2002:a2e:9e50:0:b0:2e1:fa3f:67bd with SMTP id 38308e7fff4ca-2e95b256672mr104933481fa.36.1716934784167; Tue, 28 May 2024 15:19:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716934784; cv=pass; d=google.com; s=arc-20160816; b=xE8HlLDjWjdgTiYl9ArZo2ZZ4L2hygOyEfNED8rYszL+7VnQ18edsPnxhVfBZkCuDV v5fcNco2j3dnyPe/nPptoHcK/+QFLNWuRT42x9uLMwQ2Sc5UWJnNZ+ai3JRfU1A5Mal5 +0J79wJiU/KAIb5sy45FE+XyCyE434m5xP1sgSwTqUO+/mRnp5sSWyJRw8RXavDjcdd+ XzE48rt/YI40izV0Muq6CUHKo2JM9EF2Vq5bkjrJQPW952xqC1qDrgteJJzt744s53Jx fJjDWeqv67BC8nTBectTXJK0m4SW2VjQS0VMB7EBFJHvo2VU2pv6AyD4LHyYzrMt7CPR jJ8w== 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=JVDAh13cOOeebYG0CpM6TZ7QvUqlsO6PYs9SBehirfo=; fh=meg3sjwr4FPrj8OyovR7kDUka2vPLuBKzOZYBlhTvSw=; b=LQFPHFVRFhreuKLovObP/2uBGid1tpHrUZ9Uc2GkL8w5smjWofGdw7ZjcUbu+TUUDo Gm6bprIrAMdZ4//yV+FkERYCbPetkzGvlWPdeIWykC7Oji7n4DFRJ4cD7SrxA7kL1JTg 2dJKNoQvrkLhM3DSU3Zix7zXrphAM+jS5GvLiIK5ZSu4NJXG+nqI173cwW5zg03s3Q5g KocbFkGXG4AzMQpp11eAXX95feyryPY4yLNT60cw150vZTumdhnOUjei9MipxixtrEtQ bsN0QKwxu2AFmPtr4r1nLxPEgfO7CUs91YV+yHINf6X3dJN7sHPhEaMCrVdtsLfVXP5Z A8jQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i17B1wgR; 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-193152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c7ff089si546915766b.165.2024.05.28.15.19.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:19:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i17B1wgR; 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-193152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193152-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AFADD1F24CA9 for ; Tue, 28 May 2024 22:19:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66D913E028; Tue, 28 May 2024 22:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="i17B1wgR" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 40E7713D8A5; Tue, 28 May 2024 22:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716934776; cv=none; b=mXou4mdHxzfDVfVNlQ3g9QTrP0TB4QUraw9WG/Jq6KCq0FBmt2OVYUcgsSMYE006QXO0q9Pp3f8etb5lWoDgJXBXzuNN19vVcWA9sb3URg1HeDrisZ6/zFH0OAy0nPhrzkkXA96eqcjNmQM7iiBV05XjOZ0v0NvBcLyHxQTPX2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716934776; c=relaxed/simple; bh=QmsGFOJ3NP/a+J6xydble1Si5wrUV1bN84MF4Ukp8FU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ooAlIPWk9GNrSyNNuK5NEJr8rF2sQ3RdhBccb/HqB/mZgpGpptgwt1YyzgocGCYJBrwhlKB2bwy+1T1N1phU14OcuFyabX0Mv7y3Cau1RONalHqezquBygjRRloie316NhemphptnKHStwZDZvP7PZ1AQgnpVnVDIHQjvMGejb4= 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=i17B1wgR; arc=none smtp.client-ip=205.220.180.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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44SJDZtZ001837; Tue, 28 May 2024 22:19:25 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= JVDAh13cOOeebYG0CpM6TZ7QvUqlsO6PYs9SBehirfo=; b=i17B1wgRuYhVYPxD ZNo10owxbyEGvdD4DzOUa/mj168mEEAuTuv4nyiWxtHFwvnyTSrFyMm8eTOvuTOE rW79iK8fDna5e4Yoal95e5Jbv9+TAn7ytwxo1KyB3Xv0nYyJfkPLOjJrCug+NAKS BtsWtdzmfvETdWIwjoSRcFCjyk8Sy7R4RSgmilnJeQ201kDYpNJqdd8qEbj29b7E 3qoBBfTdjlPsitv3RMB+zqceMOG0P++GoKW6bMpaNUDaBhA17XhyVFlru/0h2kcR rzjgu/TOPnvWrZlJkEsJtEL7pniPtD7Zh9A7tz86vuMPW/iwqac3OMhP5ZTxxgap FuUxfw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba0g7gt7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:19:24 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44SMJNcF023308 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:19:23 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 15:19:21 -0700 Message-ID: Date: Tue, 28 May 2024 15:19:18 -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 6/6] drm/msm/dsi: add a comment to explain pkt_per_line encoding Content-Language: en-US To: Jun Nie , Rob Clark , "Abhinav Kumar" , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , "Daniel Vetter" , Vinod Koul CC: , , , , "Jonathan Marek" References: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-6-f797ffba4682@linaro.org> From: Jessica Zhang In-Reply-To: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-6-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-GUID: OrdfE5N2c4cnJANWNmu6Lp6jUl2qHGly X-Proofpoint-ORIG-GUID: OrdfE5N2c4cnJANWNmu6Lp6jUl2qHGly 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 mlxscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280165 On 5/27/2024 7:21 AM, Jun Nie wrote: > From: Jonathan Marek > > Make it clear why the pkt_per_line value is being "divided by 2". > > Signed-off-by: Jonathan Marek > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Jun Nie Hi Jun, Reviewed-by: Jessica Zhang Thanks, Jessica Zhang > --- > drivers/gpu/drm/msm/dsi/dsi_host.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > index 7252d36687e6..4768cff08381 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > @@ -885,7 +885,11 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > /* DSI_VIDEO_COMPRESSION_MODE & DSI_COMMAND_COMPRESSION_MODE > * registers have similar offsets, so for below common code use > * DSI_VIDEO_COMPRESSION_MODE_XXXX for setting bits > + * > + * pkt_per_line is log2 encoded, >>1 works for supported values (1,2,4) > */ > + if (pkt_per_line > 4) > + drm_warn_once(msm_host->dev, "pkt_per_line too big"); > reg |= DSI_VIDEO_COMPRESSION_MODE_CTRL_PKT_PER_LINE(pkt_per_line >> 1); > reg |= DSI_VIDEO_COMPRESSION_MODE_CTRL_EOL_BYTE_NUM(eol_byte_num); > reg |= DSI_VIDEO_COMPRESSION_MODE_CTRL_EN; > > -- > 2.34.1 >