Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030348AbaDJMAP (ORCPT ); Thu, 10 Apr 2014 08:00:15 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:62406 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935532AbaDJMAK (ORCPT ); Thu, 10 Apr 2014 08:00:10 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 96.249.243.124 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/T/qI9kQuN4fKNjarGYApZGrBo+winmds= X-DKIM: OpenDKIM Filter v2.0.1 titan AB57655729C Date: Thu, 10 Apr 2014 07:59:29 -0400 From: Jason Cooper To: Thomas Petazzoni Cc: Jason Gunthorpe , Willy Tarreau , Neil Greatorex , linux-arm-kernel@lists.infradead.org, Matthew Minter , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] bus: mvebu-mbus: Avoid setting an undefined window size Message-ID: <20140410115929.GB28159@titan.lakedaemon.net> References: <1397000654-10849-1-git-send-email-jgunthorpe@obsidianresearch.com> <20140409061128.GC16465@1wt.eu> <20140409162040.GA19743@obsidianresearch.com> <20140410085346.784631f9@skate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140410085346.784631f9@skate> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 10, 2014 at 08:53:46AM +0200, Thomas Petazzoni wrote: > Dear Jason Gunthorpe, > > On Wed, 9 Apr 2014 10:20:40 -0600, Jason Gunthorpe wrote: > > > > OK I just got it by adding two printk() in pci-mvebu.c. Both functions > > > mvebu_pcie_handle_iobase_change() and mvebu_pcie_handle_membase_change() > > > do pass a size which is in fact a mask (size - 1) and not the real size. > > > So the mbus is fed with an incorrect size which is off by one : > > > > Yes, that is right. I tested my patch here and didn't see any problem, > > but I realize now that the mbus code is bailing early due to this: > > > > kernel: mvebu_mbus: cannot add window '4:e8', conflicts with another window > > > > Which I've never got around to fixing.. (whole other story there) > > > > Your patch looks fine, and it obviously needs to be sequenced before > > mine. (Thomas/Jason C: how do you want to do this?) > > What I can propose is that I accumulate in a branch all the patches > needed to solve the various PCIe/Mbus problems we've identified: > > * Your patch adding warnings to the mvebu-mbus driver > * Willy's patch fixing the off-by-one on the size > * Neil's patch fixing the MSI teardown function > * My two patches fixing the rest of the MSI logic > * And patches to come for the link problem, and the cutting of > non-power-of-two BARs into power-of-two windows > > This way, everybody will be able to test than in his specific > hardware situations, the patches are solving all the problems. Then I > can take care of formally submitting those patches to the relevant > maintainers, of course keeping the authorship as appropriate. > > How does that sound? Great! Please do. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/