From patchwork Thu Aug 20 05:42:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 7040761 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6E726C05AC for ; Thu, 20 Aug 2015 05:42:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 81C4C2053C for ; Thu, 20 Aug 2015 05:42:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DCEA2053D for ; Thu, 20 Aug 2015 05:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267AbbHTFml (ORCPT ); Thu, 20 Aug 2015 01:42:41 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35716 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbbHTFmk (ORCPT ); Thu, 20 Aug 2015 01:42:40 -0400 Received: by pdob1 with SMTP id b1so10053194pdo.2 for ; Wed, 19 Aug 2015 22:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=hmsKb8Fy11aUikay4V/QoPTuBHZpC0h8bEYPPtorke4=; b=dOcmuM0RPpyngvgf67eEOx2r6FQUQeGnw7di9LUt5hH2Tvg+DDfUsnSjPErAyCb0TA iMLhOEIRPIY0Aq/7Vse1tIc5E+kULCPqUJtCPeHTfEnmcE7I3TkNJmLkeItFT+T89ZYw UW8pmxzvEJ4n2lzeaXqRbbAwjSGdtJozTGq9OT/L2bfgbQs6tUjcgGKHH67CqFhMbf8g lx+Kv6x+qn7M6rB9iCxPVYoeH2uaGN7m7zKR9dUoIQ17Q0U2knNaCwOddtk4N957hvtK 672on6Y79rj3U+OlBFSElgRtYoiQwvDb0wvfzmT7w1MMn+T7yBKKtiDB8/Rv1xatvexW fybQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=hmsKb8Fy11aUikay4V/QoPTuBHZpC0h8bEYPPtorke4=; b=e57ow2YX+Y8211NH0tMgRkSyuMMPtGD9B8agtp+P6US3kMpB7w5P2emDF1ULb5/ouG e6xL/ZP2S5wP+8GXYaqxMYDR1sCezUm/xo6aS4C91yORvDzgYJwdsd/1UTpjjyLjLwml ZJJq6ypF5fR1XXaxpgSx0gaDMflqR+9cfWYMMuKtCiLYXars814tfxbZBhg1QTNpFY/a MixWzH5D76qvkBHKoBv+ZbMJLGLfiV2nlzCk5gLGctXZehwNmqZ/49Ga77+4pW3X7Wpk DnTAfgxr068XRtd4cGnQkA7IaXvQ/gvIbAH0eHsBMlFR/RO4AmRROB76GOhAazhV7J0z Tjyg== X-Gm-Message-State: ALoCoQn0B6zJ6Nz0A3+TRG4bop0dGE//LToUBmYQ24bishk0kawWutAEA9silIO9CNT3e8rwmvBj X-Received: by 10.70.22.234 with SMTP id h10mr2962662pdf.102.1440049359908; Wed, 19 Aug 2015 22:42:39 -0700 (PDT) Received: from google.com ([70.96.146.23]) by smtp.gmail.com with ESMTPSA id qr5sm2819337pbb.26.2015.08.19.22.42.37 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 19 Aug 2015 22:42:38 -0700 (PDT) Date: Thu, 20 Aug 2015 00:42:34 -0500 From: Bjorn Helgaas To: Helge Deller Cc: John David Anglin , Yinghai Lu , Meelis Roos , linux-parisc@vger.kernel.org, "linux-pci@vger.kernel.org" , "sparclinux@vger.kernel.org" , James Bottomley Subject: Re: Re: A500 boot crash in 4.2.0-rc3-00246-g763e326 Message-ID: <20150820054234.GA10267@google.com> References: <55D38BE6.6080302@gmx.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Aug 19, 2015 at 04:06:38PM +0200, Helge Deller wrote: > > On 2015-08-19, at 1:30 AM, Yinghai Lu wrote: > > > On Tue, Aug 18, 2015 at 9:48 PM, Meelis Roos wrote: > > >>> On Tue, Aug 18, 2015 at 12:47 PM, Helge Deller wrote: > > >>> > > >>> Then we should change to > > >>> > > >>> config PCI_BUS_ADDR_T_64BIT > > >>> def_bool y if (ARCH_DMA_ADDR_T_64BIT || SPARC64) > > >>> depends on PCI > > >> > > >> Why SPARC64? The problem happened on parisc. > > > so will not set PCI_BUS_ADDR_T_64BIT for parisc. > > I think given the current time frame it's probably the best approach to fix this problem for kernel 4.2. > It reverts the behaviour back to how it was before (for all arches beside SPARC64). > I'm still wondering if/why parisc is the only arch (in the sym53c8xx driver only!) which broke by this change... > > > I'm not sure this is optimal. While the A500 may only have 32-bit PCI, c8000 appears to have a mix > > of 32 and 64-bit, and rp34XX is all 64-bit. > > True, but probably nobody of us noticed that we only used the 32-bit PCI interface even with 64bit kernel on parisc up to now? > pci_bus_alloc_resource() in drivers/pci/bus.c just disabled (flag=0) all 64bit resources for us. > But I agree, I think we need to fix drivers/parisc/lba_pci.c to correctly cope with 64bit pci addresses. I doubt we can fix the underlying issue before v4.2, but I'd at least like to avoid it. I applied the patch below to for-linus. Yinghai proposed this: > > >>> def_bool y if (ARCH_DMA_ADDR_T_64BIT || SPARC64) I did this instead: + def_bool y if (ARCH_DMA_ADDR_T_64BIT || (64BIT && !PARISC)) because (a) Yinghai's proposal suggests this change is related to SPARC64, which is misleading, and (b) I want to keep 64-bit bus addresses for all 64-bit kernels *except* PA-RISC. I didn't mark it as Tested-by Meelis because I think he tested Yinghai's proposal. But I can add that back, given confirmation. commit 51a660a2732c Author: Bjorn Helgaas Date: Thu Aug 20 00:08:15 2015 -0500 PCI: Don't use 64-bit bus addresses on PA-RISC Meelis and Helge reported that 3a9ad0b4fdcd ("PCI: Add pci_bus_addr_t") caused HPMCs on A500 and hangs on rp5470. PA-RISC does not set ARCH_DMA_ADDR_T_64BIT, even for 64-bit kernels, so prior to 3a9ad0b4fdcd, we always used 32-bit PCI addresses. After 3a9ad0b4fdcd, we do use 64-bit PCI addresses in 64-bit kernels, and apparently there's some PA-RISC problem related to them. Fixes: 3a9ad0b4fdcd ("PCI: Add pci_bus_addr_t") Link: http://lkml.kernel.org/r/alpine.LRH.2.11.1507260929000.30065@math.ut.ee Reported-by: Meelis Roos Reported-by: Helge Deller Based-on-idea-by: Yinghai Lu Signed-off-by: Bjorn Helgaas Acked-by: Yinghai Lu Tested-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index 73de4ef..944f500 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -2,7 +2,7 @@ # PCI configuration # config PCI_BUS_ADDR_T_64BIT - def_bool y if (ARCH_DMA_ADDR_T_64BIT || 64BIT) + def_bool y if (ARCH_DMA_ADDR_T_64BIT || (64BIT && !PARISC)) depends on PCI config PCI_MSI