Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4625328rwb; Tue, 6 Sep 2022 10:03:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6a+ievA0veLeb/VtkXtS0Ump47MMG5cfyjMOMJbqKodhnt0zCXusFoFHDvpLjuBHPd+V6t X-Received: by 2002:a17:902:c103:b0:176:db4f:706d with SMTP id 3-20020a170902c10300b00176db4f706dmr2205827pli.60.1662483813003; Tue, 06 Sep 2022 10:03:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662483812; cv=pass; d=google.com; s=arc-20160816; b=dVjDb30NF8xEYie9qLNmLunVCyIP04mdwyUkFSRD78et44iLtqs/v9mahFSzO+psW0 by8xtjEkJQC2otQlWEJwZVKsGUR7cEQ3FMxWClyu6je/8DOoIIt8MuZ89YzdzjIzTGun /bpv9DRCljv0TAld++K3n2nrJRm3ayXHk0PmUjwL+2eNMcrfMDLfLG0viwodHSKaRXCx 3pA3Vm0kktRz3ybKc5a0i/GrWyBLB7T9O0qST8EN2Pbyzgxk9JfRIRyIkt7ghJudAPfu wlG8neGlDBCGg4BxVSTI4l66asKG9GvMYUmFwT06IvAXjKHQ9fSsQSQNp55t/QnEwXGa g4BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5tJN8vNg07BjDFs42ZA4tdhVuh6OjUp+5qv04q0uZbE=; b=tSTMaf4fQetCQ8ga2kAsRjuNjksuWx7KOz7VDSa3B1uE2DQalbvb9zbKon3VLpZv+J wd8lW7cJBEBluRvpna0zsQopeK9Q42mQ6xpm3kAa7KDC89qvXuiauwpNLazqsThcZos/ 0Zy3NZWRu94i1ko6ymzp+LIoVr+bBMO/ngijqhePBmeO/OPNJiTQiGY+6Zu49H+S3i+B 6qAQGHRkLknfLkh3hUFIySHthAhHV8vTRJBsdQGCgnEeaT9X1Cfw/j31VYBqpTRdr/lM Ot35vndMeWaCAri7eu4oolzEF1YSxe9H6lh0avFJmk//3XBjTN0II63vcU+srkORYAYo aS1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gyiGsh5y; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902c40700b0016caa701d5bsi9978493plk.487.2022.09.06.10.03.18; Tue, 06 Sep 2022 10:03:32 -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=@Nvidia.com header.s=selector2 header.b=gyiGsh5y; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233954AbiIFQYX (ORCPT + 99 others); Tue, 6 Sep 2022 12:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239113AbiIFQXv (ORCPT ); Tue, 6 Sep 2022 12:23:51 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2074.outbound.protection.outlook.com [40.107.96.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770582729 for ; Tue, 6 Sep 2022 08:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zh6aqHgEa2m0gC68OvWEKf6CLUy10jVN8aMpNawfHOOF4NoBlWRHKYE5OVdBneAfNgOF07w751BazuC61gBcQefgJGFgrWlkimW5qLLY97d8BL1Tc7Sd+N3LnB/VcDJJ8vIAi2vjeZ5j/MSAqE58xG9jBahh2+jI9Mnx9SUB7pXEzPyTRrLNjUyFriR7dA6gx1GTn8bo/S2lzyZs/Zm4wiQLNhJ/YyVtXUM4T7RrzcIDhwt5qdBTGpXjB04UE9kht5HsrhuvGjaTtTAfxo7IZ5uqeE6uSJyepdD4Y2tseZwQJ7MpNfELVMv18wJYNxlCaSRNWQeiOwjB++sdS1f5NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5tJN8vNg07BjDFs42ZA4tdhVuh6OjUp+5qv04q0uZbE=; b=L9UutWIIxqVzyLgq4R5cVLQlBJ2kYdlwK1uRxSA80QIjZCgNQ6KdHkaYR3xGYd0kPx3XslZD5+gNo6xzgeqrCrnkvm5EM2fqcAGOOq+x3SS2JSTjsN78ZXMAC0HBz2vVTb5gQMnU1XQDv6dDEb8/Q55RX2c57gm7LYhnMP/DJI0JPblSirbC7sPXVNnNmhX0IqppPVIvsxkDcesYSjsERmo24/Svt4xrWIWoOlAutkgSNEipSmpWuoZJ4NdsEPfdNIt0aSAxjgqIo5zn+oP8QYlj/+v88a4dqzOTHa12uo5N8q0jH1MwESTBvwFYQv1+NA3YfCjBHk+qOF3pawiatg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5tJN8vNg07BjDFs42ZA4tdhVuh6OjUp+5qv04q0uZbE=; b=gyiGsh5yHodNk9M0E0rGw94ZjHl+OQsWv/E9esi092pxuMAmi1R+qABSVv9FNF2ZOucG3lTzD/8r3H9Xo3cc/0y42DJ7cvm58RrHDzbNgSZbPTHazOpSEj6swC9weHTxOZooEXMuqGLoSoDBsObpy78LNxx9ip2h5/Py0re8JC2HzB9y7QSQsrOtCNjIyhTiexNwuO+DdBgplPtIJm9cPiyB1G/8zEs1A7RCGnxd/8rvSIl9P1MMpUVCXk/53qmhshBR7x3Z9pHfes+iFhRi4Ymt2gTPnFA4KGLtWLTecgGYBY6gyfXvwmI9FiQiwQMe3/Xklfmh74CdgHSqpfNcqg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) by CO6PR12MB5460.namprd12.prod.outlook.com (2603:10b6:5:357::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Tue, 6 Sep 2022 15:53:45 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::462:7fe:f04f:d0d5]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::462:7fe:f04f:d0d5%7]) with mapi id 15.20.5588.018; Tue, 6 Sep 2022 15:53:45 +0000 Date: Tue, 6 Sep 2022 12:53:44 -0300 From: Jason Gunthorpe To: Takashi Iwai Cc: 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 Message-ID: References: <874jy4cqok.wl-tiwai@suse.de> <20220823010021.GA5967@nvidia.com> <87h723sdde.wl-tiwai@suse.de> <87ilmjqj1f.wl-tiwai@suse.de> <20220823202824.GA4516@nvidia.com> <87edwofqkd.wl-tiwai@suse.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87edwofqkd.wl-tiwai@suse.de> X-ClientProxiedBy: BLAPR05CA0014.namprd05.prod.outlook.com (2603:10b6:208:36e::18) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14f805b1-75bf-473a-6f01-08da901ffacd X-MS-TrafficTypeDiagnostic: CO6PR12MB5460:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uk2GzdICIxqqP2rZ2kPuK2wncFK86MwpAs+sN/BL4ZC74dFvkz5wIL6bTaprevXGABQ78vTe9ERQaEhylfUJ0ONhokrVUdHmGsmdaxMZB2UqdD9tkli9QXihIZZyaLVE25Kv40rY/1TJbX57s90vLN9VkqFv0Y73aBqcttP86JINH3Gd0KuSan98wCEZN02y0lCbhEWkmufs4NG/Myj8wPmOoF3U8DFamj0wj3eAdX/z9E08NPpavxMGaCEMPOeiULXLZA1vPEqRaKP4FqHnPxRWbDyR3gE4jR7/jsMurtVh91grqmK5ii2nH4CWd2tt8/yKlkVdJHfgqiDpiV4HMkXAMMWqnzlLrNMfrOsUv+eXVtkiUV3KzX2p8Diag24Bjs6sZdz7oS470YW/2IWqqWpsHqGQD2p877ZpMMG6dq38VKr4F3nDRYAaec1Ne1fNuu71QGfi4NDKfOPsdYkPEXVEqjMRyauDujcbXuqPAop2ouE5nBixMFGSgpeczPA2aQswTZQB7dy79GEkp1qB6KRCWgv4zJq9jx9YmAMB3DitooFEIHlKd0eVrDAK0HHdN9bfOvZoar4wULGAilOxoxWzRKcChZMRCyuLTN+qKslM3wozBGtMR3KGf1WTjPB0q2lkMZqicLZCf2Hlv6krwMWgpk6nYRXt0CUkLcKG8TETB14zOfB1ynYJ50ghv3rFBtYX/C+1zN2u+kGy7cy6vFIwPlIhYBiSkgIzux2vHeBY4h0GQAXfhlU6r7lCYCN8SX1XsLGlc9nCDPvkVSNWXan493hX0m35OuUDzAm6UTc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4192.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(346002)(136003)(396003)(39860400002)(376002)(2616005)(186003)(6916009)(316002)(54906003)(41300700001)(38100700002)(6506007)(66476007)(36756003)(6512007)(2906002)(478600001)(5660300002)(966005)(83380400001)(66556008)(66946007)(6486002)(8676002)(26005)(4326008)(86362001)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?IFYeoqHZIA2+2cwxliH4LGFSeWZJGKqly0UXw8IsjpV90WEOpldxd50g5YFl?= =?us-ascii?Q?2bt5gN3sxYEQOuGb3ujyqcF/NjsQXyVs3opFdT61Wbhfwt21cjU4icOnSLiZ?= =?us-ascii?Q?jheOJ6b0ahxqcxrcqeCNj28SpAJUxGAbrjcqpfLsNZAIUZMn1dWRQIPfuNeC?= =?us-ascii?Q?Noheei/B/JelV0kakW0JsSvdsEiHIvXkCp9nfnTvWjVgeR/HgVvcbQlkGF9U?= =?us-ascii?Q?JPVAbhrSaaTZj4uHy3Ez5qaheV8p9cfo1rsssqVhm+54qvG/Bmqtchxm8l+n?= =?us-ascii?Q?cUTwcEWlgdUOAMybQ3wpjf+tjW/OQYj1ZVo4oSnigHdVC5Ntj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NMx9YTjmox+GDQ8GieplxlOyDPX/KTL7rLs9d1yJGlm?= =?us-ascii?Q?9yR19ruBp2Xcdr+35GEW5voOpmIeP978+XOJqW3liUEZUhAlLgK/AvfQsd8P?= =?us-ascii?Q?n8Y8tQB9daHE+SAhrivG5H0rMIICTycobcdFR2f/x3hT3ws3W3ndw8XZW8q7?= =?us-ascii?Q?N6hKmLAwzGAI8BF7l+azcl+qX4wAjyDKrB7Y5QvzbqCI+hOVBME9VRhQt8xp?= =?us-ascii?Q?ogr88IgrAv5JUoHUpnFMEtnPvq+VJX4qezDyyg17d3moajwGAsD5B7cPGykh?= =?us-ascii?Q?UuVXr2bNMeo0Z9OCNv+GVMnmVgJyst04DGZCBD2RWHwb26rX1vHI6TQsXh4f?= =?us-ascii?Q?p09buGAaKBEJFNmhp2SiDBjPqVwJZg49/cZFz79m?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14f805b1-75bf-473a-6f01-08da901ffacd X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 15:53:45.4061 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0HJibaH8rd0xobp/ypoDUdYOYCT8uF5b7Pa92CGI0372EIUM4bjuF7TysUi4s950 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5460 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Sep 06, 2022 at 05:52:34PM +0200, Takashi Iwai wrote: > On Tue, 06 Sep 2022 17:41:51 +0200, > Jason Gunthorpe wrote: > > > > On Tue, Aug 23, 2022 at 05:28:24PM -0300, Jason Gunthorpe wrote: > > > On Tue, Aug 23, 2022 at 01:46:36PM +0200, Takashi Iwai wrote: > > > > It was tested now and confirmed that the call path is via AMDGPU, as > > > > expected: > > > > amdgpu_pci_probe -> > > > > amdgpu_driver_load_kms -> > > > > amdgpu_device_init -> > > > > amdgpu_amdkfd_device_init -> > > > > kgd2kfd_device_init -> > > > > kgd2kfd_resume_iommu -> > > > > kfd_iommu_resume -> > > > > amd_iommu_init_device -> > > > > iommu_attach_group -> > > > > __iommu_attach_group > > > > > > Oh, when you said sound intel I thought this was an Intel CPU.. > > > > > > Yes, there is this hacky private path from the amdgpu to > > > the amd iommu driver that makes a mess of it here. We discussed it in > > > this thread: > > > > > > https://lore.kernel.org/linux-iommu/YgtuJQhY8SNlv9%2F6@8bytes.org/ > > > > > > But nobody put it together that it would be a problem with this. > > > > > > Something like this, perhaps, but I didn't check if overriding the > > > type would cause other problems. > > > > Takashi, do we want to do this patch? > > I really have no much preference regarding the fix for this > regression from my side. If you can work on it, it'd be greatly > appreciated. If you say this patch works I will formally propose it, but I have no ability to test on this special AMD HW. Thanks, Jason