Linux CXL
 help / color / mirror / Atom feed
From: Alison Schofield <alison.schofield@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: linux-cxl@vger.kernel.org, linux-acpi@vger.kernel.org,
	rafael@kernel.org, bp@alien8.de, dan.j.williams@intel.com,
	tony.luck@intel.com, dave@stgolabs.net,
	jonathan.cameron@huawei.com, ira.weiny@intel.com,
	ming.li@zohomail.com
Subject: Re: [PATCH v5 3/4] cxl: Add extended linear cache address alias emission for cxl events
Date: Wed, 26 Feb 2025 09:19:40 -0800	[thread overview]
Message-ID: <Z79NLEcv3D_6DL15@aschofie-mobl2.lan> (raw)
In-Reply-To: <20250226162224.3633792-4-dave.jiang@intel.com>

On Wed, Feb 26, 2025 at 09:21:20AM -0700, Dave Jiang wrote:
> Add the aliased address of extended linear cache when emitting event
> trace for DRAM and general media of CXL events.

and poison events.

> 
snip

> @@ -870,6 +876,7 @@ TRACE_EVENT(cxl_poison,
>  		__string(region, cxlr ? dev_name(&cxlr->dev) : "")
>  		__field(u64, overflow_ts)
>  		__field(u64, hpa)
> +		__field(u64, hpa_alias0)
>  		__field(u64, dpa)
>  		__field(u32, dpa_length)
>  		__array(char, uuid, 16)
> @@ -892,16 +899,19 @@ TRACE_EVENT(cxl_poison,
>  			memcpy(__entry->uuid, &cxlr->params.uuid, 16);
>  			__entry->hpa = cxl_dpa_to_hpa(cxlr, cxlmd,
>  						      __entry->dpa);
> +			__entry->hpa_alias0 = cxlr->params.cache_size ?
> +				__entry->hpa + cxlr->params.cache_size : ULLONG_MAX;

check for cxl_dpa_to_hpa() returning ULLONG_MAX before doing alias math.

>  		} else {
>  			__assign_str(region);
>  			memset(__entry->uuid, 0, 16);
>  			__entry->hpa = ULLONG_MAX;
> +			__entry->hpa_alias0 = ULLONG_MAX;
>  		}
>  	    ),

snip


  reply	other threads:[~2025-02-26 17:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 16:21 [PATCH v5 0/4] acpi/hmat / cxl: Add exclusive caching enumeration and RAS support Dave Jiang
2025-02-26 16:21 ` [PATCH v5 1/4] acpi: numa: Add support to enumerate and store extended linear address mode Dave Jiang
2025-02-26 16:21 ` [PATCH v5 2/4] acpi/hmat / cxl: Add extended linear cache support for CXL Dave Jiang
2025-02-26 16:21 ` [PATCH v5 3/4] cxl: Add extended linear cache address alias emission for cxl events Dave Jiang
2025-02-26 17:19   ` Alison Schofield [this message]
2025-02-26 16:21 ` [PATCH v5 4/4] cxl: Add mce notifier to emit aliased address for extended linear cache Dave Jiang
2025-02-26 17:27 ` [PATCH v5 0/4] acpi/hmat / cxl: Add exclusive caching enumeration and RAS support Alison Schofield
2025-02-26 21:31 ` Dave Jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z79NLEcv3D_6DL15@aschofie-mobl2.lan \
    --to=alison.schofield@intel.com \
    --cc=bp@alien8.de \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=ming.li@zohomail.com \
    --cc=rafael@kernel.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox