Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp257650yba; Fri, 12 Apr 2019 23:41:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/CrCRV+SHXEgV9uApGitMlAJfIMhS3jBls6epcXUWyV2VM5+zOTFcpIbKaL9Aerz8wE/o X-Received: by 2002:a17:902:868e:: with SMTP id g14mr16967474plo.183.1555137664446; Fri, 12 Apr 2019 23:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555137664; cv=none; d=google.com; s=arc-20160816; b=BShP4t268yAFmyUtlnE5P+aMywpp539j35HwfTwUeqt660QPLikoPrXSAtg1HCUxT6 Tk4yztRg3j41RSeFpHCgzmCu1H/ErvaP2QlZPgYHbshKNyeu9yARbQ678hnVF33FH6wW BKUUrnQTCpEnVkeZyh5FVDOwPrv0zG3B55MGPod03QOaCVYQFIGY4ds77KXQ/YVTrbvu s/1mAZoz3RFqWv2QLHYUmsJWj6CkX8QGxDSJeVol3Qv4gomiWGUWKHRqxIMcegHCrIBE siTC7ridHInVINDlb1n1qCfo13W9+4ASVKO82Rof/0fyObCC1beiq0VAd8CyWaUmvDbD qZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UOzPa/neEIEvpY2nHAFZN2hmkw4d4+4re5hwN4eTKnY=; b=aiNhxCX1Pfj1e1TdQg5NVU66sez3my43C6+LyAtbCew9Zwg67fBaObbwsvjx079ZQE oVx89MUm+7zmVLpm7E+lAO/X1jDlX2Lv0mIpHehCbB2m1LxwT4P1L4fIj5PcqbrNdHDZ F5UVK5zwICgVsx0ldSKfMUsmakJoK6VnD3aGOQ5WBj2sBGpP25TZ6hUZ0hGsO+fLmzqN yd7l/29P9xq0Oj4avTNe8CYGPUVfS/lYEQw/sxBMZdpQkPo0sERiprPDB5IX4HIPX2St KRkl4D+QlwssJ0i0fTalO6sgF+eb4/23e2cO6+BF793Y4cIJAKO/8rdtaBPJYdZSsj/f FxLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d7cQPDwI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si21355920pfr.272.2019.04.12.23.40.21; Fri, 12 Apr 2019 23:41:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d7cQPDwI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726285AbfDMGiu (ORCPT + 99 others); Sat, 13 Apr 2019 02:38:50 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38225 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbfDMGit (ORCPT ); Sat, 13 Apr 2019 02:38:49 -0400 Received: by mail-qt1-f196.google.com with SMTP id d13so13827367qth.5 for ; Fri, 12 Apr 2019 23:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UOzPa/neEIEvpY2nHAFZN2hmkw4d4+4re5hwN4eTKnY=; b=d7cQPDwI5wIQySxWLQZdUDgBrRVnEW5V/TAkyWiJY/qWo7w7WXyVDINClqtqYuRFOc OGMDwc8gZap3dtPEyv1ceXxeiCEVd47D3mRoRR/WA7t8hLbAiuoaqUWH/ubV9u0vIS0d JKy2N1SRQfgdqFimHXZiDpdkJfQZNFVg7t0Y3xP2zUVegfqEXLHkoRFXTG2QjLq5yhOp LIoKqfgP8ejG7ZkoPfSc9DubAQupAgS3ORbUt2rQ2xCgNBEvQCi/78x5AyWxQBJzm6hQ vcBiIQ5TrizIEpWfo1AMJWMvI0wJE8Z1kHXJgRKJi28v+VH2woC52HO8OhvK7rBEInws pvkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UOzPa/neEIEvpY2nHAFZN2hmkw4d4+4re5hwN4eTKnY=; b=V1XY/zetDlU2cn43rSre1wMbwi7168TipThlYkXsbiPT5+C+0JdOPb1oSZydVftiZ0 sfYGwCMhq7zbUZmvpDDhl4EjZdWWuQ2rHYNceUEx0hYhWQmOs7G+YZsffIEBjVvij0XF LvMczE5wvjef7aIlYRP3fL1L5xYgHAdVHKnWUHVb50dAEhtt6kNyHuZV5FTaR3yn6V+x ygpZreMjUA6KFwfZXaE6jN5Cat76DNNoycSMaboksJ3pfaW7wJRafcoAfzr7KBY0arUU tgZfvf/8w7g0jeqcaSEB3+qOwnThQZ8HaTNTqFx7IQXJ41gV5H8tVw2ZDg99bTRkVbxr QHUQ== X-Gm-Message-State: APjAAAWOqodznM7gVOG9Pzx/+VjGQq//+sIWTY7ZhJVkNpTWYY+kJgBx Ril1GWDYCw5ZYIOzDRICcEhIsdTlshFGIAxQelRgSzUK X-Received: by 2002:ac8:2b65:: with SMTP id 34mr50392133qtv.93.1555137529089; Fri, 12 Apr 2019 23:38:49 -0700 (PDT) MIME-Version: 1.0 References: <20190402160244.32434-1-frederic@kernel.org> <20190402160244.32434-5-frederic@kernel.org> In-Reply-To: <20190402160244.32434-5-frederic@kernel.org> From: Yuyang Du Date: Sat, 13 Apr 2019 14:38:38 +0800 Message-ID: Subject: Re: [PATCH 4/4] locking/lockdep: Test all incompatible scenario at once in check_irq_usage() To: Frederic Weisbecker Cc: LKML , Ingo Molnar , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Apr 2019 at 00:05, Frederic Weisbecker wrote: > > check_prev_add_irq() tests all incompatible scenarios one after the > other while adding a lock (@next) to a tree dependency (@prev): > > LOCK_USED_IN_HARDIRQ vs LOCK_ENABLED_HARDIRQ > LOCK_USED_IN_HARDIRQ_READ vs LOCK_ENABLED_HARDIRQ > LOCK_USED_IN_SOFTIRQ vs LOCK_ENABLED_SOFTIRQ > LOCK_USED_IN_SOFTIRQ_READ vs LOCK_ENABLED_SOFTIRQ May I ask why LOCK_USED_IN_*IRQ vs. LOCK_ENABLED_*IRQ_READ is not tested? Thanks, Yuyang