All of lore.kernel.org
 help / color / mirror / Atom feed
* Mapping PCIe BAR as PMEM
@ 2016-06-15 13:57 Vijairaj
  2016-06-15 14:33 ` Dan Williams
  2016-06-16  0:31 ` Logan Gunthorpe
  0 siblings, 2 replies; 3+ messages in thread
From: Vijairaj @ 2016-06-15 13:57 UTC (permalink / raw)
  To: linux-nvdimm

Hi,
I am running the 4.4 kernel on AMD64 and was wondering what's a good way of
mapping the 16M of battery backed SRAM on a custom PCIe card as PMEM. Once
mapped, I will create a file system on the block device.

I am thinking about doing the following:
    - Use the kernel parameter memmap=nn!ss to reserve the PCIe BAR
    - Write a PCI driver to enable the PCI device `pci_enable_device()`
    - Load the PCI driver
    - Load the nd_pmem driver

Is this sufficient or is there anything else required to be done in the PCI
driver?

thanks,
Vijairaj
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2016-06-16  0:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 13:57 Mapping PCIe BAR as PMEM Vijairaj
2016-06-15 14:33 ` Dan Williams
2016-06-16  0:31 ` Logan Gunthorpe

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.