Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp268068lqb; Tue, 28 May 2024 15:13:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhk3EkoQ4qvwscyGq20vHDyt3JsdBxxIRvMUkbO0/g47S2Bli3isL+32ox4jOV0h9CekTaYI/EuBm6Q7X3ML+3qRTXzPY43ptK+OxwrQ== X-Google-Smtp-Source: AGHT+IFwoDvjdEnefmIR3PorD2kEm+/5P5xsE3DFl26VOfBb9M6DTT1SSctQGDlXWWoh6FH+0C9l X-Received: by 2002:a50:cc43:0:b0:579:c4a1:2bf4 with SMTP id 4fb4d7f45d1cf-579c4a12c96mr6001090a12.20.1716934418201; Tue, 28 May 2024 15:13:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716934418; cv=pass; d=google.com; s=arc-20160816; b=SVWJcXicmNVqI10K7qFwudlOVTA6kNPx969Y7fDxmzFKSjlg5Nh0AZNEDv2/J75iOG ZNGHSSqY+V8wzA/OK8y8TQnGqEc1AVjatBUPtfPNDBzCS0EAa6u9saLYkgTrs4fEpK+b sRpQyl/4LV2SDhq6AnBATHcFESBvuyQBP7Px5YeIi32U7BImtMusVR1ZLE/1CWIijI/h rCgOBoYEUzlSgsh0sFKw8TzuqXrbi/uIRPVAh1LrUasj+AslZWdosuOrCEUQ9LCNUTKL 89+ZfkmiHvJbk2SOc7A/SmavTcJOIh0vyO8S35GwPLHBlx+vvRveobOGavv2EVMM0K2o b+XA== 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=VAtV6BHt5M29s80gmR+qVaH0AyzW3a+g/mKm1YvmP/I=; fh=meg3sjwr4FPrj8OyovR7kDUka2vPLuBKzOZYBlhTvSw=; b=cWdcJ7p8Ix1TVlrr2D7jM8LzbiQMm9pX/vt5ODpFNoSRXqeK7nB7t0RuUaqOhct+om kXs1wLO8JaRA6C0/vLG6bvA64t7lp9ps5nwX9Lin1U2Ik0WWngE/okU4wlUPHmN48mlZ RwH13PcBV/InHhO3aQRIMtIXjZ9H0Z2KBLd1M/Un5zny/LalmTXGNDe6HPOWQp4+RGV9 EREgTw6wH/QnVp54/GxBFS+iQoMOv4EOZgP/NXGNuWcBsDJQa23tCCdaysL0X/LQFQ8N XqOeHqumRc09mmJ+6YvNQGHl/iiJ41D71/YRtV0eNJ/nrpSk6X/BqSiEvdAw/W/JFolF td3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=K7aDK4mk; 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-193150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193150-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-579ca6f37f5si3461198a12.632.2024.05.28.15.13.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193150-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=@quicinc.com header.s=qcppdkim1 header.b=K7aDK4mk; 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-193150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193150-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 916431F26346 for ; Tue, 28 May 2024 22:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2C0D13E029; Tue, 28 May 2024 22:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="K7aDK4mk" 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 A025E13DBA8; Tue, 28 May 2024 22:12:54 +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=1716934376; cv=none; b=UPpZWHDkdyFHhjxoAEu8wy/A92PeeZQ3cugWQwe5qMuT9hxEN9XvdQ8aVgX4pYCJCJIt/Yx/tnMuK5QhNukw5baJTIQbqEKxRoi2iTHldeV74qAwwvSQpqrw4c1rX8oDJUm5UhwcNpFiP9UfEpbUhJLWLxR06CRfBCXRowSzrwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716934376; c=relaxed/simple; bh=Cl7YjgiBUrI4hoTZZ8GJ2TR8R1rSgwEHpLwRgTljrUo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Px2xvlvPPs8GHJ6k+cedm5F7laV1xdiKC8DVIlNAXbtzMaCnsscFmG/n9MIteS4UbLNOLZ575J4LekjAmDuosAwFbBgtdVJuoGEIsLI7w+Xm4Qaytlc4y/YqNFLbtXeX4gLBovWbXX6P+nWGnU7VfeWjQneDIHh82d+jAGrRFfc= 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=K7aDK4mk; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44SLaJd2018733; Tue, 28 May 2024 22:12:37 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= VAtV6BHt5M29s80gmR+qVaH0AyzW3a+g/mKm1YvmP/I=; b=K7aDK4mknviY0MnT W2cbvGlU0J3ZnAm/SYvsCJ6kGlSF5LaPR7u50owiKCavpIHZE8tIAOuBJMCJ+OTT EYCXQPMCMcvmoMQVI0angIM+IULmwQuqdWf2OtpYFnAupO5SSPjTWdBvkAIQh88k zg1uj5fFA35q8AiIaPlyiMibW/N/8hgeatS6Ynvx+XpKspRBMV3ApKSd8qmPxFH2 4qctEHZ/Y27q9ssCreO/LPWM2CnsjPl1Lax46WJ7dJKt1ekWz3mwLbJN6XXsgs9D uJvunf4PtDJ65ptTBCFc+UgWIZgOq1nZ6W8H83uL6z8KGhfutfDflCQxwXXgcoJc b3lQTw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba0x7cmx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:12:37 +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 44SMCZ00013232 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:12:35 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:12:35 -0700 Message-ID: Date: Tue, 28 May 2024 15:12:34 -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 5/6] drm/msm/dsi: set VIDEO_COMPRESSION_MODE_CTRL_WC 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-5-f797ffba4682@linaro.org> From: Jessica Zhang In-Reply-To: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-5-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: TkiTtbWYL5GyVWDPFl3C4HfIUuAaHVJh X-Proofpoint-ORIG-GUID: TkiTtbWYL5GyVWDPFl3C4HfIUuAaHVJh 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 spamscore=0 impostorscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 bulkscore=0 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 suspectscore=0 lowpriorityscore=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 > > Video mode DSC won't work if this field is not set correctly. Set it to fix > video mode DSC (for slice_per_pkt==1 cases at least). > > Fixes: 08802f515c3c ("drm/msm/dsi: Add support for DSC configuration") > 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 | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > index 47f5858334f6..7252d36687e6 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > @@ -857,6 +857,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > u32 slice_per_intf, total_bytes_per_intf; > u32 pkt_per_line; > u32 eol_byte_num; > + u32 bytes_per_pkt; > > /* first calculate dsc parameters and then program > * compress mode registers > @@ -864,6 +865,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > slice_per_intf = msm_dsc_get_slices_per_intf(dsc, hdisplay); > > total_bytes_per_intf = dsc->slice_chunk_size * slice_per_intf; > + bytes_per_pkt = dsc->slice_chunk_size; /* * slice_per_pkt; */ > > eol_byte_num = total_bytes_per_intf % 3; > > @@ -901,6 +903,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > dsi_write(msm_host, REG_DSI_COMMAND_COMPRESSION_MODE_CTRL, reg_ctrl); > dsi_write(msm_host, REG_DSI_COMMAND_COMPRESSION_MODE_CTRL2, reg_ctrl2); > } else { > + reg |= DSI_VIDEO_COMPRESSION_MODE_CTRL_WC(bytes_per_pkt); > dsi_write(msm_host, REG_DSI_VIDEO_COMPRESSION_MODE_CTRL, reg); > } > } > > -- > 2.34.1 >