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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 B52ACC2B9F7 for ; Wed, 26 May 2021 10:05:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 961A1613C9 for ; Wed, 26 May 2021 10:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233621AbhEZKG6 (ORCPT ); Wed, 26 May 2021 06:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233264AbhEZKG5 (ORCPT ); Wed, 26 May 2021 06:06:57 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 928EDC061574 for ; Wed, 26 May 2021 03:05:26 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id t15so634703edr.11 for ; Wed, 26 May 2021 03:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wN1QhgZSLh/Q1cWPqcMwfOkLFO+D9Okqk24H5LLAjws=; b=nPXeq6WiNxgg6lSxeUnm2xUIASnDhmktguH8A6hssAjEktOyNSvFrXb7nk9Jwtb+NO yFRlCwYbpgu1I3XfvONpplYhusGl1LZzYH8skxO3FMlur4Ub99+Y+fFTNkOsTrN5w38z OVf9eYTP/FPPU3gd8SPWnmbwhEmLy2lOF0pC3GW4VrVUrahiv7yYM6zET6w7Z3my6L0S cHNhcGsinerK+PASVPV7OHMOudUBIlgvybDpP7ziWJzNizZCFYD1ZSZ3if2EX1bSR+BK ZxzluxhQR+3Vc6n46FiKg0ibO/Yga0tgQunYLwLIIwStAZJn5nD7INiwGK+RxyPP0Qb4 pUgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wN1QhgZSLh/Q1cWPqcMwfOkLFO+D9Okqk24H5LLAjws=; b=Ibruxtwk+n61/xpQlUiYDu6B/8uLC0z+uRiL2v8WBrERR1u7gG47kSgqNqBWmEjWAp qtNYVLcS5PWcd9tsoSHuxtQNGudFK5rebIuJF+SbocN3iPRQRYFdgt8ARL+X/5Ir23r5 jkpgua0wYOc7mQg5oRxLYyUJJ8OstAQfmEX+YV1w1f6ypc5EbtWLlvPRqRKI9g+2yrPN GprdtnyWRJxguElxqqTNLznhYBJTzPToALwC99cQT7NuYLKz7f3Fopmp4be1x3JNsiEZ bAi1ofy9r/mBOnFHamMRuQuReWp9uIihTYVhtGmRjZjuiBK9HK92ua+hO0XckzR8FIKr hqcQ== X-Gm-Message-State: AOAM531NYOXoOBAOtBTuGO+/Cr/LQHqjcK3ZAhc+vqPayYyaBCDd04+6 Ah59TNtJ1q+NrCUNSEgWRSfGTg== X-Google-Smtp-Source: ABdhPJwLqgT0dI13/qQ6yT3UWt2a30pzQv780qX8pFwjZ6m2oIQpbMs47aFTz509ycnSHGVFoSWOMw== X-Received: by 2002:a50:bf0f:: with SMTP id f15mr34885274edk.205.1622023525169; Wed, 26 May 2021 03:05:25 -0700 (PDT) Received: from myrica (adsl-84-226-106-126.adslplus.ch. [84.226.106.126]) by smtp.gmail.com with ESMTPSA id k22sm10054730ejz.108.2021.05.26.03.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 03:05:24 -0700 (PDT) Date: Wed, 26 May 2021 12:05:06 +0200 From: Jean-Philippe Brucker To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Len Brown , Joerg Roedel , "Michael S. Tsirkin" , Will Deacon , Catalin Marinas , Lu Baolu , David Woodhouse , ACPI Devel Maling List , "open list:AMD IOMMU (AMD-VI)" , virtualization@lists.linux-foundation.org, Linux ARM , Eric Auger , sebastien.boeuf@intel.com, Robin Murphy , kevin.tian@intel.com, Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla Subject: Re: [PATCH v2 2/6] ACPI: Move IOMMU setup code out of IORT Message-ID: References: <20210423113836.3974972-1-jean-philippe@linaro.org> <20210423113836.3974972-3-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Fri, May 21, 2021 at 06:42:09PM +0200, Rafael J. Wysocki wrote: > On Fri, Apr 23, 2021 at 1:57 PM Jean-Philippe Brucker > wrote: > > > > Some of the IOMMU setup code in IORT is fairly generic and can be reused > > by VIOT. Extract it from IORT. > > Except that iort_iommu_configure_id() is not really generic AFAICS. I'll clarify the commit message: the parts of iort_iommu_configure_id() that set up the IOMMU infrastructure can be extracted and reused by VIOT. The rest of the function, that iterates over the IORT subtables, is specific to the driver. Thanks, Jean