From patchwork Thu Jul 27 21:51:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 127244 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp64695vqg; Thu, 27 Jul 2023 16:12:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5CDViQvjvbXIvziYJ6XBWMi4TXyYPuzdQ/AFo7ZSKMbd/o0JZYkwdGti2KHdbBkHj2YhG X-Received: by 2002:a05:6a00:1388:b0:681:6169:e403 with SMTP id t8-20020a056a00138800b006816169e403mr78076pfg.8.1690499537527; Thu, 27 Jul 2023 16:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690499537; cv=none; d=google.com; s=arc-20160816; b=hq/155gCUCwAB267byJZ3Cdnt4z+nQmv/zFRlxsk7hzy8ggFN2dZc7gf6edF3CaETM INeJUrvNleqEzoT/ycdM2Hy7nb80yGlZkWVx8dP/JZEjlW8ktHDFTn+x/UluGvSUtL/i nHxPV9kMmdLXB072BJWuqeSsEJUi69lN36sR72H3IClyWaCXTkAejrD0rKz4aEL1axBA HzbI6Yw+IufOGWGWqxb3/w7pTSs1LAJeTOYmyTU+1VdZORBG45XGRV82WzRE5XvryVRw NKhBaDu8e+DQ2lkyQ563ojC97lUgYENnxbMvlPq0AlXlvzy4te1LZr7cF5a4G0tqcBc1 B0Ag== 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=kgGzA4dJRcbkTCFkI8WKFmpxvWUvUAQu2bilJrVHeBw=; fh=YlaQJ3TP8tbT2RGJU1jM+MHAbXw6RYFhYgmjWx/ZxUI=; b=j7Imry8gCCPtKt3IaOnIE76NixMsDSYePR6e0AEcqz0vwfHmkpngbBTepUl0W8gJej 7wv+8oZB9zX7Y7kMFJOKAhNLsVsmSZAFH8irM8LLhKw3fPhNxHLRXRYlXtMWsdi5BPcW eYXaZt6VNeECLzA3BXL3wzMVWdVfbnO5g1q33LscCrT4dFTfL7/O2NqprFJHUK732+r/ WOZexXY/o89bTuBFMN7MxW146Ilhi5WPPDS6TCz8KUSG1JhGeiKmSB+AgrUYGksBHVXY qQTQq2uOLa4pFM4c1ldwgbZZXxAc1l2n0lnLkGmKCRqqq3ROeu2Ls0rj76TyBcxvPqhB NuNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=lOgjzsYj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s36-20020a63ff64000000b00563df8b135asi1848407pgk.304.2023.07.27.16.12.03; Thu, 27 Jul 2023 16:12:17 -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=@me.com header.s=1a1hai header.b=lOgjzsYj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbjG0VxQ (ORCPT + 99 others); Thu, 27 Jul 2023 17:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232686AbjG0VxA (ORCPT ); Thu, 27 Jul 2023 17:53:00 -0400 Received: from qs51p00im-qukt01080101.me.com (qs51p00im-qukt01080101.me.com [17.57.155.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A9930E4 for ; Thu, 27 Jul 2023 14:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1690494761; bh=kgGzA4dJRcbkTCFkI8WKFmpxvWUvUAQu2bilJrVHeBw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=lOgjzsYj3O24lMtX7deLh2NMJOaknYNi4dG3G7pJAlC2tpYVbUbR89MwUBNYxLyGo bxakESUnPGEprmHFo768pGBNc73smnhJsu8d+3BnRBYNKPFlS+AMbCoChH1tm2cy1P AceGT2ZVSXqewMUfTbfk27YcaknLlYejy/cclN4tShbUWy4K8CxTxBmZZzzu3nFJvQ kWaDcag4Rt7ChsHhulbej5p8VZOwMovG/ZDunwnaqJEezXdQ3Wp0r4trdEzd7K4I5o 3DWMfSw1kn6ZIOc3aF3IWiF0PwvoGWNChpBCUsANuXph75mOXTONN+RHsOPeM2VzoA Tmjz3rDCz3q/g== Received: from localhost (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01080101.me.com (Postfix) with ESMTPSA id 5BC196180164; Thu, 27 Jul 2023 21:52:40 +0000 (UTC) From: Alain Volmat To: Alain Volmat , David Airlie , Daniel Vetter Cc: Alain Volmat , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/14] drm/sti: add more possible GDP / VID planes entries in sti_plane Date: Thu, 27 Jul 2023 21:51:31 +0000 Message-Id: <20230727215141.53910-8-avolmat@me.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230727215141.53910-1-avolmat@me.com> References: <20230727215141.53910-1-avolmat@me.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: wpH9KuNuuv4dX_dTTxW3ntkSM4BIxeZ0 X-Proofpoint-GUID: wpH9KuNuuv4dX_dTTxW3ntkSM4BIxeZ0 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E138=2C18=2E0?= =?utf-8?q?=2E790=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2022-01-12=5F?= =?utf-8?q?02=3A2020-02-14=5F02=2C2022-01-12=5F02=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 suspectscore=0 spamscore=0 mlxlogscore=771 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2307270199 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772617243013607264 X-GMAIL-MSGID: 1772617243013607264 In order to address the STiH418, add more entries in sti_plane Signed-off-by: Alain Volmat --- drivers/gpu/drm/sti/sti_plane.c | 8 ++++++++ drivers/gpu/drm/sti/sti_plane.h | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_plane.c b/drivers/gpu/drm/sti/sti_plane.c index 29e669ccec5b..f8d65d608b64 100644 --- a/drivers/gpu/drm/sti/sti_plane.c +++ b/drivers/gpu/drm/sti/sti_plane.c @@ -28,8 +28,16 @@ const char *sti_plane_to_str(struct sti_plane *plane) return "GDP2"; case STI_GDP_3: return "GDP3"; + case STI_GDP_4: + return "GDP4"; + case STI_GDP_5: + return "GDP5"; case STI_HQVDP_0: return "HQVDP0"; + case STI_HQVDP_1: + return "HQVDP1"; + case STI_HQVDP_2: + return "HQVDP2"; case STI_CURSOR: return "CURSOR"; default: diff --git a/drivers/gpu/drm/sti/sti_plane.h b/drivers/gpu/drm/sti/sti_plane.h index 2c0156bede9c..51fc25ed0287 100644 --- a/drivers/gpu/drm/sti/sti_plane.h +++ b/drivers/gpu/drm/sti/sti_plane.h @@ -25,7 +25,9 @@ enum sti_plane_id_of_type { STI_ID_0 = 0, STI_ID_1 = 1, STI_ID_2 = 2, - STI_ID_3 = 3 + STI_ID_3 = 3, + STI_ID_4 = 4, + STI_ID_5 = 5, }; enum sti_plane_desc { @@ -33,7 +35,11 @@ enum sti_plane_desc { STI_GDP_1 = STI_GDP | STI_ID_1, STI_GDP_2 = STI_GDP | STI_ID_2, STI_GDP_3 = STI_GDP | STI_ID_3, + STI_GDP_4 = STI_GDP | STI_ID_4, + STI_GDP_5 = STI_GDP | STI_ID_5, STI_HQVDP_0 = STI_VDP | STI_ID_0, + STI_HQVDP_1 = STI_VDP | STI_ID_1, + STI_HQVDP_2 = STI_VDP | STI_ID_2, STI_CURSOR = STI_CUR, STI_BACK = STI_BCK };