Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2C8F64B for ; Mon, 22 Aug 2022 04:49:20 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id w138so6616677pfc.10 for ; Sun, 21 Aug 2022 21:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc; bh=dz0eDoI9Fm2huCzymSoFjXyBRequkEKf77GU02TCpJg=; b=RsIfUWsSxHJb4qyOMDo7RSBNTBGsCvAIuCsedLI9rb8AYt+57z/oEh5/+DYmyGeZWI W+8gKvSiD4RQV+KftMAmCPAoqzc3HfD6qnT4EGbr7MaSauh/cEpQsHf3+y9m/iBhReLh hfjYadiAVocBHeck75BFwS38YukmKokJgEW6ah3V+fzlfr62gkldHInq1VH6e2meyUUo b+vy6+DSi+pr90hcoYHKfk/XHGMZO7Hb3gfilTebse2Dhu2b9S078/0bapWSprhkFzhc VESpdNvwX76tBVMUxjzx5YfKEQS3HOVn3G+D7mtZEQtO4cuquhOAschWIscA4UlYwyiU gVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc; bh=dz0eDoI9Fm2huCzymSoFjXyBRequkEKf77GU02TCpJg=; b=VUx2kkYy269OrR65OPsTKUP1HuNbgPxwluTJZ8UbZmaFv4NYvAX28FnS3VqdrPjcva L9GnTwfXx5+F9A8ylubZo/w6a8HED493FWT18kA1gM51sYlYtgkQjnfZZP8oS30UYACK OlE4BRvZqAKy85CLioN+WPbrhkFuOPHJK1ewW5zP8HyqCzeYeDooUFilLzLKRyvsrItj ocDGj8+PVD1HXx8rvLQA7KT4c/CiSKyEcKqAnzneXejQW4flz+9ba6L/IO03gdiP8wku bG2CmAC9dt/ovXpLmcezGAmkEEunJlIlJJ9YUWk5H86A9bJ0J1qBZ9XfYSHxqWRNfD2w 58eQ== X-Gm-Message-State: ACgBeo2PaX7tcnlQI50b90MNybSgkjWS3AjA1djh8RhTJDCed5bSholQ GoAwmi8/ygR9UbgbZyIMXqOUTw== X-Google-Smtp-Source: AA6agR5Pto6O2hn+/T8fBSD4xUC2PEFnt4pycOkWtUdbLvcxAEKqIzPx+I5jR5lX3nfb3zKy7kV0KQ== X-Received: by 2002:a63:2bcc:0:b0:40c:95b5:46a4 with SMTP id r195-20020a632bcc000000b0040c95b546a4mr15468612pgr.535.1661143759926; Sun, 21 Aug 2022 21:49:19 -0700 (PDT) Received: from [10.191.0.6] ([199.101.192.185]) by smtp.gmail.com with ESMTPSA id il10-20020a17090b164a00b001f21646d1a4sm14254198pjb.1.2022.08.21.21.49.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Aug 2022 21:49:19 -0700 (PDT) Subject: Re: [PATCH v11 00/13] iommu: SVA and IOPF refactoring To: Lu Baolu , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Bjorn Helgaas , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Vinod Koul Cc: Eric Auger , Liu Yi L , Jacob jun Pan , Zhangfei Gao , Zhu Tony , iommu@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220817012024.3251276-1-baolu.lu@linux.intel.com> From: Zhangfei Gao Message-ID: <890a99fe-1e9b-85bd-e4bc-b746ae17b827@linaro.org> Date: Mon, 22 Aug 2022 12:49:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20220817012024.3251276-1-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 2022/8/17 上午9:20, Lu Baolu wrote: > Hi folks, > > The former part of this series introduces the IOMMU interfaces to attach > or detach an iommu domain to/from a pasid of a device, and refactors the > exsiting IOMMU SVA implementation by assigning an SVA type of iommu > domain to a shared virtual address and replacing sva_bind/unbind iommu > ops with a set_dev_pasid domain ops. > > The latter part changes the existing I/O page fault handling framework > from only serving SVA to a generic one. Any driver or component could > handle the I/O page faults for its domain in its own way by installing > an I/O page fault handler. > > This series has been functionally tested on an x86 machine and compile > tested for all architectures. > > This series is also available on github: > [2] https://github.com/LuBaolu/intel-iommu/commits/iommu-sva-refactoring-v11 > > Please review and suggest. Tested-by: Zhangfei Gao On arm64 (Kunpeng920) with uacce. Thanks