From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 04BB92E627 for ; Wed, 25 Oct 2023 15:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="BxnfYtrD" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5840fe01176so3531486eaf.1 for ; Wed, 25 Oct 2023 08:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1698249514; x=1698854314; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=BxnfYtrDJt72LZuOQ+cVPe5JP1mQ844xJBN9dhFUjUAtutDVs/BOL3e5F0WzHcpn0n 879RicYYh8lfjRqiIS+7MfKh4FlLWMbR/khacvAtNhkPw0T5k7JZaOt2v7LWZl6yzbjx 4F+DkWajeXyre6InyaG71905X9ggu2lJGiICu+PoNoQwXNkcE9/RJrO4RzpKY5RoMTuh uUgS4RiPQaiZ5oTeO727vzvC8RmbYaJPCX+WcuR9W4MRfe/go+m1GTeijbpljT8ZdiaW 9DsARHvWIWH8Hq8Sc+SETpRZZcISfPjy9bmcTCb2qDZ7f43szKtFlwkpsSBhxVV7ZNNk bcPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698249514; x=1698854314; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=btqS/vKtKNvOjRVqtJPQyTdK3DEsPPn1EVvXP1ExH78tLeWsRW5E+IpQ3JpLH9w7vJ U6fjqZaLkV/UwGPqCuCleWtf1lfQBi6v3PKLqhhK6O2mZ5c9NPbnPbZ2Jy9ZvP5SH9f/ lEQdjHovehdckbPmsUH2rKxus5XhObcuk04S8jE//KRppNjbQe/EzlD5o/uHw8G5V/VZ pJptoGrFiik70MtSEFSU/BW28QMpp5IB84OnK6Wm0lAsZQPSKxN3OVDVRz8X2LnfO+1n YKrIUM8ExoUb+RL6q0WWvSOUYbQDOjPBfZ2hpJGg6UjkOfUBS5aUMr8FJgcgbKn7S/4f ecTw== X-Gm-Message-State: AOJu0YzITmtlZAYz5U1zlD2njhU7hZccuAT3URcY03wehd6MkzWhj1F9 XPp7r5A+YKhGgKjTcoGVM0fXMw== X-Google-Smtp-Source: AGHT+IFzIsrHLnoP3SfHHNSS732Byz8xbCh6I9WGwH1qvCmSKAsaFlHdvXIydQDBYtQoTuLU7GaqVw== X-Received: by 2002:a4a:bd05:0:b0:581:ff09:62e4 with SMTP id n5-20020a4abd05000000b00581ff0962e4mr15571716oop.2.1698249513815; Wed, 25 Oct 2023 08:58:33 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id y4-20020a4aaa44000000b0057e66fa004dsm26569oom.47.2023.10.25.08.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:58:33 -0700 (PDT) From: jgg@ziepe.ca X-Google-Original-From: Jason Gunthorpe , Joerg Roedel Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qvgHA-004tcE-CG; Wed, 25 Oct 2023 12:58:32 -0300 Date: Wed, 25 Oct 2023 12:58:32 -0300 To: Alyssa Rosenzweig , asahi@lists.linux.dev, Christophe Leroy , David Woodhouse , iommu@lists.linux.dev, Kevin Tian , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Hector Martin , Michael Ellerman , Nicholas Piggin , Robin Murphy , Sven Peter , Will Deacon Cc: Lu Baolu , Janne Grunau Subject: Re: [PATCH v2 0/9] iommu: Convert dart & iommufd to the new domain_alloc_paging() Message-ID: <20231025155832.GA1167025@nvidia.com> References: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> On Wed, Sep 27, 2023 at 08:47:30PM -0300, Jason Gunthorpe wrote: > Continue converting drivers to the new interface. Introduce > ops->blocked_domain to hold the global static BLOCKED domain and convert > all drivers supporting BLOCKED to use it. > > This makes it trivial for dart and iommufd to convert over to > domain_alloc_paging(). > > There are six drivers remaining: > > drivers/iommu/amd/iommu.c: .domain_alloc = amd_iommu_domain_alloc, > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/arm/arm-smmu/arm-smmu.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/fsl_pamu_domain.c: .domain_alloc = fsl_pamu_domain_alloc, > drivers/iommu/intel/iommu.c: .domain_alloc = intel_iommu_domain_alloc, > drivers/iommu/virtio-iommu.c: .domain_alloc = viommu_domain_alloc, > > v2: > - Rebase to Joerg's for-next > - New patch to remove force_bypass, as discussed with Janne > - Move some hunks between patches to accommodate Robin's change to the > attach_dev switch > v1: https://lore.kernel.org/r/0-v1-8060f06462cc+c0a39-dart_paging_jgg@nvidia.com > > Jason Gunthorpe (9): > iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain > iommu/vt-d: Update the definition of the blocking domain > iommu/vt-d: Use ops->blocked_domain > iommufd: Convert to alloc_domain_paging() Joerg can you grab these for this cycle please > iommu/dart: Use static global identity domains > iommu/dart: Move the blocked domain support to a global static > iommu/dart: Convert to domain_alloc_paging() > iommu/dart: Call apple_dart_finalize_domain() as part of > alloc_paging() > iommu/dart: Remove the force_bypass variable I will poke more dart related people to get a tested-by, maybe next cycle. The arm patches at least need this Thanks, Jason 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4D55FC07545 for ; Wed, 25 Oct 2023 15:59:33 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=U+yq0mGb; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4SFtsb3yTHz3cVH for ; Thu, 26 Oct 2023 02:59:31 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=U+yq0mGb; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ziepe.ca (client-ip=2607:f8b0:4864:20::c2a; helo=mail-oo1-xc2a.google.com; envelope-from=jgg@ziepe.ca; receiver=lists.ozlabs.org) Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (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 4SFtrc1yN0z2xTm for ; Thu, 26 Oct 2023 02:58:38 +1100 (AEDT) Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5842a94feb2so3213137eaf.0 for ; Wed, 25 Oct 2023 08:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1698249514; x=1698854314; darn=lists.ozlabs.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=U+yq0mGbZUrYv0lkHiiLuiJfjA0XixpdU+Bni6jI0zMHin6TcJTKaUoOY5rg0yHQnQ RZZmeudUv+N3me9fOb/qNvMfAjZk8VXE2dfs6/rss2UT6VQktYAqDEiBHC0CVgz5TLyE cVUPHmSNn90FTtFh5RgFSFS+IbXz68hI9LflpdNHKBY+b4IJhV5KUXKwTOugnSfNgYx9 x+dWcFeB9ZK3LucYJiJIw7nH3ffkSysMlsjhulNoEcMptcRMJkcRFsa3nHpXt53uk5Wb 4yO+Lxg8TiwTvRmavvaL4j/LA0l3jxb8Fnsacdf6xxKdesg7E8xTkVV8oHfUX2205cTE EGCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698249514; x=1698854314; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=u4ZuyP6++6ykjXiDd/lwFKrVOSXKuklvQRU1qPyzbIK18051+bII0leNbrQM9/bhma +NRQr4llWzbLdEALcF7P2hsRb4SdREipZRWyqCpbvMSlIGi1ltXfnXrLUsF/4BCrEUhT E13PW6zBSjuL+Oyl6czQiXp2d8BSh3X632z4dIJqax6dV/jPLZILFPkFL/dwE639Vy/+ kXbHQjNOv9uHm+B6z/htaYLnEYMq5MMO9W/LQpqVFLlep4CU6cOU/M8+theGhKR35e+/ mP+Q0Pwaqc3UyLGiy9KuaPCdvViwA7gtQO2ivpamvtBs1BqD6/6nRJ2wpN1EEPbnfA59 0zrA== X-Gm-Message-State: AOJu0YxlESEJ0D5mKrgcl9MJnFDwwjU1kdLB7SoZuDZQUbiu1cPJtJ+/ uKbcjRktDSiNSyqZg6MyyvPrng== X-Google-Smtp-Source: AGHT+IFzIsrHLnoP3SfHHNSS732Byz8xbCh6I9WGwH1qvCmSKAsaFlHdvXIydQDBYtQoTuLU7GaqVw== X-Received: by 2002:a4a:bd05:0:b0:581:ff09:62e4 with SMTP id n5-20020a4abd05000000b00581ff0962e4mr15571716oop.2.1698249513815; Wed, 25 Oct 2023 08:58:33 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id y4-20020a4aaa44000000b0057e66fa004dsm26569oom.47.2023.10.25.08.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:58:33 -0700 (PDT) From: jgg@ziepe.ca X-Google-Original-From: Jason Gunthorpe , Joerg Roedel Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qvgHA-004tcE-CG; Wed, 25 Oct 2023 12:58:32 -0300 Date: Wed, 25 Oct 2023 12:58:32 -0300 To: Alyssa Rosenzweig , asahi@lists.linux.dev, Christophe Leroy , David Woodhouse , iommu@lists.linux.dev, Kevin Tian , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Hector Martin , Michael Ellerman , Nicholas Piggin , Robin Murphy , Sven Peter , Will Deacon Subject: Re: [PATCH v2 0/9] iommu: Convert dart & iommufd to the new domain_alloc_paging() Message-ID: <20231025155832.GA1167025@nvidia.com> References: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> 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: Janne Grunau , Lu Baolu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Sep 27, 2023 at 08:47:30PM -0300, Jason Gunthorpe wrote: > Continue converting drivers to the new interface. Introduce > ops->blocked_domain to hold the global static BLOCKED domain and convert > all drivers supporting BLOCKED to use it. > > This makes it trivial for dart and iommufd to convert over to > domain_alloc_paging(). > > There are six drivers remaining: > > drivers/iommu/amd/iommu.c: .domain_alloc = amd_iommu_domain_alloc, > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/arm/arm-smmu/arm-smmu.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/fsl_pamu_domain.c: .domain_alloc = fsl_pamu_domain_alloc, > drivers/iommu/intel/iommu.c: .domain_alloc = intel_iommu_domain_alloc, > drivers/iommu/virtio-iommu.c: .domain_alloc = viommu_domain_alloc, > > v2: > - Rebase to Joerg's for-next > - New patch to remove force_bypass, as discussed with Janne > - Move some hunks between patches to accommodate Robin's change to the > attach_dev switch > v1: https://lore.kernel.org/r/0-v1-8060f06462cc+c0a39-dart_paging_jgg@nvidia.com > > Jason Gunthorpe (9): > iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain > iommu/vt-d: Update the definition of the blocking domain > iommu/vt-d: Use ops->blocked_domain > iommufd: Convert to alloc_domain_paging() Joerg can you grab these for this cycle please > iommu/dart: Use static global identity domains > iommu/dart: Move the blocked domain support to a global static > iommu/dart: Convert to domain_alloc_paging() > iommu/dart: Call apple_dart_finalize_domain() as part of > alloc_paging() > iommu/dart: Remove the force_bypass variable I will poke more dart related people to get a tested-by, maybe next cycle. The arm patches at least need this Thanks, Jason 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B722FC0032E for ; Wed, 25 Oct 2023 15:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wp6q0axtq9sqCMbBOjXC1lvhpATrnFZNwYLAQIzVdVk=; b=CEUAZd78/dN6ES Rpg6KvtZFPng2zHk3uprB097pKBoTinoXVHoqqM7ZZX1VypZ9RrFpJsXtlYf+NOrzZ7PBZlZaMHei 1idHHcYKllTEssZ+yldMGzZWqoF8Gf/BAc/3ulLjQqf+bLiutbyT/m3Zab9bLoaZK4WKAfnPEv7sD /megi4GQCySUciLEwIo205xoIyme4PnhvebaZrp3Q+xT92pmNzXXm4HIYc/O1GIh7UCG/N5nVaJTX SYt+rWIo3jojkEK3zIWpeLbDb5YAQIGjsES0Y3V8xrNVXsf5/UYKbAp/smuqrhAUm1KlNmYV9u1q6 eAAZs93Yk/I4dPK+C2Sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvgHI-00CfP6-2r; Wed, 25 Oct 2023 15:58:40 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvgHE-00CfNw-3B for linux-arm-kernel@lists.infradead.org; Wed, 25 Oct 2023 15:58:38 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-57ad95c555eso3521037eaf.3 for ; Wed, 25 Oct 2023 08:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1698249514; x=1698854314; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=kYcAMCdnJskkdyvqCad1nJB8eoj1cwL/+ThcFTj1DAj2ej2FDaqLO3TjHXGnes59Jf mOMDpWOhKwvPZIpFzv3USjBAz2CEAMC1Bkp7jtu0Zb2uCWoS63w7m4fj4PEBoRPzqPfR o6GBPo07DdrRWGOT+RO2RUgYDVJeNv2PtWZxGzTibLcvyOwhSn0uhgB6/vFKEuhDWMH1 Ss2XYzzfaq7rEcjcolegV/UZaAQn0rZBL5Rwl2ijBUDjcnc9aY2ngBkXCu4Wnb34yM0I UkwU7/zfMb/qQfpcc8wJtVTujAGLYQKeJiOVekgTyMEyzhO/2KDxRoTaIlDO3K8VJ76U PV7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698249514; x=1698854314; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xh9TIQAzLGtY8IKnRXxYUTC8KDsKOaw81BBkG/qg5HY=; b=g0MFMW0+SpxMjOv2v3HOMwaw8dii+fEpddQfI6Zug4yBTVraPK18yKGSOdtpaUmKp7 pQfTw210HbamoOf2pzPbbP0k+XwOy+bK1TATYPTCLm7bq1litta0EjfiLMIkNJXhpM/e n36Ad5pT68uMBkTbATSoagwnlDjoZSpmFbIZn4ImzkUu8GpUfo6Fg/Ee+t0vFS6C+N1m w0yLVhnYG+G0coeFnL3IF7TDtfXAFh+iliAo7KW0c0uEQtvNc7t2ue+LedlQVtp/849b aT/0fZCJtur8plno4t6eGiCBVc7GExBPL4/P51/26jW5go8BoMmThdIrIT9YZm3hhZgB BeMQ== X-Gm-Message-State: AOJu0YzJRt/6raUvJs2qXlaHcjSw4lM1obmoAVlyeOumRx9jGuN+nneT 2GSLs+UP+dAPBAVZSMEGb4UwwQ== X-Google-Smtp-Source: AGHT+IFzIsrHLnoP3SfHHNSS732Byz8xbCh6I9WGwH1qvCmSKAsaFlHdvXIydQDBYtQoTuLU7GaqVw== X-Received: by 2002:a4a:bd05:0:b0:581:ff09:62e4 with SMTP id n5-20020a4abd05000000b00581ff0962e4mr15571716oop.2.1698249513815; Wed, 25 Oct 2023 08:58:33 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id y4-20020a4aaa44000000b0057e66fa004dsm26569oom.47.2023.10.25.08.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:58:33 -0700 (PDT) From: jgg@ziepe.ca X-Google-Original-From: Jason Gunthorpe , Joerg Roedel Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qvgHA-004tcE-CG; Wed, 25 Oct 2023 12:58:32 -0300 Date: Wed, 25 Oct 2023 12:58:32 -0300 To: Alyssa Rosenzweig , asahi@lists.linux.dev, Christophe Leroy , David Woodhouse , iommu@lists.linux.dev, Kevin Tian , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Hector Martin , Michael Ellerman , Nicholas Piggin , Robin Murphy , Sven Peter , Will Deacon Cc: Lu Baolu , Janne Grunau Subject: Re: [PATCH v2 0/9] iommu: Convert dart & iommufd to the new domain_alloc_paging() Message-ID: <20231025155832.GA1167025@nvidia.com> References: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231025_085837_138362_CCFD510C X-CRM114-Status: GOOD ( 15.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Wed, Sep 27, 2023 at 08:47:30PM -0300, Jason Gunthorpe wrote: > Continue converting drivers to the new interface. Introduce > ops->blocked_domain to hold the global static BLOCKED domain and convert > all drivers supporting BLOCKED to use it. > > This makes it trivial for dart and iommufd to convert over to > domain_alloc_paging(). > > There are six drivers remaining: > > drivers/iommu/amd/iommu.c: .domain_alloc = amd_iommu_domain_alloc, > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/arm/arm-smmu/arm-smmu.c: .domain_alloc = arm_smmu_domain_alloc, > drivers/iommu/fsl_pamu_domain.c: .domain_alloc = fsl_pamu_domain_alloc, > drivers/iommu/intel/iommu.c: .domain_alloc = intel_iommu_domain_alloc, > drivers/iommu/virtio-iommu.c: .domain_alloc = viommu_domain_alloc, > > v2: > - Rebase to Joerg's for-next > - New patch to remove force_bypass, as discussed with Janne > - Move some hunks between patches to accommodate Robin's change to the > attach_dev switch > v1: https://lore.kernel.org/r/0-v1-8060f06462cc+c0a39-dart_paging_jgg@nvidia.com > > Jason Gunthorpe (9): > iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain > iommu/vt-d: Update the definition of the blocking domain > iommu/vt-d: Use ops->blocked_domain > iommufd: Convert to alloc_domain_paging() Joerg can you grab these for this cycle please > iommu/dart: Use static global identity domains > iommu/dart: Move the blocked domain support to a global static > iommu/dart: Convert to domain_alloc_paging() > iommu/dart: Call apple_dart_finalize_domain() as part of > alloc_paging() > iommu/dart: Remove the force_bypass variable I will poke more dart related people to get a tested-by, maybe next cycle. The arm patches at least need this Thanks, Jason _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel