Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp230906rwn; Thu, 8 Sep 2022 00:09:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR7g9mu3S/s7auHTCLhSswTmhDdNalzErhEclFj667RYIzN8KlU1mAyHRSZ2mIUzRoQSWb40 X-Received: by 2002:a05:6402:120f:b0:44e:fe1a:b968 with SMTP id c15-20020a056402120f00b0044efe1ab968mr5867320edw.127.1662620950211; Thu, 08 Sep 2022 00:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662620950; cv=none; d=google.com; s=arc-20160816; b=XRiFs/x4HMoPanq2dP/EOZ80ReW6JN78LIJIb/YMs7f1aIqu9liAKX6RdWyK/9tUjL 0WrtJYbV+bwz7EDn4cNZulSMZVVwPHl9SSfCbsVhIVYI7Lct0qfgS9YjDqQN+RgOpDKP rh+KsYYIqT5dKeVzzw2ZrPxNBvTDqXp1ojD7MqL639LAkAowdpILrNiFSBHRVD1PH5I5 C6+F4fAh87MYAO5K7ml1f43O5zGvDTuC0QM2l+p7Smt6U82vGAkoAvahdSmAY9B8BfOg QWRhCVNDJhqvhHvbrZZis6Kx6Rq8okYLj+FBmuKby0/WdgqHTJNXZbSQigIbg85yGJ01 EOew== 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:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=rRXcrIe686naS5cahSfQ0KvTuDfv4mJDsYj6qOKddxA=; b=r0opBRVEy3k93SQnIq4I6PvIRvSS5Hjvv2+DBTeqBU+nkZhPJNk1Z4QAtnRoeqpsS5 4xb3OC7oCWhhcXj0X5unJc13WnVgQ2IObugUpQeCSM2hgZx18OHJKV0+gg/VsIXLa+uN tclsQErzAUDz3CRDaNS6UsvD7DPshwL4mv+SqmUPB4hELFmlsC78/jo0ew0VHgFkxke2 K4J20GDAcu6oAxumpftwQjIT9WzBs3XAzmC6LgHcLJcRYLKVfOBBQbC1NWMcn1OY+YZA cvkSjjy6Cqr8JnaewvqLC31PC5XhwZH0xCLIeg0w45MD6WYBI/kWUeUCfICh9/qRwPBM OPZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=nXDc0mjz; dkim=neutral (no key) header.i=@suse.de; 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 r27-20020a50c01b000000b00447d3d95e3dsi12030063edb.492.2022.09.08.00.08.45; Thu, 08 Sep 2022 00:09:10 -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=nXDc0mjz; dkim=neutral (no key) header.i=@suse.de; 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 S230287AbiIHGX1 (ORCPT + 99 others); Thu, 8 Sep 2022 02:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbiIHGXW (ORCPT ); Thu, 8 Sep 2022 02:23:22 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCB1ACCD71 for ; Wed, 7 Sep 2022 23:23:20 -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 70DA5200E0; Thu, 8 Sep 2022 06:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662618199; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rRXcrIe686naS5cahSfQ0KvTuDfv4mJDsYj6qOKddxA=; b=nXDc0mjzZn8MOUh/v4DM3H+lhtZ7MjjeJs5y/M1TjDTm+xADe/Chxpo0cFUB+iOhuSApSP teqt3zeZj3iHkMqHKSMfCkVFPPpMlRp/zLS8UJUTuzW4JHDIAGhyPhUTkV/GT0y9Dh2O9q 80xWvoTpPIxscMbZTrN5AH+5KPuPHwA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662618199; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rRXcrIe686naS5cahSfQ0KvTuDfv4mJDsYj6qOKddxA=; b=zl0zgd9cJnLofzuSpIR16z+v9YmloR33LJJmkaSEVjnA1XiT3dYJUUQHXSohPNro9kLWhh 3atau9xIogZoNbBg== 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 3E1861322C; Thu, 8 Sep 2022 06:23:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id KsFkDleKGWNBNQAAMHmgww (envelope-from ); Thu, 08 Sep 2022 06:23:19 +0000 Date: Thu, 08 Sep 2022 08:23:18 +0200 Message-ID: <871qsme65l.wl-tiwai@suse.de> From: Takashi Iwai To: Jason Gunthorpe Cc: Takashi Iwai , Lu Baolu , Joerg Roedel , Greg Kroah-Hartman , Bjorn Helgaas , Robin Murphy , Eric Auger , regressions@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION 5.19.x] AMD HD-audio devices missing on 5.19 In-Reply-To: References: <874jy4cqok.wl-tiwai@suse.de> <20220823010021.GA5967@nvidia.com> <87h723sdde.wl-tiwai@suse.de> <87ilmjqj1f.wl-tiwai@suse.de> <20220823202824.GA4516@nvidia.com> <87bkrrl3eo.wl-tiwai@suse.de> 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Wed, 07 Sep 2022 15:48:33 +0200, Jason Gunthorpe wrote: > > On Wed, Sep 07, 2022 at 03:28:31PM +0200, Takashi Iwai wrote: > > > /** > > > * iommu_device_use_default_domain() - Device driver wants to handle device > > > * DMA through the kernel DMA API. > > > @@ -3094,8 +3112,7 @@ int iommu_device_use_default_domain(struct device *dev) > > > > > > mutex_lock(&group->mutex); > > > if (group->owner_cnt) { > > > - if (group->domain != group->default_domain || > > > - group->owner) { > > > + if (group->owner || iommu_is_default_domain(group)) { > > > > Isn't this rather > > if (group->owner || !iommu_is_default_domain(group)) { > > ? > > > > I'll rebuild the kernel with this change and ask reporters again. > > Oh yes, good eyes, that probably crashes on boot too Indeed the corrected patch seems working; it boots and the HD-audio device appears again. Can we go forward with this? thanks, Takashi