From patchwork Mon Aug 26 20:14:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 11115489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C6991399 for ; Mon, 26 Aug 2019 20:14:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 180E521881 for ; Mon, 26 Aug 2019 20:14:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="KsRq9jvc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 180E521881 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2B8BE6B0274; Mon, 26 Aug 2019 16:14:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 26A9B6B0275; Mon, 26 Aug 2019 16:14:34 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 180DD6B0276; Mon, 26 Aug 2019 16:14:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0128.hostedemail.com [216.40.44.128]) by kanga.kvack.org (Postfix) with ESMTP id EB4B56B0274 for ; Mon, 26 Aug 2019 16:14:33 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 9E288180AD802 for ; Mon, 26 Aug 2019 20:14:33 +0000 (UTC) X-FDA: 75865681626.24.wound20_44d7d891bb83e X-Spam-Summary: 2,0,0,a7a8f54892f9e6e2,d41d8cd98f00b204,daniel.vetter@ffwll.ch,:linux-kernel@vger.kernel.org::dri-devel@lists.freedesktop.org:daniel.vetter@ffwll.ch,RULES_HIT:41:152:355:379:541:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2393:2559:2562:2911:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3872:3874:4425:4605:5007:6261:6653:7875:7903:10004:10400:11026:11232:11658:11914:12043:12291:12296:12297:12438:12517:12519:12683:12895:13069:13071:13311:13357:13894:14095:14096:14180:14394:14659:14721:21060:21080:21444:21451:21627:30054,0,RBL:209.85.208.67:@ffwll.ch:.lbl8.mailshell.net-62.14.0.100 66.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: wound20_44d7d891bb83e X-Filterd-Recvd-Size: 3842 Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Mon, 26 Aug 2019 20:14:32 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id z51so28084980edz.13 for ; Mon, 26 Aug 2019 13:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MEWFNP9G9XRQyNplR93hNjA88jcDbmmCg7h8xD2JEzU=; b=KsRq9jvc8+HnjknGWkm6taWVUdOk9oNM+c04XJIBVUYGcOP0MJNkQx9WOTX/WpSWMR VDHNqXxPNfx5r7fkM9tldZ4RH+WNleFaR3gLttKhoLCHbB76RNSX9LZcPAWgXMLWGZdX CA567cCQXUiG7iZja4mZg3jSGGXg0k9TiOMdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MEWFNP9G9XRQyNplR93hNjA88jcDbmmCg7h8xD2JEzU=; b=lLqyJlh7jkCU638T+ah1RhwPznsyXBT/IYUEb9O+k7Y5N9By+KEND6yKTI5tddtCEs 7Kn4IuuUnPfEKsGDPTFv0PUpvqTSx9Zx37FL8AAMZ8nEIUKBwIqHfGLb4cxoaoXUV5tG WpD0Nn+/0wzu8sXsvKwN0au+AIVq0PxCOWCSj1fWaXfIC5kLyWZ8LAi44LQ+mAt3InI4 18pLGYOwZUSxCTvSuFG12zgL6NGA4w+LbFKZ6oqPcQcBY0K1T5WUWfhK6avqk8A5zdrj +2HAnJTf15XdIVzro8l6RZ+httRIgYde1haDVZ6lQA+udFGXTQZDtLoFpLuTbRZntgj+ dlvA== X-Gm-Message-State: APjAAAVqAaLLCFvN4DRdW09qlkMtbKXwG+HFdpZSPWWSuIpmPzXQCknY HSeGq+3SrzMLnTBz1fyiNJVJHw== X-Google-Smtp-Source: APXvYqxLqEPD0/LdFMncbAYamThZ56ARg99koHGS0Ym61r97PqUdd+AzAX9vwScKfOBYaciZi35XAg== X-Received: by 2002:a50:cc99:: with SMTP id q25mr20152694edi.207.1566850471666; Mon, 26 Aug 2019 13:14:31 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id j25sm3000780ejb.49.2019.08.26.13.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:14:30 -0700 (PDT) From: Daniel Vetter To: LKML Cc: Linux MM , DRI Development , Daniel Vetter Subject: [PATCH 0/5] mmu notifer debug annotations Date: Mon, 26 Aug 2019 22:14:20 +0200 Message-Id: <20190826201425.17547-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, Next round. Changes: - I kept the two lockdep annotations patches since when I rebased this before retesting linux-next didn't yet have them. Otherwise unchanged except for a trivial conflict. - Ack from Peter Z. on the kernel.h patch. - Added annotations for non_block to invalidate_range_end. I can't test that readily since i915 doesn't use it. - Added might_sleep annotations to also make sure the mm side keeps up it's side of the contract here around what's allowed and what's not. Comments, feedback, review as usual very much appreciated. Cheers, Daniel Daniel Vetter (5): mm, notifier: Add a lockdep map for invalidate_range_start/end mm, notifier: Prime lockdep kernel.h: Add non_block_start/end() mm, notifier: Catch sleeping/blocking for !blockable mm, notifier: annotate with might_sleep() include/linux/kernel.h | 25 ++++++++++++++++++++++++- include/linux/mmu_notifier.h | 13 +++++++++++++ include/linux/sched.h | 4 ++++ kernel/sched/core.c | 19 ++++++++++++++----- mm/mmu_notifier.c | 31 +++++++++++++++++++++++++++++-- 5 files changed, 84 insertions(+), 8 deletions(-)