From patchwork Thu Jun 6 09:53:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lowry Li (Arm Technology China)" X-Patchwork-Id: 10979091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B1806C5 for ; Thu, 6 Jun 2019 09:53:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5875028784 for ; Thu, 6 Jun 2019 09:53:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BC7628786; Thu, 6 Jun 2019 09:53:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D84092885F for ; Thu, 6 Jun 2019 09:53:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DFD9A89789; Thu, 6 Jun 2019 09:53:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130045.outbound.protection.outlook.com [40.107.13.45]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B7D589789 for ; Thu, 6 Jun 2019 09:53:04 +0000 (UTC) Received: from VI1PR08MB5488.eurprd08.prod.outlook.com (52.133.246.150) by VI1PR08MB2797.eurprd08.prod.outlook.com (10.170.236.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Thu, 6 Jun 2019 09:53:00 +0000 Received: from VI1PR08MB5488.eurprd08.prod.outlook.com ([fe80::e9f4:59c8:9be1:910b]) by VI1PR08MB5488.eurprd08.prod.outlook.com ([fe80::e9f4:59c8:9be1:910b%4]) with mapi id 15.20.1965.011; Thu, 6 Jun 2019 09:53:00 +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 Subject: [PATCH v2 0/2] drm/komeda: Add SMMU support on Komeda driver Thread-Topic: [PATCH v2 0/2] drm/komeda: Add SMMU support on Komeda driver Thread-Index: AQHVHE2gd4fnb9TRqkKGfLapzK/iFg== Date: Thu, 6 Jun 2019 09:53:00 +0000 Message-ID: <1559814765-18455-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: HK2PR02CA0169.apcprd02.prod.outlook.com (2603:1096:201:1f::29) To VI1PR08MB5488.eurprd08.prod.outlook.com (2603:10a6:803:137::22) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d76ae04d-6428-4f6e-d7ef-08d6ea64c2a4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR08MB2797; x-ms-traffictypediagnostic: VI1PR08MB2797: x-ms-exchange-purlcount: 4 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 00603B7EEF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(346002)(396003)(136003)(376002)(189003)(199004)(102836004)(55236004)(386003)(6506007)(14444005)(316002)(256004)(186003)(6486002)(71190400001)(2616005)(476003)(486006)(26005)(71200400001)(66946007)(73956011)(305945005)(25786009)(7736002)(14454004)(53936002)(4326008)(72206003)(478600001)(966005)(66066001)(66476007)(64756008)(2201001)(68736007)(66446008)(66556008)(2501003)(8936002)(81166006)(86362001)(81156014)(8676002)(36756003)(99286004)(52116002)(54906003)(110136005)(2906002)(5660300002)(6306002)(6512007)(6436002)(50226002)(3846002)(6116002)(6636002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB2797; H:VI1PR08MB5488.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: QYlUIdDo7rm6Oqquay59kosJlqhfj6K7BW9Mki80WPCEArI49kuGE6iWZIiqMLuqOyDG7j18M4FsNTdEC9XV6KP91PU02SCdCI74wljSyi5iO5dfXIkrrx/7NT5rq3GFQwhoyr9WI4YZKzxfphN8WbjWGgRcPDH74cWRZP9lRCyLVYgyub/p06LNkM+tyjfUJWtkYWqaoTZbdUs16m1fIKrkFEMCy1GAYcC0u0WFX58snQXjZRyNQb+NaevGMpemrW97cYgWyzpTHO9dBlpQakF7b3dxzkiICpsrQaskWb934lixXB7L2qrVPeKg+wSWMSP5W8TYIw8Vb+cvsoQTBMq17HeGqHnU6GFyf/U7xFisaojq/wcL24YMxHoy1V0nSsfMVbsxCM6zBP+Y3lr1eKvx5J/YoDKGa542Uh1Ajvo= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: d76ae04d-6428-4f6e-d7ef-08d6ea64c2a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2019 09:53:00.7669 (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-CrossTenant-userprincipalname: Lowry.Li@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2797 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2BlUUR467QU0Um19zY9or5dzMn6PhaXniwlTMECDHqY=; b=F82aCn2Y/iPQ3aN+Ei1H5UxA2tlVZ1r7aPaAVD78Wre4/k4p15BXkf5GjQpUzpHMEzXetfo0hMmVv76Rxrb0VT2GIWPCwDczxsZkWVZH6aYz1D7lNlrb+DhPiJPRIfVSxDlClWxI5ZokUMdAu+Ku4rq6IW4SWu8d7W8m2iJcULo= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Lowry.Li@arm.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: Ayan Halder , "Jonathan Chai \(Arm Technology China\)" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "Julien Yin \(Arm Technology China\)" , nd Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, This serie aims at adding the support for SMMU on Komeda driver. Also updates the device-tree doc about how to enable SMMU by devicetree. This patch series depends on: - https://patchwork.freedesktop.org/series/58710/ - https://patchwork.freedesktop.org/series/59000/ - https://patchwork.freedesktop.org/series/59002/ - https://patchwork.freedesktop.org/series/61650/ Changes since v1: - Rebase to the patch in which convert dp_wait_cond() was changed to return -ETIMEDOUT and update d71_disconnect_iommu() to be consistent. - If connected IOMMU failed, set mdev->iommu as NULL. Thanks, Lowry Lowry Li (Arm Technology China) (2): drm/komeda: Adds SMMU support dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree .../devicetree/bindings/display/arm,komeda.txt | 7 ++++ .../gpu/drm/arm/display/komeda/d71/d71_component.c | 5 +++ drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 49 ++++++++++++++++++++++ drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 18 ++++++++ drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 7 ++++ .../drm/arm/display/komeda/komeda_framebuffer.c | 2 + .../drm/arm/display/komeda/komeda_framebuffer.h | 2 + 7 files changed, 90 insertions(+)