Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935739AbcCQLgi (ORCPT ); Thu, 17 Mar 2016 07:36:38 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:58260 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934257AbcCQLgc (ORCPT ); Thu, 17 Mar 2016 07:36:32 -0400 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: xyjxie@linux.vnet.ibm.com X-IBM-RcptTo: kvm@vger.kernel.org;linux-doc@vger.kernel.org;linux-kernel@vger.kernel.org;linux-pci@vger.kernel.org Subject: Re: [RFC PATCH v4 3/7] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set To: Alex Williamson References: <1457336918-3893-1-git-send-email-xyjxie@linux.vnet.ibm.com> <1457336918-3893-4-git-send-email-xyjxie@linux.vnet.ibm.com> <20160316103151.0269f0c5@t450s.home> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-doc@vger.kernel.org, bhelgaas@google.com, corbet@lwn.net, aik@ozlabs.ru, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, warrier@linux.vnet.ibm.com, zhong@linux.vnet.ibm.com, nikunj@linux.vnet.ibm.com From: Yongji Xie Message-ID: <56EA9682.5050600@linux.vnet.ibm.com> Date: Thu, 17 Mar 2016 19:35:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160316103151.0269f0c5@t450s.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16031711-0009-0000-0000-0000037201FD Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1661 Lines: 42 On 2016/3/17 0:31, Alex Williamson wrote: > On Mon, 7 Mar 2016 15:48:34 +0800 > Yongji Xie wrote: > >> The resource_alignment will releases memory resources >> allocated by firmware so that kernel can reassign new >> resources later on. But this will cause the problem >> that no resources can be allocated by kernel if >> PCI_PROBE_ONLY was set, e.g. on pSeries platform >> because PCI_PROBE_ONLY force kernel to use firmware >> setup and not to reassign any resources. >> >> To solve this problem, this patch ignores >> resource_alignment if PCI_PROBE_ONLY was set. >> >> Signed-off-by: Yongji Xie >> --- >> Documentation/kernel-parameters.txt | 2 ++ >> drivers/pci/probe.c | 3 ++- >> 2 files changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt >> index d8b29ab..8028631 100644 >> --- a/Documentation/kernel-parameters.txt >> +++ b/Documentation/kernel-parameters.txt >> @@ -2922,6 +2922,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted. >> windows need to be expanded. >> noresize: Don't change the resources' sizes when >> reassigning alignment. >> + Note that this option will not work if >> + PCI_PROBE_ONLY is set. > How would a user have any idea if this is set? I found the PCI_PROBE_ONLY is set on pSeries, maple and arm with "firmware" kernel parameter enabled. So can we say: Note that this option will not work on pSeries, maple and arm with "firmware" kernel parameter enabled? Or do you have any suggestion? Thanks, Yongji Xie