From: Borislav Petkov <bp@alien8.de>
To: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: tony.luck@intel.com, mchehab@osg.samsung.com,
arozansk@redhat.com, linux-edac@vger.kernel.org
Subject: [v3,1/1] EDAC, skx_edac: Add address translation for non-volatile DIMMs
Date: Sun, 21 Oct 2018 12:26:43 +0200 [thread overview]
Message-ID: <20181021102643.GA26247@zn.tnic> (raw)
On Sun, Oct 21, 2018 at 03:18:56PM +0800, Qiuxu Zhuo wrote:
> Current skx_edac driver doesn't support address translation for
> non-volatile DIMMs.
>
> The ACPI ADXL DSM method support address translation for both
> volatile DIMMs and non-volatile DIMMs. So switch skx_edac to use
> the wrapped ACPI DSM methods, if they are supported and there are
> non-volatile DIMMs populated on the system.
>
> (The debugfs cleanup and test for ADXL DSM decoding will be added
> in later commits).
>
> Co-developed-by: Tony Luck <tony.luck@intel.com>
> Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
> ---
>
> Boris:
> Correct the SoB chain.
> Change the variable 'nvdimm_count' type from 'int' to 'unsigned int'.
> Cast some variables of adxl_values[] from 'u64' to 'int in' skx_adxl_decode().
> Remove the memory allocation error messages.
>
> Qiuxu:
> Use 'struct decoded_addr' pointer as parameter for skx_adxl_decode().
> Exit skx_adxl_get() on the error of 'adxl_values' memory allocation.
>
> Pass test:
> Apply the patch on top of Boris' edac-for-4.20-skx-3 branch
> and add the test code as below in debugfs_u64_set():
>
> struct mce m;
> memset(&m, 0, sizeof(m));
> m.status = MCI_STATUS_ADDRV + 0x90;
> m.status |= BIT_ULL(MCI_STATUS_CEC_SHIFT);
> m.addr = val;
> skx_mce_check_error(NULL, 0, &m);
>
> Decoding via ADXL DSM and via original skx_edac code
> worked well on Skylake-2S + BIOS with ADXL DSM support.
>
>
> drivers/edac/Kconfig | 1 +
> drivers/edac/skx_edac.c | 193 +++++++++++++++++++++++++++++++++++++---
> 2 files changed, 181 insertions(+), 13 deletions(-)
Thanks. Applied and pushed here:
https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=edac-for-4.20-skx-3
next reply other threads:[~2018-10-21 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-21 10:26 Borislav Petkov [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-10-21 7:18 [v3,1/1] EDAC, skx_edac: Add address translation for non-volatile DIMMs Qiuxu Zhuo
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=20181021102643.GA26247@zn.tnic \
--to=bp@alien8.de \
--cc=arozansk@redhat.com \
--cc=linux-edac@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=qiuxu.zhuo@intel.com \
--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