All of lore.kernel.org
 help / color / mirror / Atom feed
* Weirdness with discard cmd and get log pages
@ 2016-10-13 15:46 Nisha Miller
  2016-10-13 16:15 ` Keith Busch
  0 siblings, 1 reply; 9+ messages in thread
From: Nisha Miller @ 2016-10-13 15:46 UTC (permalink / raw)


Hi,

We are running the stock nvme driver on Centos 7.2 with kernel 3.19.8
and we are seeing some weirdness with get log pages and discard cmd.
In the driver, both these calls setup a SG list for DMA.

In the case of discard command, we are able to fetch the first two
ranges (i.e 16 bytes/range x 2) correctly using DMA. But any ranges
after that contain just junk data. For example, if we try to fetch 4
ranges, ranges 1-2 are valid but ranges 3-4 contain junk.

In the case of get log pages, its even worse. A lot of the data we DMA
to driver/host is mostly junk. And this changes based on how much data
is DMA'd.

Note that DMA for read/write works perfectly.

In our FW, when we fetch data using DMA, we always fetch in multiples
of 32 bytes due to alignment constraints.

Is there something we are missing here that could be causing these problems?

TIA
Nisha Miller

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-18 17:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13 15:46 Weirdness with discard cmd and get log pages Nisha Miller
2016-10-13 16:15 ` Keith Busch
2016-10-13 18:18   ` Nisha Miller
2016-10-13 23:18     ` Keith Busch
2016-10-14 17:44       ` Keith Busch
2016-10-14 21:33         ` Nisha Miller
2016-10-14 23:19           ` Keith Busch
2016-10-18 16:55             ` Nisha Miller
2016-10-18 17:08               ` Keith Busch

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.