From patchwork Thu Dec 17 06:45:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7869761 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EEF019F1C2 for ; Thu, 17 Dec 2015 06:43:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29E6F203ED for ; Thu, 17 Dec 2015 06:43:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43EE3203E6 for ; Thu, 17 Dec 2015 06:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834AbbLQGny (ORCPT ); Thu, 17 Dec 2015 01:43:54 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35950 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbbLQGny (ORCPT ); Thu, 17 Dec 2015 01:43:54 -0500 Received: by mail-pa0-f46.google.com with SMTP id q3so16997302pav.3 for ; Wed, 16 Dec 2015 22:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=zkffYRaaQjDY41DGpWLJLfMroZgMc862gWY5OenkTcI=; b=rlvQzdovccQba60i/LjjH25eyBsxxOpHSmqe6vBnv4dMO0DOVMQh3kMo8rw/Y+V5s7 0ku9dwPNOLhs7DipldpwCklYT1AujxesP/qIW9cxHzvkNzZPYw3TX2kHAivC+qyiLPde paLNUqdIj4SeGYnYPn15gi2EeACdEJgAW29pkC2R7wj4VVCs78667YQtgsBEmzM8mQLh eYQT1advpT68Wd/wpXO561ETzBkQQCGcRff+om8DJk72qVHg7N06c4STEv5aHa7mHLJD OPflOZeUMrHA4CTLb4QH0tqxc4uJ/lOXp8B552EBExcuX+ryQ5l/vE8qnoiWiSC23AzS Wq6g== X-Received: by 10.66.253.5 with SMTP id zw5mr69966846pac.100.1450334633796; Wed, 16 Dec 2015 22:43:53 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id m88sm8815843pfj.70.2015.12.16.22.43.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Dec 2015 22:43:52 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm , laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Thu, 17 Dec 2015 15:45:35 +0900 Message-Id: <20151217064535.30114.91840.sendpatchset@little-apple> Subject: [PATCH] ARM: shmobile: r8a7790: DU and IPMMU-MX prototype Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Enable the IPMMU-MX device and hook up the DU on r8a7790, and also include enable debug messages. On boards such as r8a7790 Lager the DU will with this change included use IOMMU framework and IPMMU-MX device when driving on-board video output via VGA, HDMI and LVDS. Not-Yet-Signed-off-by: Magnus Damm --- Written against renesas-devel-20151217v2-v4.4-rc5 arch/arm/boot/dts/r8a7790.dtsi | 3 ++- drivers/iommu/iommu.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/arm/boot/dts/r8a7790.dtsi +++ work/arch/arm/boot/dts/r8a7790.dtsi 2015-12-17 15:38:20.890513000 +0900 @@ -886,6 +886,7 @@ <&mstp7_clks R8A7790_CLK_LVDS0>, <&mstp7_clks R8A7790_CLK_LVDS1>; clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1"; + iommus = <&ipmmu_mx 15>, <&ipmmu_mx 16>; status = "disabled"; ports { @@ -1809,7 +1810,7 @@ interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>, <0 221 IRQ_TYPE_LEVEL_HIGH>; #iommu-cells = <1>; - status = "disabled"; + status = "okay"; }; ipmmu_rt: mmu@ffc80000 { --- 0001/drivers/iommu/iommu.c +++ work/drivers/iommu/iommu.c 2015-12-17 15:38:34.880513000 +0900 @@ -15,7 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - +#define DEBUG #define pr_fmt(fmt) "iommu: " fmt #include