* what time does host will re-used the prplist memory region.
@ 2015-08-04 3:29 HavenYang
2015-08-04 13:40 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: HavenYang @ 2015-08-04 3:29 UTC (permalink / raw)
Dear all
There is a description from nvme specification 1.2 as following(Figure 26, Completion Queue Entry DW2):
SQ Head Pointer (SQHD): Indicates the current Submission Queue Head pointer for the Submission Queue indicated in the SQ Identifier field. This is used to indicate to the host the Submission Queue entries that have been consumed and may be re-used for new entries.
Note: The value returned is the value of the SQ Head pointer when the completion queue entry was created. By the time host software consumes the completion queue entry, the controller may have an SQ Head pointer that has advanced beyond the value indicated.
It says the SQhead indicate Submission Queue entries may be re-used, but it not say the PRPlist related to this command may be re-used or not, I confused.
my question is:
1. from host side,?what is the condition can host re-used the prplist memory region for a host command, SQHead or command complete?
2. from device side, what is the condition to update SQHead, fetched command head(simple) or fetched all prp from prplist(complex)?
Beset Regards
Haven(havenyang at 126.com)
^ permalink raw reply [flat|nested] 3+ messages in thread
* what time does host will re-used the prplist memory region.
2015-08-04 3:29 what time does host will re-used the prplist memory region HavenYang
@ 2015-08-04 13:40 ` Matthew Wilcox
2015-08-05 0:53 ` HavenYang
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2015-08-04 13:40 UTC (permalink / raw)
On Tue, Aug 04, 2015@11:29:47AM +0800, HavenYang wrote:
> It says the SQhead indicate Submission Queue entries may be re-used, but it not say the PRPlist related to this command may be re-used or not, I confused.
>
> my question is:
> 1. from host side,?what is the condition can host re-used the prplist memory region for a host command, SQHead or command complete?
The host can only reuse the PRP list memory when the command has been
completed. The device is entitled to use the PRP list throughout
execution of the command.
> 2. from device side, what is the condition to update SQHead, fetched command head(simple) or fetched all prp from prplist(complex)?
The first; the host only takes this as an indication that it can reuse
the SQ entry.
^ permalink raw reply [flat|nested] 3+ messages in thread
* what time does host will re-used the prplist memory region.
2015-08-04 13:40 ` Matthew Wilcox
@ 2015-08-05 0:53 ` HavenYang
0 siblings, 0 replies; 3+ messages in thread
From: HavenYang @ 2015-08-05 0:53 UTC (permalink / raw)
Dear Matthew
Thank you for your feedback, it's very important to me.
I suggest your comment for my first question should be wrote to the spec,
otherwise, there maybe others confused for this issue and go to the wrong way.
At 2015-08-04 21:40:00, "Matthew Wilcox" <willy@linux.intel.com> wrote:
>On Tue, Aug 04, 2015@11:29:47AM +0800, HavenYang wrote:
>> It says the SQhead indicate Submission Queue entries may be re-used, but it not say the PRPlist related to this command may be re-used or not, I confused.
>>
>> my question is:
>> 1. from host side,?what is the condition can host re-used the prplist memory region for a host command, SQHead or command complete?
>
>The host can only reuse the PRP list memory when the command has been
>completed. The device is entitled to use the PRP list throughout
>execution of the command.
>
>> 2. from device side, what is the condition to update SQHead, fetched command head(simple) or fetched all prp from prplist(complex)?
>
>The first; the host only takes this as an indication that it can reuse
>the SQ entry.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-05 0:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-04 3:29 what time does host will re-used the prplist memory region HavenYang
2015-08-04 13:40 ` Matthew Wilcox
2015-08-05 0:53 ` HavenYang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox