From nobody Fri May 17 11:05:40 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=sysgo.com Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1705010941096842.024156397092; Thu, 11 Jan 2024 14:09:01 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id AAA9E21C38; Thu, 11 Jan 2024 22:08:54 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 49A77203A7 for ; Tue, 9 Jan 2024 15:34:26 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mail.sysgo.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rNE7T-0005ka-2a for seabios@seabios.org; Tue, 09 Jan 2024 16:34:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sysgo.com; s=k1; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: Message-ID:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TA4C/22Lau1s9+byrRSdsKveEgD4ZTqA5CUQoau31dc=; b=Im1WX3sNCC83NiWLFSmOH/GbZR +4YRoBAlECABtEYmSzqv235YTsATFLeBYUZP+vdSo003laJh/1ZWFoXtnYEYf7N43lbhO0na4a1sU nncQpG4GM8VQe+L4lrezY/CyviBTS+RYgAjMMAL34pZvy0anPeG36ZRf2L9knQF61DeY4Zpo/RH3f DnBUYEfdliGIMizmbl9LYmG5qfXhN3KN/kmeln3XzD+mXwtno+bBWUa02Yy/CA3sa9z50gOcTA8Za 8uOaToFaXn2vIiSfm75/ufBjCzTkOAQsiq2w58hlKMQ14Bm94wEufDH6n5gEPNXe+ibHC5MEPblYe JmyOH4+A==; Date: Tue, 9 Jan 2024 16:34:23 +0100 (CET) From: =?UTF-8?Q?Andrej_Krut=C3=A1k?= To: "seabios@seabios.org" Message-ID: <1531455205.6484.1704814463638@ox.sysgo.com> MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-Originating-Client: open-xchange-appsuite X-MailFrom: andrej.krutak@sysgo.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: EMT3BHA5EJYHDDO3NTL365F5U6ETOBAO X-Message-ID-Hash: EMT3BHA5EJYHDDO3NTL365F5U6ETOBAO X-Mailman-Approved-At: Thu, 11 Jan 2024 22:08:39 +0000 X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] [PATCH] Add AHCI Power ON + ICC_ACTIVE into port setup code 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: 1705010943254100001 Content-Type: text/plain; charset="utf-8" Windows appears to put the AHCI port into 'Partial power management state' during reboot, the command puts it back into 'active state'. AHCI/1: link down 0x00000231 (SCR STAT register) -> AHCI/1: link up 0x00000133 Signed-off-by: Andrej Krutak andrej.krutak@sysgo.com --- src/hw/ahci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hw/ahci.c b/src/hw/ahci.c index 3fa845aa..4f0f640a 100644 --- a/src/hw/ahci.c +++ b/src/hw/ahci.c @@ -444,7 +444,8 @@ static int ahci_port_setup(struct ahci_port_s *port) ahci_port_writel(ctrl, pnr, PORT_CMD, cmd); =20 /* spin up */ - cmd |=3D PORT_CMD_SPIN_UP; + cmd &=3D ~PORT_CMD_ICC_MASK; + cmd |=3D PORT_CMD_SPIN_UP | PORT_CMD_POWER_ON | PORT_CMD_ICC_ACTIVE; ahci_port_writel(ctrl, pnr, PORT_CMD, cmd); u32 end =3D timer_calc(AHCI_LINK_TIMEOUT); for (;;) { --=20 2.34.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org