All of lore.kernel.org
 help / color / mirror / Atom feed
* Programming HDM decoders
@ 2023-02-23 21:56 Shesha Bhushan Sreenivasamurthy
  2023-03-01  3:28 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Shesha Bhushan Sreenivasamurthy @ 2023-02-23 21:56 UTC (permalink / raw)
  To: linux-cxl

Hello all,
Section 9.13.3 of CXL3.0 says "Program the HDM decoders appropriately for each region’s base and length from
Get Dynamic Capacity Configuration data" and "Get Dynamic Capacity" which contains the start DPA and length of the extents. How is this DPA used in programming HDM decoders ?

Thanks,
Shesha.

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

* RE: Programming HDM decoders
  2023-02-23 21:56 Programming HDM decoders Shesha Bhushan Sreenivasamurthy
@ 2023-03-01  3:28 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2023-03-01  3:28 UTC (permalink / raw)
  To: Shesha Bhushan Sreenivasamurthy, linux-cxl

Shesha Bhushan Sreenivasamurthy wrote:
> Hello all,
> Section 9.13.3 of CXL3.0 says "Program the HDM decoders appropriately
> for each region’s base and length from Get Dynamic Capacity
> Configuration data" and "Get Dynamic Capacity" which contains the
> start DPA and length of the extents. How is this DPA used in
> programming HDM decoders ?

See Figure 9-24. DCD DPA Space Example. You can think of those regions
as similar to how the driver handles RAM and PMEM regions. As far as
programming decoders the flow is the same for DCD regions as it is for
any other region. The distinction for DCD is that the DPA assigned to
the decoder additionally has a state of 'populated' or 'unpopulated' by
extents whereas RAM and PMEM are always represented by a single
'populated' extent.

The decoder programming flow is described in the cover letter for the
series that added region provisioning for PMEM:

https://lore.kernel.org/all/165784324066.1758207.15025479284039479071.stgit@dwillia2-xfh.jf.intel.com/

Another resource is the source for "cxl create-region":

https://github.com/pmem/ndctl/blob/main/cxl/region.c#L544

Lastly the driver-writer's guide also talks about the region creation
flow:

https://www.intel.com/content/www/us/en/content-details/643805/cxl-memory-device-sw-guide.html

...see Section 2.6 Memory Provisioning.

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

end of thread, other threads:[~2023-03-01  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 21:56 Programming HDM decoders Shesha Bhushan Sreenivasamurthy
2023-03-01  3:28 ` Dan Williams

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.