Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4661382rdb; Fri, 15 Sep 2023 08:39:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHZIaK9PbXXfLHbNUdDPdKuD3o3Ma6CwHsUEShejTwm6Qk5Ck4m3br9+eDsIZThowGEh/3 X-Received: by 2002:a17:902:ce82:b0:1c3:e40d:ffec with SMTP id f2-20020a170902ce8200b001c3e40dffecmr2010930plg.47.1694792346545; Fri, 15 Sep 2023 08:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694792346; cv=none; d=google.com; s=arc-20160816; b=Po46FkLHu1YcmzHfo5m/HKyBzunVBMxeNtZ+fkbnj4P1XRfiKcu0frNUqtxoYm3pj6 q5Y6j7WsAlwR9c2Ba0Okc6I1fBLvnF7qH/BFEa4UdyizNey5fit1l5kKg9XeZadM6xV3 wT9Qz6VFb3QUakcVyVNv/bzxlK/TWZrefmZOQmIKs51UBgTn4IA4fo7yHxAvlhbrjCy1 rDBfFW/khvIyySvQQJzEmaEhEng4weS66kEOMIpauvlwPPSIjwaERTMRW7ptq5dmiMBc wYNmwu7dQvdbaPQ6v3bnt5bjrzY1OI7pRHZLxeKA6EuL4l5XKfa+W9FmMlDrLEirxGAJ fZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=rE6xW/2WHMs0E2TUENvf2vjndtCVxONTS97SHfF44zo=; fh=G7CZaNDFj/PbeKmD+F/O2Rhq4KU665xuBW1j2umnSd4=; b=z1wYjGNhPqr3mfTlZwfAzmlrU3K/mN4RWb/YSUq7jxsnVeqNyjMQcuXLitUntuqf+4 myNQJi+pmhAqyGFXdiM6ZhhYPiNmjylTq0TQwbmDyIpqmKBNuH9AWmyMzv5Jn88gzJO5 qUhZDy+7GrqsKbPQLcREeBb82sinnUvtbiVMvp0Ni9DkviKbAEouJ6Nfes/uXqcqrDnb /RDQOtjoN+49fzb24V+9E9cE6phsq6xnA8RQnree1yWSurA//nWmKWRaxFQ/GLTL5QlX Udif8HdaLbYOO35G87DbcfreuQsbpA1sJAaacOzrGdFWVGome5NuF7fnhsYe8Qw/a4z+ ngew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d1-20020a170902cec100b001b874c5f7a8si3641336plg.653.2023.09.15.08.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 0EB6382DAFD1; Fri, 15 Sep 2023 08:33:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236109AbjIOPc7 (ORCPT + 99 others); Fri, 15 Sep 2023 11:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236140AbjIOPcs (ORCPT ); Fri, 15 Sep 2023 11:32:48 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50898F3; Fri, 15 Sep 2023 08:32:42 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4RnJ8H6h8Qz6K6SZ; Fri, 15 Sep 2023 23:31:59 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) 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 16:32:39 +0100 Date: Fri, 15 Sep 2023 16:32:38 +0100 From: Jonathan Cameron To: Salil Mehta CC: Russell King , "Rafael J. Wysocki" , Ard Biesheuvel , 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?] Message-ID: <20230915163238.000054c8@Huawei.com> In-Reply-To: <9e327ad1128045fa80eebf327abaa8f0@huawei.com> References: <20230913163823.7880-1-james.morse@arm.com> <20230913163823.7880-28-james.morse@arm.com> <20230914155459.00002dba@Huawei.com> <80e36ff513504a0382a1cbce83e42295@huawei.com> <9e327ad1128045fa80eebf327abaa8f0@huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500005.china.huawei.com (7.191.163.240) 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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:33:04 -0700 (PDT) On Fri, 15 Sep 2023 16:17:21 +0100 Salil Mehta wrote: > Hi Russel, > Thanks for highlighting your concerns. > > > From: Russell King > > Sent: Friday, September 15, 2023 2:43 PM > > To: Salil Mehta > > Cc: Rafael J. Wysocki ; 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 09:34:46AM +0000, Salil Mehta wrote: > > > > > 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 so it is wrong. > > > > > > Or maybe, specification has not been updated yet. code-first? > > > > What is the point in speculating. If you want to speculate about it, > > fine, but please don't use speculation as a reason that "oh we need > > to sort this out before we can merge the patches". > > [already replied in other thread but repeating it here] > > Sorry, I am not aware but I was suggesting this. Can we have this > done for ARM first because there is a legitimate use-case. This > can be done in parallel while other patches are getting reviewed. > It would be great if they get accepted even in the current form. > > > > This is precisely why engineers are bad at producing products. They > > like to continually tweak the design, and the design never gets out > > the door. You need someone who is a project manager to tell engineers > > when to stop. Without a project manager to do that, eventually the > > project fades into insignificance because it becomes no longer relevant > > or has its funding cut. > > > > Hotplug VCPU on aarch64 feels exactly like that - it seems to be an > > engineer project that is just going to for-ever rumble on and never > > actually see the light of day. > > > Sometimes things are not in single persons control. Yes, it is > frustrating, I do understand that. > > > > So please - stop speculating and lets get vCPU hotplug *actually* > > delivered and usable. Even if it's not 100% perfect. > > We need to decide what is the criteria of acceptability and it can > vary across organizations. It depends upon internal requirements. > The issues what I pointed are, > > 1. Legacy OS will not boot on latest platform with hotplug support. > - Try running older windows on ARM platform with hotplug support. > - older windows will only see boot cpu with online-capable bit. > - Will windows use _OSC to check compatibility? > - We have verified this with older Linux and it only shows 1 CPU. > 2. Hot(un)plug of cold-booted CPUs. > - Its use-case is subjective. Maybe you can throw light on this. > > With current composition of bits both 1 & 2 cannot be supported > simultaneously. > > It is perfectly okay to live with them while clearly indicating > what we intend to support or are in process of supporting it. > But we do need an open discussion about how to proceed. This is > to avoid surprises later on. > > BTW, I am just trying to make every one aware of the problems. Step 1 - just allow growing (and shrinking back to initial enabled cpus). That is fine with current specification and legacy OS. We only assume CPUs that are hotplugged can later be removed. That covers most use cases. So what effectively what Russell said. Enable what we can with the specifications as they stand before getting distracted by modifying them (again). Jonathan > > Many thanks! > > Best regards > Salil. > > >