Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp322428pxa; Wed, 26 Aug 2020 11:33:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2gRLM38zGeRIqx89XOyWl//PC2/QvBGtsMZCDUXQRAJ6tZITjCwO96w/Vt+7vwGgvWUFe X-Received: by 2002:a17:906:5418:: with SMTP id q24mr16176863ejo.296.1598466794090; Wed, 26 Aug 2020 11:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598466794; cv=none; d=google.com; s=arc-20160816; b=JE2NbvgAE02G+lL1cXji6oSFxqGHoD3QvA9UQVrKNvS1bflRK8U60ClU9a8kWtA3rp EZVaxMmUaQVeLpaEblJ9WJYDVWx9gH53+TcH1cCaGUMRTCVwIJdVI9MKJfUkf4Liji1e k5fzYOE/CksPO35d3qklOKcs6ARkvjqfK2+XxmP8Y8NJQjhnGBG0BBWPT03YG7w1RMyR 6L2TXxyVeK5pf41Wml9GmhGF8g3x4xaCfKQ9Dva23jp4F5yuwBGZYEoxtbMRcqou1qTS dAjcvwPxtUxar7tlOfZqrgqAb0J921h7zFKzvkR69YFNy6zk3OhhEVcNidKyii1bKZOv nymA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=mcTYQk36xBHukMp+WJuA1pj5lQ7N0s5iLLvD6sbf4dI=; b=sOv/EcGZtDNKdPpsAV5twPMumhw2k8Wlf5YOQN8R0Iua7Z2txf2T9BmO6j15WwyKf7 4uSOtI7zozGphirmopIi9KdpjXtGy0FjXFzqSepzGF8Gp88gAFBGsTrM/JBh1nPaVdWC Os9Aw7rOfu/Pd/s09IHRSYgNXgMaiJ7zuLf859xxhQ5NaQbRuCVBOgxIi5ZmiLAmGHWI losHd+ATHng1Ox5jb+N5AJhzBzrkAUhfKO6bVC6MzvAbn6AZNAMyCfPIQL943lEL4f/F lMxkI+Uu0AhJhL9fyS7w6BFEkP3eNB5b0H+GylVV7zo6lNF6jvsLZER5equwb7EQw04G oEXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fpQJ5YLB; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=pass (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 y13si2137408ejb.12.2020.08.26.11.32.50; Wed, 26 Aug 2020 11:33: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=pass header.i=@linutronix.de header.s=2020 header.b=fpQJ5YLB; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbgHZScE (ORCPT + 99 others); Wed, 26 Aug 2020 14:32:04 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60692 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgHZScD (ORCPT ); Wed, 26 Aug 2020 14:32:03 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598466720; h=from:from:reply-to:subject:subject: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=mcTYQk36xBHukMp+WJuA1pj5lQ7N0s5iLLvD6sbf4dI=; b=fpQJ5YLBnvP7eAvuuPZvNlzVE1yTFcC3m3p/OK2mKng6MKzf3xJQ97zpjk50GBCGR++Mre +pgDtjis/z2lxl0mueMP/XNS2M2nPBkot5+qPqiVJCBQ/W9GT2KLQsWzsblyXqI7xk9Y8J roh1ow11MUTyUeBFLCHpFkeHlpyiJXB8f/ujjD+ENJKWULtVlh++5rPVPYIdNBW5xJzjAU xedCxtQd/w/Z7ftQZGGv+P6MRtuQ1A/w2yA7RqrxqjzWO3u1m3+x5VkFhOgAd7OyZmLGfU 8pUhoxzbcQe/wCfP728HKYhDmfO5rY17aQ6x1+J8OjTq+KXAReAUeZfIxeDzdg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598466720; h=from:from:reply-to:subject:subject: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=mcTYQk36xBHukMp+WJuA1pj5lQ7N0s5iLLvD6sbf4dI=; b=pkoroG5YpMQGTbQ7l7+BLWF/OnpZqytmtTgmIbXHObF2YG1hspbzv/wff3q1nSoqlXa6Ac WfvFdMD10A4T26DQ== To: "Dey\, Megha" , LKML Cc: x86@kernel.org, Joerg Roedel , iommu@lists.linux-foundation.org, linux-hyperv@vger.kernel.org, Haiyang Zhang , Jon Derrick , Lu Baolu , Wei Liu , "K. Y. Srinivasan" , Stephen Hemminger , Steve Wahl , Dimitri Sivanich , Russ Anderson , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Marc Zyngier , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jason Gunthorpe , Dave Jiang , Alex Williamson , Jacob Pan , Baolu Lu , Kevin Tian , Dan Williams Subject: Re: [patch V2 15/46] x86/irq: Consolidate DMAR irq allocation In-Reply-To: <812d9647-ad2e-95e9-aa99-b54ff7ebc52d@intel.com> References: <20200826111628.794979401@linutronix.de> <20200826112332.163462706@linutronix.de> <812d9647-ad2e-95e9-aa99-b54ff7ebc52d@intel.com> Date: Wed, 26 Aug 2020 20:32:00 +0200 Message-ID: <878se1uulb.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26 2020 at 09:50, Megha Dey wrote: >> @@ -329,15 +329,15 @@ static struct irq_chip dmar_msi_controll >> 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; > > Shouldn't this return the arg->devid which gets set in dmar_alloc_hwirq? Indeed.