Message ID | decb25f05ca84d439e071f6ad8cf0086@BN3PR0301MB1219.namprd03.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Nov 20, 2014 at 01:25:18AM +0000, Varun Sethi wrote: > 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? Yeah, but it won't work for stage-2 mappings. I'm currently rewriting the page table code to allow this (see my iommu/pgtbl branch). Will
Thanks Will. But still, if things work for the stage 1 case why disable 48 bit support for the SMMU driver. Wouldn't stage-2 be relevant in case of virtual SMMU? Regards Varun -----Original Message----- From: Will Deacon [mailto:will.deacon@arm.com] Sent: Thursday, November 20, 2014 3:38 PM To: Sethi Varun-B16395 Cc: Yoder Stuart-B08248; linux-arm-kernel@lists.infradead.org; Christoffer Dall Subject: Re: 48-bit VA support in the SMMU On Thu, Nov 20, 2014 at 01:25:18AM +0000, Varun Sethi wrote: > 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? Yeah, but it won't work for stage-2 mappings. I'm currently rewriting the page table code to allow this (see my iommu/pgtbl branch). Will
On Thu, Nov 20, 2014 at 01:05:51PM +0000, Varun Sethi wrote: > Thanks Will. But still, if things work for the stage 1 case why disable 48 > bit support for the SMMU driver. Wouldn't stage-2 be relevant in case of > virtual SMMU? Well, VFIO installs at stage-2 and the host kernel needs to be able to handle that. The virtual SMMU interface always installs at stage-1. Will
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