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: 11115491 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 1B5DE16B1 for ; Mon, 26 Aug 2019 20:14:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 035192186A for ; Mon, 26 Aug 2019 20:14:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 035192186A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EDFC188E33; Mon, 26 Aug 2019 20:14:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30F00888AE for ; Mon, 26 Aug 2019 20:14:33 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id m44so28129013edd.9 for ; Mon, 26 Aug 2019 13:14:33 -0700 (PDT) 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=iaCQsNsAR0IxAn6qif5hlCNHm0OCqsiHy6+nKkPBz6XFPcA32w6ed8KbAga4/VrW70 0QEHpqTP/9OvUFVO8o7cqSON0z8nLesG8qmg9HVg8H5wvKbVM4iCJ89h3bvuTbw79400 +ms6r/K3OzsaRVcjQCTgwzifp57ccNiFryIKBir5ePu4Bf5zzN/nIpN6PdlQjPgbk5r7 ED1VtxZszFLdU/URQPYoKLRWYLBvzQDgd43zACRZx82ZPh3d8EB1H4AtJcwURYKe3rRv ViTr1YGXStyLUB32skAj8a8L5EbDMvmEQfLozzLqCbcPQVsOfToV2SIj67v1BYZ2PEH/ m13w== X-Gm-Message-State: APjAAAVB6B7gzYDXZlQAzEjU78jebLRFTzQgEZ/vs2m3LhWALIviiaen Ba0fH3fdEGO5Vwfs78i3xg4NJg== 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 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-Mailman-Original-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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux MM , DRI Development , Daniel Vetter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-)