From: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
To: devel@acpica.org
Subject: Re: [Devel] [PATCH] ResourceMgr: Allow _DMA method in walk resources
Date: Wed, 26 Jul 2017 18:04:03 +0100 [thread overview]
Message-ID: <20170726170403.GA9926@red-moon> (raw)
In-Reply-To: 20170721152815.8501-1-lorenzo.pieralisi@arm.com
[-- Attachment #1: Type: text/plain, Size: 2670 bytes --]
Hi Robert,
do you pull patches from the list or you require an explicit github pull
request for that ?
Plase let me know.
Thanks,
Lorenzo
On Fri, Jul 21, 2017 at 04:28:15PM +0100, Lorenzo Pieralisi wrote:
> The _DMA object contains a resource template, this change adds support
> for the walk resources function so that ACPI devices containing a _DMA
> object can actually parse it to detect DMA ranges for the respective
> bus.
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi(a)arm.com>
> ---
> source/components/resources/rsxface.c | 7 ++++---
> source/include/acnames.h | 1 +
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/source/components/resources/rsxface.c b/source/components/resources/rsxface.c
> index 5e3f735..2c27eaf 100644
> --- a/source/components/resources/rsxface.c
> +++ b/source/components/resources/rsxface.c
> @@ -796,7 +796,7 @@ ACPI_EXPORT_SYMBOL (AcpiWalkResourceBuffer)
> * device we are querying
> * Name - Method name of the resources we want.
> * (METHOD_NAME__CRS, METHOD_NAME__PRS, or
> - * METHOD_NAME__AEI)
> + * METHOD_NAME__AEI or METHOD_NAME__DMA)
> * UserFunction - Called for each resource
> * Context - Passed to UserFunction
> *
> @@ -827,12 +827,13 @@ AcpiWalkResources (
> if (!DeviceHandle || !UserFunction || !Name ||
> (!ACPI_COMPARE_NAME (Name, METHOD_NAME__CRS) &&
> !ACPI_COMPARE_NAME (Name, METHOD_NAME__PRS) &&
> - !ACPI_COMPARE_NAME (Name, METHOD_NAME__AEI)))
> + !ACPI_COMPARE_NAME (Name, METHOD_NAME__AEI) &&
> + !ACPI_COMPARE_NAME (Name, METHOD_NAME__DMA)))
> {
> return_ACPI_STATUS (AE_BAD_PARAMETER);
> }
>
> - /* Get the _CRS/_PRS/_AEI resource list */
> + /* Get the _CRS/_PRS/_AEI/_DMA resource list */
>
> Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
> Status = AcpiRsGetMethodData (DeviceHandle, Name, &Buffer);
> diff --git a/source/include/acnames.h b/source/include/acnames.h
> index 27b0b97..69f8884 100644
> --- a/source/include/acnames.h
> +++ b/source/include/acnames.h
> @@ -162,6 +162,7 @@
> #define METHOD_NAME__CLS "_CLS"
> #define METHOD_NAME__CRS "_CRS"
> #define METHOD_NAME__DDN "_DDN"
> +#define METHOD_NAME__DMA "_DMA"
> #define METHOD_NAME__HID "_HID"
> #define METHOD_NAME__INI "_INI"
> #define METHOD_NAME__PLD "_PLD"
> --
> 2.10.0
>
next reply other threads:[~2017-07-26 17:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 17:04 Lorenzo Pieralisi [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-07-27 15:02 [Devel] [PATCH] ResourceMgr: Allow _DMA method in walk resources Moore, Robert
2017-07-21 15:28 Lorenzo Pieralisi
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=20170726170403.GA9926@red-moon \
--to=devel@acpica.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.