From: John Allen <john.allen@amd.com>
To: Borislav Petkov <bp@alien8.de>
Cc: rafael@kernel.org, lenb@kernel.org, yazen.ghannam@amd.com,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-edac@vger.kernel.org
Subject: Re: [PATCH v2 2/2] RAS/AMD/ATL: Translate normalized to system physical addresses using PRM
Date: Wed, 3 Jul 2024 15:14:53 -0500 [thread overview]
Message-ID: <ZoWxPR+A3xjV1Y/j@AUS-L1-JOHALLEN.amd.com> (raw)
In-Reply-To: <20240628074522.GDZn5qEkTXG0EvQ4Lv@fat_crate.local>
On Fri, Jun 28, 2024 at 09:45:22AM +0200, Borislav Petkov wrote:
> On Mon, May 06, 2024 at 05:47:21PM +0000, John Allen wrote:
> > +#include "internal.h"
> > +
> > +#if defined(CONFIG_ACPI_PRMT)
>
> Instead of that ifdeffery you could do:
>
> config AMD_ATL_PRM
> depends on AMD_ATL && ACPI_PRMT
>
> and it'll get enabled automatically and then you don't need the empty
> stub either.
I'm not sure this works the way we need it to. If ACPI_PRMT is not
enabled, then the norm to sys translation function will be referenced by
the base AMD ATL, but will the symbol will not be found since the the
PRM file doesn't get compiled.
I added the AMD_ATL_PRM config and added the following to the ATL
Makefile:
amd_atl-$(CONFIG_AMD_ATL_PRM) += prm.o
instead of:
amd_atl-y += prm.o
Is there another way you had in mind to make the additional config
option work as expected?
Thanks,
John
next prev parent reply other threads:[~2024-07-03 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 17:47 [PATCH v2 0/2] PRM handler direct call interface John Allen
2024-05-06 17:47 ` [PATCH v2 1/2] ACPI: PRM: Add PRM handler direct call support John Allen
2024-06-26 19:21 ` Rafael J. Wysocki
2024-06-27 8:08 ` Borislav Petkov
2024-07-02 14:54 ` Ard Biesheuvel
2024-05-06 17:47 ` [PATCH v2 2/2] RAS/AMD/ATL: Translate normalized to system physical addresses using PRM John Allen
2024-06-28 7:45 ` Borislav Petkov
2024-07-01 16:23 ` John Allen
2024-07-01 16:35 ` Borislav Petkov
2024-07-01 16:43 ` John Allen
2024-07-01 16:59 ` Borislav Petkov
2024-07-03 20:14 ` John Allen [this message]
2024-07-03 22:46 ` Borislav Petkov
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=ZoWxPR+A3xjV1Y/j@AUS-L1-JOHALLEN.amd.com \
--to=john.allen@amd.com \
--cc=bp@alien8.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=yazen.ghannam@amd.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®