iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* tegra alloc_pdir
@ 2012-06-26 18:15 Chris Wright
       [not found] ` <20120626181555.GW15796-JyIX8gxvWYPr2PDY2+4mTGD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 19+ messages in thread
From: Chris Wright @ 2012-06-26 18:15 UTC (permalink / raw)
  To: Hiroshi DOYU
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

This looks buggy to me:

drivers/iommu/tegra-smmu.c::smmu_iommu_domain_init()

  spin_lock_irqsave(&tmp->lock, flags);   <-- lock held, interrupts off
  alloc_pdir(as = tmp)
    devm_kzalloc(..., GFP_KERNEL);        <-- potentially sleeping allocation
    ...
    alloc_page(..., GFP_KERNEL | __GFP_DMA);   <-- same here

thanks,
-chris

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

end of thread, other threads:[~2012-07-02 11:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-26 18:15 tegra alloc_pdir Chris Wright
     [not found] ` <20120626181555.GW15796-JyIX8gxvWYPr2PDY2+4mTGD2FQJk+8+b@public.gmane.org>
2012-06-27  9:46   ` Hiroshi Doyu
     [not found]     ` <20120627.124628.673793050413876363.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-27  9:54       ` [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation Hiroshi DOYU
     [not found]         ` <1340790841-23349-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-27 15:57           ` Chris Wright
2012-06-27 16:59           ` Stephen Warren
     [not found]             ` <4FEB3C04.6040606-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-06-28 10:42               ` Hiroshi Doyu
     [not found]                 ` <20120628134202.2102f715496a3b980b43f3b0-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-28 10:51                   ` [v2 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir() Hiroshi DOYU
     [not found]                     ` <1340880707-6934-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-28 16:57                       ` Stephen Warren
     [not found]                         ` <4FEC8CEE.1000401-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-06-28 18:35                           ` Hiroshi Doyu
     [not found]                             ` <20120628.213554.1189327754979133382.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-28 19:08                               ` Stephen Warren
     [not found]                                 ` <4FECAB9C.9040809-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-06-28 19:19                                   ` Hiroshi Doyu
     [not found]                                     ` <20120628.221945.1306825810095951985.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-29  6:15                                       ` [v3 1/2] iommu/tegra: smmu: Remove unnecessary sanity check " Hiroshi DOYU
     [not found]                                         ` <1340950527-16482-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-06-29  6:15                                           ` [v3 2/2] iommu/tegra: smmu: Fix unsleepable memory allocation " Hiroshi DOYU
2012-06-29 15:34                                           ` [v3 1/2] iommu/tegra: smmu: Remove unnecessary sanity check " Stephen Warren
2012-07-02  9:57           ` [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation Joerg Roedel
     [not found]             ` <20120702095747.GB2558-5C7GfCeVMHo@public.gmane.org>
2012-07-02 10:13               ` Hiroshi Doyu
     [not found]                 ` <20120702.131326.685361720133451299.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-07-02 10:19                   ` Hiroshi Doyu
     [not found]                     ` <20120702.131903.1053229523265080291.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-07-02 10:42                       ` joerg.roedel-5C7GfCeVMHo
     [not found]                         ` <20120702104231.GD2558-5C7GfCeVMHo@public.gmane.org>
2012-07-02 11:14                           ` Hiroshi Doyu

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).