From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 D8A0E134B1 for ; Wed, 1 May 2024 16:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714582238; cv=none; b=PZGo8nh/hod8Gbk6DBjFrIXyAvqpFuj678KuA+6RktmBm72/aYvW+k61KrAKFk6VEmULghTqydGG/J4atzHSy+o10143rHgc1+nZ7SZ+2Rqo2+vzQM3N5+txF6pDCa01uJW8hCRH2C/J1rypei+NBPukdBJxe0uh22y/qWm+pR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714582238; c=relaxed/simple; bh=c7T7L26EaZ7WV7e/5lbYoLtRA5fjwDPvAyAPxWpdp0A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rrN2dPTz7/PM2+iZpu3J5oyoRqzBMfWssM2VNMUs4qocPqIDjoFM1lW+nOnemCFXei+dZO6nkm2yPzYigXvvS1I2DmZT3E723ym0wtJ6NEI99Sbv1WpzhNcisGD/zThiYSYQJRSoV5txagOA3KY70Ns7Hg2r66XKKvkgJoAZcqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=hJId3OSu; arc=none smtp.client-ip=209.85.222.175 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="hJId3OSu" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-78ecd752a7cso493547785a.0 for ; Wed, 01 May 2024 09:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1714582235; x=1715187035; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XbJ+amWUmdqnBEY3P5pFxkrI6iYx8TZc072WUlpjvno=; b=hJId3OSumOq3hLb0SDVtG33dX3PynnyWnAxMEnZTOoQdcWiCFjXUlPNuyMEYUX99uC wXb4eCiDD++GP5OKgO+wT5mFVplx+5zvG/WzJZJXL3tkwJZOjKmgI88NgisMkCZwBSIT 0O51v8LQN0fzsZ7KUHk/GZ6WtYhMWpXlu3i42zrEs0aIAWChCMCss7O1T1KN25SJ/b/J YC8pT34S888+TziiM8QuQGB05q1mnqJ0h4F+WzS9glPf2J8dMsqzQvDsmWslON79ObEs 0klGQelj1+3UjumJ4lJl9FivbjGSE7ga+gVNa6bFuBhhbNwLQoz1sh08pD3HwDLjLRpY DJgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714582235; x=1715187035; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XbJ+amWUmdqnBEY3P5pFxkrI6iYx8TZc072WUlpjvno=; b=gcGY07w8tjQZfWuF1dw2O5/RHLJyqqHssXXtM6+wM4gnu1spUyOv9mJVb2MrjtdodN 79RdagrOLjfwuWlnV3OvW1BDCKd5Vgh49KTNXZEmEuRSujA0mNxDHf5XNVDqnJfjcnPf MHEqil7CY92SOtp6oOJVORUMhJNoGWQYdz7ovJhR+ZQ/wUVjktY860arOKZ/0ADx6CPJ wjBzuM/oVLiCUtdfr0uMEHckDHcwqZgALX3Syva1tP2vDNt2E4HduQw2LO181Zbe4mRZ af1XjRKjrsLv/aZBOG+BHR0vvJKcuAPk1lXkz1NsDdJq5OJksPznF5c5rfLL0v5BYDsm 39/w== X-Forwarded-Encrypted: i=1; AJvYcCUj4bh7xmC+DsaFNHKfXdc3J7k+vheewqd/bsWdlDIfVgBXHCG8peSd1HhPlKOivrhXMA2Li9yBty7idROKczO2ghKffRG28w== X-Gm-Message-State: AOJu0YxFxTfSlNJMDT/1qxm+K8q9ZuSAOt7pXlJnNChxFGFJNu/WX5jF KjDg3WYVzEpqvSHp917woTr+w1UptbF6dUeqrnL8aU44bivtcqSvagoZCA0tVmKdeVtC1CQ7tQb R X-Google-Smtp-Source: AGHT+IGjqqJ3/loD+iZja2KV3FOqgKEvoh6dNdyC5k3af7/ZiaW9qXq24m428AYDQzhNYdPecGkpiQ== X-Received: by 2002:a05:620a:1990:b0:790:f7da:ce61 with SMTP id bm16-20020a05620a199000b00790f7dace61mr3973487qkb.1.1714582234848; Wed, 01 May 2024 09:50:34 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id wh13-20020a05620a56cd00b007906ab7b0b5sm9966083qkn.11.2024.05.01.09.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 09:50:34 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s2DA9-00E6Ob-Ib; Wed, 01 May 2024 13:50:33 -0300 Date: Wed, 1 May 2024 13:50:33 -0300 From: Jason Gunthorpe To: Will Deacon Cc: iommu@lists.linux.dev, Joerg Roedel , linux-arm-kernel@lists.infradead.org, Robin Murphy , catalin.marinas@arm.com, kernel-team@android.com, Eric Auger , Moritz Fischer , Moritz Fischer , Michael Shavit , Nicolin Chen , patches@lists.linux.dev, Shameer Kolothum , Mostafa Saleh Subject: Re: [PATCH v9 0/9] Make the SMMUv3 CD logic match the new STE design (part 2a/3) Message-ID: <20240501165033.GH1723318@ziepe.ca> References: <0-v9-5040dc602008+177d7-smmuv3_newapi_p2_jgg@nvidia.com> <171456087391.35017.3249073955778510141.b4-ty@kernel.org> Precedence: bulk X-Mailing-List: patches@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: <171456087391.35017.3249073955778510141.b4-ty@kernel.org> On Wed, May 01, 2024 at 05:20:29PM +0100, Will Deacon wrote: > On Tue, 30 Apr 2024 14:21:32 -0300, Jason Gunthorpe wrote: > > This is split out from the larger part two which aimes to rework the PASID > > related code. > > > > No new functionality is introduced in theses commits, it just reorganizes > > the CD logic to follow the same design of the new STE logic using make > > functions and a single programming flow without leaking details to > > callers. > > > > [...] > > Applied to will (for-joerg/arm-smmu/updates), thanks! > > [1/9] iommu/arm-smmu-v3: Add an ops indirection to the STE code > https://git.kernel.org/will/c/de31c3555412 > [2/9] iommu/arm-smmu-v3: Make CD programming use arm_smmu_write_entry() > https://git.kernel.org/will/c/78a5fbe8395b > [3/9] iommu/arm-smmu-v3: Move the CD generation for S1 domains into a function > https://git.kernel.org/will/c/e9d1e4ff74b9 > [4/9] iommu/arm-smmu-v3: Consolidate clearing a CD table entry > https://git.kernel.org/will/c/af8f0b83ea2b > [5/9] iommu/arm-smmu-v3: Make arm_smmu_alloc_cd_ptr() > https://git.kernel.org/will/c/b2f4c0fcf094 > [6/9] iommu/arm-smmu-v3: Allocate the CD table entry in advance > https://git.kernel.org/will/c/13abe4faac43 > [7/9] iommu/arm-smmu-v3: Move the CD generation for SVA into a function > https://git.kernel.org/will/c/7b87c93c8b86 > [8/9] iommu/arm-smmu-v3: Build the whole CD in arm_smmu_make_s1_cd() > https://git.kernel.org/will/c/04905c17f648 > [9/9] iommu/arm-smmu-v3: Add unit tests for arm_smmu_write_entry > https://git.kernel.org/will/c/56e1a4cc2588 Thanks Will, I will repost the rebased 2b part once Joerg picks this up. Jason