All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: edk2-devel@lists.sourceforge.net, "Anbazhagan,
	Baraneedharan" <anbazhagan@hp.com>,
	Feng Tian <feng.tian@intel.com>,
	Keith Busch <keith.busch@intel.com>
Cc: qemu devel list <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [edk2] NVMe question
Date: Tue, 02 Jun 2015 09:45:58 +0200	[thread overview]
Message-ID: <556D5F36.1050907@redhat.com> (raw)
In-Reply-To: <7F1BAD85ADEA444D97065A60D2E97EE501D6AB7C@SHSMSX101.ccr.corp.intel.com>

On 06/02/15 09:19, Tian, Feng wrote:
> Thanks for the info.
> 
>  
> 
> I didn’t test it on NVMe-Qemu, I just run the change on a real
> production. I will do bigger scope test to see if it’s valuable to add
> it back.

This email thread is a perfect example why top-posting is a horrible
practice.

The NVMe device model was developed for QEMU by Intel's own Keith Busch
(added to the address list). Now Keith will have to read this email in
reverse. (A good portion of which consists of confidentiality notices,
posted to a public mailing list.) Good luck.

Keith, here's the thread, if it helps:
http://thread.gmane.org/gmane.comp.bios.tianocore.devel/15073

The issue seems to be that

https://github.com/tianocore/edk2/commit/d6c55989

removed the nonzero initialization of Cc.Iosqes (submission queue size?)
and Cc.Iocqes (completion queue size?) in function
NvmeEnableController(). And the removal of these field initializations
seems to cause the early sanity check in QEMU's nvme_start_ctrl() to
fail -- my guess at least.

The question is now if QEMU is right (according to the NVMe spec) to
require those fields, or if edk2 is right not to initialize them.

(On the side, let me point out that even if this edk2 change was
justified, it definitely should have been a separate patch, because it
has nothing to do with "Expose EFI_NVM_EXPRESS_PASS_THRU protocol".)

Let me break it down for the 1000th time:
- don't top post
- write focused patches

PLEASE! It's not 1980 any longer.

Thanks
Laszlo

> 
> Thanks
> 
> Feng
> 
>  
> 
> *From:* Anbazhagan, Baraneedharan [mailto:anbazhagan@hp.com]
> *Sent:* Tuesday, June 02, 2015 06:22
> *To:* Tian, Feng; edk2-devel@lists.sourceforge.net
> *Subject:* RE: NVMe question
> 
>  
> 
> Thanks for the update. NVMe used to work in QEMU and started failing now
> with this change. May be NVMe emulation issue in QEMU.
> 
>  
> 
> -Baranee
> 
>  
> 
> CONFIDENTIALITY NOTICE: The information contained in this e-mail and any
> accompanying documents may contain information which is HP confidential
> or otherwise protected from disclosure. This transmission may also be
> protected by the attorney-client privilege, the attorney work-product
> privilege, or both. If you are not the intended recipient of this
> message, or if this message has been addressed to you in error, please
> immediately alert the sender by reply e-mail and then delete this
> message, including any attachments. Any dissemination, distribution or
> other use of the contents of this message by anyone other than the
> intended recipient is strictly prohibited.
> 
>  
> 
> *From:* Tian, Feng [mailto:feng.tian@intel.com]
> *Sent:* Sunday, May 31, 2015 9:54 PM
> *To:* Anbazhagan, Baraneedharan; edk2-devel@lists.sourceforge.net
> <mailto:edk2-devel@lists.sourceforge.net>
> *Cc:* Tian, Feng
> *Subject:* RE: NVMe question
> 
>  
> 
> Hi, Baraneedharan
> 
>  
> 
> Why I removed these two fields initialization is because NVMe spec 7.6.1
> doesn’t say it’s mandatory.
> 
>  
> 
> Do you see any real impact on this?
> 
>  
> 
> Thanks
> 
> Feng
> 
>  
> 
> *From:* Anbazhagan, Baraneedharan [mailto:anbazhagan@hp.com]
> *Sent:* Saturday, May 30, 2015 06:21
> *To:* Tian, Feng; edk2-devel@lists.sourceforge.net
> <mailto:edk2-devel@lists.sourceforge.net>
> *Subject:* NVMe question
> 
>  
> 
> With recent changes to NvmExpressDxe module, NvmeEnableController
> doesn’t set I/O completion and submission queue size. Why default values
> are removed?  
> 
>  
> 
>  
> 
> CONFIDENTIALITY NOTICE: The information contained in this e-mail and any
> accompanying documents may contain information which is HP confidential
> or otherwise protected from disclosure. This transmission may also be
> protected by the attorney-client privilege, the attorney work-product
> privilege, or both. If you are not the intended recipient of this
> message, or if this message has been addressed to you in error, please
> immediately alert the sender by reply e-mail and then delete this
> message, including any attachments. Any dissemination, distribution or
> other use of the contents of this message by anyone other than the
> intended recipient is strictly prohibited.
> 
>  
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 

       reply	other threads:[~2015-06-02  7:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8530272280D33D4095B8F02BA1B57BAC3AFD753D@G9W0345.americas.hpqcorp.net>
     [not found] ` <7F1BAD85ADEA444D97065A60D2E97EE501D6A4BB@SHSMSX101.ccr.corp.intel.com>
     [not found]   ` <8530272280D33D4095B8F02BA1B57BAC3AFD9AB1@G9W0345.americas.hpqcorp.net>
     [not found]     ` <7F1BAD85ADEA444D97065A60D2E97EE501D6AB7C@SHSMSX101.ccr.corp.intel.com>
2015-06-02  7:45       ` Laszlo Ersek [this message]
2015-06-02 19:11         ` [Qemu-devel] [edk2] NVMe question Keith Busch
2015-06-03  0:21           ` Tian, Feng
2015-06-03 14:46             ` Busch, Keith
2015-06-04  2:04               ` Tian, Feng

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=556D5F36.1050907@redhat.com \
    --to=lersek@redhat.com \
    --cc=anbazhagan@hp.com \
    --cc=edk2-devel@lists.sourceforge.net \
    --cc=feng.tian@intel.com \
    --cc=keith.busch@intel.com \
    --cc=qemu-devel@nongnu.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.