From nobody Sun Sep 24 18:59:25 2023 X-Original-To: freebsd-hackers@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 4RtwKl4sydz4vKNJ for ; Sun, 24 Sep 2023 18:59:39 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4RtwKl0Rblz4FWK for ; Sun, 24 Sep 2023 18:59:38 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-80-101.area1b.commufa.jp [123.1.80.101]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 38OIxQYM092740; Mon, 25 Sep 2023 03:59:27 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Mon, 25 Sep 2023 03:59:25 +0900 From: Tomoaki AOKI To: "Colin S. Gordon" Cc: freebsd-hackers@FreeBSD.org Subject: Re: Finding git commit corresponding to 13.2-RELEASE-p3 Message-Id: <20230925035925.23d0af28ceebb744705aa804@dec.sakura.ne.jp> In-Reply-To: <1ee70bdf-828c-462d-bf1c-28d10cd7e903@app.fastmail.com> References: <1ee70bdf-828c-462d-bf1c-28d10cd7e903@app.fastmail.com> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4RtwKl0Rblz4FWK On Sun, 24 Sep 2023 13:41:30 -0400 "Colin S. Gordon" wrote: > Hi, > > I'm trying to debug sleep on my laptop, but have run into trouble reproducing the problem with a locally-built kernel, which I suspect is an issue of me not getting the right version of the source for what's currently running. > > Can anyone point me in the right direction for what commit 13.2-RELEASE-p3 was built from? I neglected to install the source component during my initial install, so cloned manually. I've tried a few different commits, including initially HEAD on 13-STABLE, and more recently a build of 866e5c6b3ce7 from stable/13 (based on https://www.freebsd.org/security/advisories/FreeBSD-EN-23:09.freebsd-update.asc). However the builds I've managed to produce introduce an additional failure that masks the original problem. On 13.2-RELEASE-p3, my machine goes to sleep, and partly wakes up before hitting https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211705#c3 on a laptop whose only storage is eMMC, in particular with the screen coming back up enough for me to see the failure from sdhci. On all the kernels I've built locally, the screen never comes back up, so I wouldn't be able to see if changes I made had any effect. (There's no actual serial port on this machine to debug with another machine.) > > So I now want to find the commit corresponding to exactly the kernel shipped with (amd64) 13.2-RELEASE-p3, so I can > • Verify that I can actually reproduce the exact problem on a locally-built (so, modifiable kernel). Otherwise there's something wrong with my build process, I guess. (The kernels I'm building boot and run, but have different behavior when I try to resume from sleep compared to 13.2-RELEASE-p3.) > • Debug bug 211705, and > • Binary search changes to see what commits might have altered the resume behavior on my machine (which > I'm happy to dig into the problems themselves, but I really need to find which git commit to build from, and I'm having trouble finding this information. I'm sorry if it's posted in some place I haven't managed to find, but I'd appreciate any pointers (both to this specific piece of information, and how to find it in the future for other scenarios). > > Thanks in advance, > Colin IIUC, each -p* build is done at the point when update for "BRANCH=" line in /usr/src/sys/conf/newvers.sh is done. So you should track the commits to /usr/src/sys/conf/newvers.sh on cgit [1]. For 13.2-p*, track releng/13.2 branch [2]. You can find commits 525ecfdad597980ea4cd59238e24c8530dbcd31d for vanilla 13.2-RELEASE 08b87f63a046bd966bd0ed548211ae98ff50e638 for -p1 4341433a673fde3e1c1554b9daa15d4db71f6edb for -p2 and a1c915cc75c1b3c66e16bb52579e2abdf122eccb for -p3 individually. Next, to be sure enough, go to [3], select releng/13.2 with the drop down menu at the top-right of the page and push "switch" button at the right of it, switch "log msg" to "range" and enter the wanted commit hash and press "search" button. You can find all commits to the branch until the commit is done. [1] https://cgit.freebsd.org/ [2] https://cgit.freebsd.org/src/log/sys/conf/newvers.sh?h=releng/13.2 [3] https://cgit.freebsd.org/src/ -- Tomoaki AOKI