]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/NvmExpressDxe: Fix some bugs
authorFeng Tian <feng.tian@intel.com>
Wed, 11 Sep 2013 06:57:53 +0000 (06:57 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Sep 2013 06:57:53 +0000 (06:57 +0000)
commit7b8883c6a97c9e9dcaa456a67f66f92dde45685f
tree04446b2dde40afaf6d717f5507bea1ac6670c7d5
parentad3f3656413db1727218c605fd1c367c00be9b58
MdeModulePkg/NvmExpressDxe: Fix some bugs

1) The Queue size field in create I/O submission/completion queue cmds is 0-based. the current code is 1-based.
2) a typo on allocated memory page size. it's inconsistent that some places is using 4 pages, but a place is using 6 pages.
3) a typo on PRP/SGL mechanism judgment. should directly use Psdt field rather than Opc field.
4) some platforms may not support UINT64 width access on MMIO register. Fix it to use two 32-bit width access.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Kinney Michael <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14657 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.h
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c