From nobody Fri May 17 05:10:16 2024 X-Original-To: current@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 4VgZm82ZRqz5KwGW for ; Fri, 17 May 2024 05:10:32 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VgZm80gsrz4brn; Fri, 17 May 2024 05:10:32 +0000 (UTC) (envelope-from rlibby@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51f40b5e059so270984e87.0; Thu, 16 May 2024 22:10:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715922629; x=1716527429; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=poi6I26wEm+SW7+XlKsL9927KO7mnP5qQlXpMIFJk3g=; b=i9WOjVCmDa3hbFzJQ+rY7LIh7FeTpgqaWqjRbzwfATNzw8NJVnpzNjVU6ocPHY+y+4 Xkwf6gPQbWvJqkIpzUgFEVl3ohazNi6HAwrHJJ52C37j2WDwPAqGq1OHONSSYTX70BOx eKkWOAxO6QwCOi1C1HElGmPZy9R04PEkrCzXDYxYAxGVdCSpMj7RqVt0v6DT8k+Ckb2g HA5wRUDLaWBdI61OyEAsLRzLBSEESJpZ+VcjQCLe0UqtgQEy22p79tpsNTcdvLBTAP4L 8NG2uY9mP/Y7jHDLDKkb9UiFu8yChop7EDty8i7FGefyHjZ/Gl8iDIcW8ipyuSL6v60s SQFA== X-Forwarded-Encrypted: i=1; AJvYcCXQkWUcDMrCN2vCVaoIhDuxaG4m6He2uWmkPPiEY+3YeC5v4Ptz6cobWaEIKtvCDgu3xYsSBcffOu8ZfzODcuoE X-Gm-Message-State: AOJu0YzxutFxN7aDl5hdxWSmxAQhr9iSBTqD2QgzVt/CdjvNYuNOG9HV oGDAZp+Cw4lMj0g3OGXPbtZUKjmQi2i0IyDnos4c73SLZW7/IdSWal0Xua/S X-Google-Smtp-Source: AGHT+IHYaeTp9vHh+o6j6BCKk7sqa2mACg6HY/vISoDYjrpBmtFLCTQ32LxGuEj+TkhUEooySz1CRQ== X-Received: by 2002:a05:6512:2248:b0:523:3be3:cbfe with SMTP id 2adb3069b0e04-5233be3cc5bmr11022610e87.65.1715922628615; Thu, 16 May 2024 22:10:28 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d87a5sm3176981e87.202.2024.05.16.22.10.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 May 2024 22:10:28 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-520f9d559f6so1987710e87.3; Thu, 16 May 2024 22:10:28 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUi0RbyOq1o2LwERfKnn/dIbDf7+AIDtP1qGb86T99dxJvKaFodgvYRTa2TwNQWS89RjDlNtGYA6TC0sq/F8pyV X-Received: by 2002:a05:6512:1310:b0:516:cc06:fa03 with SMTP id 2adb3069b0e04-5221006ccdemr16062796e87.56.1715922628142; Thu, 16 May 2024 22:10:28 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <20240517065557.1c184ec92447e074783a6a1c@bidouilliste.com> In-Reply-To: <20240517065557.1c184ec92447e074783a6a1c@bidouilliste.com> From: Ryan Libby Date: Thu, 16 May 2024 22:10:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Panic: lock "lnxspin" 0xfffff800176c0730 already initialized To: Emmanuel Vadot Cc: current@freebsd.org, manu@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4VgZm80gsrz4brn On Thu, May 16, 2024 at 9:56=E2=80=AFPM Emmanuel Vadot wrote: > > On Thu, 16 May 2024 10:27:40 -0700 > Ryan Libby wrote: > > > On Thu, May 16, 2024 at 6:00?AM David Wolfskill = wrote: > > > > > > This is running main-n270174-abb1a1340e3f (built in-place from > > > main-n270163-154ad8e0f88f), with ports at main-n663685-3f732745ab06; > > > the ports-resident kernel modules were rebuilt with the kernel, > > > courtesy (e.g.): > > > > > > g1-70(14.1-S)[4] grep '^PORT' /etc/src.conf > > > PORTS_MODULES+=3Dgraphics/drm-61-kmod > > > > > > And since I dislike "sample sizes of one," I have this result on > > > two different laptops, each of which has both Nvidia & Intel graphics > > > (but for the older one (M4800), I stopped using (& building) the > > > Nvidia driver, since enabling it appears to disable GLX). > > > > > > Anyway: photos of the backtraces are at > > > https://www.catwhisker.org/~david/FreeBSD/head/n270174/ > > > as are copies of the build typescripts. > > > > > > Unfortunately, the panic message itself had (just) scrolled off the > > > top at the time I took the photos, but I hand-typed it (from the > > > M4800) in the Subject. > > > > > > Peace, > > > david > > > -- > > > David H. Wolfskill david@catwhisker.org > > > Please do not mistake "authoritarian" for "conservative" -- or vice v= ersa. > > > > > > See https://www.catwhisker.org/~david/publickey.gpg for my public key= . > > > > Maybe regression from ae38a1a1bfdf320089c254e4dbffdf4769d89110 by manu. > > > > It looks like spin_lock_init was changed to no longer zero out the > > mutex before calling mtx_init, but the MTX_NEW flag was not added. > > > > Ryan > > > > Could be, I cannot reproduce this here (either with i915kms or amdgpu) > but I guess that depending on the hardware version or number of screens > etc ... code path is different and might trigger this. > David can you test with > https://people.freebsd.org/~manu/0001-linuxkpi-Fix-spin_lock_init.patch > just to be sure that it fixes this issue ? > > Cheers, > > -- > Emmanuel Vadot It may depend on getting lucky with the uninitialized junk too, and you wou= ld need a kernel with KASSERTs enabled. manu, I think the rwlock patch 5c0a1923486e65cd47398e52c03cb289d6120a78 may need the same treatment with RW_NEW. Ryan