Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2407992imm; Sat, 18 Aug 2018 19:28:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxVkJhL4PN7xlorzDDwzL3ByG2aJFHoHmxLGK1B7Fi17E3l6jcakdIMuu4di40+lzFQ4F+6 X-Received: by 2002:a62:d74f:: with SMTP id v15-v6mr11050173pfl.257.1534645693994; Sat, 18 Aug 2018 19:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534645693; cv=none; d=google.com; s=arc-20160816; b=zMh7P+1MVOJwxiCW8/isQsq4binvyrdIc6VwuRABFaRs3NXD/3YxTXcfWrgagbr6XR k08Sw802cGmJBPZqvkGRlWTwheUzM78/+UwQrX/AucqGpJ6uShE7M3lzm5PRQHmSRXU+ XOe7D1cv8JD0K6YKrTXs+gLUesbIMdq1j/4Ea2VUzyalD0QeReCr5lVqNle1RLf6kRxy BsfDtv4tkL8/4OASH0vuDbjKT4O1XMfHFixvu8NLTQTPADpqvxtiznGoNPLHGUFCoEjD 1MAf2k/LP5WaoM1MIjTgy33KdV/LwteRmgzKsvx3dYzGptF3xhpEOftaIvOZcBK20GAd tjQg== 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:arc-authentication-results; bh=ENEQj0j8EFmMo9brbkhk0hBU/33+K8EhDy8RUWXWWYQ=; b=a7zk1euti60gyXQxEwaZyqxhgUXlQ3i58tHyYh4Ldg3YNY+D+WKwsrgSSkfeJQg5QR Mvg3ApVa7/D+N3WeCsbT3/9XrPmzEyEpnT/dUzJ7MwyyQr16JBZcCe1QKgzzIjAiSgbS 2IlgJASuzmNrqkoplxVumKddnkPMGZe0sjjvEug+be/939gaOoWdKAvWgnXIKtn0miF+ tiLuA7AJCJ6wzngmApPTm0LEzJuvy8STr+LE1d9/TvOmozTRQLZkwfkw+4zeRMMdecyn RlGq38pwg6o9BSTTeFVXrjZIr1uQNmvVj6vRP+UasdR+9crrQUgtzeIKksnvf1ange82 PiRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ho9dZTH5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si5964900pgh.609.2018.08.18.19.27.30; Sat, 18 Aug 2018 19:28:13 -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=@kernel.org header.s=default header.b=Ho9dZTH5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725913AbeHSFeb (ORCPT + 99 others); Sun, 19 Aug 2018 01:34:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:46828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725741AbeHSFeb (ORCPT ); Sun, 19 Aug 2018 01:34:31 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3ED321737; Sun, 19 Aug 2018 02:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534645482; bh=A1B46vlfA7dsimYJDxjShA5tRftYC8uUYKw3uBwQv9o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ho9dZTH53APNhdX8sV0gVhyfzZ6S6hHjxVvVJDOsmcLdjaywy+nqVJ/UhnKsDFBS9 IOG+wmACVmqwA8nRBJQSuIYj13KKQ5n5xVHx1bCwZgsxHxJNJVcrukiMzCYacdEKAU Lr28L4aRWwr/FMZ3a/xZAP2cgkqQ0rDn2Rq2Fhoc= Date: Sat, 18 Aug 2018 21:24:40 -0500 From: Bjorn Helgaas To: Benjamin Herrenschmidt Cc: linux-pci@vger.kernel.org, Hari Vyas , Ray Jui , Srinath Mannam , Guenter Roeck , Jens Axboe , Lukas Wunner , Konstantin Khlebnikov , Marta Rybczynska , Pierre-Yves Kerbrat , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/6] Revert "PCI: Fix is_added/is_busmaster race condition" Message-ID: <20180819022440.GG128050@bhelgaas-glaptop.roam.corp.google.com> References: <20180817044902.31420-1-benh@kernel.crashing.org> <20180817044902.31420-2-benh@kernel.crashing.org> <20180817154431.GC128050@bhelgaas-glaptop.roam.corp.google.com> <06c1233b71dea08b1fc32334acefc48c32c46557.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06c1233b71dea08b1fc32334acefc48c32c46557.camel@kernel.crashing.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 18, 2018 at 01:24:51PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2018-08-17 at 10:44 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 17, 2018 at 02:48:57PM +1000, Benjamin Herrenschmidt wrote: > > > This reverts commit 44bda4b7d26e9fffed6d7152d98a2e9edaeb2a76. > > > > Just to be clear, if I understand correctly, this is a pure revert of > > 44bda4b7d26e and as such it reintroduces the problem solved by that > > commit. > > > > If your solution turns out to be better, that's great, but it would be > > nice to avoid the bisection hole of reintroducing the problem, then > > fixing it again later. > > There is no way to do that other than merging the revert and the fix > into one. That said, the race is sufficiently hard to hit that I > wouldn't worry too much about it. OK, then at least mention that in the changelog. > > > The new pci state mutex provides a simpler way of addressing > > > this race and avoids the relative includes added to the powerpc > > > code. >