From patchwork Thu Nov 20 01:25:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varun Sethi X-Patchwork-Id: 5345371 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AF891C11AC for ; Thu, 20 Nov 2014 01:28:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A987720176 for ; Thu, 20 Nov 2014 01:28:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6EF8820117 for ; Thu, 20 Nov 2014 01:28:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XrGVG-0005uL-VI; Thu, 20 Nov 2014 01:25:46 +0000 Received: from mail-bl2on0110.outbound.protection.outlook.com ([65.55.169.110] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XrGVD-0005ti-AQ for linux-arm-kernel@lists.infradead.org; Thu, 20 Nov 2014 01:25:44 +0000 Received: from BN3PR0301MB1219.namprd03.prod.outlook.com (25.161.207.19) by DM2PR0301MB0749.namprd03.prod.outlook.com (25.160.97.145) with Microsoft SMTP Server (TLS) id 15.1.16.15; Thu, 20 Nov 2014 01:25:19 +0000 Received: from BN3PR0301MB1219.namprd03.prod.outlook.com ([25.161.207.19]) by BN3PR0301MB1219.namprd03.prod.outlook.com ([25.161.207.19]) with mapi id 15.01.0016.006; Thu, 20 Nov 2014 01:25:19 +0000 From: Varun Sethi To: Stuart Yoder , Will Deacon Subject: RE: 48-bit VA support in the SMMU Thread-Topic: 48-bit VA support in the SMMU Thread-Index: AdAEULJ451MKUpo7RZGE2Amg27h4xgADwgHA Date: Thu, 20 Nov 2014 01:25:18 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.88.169.1] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0749; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0749; x-forefront-prvs: 0401647B7F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(199003)(164054003)(189002)(13464003)(120916001)(2656002)(31966008)(122556002)(54356999)(76176999)(87936001)(76576001)(66066001)(21056001)(50986999)(99396003)(92566001)(19580395003)(19580405001)(74316001)(86362001)(108616004)(97736003)(95666004)(99286002)(77096003)(62966003)(77156002)(4396001)(40100003)(101416001)(107046002)(20776003)(105586002)(106356001)(33646002)(64706001)(46102003)(24736002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0749; H:BN3PR0301MB1219.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141119_172543_632614_D45A27A1 X-CRM114-Status: GOOD ( 12.64 ) X-Spam-Score: -0.0 (/) Cc: Christoffer Dall , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Hi Will, What specific tweaks are required in the arm-smmu driver? I thought that the upstream arm-smmu (3.18-rc3) driver does support 48 bit input address (depended on the ARM64 kernel 48 bit support). Isn't this dependent on the VA_BITS? Regards Varun -----Original Message----- From: Yoder Stuart-B08248 Sent: Thursday, November 20, 2014 5:00 AM To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org; Sethi Varun-B16395; Christoffer Dall Subject: 48-bit VA support in the SMMU Hi Will, Regarding 48-bit support at the SMMU, this patch is currently in the kernel: commit 04f905a9569ca2b6964a35563f135fabbb2470bc Author: Christoffer Dall Date: Fri Oct 10 11:14:30 2014 +0100 arm64: Allow 48-bits VA space without ARM_SMMU Now when KVM has been reworked to support 48-bits host VA space, we can allow systems to be configured with this option. However, the ARM SMMU driver also needs to be tweaked for 48-bit support so only allow the config option to be set when not including support for theSMMU. Signed-off-by: Christoffer Dall Signed-off-by: Catalin Marinas Do you know the status of any work to remove this limitation? Thanks, Stuart diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index ac9afde..b8053be 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -232,7 +232,7 @@ config ARM64_VA_BITS_42 config ARM64_VA_BITS_48 bool "48-bit" - depends on BROKEN + depends on !ARM_SMMU endchoice