Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3951142rwi; Wed, 12 Oct 2022 08:44:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59bJr0OUVXRTsCdmaXU3Y/6VDunfGNYd+tkjGlUegQjLcD5oa6q/pdrOAryRmniWbzqnBa X-Received: by 2002:a17:902:db08:b0:176:d40e:4b57 with SMTP id m8-20020a170902db0800b00176d40e4b57mr30629641plx.172.1665589462839; Wed, 12 Oct 2022 08:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665589462; cv=none; d=google.com; s=arc-20160816; b=SCpz12IuvuBWrdB1JaC/I4WriKvQ6RBer/Xjr2k0GEvytC3sEgmToqL+JV+JRa4l60 F+P+XGiV9kPcAJEIEiVja03E7RsjZn7F+C9/lkUtgyZNW0cAZuhRP0YQQuD24wYnfYJJ wDYEqv41IQ62+sHCGZaRhNx1XK4dbVObeiVsqtdGygM5inLQuCXsgwJhalrPULZRQpC1 HR9MRpIDl7PNJCqxLQsaeSVfYZew9JVIWC19mMzfq9bUa9RjD5iVFyKCv3N8qiBTKjgJ 0NTMgKbnycLPEcr7UBCjkHFA/ntGJdKZvWgYkeLNr+5Uvkvwu3uLneFuzSUiauxNGogu +oRA== 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=u0eqSs8D8Zyq93HxhcB9uauCbxkxsD79LqnsXThBZU4=; b=xivzyL5CY/rMhrVXX0vl8C93voPfAf4qlUvyvw/tIKiLjuXZG3jBLPmLP/RZen6tMw ArTgF/69tB5/Ok4vCDWusmP0ZJU0cE+RDvJbZm033JXLHGEr90UH9FPnoal7MeT3qixr lsgREiDg1ryuBp25p7uyte5DBLhudPNjGOuYEnZWghhlJvtHSExlbKS58i13yPFPw8Cg X6SQAYCFx7LcfLp0Mygj8th1xs8HWtUr1CZYxcJAlb47Ek9aeDmdwPwNcO1GIG1Wm2WA ZaOFl7c+HM/d3gedFEPW0uim6ESuWgm6RV0mer5w7T8iNdHxY09Mj6KI/IZdSxm0mxRm Gvdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=nBlGzmpp; 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 l12-20020a170902f68c00b001768b832a41si22128492plg.584.2022.10.12.08.44.09; Wed, 12 Oct 2022 08:44:22 -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=nBlGzmpp; 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 S229684AbiJLOik (ORCPT + 99 others); Wed, 12 Oct 2022 10:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiJLOie (ORCPT ); Wed, 12 Oct 2022 10:38:34 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773C0422FF for ; Wed, 12 Oct 2022 07:38:33 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id o22so10152532qkl.8 for ; Wed, 12 Oct 2022 07:38:33 -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=u0eqSs8D8Zyq93HxhcB9uauCbxkxsD79LqnsXThBZU4=; b=nBlGzmppneJVftZVAdRUc8SDMtu28+R52PjX0hqulIEfS4QZ9X3ZxOsFb+wI9VyrWn L/LUAF4zAGuwresjaJtPbsUQzAbxfPQ0W2hprNo7mjdNFp4BPvQT9n9LBcPQkREsO7Af 6b9iZUi3QgZnvK6cGojAjMQUAd6i+J3tln76arHaaeh3g/AUeFxxwDOr6ngw2zlZt5LZ JI28ohC7AeIA6B2gAXCA3RPFGhJ/s3wMBSxnkdNKGiphQAntDwcnxELsJvGLiKgoJ22n PfjHbfxSykYX0msc93QSe97LiewYxQf7oVnf6O3oXEw2GKmjUiydwB8oUe6E42DMK7Y0 zXIQ== 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=u0eqSs8D8Zyq93HxhcB9uauCbxkxsD79LqnsXThBZU4=; b=mIhI1/ea0sfM59kpY+rAnphzGYU6ksL9SFw3S0jMZcCYBXpoZakbTipvgnmSvlfOzA 7y0HyVeNauFEF4LOxAdbW8AdFOiZ4wxLhrBYZr82nO8kHwyXXiWrEpo3xKY2n+ho6VQT A+DqdZPD/YmJkMccqpltsfI/L9aX3ETehEkY2gebjJkva/Na3OekBK77IMMNmTwB6oOV L4AKFa/kQLXMyutWjnylU8xN7LUr5p28Kii3NXDb65+NAbarczczVA+6GOHFEzVBr+BM m6vofPXLR/A6+WxSKCZNjMmLMP9D7F8pLqdprD46MWllk5Pnv3bbMNRuQ95Um+1PIsR0 hLdg== X-Gm-Message-State: ACrzQf08hGb3cr6UM/rrBGeHsgG++8tAaNFfQeqrdWFTumTNCxh7vvyG hojzZgR80ld4vp7q3gV1TuvrYQ== X-Received: by 2002:a37:34e:0:b0:6ea:2cef:131f with SMTP id 75-20020a37034e000000b006ea2cef131fmr16541977qkd.554.1665585512620; Wed, 12 Oct 2022 07:38:32 -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 i8-20020a05620a404800b006bc192d277csm16352660qko.10.2022.10.12.07.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 07:38:31 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1oicsP-001y84-7s; Wed, 12 Oct 2022 11:38:29 -0300 Date: Wed, 12 Oct 2022 11:38: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 01:37:54PM +0000, Radovanovic, Aleksandar wrote: > > On Wed, Oct 12, 2022 at 10:34:23AM +0000, Radovanovic, Aleksandar wrote: > > > > > > > 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. > > In the general case, no, they're not. I don't mean that you can hack this to work - I mean that in MSI the addr/data is supposed to come from the end point itself, not from some kind of shared structure. This is important because the actual act of generating the write has to be coherent with the DMA the device is doing, as the MSI write must push any DMA data to visibility to meet the "producer / consumer" model. So it is really weird/wrong to have a HW design where the MSI infrastructure is shared across many devices. Jason