Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp71579rwi; Wed, 12 Oct 2022 16:14:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5KdXZ1OSvLPbo9mwtfw9YubQEEjRZAHhFRrez/YvhTWicMQ7qt5GW89qZamUTuaU9FWJkF X-Received: by 2002:a05:6402:1941:b0:457:138:1e88 with SMTP id f1-20020a056402194100b0045701381e88mr29644186edz.394.1665616469514; Wed, 12 Oct 2022 16:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665616469; cv=none; d=google.com; s=arc-20160816; b=XNCq4NuCxTccsqGok1dEqP5G9ESfRhigXQBrHHorVU+WlkTGUhUKNA/w9J34Ynof99 njywycAPNlO/wWFAFcdfqCSWJ17VcXi+QMHBeY7b/Cz5cwmsi8svAEofm5fBe35xU4OV cuduExzkW3QCJjFoLlE7cS511JXm/WckTMdPLaA3DbuGgVM2BXFAP8/GBizz+v+m4VOj txBnOA4YsSSlLZ29OVcYMCmsytHEQ3yKjf0B2kAWgZHMF2w4UQO6y/ml+06Pe1OhglcF i+aDg6P+H3cjsrmA5sjUf6bhautzF5uwB+zU6LP1K0m8tYre291bR4p+LkU9OCgkQOn7 k5hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LvplJzo5Whv7S/wgHZo75WQPA/gbMCcpBW3FT+HJ26w=; b=r9AJpEeqMxohqpIiYLsww4QJm4/3fHZl2lCdwpBW84gfAQJaCXOh4YFHKdSRlnOj9l u5sSrX9U3o+Dgw2RJ+hECg1TLlXLsWLulC7O0ZbM+iO9oeGfRf5hLZb8atKgsXC5o0tp QMIteucH2sRiwbeNvmtlTb12KvZK3Rw5pSoqFwDOKQu/3aMmpOm/Y3+osnOWHbBLYU/E VzOLp3B1zPMTiK0jtfrkM8MBBO+jtZ66eS/2lEidlWmkpJkULixCwk3YU6xlOs/5mVJk PjwW4/m235vz59qexdK3FpR4XUgZfuIX+YiSiNQHIzAmHjouhmR6SXUbyd5ZJfZ99dNl jq6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oqPKYQvP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs13-20020a1709072d0d00b00783c42d2da2si19390171ejc.415.2022.10.12.16.14.00; Wed, 12 Oct 2022 16:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oqPKYQvP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiJLXI2 (ORCPT + 99 others); Wed, 12 Oct 2022 19:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiJLXI1 (ORCPT ); Wed, 12 Oct 2022 19:08:27 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B344858084; Wed, 12 Oct 2022 16:08:26 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29CGmEtj018142; Wed, 12 Oct 2022 23:08:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=LvplJzo5Whv7S/wgHZo75WQPA/gbMCcpBW3FT+HJ26w=; b=oqPKYQvPDOc2f7YqFjKPRQJUJYG1fpVSPgpLeg1xcAwNWUHYXBmZpXlY0rMKHJ1VJUhV uWfmZSuoZCap/Tv/9DkMwC8J5I7W6ksdA417oVJ9T/uwpWYG6Ni2GXA6NEJk8sM7BEBS S9xC5pa2PCVRE/MmbzCdYoDiPXHiy2QvCfbPmT+tTqlfSX6pBUJUc5c658/YsuG15QII 9i/kD5cvRmr61Wse9nSlk+TeexZAvL+NeSdB72tybRBE7nWMkcQXLLy2r7QI3w9N9SXB 1u0xh6OTVH7H9Kzokv6Qs3lJ0c/ia+7k0Ir0dnySZQ/3KKKFKC0xDCwKsIFadsGlMDTr ig== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k5x7g1p1d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 23:08:13 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29CN8CXi022439 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 23:08:12 GMT Received: from [10.38.241.12] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 12 Oct 2022 16:08:09 -0700 Message-ID: Date: Wed, 12 Oct 2022 16:08:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v3 07/10] drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC values Content-Language: en-US To: Marijn Suijten , CC: <~postmarketos/upstreaming@lists.sr.ht>, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Vinod Koul , Douglas Anderson , Vladimir Lypak , , , , References: <20221009184824.457416-1-marijn.suijten@somainline.org> <20221009185150.461323-1-marijn.suijten@somainline.org> From: Abhinav Kumar In-Reply-To: <20221009185150.461323-1-marijn.suijten@somainline.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: mMsz96t8DOp4hd-kZaytjLua80Ay2bQg X-Proofpoint-ORIG-GUID: mMsz96t8DOp4hd-kZaytjLua80Ay2bQg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_11,2022-10-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210120144 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/9/2022 11:51 AM, Marijn Suijten wrote: > According to the `/* bpc 8 */` comment below only values for a > bits_per_component of 8 are currently hardcoded in place. This is > further confirmed by downstream sources [1] containing different > constants for other BPC values (and different initial_offset too, > with an extra dependency on bits_per_pixel). Prevent future mishaps by > explicitly disallowing any other bits_per_component value until the > right parameters are put in place and tested. > > [1]: https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers/-/blob/DISPLAY.LA.2.0.r1-08000-WAIPIO.0/msm/sde_dsc_helper.c#L110-139 > Seems like a valid kbot error. https://patchwork.freedesktop.org/patch/506359/#comment_912830 > Signed-off-by: Marijn Suijten > --- > drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > index 68c39debc22f..7e6b7e506ae8 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > @@ -1774,6 +1774,11 @@ static int dsi_populate_dsc_params(struct drm_dsc_config *dsc) > { > int i; > > + if (dsc->bits_per_component != 8) { > + DRM_DEV_ERROR(&msm_host->pdev->dev, "DSI does not support bits_per_component != 8 yet\n"); > + return -EOPNOTSUPP; > + } > + > dsc->rc_model_size = 8192; > dsc->first_line_bpg_offset = 12; > dsc->rc_edge_factor = 6;