From nobody Tue Aug 25 00:31:26 2026 X-Original-To: dev-commits-src-all@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 4hTTH244Cjz6pMMl for ; Tue, 25 Aug 2026 00:31:26 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hTTH21y7gz490q for ; Tue, 25 Aug 2026 00:31:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787617886; 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=y0eyUSYrtZPo0JT/YJVb2XhLbVM+S8Czff48tpg2BRU=; b=OnCsSns5l80399Clay2obpYLSpw4iKTM5XHD/3XRoloIVqMmLVcGhH/xseW15En9hR2bOZ VU+jiboRyMocJ6JJg0oEQMfoB/Lu96M/ngtIEQDdPCqQCy5qRMR48geQNG21EokXiKtAE3 lUcr/09Cztk9hMtDq0WtHf4W0EMlxfP4UqONQ4oXBV5KvPb3hmRe0eGAL8RD8cibgi1q+/ NyoQZKNWRjK4YbGlxyhFDKaFEA+WnSR8rQwHasOoOc3kurKClAhTVbSeFuLLm/coUuLc7P s6CGMuZk9IkDSqs+TeUqUPKWMoWIHYhdEAvckgol5KUcj+AdPQwrvOKr7EvD1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787617886; a=rsa-sha256; cv=none; b=FYzqgPyEhi79wxraLTnJ/lNltzg5Nq67XAlbFqZzZt+FiTmRgyi8zR4kZXMFsVPnVHaOAl 21yiDrN+x44EK1ZcAa3b5mEDkyCv3uqTIzYrXpDqZN3tyPMyfHvGYXLbJ1geeRsbpT2lRR Velf0sqddKM5lktWmvYK73uARYKQhoeXKmwbBunLgeLkzucos6agLf0/wwLnQYqUjTCxtK U1T2BJ71GEWcEwI140451OKNLBb+ydTRqBAvvj2DLfRWldwhbvHjZtwfnu2tlfZJArb4Ql 3+EasH1IrXTd+yWmqdubabr1s/BPK81T3Wovmn4Og0yuvd7N1uj07wKwvJrq6g== 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=1787617886; 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=y0eyUSYrtZPo0JT/YJVb2XhLbVM+S8Czff48tpg2BRU=; b=l5y44F7gq0eVyBXM+TDMOYbZfdsJPuk7JQPGcRxU6g5jRPzBDW29Jpc4L5vS1ZqcCdpIMJ fO/T1RZN1PA/LxDi3azQ579IhujaLWQ5+PQ12/bB8PvIqcrRyUS3khRGfISRKQ2RJBMJNI YjGMlKW7sO1mXq6hqVzNeUdGSyJwsgdcNXIWhq1s1i6VEkf/f+LhVOmk5zlUuRljSUL1Gv SC3VMD0pfDvJnX/dC+9n+CoXlizAywn7q5Jvybf+S17tfgctaz0R3ayXmTpABER161Pa3h SxeVKbLm606QDu4bKZcY1u1P49GKS/oi7tZ1axl03Tsw9XFGsgDtcyM0hcZ4mg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hTTH20YPyzCDc for ; Tue, 25 Aug 2026 00:31:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f60b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Aug 2026 00:31:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 93a2e498c1f4 - stable/15 - e1000: Compare decoded PCH LTR latencies List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 93a2e498c1f4db38a6fe2dd1660999c00233beac Auto-Submitted: auto-generated Date: Tue, 25 Aug 2026 00:31:26 +0000 Message-Id: <6a8ce25e.3f60b.755ba6e6@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=93a2e498c1f4db38a6fe2dd1660999c00233beac commit 93a2e498c1f4db38a6fe2dd1660999c00233beac Author: Kevin Bowling AuthorDate: 2026-08-11 16:18:33 +0000 Commit: Kevin Bowling CommitDate: 2026-08-25 00:25:10 +0000 e1000: Compare decoded PCH LTR latencies The LTR encoding combines a value and a nonlinear scale, so encoded values cannot be compared directly. Decode both the device latency and the platform maximum before deciding whether to clamp the request. (cherry picked from commit 6058dfa40238e2cd6ac6f2377986fdff99d14686) --- sys/dev/e1000/e1000_ich8lan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/e1000/e1000_ich8lan.c b/sys/dev/e1000/e1000_ich8lan.c index 29f5b2ff69bd..e7ff5a581ad1 100644 --- a/sys/dev/e1000/e1000_ich8lan.c +++ b/sys/dev/e1000/e1000_ich8lan.c @@ -1218,6 +1218,7 @@ static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link) u16 speed, duplex, scale = 0; u16 max_snoop, max_nosnoop; u16 max_ltr_enc; /* max LTR latency encoded */ + u64 max_ltr_ns; s64 lat_ns; s64 value; u32 rxa; @@ -1266,10 +1267,11 @@ static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link) e1000_read_pci_cfg(hw, E1000_PCI_LTR_CAP_LPT, &max_snoop); e1000_read_pci_cfg(hw, E1000_PCI_LTR_CAP_LPT + 2, &max_nosnoop); max_ltr_enc = E1000_MAX(max_snoop, max_nosnoop); + max_ltr_ns = e1000_ltr2ns(max_ltr_enc); - if (lat_enc > max_ltr_enc) { + if (e1000_ltr2ns(lat_enc) > max_ltr_ns) { lat_enc = max_ltr_enc; - lat_ns = e1000_ltr2ns(max_ltr_enc); + lat_ns = max_ltr_ns; } if (lat_ns) {