From patchwork Mon Feb 13 11:11:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalyan Thota X-Patchwork-Id: 56216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2285693wrn; Mon, 13 Feb 2023 03:14:33 -0800 (PST) X-Google-Smtp-Source: AK7set92vOZ+tQT4HxjCN/LlLGkbR0PyHDu4Dg4PNbj8dT2tckdjjfxhZwI+OIb6hWq0558Hc6LH X-Received: by 2002:a17:906:d793:b0:885:6d0f:4660 with SMTP id pj19-20020a170906d79300b008856d0f4660mr25243941ejb.22.1676286873164; Mon, 13 Feb 2023 03:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676286873; cv=none; d=google.com; s=arc-20160816; b=mt/wIyA0a0ep4f8FnonMqHsnXvsd5SjHeKSRrqRSibEtM2WE1bArwkWNm1odIsICsH g0YijtEvk2nfLmQL8xel1W2mV8n2Zx++a4O7Tc4voTm9PucBnTr+f5UURXiGBhQuRhr9 s+eX07ni7BWi8yU7RMqNOGHbFCt8N259gSCNs/j165dwdvsv1lCwgVrl3YPFvJUb86Po d6fBT/s8gyyKcxe0Vd3L9WDc781Xk4co5x583wO2nYHzfNiQEO9xWPs6VFvHriuwrYHh hGqalTdQXP74Ps++1jqOItdorWUg7/IeoMRLSt+7bUjuUydO7738EK38cnjp4yvAQvu3 bVLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=fx8OsiGWH5yuqlL6DjcH0JCB8TcqzYoP0o7WyW2mHn0=; b=H66kQihnNFQTC+Svr97QPGBSK5b8Gu+ZE4lJgnD4ecbp6GsDKhWxVRFXFui6MGVym/ 7x/TGkNMR/iAAn4gLnJufMNnP+bQQAtNut9H1fqQUwXcUdcANFsIcV5YYExn1OSl1Enj jQRclInoipMJwgk1m5FXp74xw1xn4H56KZhxiadRM/ILSzwl1o/0Bx0vEVGc/exfhgA6 CbWra2fy0ukvXVJyHCaPhsmFSZmxVS9kA+2oPhf/WXJExlpkUHObFxlXq+Im2tDyS9Cz S5+6wBfhtK1pb16Ee/D5sQt2Vn64iauU6BoTRKt7hVQInl9HmJrd9wGW2D5+82AaX+FU gCmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SRHSJL9+; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a170906018e00b0087bd78cd19csi16706871ejb.10.2023.02.13.03.14.10; Mon, 13 Feb 2023 03:14:33 -0800 (PST) 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=SRHSJL9+; 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 S231131AbjBMLNR (ORCPT + 99 others); Mon, 13 Feb 2023 06:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbjBMLNK (ORCPT ); Mon, 13 Feb 2023 06:13:10 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D7818B25; Mon, 13 Feb 2023 03:12:42 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31D8rpeo011727; Mon, 13 Feb 2023 11:11:54 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; s=qcppdkim1; bh=fx8OsiGWH5yuqlL6DjcH0JCB8TcqzYoP0o7WyW2mHn0=; b=SRHSJL9+J0gWyRxJtURjv42zZmKmzmpQznMHc4xUcornMkfea5O+tJQzVkxdX0utQrB/ bhd2YLOxu6xoORjfjKWG22etL1rsjlnAoZctMMDma94/zyr2Q6LeOi4xIaAJpA/UJODi LyJ1qvZjDZUhmFQLgtygaayF1e33NlQwoCMWC3s3qOgKSCUpWb5VMOoTKgpVdtXIrKoa HkTwU0FZED9S3BKD1+KDHRi8Y8/x8imuWjY6hTqyAj3EbcOhdGYDiAIxWun3GcQJ6szc W11A4QzVGT3M9XyM3UjUqczE066miOmWSQ932+wxndokuurhruepOmUN42Ii8Er2d/MR /A== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3np0qpuy9c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Feb 2023 11:11:54 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 31DBBn37018453; Mon, 13 Feb 2023 11:11:49 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3np43k9kta-1; Mon, 13 Feb 2023 11:11:49 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31DBBnp6018424; Mon, 13 Feb 2023 11:11:49 GMT Received: from kalyant-linux.qualcomm.com (kalyant-linux.qualcomm.com [10.204.66.210]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 31DBBnK6018421; Mon, 13 Feb 2023 11:11:49 +0000 Received: by kalyant-linux.qualcomm.com (Postfix, from userid 94428) id 374694BB3; Mon, 13 Feb 2023 03:11:47 -0800 (PST) From: Kalyan Thota To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Kalyan Thota , linux-kernel@vger.kernel.org, robdclark@chromium.org, dianders@chromium.org, swboyd@chromium.org, quic_vpolimer@quicinc.com, dmitry.baryshkov@linaro.org, quic_abhinavk@quicinc.com, marijn.suijten@somainline.org Subject: [PATCH v4 1/4] drm/msm/dpu: clear DSPP reservations in rm release Date: Mon, 13 Feb 2023 03:11:41 -0800 Message-Id: <1676286704-818-2-git-send-email-quic_kalyant@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1676286704-818-1-git-send-email-quic_kalyant@quicinc.com> References: <1676286704-818-1-git-send-email-quic_kalyant@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: uTwn0ilSM_QoSNT1uDWxNVcDdPhZ6V19 X-Proofpoint-ORIG-GUID: uTwn0ilSM_QoSNT1uDWxNVcDdPhZ6V19 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-13_06,2023-02-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 mlxlogscore=759 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302130101 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757714184683940533?= X-GMAIL-MSGID: =?utf-8?q?1757714184683940533?= Clear DSPP reservations from the global state during rm release Fixes: e47616df008b ("drm/msm/dpu: add support for color processing blocks in dpu driver") Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index 73b3442..718ea0a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c @@ -572,6 +572,8 @@ void dpu_rm_release(struct dpu_global_state *global_state, ARRAY_SIZE(global_state->ctl_to_enc_id), enc->base.id); _dpu_rm_clear_mapping(global_state->dsc_to_enc_id, ARRAY_SIZE(global_state->dsc_to_enc_id), enc->base.id); + _dpu_rm_clear_mapping(global_state->dspp_to_enc_id, + ARRAY_SIZE(global_state->dspp_to_enc_id), enc->base.id); } int dpu_rm_reserve(