Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp693008rwi; Fri, 14 Oct 2022 07:29:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44QrvQ3jOXNaQZdz2hSXTCc8lgb8vA4mHkyLgz9nGuM09VxkbGSYA6EG1yOTY8JEydYyYI X-Received: by 2002:aa7:c157:0:b0:458:8ef7:eaff with SMTP id r23-20020aa7c157000000b004588ef7eaffmr4363191edp.82.1665757750027; Fri, 14 Oct 2022 07:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665757750; cv=none; d=google.com; s=arc-20160816; b=jRrmElnHLrTkKCtNWdIH6IBS53iP5nZNOv17hD9IxTVuJr/Zdg4bPExV2vePCL50Af 82lmS7TFdYECiMPaPVQ7+Oyyg8FpagqHNenPHpGpgrYFITy7QtB+n984aC1hV0+tVfZK xRN8PQVRXjmjqKQ6gDyOI5Xe8E9AWxHrYWuVvBWCn0LLYrkJtfLxO3pWCiHViDp8jKqr GG5Nb0xBQcHV8uewc2H3mw6ZpUHUybi08CFX0XdTlyd0eYM+G31CKy8CAbbhQCZLZtQ5 Nby3blketRnp2Ofym7n2zeNu1avWgDxkW89jp6ygOcXe9myRQmHK23ymwrvIZ3J2Cvui Mgnw== 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=fv9nopN/BeTFeZnHi+jzSayJgQfOT7TvLb8PWML+q84=; b=VqhT37oQcEL9EVeOWzRyyqWOt3XrRgf+VLV9ld+L9kBzUEp/co8gf0XeUTdxqcZiRV f3D57lwi6ywjr7jqWk0xKI/S4nYdpSF4UWXoDffXBEGuE3QgwQckVTE+wRZqWMT1u2IA ye8DN3HXR2Gf/8EbGGFMw/6tb3NxZyQtgYic5Iwdb3d4EtOy5he4w/ZT8q0Q5b353Zis 8T6UF0llW5u7HQJDvxLnrZb9p3+vyStmM21R56C+1uKEbs3vqsfn2uFtMCnhY5adbn3B JgN4eqXG3PQzswZ55PL3XV96vpOXxnqm2IcT+R73TdkZVlV6u3wVzUiP+/oNYEXItiIh VMfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JMkcLOQ1; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020a170906180f00b0078d20d71475si2181530eje.413.2022.10.14.07.28.41; Fri, 14 Oct 2022 07:29:09 -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=@linuxfoundation.org header.s=korg header.b=JMkcLOQ1; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbiJNNqQ (ORCPT + 99 others); Fri, 14 Oct 2022 09:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiJNNqL (ORCPT ); Fri, 14 Oct 2022 09:46:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 589E112D27; Fri, 14 Oct 2022 06:46:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 04833B82215; Fri, 14 Oct 2022 13:46:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A4D1C433B5; Fri, 14 Oct 2022 13:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665755163; bh=wg2Q52DIyrXZbMal2LNh2YUioMr1oyz8EPIe0so6DII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JMkcLOQ1ZRGy8a24GpAGR03dm712NHH9RJ0YtVi5V84pp5M+qfIvJ3lpvIfcABJPc LazO9V6dvyU+l+B+FT4j6Qepq0WNUuLiMbYNOQpaLHc/VJp0uElaY3WXmEivOmFhSf MQhMJq5/knJLi2nVZeCEgC6+JUI3wv89Zf0bKXxI= Date: Fri, 14 Oct 2022 15:46:48 +0200 From: "gregkh@linuxfoundation.org" To: "Radovanovic, Aleksandar" Cc: Jason Gunthorpe , "Gupta, Nipun" , Marc Zyngier , Robin Murphy , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Oct 14, 2022 at 12:13:45PM +0000, Radovanovic, Aleksandar wrote: > [AMD Official Use Only - General] > > > > > -----Original Message----- > > From: gregkh@linuxfoundation.org > > Sent: 14 October 2022 12:55 > > To: Radovanovic, Aleksandar > > Cc: Jason Gunthorpe ; Gupta, Nipun > > ; Marc Zyngier ; Robin Murphy > > ; robh+dt@kernel.org; > > krzysztof.kozlowski+dt@linaro.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 > > > > Caution: This message originated from an External Source. Use proper > > caution when opening attachments, clicking links, or responding. > > > > > > On Fri, Oct 14, 2022 at 11:18:36AM +0000, Radovanovic, Aleksandar wrote: > > > Anyway, I think we're straying off topic here, none of this is visible to the > > kernel anyway. The question that we still need to answer is, are you OK with > > the limitations I listed originally? > > > > What original limitations? > > Limitations with regards to MSI message configuration of a CDX device: > > 1) MSI write value is at most 16 useable bits > > 2) MSI address value must be the same across all vectors of a single CDX device > This would be the (potentially IOMMU translated) I/O address of > GITS_TRANSLATER. As long as that IOMMU translation is consistent across a > single device, I think we should be OK. It's been a while since I read the PCI spec, but this feels like it does not follow what MSI is supposed to allow. Is the "CDX" spec anywhere that mentions any of this as to what is supposed to be allowed and supported? And what is a "single device" here in how the kernel knows about it? Is it a PCI device, or some other new structure that is handed to the kernel from the BIOS? thanks, greg k-h