Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1359589rwp; Thu, 13 Jul 2023 09:39:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhYxiQxVrK2RfAi6SH/w1jrPRryjIkcPu7l6SOjYx7iwRH8jwtbnOGh8oLgaMpAKxGhJTC X-Received: by 2002:a17:906:7c44:b0:969:93f2:259a with SMTP id g4-20020a1709067c4400b0096993f2259amr1814480ejp.73.1689266358573; Thu, 13 Jul 2023 09:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689266358; cv=none; d=google.com; s=arc-20160816; b=XUXxgCGWRACmLpCc6lrgoqSCI02g044kP8lipBEnzoZb2iXmuv+bml42Dtm1LwI0VJ k9sHIhFrwhVbrRrEMhLEPkTUlV/bSoT/mY0UjLhZ1l/psdAMbFgZnZjuEV8RtjbcPD8W D/TZvVcFQLpK0svEz4IaB1cBFRh3+wrPHTQxTcgZcjhq5lWVxpOolU9B0zFoeGJd5VVa mgyClocAFZt2+F7HRa3ng0KLmzqjDRu4JenA8cLp7KnGZVzvZxeObR6T0BSWgVbGqzHe HAh4fAigsA60aaAZCxPGmZhuyHRPbyy0SpoxXFXWhp5P0TOIrmdV+u4QpWqP5syXofOe q+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/0tnBY0Y8/bwKnmLpzTcUU9wCQlG8IWXPXBkGVcnoHw=; fh=56rOcM6CgNOoiigUJ5PImjH225EF6i/C2aT/V4BzpuY=; b=LVD7TqyDXwUT5rmvd3VlETZbodFZPJGQsLpxfEu8dhGdRgVMFHxt8oxg1J9/UQGyo1 vyIqZzxUJrmzV+246RY0CYbKxa8a3QsYeRssiu8RSOTcf8s/b0zOitiyL5Qcx5lbnRVi CwHOQ/RVhytLT/QlTCfIY1dISHcNzeSgS174WwYNide5ukVbdl297MT7uL/rQE5KZUkL 89F2Cp9MvcaMWUTy6Icd+z0Xi0BXCmznLZeSXHWUqS3l28aflRuZBqYA6oAUvNSSp059 E/1mkMK4lGFOsvu1ZHbcYcPI4ekSIRHia9CQTvqpIJISBRaNMqAy6ix5LIKXoXRdoDTw 0rCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=X6GrHI9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a170906505200b00987d26a0998si7248003ejk.455.2023.07.13.09.38.52; Thu, 13 Jul 2023 09:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=X6GrHI9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231225AbjGMQfm (ORCPT + 99 others); Thu, 13 Jul 2023 12:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232637AbjGMQfi (ORCPT ); Thu, 13 Jul 2023 12:35:38 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 910D92D41 for ; Thu, 13 Jul 2023 09:35:12 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-401d1d967beso2361cf.0 for ; Thu, 13 Jul 2023 09:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689266111; x=1691858111; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/0tnBY0Y8/bwKnmLpzTcUU9wCQlG8IWXPXBkGVcnoHw=; b=X6GrHI9lGLYu3yPTrOBHhjvdk9rAw/jNavkyOGvzqP57TvSbvU7RdS9Lh9/UbaI7mA 6EG2s+81o3Og/OD4P0mkdjvdI1aX1HX47fi54BRECAEOiXyjF6ZAQfjczHt/Sq6bLIZi DwEMq2zE/ynNCBkmXa8pxFDSKppQ9tLqoyIOeuGnjRRaBfNH83wdC+xdFQeBT3VU4Wbu /XYhC72PCXbWNhFK984knIrhHvZHMYOY4jiydh2QB9XzEwmEJeP6NH1Z/zUUqiMdGoY4 TORxYjZgYIo9rELNS74lYjX++IqjbD6BOnlcU8YqDgE3ioHyiZS0JEDFuWU678Z4TbnG igqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689266111; x=1691858111; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/0tnBY0Y8/bwKnmLpzTcUU9wCQlG8IWXPXBkGVcnoHw=; b=SOVmGJsGakwR3iRQFL/23XV7uGV2FJ9g/Ec9fzF0mXFGQhUCRrLS9eWMaNbwz2jN1B O0KKb/+lFrzrTjDt0E8YQzmb1XlROEr8XWb47u9LgJbDA0LSnTji+HElVF+g4ogkciWK JU0ETnH2j8cg7kUgK/hGEpvEOsLxI8EMCVKRPPjDoKJW2QyoDpN+U5XV/SRk+S1UqLug pPae2vy6Weln0zItrozdXtjNjrFNBMZnrC8C7rdSsxoKsDr1yS923TiTsI73FgUNF5qI vg22ZO75gf9Z/La58QXWo5R2LU0dt+k2TMu0mhDBlna18uJ7XnucLOOP2tnkd0ot2hLC tPCQ== X-Gm-Message-State: ABy/qLYrguVCUFKNYn9UyQP+SSfxZf7rQfDRTmR0aPIKsIAqMZKLG1NJ pbGywlYbiJZnvrI7EgNOwgdEI4V8658MEA1A1CREUQ== X-Received: by 2002:a05:622a:301:b0:403:ac9c:ac2f with SMTP id q1-20020a05622a030100b00403ac9cac2fmr478923qtw.17.1689266111449; Thu, 13 Jul 2023 09:35:11 -0700 (PDT) MIME-Version: 1.0 References: <20230621063825.268890-1-mshavit@google.com> <20230621063825.268890-3-mshavit@google.com> In-Reply-To: From: Michael Shavit Date: Fri, 14 Jul 2023 00:34:35 +0800 Message-ID: Subject: Re: [PATCH v4 02/13] iommu/arm-smmu-v3: Add smmu_s1_cfg to smmu_master To: Jason Gunthorpe Cc: Nicolin Chen , Will Deacon , Robin Murphy , Joerg Roedel , jean-philippe@linaro.org, baolu.lu@linux.intel.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 14, 2023 at 12:16=E2=80=AFAM Michael Shavit wrote: > domains a-la aux-domain). With this change, even attach_dev with a DMA > or UNMANAGED domain is now just preparing a single entry into this > common CD table. I have to correct this part, arm-smmu-v3.c's attach_dev() implementation does both: it writes to the pasid=3D0 entry of the owned_s1_cfg's CD table, and then installs that CD table to the STE.