From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aravind Gopalakrishnan Subject: Re: [PATCH] serial: Skip over PCIe device which have no quirks (fix AMT regression). Date: Thu, 6 Mar 2014 15:33:03 -0600 Message-ID: <5318E98F.2000801@amd.com> References: <201403060043.s260hr5S028392@aserz7021.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WLfuo-00004v-SS for xen-devel@lists.xenproject.org; Thu, 06 Mar 2014 21:33:19 +0000 In-Reply-To: <201403060043.s260hr5S028392@aserz7021.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: "Lendacky, Thomas" , Keir Fraser , Jan Beulich , Konrad Rzeszutek Wilk , "Suthikulpanit, Suravee" , "xen-devel@lists.xenproject.org" List-Id: xen-devel@lists.xenproject.org On 3/5/2014 6:43 PM, Konrad Rzeszutek Wilk wrote: > On Mar 5, 2014 5:46 PM, Aravind Gopalakrishnan wrote: >> On 3/5/2014 3:09 PM, Konrad Rzeszutek Wilk wrote: >>> This patch fixes it and allows us to use AMT again by zeroing >>> out io_base to zero. If the scan did not work, the io_base is >>> set back to a default value. >> If you provide 'amt' on command line => 'skip_amt' = 0 >> Then we'd just return -1 without setting io_base to 0x3f8 due to this >> condition- >> if ( !skip_amt ) >> return -1; >> >> (or am I missing something?) > That particular piece of code is executed after the loop. In the loop is where the AMT is found. >>> + uart->io_base = 0; >> Why not set ns16550.io_base = 0; in arch/x86/setup.c ? > Because then you would break the default COM ports which are not find via PCI scanning. > > Say: com1=9600,8n1 > > Which will use by default the 3f8 io base. Ah. Okay, I see it now.. Thanks for the clarifications. -Aravind.