Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4626576rwb; Tue, 6 Sep 2022 10:04:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7q6tvp9xQ9pqEPgV0YjPyLbiNGsiu0cMs0Za6Pr2ikB/0XkgxCospN17Jt/x1iz/1VN9dp X-Received: by 2002:a17:902:f68f:b0:176:c1e3:3ada with SMTP id l15-20020a170902f68f00b00176c1e33adamr7012179plg.74.1662483864412; Tue, 06 Sep 2022 10:04:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662483864; cv=pass; d=google.com; s=arc-20160816; b=OzMYjE4xYwPE8j6lvEZcJojQBdJvyql1ZjD3EL3ymiqfTEUz5OLYY08kcSy9XkbNcP mI7s3jeTT5KJ9FTy6h1fLx50/M98ttkAkGkhXvnd+IXANROFFp0cSrszh/u/BV2PBbef Zng/Ua1P2c1h4DNTFcVNZoB/OOSpm9HtivzBQMx3raXdAMNm0evsJT5l4pQat0oC/6+a YIj0BYf219cpYZ4/iIlF6HMpa6TU1fVuU8CFoQ6w23Wg/BT/XmrrUgiLtQZtEbpikFuF zrFNBrKrVmDa6COR78bn9WUkLB5pE0jOyiIvzbihBKQBQtMOB4XSc9h+7+woG+70bz7h 8KzQ== 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=K2lzqpdqLGV9cdtwbnhaIOYYyRh7ANbLkB7fpc/bZAs=; b=BNfl/QwsocG+mjJfeMgMW2hOjpL85xdjsCAOS0XKyQmMtafY2wMcAjRJAv0tOGDoEc B/48lxoy+4SkaJ4Z6xdRTxB0XwBjf9vPioI8Yxp7VkRe7CA1PjfLMXLG9o9sE6qUgMsQ 1XU6874n6HPll0ngGVeJ3UvQ8B1lZzkK0KytYSDZd+s80iAJ1Cer7KSMkzE8KkmwKEWf ob/Eko30VSL6ClD/rbEIWuMoP+8+eGqGhnWqHR9uTNs3Xz8cFriM8avdfbv0Lj3neTbg K1nt+siqNDF8iJ2xMefA/phPxjC+O1PRdf7Fx5ZMFy8+1dGlaQWZnwsGxVvuVx+tqU6k ywTQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=ShAWoOdr; 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 c9-20020a170902d48900b0016f4a25b5dcsi11593587plg.37.2022.09.06.10.04.11; Tue, 06 Sep 2022 10:04:24 -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=ShAWoOdr; 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 S238821AbiIFQO4 (ORCPT + 99 others); Tue, 6 Sep 2022 12:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232989AbiIFQOQ (ORCPT ); Tue, 6 Sep 2022 12:14:16 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2064.outbound.protection.outlook.com [40.107.237.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D1719F1B9 for ; Tue, 6 Sep 2022 08:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FMuojgoftsuj0RYT4Px+DRGL2KJPb6L4Pyqb1wInEobGyi4aDJe8XV5+RoPO+Lp5VGQ9SE5RsPJEMiDfDx9ZFOksltFSLw69KAccdvsgSqDCoLbUEIEe0mZSd4Z2wMZ5LkXgL0/mQ5GqE+qCGDNveyFZqXFMj9Abjb01cSSGCZ9gml1PpYNrGthNA1XfOYdp2Z7HvzQUMQr9uh++OT3A4AMUrEoN9oV4YqqwlcH8Zo81PTNSEAv0VVrK8OHZUb5Ls7p8kIEsqE11wfQMZzVsMK+cXKeE43BhWnx/nr76+bCzV3MLSO5oRryCIH2KERjglB3VgIxtzEwfpT6tq1b4cg== 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=K2lzqpdqLGV9cdtwbnhaIOYYyRh7ANbLkB7fpc/bZAs=; b=bWsNyvljnjnGZkQRdqIRtLiw2TjIvtaA6LwMRxChMhaN8CWWO0mKUp/r8QaV5zYUGk7A96PHC8oqAuJ4Q8DUtw/GgWZ0g751Is0N8VT2WsN8sD1oZv394u9LysJ8+HXdRGka5mY25IOvw6D0xv8/QBfdbvgsqZg4AX+KOpbB/uPXA31cAU8QyMt/A7uZWE+UoaTJ5mK6dAKPSJAmTIAq7/9Y4RnUAwqEgE1R+ir4xA2BymsijunVjDLAv65hvwZBj1Keg+45jpX463j+XkeWlhDYP8/jFDeJhUkXOpDepUYV8A+Uj8LYTVKKmHf1aVFgJ6wD2UzYt3qlF0nwbg++dg== 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=K2lzqpdqLGV9cdtwbnhaIOYYyRh7ANbLkB7fpc/bZAs=; b=ShAWoOdrPjPWSCnDJEvzFIfp3Vss8m/IgMd5w1q2zLvTa/MuhRC6xf7iULDGpG7b42OxECmycM7/Eeoj3VmDzLNLWttuWdVdKq3fg7Q2F+cgjxxBORyXnWMsJdMPZZEbbTbT8dad2F5FjCxlMH0kXhdSkHrt4WWpSwynLxnnN72aGXBkRzdpsyhx/4+T582hxCcdIN/hndN4kCoYlWz8tp47MU9lTGcXF/EgfqalA5EOxoIDqZDV9Z8RVHSlIn6z0m59ruj+FTAh19lNKSG1r4GHJb9YpucrpTtG/g8RlpNuNZVTV04OTHmavY+0AQ7/8BwHg6vLhgFCHS6UiJh1Kg== 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 IA1PR12MB6434.namprd12.prod.outlook.com (2603:10b6:208:3ae::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.18; Tue, 6 Sep 2022 15:41:52 +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:41:52 +0000 Date: Tue, 6 Sep 2022 12:41:51 -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> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823202824.GA4516@nvidia.com> X-ClientProxiedBy: MN2PR08CA0028.namprd08.prod.outlook.com (2603:10b6:208:239::33) 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: 4a07af00-9194-4216-472c-08da901e51ba X-MS-TrafficTypeDiagnostic: IA1PR12MB6434:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3x1MRweziISalQ8/joRf5OVshK8OVyaJpZKrHKGBDy75AaOWYz0sxwWu2YLVtvP9+9UiOVSI8AQu6j1cHPTOYVplWO1Df80UVaL/T40guME8N5Ycen5hXYHmeDmzG/d7aMXVCKgHgWakeuc5TrFqtvUN7GzL8q1ALMjd7YXNyRv+kgp94zFz2AXdWfbDz4tEJsu8eSw3p/v5SqNpDBtwkuFtLyU1fgAhymUP0zpyT5SvlZaIkWY8x/2320iZNxfEFAOp4ZFlHPyFbtt6dlf7wZWio7AuW9c7BgxV8uYOjpu6EGn/xCT2o0ArQCl6xB/ZuK6CEj1S8XYwFEhD40Lt8W1hn83Dpc7JjGU+utGb6jjuK6ZN3Gj0TmBgJ7aY19H3lQYlVPdz5hfsUREkLEYOJFKNyOt7rVG5PN88zwgr1RK05KUIflMOiQxrq5PPOtlVE/z1y7j8Zhq88trUlKDKXTdHL4hlYYXX1ZiWF5yq+2QQg0scXaKUg2++uQuZLzIbJ2lTITXyizGCYQTVzAzFbPYdEl2czH98xQVue9VidEn0L+kX36NT/62BXjpJDD+yOPg4tomQFxETtgPvurEqxS41nCaZV+0gArM9jeMaQJRH7JUmZUcw5Vv15GieP2rLiMsh1Qtvf0SYDjWCL+jKQzri7Z5m4XT5qrUSvY0J01NDMBGOqXA6Ma4dQPFVp4ummXtxb4S2OSuRqC3HObKS989EsAnG9vc9dejiL99YqXbX5kLXtaaxBnm7rJtNLDDbOrOhJnU+bilGaCQp8UvE8VzaE7Oy9BsjRWVJDlX2SjM= 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)(346002)(396003)(39860400002)(366004)(376002)(136003)(4744005)(6916009)(316002)(54906003)(86362001)(36756003)(2906002)(38100700002)(5660300002)(8936002)(8676002)(66946007)(4326008)(66476007)(83380400001)(6512007)(6486002)(2616005)(966005)(186003)(6506007)(478600001)(66556008)(41300700001)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7zZbsDTKLV7QZpwrGxrkrqzpO1KrHDzjAh+gOykcuZCmxRPaqNREM4R8wAqY?= =?us-ascii?Q?TIh6C7BTvQvBGxAMHNGvO6MhXim3Ux1ohtANsQQzq1XpPnq/tM/7n9tfiFzj?= =?us-ascii?Q?e6ajwRslYO9EMag+46e42PR3qrCvw4l1iaSofNI+FMjSpe0LHBp1eL6ZG55X?= =?us-ascii?Q?mTQqweTXVDQCZ9YHi9qxTt5rR24X+0++GyUHpJKGELsh+V4e3hhzJ+qtHR3u?= =?us-ascii?Q?oBkSS2Vs5dcEkQhgdTp/Wj0qsvluXyJuvSpHFxUI7u+QS0ka8tuhS7p1udHe?= =?us-ascii?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aF6zXIl2tpHP0sl56mhttdB?= =?us-ascii?Q?n4epaBHk1qPkoTZFLKZxiodHsuB8kDZyiY3z52aeHO4uddPw6tOzFvwMeGlc?= =?us-ascii?Q?0BWjY9xOsYPooplsgoWpm192X9Q2GDT1hv6fLz24kKrqbTPV2woKo+10lsbb?= =?us-ascii?Q?BzqsFdxm+3MK1xBFf/dwU87gVH9RnN51f6ZBU3G97GB7jy/076qe3Eo/ow7u?= =?us-ascii?Q?o0kPoLEekg4Z3JW414U6fA6RKa3mPzIEi4N5FQPLXyGMV9ETO8O71511Ge2p?= =?us-ascii?Q?DvvwamdE1Pr1v6fHKG9U+jhq2ofOhZaSxZil1W+/rGf+DDj96ty3wRokdAoc?= =?us-ascii?Q?92NnwXD4+55yI+vtr7DXW+imfuVO52fLgVMYpTZPuwB1/H91v/+9IjD5hISK?= =?us-ascii?Q?1Qfy/pTTzeuqSLvmpL9e/qZrv7FEYwBCNFfjAFqJ?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a07af00-9194-4216-472c-08da901e51ba 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:41:52.2958 (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: TxfXlt7RqgX+vjpL+rqbq8A8Q8RV2GqOA/5nYFXVZYwr1Rmt1XvgRDpOxDHuu5QY X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6434 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, 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? Thanks, Jason