From: Jane Chu <jane.chu@oracle.com>
To: Dan Williams <dan.j.williams@intel.com>,
"hch@infradead.org" <hch@infradead.org>,
"vishal.l.verma@intel.com" <vishal.l.verma@intel.com>,
"dave.jiang@intel.com" <dave.jiang@intel.com>,
"ira.weiny@intel.com" <ira.weiny@intel.com>,
"nvdimm@lists.linux.dev" <nvdimm@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] acpi/nfit: badrange report spill over to clean range
Date: Fri, 15 Jul 2022 17:38:26 +0000 [thread overview]
Message-ID: <2894719d-3074-2934-a19b-2d26f4d03448@oracle.com> (raw)
In-Reply-To: <62d0bbb19ed1f_1643dc294cc@dwillia2-xfh.jf.intel.com.notmuch>
On 7/14/2022 5:58 PM, Dan Williams wrote:
[..]
>>>
>>>>> However, the ARS engine likely can return the precise error ranges so I
>>>>> think the fix is to just use the address range indicated by 1UL <<
>>>>> MCI_MISC_ADDR_LSB(mce->misc) to filter the results from a short ARS
>>>>> scrub request to ask the device for the precise error list.
>>>>
>>>> You mean for nfit_handle_mce() callback to issue a short ARS per each
>>>> poison report over a 4K range
>>>
>>> Over a L1_CACHE_BYTES range...
>>>
[..]
>>>
>>> For the badrange tracking, no. So this would just be a check to say
>>> "Yes, CPU I see you think the whole 4K is gone, but lets double check
>>> with more precise information for what gets placed in the badrange
>>> tracking".
>>
>> Okay, process-wise, this is what I am seeing -
>>
>> - for each poison, nfit_handle_mce() issues a short ARS given (addr,
>> 64bytes)
>
> Why would the short-ARS be performed over a 64-byte span when the MCE
> reported a 4K aligned event?
Cuz you said so, see above. :) Yes, 4K range as reported by the MCE
makes sense.
>
>> - and short ARS returns to say that's actually (addr, 256bytes),
>> - and then nvdimm_bus_add_badrange() logs the poison in (addr, 512bytes)
>> anyway.
>
> Right, I am reacting to the fact that the patch is picking 512 as an
> arbtitrary blast radius. It's ok to expand the blast radius from
> hardware when, for example, recording a 64-byte MCE in badrange which
> only understands 512 byte records, but it's not ok to take a 4K MCE and
> trim it to 512 bytes without asking hardware for a more precise report.
Agreed.
>
> Recall that the NFIT driver supports platforms that may not offer ARS.
> In that case the 4K MCE from the CPU is all that the driver gets and
> there is no data source for a more precise answer.
>
> So the ask is to avoid trimming the blast radius of MCE reports unless
> and until a short-ARS says otherwise.
>
What happens to short ARS on a platform that doesn't support ARS?
-EOPNOTSUPPORTED ?
>> The precise badrange from short ARS is lost in the process, given the
>> time spent visiting the BIOS, what's the gain?
>
> Generic support for not under-recording poison on platforms that do not
> support ARS.
>
>> Could we defer the precise badrange until there is consumer of the
>> information?
>
> Ideally the consumer is immediate and this precise information can make
> it to the filesystem which might be able to make a better decision about
> what data got clobbered.
>
> See dax_notify_failure() infrastructure currently in linux-next that can
> convey poison events to filesystems. That might be a path to start
> tracking and reporting precise failure information to address the
> constraints of the badrange implementation.
Yes, I'm aware of dax_notify_failure(), but would appreciate if you
don't mind to elaborate on how the code path could be leveraged for
precise badrange implementation.
My understanding is that dax_notify_failure() is in the path of
synchronous fault accompanied by SIGBUS with BUS_MCEERR_AR.
But badrange could be recorded without poison being consumed, even
without DAX filesystem in the picture.
thanks,
-jane
next prev parent reply other threads:[~2022-07-15 17:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 23:26 Jane Chu
2022-07-13 0:48 ` Dan Williams
2022-07-13 23:52 ` Jane Chu
2022-07-14 0:24 ` Dan Williams
2022-07-14 23:22 ` Jane Chu
2022-07-15 0:58 ` Dan Williams
2022-07-15 17:38 ` Jane Chu [this message]
2022-07-15 1:19 ` Dan Williams
2022-07-15 17:26 ` Jane Chu
2022-07-15 19:17 ` Dan Williams
2022-07-15 22:46 ` Jane Chu
2022-08-29 8:11 ` [tip: ras/core] x86/mce: Retrieve poison range from hardware tip-bot2 for Jane Chu
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=2894719d-3074-2934-a19b-2d26f4d03448@oracle.com \
--to=jane.chu@oracle.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=hch@infradead.org \
--cc=ira.weiny@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nvdimm@lists.linux.dev \
--cc=vishal.l.verma@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
all inboxes | Powered by JetHome®