Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4447600rdb; Fri, 15 Sep 2023 02:27:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5tuDWpW4fGWHxt8+h6tZ5ubm9lvn2OH0EanMnBjjylQXIeuHj59okkuLTcjjGMpFVVa6j X-Received: by 2002:aa7:8884:0:b0:690:3b59:cc7a with SMTP id z4-20020aa78884000000b006903b59cc7amr1381753pfe.23.1694770062478; Fri, 15 Sep 2023 02:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694770062; cv=none; d=google.com; s=arc-20160816; b=mOKPPkrj5HJwJ6zhZvKdwK7TccwXdSCNEDGhQj0lvbrsUzVQM+nboz1g2R4LMQWdCa bhq22Wvr54NWc6rUavRoxo5/tpVh5sPSCU0KnyWzKaWyfkWNCeEj8+Y0hA4wqoZU+FZb c0sL70Esu8v8qVdy/St7PQbhBpmnbKThz1dQF3+Dy9Dk2mue1jmD65Eq4q+8jEHB4HXk 7vtoNNstOo8+xFPhyLMeMQMkYTl0vCamEQPIaAgK2E4BjWtZ94I/+jUAGeX8y078nOrN +AEU05YB5lTRXki97a7lP8vATkFkh4iAS3Tw2D824qU+bv5qWshBYXWY1o+MJX8qKW0+ 0SXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=bodqsmXtbbIbDvVu8YioaJOw86ItpBPSdrxaB+bZEXw=; fh=uOvmr/3hw2N2kz3L/nrE5IoO3TfP9xirjA4Zx4RpuQg=; b=BG8vWJJzQgPmyYT7uX6/j+gRuHsLayOUdqluOyvtWS9CkDtAPh6gmmgf/ME21YTGAR usOsH/X87iAVxPSIBr0JgFvvMUQXSrhwNNKiu5mUwpAj6vd5wSaONnw1GkF37/B5qxKV sMoR/Zn2s0VVX1zCruRX3aJ36E/C0aXJ2RygBMrGC2S12hcbKmBQ6JCJnehRHEzQTDUZ 1jilXZmm6EaxVSTxeJvlP5IvplCQ2RgJhSEazR0RLIotczVP95qIHd2xGdwLP9Fvimu5 38Epqx1VWjF024gwSwSuys3a9ZW3HmXlRHtSMIhk1mtBcJyQTz+BTj9HNu8Atl6LfXqO whgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s199-20020a632cd0000000b0056ba5e3f604si2929042pgs.352.2023.09.15.02.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4EBEB833E2D4; Fri, 15 Sep 2023 02:22:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233679AbjIOJWu convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Sep 2023 05:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233664AbjIOJW3 (ORCPT ); Fri, 15 Sep 2023 05:22:29 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1206730C3; Fri, 15 Sep 2023 02:21:45 -0700 (PDT) Received: from lhrpeml100002.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Rn7wH5Jlrz6K6nl; Fri, 15 Sep 2023 17:21:03 +0800 (CST) Received: from lhrpeml500001.china.huawei.com (7.191.163.213) by lhrpeml100002.china.huawei.com (7.191.160.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 15 Sep 2023 10:21:42 +0100 Received: from lhrpeml500001.china.huawei.com ([7.191.163.213]) by lhrpeml500001.china.huawei.com ([7.191.163.213]) with mapi id 15.01.2507.031; Fri, 15 Sep 2023 10:21:42 +0100 From: Salil Mehta To: Russell King CC: Ard Biesheuvel , Jonathan Cameron , James Morse , "linux-pm@vger.kernel.org" , "loongarch@lists.linux.dev" , "linux-acpi@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-riscv@lists.infradead.org" , "kvmarm@lists.linux.dev" , "x86@kernel.org" , "Jean-Philippe Brucker" , "jianyong.wu@arm.com" , "justin.he@arm.com" Subject: RE: [RFC PATCH v2 27/35] ACPICA: Add new MADT GICC flags fields [code first?] Thread-Topic: [RFC PATCH v2 27/35] ACPICA: Add new MADT GICC flags fields [code first?] Thread-Index: AQHZ5mDqpYLh+nkhC0mj9mPBt3XEBLAZ5MMAgAB0lICAAAsFgIAAEfIQgADzSoCAAC7oAA== Date: Fri, 15 Sep 2023 09:21:42 +0000 Message-ID: References: <20230913163823.7880-1-james.morse@arm.com> <20230913163823.7880-28-james.morse@arm.com> <20230914155459.00002dba@Huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.174.239] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:22:51 -0700 (PDT) Hi Russel, > From: Russell King > Sent: Friday, September 15, 2023 8:09 AM > To: Salil Mehta > Cc: Ard Biesheuvel ; Jonathan Cameron > ; James Morse ; linux- > pm@vger.kernel.org; loongarch@lists.linux.dev; linux-acpi@vger.kernel.org; > linux-arch@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- > kernel@lists.infradead.org; linux-riscv@lists.infradead.org; > kvmarm@lists.linux.dev; x86@kernel.org; Jean-Philippe Brucker philippe@linaro.org>; jianyong.wu@arm.com; justin.he@arm.com > Subject: Re: [RFC PATCH v2 27/35] ACPICA: Add new MADT GICC flags fields > [code first?] > > On Fri, Sep 15, 2023 at 02:29:13AM +0000, Salil Mehta wrote: > > On x86, during init, if the MADT entry for LAPIC is found to be > > online-capable and is enabled as well then possible and present > > Note that the ACPI spec says enabled + online-capable isn't defined. > > "The information conveyed by this bit depends on the value of the > Enabled bit. If the Enabled bit is set, this bit is reserved and > must be zero." > > So, if x86 is doing something with the enabled && online-capable > state (other than ignoring the online-capable) then technically it > is doing something that the spec doesn't define - and it's > completely fine if aarch64 does something else (maybe treating it > strictly as per the spec and ignoring online-capable.) I would suggest that we should concentrate on what is actually required. The fact of the matter is there is no need to keep ACPI MADT.GICC.Enabled and ACPI MADT.GICC.online-capable bits mutually exclusive. (please correct my understanding here if I am wrong here) It is a different matter that x86 has implemented above requirement first for their x2APIC and spec are still not reflecting what has been implemented as part of the code. (I would add, for whatever reasons) On ARM we have copied something from x86 ACPI Specification which has not been updated yet. (why it is not updated? Maybe x86 folks can clarify more on this?). Even on ARM, mutual exclusiveness of the bits is not required. But does it breaks anything on ARM to *not* have mutual exclusiveness. AFAICS, no, but ARM Arch guys can confirm this?) If bits are *not* required to be mutually exclusive on either platforms x86/ARM then, I think, it makes sense to update ACPI specification for both of the platforms. Thanks Salil.