Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp825773rwi; Thu, 13 Oct 2022 05:53:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5j/RD0EmTxX/J9tBtAJ6Xq7mYfghXi6bxTeOE08+ZbcneSCSXCIfa7d32ZLdJc3p6drtAL X-Received: by 2002:a17:907:72c5:b0:783:c3ac:ecbc with SMTP id du5-20020a17090772c500b00783c3acecbcmr26289242ejc.498.1665665603357; Thu, 13 Oct 2022 05:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665665603; cv=none; d=google.com; s=arc-20160816; b=X3imOTYBhSilhz7hoMTHlhP36dJ5H3ETRRFWl/AcZxIu923dpfiH0JybIKIp3Aw5Xf qHtSf8QCtAehl58rVWENPhuu7Wa3KDN01ievCq08SA2xHcGYiB79lJNGEcy93sATfcUR xdVa52KSGtCarh0fHoxXH/e5O8co6FxQ402tEhVV5ki8yZsfLqkTjlezyNGdjkWtlCT8 wn9norUFzk3eepp04JV4agtXkPTcGr8V0oQg4nQ5TzHC9gvJnyxMBzoPLooBXdPQ2Wt7 g4Zckiea1rCsDwd+z/uFt1rlWd+BDfGg5cIvfI+Ql10CSUxR8DAK1IZr2Cks4HPkfNXn Cnzg== 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=5GLjOW0BdIWUzC24491suSRlciPNhdwolicX7+j12wA=; b=m9hHnN1fAl6vi3iz95Ma83fV0oMrAKWPdbj6mD5QXdt2+Zw1Gmcx6BhmGmIPe8gdVM 8RVdZCGoAAdBybyNgFCqP0A95+HgUEileMkdBJ9SvjWtYG2DwQ3SZgyLxJKpnyKbMQF5 hBs3qy9T2ONiifrEzUWvM3zyYJcJGaVznG7fa8VeB5mfA6ywB2wVVtgsWk4u/x1w7k+8 Ge8mRPNlQ3nE8oZRMxxvkj2QkYssF1YvpcQEJoNwEvf1nVGjRlOjzsGZaemiP22/RP6Q 7ZRjx2hIOOg1nAmn0KfY4vzW44FfZLL4DcslYaEi+MIU7EfT+Xtgiod1FTnT6Pr+1DD9 EiSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=SAEIiL74; 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 nd32-20020a17090762a000b00782bb167cb6si19033912ejc.80.2022.10.13.05.52.57; Thu, 13 Oct 2022 05:53:23 -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=SAEIiL74; 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 S229794AbiJMMnh (ORCPT + 99 others); Thu, 13 Oct 2022 08:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbiJMMnf (ORCPT ); Thu, 13 Oct 2022 08:43:35 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D09B811D994 for ; Thu, 13 Oct 2022 05:43:32 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id h24so540910qta.7 for ; Thu, 13 Oct 2022 05:43:32 -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=5GLjOW0BdIWUzC24491suSRlciPNhdwolicX7+j12wA=; b=SAEIiL74kEmoL7i6K+FYqWYt1OQC0cAaHX12qGeOzYXKJYjkEQAv7uljHXJ4swa6JR xHlzlAi1STF9FMZLYrCuntQOvDs5BQQQPxJNF3wfOuWu4E3nVEPIqcgSDMeXg4W9foEx 0k+Hg9nLfuR5H3rbCakZXpB23lScKeqGXgHhy6TUwyz+9v5bENkOeE6fD/gpEwe5Bxf8 M/NMiVb+q2oJLRq1/nR2hNa+gk4jKzwubgW4zUEfNWFDeL0SX384wdAplhzPwDYznJw8 lgiepffTEMTrRRlC+4XC2iHdyDe8mR5JOTJf66zXX3BgrzWWTN5zjDZrFb7Xy67Npu6b X8Dw== 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=5GLjOW0BdIWUzC24491suSRlciPNhdwolicX7+j12wA=; b=whHUVv/r8Bgyx/sDNl1J9XPSRAG5skxQfZucGU/fMcRGruGo38xzxH13IDgAQVF1A4 gPsWd6hhvAox5p2UxTSWbTqUEy5DQa7A/r9TPTwkifHLrIIOmSdAIv5LPXevk/LR21Ld 7Koak2ZLsBJVazR6yjn1g0ciA/RXW/bBRrbRadntAoC7mp+sXWy/YZrW464ZrjrRcJfP LgYsuYXYbiI8pZTEs7e+75/Lv0607hxLlmcnTUGlFnz41stg4z0NRdl5aCQorF1+3DFs EKIP6WZvWSgLcxJM1SlC8AGFQPYM3yrgRI2yBlR+BRsFpDcEz8WiPbmsVNIsL1ALAVre Ch/A== X-Gm-Message-State: ACrzQf2paEHjdR4CeNzvNbGpRlxIuJQIG5ry7MBKJGc6JrarkNvDzDHO uz8x51ogmGw2H2nJBUHmGfPcJA== X-Received: by 2002:a05:622a:90:b0:394:1a9b:638e with SMTP id o16-20020a05622a009000b003941a9b638emr27765696qtw.314.1665665011242; Thu, 13 Oct 2022 05:43:31 -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 h19-20020a05620a401300b006eeb185c209sm2752971qko.50.2022.10.13.05.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:43:30 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1oixYf-002fJN-2g; Thu, 13 Oct 2022 09:43:29 -0300 Date: Thu, 13 Oct 2022 09:43: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=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 Wed, Oct 12, 2022 at 03:09:26PM +0000, Radovanovic, Aleksandar wrote: > > 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. > > > > I'm not sure I follow your argument, the limitation here is that the MSI > address value is shared between vectors of the same device (requester id > or endpoint, whichever way you prefer to call it), not between > devices. That isn't what you said, you said "we can take up to 4 different IOVAs, which limits us to 4 CDX devices" - which sounds like HW being shared across devices?? Jason