Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2419348rwa; Mon, 22 Aug 2022 07:27:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR6u3SBIuEoFQz5m44sK/cPhowtMlXgc26D11mzpUqk1AHSOXNgCBTwu40KbXUrTd9ofLQ5B X-Received: by 2002:a17:907:843:b0:73a:5b0e:8352 with SMTP id ww3-20020a170907084300b0073a5b0e8352mr12988638ejb.438.1661178448587; Mon, 22 Aug 2022 07:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661178448; cv=none; d=google.com; s=arc-20160816; b=YtiomszEOwsFdBmYqU/fu3CBoSveiGQbZCf4EARz9FIK/3p2gaN1fyy/GxHG6iZIJh DaQiTykflPmLtaX8dx1bQ2i7lLoHMLzKG8zLHQxwFcXCeBsIyoSzsW5ZEp2toEcF1KqY H6cstgn86xy/9FvrVQkBMEdFrQPbthuOhvqcWj+T0v3Ds7qcyDj6C558gU2if/kAKG6v Zc4/RgZUCecMoMypS715/SAHo7CIKBPE+y5nAmNYS5EV+llPGBFhnSYPGW/qbfz5ZgOa /p3QSnrYYB/x8Gx65TN0SA954otXkvYtzzjSbebPBeWhYf1tKyXetkxAIwwh/ldKZRAf XbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:subject:cc:to:from :message-id:date:dkim-signature:dkim-signature; bh=OZTNho0piDMRt5grNpBNNgNC36KxBYIItc3vdKu8/Wc=; b=Dm1rWcsQkX8s+JXfl7mqxgejqGzY2t6i+kdaapS8j3XGd33NGBXk3uWDQOgeUodr+A Nd2bukBiqxNq4AaIv2H7Kbiywo4eEb24NHsVSVGuURBrDim95AsxN8ma1n0jHRvPVEy0 SQgpTNhgiCrc6TDDr/KTE62Mc/iIe+dQjHY/PfBz/xPzv13hQ2mX97zg/uTjBL+y/W5N HyH9MT1PunBVdP96AL3G5kfpSGi3cSmu4oeSGDOdhYziKzWa08dlo8tha7lqVnsx6EFO uYKmfDEMPNTFz1q8dr8OH+O/r1xRtK+6BcWZh3PIndf0DBdGR4HrTH+l5vgJvDj5GOTv iLSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=HxxBimv+; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020aa7d691000000b00446064a8cf3si8110543edr.621.2022.08.22.07.27.02; Mon, 22 Aug 2022 07:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=HxxBimv+; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235679AbiHVONF (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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