From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Thomas Lendacky <Thomas.Lendacky@amd.com>,
keir@xen.org,
Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>,
Anup Patel <anup.patel@linaro.org>,
andrew.cooper3@citrix.com, xen-devel@lists.xen.org,
Julien Grall <julien.grall@citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
jbeulich@suse.com, sherry.hurwitz@amd.com,
Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
shurd@broadcom.com,
Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Subject: Re: [PATCH V8 RESEND] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips
Date: Thu, 20 Mar 2014 17:07:28 +0000 [thread overview]
Message-ID: <532B2050.8080605@linaro.org> (raw)
In-Reply-To: <1395334073.3104.36.camel@kazak.uk.xensource.com>
Hi Ian,
On 03/20/2014 04:47 PM, Ian Campbell wrote:
> 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.
This is because lsr_mask is not initialized for the device tree bit.
We should have something in ns16550_uart_dt_init like:
+ /* Default lsr_mask = UART_LSR_THRE */
+ uart->lsr_mask = UART_LSR_THRE;
+
I think in long term, ns16550_init and ns16550_uart_dt_init should share
this sort of initializations to avoid other failure on ARM.
Regards,
--
Julien Grall
prev parent reply other threads:[~2014-03-20 17:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 21:11 [PATCH V8 RESEND] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips Aravind Gopalakrishnan
2014-02-26 7:09 ` Keir Fraser
2014-03-20 16:47 ` Ian Campbell
2014-03-20 17:04 ` [PATCH] ns16550: setup default lsr_mask for DT systems too (Was: Re: [PATCH V8 RESEND] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips) Ian Campbell
2014-03-20 17:08 ` Julien Grall
2014-03-20 19:08 ` Konrad Rzeszutek Wilk
2014-03-21 10:02 ` Pranavkumar Sawargaonkar
2014-03-21 10:21 ` [PATCH v2] ns16550: make some initialisation common Ian Campbell
2014-03-21 11:16 ` Keir Fraser
2014-03-21 12:21 ` Ian Campbell
2014-03-21 13:32 ` Konrad Rzeszutek Wilk
2014-03-21 13:44 ` Ian Campbell
2014-03-21 15:05 ` [PATCH] ns16550: setup default lsr_mask for DT systems too (Was: Re: [PATCH V8 RESEND] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips) Chen Baozi
2014-03-24 12:49 ` Ian Campbell
2014-03-20 17:07 ` Julien Grall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=532B2050.8080605@linaro.org \
--to=julien.grall@linaro.org \
--cc=Aravind.Gopalakrishnan@amd.com \
--cc=Ian.Campbell@citrix.com \
--cc=Suravee.Suthikulpanit@amd.com \
--cc=Thomas.Lendacky@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=anup.patel@linaro.org \
--cc=jbeulich@suse.com \
--cc=julien.grall@citrix.com \
--cc=keir@xen.org \
--cc=pranavkumar@linaro.org \
--cc=sherry.hurwitz@amd.com \
--cc=shurd@broadcom.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.