Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1048097yba; Thu, 4 Apr 2019 03:12:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPIMcvSskmeVNoltTJ+ksxEJqlUglt4ElQkjDEzN65/XLCU8pRDK/0IA98C7/6B3DtfaOj X-Received: by 2002:a63:5a47:: with SMTP id k7mr5007504pgm.174.1554372767860; Thu, 04 Apr 2019 03:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554372767; cv=none; d=google.com; s=arc-20160816; b=R53WMO01BekjpmqRj745ypgpBBWj3HU5wkiitaueXAYp7b53joyXMy6NmWc6T9/l+J Dpp1C/Ug+MbZ0L9LT/mlUribmqjuPQzpQLZ29fXrZQYSHoVZSZqvabCjuGys0gJB6z7o RjVnf8uJOkLR6cnZGWgISXzKNWoFsKchr/2OtZpoMyDRwNw+pzpKUH0DRsSiYE7rn5EW 3SZh22+1le/7K9zV+Ka3Vx/hn75QJLALx8dMiLpRWCme9YPE8xO/wU0gSBDWM+cjXfzD fDmgEDy/ncgWS7EBLKLGFqlbGsXy+WK5uXemRMieLvGHTTCn2vO/uN84cSbf0Cg3NGpi Q0fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :nodisclaimer:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=0eJSYLCXZv4JmgGXeji4IzzFeNLHT9G7kOZpqxQUqhk=; b=mX/7cvp9cKZ25LVYqnFfrTK6XhEOCjGz3i5EOwVIbNVsdeTBT0PuTNBQe3uxU2hp6q hcQoPghYm56RWaoTE2B8aj5rnTqICEgIwByJ4p3ATG5riTXvpxaCe+PIJa+HLMF9El/5 UEqat0c4Hk87UO+k93MN2wvJtamYf41fbVJkk7JVq3SkYbT75/d3K23DGSo/FkOWflxt OUbDJMGWJY3+gCYqTV7J1jry2OlR63mmTHar1eU53O6HtMQRrf0Q7XMugSlNiluNKykd pvEEEun9xRLOK63uU4/eqt+K/mWO4nmv1wbzuceHJw4EeQf2YGb8AHvcP17qYYU2Sja/ cy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=kurLDjWB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si16727668pln.404.2019.04.04.03.12.31; Thu, 04 Apr 2019 03:12:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=kurLDjWB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728933AbfDDKKj (ORCPT + 99 others); Thu, 4 Apr 2019 06:10:39 -0400 Received: from mail-eopbgr60071.outbound.protection.outlook.com ([40.107.6.71]:9088 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728671AbfDDKKj (ORCPT ); Thu, 4 Apr 2019 06:10:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0eJSYLCXZv4JmgGXeji4IzzFeNLHT9G7kOZpqxQUqhk=; b=kurLDjWBygimOeOLZE4pJPvP0LzLNVMB/qfHT6/k3n74Lx284fZK2AQzJlGyylmtLQvEbvIX1WeOkf0XYO3Ya5+GU450FYzKN1ltY61LBwHaKP00hDoWrLNkVtUWevaXkxAdcTljN05p8ojav3pWQ9w7I3GSeZWwONZr8NoviCc= Received: from DB7PR08MB3530.eurprd08.prod.outlook.com (20.177.120.80) by DB7PR08MB3771.eurprd08.prod.outlook.com (20.178.47.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.19; Thu, 4 Apr 2019 10:10:36 +0000 Received: from DB7PR08MB3530.eurprd08.prod.outlook.com ([fe80::899e:4160:166b:923a]) by DB7PR08MB3530.eurprd08.prod.outlook.com ([fe80::899e:4160:166b:923a%3]) with mapi id 15.20.1771.011; Thu, 4 Apr 2019 10:10:36 +0000 From: "Lowry Li (Arm Technology China)" To: Liviu Dudau , "james qian wang (Arm Technology China)" , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , Brian Starkey CC: "Julien Yin (Arm Technology China)" , "Jonathan Chai (Arm Technology China)" , Ayan Halder , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , nd Subject: [RFC PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Topic: [RFC PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Index: AQHU6s6l9n6BadQNGU+O4hvKDOagqA== Date: Thu, 4 Apr 2019 10:10:36 +0000 Message-ID: <1554372625-3659-1-git-send-email-lowry.li@arm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK2PR02CA0135.apcprd02.prod.outlook.com (2603:1096:202:16::19) To DB7PR08MB3530.eurprd08.prod.outlook.com (2603:10a6:10:49::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Lowry.Li@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec71e70f-16c2-49a9-2bbd-08d6b8e5c79d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB7PR08MB3771; x-ms-traffictypediagnostic: DB7PR08MB3771: x-ms-exchange-purlcount: 3 nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(376002)(396003)(346002)(366004)(199004)(189003)(71200400001)(7736002)(81156014)(478600001)(2906002)(68736007)(186003)(66066001)(26005)(8936002)(50226002)(966005)(3846002)(110136005)(305945005)(81166006)(52116002)(8676002)(5660300002)(316002)(2501003)(72206003)(54906003)(6116002)(99286004)(2616005)(6436002)(2201001)(105586002)(102836004)(71190400001)(256004)(86362001)(36756003)(4326008)(6506007)(486006)(25786009)(55236004)(386003)(14454004)(6306002)(53936002)(6636002)(6486002)(5024004)(6512007)(106356001)(97736004)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR08MB3771;H:DB7PR08MB3530.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: p72FAITBS48J9yw7NR3D0JoUhwYyWVO8q5zfDbbQe3YEcK76Dq3vuQhreokx6iZeaK/ckgYpfhK67P5aAafpnoFt2ylrnRCCPnmE3F66HZNkrXnG+6RXUkaq2aChepXDT+4NggKzYR5t7Bhxg/4nMAlcxigcRWsbF+0vlW50i2j1FCtyPIYDVyI3gh0tAF4g+oM7+qqOD+3XeanyjJjsxuSttPh1U85mdd9lcFvsoFAzEGEgGLrhL7g4eEG2cPbbQcIMC7vnHAqDnkfARcD5dA04j6ZTP9vXi08gjgmxQ+zaHKW0xe+2H599ilNwWzRSfnFRmvBJLlWg8ySOZspoFIiW1DmIiqJeL6jSaVJnu/FepwZtRL7Pk0We206QF5tpMEsvBrYClGL+vOofAoHjN5a9Uood58aBo8MPsU4VP3I= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec71e70f-16c2-49a9-2bbd-08d6b8e5c79d X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 10:10:36.1405 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3771 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Creates plane alpha and blend mode properties attached to plane. This patch depends on: - https://patchwork.freedesktop.org/series/54448/ - https://patchwork.freedesktop.org/series/54449/ - https://patchwork.freedesktop.org/series/54450/ Changes since v1: - Adds patch denpendency in the comment Signed-off-by: Lowry Li (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gp= u/drm/arm/display/komeda/komeda_plane.c index 68cd2c9e..aae5e80 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c @@ -220,6 +220,17 @@ static int komeda_plane_add(struct komeda_kms_dev *kms= , =20 drm_plane_helper_add(plane, &komeda_plane_helper_funcs); =20 + err =3D drm_plane_create_alpha_property(plane); + if (err) + goto cleanup; + + err =3D drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PIXEL_NONE) | + BIT(DRM_MODE_BLEND_PREMULTI) | + BIT(DRM_MODE_BLEND_COVERAGE)); + if (err) + goto cleanup; + return 0; cleanup: komeda_plane_destroy(plane); --=20 1.9.1