Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757482AbaAJRGv (ORCPT ); Fri, 10 Jan 2014 12:06:51 -0500 Received: from mail-ie0-f175.google.com ([209.85.223.175]:53737 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbaAJRGr (ORCPT ); Fri, 10 Jan 2014 12:06:47 -0500 MIME-Version: 1.0 In-Reply-To: <20140110094132.GC3444@yanx> References: <1387485843-17403-1-git-send-email-yinghai@kernel.org> <1387485843-17403-3-git-send-email-yinghai@kernel.org> <20140110094132.GC3444@yanx> Date: Fri, 10 Jan 2014 09:06:46 -0800 X-Google-Sender-Auth: azT37pEPaLvSyeU_Rkz-vIyT0Uw Message-ID: Subject: Re: [PATCH v6 2/2] PCI: Try best to allocate pref mmio 64bit above 4g From: Yinghai Lu To: Guo Chao Cc: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2014 at 1:41 AM, Guo Chao wrote: > On Wed, Jan 08, 2014 at 03:34:54PM -0800, Yinghai Lu wrote: > Just FYI, a Mellanox net card failed after exactly this patch. > > 3.13-rc7 + bjorn's series is OK. After this patch applied, Mellanox > driver complains: > > |mlx4_core 0003:05:00.0: Multiple PFs not yet supported. Skipping PF. > |mlx4_core: probe of 0003:05:00.0 failed with error -22 > > This is caused by MMIO read from BAR 0 (64-bit non-prefetchable) returns > non-zore value. > > Resource assignment, as far as we can see, works fine. The noticable > effect of this patch is putting ROM BAR under non-prefetachable. I try > to revert this effect by adding MEM_64 to its ROM resource and it works > again (system does not expose 4G above aperture yet). Not sure what's > the root cause, looks like a driver/firmware/hardware defect. Interesting. Can you post boot log with "debug ignore_loglevel initcall_debug" and with/without this patch? Thanks Yinghai -- 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/