Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4326546rdb; Mon, 11 Dec 2023 16:23:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkdzTsOnPQseJnwWVIxA1KIc7vJMUIU00Qz5CkZE4q7wI/iT+zvl1rDkbQjoiq8cbJmbFm X-Received: by 2002:a05:6a00:6905:b0:6ce:2731:d5d2 with SMTP id hs5-20020a056a00690500b006ce2731d5d2mr2122486pfb.67.1702340598167; Mon, 11 Dec 2023 16:23:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702340598; cv=none; d=google.com; s=arc-20160816; b=nc7cBc1Lc54ljJWcet3X3+35Jvx/fOQpPP1w5PQY4i2NlpAEspE09jgOFc1ma815qe OS62vmVxpOD9wX3ba9760rwgP9kfJAfPPWGEG8nHWmsQX4g6gOXsqvfxkpY01VWWPTSA 8Wur9NFOWDoMB6dZnvW3AZfJDGqm/U9V1wfuylt53P9DPzi7/ewAHK3PiDW5fuefpV9A gwmZ/gCW/Xts05wLZd1gbKJ3nSbdMAUfwTCn4Vjnua11D78PS600I7BLL9eP97BfaKHq VzM+sw9PQP7SlWLwAdupniQ/OuNwGLj9V8CE/Wzoo5NvLW6nTD5aCZohWw3ISXS0zz3O WOGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y09RjMTJ4PUl9MTfFsv6b7XP1Z2Eb2/kXLl+i0I7K8U=; fh=2XyQDqDG0wz2VEIrVbLmdsbSBBAARfl7BOJG4nJ/HZo=; b=gXdDFPSDNT7QTEIZZmRjn1X2Xk710MivJ2RKKEQN5ytl+L6MVIu0Up6CNSP/mL3BBM ilZx57nU580CqzmKJSPsr7leyIoMW4bIGIS+56FggtOxu4whzELkLtRpyCBhor8xo+m+ MU3YqLxm43x0bX+z1PKyDTrp16Fi0xXQUcbjAdIvFM6Ux7fAFrg2T3r2GYkg2u3/uaOj supc2T51GYQI63sBoNYXQlFtUQFNigfOYaWhCTuROYdwCJ0ci6PdfDcPe3m+NDkw+T0e iXUKPIs6dChCMgvFhyjIEzngljw8byo+ZqfMpmB2dMZRT0Ai7xGQi6T37906QRPn2Xmj gDQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jqtwVmbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bj7-20020a056a02018700b005b8f1c4aa49si7142419pgb.895.2023.12.11.16.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 16:23:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jqtwVmbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C67B280A91B9; Mon, 11 Dec 2023 16:23:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345501AbjLLAXD (ORCPT + 99 others); Mon, 11 Dec 2023 19:23:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345493AbjLLAXC (ORCPT ); Mon, 11 Dec 2023 19:23:02 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC31183; Mon, 11 Dec 2023 16:23:08 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BBNf1LT024421; Tue, 12 Dec 2023 00:23:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=Y09RjMTJ4PUl9MTfFsv6b7XP1Z2Eb2/kXLl+i0I7K8U=; b=jq twVmbGldsqF85uAYcisscpgP+hvG2/aDJsPGcdFM/cmtstaWBydPcTRU7naIe8tA DC2+jAAG4JbXJISuOgJKGRQNJXm9hTkXAMHv2WjYa/XaxbMEtgnbB/yUpULPurOA Jwiz4d2GDdtRZsfozgNiboCooC6XXXaVYExD9fM0s21h1syAy/q/9riCerYtwaSg RskA9QXXrfcefvY9PtempFWtOjbHpll7X2usGU4H8A23dN6caoeu2ohBS9qouSnR FMjBXm1Y5aIWIV2Tt1CvHLovJr9CTyGfyb14Er5p9h13keU9EprwVSvIDssJCjLV fOW8oTeIA02GbcC9RRUA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ux28s9j20-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 00:23:01 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BC0N1qh007220 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 00:23:01 GMT Received: from abhinavk-linux.qualcomm.com (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.1118.40; Mon, 11 Dec 2023 16:23:00 -0800 From: Abhinav Kumar To: , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , "Daniel Vetter" CC: , , , , Subject: [PATCH v3 03/15] drm/msm/dpu: fix writeback programming for YUV cases Date: Mon, 11 Dec 2023 16:22:33 -0800 Message-ID: <20231212002245.23715-4-quic_abhinavk@quicinc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231212002245.23715-1-quic_abhinavk@quicinc.com> References: <20231212002245.23715-1-quic_abhinavk@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-ORIG-GUID: sqWsdQl0IEiTKMNLCEGAcvNqymn_LsiJ X-Proofpoint-GUID: sqWsdQl0IEiTKMNLCEGAcvNqymn_LsiJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312120001 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 16:23:16 -0800 (PST) For YUV cases, setting the required format bits was missed out in the register programming. Lets fix it now in preparation of adding YUV formats support for writeback. changes in v2: - dropped the fixes tag as its not a fix but adding new functionality Signed-off-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c index ed0e80616129..e75995f7fcea 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c @@ -89,6 +89,9 @@ static void dpu_hw_wb_setup_format(struct dpu_hw_wb *ctx, dst_format |= BIT(14); /* DST_ALPHA_X */ } + if (DPU_FORMAT_IS_YUV(fmt)) + dst_format |= BIT(15); + pattern = (fmt->element[3] << 24) | (fmt->element[2] << 16) | (fmt->element[1] << 8) | -- 2.40.1