Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3227915imu; Sat, 24 Nov 2018 00:34:38 -0800 (PST) X-Google-Smtp-Source: AJdET5djKVrJPgT+1hnX7OYjI560iszYM59D1PT0ePadKwCt+mGjKBQTw0/M+MJ1JdJbnog7o4Ap X-Received: by 2002:a62:29c4:: with SMTP id p187-v6mr19260348pfp.62.1543048478060; Sat, 24 Nov 2018 00:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048478; cv=none; d=google.com; s=arc-20160816; b=lKOwXkQlWOWfRqcGs/De6nqMKwc3mT/eT9arX4PAqzjc0GyLZmM33cUuynwyokKS1n ZLzGSFWsCP+mHIQZIfcSa8EhxcTf3u5OrqFW9PJcGUeFrJduY5OZyIM+aQUFISj1ISIA exVmBhkIGchzXg0I2lTdOyKf1gSRtLN8J2b7rs9qq5+zPjXiIogL2mhrvUU2F6zUnRIN E9z7hcmnv+B+viCy4jBxG4JXHfeTDTh2RcJbNQjoU04Q94Hqmx68ab/YMORy1c5se02q 1JwsbyikLeEmfCRwyqd9NPXJSQrcP0U33czKjGIAmJxxLjkioUoK0/jqb/pa8CjkDCq5 wX9Q== 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=TgmVmK8YOkbGetgLHjxUB252HP/issfa95UlGOT8KP4=; b=JqML9bEV/v5dNV0it4MaSFnYNUs/e8Y01Yrv8mNfnXaoY28zi2tbeTPMUDi1D3kQiM GnjtZsbQble0tevqpf4UCX3/ePKlS6v8C6DPwy+yVso06lGqXb/CCtMlsf7k5Pr0cAIn wYsGetqHCaDiUoMtXNEyF5qozpoV9RLwPDQq1nGKrUd5MnoQ/jl1dAr+hsesnrhI7Wls 9hl5ct388dlGNmTLLBjK+Kr9AMVoKZBpbP0lckbvXobfl1f9+rX1tMAaIeOfWM6oKci3 uyDEWzPLk58r5VTj4okamL34ZqN7EkGmuDzU+CRFb45083on4P2zWZviJRr+NtQZXuir Ox6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=jzTvFyZL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si23145018pld.331.2018.11.24.00.34.23; Sat, 24 Nov 2018 00:34:38 -0800 (PST) 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=@ffwll.ch header.s=google header.b=jzTvFyZL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436533AbeKWX7d (ORCPT + 99 others); Fri, 23 Nov 2018 18:59:33 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:53238 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390867AbeKWX7d (ORCPT ); Fri, 23 Nov 2018 18:59:33 -0500 Received: by mail-it1-f194.google.com with SMTP id i7so18362059iti.2 for ; Fri, 23 Nov 2018 05:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TgmVmK8YOkbGetgLHjxUB252HP/issfa95UlGOT8KP4=; b=jzTvFyZLWhaTv3fPabKaGw/xq40CPu2WvN8sSnBauPJ3sbmXpOu9toWODABuHVG3nn e/QtbqaZjx6WvvkC86A1dIPmpEWjUxBxLf2bYQeEZ9jdZ87ELhmDyXw6p5/r6Xe/mGaf jZ3DgzUav6eLqMA2KRMBphZloo99vLORyr9YQ= 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=TgmVmK8YOkbGetgLHjxUB252HP/issfa95UlGOT8KP4=; b=EEATLsvOzBclad703iHH71PtZ6EsE5AKeYT70/aGxWNDSeE4DVohM64qa2G8vk8EY9 nfJrnXorsXyA02Ff3u+HxtK+WeETNJAyS6TLoTQ0yS3WxAyMg3JcUxqL6nbOG5KsFrGI vmOSOhx/HF4f0U5bmVKQbfEP9djd7ZKBS2G1vLfPn5xSaPBzQ3JR/3xip+JxuyyOgJie sPwGu/JMN7jEFV6mrJTF7D3MTf3pZ0yJnC3T7MlUPCTLBFSRspWOuv08mNEG5RB+gQQL JiqQd6TzMLp4cMmC7gk+IQWJ7bFZcM5ym9xVqInQI9LPA8VkyNcM+gx2TgrrmjeAQtCb Tmqg== X-Gm-Message-State: AA+aEWaCsbCBf50S/APh4vfBobD2pNV55ncSLrN1aZMhr+ccE/zJ4zH/ jwB8UUCxeL2FHvhTnwb7jk7ZWiUAPWVs8UzHymNGSA== X-Received: by 2002:a24:138b:: with SMTP id 133-v6mr4830676itz.117.1542978923307; Fri, 23 Nov 2018 05:15:23 -0800 (PST) MIME-Version: 1.0 References: <20181122165106.18238-1-daniel.vetter@ffwll.ch> <20181122165106.18238-2-daniel.vetter@ffwll.ch> <20181123111557.GG8625@dhcp22.suse.cz> <20181123123057.GK4266@phenom.ffwll.local> <20181123124358.GJ8625@dhcp22.suse.cz> In-Reply-To: <20181123124358.GJ8625@dhcp22.suse.cz> From: Daniel Vetter Date: Fri, 23 Nov 2018 14:15:11 +0100 Message-ID: Subject: Re: [PATCH 1/3] mm: Check if mmu notifier callbacks are allowed to fail To: Michal Hocko Cc: Linux Kernel Mailing List , Linux MM , intel-gfx , dri-devel , Andrew Morton , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Rientjes , Jerome Glisse , Paolo Bonzini , Daniel Vetter 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 Fri, Nov 23, 2018 at 1:43 PM Michal Hocko wrote: > On Fri 23-11-18 13:30:57, Daniel Vetter wrote: > > On Fri, Nov 23, 2018 at 12:15:57PM +0100, Michal Hocko wrote: > > > On Thu 22-11-18 17:51:04, Daniel Vetter wrote: > > > > Just a bit of paranoia, since if we start pushing this deep into > > > > callchains it's hard to spot all places where an mmu notifier > > > > implementation might fail when it's not allowed to. > > > > > > What does WARN give you more than the existing pr_info? Is really > > > backtrace that interesting? > > > > Automated tools have to ignore everything at info level (there's too much > > of that). I guess I could do something like > > > > if (blockable) > > pr_warn(...) > > else > > pr_info(...) > > > > WARN() is simply my goto tool for getting something at warning level > > dumped into dmesg. But I think the pr_warn with the callback function > > should be enough indeed. > > I wouldn't mind s@pr_info@pr_warn@ Well that's too much, because then it would misfire in the oom testcase, where failing is ok (desireble even, we want to avoid blocking after all). So needs to be a switch (or else we need to filter it in results, and that's a bit a maintenance headache from a CI pov). -Danile > > If you wonder where all the info level stuff happens that we have to > > ignore: suspend/resume is a primary culprit (fairly important for > > gfx/desktops), but there's a bunch of other places. Even if we ignore > > everything at info and below we still need filters because some drivers > > are a bit too trigger-happy (i915 definitely included I guess, so everyone > > contributes to this problem). > > Thanks for the clarification. > -- > Michal Hocko > SUSE Labs -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch