linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* AMD IOMMU + SME + amdgpu regression
       [not found] <1591915710.rakbpzst8h.none.ref@localhost>
@ 2020-06-11 23:05 ` Alex Xu (Hello71)
       [not found]   ` <20200622100257.GD31822@suse.de>
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Xu (Hello71) @ 2020-06-11 23:05 UTC (permalink / raw)
  To: Joerg Roedel, linux-kernel, David Rientjes, Christoph Hellwig
  Cc: Heiko Stuebner, Bjorn Andersson, linux-tegra, Thierry Reding,
	Daniel Drake, Will Deacon, Marek Szyprowski,
	Jean-Philippe Brucker, linux-samsung-soc, Krzysztof Kozlowski,
	Jonathan Hunter, linux-rockchip, Andy Gross, Gerald Schaefer,
	Joerg Roedel, linux-s390, linux-arm-msm, linux-mediatek,
	Matthias Brugger, virtualization, jonathan.derrick,
	David Woodhouse, Rob Clark, Kukjin Kim, Robin Murphy, Lu Baolu

Hi,

amdgpu + IOMMU + SME is now working for me on 5.7, yay! But, it is 
broken on torvalds master, boo. On boot, depending on which exact commit 
I test, it either hangs immediately (with built-in driver, before 
starting initramfs), displays some errors then hangs, or spams the 
screen with many amdgpu errors.

I bisected the black screen hang to:

commit dce8d6964ebdb333383bacf5e7ab8c27df151218
Author: Joerg Roedel <jroedel@suse.de>
Date:   Wed Apr 29 15:36:53 2020 +0200

    iommu/amd: Convert to probe/release_device() call-backs

    Convert the AMD IOMMU Driver to use the probe_device() and
    release_device() call-backs of iommu_ops, so that the iommu core code
    does the group and sysfs setup.

    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    Link: https://lore.kernel.org/r/20200429133712.31431-16-joro@8bytes.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>

Testing torvalds master (623f6dc593) with the containing merge 
(98bdc74b36) plus the DMA mapping merge (4e94d08734) reverted allows 
amdgpu + IOMMU + SME to once again work.

I think that nobody is really working on amdgpu + SME, but it would be a 
shame if it was supported and then incidentally broken by a small 
change.

I am using an ASRock B450 Pro4 with Ryzen 1600 and ASUS RX 480. I don't 
understand this code at all, but let me know what I can do to 
troubleshoot.

Thanks,
Alex.

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

* Re: AMD IOMMU + SME + amdgpu regression
       [not found]     ` <1592839701.mxvvths2x9.none@localhost>
@ 2020-07-15  9:17       ` Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2020-07-15  9:17 UTC (permalink / raw)
  To: Alex Xu (Hello71)
  Cc: Heiko Stuebner, Bjorn Andersson, linux-tegra, Thierry Reding,
	Daniel Drake, Will Deacon, Christoph Hellwig, Marek Szyprowski,
	Jean-Philippe Brucker, linux-samsung-soc, Krzysztof Kozlowski,
	Jonathan Hunter, linux-rockchip, Andy Gross, Gerald Schaefer,
	David Rientjes, Joerg Roedel, linux-s390, linux-arm-msm,
	linux-mediatek, Matthias Brugger, virtualization,
	jonathan.derrick, Robin Murphy, linux-kernel, Rob Clark,
	Kukjin Kim, David Woodhouse, Lu Baolu

On Mon, Jun 22, 2020 at 11:30:04AM -0400, Alex Xu (Hello71) wrote:
> Yes, it works with SME off with dbed452a078 ("dma-pool: decouple 
> DMA_REMAP from DMA_COHERENT_POOL") applied.

Okay, I can reproduce the problem on my Ryzen System, and the boot log
shows various warnings/bugs from the amdgpu driver. I think this should
be looked at by the AMDGPU folks first, as I didn't really got far
looking into the GPU drivers code.

Regards,

	Joerg

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

end of thread, other threads:[~2020-07-15  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1591915710.rakbpzst8h.none.ref@localhost>
2020-06-11 23:05 ` AMD IOMMU + SME + amdgpu regression Alex Xu (Hello71)
     [not found]   ` <20200622100257.GD31822@suse.de>
     [not found]     ` <1592839701.mxvvths2x9.none@localhost>
2020-07-15  9:17       ` Joerg Roedel

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