From patchwork Thu Oct 25 14:35:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10655925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 47FFD14BB for ; Thu, 25 Oct 2018 14:36:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36BE32BC1C for ; Thu, 25 Oct 2018 14:36:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 288FC2BC49; Thu, 25 Oct 2018 14:36:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E75FC2BC1C for ; Thu, 25 Oct 2018 14:36:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 899CC6E2D4; Thu, 25 Oct 2018 14:35:52 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79F5E6E250 for ; Thu, 25 Oct 2018 14:35:40 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id x31-v6so8696940edd.8 for ; Thu, 25 Oct 2018 07:35:40 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6Nh6MHD5M2UGgYJk2YYFP9HbHyumFt08TNSzKDOJkkM=; b=ZJpr9q5/GrAJSvSFyWQvCMUik11pS+Nf1Y2L+jgYxmhVqSFq52ZLIQyEW7+bU+/xde hrCkS4IbceKuxjACi1glvvzH2yD0rsbaZssTSWpBLHdHgzkxv/wvTHH1ZBVi4tKV+Oa3 6qKohAh7FRTAM7AUnWuJthQTbVe5hFtCOf45nBibadcvPZk+VOeSy33Oe6UUP6XeljT3 DOS4KtrVrw+zrMA1RbiT/89XZORlrduu1gul2QVxmLZZIKfZBXufYhfmHgAejHPoqhgE p85v7495c0zmgxvx5DaLJoSuF3O5KMGdiHHReSVk1SObiS1y7z7bOx38KQ8Il5YmweTI G31w== X-Gm-Message-State: AGRZ1gKD6gBqoMBr8F/Udra1cCO81m0Y1fjsV6pqX6LflZI4YK6/gDRe LJzJV3BntWVSEFG/mSNk06DLuA== X-Google-Smtp-Source: AJdET5fkMiOZH5EHnxmdsNpYFCVpLUhC1agQYTbrw/BGq+DxWPbV/puM1soYxCyFX31PBfEoxiVbwg== X-Received: by 2002:a50:b2e1:: with SMTP id p88-v6mr1697977edd.155.1540478139103; Thu, 25 Oct 2018 07:35:39 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id k51-v6sm124353edb.85.2018.10.25.07.35.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 07:35:38 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Thu, 25 Oct 2018 16:35:25 +0200 Message-Id: <20181025143527.8575-5-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181025143527.8575-1-daniel.vetter@ffwll.ch> References: <20181025143527.8575-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 4/6] mm: Check if mmut notifier callbacks are allowed to fail X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Intel Graphics Development Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Just a bit of paranoia, since if we start pushing this deep into callchains it's hard to spot all. Signed-off-by: Daniel Vetter --- mm/mmu_notifier.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 82bb1a939c0e..744840e5636e 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -190,6 +190,8 @@ int __mmu_notifier_invalidate_range_start(struct mm_struct *mm, pr_info("%pS callback failed with %d in %sblockable context.\n", mn->ops->invalidate_range_start, _ret, !blockable ? "non-" : ""); + WARN(blockable,"%pS callback failure not allowed\n", + mn->ops->invalidate_range_start); ret = _ret; } }