From nobody Sat Nov 23 09:37:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1730593323046380.34962094026025; Sat, 2 Nov 2024 17:22:03 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 12277ECCF1; Sun, 3 Nov 2024 00:21:56 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id BA4C9ECCE7 for ; Sun, 3 Nov 2024 00:21:40 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Sat, 02 Nov 2024 17:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730593300; x=1731198100; darn=seabios.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zfsMdV7caBrLPnB81QJ5+qCkwSIl7J7e93lot7gM898=; b=cA5yMQ9qUnmaGiai50jPy1eFgOaP98nnJTRoGIVYbA+/4A7vy8K6elJuyV74d+Z8Q4 r+nu/ogZh/+JbdNUuA+U7OuiIDHCghJjwgv1esvi4/VSD8qJL704rqhd8B3v9ZHGlJma RbmXLwvgZ2J9hsQKeNSpIgg3swUWONA5IOkI/dl7G08bJQCtwEK/sUTVyrracL9tLJ7M d9XqL+pmiiCK9vlNMWlECotx36yxCnZag5mJCFCW8kl/hSHR5FAkMiPoM9IVyepsbVZD 6W/GP4eJ7/wYe7qrRCYqUVSGVBjXFWwxm0JTAz4ctf+lHQm1xqDpY/UsaBkGepD3Pe+H q0fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730593300; x=1731198100; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zfsMdV7caBrLPnB81QJ5+qCkwSIl7J7e93lot7gM898=; b=k8rkocAgrVP7/z8ptIP31EHRln33JKnJq9e+qBVpxpUWHIDEc/bS2n/tFPgQrYHJNF Akp2/nisP3ol28E9NoMy3xpm252RuHWbnitfUKvYs6R8b4eai4IX2WAx32DXZ7Ds9v7Q rYlj59RFs4fBH99g2rYUW8iIxTs+z6SF/E86OP2q5bPydEzGky4/iFeRk6N6HKGAQLnu 9Z0gF6siQpCuO3rBSAyl/w2jf4NF7mB1ygpWWZZyHBlvRqAoDfQzebhZaMlvyAtWnSnp YxJbJk61p6GhuBQTIV+kJsZWa6iWYe8GoQbnyjYdAeqTsZd2iPLXbhLafjTtKWukzUYs HFWA== X-Gm-Message-State: AOJu0YwiwHCt2ibba3KMWwb1xQLLdb/gJ94VinV7H3FwYmEqzVguzZMq 3stGrUIJcekBZbxWEDR2zV15Qt9Soc0KwGIjhXg7Q/GHUuyEz9IeATBY0FscDsPnbRkJZPb5mlf YyKpKyJ3l0UrqW1TKlSGsyjsWT0biSHU6fV8= X-Google-Smtp-Source: AGHT+IH1tUAYyZOVvSMF/JqFq3ytzppkVeTTBUs4oS0nvbEuHuvuX3yHjoS8GiKBQNbgSjyeiR1fnomkMBp3wXVO4GE= X-Received: by 2002:a17:907:9708:b0:a9a:47f9:c3c6 with SMTP id a640c23a62f3a-a9e5089e9a5mr1063119166b.6.1730593299673; Sat, 02 Nov 2024 17:21:39 -0700 (PDT) MIME-Version: 1.0 From: Omar Berrow Date: Sat, 2 Nov 2024 20:21:28 -0400 Message-ID: To: seabios@seabios.org Message-ID-Hash: 3OXNRUKIGIM67GVOIL6CIW2DKCCHKFTS X-Message-ID-Hash: 3OXNRUKIGIM67GVOIL6CIW2DKCCHKFTS X-MailFrom: omarkberrow@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] [PATCH] resume: reset mmconfig to zero List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1730593324057116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Omar Berrow --- src/hw/pci.c | 2 +- src/resume.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/hw/pci.c b/src/hw/pci.c index 8eda84b2..dfe4d92a 100644 --- a/src/hw/pci.c +++ b/src/hw/pci.c @@ -14,7 +14,7 @@ #define PORT_PCI_CMD 0x0cf8 #define PORT_PCI_DATA 0x0cfc -static u32 mmconfig; +volatile u32 mmconfig; static void *mmconfig_addr(u16 bdf, u32 addr) { diff --git a/src/resume.c b/src/resume.c index fb0b8a89..10b873c3 100644 --- a/src/resume.c +++ b/src/resume.c @@ -96,6 +96,15 @@ s3_resume(void) return; } + make_bios_writable(); + // reset mmconfig to make sure that we don't use PCIe to + // resume PCIe + dprintf(1, "resetting mmconfig\n"); + extern volatile u32 mmconfig; + mmconfig =3D 0; + dprintf(1, "mmconfig: 0x%x\n", mmconfig); +// make_bios_readonly(); + pic_setup(); smm_setup(); smp_resume(); --=20 2.45.2 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org