Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp482243pxk; Wed, 16 Sep 2020 08:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCvEeBPxuSlc/LA1eXLKsQBxvJEmduLhiA33HK77rhrFTXODhJrSXnRT2NMlDNCec0Zdk6 X-Received: by 2002:a17:906:f4f:: with SMTP id h15mr25690953ejj.17.1600271594863; Wed, 16 Sep 2020 08:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600271594; cv=none; d=google.com; s=arc-20160816; b=JHgGiUakeZxxWJJId+AMGWCJfPeODLy/Qz4jKEKt/uVQ2fEEhcefn6Q2gmSb/4ErIW pcWPsQkuDxOfloN1YS4wN948kVd0b8yS2BPXFNvDRv3MKNVc8pJ6ongPrDlpCdRPohi9 e2vUDiik3m2zgYc485wmd7YhHCmyO26QxdQLwRzT0fV9YPa+ewnDrBbEFVfNCwFt3+xJ 4EIHIpTqVQEaWi8Qio/ru6fE8NI+2QWLxQBOCzlednpdt7SnkfXVlyLja5HO2ypjYo81 AVO5jBgxkoNvnt+fOHT0YZhyprfy5WhfRnWshn5UlwJ+o8ZzJGVES0S1WFUPWVp6/rv8 PXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=+6vKGXw8m7MF/r4QcKnfdlHekF8HSLx0KrGTxNClskA=; b=ULSXnfBCTHOz1ZIBkVdPy22kubxqslcPiDqpmmHifEXarGjE0YYlY6AP+2G7hx7Zyy AvRYNIShTr2PEtaYLJ2qoyhi7RLukleXfW8KP8r3fa1iyzVqglqF1BCzQl2nPMNvEK3y 59lB3f4fQyeNkUsjLMPbEgPh8a9D+h+U0ovEsnJas7f0c1BLRokKzkVCkpOcLO5lcvk0 45HTFqnVrtsuTfy3snctQSU0Ma41Kr0gHu4ObGwYcyVWtzehqcfqhiPXhUYxGFiZI6U5 7wtHKhkFYGqG0rzBpopvDNZmqsXTYSeEWncdXaNZ8KfWIXsTBoOc85BDPsjgplQFpHN6 hEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b="V4uR/X/6"; dkim=neutral (no key) header.i=@vger.kernel.org header.b=gTXkv4E+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si12338750ejn.639.2020.09.16.08.52.52; Wed, 16 Sep 2020 08:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b="V4uR/X/6"; dkim=neutral (no key) header.i=@vger.kernel.org header.b=gTXkv4E+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbgIPPse (ORCPT + 99 others); Wed, 16 Sep 2020 11:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbgIPPa1 (ORCPT ); Wed, 16 Sep 2020 11:30:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50E37C02C295; Wed, 16 Sep 2020 08:20:16 -0700 (PDT) Date: Wed, 16 Sep 2020 15:12:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1600269140; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+6vKGXw8m7MF/r4QcKnfdlHekF8HSLx0KrGTxNClskA=; b=V4uR/X/6QGIuUIhXKtMS8YcNyLYXevipUEJPDTJmj9bEEzlNIOZTZg6zlbPPFwoW/7ED+T ByKwUUUvu0UGhISHlPCt7zskt93Nm1NyNe6KcJUd+IcUm6nWfUQF7bDMZmOSqHmgYTmsiM TpF8cBQe1v9Y6n7CvsGEFYzrSAtbQoaztRiQ3P+F6p8NZ864tFHSBc9cK1JngCtg0mrcE8 cDhHJ7NGLmw0/zOpDtqNyLQdOb/ZAZl4bf6gr6GuNmu+CtsJw3GENJPNFsg8Ty/7e6+lf2 +ziKZgs+bjQFmwZVx+S2rFK0/Zk0zuhOPGkOMYgy35LvY3Cpok5eXgMgjiu9UA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1600269140; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+6vKGXw8m7MF/r4QcKnfdlHekF8HSLx0KrGTxNClskA=; b=gTXkv4E+u/NG4vn4tz3h6izaQ15nxeODzLtrH7mvF/7jAViJL7V3YE7vkLpYBU1s22gLLW XBh9Iwl0tzJBYZDA== From: "tip-bot2 for Thomas Gleixner" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/irq] x86/irq: Consolidate DMAR irq allocation Cc: Thomas Gleixner , x86 , LKML In-Reply-To: <20200826112332.163462706@linutronix.de> References: <20200826112332.163462706@linutronix.de> MIME-Version: 1.0 Message-ID: <160026913952.15536.1109103652937370652.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/irq branch of tip: Commit-ID: 55e039157281f9d8ee7d595c2529a3fd4e790b52 Gitweb: https://git.kernel.org/tip/55e039157281f9d8ee7d595c2529a3fd4e790b52 Author: Thomas Gleixner AuthorDate: Wed, 26 Aug 2020 13:16:43 +02:00 Committer: Thomas Gleixner CommitterDate: Wed, 16 Sep 2020 16:52:33 +02:00 x86/irq: Consolidate DMAR irq allocation None of the DMAR specific fields are required. Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20200826112332.163462706@linutronix.de --- arch/x86/include/asm/hw_irq.h | 6 ------ arch/x86/kernel/apic/msi.c | 10 +++++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index 641bc14..79f6d1d 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -83,12 +83,6 @@ struct irq_alloc_info { irq_hw_number_t msi_hwirq; }; #endif -#ifdef CONFIG_DMAR_TABLE - struct { - int dmar_id; - void *dmar_data; - }; -#endif #ifdef CONFIG_X86_UV struct { int uv_limit; diff --git a/arch/x86/kernel/apic/msi.c b/arch/x86/kernel/apic/msi.c index da68d08..ebf57db 100644 --- a/arch/x86/kernel/apic/msi.c +++ b/arch/x86/kernel/apic/msi.c @@ -326,15 +326,15 @@ static struct irq_chip dmar_msi_controller = { static irq_hw_number_t dmar_msi_get_hwirq(struct msi_domain_info *info, msi_alloc_info_t *arg) { - return arg->dmar_id; + return arg->hwirq; } static int dmar_msi_init(struct irq_domain *domain, struct msi_domain_info *info, unsigned int virq, irq_hw_number_t hwirq, msi_alloc_info_t *arg) { - irq_domain_set_info(domain, virq, arg->dmar_id, info->chip, NULL, - handle_edge_irq, arg->dmar_data, "edge"); + irq_domain_set_info(domain, virq, arg->devid, info->chip, NULL, + handle_edge_irq, arg->data, "edge"); return 0; } @@ -381,8 +381,8 @@ int dmar_alloc_hwirq(int id, int node, void *arg) init_irq_alloc_info(&info, NULL); info.type = X86_IRQ_ALLOC_TYPE_DMAR; - info.dmar_id = id; - info.dmar_data = arg; + info.devid = id; + info.data = arg; return irq_domain_alloc_irqs(domain, 1, node, &info); }