Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754273AbcKPA4k (ORCPT ); Tue, 15 Nov 2016 19:56:40 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:34808 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754082AbcKPA4h (ORCPT ); Tue, 15 Nov 2016 19:56:37 -0500 MIME-Version: 1.0 In-Reply-To: <20161109141948.19244-17-lorenzo.pieralisi@arm.com> References: <20161109141948.19244-1-lorenzo.pieralisi@arm.com> <20161109141948.19244-17-lorenzo.pieralisi@arm.com> From: "Rafael J. Wysocki" Date: Wed, 16 Nov 2016 01:56:35 +0100 X-Google-Sender-Auth: 9TncThhkL8eAMNyFKFZDnY9z34E Message-ID: Subject: Re: [PATCH v7 16/16] drivers: acpi: iort: introduce iort_iommu_configure To: Lorenzo Pieralisi Cc: "open list:AMD IOMMU (AMD-VI)" , Hanjun Guo , Tomasz Nowicki , "Rafael J. Wysocki" , Will Deacon , Marc Zyngier , Robin Murphy , Joerg Roedel , Jon Masters , Eric Auger , Sinan Kaya , Nate Watterson , Prem Mallappa , Dennis Chen , ACPI Devel Maling List , Linux PCI , Linux Kernel Mailing List , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 25 On Wed, Nov 9, 2016 at 3:19 PM, Lorenzo Pieralisi wrote: > DT based systems have a generic kernel API to configure IOMMUs > for devices (ie of_iommu_configure()). > > On ARM based ACPI systems, the of_iommu_configure() equivalent can > be implemented atop ACPI IORT kernel API, with the corresponding > functions to map device identifiers to IOMMUs and retrieve the > corresponding IOMMU operations necessary for DMA operations set-up. > > By relying on the iommu_fwspec generic kernel infrastructure, > implement the IORT based IOMMU configuration for ARM ACPI systems > and hook it up in the ACPI kernel layer that implements DMA > configuration for a device. > > Signed-off-by: Lorenzo Pieralisi > Tested-by: Hanjun Guo > Tested-by: Tomasz Nowicki > Cc: Hanjun Guo > Cc: Tomasz Nowicki > Cc: "Rafael J. Wysocki" For the ACPI core part: Acked-by: Rafael J. Wysocki