From: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Thomas Lendacky <Thomas.Lendacky@amd.com>,
andrew.cooper3@citrix.com,
Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>,
sherry.hurwitz@amd.com,
xen-devel <xen-devel@lists.xenproject.org>,
shurd@broadcom.com
Subject: Re: [PATCH V7] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips
Date: Thu, 5 Dec 2013 16:36:50 -0600 [thread overview]
Message-ID: <52A10002.70505@amd.com> (raw)
In-Reply-To: <529E18E402000078001098EC@nat28.tlf.novell.com>
On 12/3/2013 10:46 AM, Jan Beulich wrote:
>>>> On 03.12.13 at 17:40, Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> wrote:
>> @@ -434,7 +477,22 @@ static void __init ns16550_endboot(struct serial_port *port)
>> struct ns16550 *uart = port->uart;
>>
>> if ( uart->remapped_io_base )
>> + {
>> + if ( uart->enable_ro ) {
>> + if ( rangeset_add_range(mmio_ro_ranges,
>> + uart->io_base,
>> + uart->io_base + uart->io_size - 1) )
>> + printk(XENLOG_INFO "Error while adding MMIO range of device to mmio_ro_ranges\n");
>> +
>> + if ( pci_ro_device(0, uart->ps_bdf[0],
>> + PCI_DEVFN(uart->ps_bdf[1], uart->ps_bdf[2])) )
> You didn't really fix what you said you fixed. Quoting from my
> reply to v6:
Ok, moved pci_ro_device also to ns16550_init_postirq now so that I do
the hiding in one place..
>>> But, more importantly, did you overlook the use of pci_hide_device()
>>> in ns16550_init_postirq(): The hiding should be done in one place.
>>> And with pci_ro_device() implicitly hiding the device, you should
>>> probably make sure you call just one of the two.
>> + printk(XENLOG_INFO "Could not mark config space of 0:%02x:%02x.%u read-only.\n",
>> + uart->ps_bdf[0], uart->ps_bdf[1],
>> + uart->ps_bdf[2]);
> The leading 0: is pretty pointless - an absent segment/domain
> identifier implies it being zero.
>
>
Fixed this. Sending out changes in V8.
-Aravind.
next prev parent reply other threads:[~2013-12-05 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-03 16:40 [PATCH V7] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips Aravind Gopalakrishnan
2013-12-03 16:46 ` Jan Beulich
2013-12-05 22:36 ` Aravind Gopalakrishnan [this message]
2013-12-03 16:54 ` Ian Campbell
2013-12-05 22:34 ` Aravind Gopalakrishnan
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=52A10002.70505@amd.com \
--to=aravind.gopalakrishnan@amd.com \
--cc=JBeulich@suse.com \
--cc=Suravee.Suthikulpanit@amd.com \
--cc=Thomas.Lendacky@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=sherry.hurwitz@amd.com \
--cc=shurd@broadcom.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).