Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3113493iog; Mon, 20 Jun 2022 11:36:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tD0Gv+6KKCKPy0E2gsDwsD5TLixi7KMklcj4L32uxUZ1WppkTzP9AflaI+hLNQ0omgWW2+ X-Received: by 2002:a17:907:6ea4:b0:711:d106:b93a with SMTP id sh36-20020a1709076ea400b00711d106b93amr22403212ejc.189.1655750196323; Mon, 20 Jun 2022 11:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655750196; cv=none; d=google.com; s=arc-20160816; b=JJhtH8MDyj/aSvhdZ95xZQmXIQjFw5G+mPYD4WHlE2wjvoW0xCak88On4k1WikczZf 4OBMd9vORnb0minydLMJwLY7tz6zIW1v7vyn8b79UWuwKuzG8jVGt9RpFdWS27uC7XGc F2jocMqlW2Z4iVIfIMtA2A734ghtShvxtymz3cRh+Pwy1uU7eBoghXItFInOQSoJnZ7Z OxUxKp6v7Y2L/CABtaGTmfp1Xsd9IZNpVOfp8GSubhfRVRzBW+NeBZWCm1H+wQzvCJRY 9kLlpa4PhXCuF5MndOVkJMMtuRJpqY+FiKBs8OMWeWb+XNYnm1aezI+IjxmyCRGpwbT+ Z54w== 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=mTj4uZn0PoNW3alCMAhf9oZOxu+TdVk100uI5dBOjiY=; b=B/qqCLI7LjEWxmoFewdgGAU9QmpMSmYaj8PlJVeFLKPzK021jmFdgVPWgT9GePHTr8 oJ8eD6uWmzf7sc45Pa77sm043JD05CmPkzJDPM6llAZ9Pds0c9MdybbZQJLMe7P0axzK c+CGXtlOec7gltMeeRpWfBfKmyv5TeT9wH5aLmDi8ULgKjGOfiAnAvrk8RBSCFtPlWTP vZGAXz41+Uoqqtp7F0GCFEZ2qt419bU1wbh2CctP6sibaueS11kwvyHgohQG/GK3mH3m TsFalxToA0i+0Gq40ynpJs1CB5+XjuZnOQSUtsqk/fY9z09WEuuy/l1PWAEq3OHDacAh mgmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EIt3eVch; 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 d25-20020a1709067a1900b006feb7f30ef7si12164454ejo.58.2022.06.20.11.36.10; Mon, 20 Jun 2022 11:36:36 -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=@lunn.ch header.s=20171124 header.b=EIt3eVch; 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 S242926AbiFTR4K (ORCPT + 99 others); Mon, 20 Jun 2022 13:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244585AbiFTRzx (ORCPT ); Mon, 20 Jun 2022 13:55:53 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E60E61ADB0; Mon, 20 Jun 2022 10:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=mTj4uZn0PoNW3alCMAhf9oZOxu+TdVk100uI5dBOjiY=; b=EIt3eVchZ8naQ87vKBgaewgOj8 Ni9RO6XRwdW+XPRTJ71XojD0XnDFuNjeoffidiNkYcEA1q3A4djw6apEH8wllWXTbw+YJss5U9PDk fvCPqTCYfzhE84oiGJBlBOApAYdVnpcWHB7SmWb1CDeoLnH4s+DEi9kqeYcueHeWfjXY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o3Lcm-007dY3-5k; Mon, 20 Jun 2022 19:55:44 +0200 Date: Mon, 20 Jun 2022 19:55:44 +0200 From: Andrew Lunn To: Marcin Wojtas Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, andriy.shevchenko@linux.intel.com, lenb@kernel.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, hkallweit1@gmail.com, gjb@semihalf.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, upstream@semihalf.com Subject: Re: [net-next: PATCH 00/12] ACPI support for DSA Message-ID: References: <20220620150225.1307946-1-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220620150225.1307946-1-mw@semihalf.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Mon, Jun 20, 2022 at 05:02:13PM +0200, Marcin Wojtas wrote: > Hi! > > This patchset introduces the support for DSA in ACPI world. A couple of > words about the background and motivation behind those changes: > > The DSA code is strictly dependent on the Device Tree and Open Firmware > (of_*) interface, both in the drivers and the common high-level net/dsa API. > The only alternative is to pass the information about the topology via > platform data - a legacy approach used by older systems that compiled the > board description into the kernel. Not true. There are deployed x86 systems which do this, and they are fully up to date, not legacy. There are however limitations in what you can do. So please drop this wording. > The above constraint is problematic for the embedded devices based e.g. on > x86_64 SoCs, which are described by ACPI tables - to use DSA, some tricks > and workarounds have to be applied. It would be good to describe the limitations. As i said, there are x86 systems running with marvell 6390 switches. > It turned out that without much hassle it is possible to describe > DSA-compliant switches as child devices of the MDIO busses, which are > responsible for their enumeration based on the standard _ADR fields and > description in _DSD objects under 'device properties' UUID [1]. No surprises there. That is how the DT binding works. And the current ACPI concept is basically DT in different words. Maybe the more important question is, is rewording DT in ACPI the correct approach, or should you bo doing a more native ACPI implementation? I cannot answer that, you need to ask the ACPI maintainers. > Note that for now cascade topology remains unsupported in ACPI world > (based on "dsa" label and "link" property values). It seems to be feasible, > but would extend this patchset due to necessity of of_phandle_iterator > migration to fwnode_. Leave it as a possible future step. We really do need to ensure this is possible. You are setting an ABI here, which everybody else in the ACPI world needs to follow. Cascaded switches is fundamental to DSA, it is the D in DSA. So i would prefer that you at least define and document the binding for D in DSA and get it sanity checked by the ACPI people. Andrew