All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joro@8bytes.org>
To: Jean-Philippe Brucker <jean-philippe@linaro.org>
Cc: kernel test robot <lkp@intel.com>,
	rjw@rjwysocki.net, lenb@kernel.org, mst@redhat.com,
	kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	will@kernel.org, catalin.marinas@arm.com,
	baolu.lu@linux.intel.com, dwmw2@infradead.org,
	linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org
Subject: Re: [PATCH v3 2/6] ACPI: Move IOMMU setup code out of IORT
Date: Fri, 4 Jun 2021 17:22:07 +0200	[thread overview]
Message-ID: <YLpFHwGPuWsB3AgV@8bytes.org> (raw)
In-Reply-To: <YLiELyo+KLuYqA24@myrica>

On Thu, Jun 03, 2021 at 09:26:39AM +0200, Jean-Philippe Brucker wrote:
> These are only defined when CONFIG_IOMMU_API is set. IORT uses them inside
> an #ifdef, I can do the same. Maybe moving these two functions to a new
> drivers/acpi/iommu.c would be nicer, though.

Not sure what the ACPI maintainers and reviewers prefer, but I would
just #ifdef the functions and provide stubs in the #else path if
necessary.

Regards,

	Joerg

WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Jean-Philippe Brucker <jean-philippe@linaro.org>
Cc: kbuild-all@lists.01.org, kernel test robot <lkp@intel.com>,
	mst@redhat.com, catalin.marinas@arm.com, rjw@rjwysocki.net,
	linux-acpi@vger.kernel.org, clang-built-linux@googlegroups.com,
	iommu@lists.linux-foundation.org, will@kernel.org,
	dwmw2@infradead.org, lenb@kernel.org
Subject: Re: [PATCH v3 2/6] ACPI: Move IOMMU setup code out of IORT
Date: Fri, 4 Jun 2021 17:22:07 +0200	[thread overview]
Message-ID: <YLpFHwGPuWsB3AgV@8bytes.org> (raw)
In-Reply-To: <YLiELyo+KLuYqA24@myrica>

On Thu, Jun 03, 2021 at 09:26:39AM +0200, Jean-Philippe Brucker wrote:
> These are only defined when CONFIG_IOMMU_API is set. IORT uses them inside
> an #ifdef, I can do the same. Maybe moving these two functions to a new
> drivers/acpi/iommu.c would be nicer, though.

Not sure what the ACPI maintainers and reviewers prefer, but I would
just #ifdef the functions and provide stubs in the #else path if
necessary.

Regards,

	Joerg
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v3 2/6] ACPI: Move IOMMU setup code out of IORT
Date: Fri, 04 Jun 2021 17:22:07 +0200	[thread overview]
Message-ID: <YLpFHwGPuWsB3AgV@8bytes.org> (raw)
In-Reply-To: <YLiELyo+KLuYqA24@myrica>

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

On Thu, Jun 03, 2021 at 09:26:39AM +0200, Jean-Philippe Brucker wrote:
> These are only defined when CONFIG_IOMMU_API is set. IORT uses them inside
> an #ifdef, I can do the same. Maybe moving these two functions to a new
> drivers/acpi/iommu.c would be nicer, though.

Not sure what the ACPI maintainers and reviewers prefer, but I would
just #ifdef the functions and provide stubs in the #else path if
necessary.

Regards,

	Joerg

  reply	other threads:[~2021-06-04 15:22 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 15:44 [PATCH v3 0/6] Add support for ACPI VIOT Jean-Philippe Brucker
2021-06-02 15:44 ` Jean-Philippe Brucker
2021-06-02 15:44 ` Jean-Philippe Brucker
2021-06-02 15:44 ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 1/6] ACPI: arm64: Move DMA setup operations out of IORT Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 2/6] ACPI: Move IOMMU setup code " Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 20:06   ` kernel test robot
2021-06-02 20:06     ` kernel test robot
2021-06-02 20:06     ` kernel test robot
2021-06-03  7:26     ` Jean-Philippe Brucker
2021-06-03  7:26       ` Jean-Philippe Brucker
2021-06-03  7:26       ` Jean-Philippe Brucker
2021-06-04 15:22       ` Joerg Roedel [this message]
2021-06-04 15:22         ` Joerg Roedel
2021-06-04 15:22         ` Joerg Roedel
2021-06-10  7:26         ` Jean-Philippe Brucker
2021-06-10  7:26           ` Jean-Philippe Brucker
2021-06-10  7:26           ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 3/6] ACPI: Add driver for the VIOT table Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 4/6] iommu/dma: Pass address limit rather than size to iommu_setup_dma_ops() Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 5/6] iommu/dma: Simplify calls " Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 6/6] iommu/virtio: Enable x86 support Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker
2021-06-02 15:44   ` Jean-Philippe Brucker

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=YLpFHwGPuWsB3AgV@8bytes.org \
    --to=joro@8bytes.org \
    --cc=baolu.lu@linux.intel.com \
    --cc=catalin.marinas@arm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dwmw2@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=jean-philippe@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mst@redhat.com \
    --cc=rjw@rjwysocki.net \
    --cc=will@kernel.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.