Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF35928B51F for ; Thu, 24 Apr 2025 17:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514626; cv=none; b=TfHiw3YfB5Qdne+qNcUjwj39TBGpqDg20bF1LGbF0mss+IQ2o5f4cbU23x14j9ZEsoj46+IpszkLwLnWPPOGwZAM6eSwqFDRLvSVrhAXTJNGpbqXt5bdHkRhYwQOQ8EoomQpdKaK/0Bs7u+kFSfXQ/o27xhdj7PECEOnOoxRSlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514626; c=relaxed/simple; bh=xR0R6G54cY5F3iEWBr7pXmVJpWkXG5FLP45my+6ozJI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C+zDKNtx9v/df9KUyLqBeg9jIvSIq+ICb0osSTKOJhCRktYG/6oXitVN5UlZHBiyTDrtmGvAO6IIhzlpRmDTCOj7jeoedBRomUU/LCJ95YkFe1r4XLh181dmT3XkHYYj7HPztrA+90bBvKcn+O6KLlvNC1lXxBVQEY0hl4hzeM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QUMd09rp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QUMd09rp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32541C4CEE3; Thu, 24 Apr 2025 17:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745514626; bh=xR0R6G54cY5F3iEWBr7pXmVJpWkXG5FLP45my+6ozJI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QUMd09rpY3OCr+0TMZmxv0FqOSFGTITa5YRzIEZgSZRpOc7+03rNzEl15DxwywciU UJCWiG50eYQ94Zt7UYX2oDuE+5vwSDi/z7GklwspSZBgk6EBxjEXvTz1FJu0bnkmBI 0gsQVjrm1l6PuAIMub9R10xhBb+6NuauKkUDR2uZnHrEiaDbiCg9I1Eb0udBzAxlx2 4rJS9agbkhHEUKUHoB+yir4m5MPZOlUno9mEIATnzdLhuA55tZS/qo27z+aoga6sFD iIWzMf2S1xv6E3tcFdZgArhETc5kjpWfQzBBqVXe7waBIlYs9YJPFF2TBc/98gl4jD PdO+6/2LPGvuw== Date: Thu, 24 Apr 2025 10:10:24 -0700 From: Luis Chamberlain To: Daniel Gomez Cc: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Subject: Re: [RFT] bootlinux: add bisection support Message-ID: References: <20250424000942.2944058-1-mcgrof@kernel.org> <6e5o27x6dwj2b6mjb4dwkqugh4duhzaomfg3rf7q532vcmzw44@xeutn543adnp> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 24, 2025 at 03:36:47PM +0200, Daniel Gomez wrote: > On Thu, Apr 24, 2025 at 09:25:54AM +0100, Daniel Gomez wrote: > > On Thu, Apr 24, 2025 at 08:40:54AM +0100, Daniel Gomez wrote: > > > On Wed, Apr 23, 2025 at 10:47:16PM +0100, Luis Chamberlain wrote: > > > > On Wed, Apr 23, 2025 at 05:09:41PM -0700, Luis Chamberlain wrote: > > > > > 2) see if we need to redo the simple boot script > > > > > > > > this needs just one adjustment, the top of the script needs to > > > > change directory to the kdevops dir so the script needs to be: > > > > > > > > #!/bin/bash > > > > # SPDX-License-Identifier: copyleft-next-0.3.1 > > > > # > > > > # If make linux-deploy fails for reasons unrelated to the bug we're > > > > # tracking (e.g., a build error) we bail with exit code 125 to allow git > > > > # to skip that commit. > > > > cd {{ topdir_path }} > > > > make linux-deploy || exit 12 > > > > > > > > That seems to be doing what I expected it would do! So just puzzle left, > > > > why the GOOD ref was not used at 'make linux'. > > > > > > If make linux-deploy installs a "bad" ref kernel with a boot problem, the VM > > > will always boot into the "bad" kernel. How is the script going to boot the new > > > kernel for testing if the new ref is "bad"/"good"? > > > > I was testing this and run into the linux-next upstream issue: > > > > [ 0.222812] ------------[ cut here ]------------ > > [ 0.222812] WARNING: CPU: 0 PID: 0 at arch/x86/mm/tlb.c:918 switch_mm_irqs_off+0x114/0x490 > > [ 0.222812] Modules linked in: > > [ 0.222812] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc3-next-20250422 #1 PREEMPT(full) > > [ 0.222812] Tainted: [W]=WARN > > [ 0.222812] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 2025.02-6 04/08/2025 > > [ 0.222812] RIP: 0010:switch_mm_irqs_off+0x114/0x490 > > [ 0.222812] Code: 65 4c 89 25 86 26 09 02 65 48 c7 05 72 26 09 02 01 00 00 00 48 81 fd 40 dc f0 91 74 0f 44 89 f8 48 0f a3 85 80 05 00 00 72 02 <0f> 0b 48 81 fb 40 dc f0 91 74 16 48 8d 83 80 05 00 00 4c 0f a3 bb > > [ 0.222812] RSP: 0000:ffffffff91e03de8 EFLAGS: 00010202 > > [ 0.222812] RAX: 0000000000000000 RBX: ffffffff91f0dc40 RCX: 0000000000000002 > > [ 0.222812] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff916f810d > > [ 0.222812] RBP: ffffffff91f7e980 R08: ffffffff91e03da4 R09: 000000007f7ec018 > > [ 0.222812] R10: 000000007f8e1860 R11: 000000006c09c2a4 R12: 0000000000000001 > > [ 0.222812] R13: ffffffff91e0c580 R14: 0000000000000000 R15: 0000000000000000 > > [ 0.222812] FS: 0000000000000000(0000) GS:ffff9a2aa94c6000(0000) knlGS:0000000000000000 > > [ 0.222812] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [ 0.222812] CR2: ffff9a2a21e01000 CR3: 0000000100352002 CR4: 0000000000770ef0 > > [ 0.222812] PKRU: 55555554 > > [ 0.222812] Call Trace: > > [ 0.222812] > > [ 0.222812] unuse_temporary_mm+0x34/0x60 > > [ 0.222812] efi_set_virtual_address_map+0x15d/0x190 > > [ 0.222812] efi_enter_virtual_mode+0x3df/0x440 > > [ 0.222812] start_kernel+0x907/0x980 > > [ 0.222812] x86_64_start_reservations+0x20/0x20 > > [ 0.222812] x86_64_start_kernel+0x71/0x80 > > [ 0.222812] common_startup_64+0x13e/0x148 > > [ 0.222812] > > [ 0.222812] ---[ end trace 0000000000000000 ]-- > > > > > > I see this reported here: > > https://lore.kernel.org/all/6807a0a8.050a0220.380c13.014e.GAE@google.com/ > > > > Regarding my question above, I think we need to add support for -kernel first in > > QEMU/libvirt. Something I wanted to explore some time ago, so I'll give it a try > > now for this use case. > > This seems to boot fine if I don't use kdevops kernel build process. For that, > we need to work on the cleanup/refactor we talked in the other thread with > Chuck. But let me know what you think. Direct mode is certainly a nice feature! But it lacks modules support, and so the tests are limited to non-modular world. Fortunately we have an outlet as I just replied to you previous email -- so now we just gotta codify it. I think supporting both makes sense. Let folks pick. Clearly if we want to help debug a regression with modules we need them. Luis