On Wed, Sep 20, 2017 at 1:53 PM, Christoph Hellwig <[email protected]> wrote: > On Wed, Sep 20, 2017 at 09:52:32AM -0700, Dan Williams wrote: >> What that means is that the utility to read the JEDEC registers would need >> to: >> >> 1/ Determine if the DIMM is standard JEDEC defined DIMM (the ACPI NFIT >> should indicate this) >> >> 2/ Determine if the BIOS provides a DSM command family for the DIMM >> that enables direct SMBUS commands. >> >> 3/ Craft the command in the proper format and send it to the Linux driver. > > if 1 and 2 are successfull shouldn't we have a bus driver for the > in-kernel i2c subsystem that uses the dsm methods? Those way both > kernel clients for it, or userspace programs through /dev/i2c* > could access it?
Makes sense to me. The userspace command passthrough can get this going on any kernel, but creating a generic i2c-bus seems useful for existing i2c clients. The 2 solutions won't conflict since we have a global ASL interpreter lock in the DSM path. _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
