From: Ian Campbell Subject: Re: [PATCH V8 RESEND] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips Date: Thu, 20 Mar 2014 16:47:53 +0000 Message-ID: <1395334073.3104.36.camel@kazak.uk.xensource.com> References: <1393362687-6530-1-git-send-email-Aravind.Gopalakrishnan@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1393362687-6530-1-git-send-email-Aravind.Gopalakrishnan@amd.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: Aravind Gopalakrishnan , Julien Grall , Stefano Stabellini , Pranavkumar Sawargaonkar , Anup Patel Cc: Thomas Lendacky , keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, xen-devel@lists.xen.org, Suravee Suthikulpanit , sherry.hurwitz@amd.com, shurd@broadcom.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-02-25 at 15:11 -0600, Aravind Gopalakrishnan wrote: > Since it is an MMIO device, the code has been modified to accept MMIO based > devices as well. MMIO device settings are populated in the 'uart_config' table. > It also advertises 64 bit BAR. Therefore, code is reworked to account for 64 > bit BAR and 64 bit MMIO lengths. > > Some more quirks are - the need to shift the register offset by a specific > value and we also need to verify (UART_LSR_THRE && UART_LSR_TEMT) bits before > transmitting data. > > While testing, include com1=115200,8n1,pci,0 on the xen cmdline to observe > output on console using SoL. > > Changes from V7: > - per Jan's comments: > - Moving pci_ro_device to ns16550_init_postirq() so that either > one of pci_hide_device or pci_ro_device is done at one place > - remove leading '0' from printk as absent segment identifier > implies zero anyway. > - per Ian's comments: > - fixed issues that casued his build to fail. > - cross-compiled for arm32 and arm64 after applying patch and > build was successful on local machine. Unfortunately this patch breaks the console on the arm64 x-gene platform, it drops a fairly large subset of the characters. I'm not sure why yet. Ian.