Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp131370ybl; Thu, 15 Aug 2019 14:06:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyo2yT9J91ZqKX91AopzqKCBDrZ6BHXrNmtGQjxVaxQN54uJ7GVCym7zicMJWopVWVgRJaC X-Received: by 2002:a17:90b:f13:: with SMTP id br19mr3928849pjb.124.1565903202386; Thu, 15 Aug 2019 14:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565903202; cv=none; d=google.com; s=arc-20160816; b=tQ7zay5GJhv0XEpFpCqqf1os1ZMIlzEXZ1mWoJCTeUrOENw39JQLvkztgYJannVVeK nkrzpCc1dB/fMHxoQfp/hVcjJFfSpM+PlomBb1D76QvnXz4f+zBpMBY+kyazv9BOjMi4 3BCMSLFsah1caIzEPrC68VcL8yC78i9UT423qvB+CVvMLNasypGRB0PowtIJDlUIHw6+ pkkqrDXaKFMMPXK0cV82QEplu1jO0LltkniVm8CmF4xIp5mYrUmLPqn4pT6gqUh/VxzH vzmU/q1dsNAaDtv64ZZiBIeDfsDlyExkJtBVJ/Z4ozUCt3wwT5YupQPbLdnOkquOq8wf KrjQ== 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=lgnLIsY3NAF2I8cARaxRotDmNV7GudD+acm8febioSE=; b=Q2XAAm+RrYQXNrQjutHLDj1tmwAZkTpwkTEQhEhtB/ZT3ZyVLUi6w6ppBNMXAh0pJ9 Rs6NWIMLkeNQLr8leaboceVpP4jmOOdE0Ta45AdE3UkAPb7MIbvNhGC6Q9YZY3F71AIe uy5m/6+Q3su14sTVq7BrRnr6IoSHRkidz5KECnqZjA7Lkw0spwqp+sTKOWCgKmN8tiCL f+dYePsPXXC+SehC8q7/8XsY4ggTFaARkDsHaa3kCLFqVZZblpCLRftA3Mt0mCK3+4Ov IliddQgkF9XeK7RONdWXKbNDsA26ZG7EBHfruS3Qc3+n2vz9RTOzVSaOMSP78hsYNTw2 X4aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=YIJ7YIpM; 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 j23si1607758pjn.19.2019.08.15.14.06.20; Thu, 15 Aug 2019 14:06:42 -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=@ffwll.ch header.s=google header.b=YIJ7YIpM; 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 S1732647AbfHOUto (ORCPT + 99 others); Thu, 15 Aug 2019 16:49:44 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34341 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730540AbfHOUto (ORCPT ); Thu, 15 Aug 2019 16:49:44 -0400 Received: by mail-oi1-f195.google.com with SMTP id l12so3271681oil.1 for ; Thu, 15 Aug 2019 13:49:43 -0700 (PDT) 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=lgnLIsY3NAF2I8cARaxRotDmNV7GudD+acm8febioSE=; b=YIJ7YIpMxznBPHgTdpSwquDHILTgLsnpo12EU8rkd+AHKFJZ5ZwqKoIwrRqaFSFR8y OSm/+kJt94YLyv2W7RB5Syzoulous/GPdyhQE4c6S/acM0xv4AIF2T1fqDaLkhBzGFIm 8xguUk+swY546hiuNvL1kRCs6fhSMGv4cUMt8= 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=lgnLIsY3NAF2I8cARaxRotDmNV7GudD+acm8febioSE=; b=O/N57L+yU54H45dwsxKDPkzetnFuDtTfo1s9q2L9WSnHtl+zNl/MvrhE8IHP1ri2U4 f3WMOeJU67dw8t2I82zIqiZN+AF87Ix5Sx54oWNSJtO6yUPIBOSLbs9BmASG45qscIHn CnDcFCo11hL8mobY7QJAiu8ogcgUMV9OqmRmZA7nwohNwu/gKgf9A9psWWZNJ7OttkW7 r+kV8uqLjyYv3kA1h3f+Hj682G27j/1y0svu9encN/S39s2/DXqxmFBLH3eisYGZrYNq A5ZjC349Cu0dGRWRkROIKMMC2ZoeevtLOshSWIvFYgZJxyJbJnL1WmEN41ilsU6TjjCO ndwg== X-Gm-Message-State: APjAAAWtSPO7gfazr8YZYo+v1PqczmjAN2O7Y0Zy6bz/g3px8DeE7aM8 4TNbAlsBJp7PmBZTisZXyr1fzkfKHECrE2ghpEDUiw== X-Received: by 2002:aca:4994:: with SMTP id w142mr2705861oia.132.1565902183316; Thu, 15 Aug 2019 13:49:43 -0700 (PDT) MIME-Version: 1.0 References: <20190815132127.GI9477@dhcp22.suse.cz> <20190815141219.GF21596@ziepe.ca> <20190815155950.GN9477@dhcp22.suse.cz> <20190815165631.GK21596@ziepe.ca> <20190815174207.GR9477@dhcp22.suse.cz> <20190815182448.GP21596@ziepe.ca> <20190815190525.GS9477@dhcp22.suse.cz> <20190815191810.GR21596@ziepe.ca> <20190815193526.GT9477@dhcp22.suse.cz> <20190815202721.GV21596@ziepe.ca> In-Reply-To: <20190815202721.GV21596@ziepe.ca> From: Daniel Vetter Date: Thu, 15 Aug 2019 22:49:31 +0200 Message-ID: Subject: Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end() To: Jason Gunthorpe Cc: Michal Hocko , Feng Tang , Randy Dunlap , Kees Cook , Masahiro Yamada , Peter Zijlstra , Intel Graphics Development , Jann Horn , LKML , DRI Development , Linux MM , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Ingo Molnar , Thomas Gleixner , David Rientjes , Wei Wang , Daniel Vetter , Andrew Morton , Andy Shevchenko , =?UTF-8?Q?Christian_K=C3=B6nig?= 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 Thu, Aug 15, 2019 at 10:27 PM Jason Gunthorpe wrote: > On Thu, Aug 15, 2019 at 10:16:43PM +0200, Daniel Vetter wrote: > > So if someone can explain to me how that works with lockdep I can of > > course implement it. But afaics that doesn't exist (I tried to explain > > that somewhere else already), and I'm no really looking forward to > > hacking also on lockdep for this little series. > > Hmm, kind of looks like it is done by calling preempt_disable() Yup. That was v1, then came the suggestion that disabling preemption is maybe not the best thing (the oom reaper could still run for a long time comparatively, if it's cleaning out gigabytes of process memory or what not, hence this dedicated debug infrastructure). > Probably the debug option is CONFIG_DEBUG_PREEMPT, not lockdep? CONFIG_DEBUG_ATOMIC_SLEEP. Like in my patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch