cxl/pci: Set the device timestamp
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Jan 2023 15:13:27 +0000 (15:13 +0000)
committerDan Williams <dan.j.williams@intel.com>
Mon, 30 Jan 2023 19:30:51 +0000 (11:30 -0800)
commitfa8843451bec55f900b8673d9ddc0be02a61528a
tree110232184185fa4f1e6f20dd385931d4ff0af48d
parent7ebf38c9115ec3b4502c73b4377a7648374d700f
cxl/pci: Set the device timestamp

CXL r3.0 section 8.2.9.4.2 "Set Timestamp" recommends that the host sets
the timestamp after every Conventional or CXL Reset to ensure accurate
timestamps. This should include on initial boot up. The time base that
is being set is used by a device for the poison list overflow timestamp
and all event timestamps.  Note that the command is optional and if
not supported and the device cannot return accurate timestamps it will
fill the fields in with an appropriate marker (see the specification
description of each timestamp).

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230130151327.32415-1-Jonathan.Cameron@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c
drivers/cxl/cxlmem.h
drivers/cxl/pci.c