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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 DD4E8C433B4 for ; Tue, 18 May 2021 06:49:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2D52610A2 for ; Tue, 18 May 2021 06:49:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236900AbhERGuV (ORCPT ); Tue, 18 May 2021 02:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242314AbhERGuT (ORCPT ); Tue, 18 May 2021 02:50:19 -0400 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC2CC061756 for ; Mon, 17 May 2021 23:49:01 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id a7so131426qvf.11 for ; Mon, 17 May 2021 23:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=lsEhaG1g8S0jLWNFCm1cUYMM2UK4T1PPj5QSymnFj9OKDG0vaXlXAVHd8TxDDsWs9g 6JT1UUjfVca/qACMB2pdJfY1vwfEc4l8MNn5zC/rO3u1lvd9FdCG6h8bThigt5LdAK8q /nbDF4B1wMjBK6llFZMW/GewOA4RaEjNb3EXoEa71P+1wRymVezHs7Esc1siaDTEkIiH Wb9/Xju83/QMETWSM7NUc8sFLOeozLJCKsmoioY1RH40nfTJqdIGTtCap6M8Z63EtRsT U/oejdKqz8ETmklvCV6v6d73o2vevFMaT9B2maTQQzTxlzEhiKPIUVQiQDGCmE8NkKfD OHUg== X-Gm-Message-State: AOAM533e+sWm9u3t7SRBlK4B0Tfz7UYLPZv1zgNRgdfmUbib/Tacrwkp rhniPJlanxltSjj/WOKlA3HRrOl+DY+rLA== X-Google-Smtp-Source: ABdhPJzuZKSS3Ikmi+aFjmjmedMGiO5jzKxWYCy9Q0gQnEimE3SzWwb7+bKLCO2ZgaTMhvPcWcSdwQ== X-Received: by 2002:ad4:4c45:: with SMTP id cs5mr4065686qvb.6.1621320539946; Mon, 17 May 2021 23:48:59 -0700 (PDT) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com. [209.85.222.175]) by smtp.gmail.com with ESMTPSA id s5sm12381512qkg.88.2021.05.17.23.48.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:48:59 -0700 (PDT) Received: by mail-qk1-f175.google.com with SMTP id x8so8349477qkl.2 for ; Mon, 17 May 2021 23:48:58 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Cc: benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS" , sstabellini@kernel.org, Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , "Rafael J . Wysocki" , heikki.krogerus@linux.intel.com, Andy Shevchenko , Randy Dunlap , Dan Williams , Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, Nicolas Boichat , Jim Quinlan , Tomasz Figa , bskeggs@redhat.com, Bjorn Helgaas , chris@chris-wilson.co.uk, Daniel Vetter , airlied@linux.ie, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, Jianxiong Gao , joonas.lahtinen@linux.intel.com, linux-pci@vger.kernel.org, maarten.lankhorst@linux.intel.com, matthew.auld@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming? 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 057D1C433B4 for ; Tue, 18 May 2021 06:50:32 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 9FEEB610A2 for ; Tue, 18 May 2021 06:50:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FEEB610A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Fkmpt301Hz3cNB for ; Tue, 18 May 2021 16:50:30 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=LETfA+HN; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=chromium.org (client-ip=2607:f8b0:4864:20::d2f; helo=mail-io1-xd2f.google.com; envelope-from=tientzu@chromium.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=LETfA+HN; dkim-atps=neutral Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FkmnC5Yc7z3cFP for ; Tue, 18 May 2021 16:49:02 +1000 (AEST) Received: by mail-io1-xd2f.google.com with SMTP id a8so269322ioa.12 for ; Mon, 17 May 2021 23:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=CuGvxUlYfcoGMBZJgJxpNCdC1S/ZDhOs8p5bTlu+Zcdls4vGqM3+QHJ5EypVuCueDo tMv+GDn5CiHhwS8Iy/9bjym75mnS08y+jDmwXLyI289riO/0mQKu3HlcmGQw8SkplkS2 IQc311o0hwmJA7xHEHB1wyTuUHlFRfnLKbNynciWp4Zja0gPFoyX0d5H3ViQ91UjXNeX pPMJWv1w+3lLT6SlMjxpEZW35joC6VlYxXfGAOEKnPyqNTYn/HxNAMQ5cWsNx5PbNahr MRY09lMGBxBo9QrbNW37b/kyHw7LOpJMCt5bXkagVCWCGxrg0Z1JpEMAScrTwYkH704b Gimg== X-Gm-Message-State: AOAM531EhkMpvpT4vEKmOcAQQPCcFw077zw7C/gVLUZ+1kAITzlckUpx B54FWl9vw9NPJVjDj0jn8fc/VpCBP3EbHw== X-Google-Smtp-Source: ABdhPJz/fCAjQ8JICdoDoFhgGY6mG5RJNk0c9wUnB7iOE2ecA92VVijaDbBPBPUOaHkVbcKtqntsGQ== X-Received: by 2002:a05:6638:3290:: with SMTP id f16mr3987485jav.49.1621320539057; Mon, 17 May 2021 23:48:59 -0700 (PDT) Received: from mail-io1-f53.google.com (mail-io1-f53.google.com. [209.85.166.53]) by smtp.gmail.com with ESMTPSA id c6sm8650865ile.43.2021.05.17.23.48.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:48:58 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id d11so8364194iod.5 for ; Mon, 17 May 2021 23:48:57 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heikki.krogerus@linux.intel.com, thomas.hellstrom@linux.intel.com, peterz@infradead.org, joonas.lahtinen@linux.intel.com, dri-devel@lists.freedesktop.org, chris@chris-wilson.co.uk, grant.likely@arm.com, paulus@samba.org, mingo@kernel.org, Jianxiong Gao , sstabellini@kernel.org, Saravana Kannan , xypron.glpk@gmx.de, "Rafael J . Wysocki" , Bartosz Golaszewski , bskeggs@redhat.com, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, Thierry Reding , intel-gfx@lists.freedesktop.org, matthew.auld@intel.com, linux-devicetree , Daniel Vetter , airlied@linux.ie, maarten.lankhorst@linux.intel.com, linuxppc-dev@lists.ozlabs.org, jani.nikula@linux.intel.com, Nicolas Boichat , rodrigo.vivi@intel.com, Bjorn Helgaas , Dan Williams , Andy Shevchenko , Greg KH , Randy Dunlap , lkml , Tomasz Figa , "list@263.net:IOMMU DRIVERS" , Jim Quinlan , Robin Murphy , bauerman@linux.ibm.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming? 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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_RED 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 E9F29C433B4 for ; Tue, 18 May 2021 06:53:58 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 84567611BD for ; Tue, 18 May 2021 06:53:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84567611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 563FA40376; Tue, 18 May 2021 06:53:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YxR_YrD88yp5; Tue, 18 May 2021 06:53:57 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTP id 56932403AB; Tue, 18 May 2021 06:53:57 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 34A04C000E; Tue, 18 May 2021 06:53:57 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 63830C0001 for ; Tue, 18 May 2021 06:53:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 79B87400BE for ; Tue, 18 May 2021 06:53:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1FQKQhcoI_mJ for ; Tue, 18 May 2021 06:53:55 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by smtp2.osuosl.org (Postfix) with ESMTPS id D156140246 for ; Tue, 18 May 2021 06:53:54 +0000 (UTC) Received: by mail-qv1-xf35.google.com with SMTP id ez19so4451910qvb.3 for ; Mon, 17 May 2021 23:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=NRZGe+qGlcmSTgJqFUlGbVo0VJd03pgmIaoTgIbkK/J8o67n+mGb80HSj1j1bGEBm2 ScdX5+mb94dOhC2FU4dqU8+UO51Dy/iNiaAVrZsXihYrfdei/Vs12C5PDLb3XL/0wjcI MtRpSRu6HI6se5rorpunkFPR6rBOGLvRJPNDYJ3wnOeRnVsaTSMH0ypvLb+O8yx3SryV Kb5JlGh/1t7UpHKG67YL+a2hdFPOYAR+nA2cCXNwqW0Lpxzv4MyNO3dYfWzGXWsbu8i9 7SIhQuYpajEkVdjQu2gcyr/yu+nEHw370Z8XV9MOrtQEjYQYgVtLy/jtpg0bIh53uABw fIgw== X-Gm-Message-State: AOAM530KWBK9Jy4+nuVyNjOcEZwjLhLc1P+fQfs7iG1xD7TiYv9acPFC P6ltS80R7q+eFmgeyJr0Cy4eeh90mMAl8Q== X-Google-Smtp-Source: ABdhPJxsYNMJxDuPtnkbPrW4V6gWrQUnhZiEIOb8C084rhgWIr5Wf6H41gT5vV95kEPfN3tlEju8yA== X-Received: by 2002:ad4:420b:: with SMTP id k11mr4154100qvp.18.1621320833566; Mon, 17 May 2021 23:53:53 -0700 (PDT) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com. [209.85.160.171]) by smtp.gmail.com with ESMTPSA id g64sm12286360qkf.41.2021.05.17.23.53.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:53:53 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id c10so6716629qtx.10 for ; Mon, 17 May 2021 23:53:53 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Cc: heikki.krogerus@linux.intel.com, thomas.hellstrom@linux.intel.com, peterz@infradead.org, benh@kernel.crashing.org, joonas.lahtinen@linux.intel.com, dri-devel@lists.freedesktop.org, chris@chris-wilson.co.uk, grant.likely@arm.com, paulus@samba.org, mingo@kernel.org, Jianxiong Gao , sstabellini@kernel.org, Saravana Kannan , xypron.glpk@gmx.de, "Rafael J . Wysocki" , Bartosz Golaszewski , bskeggs@redhat.com, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, Thierry Reding , intel-gfx@lists.freedesktop.org, matthew.auld@intel.com, linux-devicetree , Daniel Vetter , airlied@linux.ie, maarten.lankhorst@linux.intel.com, linuxppc-dev@lists.ozlabs.org, jani.nikula@linux.intel.com, Nicolas Boichat , rodrigo.vivi@intel.com, Bjorn Helgaas , Dan Williams , Andy Shevchenko , Greg KH , Randy Dunlap , lkml , "list@263.net:IOMMU DRIVERS" , Jim Quinlan , Robin Murphy , bauerman@linux.ibm.com X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming? _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 E3CE8C43461 for ; Tue, 18 May 2021 06:49:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 A8733610A2 for ; Tue, 18 May 2021 06:49:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8733610A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E83816EAA3; Tue, 18 May 2021 06:49:00 +0000 (UTC) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 06DC86EAA3 for ; Tue, 18 May 2021 06:48:59 +0000 (UTC) Received: by mail-io1-xd2d.google.com with SMTP id p8so8332727iol.11 for ; Mon, 17 May 2021 23:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=Pmm9+fQYZLpBxkeNeDaIqallGjiE5UaKVjj2pZrCGyTIBPLb1g9UIFdd3whaK+gK6p m2Xe9EYgmAWyotT5TV4dhLB8ejItIip5uMDgAR8m70xMe/2OsEv2sBxPxh+gwgd3GV/9 XqlQKHjxTMb7VGbpxeN5KAGdU6p+SUnT//fsG7SS4noNfe1tLfdP0buBiaJtd8XeO086 fIppSKgcR1CAZA4pAzGMzZkZvKIdzlg0X/C+zsSw7HCukaZkurhETCzN9WLBgOE57RAT 5Y1MJQbgUSn+0N2LS6YOilQ2PVZda1yWUDNU230Fn9rTh+9rbjgFdqX4Ngh7yROHzZSa 947w== X-Gm-Message-State: AOAM531B4rTOkpQZ3otRZirK6bQhsdSEr6WpAlgauFBGqT1LvqDeikKc GgpUMchNaZF8Q4A9kDog2ni7VXUlLuDSWQ== X-Google-Smtp-Source: ABdhPJzw0I+FlzyvxpXLfH7WaJLmFNrlQkGrkfujczYZJ1FrTuSQHRYhxASNLECyNiMRr3ci8bPxfQ== X-Received: by 2002:a05:6602:21ca:: with SMTP id c10mr3132038ioc.10.1621320539193; Mon, 17 May 2021 23:48:59 -0700 (PDT) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com. [209.85.166.42]) by smtp.gmail.com with ESMTPSA id t3sm8694979ioi.25.2021.05.17.23.48.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:48:58 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id d11so8364197iod.5 for ; Mon, 17 May 2021 23:48:57 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heikki.krogerus@linux.intel.com, thomas.hellstrom@linux.intel.com, peterz@infradead.org, dri-devel@lists.freedesktop.org, chris@chris-wilson.co.uk, grant.likely@arm.com, paulus@samba.org, mingo@kernel.org, Jianxiong Gao , sstabellini@kernel.org, Saravana Kannan , xypron.glpk@gmx.de, "Rafael J . Wysocki" , Bartosz Golaszewski , bskeggs@redhat.com, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, Thierry Reding , intel-gfx@lists.freedesktop.org, matthew.auld@intel.com, linux-devicetree , airlied@linux.ie, Robin Murphy , Nicolas Boichat , rodrigo.vivi@intel.com, Bjorn Helgaas , Dan Williams , Andy Shevchenko , Greg KH , Randy Dunlap , lkml , Tomasz Figa , "list@263.net:IOMMU DRIVERS" , Jim Quinlan , linuxppc-dev@lists.ozlabs.org, bauerman@linux.ibm.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming? 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 00487C433B4 for ; Tue, 18 May 2021 06:57:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 ACF7A611BD for ; Tue, 18 May 2021 06:57:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACF7A611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C95D6EAA7; Tue, 18 May 2021 06:57:01 +0000 (UTC) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 081E76EAA7 for ; Tue, 18 May 2021 06:56:59 +0000 (UTC) Received: by mail-qv1-xf2c.google.com with SMTP id o59so4464726qva.1 for ; Mon, 17 May 2021 23:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=rwtfWcuhVbHevta6yqdU+7CRWK2fpeDh9BJDFHjntUhES/H3iDqiFrJLPNfnBfZ4Am lYlBSLpZAkEH8kFT+jZZK9RwtC2Up8JP9Y626ghfcFgLmGKGvltxeF3N+9wHgNxIRKUD YEVnC9poMjVHNTCPB2ujSoz066aCJq5+oR2terrRdAreUIHPNdPZdX65QpGKoBYALEka PJKRd1Zlj6czd6DSmUS6e+L2fmzNB8/OfKeQ8KzCCHKWLmC+9H2Swz58nJO7ohhCj1zY U9ZWNfc08owksSmFSSIAohmPxiFGqK6oUmSyj3IpUZBcQBxgAQ632QtT0DRJYgY5XN/h A5xA== X-Gm-Message-State: AOAM533pZU50fdlZzc78ctNtrxXYx57trZfOYr2rU5u8pDz6tMgPM07b fWjAQLMUmgAM47XbNPVRVVpl031Qn9oulw== X-Google-Smtp-Source: ABdhPJzveZGbqAVc1s1ODw5Ei7fSU5dawFSCH5aIOYkhm1WI1cjgXBG7+ckz9/g4iDnaYWyuXzI3ng== X-Received: by 2002:a05:6214:c6c:: with SMTP id t12mr4077895qvj.34.1621321018043; Mon, 17 May 2021 23:56:58 -0700 (PDT) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com. [209.85.222.180]) by smtp.gmail.com with ESMTPSA id g15sm12116879qka.49.2021.05.17.23.56.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:56:57 -0700 (PDT) Received: by mail-qk1-f180.google.com with SMTP id l129so8315385qke.8 for ; Mon, 17 May 2021 23:56:57 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Subject: Re: [Intel-gfx] [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heikki.krogerus@linux.intel.com, thomas.hellstrom@linux.intel.com, peterz@infradead.org, benh@kernel.crashing.org, dri-devel@lists.freedesktop.org, chris@chris-wilson.co.uk, grant.likely@arm.com, paulus@samba.org, mingo@kernel.org, Jianxiong Gao , sstabellini@kernel.org, Saravana Kannan , xypron.glpk@gmx.de, "Rafael J . Wysocki" , Bartosz Golaszewski , bskeggs@redhat.com, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org, Thierry Reding , intel-gfx@lists.freedesktop.org, matthew.auld@intel.com, linux-devicetree , airlied@linux.ie, Robin Murphy , Nicolas Boichat , Bjorn Helgaas , Dan Williams , Andy Shevchenko , Greg KH , Randy Dunlap , lkml , Tomasz Figa , "list@263.net:IOMMU DRIVERS" , Jim Quinlan , linuxppc-dev@lists.ozlabs.org, bauerman@linux.ibm.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming? _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx 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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 62534C433ED for ; Tue, 18 May 2021 06:49:12 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 1C068611BD for ; Tue, 18 May 2021 06:49:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C068611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.128824.241800 (Exim 4.92) (envelope-from ) id 1litXJ-00034J-GX; Tue, 18 May 2021 06:49:01 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 128824.241800; Tue, 18 May 2021 06:49:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1litXJ-00034C-DV; Tue, 18 May 2021 06:49:01 +0000 Received: by outflank-mailman (input) for mailman id 128824; Tue, 18 May 2021 06:49:00 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1litXI-000344-5l for xen-devel@lists.xenproject.org; Tue, 18 May 2021 06:49:00 +0000 Received: from mail-il1-x136.google.com (unknown [2607:f8b0:4864:20::136]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c6374ad9-b12a-43f1-8c36-1fd7a2b53ba1; Tue, 18 May 2021 06:48:59 +0000 (UTC) Received: by mail-il1-x136.google.com with SMTP id z1so8275420ils.0 for ; Mon, 17 May 2021 23:48:59 -0700 (PDT) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com. [209.85.166.49]) by smtp.gmail.com with ESMTPSA id d5sm10097421ilf.55.2021.05.17.23.48.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 23:48:58 -0700 (PDT) Received: by mail-io1-f49.google.com with SMTP id k16so8345400ios.10 for ; Mon, 17 May 2021 23:48:57 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c6374ad9-b12a-43f1-8c36-1fd7a2b53ba1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=LETfA+HNnfbbscLemZLHMHTU1ucDVUTbar59Z+Ip1n1aOSxU2vCiyi6AnzZ7ISe1Ci d5+6nDZp7u09C4wccj2HMQoLbhxVgGmyilxSsMMqy6XnJ9Gh0XN/+XAYDZzV88am1gOT FB7ehF0SoAEZFAQ80iPByl3CmJPeIGWiXIdbM= 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=3HopsH6N9F8FpkG4FSoTMtRMwuiSWSuF3ZB9X+VJCjU=; b=NBYGZBhezN0Lk/PmwG7rkzQ/1AzKylacmKphA1ml8ElZxez/LDgT68HagyLcQjw/qR 177yY1ngHzS+WIscYgbH+1a0LgRrQMplc1yZx+fSfsCwb3kOQVyFly6QiweRRuLI23pg SQXLgVTsrKo9a5hM9UsLxAjI6bqcCZjVfAJ5e2pPbmteIAcwyU9FQep4rRfGmlAHcymo KfJ3RQj23/XMHD5bFxtKGeT+kXpvtK6fbymBffY9EjfIobjEN6iTbvmp8EBhgFI+TbE9 Xa1Jxmlh9GYYjfnI+4ntrZRWAw9bbYy9qUDD10GWuXmPtyYEPX7mzsIe+AEzNJn43qSA 7HCQ== X-Gm-Message-State: AOAM532TEMGJ3gXsWLp66c6bHwWsG8U+HVwdMZUZb7jUV7g+XIFFbTJJ lCGB+iGs1gAmI92UZktXgXojSacJlype2w== X-Google-Smtp-Source: ABdhPJwhBO3KSW0EFRoDWRJTzhgsHA7JeKRlSuNNrCD9NbBU8x11PvPhCDM4mOvgurfC0J/tHIMe9A== X-Received: by 2002:a05:6e02:1d15:: with SMTP id i21mr3072489ila.2.1621320538962; Mon, 17 May 2021 23:48:58 -0700 (PDT) X-Received: by 2002:a05:6638:32a8:: with SMTP id f40mr3969029jav.84.1621320526895; Mon, 17 May 2021 23:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: <20210518064215.2856977-5-tientzu@chromium.org> From: Claire Chang Date: Tue, 18 May 2021 14:48:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski Cc: benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS" , sstabellini@kernel.org, Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , "Rafael J . Wysocki" , heikki.krogerus@linux.intel.com, Andy Shevchenko , Randy Dunlap , Dan Williams , Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, Nicolas Boichat , Jim Quinlan , Tomasz Figa , bskeggs@redhat.com, Bjorn Helgaas , chris@chris-wilson.co.uk, Daniel Vetter , airlied@linux.ie, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, Jianxiong Gao , joonas.lahtinen@linux.intel.com, linux-pci@vger.kernel.org, maarten.lankhorst@linux.intel.com, matthew.auld@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com Content-Type: text/plain; charset="UTF-8" I didn't move this to a separate file because I feel it might be confusing for swiotlb_alloc/free (and need more functions to be non-static). Maybe instead of moving to a separate file, we can try to come up with a better naming?