Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5793518ybp; Tue, 15 Oct 2019 05:15:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5D5HWwMcJV+OI8HpQWImccjGQiN4VdR/xdz8FKCAwQf8D2K1HLx9RZlwBvTRo6owt0gWQ X-Received: by 2002:aa7:cb58:: with SMTP id w24mr33211401edt.158.1571141712973; Tue, 15 Oct 2019 05:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571141712; cv=none; d=google.com; s=arc-20160816; b=f76NAjIor8yKL1UoOw+Y6pgZ0rm8wHc0UxqAlP7sFXE7GIEhj2gOfkMi+uD+YXqj3p 5w4/npgfxg8GXTOpqYRVGHojfUtRHYXR2Qm9xa+gUQk4eLMy2FLSrdgdCyKKRSWWrYVo +CvfPNxIz+tlR/+3bcngFqmCRkY84BZ0H9SXSMDjLyKjxg72xFsdyR7vY5zUxF1IM9+o o1ldzNy7l1q3oBmuoPLhvp+RVVDnq9bHnKl6NeuWt/pnSaaSZp/1iHJyy5FqV/Rra9o5 VCJRkdCabteVJhhsHHixl81EOjpXAgmDMv1P4tUJQ5X7MdKCpQezuHFuez3wyHqc216T SaJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WTik2+Dphs/SomfdR/ZL6PvVVSiXM5ZunDT2LA0Oh/w=; b=H0zK74wQlQwKg4ObT8eisXZ6XbErsu081bnhzvvi7lWz/RU+LehQ8cImnb+k9ZBQ7L QwXX6rnLG5CvkbqtnxTfq2mpIvFoVxHQF6z12cA0HvQtKUZqc+gFH3FVLF/XaIZ6Is7B 3IM/Ab3cnkl6a87d9vVnM1j2djBKftyHhPXO9mWgoFWQwHpqM22TowYhW/9bl0Mn7sk9 y1a8uCOFQNYNFaumsPmu1Voq5Rem9m2F+xtdift8a30O3dU12MwSeIV0IkbGUWlIDoLB I54dZvPh4E1B+K6cdg+xAn3GqWNBtYO9bZLWt/vTL9fru2EOncjLo0Lh5y8XM7lp2I2Y MZeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si14701600ede.119.2019.10.15.05.14.49; Tue, 15 Oct 2019 05:15:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729068AbfJOLks (ORCPT + 99 others); Tue, 15 Oct 2019 07:40:48 -0400 Received: from 8bytes.org ([81.169.241.247]:47474 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbfJOLks (ORCPT ); Tue, 15 Oct 2019 07:40:48 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id E6A532D9; Tue, 15 Oct 2019 13:40:46 +0200 (CEST) Date: Tue, 15 Oct 2019 13:40:45 +0200 From: Joerg Roedel To: Chris Wilson Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/intel: Use fallback generic_device_group() for ACPI devices Message-ID: <20191015114045.GJ14518@8bytes.org> References: <20191004205554.21055-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191004205554.21055-1-chris@chris-wilson.co.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 09:55:54PM +0100, Chris Wilson wrote: > [ 2.073922] DMAR: ACPI device "INT33C2:00" under DMAR at fed91000 as 00:15.1 > [ 2.073983] DMAR: ACPI device "INT33C3:00" under DMAR at fed91000 as 00:15.2 > [ 2.074027] DMAR: ACPI device "INT33C0:00" under DMAR at fed91000 as 00:15.3 > [ 2.074072] DMAR: ACPI device "INT33C1:00" under DMAR at fed91000 as 00:15.4 I think just using generic_device_group() is not enough here. You need to mach the device-id of the ACPI device with the PCI hierarchy and find the right group there. You can look at the AMD IOMMU drivers acpihid_device_group() function for some inspiration. Regards, Joerg