All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 211117] [oxygen] [virtuoso] route, dmix and other alsa plugins produce garbage output with mem_encrypt on Ryzen platform
       [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
@ 2021-01-18 14:27 ` bugzilla-daemon
  2021-01-18 14:28 ` [Bug 211117] dma_mmap_coherent() - garbage sound " bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2021-01-18 14:27 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=211117

Jaroslav Kysela (perex@perex.cz) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Sound(ALSA)                 |Platform_x86
           Assignee|perex@perex.cz              |drivers_platform_x86@kernel
                   |                            |-bugs.osdl.org

--- Comment #15 from Jaroslav Kysela (perex@perex.cz) ---
It looks like an issue which is not related directly to audio, right?

Reassigning to Platform_X86 .

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 211117] dma_mmap_coherent() - garbage sound output with mem_encrypt on Ryzen platform
       [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
  2021-01-18 14:27 ` [Bug 211117] [oxygen] [virtuoso] route, dmix and other alsa plugins produce garbage output with mem_encrypt on Ryzen platform bugzilla-daemon
@ 2021-01-18 14:28 ` bugzilla-daemon
  2021-01-18 14:36 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2021-01-18 14:28 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=211117

Jaroslav Kysela (perex@perex.cz) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |perex@perex.cz
            Summary|[oxygen] [virtuoso] route,  |dma_mmap_coherent() -
                   |dmix and other alsa plugins |garbage sound output with
                   |produce garbage output with |mem_encrypt on Ryzen
                   |mem_encrypt on Ryzen        |platform
                   |platform                    |

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 211117] dma_mmap_coherent() - garbage sound output with mem_encrypt on Ryzen platform
       [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
  2021-01-18 14:27 ` [Bug 211117] [oxygen] [virtuoso] route, dmix and other alsa plugins produce garbage output with mem_encrypt on Ryzen platform bugzilla-daemon
  2021-01-18 14:28 ` [Bug 211117] dma_mmap_coherent() - garbage sound " bugzilla-daemon
@ 2021-01-18 14:36 ` bugzilla-daemon
  2021-01-19 19:33 ` bugzilla-daemon
  2021-01-20 12:47 ` bugzilla-daemon
  4 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2021-01-18 14:36 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=211117

--- Comment #16 from Takashi Iwai (tiwai@suse.de) ---
Yes, this must be a generic issue.  I'll ask Christoph at first.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 211117] dma_mmap_coherent() - garbage sound output with mem_encrypt on Ryzen platform
       [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
                   ` (2 preceding siblings ...)
  2021-01-18 14:36 ` bugzilla-daemon
@ 2021-01-19 19:33 ` bugzilla-daemon
  2021-01-20 12:47 ` bugzilla-daemon
  4 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2021-01-19 19:33 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=211117

thomas.lendacky@amd.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas.lendacky@amd.com

--- Comment #17 from thomas.lendacky@amd.com ---
This sounds like a mismatch between the encryption bit in the kernel and the
encryption bit in userspace. It looks like that should be taken care of by the
dma_pgprot() call in dma_mmap_attrs() or in iommu_dma_mmap(). But maybe the
force_dma_unencrypted() in arch/x86/mm/mem_encrypt.c needs to understand if the
IOMMU is doing the mapping. Since, even if the device doesn't support 48-bit or
higher DMA, it will still done encrypted because of the IOMMU. I don't see any
dmesg output, is the IOMMU enabled? What happens if you do iommu=pt on the
kernel command line?

Alternatively, if you want memory encryption for your bare-metal system, you
can see if the BIOS supports TSME (Transparent SME). Then you can remove
mem_encrypt=on or add mem_encrypt=off (if enabled by default), and still get
memory encryption.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 211117] dma_mmap_coherent() - garbage sound output with mem_encrypt on Ryzen platform
       [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
                   ` (3 preceding siblings ...)
  2021-01-19 19:33 ` bugzilla-daemon
@ 2021-01-20 12:47 ` bugzilla-daemon
  4 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2021-01-20 12:47 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=211117

--- Comment #18 from Triton Circonflexe (triton+enkelr@kumal.info) ---
Tested with iommu=pt (and no mem_encrypt option, so "on" by default): still
white noise.

Regarding the encryption, I don't really have a _need_ for that. If I use it,
it's in part because Virtualbox seems to require it in some use cases (not even
entirely sure about that) and mostly because it's activated by default (and I
like default settings to work correctly).
I checked the BIOS anyway but did not find any TSME or similar option (thanks
for the information, though).

Right now, I'm working with mem_encrypt=off and I can do everything I need for
now (no vbox for the moment).
I will continue to follow this bug because I can reproduce the problem easily
and do tests if required.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

end of thread, other threads:[~2021-01-20 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-211117-215701@https.bugzilla.kernel.org/>
2021-01-18 14:27 ` [Bug 211117] [oxygen] [virtuoso] route, dmix and other alsa plugins produce garbage output with mem_encrypt on Ryzen platform bugzilla-daemon
2021-01-18 14:28 ` [Bug 211117] dma_mmap_coherent() - garbage sound " bugzilla-daemon
2021-01-18 14:36 ` bugzilla-daemon
2021-01-19 19:33 ` bugzilla-daemon
2021-01-20 12:47 ` bugzilla-daemon

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.