iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11
@ 2020-12-01  1:31 Lu Baolu
  2020-12-01  1:31 ` [PATCH 1/1] iommu/vt-d: Avoid GFP_ATOMIC where it is not needed Lu Baolu
  2020-12-01 15:14 ` [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Lu Baolu @ 2020-12-01  1:31 UTC (permalink / raw)
  To: Will Deacon, Joerg Roedel; +Cc: iommu, Christophe JAILLET

Hi Will,

Below patch is ready for v5.11. It includes:

 - Avoid GFP_ATOMIC where it is not needed

Can you please consider it for v5.11?

Best regards,
Lu Baolu

Christophe JAILLET (1):
  iommu/vt-d: Avoid GFP_ATOMIC where it is not needed

 drivers/iommu/intel/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.1

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] iommu/vt-d: Avoid GFP_ATOMIC where it is not needed
  2020-12-01  1:31 [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Lu Baolu
@ 2020-12-01  1:31 ` Lu Baolu
  2020-12-01 15:14 ` [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Lu Baolu @ 2020-12-01  1:31 UTC (permalink / raw)
  To: Will Deacon, Joerg Roedel; +Cc: iommu, Christophe JAILLET

From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

There is no reason to use GFP_ATOMIC in a 'suspend' function.
Use GFP_KERNEL instead to give more opportunities to allocate the
requested memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201030182630.5154-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
---
 drivers/iommu/intel/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index d252dcedfd71..d9ba52ba40eb 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -3485,7 +3485,7 @@ static int iommu_suspend(void)
 
 	for_each_active_iommu(iommu, drhd) {
 		iommu->iommu_state = kcalloc(MAX_SR_DMAR_REGS, sizeof(u32),
-						 GFP_ATOMIC);
+					     GFP_KERNEL);
 		if (!iommu->iommu_state)
 			goto nomem;
 	}
-- 
2.25.1

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11
  2020-12-01  1:31 [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Lu Baolu
  2020-12-01  1:31 ` [PATCH 1/1] iommu/vt-d: Avoid GFP_ATOMIC where it is not needed Lu Baolu
@ 2020-12-01 15:14 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2020-12-01 15:14 UTC (permalink / raw)
  To: Lu Baolu, Joerg Roedel
  Cc: catalin.marinas, iommu, Christophe JAILLET, kernel-team, Will Deacon

On Tue, 1 Dec 2020 09:31:48 +0800, Lu Baolu wrote:
> Below patch is ready for v5.11. It includes:
> 
>  - Avoid GFP_ATOMIC where it is not needed
> 
> Can you please consider it for v5.11?
> 
> Best regards,
> Lu Baolu
> 
> [...]

Applied to arm64 (for-next/iommu/vt-d), thanks!

[1/1] iommu/vt-d: Avoid GFP_ATOMIC where it is not needed
      https://git.kernel.org/arm64/c/33e07157105e

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-01 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  1:31 [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Lu Baolu
2020-12-01  1:31 ` [PATCH 1/1] iommu/vt-d: Avoid GFP_ATOMIC where it is not needed Lu Baolu
2020-12-01 15:14 ` [PATCH 0/1] [PULL REQUEST] iommu/vt-d: patches for v5.11 Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).