Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4832121yba; Tue, 30 Apr 2019 05:13:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE8opSTiYD3OpbinTU2+VIg5faLbEIG+j8JQ/fCY2DhsJrYZhlTmass7frwKF5X7CsAH0D X-Received: by 2002:a62:5445:: with SMTP id i66mr40040414pfb.250.1556626395632; Tue, 30 Apr 2019 05:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556626395; cv=none; d=google.com; s=arc-20160816; b=YzZSLzRk+dhrPUl255HElNlXWxRuqhepsUQSofiYogqeP9aDKh5sziIEWwgbsGLfNr /irusxMb9yoOtGQRjwvSzNolwPJOnU9M7VLafJPWpZo/07jhp+DO4eQTfd9hNXEzL41U RXHoYMDMBqaATixap+x2G0ruuXNTC/xSPTrp76HAw4LvdgBOYrOYdaDnBTYDeEFdb2GS 8GMt3236anjQdgVo+dVw03kxVSjiCq/bkHtUtQyysP1UG331n43dZwXWQWDF0mCXp4RF jo9m6xbwg2FXT4PU93ZnDCdoJtwoC8cifAWENMCG3qaUN8cWn3hgOVaWkv2oPGKCZ3er wZZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7qQfUICH5ThnTASCph/ZFazPjhwDVaINTXgbGNuii3s=; b=La35YwGVpRVgMqWd7mFMAfy7fnCpBy+nF1giS2xrEBU8u5+gMuMt7uhs07JfkAKeeK fak8R11VMIr2z5xFZ5xDTOn0AbRVEMSBgxPTPnx70c4Gl6emscIdNbbWijbwJTl/tNf+ tx8AoqG7Uz4SOZ4nFyzwMC7kpj1UV1M/dEnchma+Ue4S8tmen2pagS9iSzzirjjz86I1 DEAdDNfVIUjnOpsVH4ck39nxkFpKhAFPfs6CT6YpILYIC2Cp6ocIAZ6xeuoUjwIqUFkA aYG9+bSuEGt5zH5qakF2u6vsz9TcQzhW6ZmPpc7NUUQQ7AqRgLa9THXE45RUusAeAYTo LUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ip3SQRAE; 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 d25si35260417pgb.229.2019.04.30.05.12.58; Tue, 30 Apr 2019 05:13:15 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ip3SQRAE; 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 S1727004AbfD3MMG (ORCPT + 99 others); Tue, 30 Apr 2019 08:12:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36548 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfD3MMG (ORCPT ); Tue, 30 Apr 2019 08:12:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7qQfUICH5ThnTASCph/ZFazPjhwDVaINTXgbGNuii3s=; b=Ip3SQRAEGBB/8yNwpoUc+vXIP PrAq/6zhGfvp21wgXfzhmsvABXgjF/X+6yrY4KLakgDggT/Lc9MnfsPRyztLKeUk+5AOsF8VR+hDk x6Ymg6arDLAU4Nl2T3sskvJvzToimbfO4OThXTOerTgrpKGL3gSTu6FN4SY1Pr9Ctgk2l3sfEDEhQ Ws/QWSkVQYPZg4V/wFgD0zi2Nl25hHntFX1e+pyLLp48HI/VWppkuSRkQgGXxAqGqWcxLW3rqFVUX fr2K4eZNqQSqfQ0RYpA3H/H5Rijna47+ACME8C5bNcOqkTjh5Nq76/ZhBoEC1DAIIHbw74T7AQRIJ oVVtd4EnQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLRbx-0000kk-GH; Tue, 30 Apr 2019 12:11:49 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 36AE0203C05DB; Tue, 30 Apr 2019 14:11:48 +0200 (CEST) Date: Tue, 30 Apr 2019 14:11:48 +0200 From: Peter Zijlstra To: Yuyang Du Cc: will.deacon@arm.com, Ingo Molnar , Bart Van Assche , ming.lei@redhat.com, Frederic Weisbecker , tglx@linutronix.de, LKML Subject: Re: [PATCH 19/28] locking/lockdep: Optimize irq usage check when marking lock usage bit Message-ID: <20190430121148.GV2623@hirez.programming.kicks-ass.net> References: <20190424101934.51535-1-duyuyang@gmail.com> <20190424101934.51535-20-duyuyang@gmail.com> <20190425193247.GU12232@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 02:57:37PM +0800, Yuyang Du wrote: > Thanks for review. > > On Fri, 26 Apr 2019 at 03:32, Peter Zijlstra wrote: > > > > On Wed, Apr 24, 2019 at 06:19:25PM +0800, Yuyang Du wrote: > > > > After only a quick read of these next patches; this is the one that > > worries me most. > > > > You did mention Frederic's patches, but I'm not entirely sure you're > > aware why he's doing them. He's preparing to split the softirq state > > into one state per softirq vector. > > > > See here: > > > > https://lkml.kernel.org/r/20190228171242.32144-14-frederic@kernel.org > > https://lkml.kernel.org/r/20190228171242.32144-15-frederic@kernel.org > > > > IOW he's going to massively explode this storage. > > If I understand correctly, he is not going to. > > First of all, we can divide the whole usage thing into tracking and checking. > > Frederic's fine-grained soft vector state is applied to usage > tracking, i.e., which specific vectors a lock is used or enabled. > > But for usage checking, which vectors are does not really matter. So, > the current size of the arrays and bitmaps are good enough. Right? Frederic? My understanding was that he really was going to split the whole thing. The moment you allow masking individual soft vectors, you get per-vector dependency chains.