From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFDA5C35240 for ; Fri, 31 Jan 2020 15:15:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A75DA20661 for ; Fri, 31 Jan 2020 15:15:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=solid-run-com.20150623.gappssmtp.com header.i=@solid-run-com.20150623.gappssmtp.com header.b="zM91B167" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbgAaPPd (ORCPT ); Fri, 31 Jan 2020 10:15:33 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:40224 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728922AbgAaPPc (ORCPT ); Fri, 31 Jan 2020 10:15:32 -0500 Received: by mail-yw1-f65.google.com with SMTP id i126so4989728ywe.7 for ; Fri, 31 Jan 2020 07:15:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dKqqlpA+EkYjXixe2TS2xK7+DyD3uNKJKEB0gcN7Kss=; b=zM91B1671UUjUt7B4XhWH0jKv4TzeL2OGkjsxZr6YetTM6KnFw900Ukel/cRquX0U6 /s2JfZpPbKUq/hyBOchczdnZP5oy6LHCnqrOZHmBiurBK22nhFbHBa0kNR9a7mmo7Ooy uXyyJl8Sw6q2bVInAbUXGqW1AXzLWuOuP7wcwOH0a406Qljft7LX0O9wfukjwAudPtZP NXoNfOkGncX1sLCF6A2cABmwx2anxLMJJj+k5cQQtCy9BdKCV+MVJFeKCh5ER4Mc2zJz wa+9WuxuAWSoLKZimoK3BKKytP0yZHM7LdE34XG08cOSXqyxkEWSXLPQyK9sCOJc/9ct zBrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dKqqlpA+EkYjXixe2TS2xK7+DyD3uNKJKEB0gcN7Kss=; b=fscYHkYsWkqMJF8rFMxEFuyssXABw3MXf09jBCNCtlrcPH07sut/nD4bApzaa01h3P VKb14rHQHOCV1oclh1dQ0O35ckyDBJ0cdlllens49JrQXXdP2CV9dtRRAl+OF2XB4KOD BuviVeHf5ZbwyTx/FjFsmtz9UB8bR7EBrEd1MxmJIpeOZqBZlFvq+NIn1SfxCV/zJmI7 vGN4lbIp+8rYTUGbrVMEqtwUAysrDJkrvyKyRZWnpH++MDoe2J4i/NtLdXJWeE7noLDm VxwmauEyDfKS7vzu2crAUm+KrghZBvJUOOLShQu7fXxuUZ4KC7QdXO+GlE3KW5pX01Xg 6Fqg== X-Gm-Message-State: APjAAAUEknPyHLKb5N8nEYKo9QdvL2vOse5xcUhzGuNg2ktLdZ+Vpngb 2ze96CpArqCr4mjcf8sUvO2ieLkODrV+ZSfp7RNF9A== X-Google-Smtp-Source: APXvYqwsAGpGy6tic5rDdkc84xGCO6z1ubMWeOs7PNuXCUuhqHHO+HdXDIU+E2oTbdCyqF+X9ln5AxdumM3moQc/u34= X-Received: by 2002:a25:e790:: with SMTP id e138mr822292ybh.120.1580483731154; Fri, 31 Jan 2020 07:15:31 -0800 (PST) MIME-Version: 1.0 References: <20200128110916.GA491@e121166-lin.cambridge.arm.com> <12531d6c569c7e14dffe8e288d9f4a0b@kernel.org> <0680c2ce-cff0-d163-6bd9-1eb39be06eee@arm.com> <20200131142906.GG9639@lunn.ch> <20200131144737.GA4948@willie-the-truck> <20200131150929.GB13902@lunn.ch> In-Reply-To: <20200131150929.GB13902@lunn.ch> From: Jon Nettleton Date: Fri, 31 Jan 2020 16:14:55 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc To: Andrew Lunn Cc: Will Deacon , Robin Murphy , Ard Biesheuvel , Marc Zyngier , Makarand Pawagi , Calvin Johnson , stuyoder@gmail.com, nleeder@codeaurora.org, Ioana Ciornei , Cristi Sovaiala , Hanjun Guo , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Fri, Jan 31, 2020 at 4:09 PM Andrew Lunn wrote: > > > Devicetree to the rescue! > > Yes, exactly. We have good, standardised descriptions for most of this > in device tree. And phylink can handle SFP and SFP+. Nobody has worked > on QSFP yet, since phylink has mostly been pushed by the embedded > world and 40G is not yet popular in the embedded world. > > > Entertaining the use of ACPI without any firmware abstraction for this > > hardware really feels like a square peg / round hole situation, so I'm > > assuming somebody's telling you that you need it "FOAR ENTAPRYZE". Who > > is it and can you tell them to bog off? > > The issues here is that SFPs are appearing in more and more server > systems, replacing plain old copper Ethernet. If the boxes use off the > shelf Mellanox or Intel PCIe cards, it is not an issue. But silicon > vendors are integrating this into the SoC in the ARM way of doing > things, memory mapped, spread over a number of controllers, not a > single PCIe device. > > Maybe we need hybrid systems. Plain, old, simple, boring things like > CPUs, serial ports, SATA, PCIe busses are described in ACPI. Complex > interesting things are in DT. The hard thing is the interface between > the two. DT having a phandle to an ACPI object, e.g a GPIO, interrupt > or an i2c bus. > > Andrew Just as a review reference, I have found an old attempted implementation documented here. https://github.com/CumulusNetworks/apd-tools/wiki -Jon From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, URIBL_DBL_ABUSE_MALW autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26072C2D0DB for ; Fri, 31 Jan 2020 15:15:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE27320661 for ; Fri, 31 Jan 2020 15:15:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VPnzxITQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=solid-run-com.20150623.gappssmtp.com header.i=@solid-run-com.20150623.gappssmtp.com header.b="zM91B167" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE27320661 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rxObKde5eszfRXCldd7FXaHpEfjmFZHIXZ5ylHFlHIE=; b=VPnzxITQ9qdjEJ k2iydGkHv8g9fYj1Mf0ytKCeZh4jjf/DIvCJZso/LU8RWZW/RbfYr9VIX0MtXvcvlgp7sqI2joB3t qq3HI4UfCTdIfIEKAl4doAiDy2Fui8Kyq70g1fTvtFB+1DMCUr2yqOVz0enBdE9HZzZxPbskgAqN+ /AtjXMl0/2NapiBvso8Y3+CqYJyauY00osOxT2vEiLId+ZLtiUxkSkQzRfQvVBcWMdEeii8/JONrE WUd6UcSrmE1UKQuRWHlEbeLQDco5UjEd4ZN7NBK/cZHFG4tnlfaaUC3nNSTjnvoSpqCJg1XOlNV4+ 0gIHZONb4Z7Q7wypg06g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixY1A-0003VC-NE; Fri, 31 Jan 2020 15:15:36 +0000 Received: from mail-yw1-xc41.google.com ([2607:f8b0:4864:20::c41]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixY17-0003UY-0O for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 15:15:34 +0000 Received: by mail-yw1-xc41.google.com with SMTP id f204so3961065ywc.10 for ; Fri, 31 Jan 2020 07:15:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dKqqlpA+EkYjXixe2TS2xK7+DyD3uNKJKEB0gcN7Kss=; b=zM91B1671UUjUt7B4XhWH0jKv4TzeL2OGkjsxZr6YetTM6KnFw900Ukel/cRquX0U6 /s2JfZpPbKUq/hyBOchczdnZP5oy6LHCnqrOZHmBiurBK22nhFbHBa0kNR9a7mmo7Ooy uXyyJl8Sw6q2bVInAbUXGqW1AXzLWuOuP7wcwOH0a406Qljft7LX0O9wfukjwAudPtZP NXoNfOkGncX1sLCF6A2cABmwx2anxLMJJj+k5cQQtCy9BdKCV+MVJFeKCh5ER4Mc2zJz wa+9WuxuAWSoLKZimoK3BKKytP0yZHM7LdE34XG08cOSXqyxkEWSXLPQyK9sCOJc/9ct zBrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dKqqlpA+EkYjXixe2TS2xK7+DyD3uNKJKEB0gcN7Kss=; b=BftUjpbXZLY4r3m7vtF4HdMLnawQSRLcCgJjb/OnhLM9rDB+sikSowdvQiQGJEueL+ nTSET0IQurqtBBrkB4VrQtxEdBVeYde5k09fwOXJpgrihAxT/Z/3AZzb6aCLecJH05gW 7YSrGjj0GmuoGlMKaOHKaC8ntg+me9QN4CbPss3tLOaGAoMtZ+ck8jIL1hIQ6cynijae NcGFUPFZVxEIZn/v2PEC2eTsNdQlZKocqlxz9hY1SeWNXv4dYg6/UkN7qYonWt3J9Vhc 8v138wQ0o7F3K97bs38MBsZKjtoXvu3HGQU+ciBvaSv4cpVqOfkdmyoFzJb79AnmWi9L k4rQ== X-Gm-Message-State: APjAAAVpAu2LkaTM0tjxvIBX6hkb5ng6ksi/blu8ZWrBRmpG9y2AL+Cy Ip5259JsOa3+DLurCnap+xO3GgOGvKe4LtjnDJogdQ== X-Google-Smtp-Source: APXvYqwsAGpGy6tic5rDdkc84xGCO6z1ubMWeOs7PNuXCUuhqHHO+HdXDIU+E2oTbdCyqF+X9ln5AxdumM3moQc/u34= X-Received: by 2002:a25:e790:: with SMTP id e138mr822292ybh.120.1580483731154; Fri, 31 Jan 2020 07:15:31 -0800 (PST) MIME-Version: 1.0 References: <20200128110916.GA491@e121166-lin.cambridge.arm.com> <12531d6c569c7e14dffe8e288d9f4a0b@kernel.org> <0680c2ce-cff0-d163-6bd9-1eb39be06eee@arm.com> <20200131142906.GG9639@lunn.ch> <20200131144737.GA4948@willie-the-truck> <20200131150929.GB13902@lunn.ch> In-Reply-To: <20200131150929.GB13902@lunn.ch> From: Jon Nettleton Date: Fri, 31 Jan 2020 16:14:55 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc To: Andrew Lunn X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_071533_098060_3CA29112 X-CRM114-Status: GOOD ( 16.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Calvin Johnson , stuyoder@gmail.com, nleeder@codeaurora.org, Hanjun Guo , Cristi Sovaiala , Ioana Ciornei , Will Deacon , Lorenzo Pieralisi , Marc Zyngier , Pankaj Bansal , Russell King , ACPI Devel Maling List , Len Brown , Jason Cooper , Andy Wang , Makarand Pawagi , Varun Sethi , Thomas Gleixner , linux-arm-kernel , Laurentiu Tudor , Paul Yang , Ard Biesheuvel , "" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Shameerali Kolothum Thodi , Sudeep Holla , Robin Murphy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jan 31, 2020 at 4:09 PM Andrew Lunn wrote: > > > Devicetree to the rescue! > > Yes, exactly. We have good, standardised descriptions for most of this > in device tree. And phylink can handle SFP and SFP+. Nobody has worked > on QSFP yet, since phylink has mostly been pushed by the embedded > world and 40G is not yet popular in the embedded world. > > > Entertaining the use of ACPI without any firmware abstraction for this > > hardware really feels like a square peg / round hole situation, so I'm > > assuming somebody's telling you that you need it "FOAR ENTAPRYZE". Who > > is it and can you tell them to bog off? > > The issues here is that SFPs are appearing in more and more server > systems, replacing plain old copper Ethernet. If the boxes use off the > shelf Mellanox or Intel PCIe cards, it is not an issue. But silicon > vendors are integrating this into the SoC in the ARM way of doing > things, memory mapped, spread over a number of controllers, not a > single PCIe device. > > Maybe we need hybrid systems. Plain, old, simple, boring things like > CPUs, serial ports, SATA, PCIe busses are described in ACPI. Complex > interesting things are in DT. The hard thing is the interface between > the two. DT having a phandle to an ACPI object, e.g a GPIO, interrupt > or an i2c bus. > > Andrew Just as a review reference, I have found an old attempted implementation documented here. https://github.com/CumulusNetworks/apd-tools/wiki -Jon _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel