From nobody Wed Apr 02 20:14:40 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZSbgh5VmTz5rXv0; Wed, 02 Apr 2025 20:14:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZSbgh4W4Wz3VgK; Wed, 02 Apr 2025 20:14:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743624880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2lggKKs0XBJZ9ejgzvFcAMuxYoH2G3Q5L44SCOROrb8=; b=vH8Ens4Y70B5D+jAfKENxlzfVxv3HpvoX89XL69Mel5VMWQwQjthza1NH9jwxjSnjgJaoD 0NLNKvjSJeFgw8VGbboM19ZSOSX5L9Z5UuniTCOl2kzvMKhULr6+rc6OD/MC6LGTJcK9O/ T4GUuy7V82shnVba1FXKFxQ8yexhiQFWnDH44pF0rPp7PBFzXMna+OfkrhlZoQho5a8ggM ASPl9gQr+8jr+S1dzla2xNgESqaTRiVaTGeLTrQs3NG5DQ1ho2ASJ4pBTTdmB0JA/orRLU Q5nrTCV62lweEXSkzkNYMzsFo1C5mcjjmwgfD60v+qewt0/OyUlCVat1MnSoFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743624880; a=rsa-sha256; cv=none; b=iN4RY3RAS3dcjpSz/DKizs7E1V4y3HsvLa1gEsuRKskiJYZegPy3Z28zNKDehZciIUeifa 14yy9eznUvRkNM1Nf1W2tT6SIRWbhkPizpJSmckHlLIA2YpvV5HNk8oygOlkd9jFxSjqM4 04IpYa0GruvI9xXtgLxbxEzM/Gs/6zESVmwsyUCgDjxvc6UbaWDHObNmd9IMDCAbeyPgF3 PkuxYUM9s8YDlP4tvr78qJ5bvyRLELtkf3/IRdqijCK/0rBvAjQ2/nTa7AtCu+MBYFJP6R XiNYXMiKSau+AIPNLlfxxOd3KCEFAz+DOJn7/p6/kGM25AyfQJ9p870FJvNj+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743624880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2lggKKs0XBJZ9ejgzvFcAMuxYoH2G3Q5L44SCOROrb8=; b=NWWBoSvWmgUgmZa7fP2ctjQItofE2QBeTxM2NTWDg5ppYhdLmgVYOXxpAfjmGhIq4Nv2Ti EbvX9hsAROvWPzyDDAveCDwjSo8u1k0VHjVWRJTQYsBZ7rWc/WAqWzfQQ/nGZ5pjh6MNnm 86jZrUoYcll7+DW25TbIKhfYsCHpFPF5MMWarrb0BV/2y348OoS26mZalGoGece7iRvpY9 7R8J+xIOZ05i+A0d3Vfd0uY305CRl63v1JTPhVz4i/Re2pc+ZbqZsVsB373j9G6NhzAms6 Ex2zGLtn+vV+UTkW3sPzvONUmLMCBA25V3aCFWFaOrBKnvEempx5VpgfRrOqQA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZSbgh3qCzzWrJ; Wed, 02 Apr 2025 20:14:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 532KEe25024298; Wed, 2 Apr 2025 20:14:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 532KEeow024295; Wed, 2 Apr 2025 20:14:40 GMT (envelope-from git) Date: Wed, 2 Apr 2025 20:14:40 GMT Message-Id: <202504022014.532KEeow024295@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: 80febaa1714e - main - EC2: Set PCIe eject timeout to 0 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 80febaa1714e897d67a8217edc305a0e81498a6f Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=80febaa1714e897d67a8217edc305a0e81498a6f commit 80febaa1714e897d67a8217edc305a0e81498a6f Author: Colin Percival AuthorDate: 2025-03-31 04:11:23 +0000 Commit: Colin Percival CommitDate: 2025-04-02 20:14:24 +0000 EC2: Set PCIe eject timeout to 0 Since PCIe device detaching is done via API, there is no opportunity to "press the attention button a second time" and thus the 5 second timeout mandated by PCIe serves no purpose. MFC after: 2 weeks Sponsored by: Amazon --- release/tools/ec2.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index 4f78e5913e56..507d9acabfd9 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -86,6 +86,12 @@ ec2_common() { # historical "nvd" driver. echo 'hw.nvme.use_nvd="0"' >> ${DESTDIR}/boot/loader.conf + # Reduce the timeout for PCIe Eject ("hotunplug") requests. PCIe + # mandates a 5 second timeout to allow someone to cancel the eject + # by pressing the "Attention button" a second time, but in the EC2 + # environment this delay serves no purpose. + echo 'hw.pci.pcie_hp_detach_timeout="0"' >> ${DESTDIR}/boot/loader.conf + # Disable KbdInteractiveAuthentication according to EC2 requirements. sed -i '' -e \ 's/^#KbdInteractiveAuthentication yes/KbdInteractiveAuthentication no/' \