From patchwork Thu Aug 22 21:50:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Lin X-Patchwork-Id: 11110147 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 734AB1399 for ; Thu, 22 Aug 2019 21:53:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55EB920679 for ; Thu, 22 Aug 2019 21:53:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55EB920679 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 767516EB42; Thu, 22 Aug 2019 21:53:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-eopbgr740073.outbound.protection.outlook.com [40.107.74.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30E356E558; Thu, 22 Aug 2019 21:53:14 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nJkKPRx3r1NGmdcZmaSZSzHgA8AcWm0vTUysWnvqdqJQ1HD/z8Ax8m4K6YRGlpEcBUx+Jst5w/wioivLMGyzPJe88kdudsntcUuOq6GOh2kiB71q1Z5sAOWJydPVUljZJsk9rEY0ImG9tkOeIywlDmEdrWX+7wnjrcuy7mTYvUpzwu+dooDZZRX0ksAUqJW3mZlOasupEzZCXrXK7do3SaLEyn1aGP/9V8crZFH5P+Vh7OUbXVpDNdY5gx3D1LpxSHqMn8U6xwmU8maunTtPkycgmJ1VgppfS1wU32t1PrdP70IbKIGxsGLkkLthhpP/iAiOy0MUn5tzacZNyhWxjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AKtgB88DNB2ikVphPWl9SO4RX/IDp+x2XBK3ZRyXS3s=; b=NJhWFryQ8AK5e8/ERhcDV6J/QfGRDtblOneuQ7kKjAS6tIeHGDyaZiGx1NCj1FA9fuRSgfju4+f0Z8Agea56F537ycGhgY4Di9ezYw5uVV4//y0i5oyjYaNbRhbz0RhdvNbcRMWFHWoK2LUeRx6p+MvWVKOBN89Y2pMiWPYqNrY7CVMRUfPyyXCQYDvG/5fYW0rYUZP3ecdcsf5d1t3C9IoU+HJVuTtGEZmqi4/LCzg5pLgaEUTnsngSogcmlRGEczboysEZOeB2/OtIOSyfmhYd72UiJ/6azDC2nuovk3/OVLM95anynfy3vCzT2+kC6fwmjG6sSTsV4myzaOeEgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=permerror action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from MWHPR12CA0059.namprd12.prod.outlook.com (2603:10b6:300:103::21) by SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:70::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Thu, 22 Aug 2019 21:53:09 +0000 Received: from DM3NAM03FT010.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::207) by MWHPR12CA0059.outlook.office365.com (2603:10b6:300:103::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2199.14 via Frontend Transport; Thu, 22 Aug 2019 21:53:08 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT010.mail.protection.outlook.com (10.152.82.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2178.16 via Frontend Transport; Thu, 22 Aug 2019 21:53:08 +0000 Received: from wayne-Bilby-RV1.amd.com (10.180.168.240) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Thu, 22 Aug 2019 16:53:07 -0500 From: Wayne Lin To: , Subject: [PATCH] drm/drm_connector: add additional aspect ratio values Date: Thu, 22 Aug 2019 17:50:02 -0400 Message-ID: <20190822215002.17836-1-waynelin@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(39860400002)(396003)(346002)(2980300002)(428003)(199004)(189003)(50466002)(8936002)(81156014)(8676002)(7696005)(53936002)(47776003)(110136005)(51416003)(4326008)(478600001)(486006)(5660300002)(48376002)(2906002)(426003)(476003)(126002)(16586007)(70206006)(70586007)(53416004)(81166006)(50226002)(36756003)(450100002)(186003)(1076003)(54906003)(316002)(336012)(6666004)(305945005)(356004)(26005)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR12MB2718; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2b6cc51c-87de-485a-762e-08d7274b1eb8 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328); SRVR:SN6PR12MB2718; X-MS-TrafficTypeDiagnostic: SN6PR12MB2718: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-Forefront-PRVS: 01371B902F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 6wOA3YoLPcod5dpUWuQOg8CNO7NxBhYPIUHGDbxsBd6Kj+/vehSXnkh9aClk6t5mlu/lDluxiOCLqjVdTyEUVeIb7I3JcsZ33eqlsaWwGENmKZho5s9GAMFt3MUvxiIbVSbUdCEn8R/ZmyET23++JI3iQwHH3Zj93/ZHKLST3SS035UdWEfyiBDLySEDHKrIpnAH2c6gIzVQ1a6ftRhZQ5/o9uwGZgVeKcZG843NnE1z3bNQNiJDtMj1iEf1GQASCcvZoSx0W4nJ9EIArg55hd8caRUOgyCgeQEk419MsrPJVAT87IAOHZkTOZ8Ni4g/HUiTlIIUEZsu67flu44aH75kLv943ULOsGdCa4fyuYWi2pmk2xjN0do6wLcEVL2phRu9mqofMgvHZcs4zUjLHBGnZ9oJA1GUW8T8Y6A41Uw= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2019 21:53:08.6399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b6cc51c-87de-485a-762e-08d7274b1eb8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2718 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AKtgB88DNB2ikVphPWl9SO4RX/IDp+x2XBK3ZRyXS3s=; b=viGyJwvmoRkqD/rKWurSmTky0D/PIbrrOt5QaknuZqC4s1tRXhoj7gC8p/3ZY9CkugU23HAtVVfFNMd2BLV3tgHR+Tx7ga576C6mB/8ZJByy3Kx2AyBCfycjzfRMTNty0CooRAz8wqVRvvbJlIjazxUAnjhF7pda4VrVGWOWftU= X-Mailman-Original-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sunpeng.Li@amd.com, Wayne Lin , Nicholas.Kazlauskas@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly. eg: (vic-76) 1920x1080p@60Hz,24bpp This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property. Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152 Signed-off-by: Wayne Lin Reviewed-by: Harry Wentland --- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 3a0cacb71235..c0629a01d08e 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" }, }; static const struct drm_prop_enum_list drm_content_type_enum_list[] = {