From nobody Fri Sep 18 07:11:33 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 4hmP1h5NyRz6sndP; Fri, 18 Sep 2026 07:11:36 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hmP1h1WM3z4lcM; Fri, 18 Sep 2026 07:11:36 +0000 (UTC) (envelope-from mmel@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789715496; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZFL9ZlQMHUA+/6prBJ9IB1pnY1CX2qKFlo+cvUgMRIg=; b=TDLgenSsKKWMPf9TpdA2AVZvLcGsqQhK3X7djriB7bDf2mjREObNZzD03+OrYCvaDRVSAG n27Hfl/hIcAJFUOtjeUbpGNnrD1uUK1nn18FotDi5EiB+ZU2HGzlKJ87yuTZf8C3tdzJsI oFzj64x6ULfh83QGQlpLofwyTiSYGz8NpYAM/1sLHR8fA7PvDwzdk/qhYpey8/+AkgnsJP 39Y9r4Qsfp9d3wp0Prll8PPz15ZuEDCGpLy5h1SeenQWYhSQOdk5YZWQBWuEGPHGgkGBOP bAsdw9P+l/+RAcILFIuuIryMieqcoEKTJbORCYeH/6YWxyDxZ0H0OhkHLt8GXA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789715496; b=Rz/R6KuibWGw0YHW5p5TILm2fIyjFWoJPkJF4nJFdpok67tLKqbztAMHAZVEXgsEy365Ko 36lTlb6bKPrEBTKDwq4BMOgPCrTqA/pcrk8lukQStN8/dYwWUDVQbGmimiNTgTUf86U0ob rhh3r7Bp7s4u2vX4Rsauqp040k3OZ2hn4TM9odsAZD5LRVgbltuNps7PjkxeIIdYGMuSRc OMsVFCXP++D2KO3bysOwVWnifjUdGuhJSFKH9a+DAbZH7aKNKfrg1TIdqqIDOtz85OJHor 0OBeQ2SFUh3n1ZJ/BasEnzpXyjd37ifgGsFet8OTCAw0b7JwVGiszdRJuDvGlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789715496; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZFL9ZlQMHUA+/6prBJ9IB1pnY1CX2qKFlo+cvUgMRIg=; b=gvOo05DVVKmAMqi8dZFMMvquwUPMkY8JzFIHi2zxlL3dQBL/YpcRInfp0c7nDaDh5MF/Gf Ar9NcZtI17EEHllyMNNgq04weZKrzus+QD2aRDT5j/3pDolnVrd1G5nafHziqqC31Vcao5 So1pwpYxiFFR/4idfCz32Q5g68P/j6In//QVvITabbeogW+DzHYvF0BtoVynSfoITwYxgV 8sorp7F0deqjIJ4FzETRsVc+Vb3pfhl77p1cgfu191ditnPFBwlp3EfbIhQoXd01byrsc6 upxOYI/BO94D233NMetVukBgva7VdzWYWdcEL5LrQnELJgqdRMcXVEV8uuOzUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2001:67c:14a0:5fe0:375f:c0b1:757c:98c] (unknown [IPv6:2001:67c:14a0:5fe0:375f:c0b1:757c:98c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mmel/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4hmP1g3ppNzYbm; Fri, 18 Sep 2026 07:11:35 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Message-ID: <5e03e401-5778-4459-a501-e9f7b5d56a0f@FreeBSD.org> Date: Fri, 18 Sep 2026 09:11:33 +0200 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 User-Agent: Mozilla Thunderbird From: Michal Meloun Reply-To: mmel@FreeBSD.org Subject: Re: git: 477c594d9063 - main - kobj: allow multiple inheritance with per-class softc To: Kristof Provost Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <6aa40ba9.2672a.7c32cf3e@gitrepo.freebsd.org> <19D9A1EA-4026-407B-B1E6-23DBD16490B9@FreeBSD.org> Content-Language: cs, en-US In-Reply-To: <19D9A1EA-4026-407B-B1E6-23DBD16490B9@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 18.09.2026 0:15, Kristof Provost wrote: > On 11 Sep 2026, at 16:09, Michal Meloun wrote: > > The branch main has been updated by mmel: > > URL: https://cgit.FreeBSD.org/src/commit/? > id=477c594d906328e210c30cf2c21d983152f21de3 cgit.FreeBSD.org/src/commit/? > id=477c594d906328e210c30cf2c21d983152f21de3> > > commit 477c594d906328e210c30cf2c21d983152f21de3 > Author: Michal Meloun mmel@FreeBSD.org > AuthorDate: 2026-09-11 11:47:30 +0000 > Commit: Michal Meloun mmel@FreeBSD.org > CommitDate: 2026-09-11 14:09:36 +0000 > > |kobj: allow multiple inheritance with per-class softc Add support > for hierarchical softc layout so that a leaf class and each of its > base classes owns a private softc region inside a single allocation. > device_get_softc_class(dev, cls) returns a pointer to the softc that > belongs to the requested class. The classic device_get_softc() still > returns the leaf softc and remains fully compatible with existing > drivers. Existing drivers are unaffected; they simply obtain a > slightly larger softc block when they inherit from base classes. | > > For some reason this commit causes my machine (Dell T640) to fail to boot. > > It doesn’t panic, but it seems to be very slow during boot, and seems to > remain stuck around when it’d start userspace. (Freezing just before | > Trying to mount root from zfs:zroot/ROOT/16.0-CURRENT-20260917.222603|) > > I don’t even begin to understand how that’d be related to this commit, > but it’s very reproducible. > > Do you have any suggestions for how to begin to debug this? > > Thanks, > Kristof > I also don't see how this change could have directly caused the described failure. Could you generate a backtrace from the hung state? Ideally, generate more than one to see where the kernel is livelocked. Also, can you, for test, replace "size = kobj_total_data_size(driver);" with "size = driver->size;" at https://cgit.freebsd.org/src/tree/sys/kern/subr_bus.c#n2503 ? Thanks, Michal