Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp641331lqb; Fri, 24 May 2024 08:51:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUW/YU8mt32KgD+yYmhVxg97KPqzK9NvUJ/XS0U7P4qJ78GSX/QYCb2zZG+9A9rYAHe4eILCHKfIkuw8/gG8bw0pqEna0LdPW6Iv0uJww== X-Google-Smtp-Source: AGHT+IGH6cOpNOjyL1M0RfmWeIPSVkFVcLysvqqv43D2vC4MNaYYlEi6lW26rocXiDB3wD6ON3AN X-Received: by 2002:a50:8ad8:0:b0:578:5eab:3f31 with SMTP id 4fb4d7f45d1cf-5785eab484bmr1562956a12.38.1716565906885; Fri, 24 May 2024 08:51:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716565906; cv=pass; d=google.com; s=arc-20160816; b=pvn4+bvQporEQv+sIeQGol8PkezK5A8RP9Q99zSnpwmXwp5aALdPBBioEkERliMKKm dCjvfp/QSYgZ/pWPl5toZv6EXCwVRpz7TC3PRix9iD+jmcFIGFCIIkTM0XUaeGAMENvG FP1BfWGI2LGl7j3pWLxKkisLz8PN6HmgwuvRja826TEjErlYcTRQWlFS1Doa/zB8MYC6 Ps0pX/KMilqn8GnXH43zma6J8z8jfL3X1KpGnDbxo3lYxbNX3r6d7K0gV5WaQVFjQ9Me XcyEeyz6/n5It/216R7g9P4V3NaGljAMVC3TNFXl9B0afw0Evr5ThXm5HmMYpFWfDFfa Wj7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ShctHr4rNHEqQcexkF/9rJmyw/D+fMBy4rsEmTgMDpQ=; fh=whT3whL0/0FAvwqCmtO4yry5pVUddBhTkNU2KPPAJts=; b=hkqR6JnQoipyLby8AJ8ZuiU4Tq+GQgrpYFLakkfwtoIsj9V9EEBEGS8rv4PCsKRtf1 vFgxF4Vr3hcPAVI3hYw9ZS5W7lYcsLDf/Q9lHYJjapFGvacYzXA5xxMr00Wji/DOHWdk FGDg4P4k+02X+3tAT6veadT+JHX5Fzn8eGN2iFLsuVyqSuOAe4kw0WNxfJDwIy2j0xV0 noImnoEZ7exCz13Y8YUkGa1QfU3SBpVW1MOM0XBUZsqF1dw+vhoHQT5T2ikU0IdNEJrP j16iKeByO74jWITsRgvhiBGoYYDWGfMVGI4mK1QhAFcThbsFgAALszEpcf+eCHkq08aa UGJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-188895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578524d5761si954450a12.686.2024.05.24.08.51.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 08:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-188895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9D11C1F21614 for ; Fri, 24 May 2024 15:51:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D40F212E1D4; Fri, 24 May 2024 15:51:39 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id B3C4112D77C for ; Fri, 24 May 2024 15:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716565899; cv=none; b=sVX4mdFS7O88LyvqAqDcZoDkR+KGL2cM2EqxtF81dzym7p7BNdCMf17BUn7PmaXZCnluc8XU9TF9oKIgoK9ivMZYr1A/HPnMwwgPXCjJOZczuqeCp8npSAjCoUS+wSYWQbugO5nX4XpmPLMtelDqhlyxDBrSWy6qhPvdbTgLh4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716565899; c=relaxed/simple; bh=VxEqOwntj5lgS5ot2nI+0IGJ6LjiZDRiVYPxT+g+0rQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YN+EZADJiiavGVg3KiY3dYtJoZlv/Ixj2kkvBfarUJ9QvESmpBfJnv4Tg6MPSWzGWjdzPhqWLWrkuGVCHjLlbsp9Z+/06fJnuVTSQC6WQQ69e8RAjFfVEwduzoNV26cXnrY3rXVdhI03+VcyCLwvEAhy4PXPYeKMx2l53OEAhOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 577964 invoked by uid 1000); 24 May 2024 11:51:36 -0400 Date: Fri, 24 May 2024 11:51:36 -0400 From: Alan Stern To: Andrea Parri Cc: will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, paulmck@kernel.org, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, hernan.poncedeleon@huaweicloud.com, jonas.oberhauser@huaweicloud.com Subject: Re: [PATCH] tools/memory-model: Document herd7 (internal) representation Message-ID: References: <20240524151356.236071-1-parri.andrea@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 24, 2024 at 05:37:06PM +0200, Andrea Parri wrote: > > - While checking the information below using herd7, I've observed some > > "strange" behavior with spin_is_locked() (perhaps, unsurprisingly...); > > IAC, that's also excluded from this table/submission. > > For completeness, the behavior in question: > > $ cat T.litmus > C T > > {} > > P0(spinlock_t *x) > { > int r0; > > spin_lock(x); > spin_unlock(x); > r0 = spin_is_locked(x); > } No "exists" clause? Maybe that's your problem. Alan > > $ herd7 -conf linux-kernel.cfg T.litmus > Test T Required > States 0 > Ok > Witnesses > Positive: 0 Negative: 0 > Condition forall (true) > Observation T Never 0 0 > Time T 0.00 > Hash=6fa204e139ddddf2cb6fa963bad117c0 > > Haven't been using spin_is_locked for a while... perhaps I'm doing > something wrong? (IAC, will have a closer look next week...) > > Andrea