From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757753AbbJIQVd (ORCPT ); Fri, 9 Oct 2015 12:21:33 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:50271 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757713AbbJIQV3 (ORCPT ); Fri, 9 Oct 2015 12:21:29 -0400 Message-ID: <1444407671.17726.11.camel@oracle.com> Subject: Re: [PATCH v7 12/60] PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64 From: Khalid Aziz To: Yinghai Lu Cc: Bjorn Helgaas , David Miller , Benjamin Herrenschmidt , Wei Yang , TJ , Yijing Wang , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 09 Oct 2015 10:21:11 -0600 In-Reply-To: <1444340359-8011-13-git-send-email-yinghai@kernel.org> References: <1444340359-8011-1-git-send-email-yinghai@kernel.org> <1444340359-8011-13-git-send-email-yinghai@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-10-08 at 14:38 -0700, Yinghai Lu wrote: > If any bridge up to root only have 32bit pref mmio, We don't need to > treat device non-pref mmio64 as as pref mmio64. > > We need to move pci_bridge_check_ranges calling early. > for parent bridges pref mmio BAR may not allocated by BIOS, res flags > is still 0, we need to have it correct set before we check them for > child device resources. > > -v2: check all bus resources instead of just res[15]. > > Signed-off-by: Yinghai Lu Tested on sparc platforms Tested-by: Khalid Aziz