From patchwork Tue Jun 16 00:36:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 11606089 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6CD6390 for ; Tue, 16 Jun 2020 00:39:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3CB2E20768 for ; Tue, 16 Jun 2020 00:39:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="BzmvhXrn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3CB2E20768 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=zx2c4.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:44338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkzdg-0002J7-Eg for patchwork-qemu-devel@patchwork.kernel.org; Mon, 15 Jun 2020 20:39:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkzb4-0007Ak-Ni for qemu-devel@nongnu.org; Mon, 15 Jun 2020 20:37:02 -0400 Received: from mail.zx2c4.com ([192.95.5.64]:56045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkzb3-00048o-3Z for qemu-devel@nongnu.org; Mon, 15 Jun 2020 20:37:02 -0400 Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 6c5213c7; Tue, 16 Jun 2020 00:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=mail; bh=pmc0MsIW43s8iPyo3c0JpQpRfcE=; b=BzmvhXrn2E1wQblaWoV6 NnARYyrTM/dquR+KwAqbBWe1Gc0F1cHZyLuKwH2N0oDaBgxCLljWs2s/cmek3Up5 ArLK36Q2rYRl1gLpIGN3HDxkGtkSMhHlG4mN0QxHBn34s99Nnl/v7W/1zK73wiqS gOUWNmkuw7GvWGxY4XGZAdMYl/y8vRPnU81TkMLpvRGQwwdyWT0ANiNBPE6TtrvZ wZU735aSP+yeD/M1W6RN+0wRVr8qUp5UOkvucBsIajAbUeUHukn8MibsW5/9bzAp 7c/bZokbDSaYgjj98/GMkC3IouSnrBnzsglnCb0a9aHnP7YaK1MXtgDfyaFyvPoH 6w== Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id f15f786c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 16 Jun 2020 00:19:06 +0000 (UTC) From: "Jason A. Donenfeld" To: qemu-devel@nongnu.org, kraxel@redhat.com Subject: [PATCH] hw/acpi: specify 64-bit acpi table Date: Mon, 15 Jun 2020 18:36:54 -0600 Message-Id: <20200616003654.1058035-1-Jason@zx2c4.com> MIME-Version: 1.0 Received-SPF: pass client-ip=192.95.5.64; envelope-from=Jason@zx2c4.com; helo=mail.zx2c4.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/15 20:37:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason A. Donenfeld" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" SSDTs cannot address 64-bit physical addresses in 32-bit tables, so we increment the revision to '2' so that these larger addresses are addressable. This matters because the DSDT revision represents the maximum capability of all other SSDTs. This is also what arm does. Signed-off-by: Jason A. Donenfeld --- hw/i386/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 900f786d08..51420d90a8 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2073,7 +2073,7 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, g_array_append_vals(table_data, dsdt->buf->data, dsdt->buf->len); build_header(linker, table_data, (void *)(table_data->data + table_data->len - dsdt->buf->len), - "DSDT", dsdt->buf->len, 1, NULL, NULL); + "DSDT", dsdt->buf->len, 2, NULL, NULL); free_aml_allocator(); }