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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 B0DA0C4727C for ; Tue, 29 Sep 2020 14:32:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64F592074F for ; Tue, 29 Sep 2020 14:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbgI2Ocs (ORCPT ); Tue, 29 Sep 2020 10:32:48 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33726 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgI2Ocr (ORCPT ); Tue, 29 Sep 2020 10:32:47 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kNGgJ-00GlXJ-G4; Tue, 29 Sep 2020 16:32:39 +0200 Date: Tue, 29 Sep 2020 16:32:39 +0200 From: Andrew Lunn To: Andy Shevchenko Cc: Calvin Johnson , Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Russell King - ARM Linux admin , Jon , Cristi Sovaiala , Ioana Ciornei , Florian Fainelli , Madalin Bucur , netdev , "linux.cj" , ACPI Devel Maling List , nd Subject: Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY Message-ID: <20200929143239.GI3950513@lunn.ch> References: <20200715090400.4733-1-calvin.johnson@oss.nxp.com> <20200715090400.4733-2-calvin.johnson@oss.nxp.com> <20200929051703.GA10849@lsv03152.swis.in-blr01.nxp.com> <20200929134302.GF3950513@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Tue, Sep 29, 2020 at 04:55:40PM +0300, Andy Shevchenko wrote: > On Tue, Sep 29, 2020 at 4:43 PM Andrew Lunn wrote: > > On Tue, Sep 29, 2020 at 10:47:03AM +0530, Calvin Johnson wrote: > > > On Fri, Sep 25, 2020 at 02:34:21PM +0100, Grant Likely wrote: > > ... > > > Newbie ACPI question: Does ACPI even support big endian CPUs, given > > its x86 origins? > > I understand the newbie part, but can you elaborate what did you mean > under 'support'? > To me it sounds like 'network stack was developed for BE CPUs, does it > support LE ones?' Does ACPI define the endianness of its tables? Is it written in the standard that they should be little endian? Does Tianocore, or any other implementations, have the needed le32_to_cpu() calls so that they can boot on a big endian CPU? Does it have a standardized way of saying a device is big endian, swap words around if appropriate when doing IO? Is it feasible to boot an ARM system big endian? Can i boot the same system little endian? The CPU should be able to do it, but are the needed things in the ACPI specification and implementation to allow it? Andrew