Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pPKxf-0006gB-1U for mharc-qemu-riscv@gnu.org; Tue, 07 Feb 2023 05:12:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPKxS-0006AS-9P for qemu-riscv@nongnu.org; Tue, 07 Feb 2023 05:12:16 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPKxQ-0003ot-1x for qemu-riscv@nongnu.org; Tue, 07 Feb 2023 05:12:13 -0500 Received: by mail-pl1-x636.google.com with SMTP id u9so10865937plf.3 for ; Tue, 07 Feb 2023 02:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=qCC/6ycsZZB3tzhI/SogW4IH9/TPK6tsBxHCQ7Wvksg=; b=P0270ZMXDYfxBf9ngr82xuv7XCHpSfaPh+7ZQSsfLAUGqtGVxi0zCRkf3zoSGSZfoX SCy5hXOcj4tPGpaP+Jt3JqQNjij5ct2YN0Rs1LzFasYeUVUlOqshNR63yyOB1XeW9jpY PqdzMWdOSipDUFu3kBS0FreC7zfc5SMTD5aTb3XZKo95yZWrlIJRcipwlXp//MDyVfqr MJ7KAv5FMvhm7okuNVCneWu07HI5nlnK3nk+DgUE3M0dOGDHHBpH1N/nCiYrRidGRTiq pb1UFArNhpwtbdGQSvgE6rH5SkQsmSDXU+o2UGsMEO7RCc4EuHGik1h6QRX6+28AtU8Q T1kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qCC/6ycsZZB3tzhI/SogW4IH9/TPK6tsBxHCQ7Wvksg=; b=3mQzn7U6zsgZTKtVqopRf8gZWJAYVFMFETmQc88VPmo8DbQep+pzkx22RUSe37V16M JamO9tuey5nGsER5mKV8cPxLj1G7E5Fd8WtTmahXb0Ea7x0p4zDUL803bMjNAJJ0LInx 6NiqVm8UMKFy8PNDok97XYgheO8OXp2RdDv3e5OQ9aUq5OjUVDeUri7fX54GarxozVwl 4/0UPwJS3NAXxytZq9Dj9UTIuScY1ovBJ86BOT98bF3c57nuh71zJqfYzQQXzxFFRBMG 33es8yXnmQvQp1AoaVK6MprcCiAmI9mvEPXbFFKgWL2KjPGkAeNnbgOo6CKv/OXYVN1z p8Zw== X-Gm-Message-State: AO0yUKWQZB7Rozy9yEySzuuG/SEA4VeKI26JelSpb8QCuDcXuXtovf3t 70BlMVrVP3vMqaK9O0bHPZbgyA== X-Google-Smtp-Source: AK7set8XeNXaL3EFUz54Tf3nC/GHOLaSMlvKyCoxzqYPtRhlsXiJnafC53oxfVmTc1c9FlO+0xp1iw== X-Received: by 2002:a17:90a:f2d4:b0:230:d3a1:ba03 with SMTP id gt20-20020a17090af2d400b00230d3a1ba03mr3329559pjb.43.1675764730363; Tue, 07 Feb 2023 02:12:10 -0800 (PST) Received: from sunil-laptop ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id z19-20020a17090ad79300b00230da56ddecsm1685727pju.27.2023.02.07.02.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 02:12:10 -0800 (PST) Date: Tue, 7 Feb 2023 15:42:01 +0530 From: Sunil V L To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: Gerd Hoffmann , Andrea Bolognani , Palmer Dabbelt , Alistair Francis , Bin Meng , qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Andrew Jones , Anup Patel , Atish Kumar Patra , Ani Sinha , "Michael S. Tsirkin" , Markus Armbruster , Igor Mammedov , Thomas Huth , Bernhard Beschow Subject: Re: [PATCH 02/10] hw/riscv/virt: Add a switch to enable/disable ACPI Message-ID: References: <20230202045223.2594627-1-sunilvl@ventanamicro.com> <20230202045223.2594627-3-sunilvl@ventanamicro.com> <20230206125610.nmo2bbbd5kosihav@sirius.home.kraxel.org> <25504aa3-20e3-d7e6-4111-c956370949ba@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25504aa3-20e3-d7e6-4111-c956370949ba@linaro.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=sunilvl@ventanamicro.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2023 10:12:18 -0000 On Tue, Feb 07, 2023 at 09:50:29AM +0100, Philippe Mathieu-Daudé wrote: > On 6/2/23 13:56, Gerd Hoffmann wrote: > > On Mon, Feb 06, 2023 at 12:18:06PM +0100, Philippe Mathieu-Daudé wrote: > > > On 6/2/23 11:54, Andrea Bolognani wrote: > > > > On Thu, Feb 02, 2023 at 10:22:15AM +0530, Sunil V L wrote: > > > > > + object_class_property_add(oc, "acpi", "OnOffAuto", > > > > > + virt_get_acpi, virt_set_acpi, > > > > > + NULL, NULL); > > > > > + object_class_property_set_description(oc, "acpi", > > > > > + "Enable ACPI"); > > > > > > > > The way this works on other architectures (x86_64, aarch64) is that > > > > you get ACPI by default and can use -no-acpi to disable it if > > > > desired. Can we have the same on RISC-V, for consistency? > > > > > > -no-acpi rather seems a x86-specific hack for the ISA PC machine, and > > > has a high maintenance cost / burden. > > > > Under the hood it is actually a OnOffAuto machine property and -no-acpi > > is just a shortcut to set that. > > > > > Actually, what is the value added by '-no-acpi'? > > > > On arm(64) the linux kernel can use either device trees or ACPI to find > > the hardware. Historical reasons mostly, when the platform started > > there was no ACPI support. Also the edk2 firmware uses Device Trees > > for hardware discovery, likewise for historical reasons. > > > > When ACPI is available for a platform right from the start I see little > > reason to offer an option to turn it off though ... > > Yeah I concur. There is no point in disabling ACPI on the RISCV virt > machine IMO. Thank you all for the inputs. I am fine to keep it enabled by default. Do you mean we don't need the switch at all even for some testing/debugging purpose? Thanks, Sunil