Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp701225ybl; Fri, 31 Jan 2020 06:31:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwuWth5lrDA9tRgQzSfpZe83+CeUBHCNjJupzy7czmczv6WOnII2BKTjSSmLfRtrNJ9cFbL X-Received: by 2002:a9d:7386:: with SMTP id j6mr7639789otk.336.1580481105187; Fri, 31 Jan 2020 06:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580481105; cv=none; d=google.com; s=arc-20160816; b=hGXHvGhYf61tX4WQyu+SjRpRLBPiHEK9t/I7ywrW423Jjhq96Ks0Go4M3oJiLv/P1j AWwYn5suIfd5ZqvsIwhl/YD3x4U26psZyJMN0Tqv2jdHu0uZTCspN0OaEg9158khV4xG tFa0s6DKy3j1n/dtGKn4gd4TLypN9T6mJHY7V61Bh9ZahLE2UsAHZFIwFUdquiIMlAJ4 GXtAu4MweQsMHjn2O637mhedsHpyNFu7nODt/NFwAykPExFBhYNnitxanjWd7PoLvZiz IYBXTPGMF+2YRh1a0/aycAXp17FQmcCXCsTimju+dspUt9BXWpi6n9X+srgF+Y9WJlq6 ZebQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wII15MgeqWbZfMqpukw8WbJXMIjvvlTLwoyDgIUTqRM=; b=wZuTe15xyDnqLN+xI69DsKI8TwIADl6xL/uYwTykGHp98FbI8+gefWGlVEbuNTI6Al yjDUz6oL8axIQXF+IJIw/r+6z/pzhYC0+uAcxRpIsDY6XG+KHBO07aJp1iu4KnuN17VO utPxyyg/mp+sCT5RFa5N/TLhanO9yvzyRYwN9PJF+1CSICDB65b0BIGxIVawVlFs6k1o FaUMgeuUrzTd0tNRUOOZEgdToVd3ju3qxD8qvcDhyjx0legWIAloKzcI8+IgYLZK+b6h xaGjgYsBI055P0hzLV9IG5cdOk/hnR+xrYR/eiamaY+Z7v9N/hsLAWJFDVpqJCa4/0MD 8BWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=ShZjamFM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si2895658oii.80.2020.01.31.06.31.32; Fri, 31 Jan 2020 06:31:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=ShZjamFM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729000AbgAaO3h (ORCPT + 99 others); Fri, 31 Jan 2020 09:29:37 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60056 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbgAaO3h (ORCPT ); Fri, 31 Jan 2020 09:29:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wII15MgeqWbZfMqpukw8WbJXMIjvvlTLwoyDgIUTqRM=; b=ShZjamFMEFEi8ZK6lvRTAfg72t Vnb01CyPnJ7r54jskpVozNRpja4cak/rpQ3EA+z8tdCxGk/ma0n7XNXXYSzDi8aJs81HiyfqbzIDI TBwGIdJHIzI15tZXE3NfSucMK1mqWPVg/4N3IYkodR379POfvridvakg2WpfKOtGPAOs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1ixXIA-0007bY-Q6; Fri, 31 Jan 2020 15:29:06 +0100 Date: Fri, 31 Jan 2020 15:29:06 +0100 From: Andrew Lunn To: Robin Murphy Cc: Jon Nettleton , Ard Biesheuvel , Marc Zyngier , Makarand Pawagi , Calvin Johnson , stuyoder@gmail.com, nleeder@codeaurora.org, Ioana Ciornei , Cristi Sovaiala , Hanjun Guo , Will Deacon , Lorenzo Pieralisi , Pankaj Bansal , Russell King , ACPI Devel Maling List , Len Brown , Jason Cooper , Andy Wang , Varun Sethi , Thomas Gleixner , linux-arm-kernel , Laurentiu Tudor , Paul Yang , "" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Shameerali Kolothum Thodi , Sudeep Holla Subject: Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc Message-ID: <20200131142906.GG9639@lunn.ch> References: <1580198925-50411-1-git-send-email-makarand.pawagi@nxp.com> <20200128110916.GA491@e121166-lin.cambridge.arm.com> <12531d6c569c7e14dffe8e288d9f4a0b@kernel.org> <0680c2ce-cff0-d163-6bd9-1eb39be06eee@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > But by design SFP, SFP+, and QSFP cages are not fixed function network > > adapters. They are physical and logical devices that can adapt to > > what is plugged into them. How the devices are exposed should be > > irrelevant to this conversation it is about the underlying > > connectivity. > > Apologies - I was under the impression that SFP and friends were a > physical-layer thing and that a MAC in the SoC would still be fixed such > that its DMA and interrupt configuration could be statically described > regardless of what transceiver was plugged in (even if some configurations > might not use every interrupt/stream ID/etc.) If that isn't the case I shall > go and educate myself further. Hi Robin It gets interesting with QSFP cages. The Q is quad, there are 4 SERDES lanes. You can use them for 1x 40G link, or you can split them into 4x 10G links. So you either need one MAC or 4 MACs connecting to the cage, and this can change on the fly when a modules is ejected and replaced with another module. There are only one set of control pins for i2c, loss of signal, TX disable, module inserted. So where the interrupt/stream ID/etc are mapped needs some flexibility. There is also to some degree a conflict with hiding all this inside firmware. This is complex stuff. It is much better to have one core implementing in Linux plus some per hardware driver support, than having X firmware blobs, generally closed source, each with there own bugs which nobody can fix. Andrew