From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 880C0C28D13 for ; Mon, 22 Aug 2022 14:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235686AbiHVONF (ORCPT ); Mon, 22 Aug 2022 10:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232994AbiHVONC (ORCPT ); Mon, 22 Aug 2022 10:13:02 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBF432EF0 for ; Mon, 22 Aug 2022 07:13:01 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5E84B1FE46; Mon, 22 Aug 2022 14:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661177580; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=OZTNho0piDMRt5grNpBNNgNC36KxBYIItc3vdKu8/Wc=; b=HxxBimv+8OH/UnifgYRTQIbi5UGiDsnh2rHhQn24Y/sVuMYaPWbMBG6n5Xv70h6R8Yo8hA o4n/yIwgve7ELln+h91lEeZcRSRJTVsycB6pJ2ndHR971lGqODn/vZR7lzBBAmGyjf3zWW /limqzisFnFjNygj7wHdE2iHcYywthg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661177580; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=OZTNho0piDMRt5grNpBNNgNC36KxBYIItc3vdKu8/Wc=; b=yQFGn0S0SQblXcYnDLJCUALLYxWTo+wbhN968/o6PPLlpv/gmGfVgKV5/gO1iWV3StjRlB 8bV2bpUCto+4ZACw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2360F13523; Mon, 22 Aug 2022 14:13:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id VaPQB+yOA2P6dgAAMHmgww (envelope-from ); Mon, 22 Aug 2022 14:13:00 +0000 Date: Mon, 22 Aug 2022 16:12:59 +0200 Message-ID: <874jy4cqok.wl-tiwai@suse.de> From: Takashi Iwai To: Lu Baolu Cc: Joerg Roedel , Greg Kroah-Hartman , Bjorn Helgaas , Jason Gunthorpe , Robin Murphy , Eric Auger , regressions@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [REGRESSION 5.19.x] AMD HD-audio devices missing on 5.19 User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, we've received regression reports about the missing HD-audio devices on AMD platforms, and this turned out to be caused by the commit 512881eacfa72c2136b27b9934b7b27504a9efc2 bus: platform,amba,fsl-mc,PCI: Add device DMA ownership management The details are found in openSUSE bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1202492 The problem seems to be that HD-audio (both onboard analog and HDMI) PCI devices are assigned to the same IOMMU group as AMD graphics PCI device, and once after the AMDGPU is initialized beforehand, those audio devices can't be probed since iommu_device_use_default_domain() returns -EBUSY. I'm not sure whether it's specific to PCI bus due to the assignment logic of those IOMMU groups, or it's about the handling of the active domain assignment. In anyway, disabling IOMMU works around the problem, and passing driver_managed_dma flag to the HD-audio driver was also confirmed to work around it, too. The problem persists with 6.0-rc1 kernel. If you have / can give any fix patch or debug patch, let me know; I'll build test kernels and ask the reporters. thanks, Takashi