From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E273DC433E1 for ; Tue, 28 Jul 2020 13:02:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B336B20663 for ; Tue, 28 Jul 2020 13:02:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PTUkBMxs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B336B20663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TU4tlYR7xmV9byLNFt/ZIN4xgomt1uPs9idpngMsWOo=; b=PTUkBMxsXjnYNb3JEcsbRVSAU 1UxVK30dffAU7RiUe2HdkBBhBHCcqQWaSuv1EFVgO3cx/ioIOrE9ahqqQNLbtt2gTnig34uyEq6R9 Gx+RetUi4bb7xiMjbjOabJv/jeFEbvGe7p9BUEQt7mhkDp/s+p5S2+M4kpSIRBpDZKktBXWf+OLx8 1q14sFlNCFafWMYVHu0SLF8m2wzGZY1noZ3oo6T4WlRmiYrImoCxZNSdlOConmcL1JTvEE5XtRXes 3Y+1CkeL/NO3lixV2V4MjioaW+uMcqJ0MeaI0pYdneSWHZ6r1ubZjAI32V/gGkW9hsavExHGSGEav /nYzZvpmg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0PDo-000306-6O; Tue, 28 Jul 2020 13:00:44 +0000 Received: from mail-ot1-f68.google.com ([209.85.210.68]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0PDl-0002ya-Od for linux-arm-kernel@lists.infradead.org; Tue, 28 Jul 2020 13:00:42 +0000 Received: by mail-ot1-f68.google.com with SMTP id v21so7523358otj.9 for ; Tue, 28 Jul 2020 06:00:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gQxWRGpK+7J5zPyI+x2auaL/xO1F0G6D2eChmPkLka4=; b=JFjKP9Dl6AG+kibi4byMxg9++sLyXTEsmlNxBneFFwYBI8vCgXMue5UGRzTYzafPnW l7TIWI1wlc30VWkMJmvKB+La9UoTIUiTJRtuOlv9bMb+QMoRL4PGIjA25n2CJcCBgyZT Zj+PfcRWatrPPMTLFKE/fQe7dnrTJ8tVYYfqx068dejF/AnS1ut1SdoSDZbOTSCE8LT3 cq7gaHLbfj4KrsRvraNs6d1TUqNGM2KJ8KYd+UMYLzIlNjgSQN+qiXltmP7kEqpqkWDb BQe8vMyZRnOSeIPg5IcM2P9r1dmdguUqu0qBPoNg8GjKi0nYGPUsS5E5kONr8sMN1ziM 8oVw== X-Gm-Message-State: AOAM531A5R1npOmSc3M2Uu8/tZBaKKV6RNyJSJIcuPoOXp+C+i5Wk6e4 w1VUoGldq3Z5d0Enc3I3XJtxKQKAiPp4Xf0r0wQ= X-Google-Smtp-Source: ABdhPJyjkPbmbdSrKoRnxAHeoGfwpBzGL7q9+aCpuvVIqlYJ3d/ztRYP2FQgQ2jADdtZcBOiq9wpwzTBFyKVN4fiMIs= X-Received: by 2002:a9d:590a:: with SMTP id t10mr24293860oth.262.1595941239566; Tue, 28 Jul 2020 06:00:39 -0700 (PDT) MIME-Version: 1.0 References: <20200521130008.8266-1-lorenzo.pieralisi@arm.com> <20200619082013.13661-1-lorenzo.pieralisi@arm.com> <20200619082013.13661-6-lorenzo.pieralisi@arm.com> <20200709093514.GC18149@e121166-lin.cambridge.arm.com> <20200715091326.GA30074@e121166-lin.cambridge.arm.com> <20200728124835.GA14596@e121166-lin.cambridge.arm.com> In-Reply-To: <20200728124835.GA14596@e121166-lin.cambridge.arm.com> From: "Rafael J. Wysocki" Date: Tue, 28 Jul 2020 15:00:28 +0200 Message-ID: Subject: Re: [PATCH v2 05/12] ACPI/IORT: Add an input ID to acpi_dma_configure() To: Lorenzo Pieralisi X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200728_090041_817964_7F4BEEB9 X-CRM114-Status: GOOD ( 29.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Marc Zyngier , Makarand Pawagi , Linux PCI , Catalin Marinas , Joerg Roedel , Hanjun Guo , "Rafael J. Wysocki" , Robin Murphy , ACPI Devel Maling List , "open list:AMD IOMMU \(AMD-VI\)" , Rob Herring , Sudeep Holla , Bjorn Helgaas , Diana Craciun , Will Deacon , Linux ARM , Laurentiu Tudor Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 28, 2020 at 2:48 PM Lorenzo Pieralisi wrote: > > On Wed, Jul 15, 2020 at 10:13:26AM +0100, Lorenzo Pieralisi wrote: > > On Thu, Jul 09, 2020 at 10:35:14AM +0100, Lorenzo Pieralisi wrote: > > > On Fri, Jun 19, 2020 at 09:20:06AM +0100, Lorenzo Pieralisi wrote: > > > > Some HW devices are created as child devices of proprietary busses, > > > > that have a bus specific policy defining how the child devices > > > > wires representing the devices ID are translated into IOMMU and > > > > IRQ controllers device IDs. > > > > > > > > Current IORT code provides translations for: > > > > > > > > - PCI devices, where the device ID is well identified at bus level > > > > as the requester ID (RID) > > > > - Platform devices that are endpoint devices where the device ID is > > > > retrieved from the ACPI object IORT mappings (Named components single > > > > mappings). A platform device is represented in IORT as a named > > > > component node > > > > > > > > For devices that are child devices of proprietary busses the IORT > > > > firmware represents the bus node as a named component node in IORT > > > > and it is up to that named component node to define in/out bus > > > > specific ID translations for the bus child devices that are > > > > allocated and created in a bus specific manner. > > > > > > > > In order to make IORT ID translations available for proprietary > > > > bus child devices, the current ACPI (and IORT) code must be > > > > augmented to provide an additional ID parameter to acpi_dma_configure() > > > > representing the child devices input ID. This ID is bus specific > > > > and it is retrieved in bus specific code. > > > > > > > > By adding an ID parameter to acpi_dma_configure(), the IORT > > > > code can map the child device ID to an IOMMU stream ID through > > > > the IORT named component representing the bus in/out ID mappings. > > > > > > > > Signed-off-by: Lorenzo Pieralisi > > > > Cc: Will Deacon > > > > Cc: Hanjun Guo > > > > Cc: Sudeep Holla > > > > Cc: Catalin Marinas > > > > Cc: Robin Murphy > > > > Cc: "Rafael J. Wysocki" > > > > --- > > > > drivers/acpi/arm64/iort.c | 59 +++++++++++++++++++++++++++++---------- > > > > drivers/acpi/scan.c | 8 ++++-- > > > > include/acpi/acpi_bus.h | 9 ++++-- > > > > include/linux/acpi.h | 7 +++++ > > > > include/linux/acpi_iort.h | 7 +++-- > > > > 5 files changed, 67 insertions(+), 23 deletions(-) > > > > > > Hi Rafael, > > > > > > just to ask if the ACPI core changes in this patch are OK with you, > > > thank you very much. Sorry for the delay, I was offline last week. > > Hi Rafael, > > > > are you OK with ACPI core changes in this patch ? Yes, I am. Please feel free to route it through whatever tree you think would be appropriate. Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel