From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932184AbdA3OvR (ORCPT ); Mon, 30 Jan 2017 09:51:17 -0500 Received: from outbound1a.ore.mailhop.org ([54.213.22.21]:40571 "EHLO outbound1a.ore.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753595AbdA3OvM (ORCPT ); Mon, 30 Jan 2017 09:51:12 -0500 X-Greylist: delayed 1008 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Jan 2017 09:51:12 EST X-MHO-User: 33bd65e4-e6f9-11e6-ba57-8bc134ee460a X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 173.50.81.193 X-Mail-Handler: DuoCircle Outbound SMTP X-DKIM: OpenDKIM Filter v2.6.8 io D3C4F80017 Date: Mon, 30 Jan 2017 14:34:18 +0000 From: Jason Cooper To: Bjorn Helgaas Cc: Jason Gunthorpe , Thomas Petazzoni , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] PCI: mvebu: Handle changes to the bridge windows while enabled Message-ID: <20170130143418.GB25924@io.lakedaemon.net> References: <20161212183020.GA30274@obsidianresearch.com> <20170111183055.GD14532@bhelgaas-glaptop.roam.corp.google.com> <20170128211728.GJ20550@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170128211728.GJ20550@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Sat, Jan 28, 2017 at 03:17:28PM -0600, Bjorn Helgaas wrote: > On Wed, Jan 11, 2017 at 12:30:55PM -0600, Bjorn Helgaas wrote: > > On Mon, Dec 12, 2016 at 11:30:20AM -0700, Jason Gunthorpe wrote: > > > The PCI core will write to the bridge window config multiple times > > > while they are enabled. This can lead to mbus failures like: > > > > > > mvebu_mbus: cannot add window '4:e8', conflicts with another window > > > mvebu-pcie mbus:pex@e0000000: Could not create MBus window at [mem 0xe0000000-0xe00fffff]: -22 > > > > > > For me this is happening during a hotplug cycle. The PCI core is > > > not changing the values, just writing them twice while active. > > > > > > The patch addresses the general case of any change to an active window, > > > but not atomically. The code is slightly refactored so io and mem > > > can share more of the window logic. > > > > Looks good to me, but I'm waiting for an ack from Thomas or Jason (listed > > as maintainers and already cc'd). > > Ping, Thomas, Jason C? > > > > Signed-off-by: Jason Gunthorpe > > > --- > > > drivers/pci/host/pci-mvebu.c | 101 +++++++++++++++++++++++++------------------ > > > 1 file changed, 60 insertions(+), 41 deletions(-) Sorry, been on travel and I think Thomas is on holiday. Acked-by: Jason Cooper thx, Jason.