Fix host memory buffer sizes reporting.

Hardware reports values in 4KB units, not in bytes.

MFC after:	3 days
This commit is contained in:
Alexander Motin 2020-01-06 01:51:23 +00:00
parent bfb6b7a121
commit 83018b7987
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356392

View File

@ -192,8 +192,10 @@ nvme_print_controller(struct nvme_controller_data *cdata)
uint128_to_str(to128(cdata->untncap.unvmcap),
cbuf, sizeof(cbuf)));
}
printf("Host Buffer Preferred Size: %d bytes\n", cdata->hmpre);
printf("Host Buffer Minimum Size: %d bytes\n", cdata->hmmin);
printf("Host Buffer Preferred Size: %llu bytes\n",
(long long unsigned)cdata->hmpre * 4096);
printf("Host Buffer Minimum Size: %llu bytes\n",
(long long unsigned)cdata->hmmin * 4096);
printf("\n");
printf("NVM Command Set Attributes\n");