Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp183061lqb; Tue, 4 Jun 2024 08:26:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbVdKxLE27xYvhmchiQqzhI6JzrixFkwBqwxZJW04QRx5wACynBQ9XefoeVSpVhsj7d8LHMe5ViJPgNRmeFfM0DIMZNk0NVaxfI2E0Vg== X-Google-Smtp-Source: AGHT+IGXbMfy0oHwkm1+jcgGQVxW6rlAzN1mFHd+8beiHYr6QRXwx1r+8edM0iUaFQY203otb8q6 X-Received: by 2002:a50:999c:0:b0:57a:27e5:2a8a with SMTP id 4fb4d7f45d1cf-57a36359a0bmr7603353a12.8.1717514768602; Tue, 04 Jun 2024 08:26:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717514768; cv=pass; d=google.com; s=arc-20160816; b=hyVa+GPSPJod4uJiRfWYA6dEXvBT7P9AW9Q8+UNzkOLKWKLn8bebkT/MCqZKGG14mK t95//W+YtR/bHqT1/kyoHsN4oYGerPDMehDCIqK+0XbL0GUE8qjAiZw8uCHKzIvO0kZn XFOzsFsBAIEoXesjoX7JnVPmhTOoDqx3lcKCpFo7jBtOPw3Qz/XJ9lG7ePAlfcqQdlFr 6+agBS9w4IaiwjxYq8KYX1aFZ6crx2bq0zYwHNgmSs7XDqVH5rQgxldYC3Ki3hg3m1l7 1Y9LseXgAiJ6UqNeToZjYNkXDcZX1NosmJa2ls5/GoUc0UDMYe7J8pmhBqCZ/9U+cGB5 QFUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=1zXD+4fEFHE+sUeJEjQDWJuqzp9qnNl+ywtmsHbgzfA=; fh=aUgzzORIlSCRhTea6AhF67yeAB3c2jwfMSlgUYgXzLg=; b=vLoQURyrNRMUZuqkqE6FlKg3V5s2/F3miiV3uMvy+ScRaynNd40apj3QAeMyabHr/f SjcoWMImtPWN1R4amw7ZNryb39Rw8pYqpnuxYQfONc+BvuUrO3aH0Acsp8aMD6qhmyQq KzLZPja7wVRA+bl6AC+DGlDpokY+9xtPQPYc/ialyvDM1bncTddThJJiPXrYvSv3uMf2 SbcaNtoMe0J21pqQ4bSzysmzZ6XEkw6bD5Z73cme5Hj9EZbVh+dlEuE51do888UlsC7g cnLwXIgOsNXMwlvP+7haiobyfrV5bt8Gn7fgGIwmomJfvh/laMfZkPa+cLSKPTRpaAC5 C0IA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uBlERkTf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ca35f3si5060681a12.486.2024.06.04.08.26.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uBlERkTf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5627D1F23A8D for ; Tue, 4 Jun 2024 15:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D04F71448DC; Tue, 4 Jun 2024 15:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uBlERkTf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBF4FC13B; Tue, 4 Jun 2024 15:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717514755; cv=none; b=lf/IEspISWALTKlIVd4nfSidzoDUPFCcgy6uwYBm2yPz2nF16uzm20Ld8fOAO2clRVeEYuj48eFk7hUMIAPO97zxf3+XZ4PR+3fGJtDqkNFK7g6EaGOKvWR9Cfg6uNFqVBpIqpMWjKATThDnsptVKIKrQ8KyIR8a02Uo7ebJrYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717514755; c=relaxed/simple; bh=W4guxw4l01Fm9wSUJoG6FBoB1xjKNyaC5jSs9toFe60=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=Pl3NJFjGe/XSgp3pW6fgX8U6T3N2Vmtck0UullHUe3NzV3cg9R9FFoUK3CcQYljXTARU+rRHuEGBSQorpGK3BHPXaJD/Qwrn9cpFIACoypQMLxt73s5qalujRVp/VsMiw/maPbD7w4OI2faZvj3IU2cCjSexaUNPBDgqWtCujaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uBlERkTf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7A9BC2BBFC; Tue, 4 Jun 2024 15:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717514754; bh=W4guxw4l01Fm9wSUJoG6FBoB1xjKNyaC5jSs9toFe60=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uBlERkTfsl6Cc1Hb9rsoZKL3tUhcrxXlmutR3hjFozXXQD+clGNtj1kEfeLvvmwug ZhWMMQut0D6GHkWtFX8YI98xpkpe0RVwG9dTrBOJAzEEHbM1jrIz+mgFlwhD1+Zkz9 yhcx5lXBjmqbQsJKqOcjTckeEboWdcI5vfGbCKMzwWVElQlzdOzDR+Fsq07m+nAE/3 mt5h/Neh6E82IwLgvYRsrlKqAZ2L/tTnDx4q6APk351MkrsjO1GIWAC0hzcsSj0fLW DpfNjAfk7nTYj7P3ukQ3kQ4HLc1jPIulxTvauURLNPh0ROtGhBPWE3M0euplY+Qq+k AIywwb5ieKwlQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sEW2q-000d09-Cz; Tue, 04 Jun 2024 16:25:52 +0100 Date: Tue, 04 Jun 2024 16:25:51 +0100 Message-ID: <86cyowlog0.wl-maz@kernel.org> From: Marc Zyngier To: Frank Li Cc: Robin Murphy , Bjorn Helgaas , Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5?= =?UTF-8?B?xYRza2k=?= , Rob Herring , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Liam Girdwood , Mark Brown , Manivannan Sadhasivam , Krzysztof Kozlowski , Conor Dooley , linux-pci@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, devicetree@vger.kernel.org, Will Deacon , Joerg Roedel , Jason Gunthorpe , Alyssa Rosenzweig Subject: Re: [PATCH v5 08/12] PCI: imx6: Config look up table(LUT) to support MSI ITS and IOMMU for i.MX95 In-Reply-To: References: <20240603171921.GA685838@bhelgaas> <3d24fecf-1fdb-4804-9a51-d6c34a9d65c6@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: Frank.li@nxp.com, robin.murphy@arm.com, helgaas@kernel.org, hongxing.zhu@nxp.com, l.stach@pengutronix.de, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, lgirdwood@gmail.com, broonie@kernel.org, manivannan.sadhasivam@linaro.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-pci@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, devicetree@vger.kernel.org, will@kernel.org, joro@8bytes.org, jgg@ziepe.ca, alyssa@rosenzweig.io X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 03 Jun 2024 22:04:23 +0100, Frank Li wrote: > > iommu may share one stream id for multi-devices. but ITS MSI can't. each > device's MSI index start from 0. It needs difference stream id for each > device. That's not quite true. We go through all sort of hoops to find about device aliasing on PCI and allow devices that translate into the same DID to get MSIs. Of course, just like the IOMMU, you lose any form of isolation, but you get what you pay for. M. -- Without deviation from the norm, progress is not possible.