Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp39030rdb; Mon, 18 Sep 2023 07:45:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHHAW+iIWVvboPHrROaLQBrWbOmLVO5Z0DrkwLQtt2i7qSaL00xCfia/UBS61SIrdS0ZsQ X-Received: by 2002:a05:6a21:4849:b0:14d:396e:6e1c with SMTP id au9-20020a056a21484900b0014d396e6e1cmr7104702pzc.28.1695048340738; Mon, 18 Sep 2023 07:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695048340; cv=none; d=google.com; s=arc-20160816; b=ppHtF0i6ONjKzLjyah3qLlzOawd5apnEIj9dQYJfWqx0ROusv9kuPDMBqKLEV11WMl zMzxcolD9OOCEvmJyZ1MlaielAZj1/sbDMAS4NzZVgTnnRIwscSwuGmMiSkQ7sGsye96 DslE96tp46I81RyZuqhzQhk0GLePdbLd1tO847M2hkF1fRnUScvMfDXnHU7EnSHrmwgs 31lJXN5a9uguRuG327d9ie/llzc3IxuSE/NNcaUMVSzoWh2ZKatEfYcK1PWu52NUZ9Bj 0AU6tdRnQGQQ3bSL2OjpUXMoGmpNFVTsIcRyC371As71yXr9DHKyLgAOlOFna+3kVAas iYNA== 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e1-20020a170902cf4100b001b53b6b029csi8265156plg.124.2023.09.18.07.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 07:45:40 -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 BD5D8837318B; Mon, 18 Sep 2023 00:11:35 -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 S240075AbjIRHKx (ORCPT + 99 others); Mon, 18 Sep 2023 03:10:53 -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 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--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:36 -0700 (PDT) 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