From patchwork Mon Sep 18 07:10:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2hhd24gU3VuZyAo5a6L5a2d6KyZKQ==?= X-Patchwork-Id: 14170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2968284vqi; Mon, 18 Sep 2023 14:38:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGA9HO/syo16+Zt2tPa7BJH7ajmYjGFhaoh3gr/8AD4NEVWjniMQGdH7FhzRBealIMQwiS9 X-Received: by 2002:a05:6a21:789a:b0:14c:6438:a787 with SMTP id bf26-20020a056a21789a00b0014c6438a787mr10594398pzc.57.1695073087746; Mon, 18 Sep 2023 14:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695073087; cv=none; d=google.com; s=arc-20160816; b=0dOqKNCGSPg4GYMUXv5EzcwTiKjBata9I6kCPdm+eXKCJrThUQr9Oxuous1Bh7FzUF IkOft8b8X3tDHF8f8HK6eIFzjHWS/oAS3rZgS7ogGaFx+9+5+xyRFjKMRdImklI6TbcB ZBpXeLM/FiknbnauORTlulkANQkqbrWfJZgyJPBMAV6eVuDZ64jo/PIqN+XAGftRb80K UMRVJo26202qBDLYAtTjdNomLdIlEoIHDWysgdvEmxVzL7w5ieSJok1ezYx8noFEWbWo HRpk4wy9TJrSxLvxvtB+Jgjjo620tJI+/hEOvUUFRRDdah1GXes6koR+PgKr96V8qhqQ 106g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=EvHvDx283IzEltxctJnUdGAUV6tBQrKDH8gsbNSn6lc=; fh=LYdYfFPGSi3gAhb4WuSepZbR1AELdk1ieYoqIaawNGo=; b=KRRRlDK63GweXOJCXHkdF0hIpmnxsLuulneiR7ZGg8mHuN38OgVFTVy7mSZcguPir4 1xcnbSK1fT0cFH9Ff1jQMDmRndM13Z+NK3XdSHJqPGYiBZNVCII1I9oYSpBfcChFH5/T LMII9yZ4YSgf5ljJLj8Lln57aIEsgplIk8fBAqdMhZKIQJiM2zzbvA8h0kuAhxPL5UgQ VVLRmRP5m2DkTWdUzVGqGKkqDimM26NB722u3rl5Myuul9kjhxcPlJdO5FwB123k+/6M hRE2ghtgemv1m76OvtIHm2gPjTJJ813wwwe5ZJUCjLXf29qdTjWalpf5GYtxDlqj6PO9 ICKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=e85znPPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id br14-20020a056a00440e00b0068fb5cec8cfsi8584552pfb.267.2023.09.18.14.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 14:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=e85znPPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0CAD2837380D; Mon, 18 Sep 2023 00:11:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240076AbjIRHKy (ORCPT + 27 others); Mon, 18 Sep 2023 03:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240088AbjIRHKk (ORCPT ); Mon, 18 Sep 2023 03:10:40 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED375189 for ; Mon, 18 Sep 2023 00:10:21 -0700 (PDT) X-UUID: 6aa3d30e55f211eea33bb35ae8d461a2-20230918 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=EvHvDx283IzEltxctJnUdGAUV6tBQrKDH8gsbNSn6lc=; b=e85znPPWvUSG824KIqx9Rfct/oB7pqDRwB0WKHj1w5jVs1gTvtFwi7B81Sq0BgfQgZx+8vfuDfE0q/7uKRRWe48j7418isNxof40qHmNw70wJvrMk8fd5iD0had4IcK3k9ckz7vFJEAaDWL36EvrBhJNPqRp80WwxuYILPzyNBs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:23326be1-d09d-410b-8402-f658e91ca863,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:0ad78a4,CLOUDID:2bd0d1ef-9a6e-4c39-b73e-f2bc08ca3dc5,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 6aa3d30e55f211eea33bb35ae8d461a2-20230918 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1061170651; Mon, 18 Sep 2023 15:10:15 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 18 Sep 2023 15:10:13 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 18 Sep 2023 15:10:13 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , "CK Hu" CC: David Airlie , Daniel Vetter , Matthias Brugger , Philipp Zabel , Sean Paul , , , , , "Hsiao Chien Sung" Subject: [PATCH 0/1] Fix errors when reporting rotation capability Date: Mon, 18 Sep 2023 15:10:10 +0800 Message-ID: <20230918071011.18481-1-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--6.362900-8.000000 X-TMASE-MatchedRID: IJfQKf6xjE4u/MJ2EBezoZVIEKhlTKps68AA1e32M+y/Wj4uWP2JYWDm yyASSuxBNgD1nJIvf+9EzxsFM1euZkkjllSXrjtQFEUknJ/kEl5jFT88f69nG/oLR4+zsDTtjoc zmuoPCq0oityJbwQtJ2bQ1Q9x9TiCAJHWuhIuoo6i1r10f1kTMaRU1LSKs2VE X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.362900-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 56304D84A71E4D1D993A7E86329D0A70691A36B724FB3A9C8B1D9F1A1D1ADA062000:8 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY 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 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 00:11:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777412957995000172 X-GMAIL-MSGID: 1777412957995000172 This bug is found when running IGT tests. For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0. Since both OVL and OVL adaptor on MTK chip doesn't support rotation, return the capability of the hardware accordingly. Hsiao Chien Sung (1): drm/mediatek: Fix errors when reporting rotation capability drivers/gpu/drm/mediatek/mtk_disp_drv.h | 1 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 8 +------- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 5 +++++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) --- 2.18.0