Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Karolina Stolarek <karolina.stolarek@oracle.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: linux-pci@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>,
	Jon Pan-Doh <pandoh@google.com>,
	Terry Bowman <terry.bowman@amd.com>, Len Brown <lenb@kernel.org>,
	James Morse <james.morse@arm.com>,
	Tony Luck <tony.luck@intel.com>, Borislav Petkov <bp@alien8.de>,
	Ben Cheatham <Benjamin.Cheatham@amd.com>,
	Ira Weiny <ira.weiny@intel.com>,
	Shuai Xue <xueshuai@linux.alibaba.com>,
	Liu Xinpeng <liuxp11@chinatelecom.cn>,
	Darren Hart <darren@os.amperecomputing.com>,
	Dan Williams <dan.j.williams@intel.com>
Subject: Re: [PATCH] PCI/AER: Consolidate CXL and native AER reporting paths
Date: Fri, 21 Mar 2025 14:56:16 +0100	[thread overview]
Message-ID: <457b32f0-b020-4a0a-a557-0ef8201cb6f8@oracle.com> (raw)
In-Reply-To: <20250320181736.GA1091349@bhelgaas>

On 20/03/2025 19:17, Bjorn Helgaas wrote:
> 
> Maybe there's CXL magic that I missed.  It looks like Terry's series
> changes some of this path.  And GHES also currently uses
> pci_print_aer().  Some sample logs at [1,2].

Maybe that's it, thanks a lot for the pointers.

> Looking at v6.14-rc1, only aer_print_error() logs the "error status"
> string, and only pci_print_aer() logs "aer_status", "aer_layer", etc.
> 
> The previous path is:
> 
>    pci_print_aer
>      pci_err("aer_status: 0x%08x, aer_mask: 0x%08x\n")    <--
>      __aer_print_error
>      pci_err("aer_layer=%s, aer_agent=%s\n")              <--
>      pcie_print_tlp_log
> 
> New path is:
> 
>    aer_print_error
>      pci_printk("PCIe Bus Error: severity=%s, type=%s, (%s)\n")
>      pci_printk("  device [%04x:%04x] error status/mask=%08x/%08x\n)
>      __aer_print_error
>      pcie_print_tlp_log
> 
> So I expected that the lines I marked in pci_print_aer() would be
> different.

Hmm, that seems to be the case. But still, the question is if going with 
the new format that matches what's in AER a bad or disruptive thing. I'd 
like to try going in the direction of using one way of reporting AER 
errors, if possible.

I will send v2 on Monday (with the memset move) and we can keep 
discussing other changes in the patch.

All the best,
Karolina

> 
> Bjorn
> 
> [1] https://lore.kernel.org/lkml/2149597.8uJZFlvqrj@xrated/T/
> [2] https://lore.kernel.org/all/e8a58616-aeae-ad78-d496-6dfcef4ddcaa@arm.com/T/


  reply	other threads:[~2025-03-21 13:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-17 10:14 [PATCH] PCI/AER: Consolidate CXL and native AER reporting paths Karolina Stolarek
2025-03-19 22:21 ` Bjorn Helgaas
2025-03-20 15:14   ` Karolina Stolarek
2025-03-20 18:17     ` Bjorn Helgaas
2025-03-21 13:56       ` Karolina Stolarek [this message]
2025-03-21 15:06         ` Bjorn Helgaas
2025-03-24 19:31           ` Karolina Stolarek

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=457b32f0-b020-4a0a-a557-0ef8201cb6f8@oracle.com \
    --to=karolina.stolarek@oracle.com \
    --cc=Benjamin.Cheatham@amd.com \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=dan.j.williams@intel.com \
    --cc=darren@os.amperecomputing.com \
    --cc=helgaas@kernel.org \
    --cc=ira.weiny@intel.com \
    --cc=james.morse@arm.com \
    --cc=lenb@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=liuxp11@chinatelecom.cn \
    --cc=pandoh@google.com \
    --cc=terry.bowman@amd.com \
    --cc=tony.luck@intel.com \
    --cc=xueshuai@linux.alibaba.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