Message ID | 20231030090312.7758-1-shawn.sung@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2070626vqb; Mon, 30 Oct 2023 02:03:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvEE7IY6ocA39tZtdp7LOA6J6BvhiPt0ruKX1viZkNArRgMmYB0uG364M9fUCGpieYin2I X-Received: by 2002:a05:6871:5c44:b0:1e9:892b:eaa0 with SMTP id os4-20020a0568715c4400b001e9892beaa0mr10638148oac.9.1698656631036; Mon, 30 Oct 2023 02:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698656630; cv=none; d=google.com; s=arc-20160816; b=cwTJPyqsH1JmpOYdauuo3geeMHkyImmvUqf4j8FkQ+f+3isU7aTrryRPH2t+p5zYmL Z6Jl5zzQiDsn1KKXrva9wGqS5PlPZWDQs6fVRisFCkCWhgDmem7tdwA7zxUtbfi0Be4L CntoEbD5h8QRJYCZbrv9DwCpsMnkuDZGqGerYzqhYupT0xZliwAZosM/0lgqjoDxNd2K sFlxH9tv17IjNL3V5RIsFhCAfFt22a+1JpTaxdWuYcBhk3sqT3Csfi56OYj9JNFHRTit VkuXUmrSl6tBBWNPBJo0uniK4UGSn7LRU279cOYMDVtzMs0kNM4MK9HqGDlc+J8hDAdx ccTQ== 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=6f5of367GWFLTMNgQF+A8V5kJhe5SrZ87ZPUpmvkcm4=; fh=5fu8T33uHxjuFx+daxEXQ2eMzk3ppNYRqJ5jJQqXd4E=; b=uEL4wueMndzx3hw/3oauf4PbzbXV6Bw3RcP1ASfwAT50r/n/f4UXYu+AVn0kORAXR+ Omy3Ic7Jfe0JnTt6+3URW9ZDhAx6y29Ub2yg5LpK14S86N6QQi654TCLubocHVry7qK+ pqggBBNviBWS/iVLr749UDEQ3Yap8nt+NanKgtg/lhNTbsyhkZd2iGBw/lr3jo/zDrWp WICK5VsphOX7raiSdvb/4mbUFPoSlrNu/gNMx+TyaxVmy6+5uYAHp1rvgZy+h0NnzXwT VfRVmZ4LlRhBRCHbKkwjg0RZKxnlideo6gu9eJJo/3Jpcl4CBURQCGCfqnURCDBCyoZz i6sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RsZzb4P8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h36-20020a63f924000000b00578af609d05si4733946pgi.244.2023.10.30.02.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 02:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RsZzb4P8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 5E1D98060C8D; Mon, 30 Oct 2023 02:03:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbjJ3JDg (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 05:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231467AbjJ3JDf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 05:03:35 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54710D9 for <linux-kernel@vger.kernel.org>; Mon, 30 Oct 2023 02:03:25 -0700 (PDT) X-UUID: 2926fab4770311ee8051498923ad61e6-20231030 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=6f5of367GWFLTMNgQF+A8V5kJhe5SrZ87ZPUpmvkcm4=; b=RsZzb4P8TIXw9wjF4L+TqwND1uWH66kDGK7oQQXtOrYMfKp6qrllPeqs9Ty22CVrgfTE3Mvh5f2Yg42n+vG8bZX9OrKQNBTbP/UV4Y6aeLJpTIhmPB0pgQOTpGV0Ksq3eLdkHVxkL7HtK7zoqCQiAWQs3B6EaKPjEfAUhXgzAUk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:045770b1-5fe1-4636-8b90-6dd8ad18418c,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:5f78ec9,CLOUDID:7a64eefb-4a48-46e2-b946-12f04f20af8c,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: 2926fab4770311ee8051498923ad61e6-20231030 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from <shawn.sung@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1600321017; Mon, 30 Oct 2023 17:03:15 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 30 Oct 2023 17:03:13 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 30 Oct 2023 17:03:13 +0800 From: Hsiao Chien Sung <shawn.sung@mediatek.com> To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, "CK Hu" <ck.hu@mediatek.com>, Sean Paul <seanpaul@chromium.org> CC: Chun-Kuang Hu <chunkuang.hu@kernel.org>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Matthias Brugger <matthias.bgg@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, <dri-devel@lists.freedesktop.org>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Hsiao Chien Sung <shawn.sung@mediatek.com> Subject: [PATCH v2 0/1] Fix errors when reporting rotation capability Date: Mon, 30 Oct 2023 17:03:11 +0800 Message-ID: <20231030090312.7758-1-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--7.989100-8.000000 X-TMASE-MatchedRID: Z2f9DQPf1tku/MJ2EBezoZVIEKhlTKps68AA1e32M+y7qpOHKudqc+OY +B3JL0OU6KyPWSN6DMyYGDWKq7IbHADNPxu11HXjH5YQyOg71ZZ9LQinZ4QefCP/VFuTOXUT3n8 eBZjGmUzkwjHXXC/4IzsAVzN+Ov/sgmQ6bcMFV02WqAkkYaOobDqacQoxuIGZh+3MYihDJQAATk WR47xRfQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.989100-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: B4943EC94F410E4ACB98F994AA7D9F27E0FFEE3BB02E92E35E4B3854B250ED0A2000:8 X-MTK: N X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 02:03:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781170575704970312 X-GMAIL-MSGID: 1781170575704970312 |
Series |
Fix errors when reporting rotation capability
|
|
Message
Shawn Sung (宋孝謙)
Oct. 30, 2023, 9:03 a.m. UTC
This commit is based on 20231024130048.14749-1-shawn.sung@mediatek.com. This bug is found when running IGT tests. For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0. Returns the hardware capabilities accordingly. Changes in v2: - Restore DRM_MODE_ROTATE_180 (reflect x + reflect y = rotate 180) - Define supported rotations in the driver data 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 | 30 ++++++++++--------- .../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, 24 insertions(+), 15 deletions(-) -- 2.39.2