Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3738357rwi; Wed, 12 Oct 2022 06:14:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qjP98vTba9HSBoEY/Q2lDCz8pmCATbC/mprugvCSq1+JJcaWk3xr8DyLYQHZgrOZD7/qm X-Received: by 2002:a17:907:9627:b0:78d:a7d8:9407 with SMTP id gb39-20020a170907962700b0078da7d89407mr13839786ejc.675.1665580483236; Wed, 12 Oct 2022 06:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665580483; cv=none; d=google.com; s=arc-20160816; b=nUCoeeX6uYeZ5AM/1TzqOq72J+J0x6TAq1kUwEn8XOTehtKeK7lmccmMyj3iRq4Z2/ AwWLW+rKXR369jP1fYuXbT3dO8PS7RLeJzWPeNX6L6Sob3OJzqGapjeHMeRPMTXr/l95 2W0bDs/oMG6jqFfS0soFEZ8PVNRwvcf0G1F1yblMWSoXrEBFqVnKXvOv8ivofXi9OWmw NnbdhoTKXQIgDDiw1kbMY9TXwvyQkRTee5QLGREA0ksPM3Q9rupR29k4cm8TxOElRN1/ bEbumJlzUbmXnT7vkHUovAYNyTENMk4cufnUa+E1NgE2LlI7TXyLSWW+23vQaZDbVWC/ vuhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q+2Nqrw9STp++2L4DsJMi6hkYyDKD/Hz0Oh8MYX6p0Y=; b=SfN+Y4UQADTlW9BTSfu/AFeNb4JAyRODFMeLa6v6h98FF4XkdJMwMS98Vs0D26sStu Dne5GrWoEBsHkXMh+oiSzjEmd5FOE7fyNrO1uEAdn6EuBgo9ZTSFWzaaV/Ocs8ECWLnf py87rBAAEA0UV/TBEz0sirxRH9ss/QzGHgNVz7XPgB0hXCdHYaJOszK0PrlSDZ4QTw5E rGVu4YWNURHzyyjLupMGxD5JznZlnZJ10YecNytjWShWoA89n7fl0c53X0NRgQxQMbJG dAInB44JMNWmDu3teO/pfjVsQwo6z5LVhfi67mDTrG2BTpeHf1ziQ1jgW4AWqUwJJ6Co DQwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=CTkA8dax; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a170906974a00b0073ddab3aa79si18298433ejy.792.2022.10.12.06.14.09; Wed, 12 Oct 2022 06:14:43 -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=@ziepe.ca header.s=google header.b=CTkA8dax; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbiJLNCp (ORCPT + 99 others); Wed, 12 Oct 2022 09:02:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbiJLNCn (ORCPT ); Wed, 12 Oct 2022 09:02:43 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BDF5ABD79 for ; Wed, 12 Oct 2022 06:02:41 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id mg6so10821109qvb.10 for ; Wed, 12 Oct 2022 06:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; 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=Q+2Nqrw9STp++2L4DsJMi6hkYyDKD/Hz0Oh8MYX6p0Y=; b=CTkA8daxSClsJkFRmJ62yhZEy0FtXUQuoq2kEht7XpVrZeTmAHnLdAAAUJHn7h41/f geMwWHNNfWZI9SolLo9mWrmd+qpYI0gZ/51yF3NM52R2STqave+jS8bDKa3pA/8sx+2v iYbUBphFEluEwCPfE/eJznt8ccOP+0iePi0NtR91OHqooe/mpe3utDS5Ta34TxWwDaUs CroF/jvH/6ufeM2DlHjGKH4x4KceSXy6KnVs4rzbRxTTsli4A9+5d1z59fGcBG/LsOQr NJ3ef2O31mVZJCMG0iXOHWBejmKJU72T/iw+irPkPj0EKrj68wDQ/mohGO+NZs8F8vHL qJvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Q+2Nqrw9STp++2L4DsJMi6hkYyDKD/Hz0Oh8MYX6p0Y=; b=R1QH/7MR7tdsC/htc2RbTgBspI4UsJ3VHQRly2k9Gcshd0q+rDD+L4rM8MhAf9XCuy qqY8OofOUoJ1mFYSpy342yZd31Sqs9iJ/AKlI42AfZ7NUOWwh81NSOuvbKwQTaU1Fqz1 Z71sxhXvrVt52sy39w53lelIz+kmas4N+0xPxYn6nL0Sk+miqnYihEAwSAP7aPL4WbXW 4cKdGc3uPjXf9vAyXxIkDGWf6gWUKB3WBlxBZTo1giyGQLx1LvRqGkNAkZs7NZCNUIJP HTV+kcISbrs+OI1RB/DV2S/APxBlIOvRwboM6KOns2UQJVm/vuHpEcg6QjTxAwgpR7+F dIkQ== X-Gm-Message-State: ACrzQf3urPP7Cgjm+LERrH/IKcgln6OqvjNn5JGcZFIvyzvnXDeW711N xzdPSV3i3hm/XPTh0aQaJBUcvQ== X-Received: by 2002:a05:6214:dce:b0:4b1:b1e7:f169 with SMTP id 14-20020a0562140dce00b004b1b1e7f169mr22688725qvt.64.1665579760064; Wed, 12 Oct 2022 06:02:40 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-47-55-122-23.dhcp-dynamic.fibreop.ns.bellaliant.net. [47.55.122.23]) by smtp.gmail.com with ESMTPSA id ca6-20020a05622a1f0600b003994bbe91bdsm7900801qtb.60.2022.10.12.06.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 06:02:31 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1oibNV-001wVQ-HJ; Wed, 12 Oct 2022 10:02:29 -0300 Date: Wed, 12 Oct 2022 10:02:29 -0300 From: Jason Gunthorpe To: "Radovanovic, Aleksandar" Cc: "Gupta, Nipun" , Marc Zyngier , Robin Murphy , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "gregkh@linuxfoundation.org" , "rafael@kernel.org" , "eric.auger@redhat.com" , "alex.williamson@redhat.com" , "cohuck@redhat.com" , "Gupta, Puneet (DCG-ENG)" , "song.bao.hua@hisilicon.com" , "mchehab+huawei@kernel.org" , "f.fainelli@gmail.com" , "jeffrey.l.hugo@gmail.com" , "saravanak@google.com" , "Michael.Srba@seznam.cz" , "mani@kernel.org" , "yishaih@nvidia.com" , "will@kernel.org" , "joro@8bytes.org" , "masahiroy@kernel.org" , "ndesaulniers@google.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "kvm@vger.kernel.org" , "okaya@kernel.org" , "Anand, Harpreet" , "Agarwal, Nikhil" , "Simek, Michal" , "git (AMD-Xilinx)" Subject: Re: [RFC PATCH v3 4/7] bus/cdx: add cdx-MSI domain with gic-its domain as parent Message-ID: References: <20220803122655.100254-1-nipun.gupta@amd.com> <20220906134801.4079497-1-nipun.gupta@amd.com> <20220906134801.4079497-5-nipun.gupta@amd.com> <87h71juxuk.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Wed, Oct 12, 2022 at 10:34:23AM +0000, Radovanovic, Aleksandar wrote: > For the MSI EventID, the HW interrupt logic assumes the MSI write value is > equal to the MSI vector number. However, the vector number is programmable > for most (all) of the interrupt sources, which isn't exactly the same as saying > EventID is programmable for a vector number, but can be used to emulate the > desired behaviour, with a translation table in firmware. If you do this stuff wrong you will eventually run into situations that don't work. Like VFIO/VMs and things. > As for GITS_TRANSLATER, we can take up to 4 different IOVAs, which limits us > to 4 CDX devices (should be sufficient for current HW use-cases). Also, it means > that the address part must be the same for all vectors within a single CDX > device. I'm assuming this is OK as it is going to be a single interrupt and IOMMU > domain anyway. This is not at all how MSI is supposed to work. Jason