Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp820649pxa; Thu, 27 Aug 2020 17:14:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvnDhBWeIWHFHU5bh8Hw86WJnVKEBAG8Ncaqdb6VaIt6d7gogYG8csjBekLpikyGkflT/5 X-Received: by 2002:a17:907:35d0:: with SMTP id ap16mr24587904ejc.457.1598573684268; Thu, 27 Aug 2020 17:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598573684; cv=none; d=google.com; s=arc-20160816; b=aziXIWILwgNz8V0aAxGivdyDeJ3bfvxXL/V6Ashz4nXuSKlzfC2Kt+ul5qj0dbfi8w k2VEq/jrZ+BvwU1D2LawZMTSoJ9SJbLVm4uULUKdMB4wu48eOIdAXyKGPPKkw2tX3J6T Gn7q1cVETgrOS2I/cFl8Xzxof9hcNp+tmR6S4eYtT11Z0Fn2uPxx9IJ5Sjj3YCFWVWAS Uir9sKMpbzXoctw1dJJKE582bosaZlTOk0rtut2nl/VYd00RZDd4XSVNgCjrV07BtqKa jyVd4rrwVT11ihFh+JVo47c/ZbvwkF66CEuVzXig3HTZXrHes/ggWcdUm96+4BkhiRcv r+Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=v/LATi86MsLCLs82Is/LeT2NnaUftch9S0YjR7MDK2c=; b=THlHfrKxdpe3d83bUKEjIcKvmH3qNf8cBSIN8ixtbotWrFsOJX6BiGsBWDRdzsof1Y IZN5BVPwxjvdAsXsKqNskcrID4IaI4B/xWMK6W1FOGfIDXk4ZVAhEepButdKeKSGBQ7W nO29WbHI2TK2cpu56KdaoraUhG6kHcWBLrGlkqtCTYHtenuz4JF/Sm5R6Z0jso6LyoGy 2LAvhPJPWzbcscHZtbKdpBz866xapFSlFUoOsUrsE+sLJQ+Sd37XPrFdSnElltT8oqGB Cqsu7Xmvh8hPi8naOSx2SpL8y4ZJ1ldwQYyBwQ93z4d/qxq4UUwYclFnFUO4emDVrK4Q 0IoQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si1592568edn.340.2020.08.27.17.14.21; Thu, 27 Aug 2020 17:14:44 -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; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728113AbgH1ANr (ORCPT + 99 others); Thu, 27 Aug 2020 20:13:47 -0400 Received: from mga06.intel.com ([134.134.136.31]:18591 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbgH1ANr (ORCPT ); Thu, 27 Aug 2020 20:13:47 -0400 IronPort-SDR: 735/lkOY3dvTnKz6kBbG/Sl4dW1DqCJRvQWLvtYZY4hfO31n9aTWnwkWrMAHZpGdJDvjnLgVsn HllVQxdHpRmg== X-IronPort-AV: E=McAfee;i="6000,8403,9726"; a="218136614" X-IronPort-AV: E=Sophos;i="5.76,361,1592895600"; d="scan'208";a="218136614" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2020 17:13:46 -0700 IronPort-SDR: uAmGoMAFhGRvD5NPRLnN/ekYEL+Xjxv+g4TWsI9UNYPL5S4ZMqTmCJhNgf7wqckE0S2ryUHTLn 7aEo94gI807g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,361,1592895600"; d="scan'208";a="295950071" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga003.jf.intel.com with ESMTP; 27 Aug 2020 17:13:46 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 27 Aug 2020 17:12:49 -0700 Received: from orsmsx101.amr.corp.intel.com (10.22.225.128) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 27 Aug 2020 17:12:49 -0700 Received: from [10.254.177.214] (10.254.177.214) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 27 Aug 2020 17:12:48 -0700 Subject: Re: [patch V2 15/46] x86/irq: Consolidate DMAR irq allocation To: Thomas Gleixner , LKML CC: , Joerg Roedel , , , "Haiyang Zhang" , Jon Derrick , Lu Baolu , Wei Liu , "K. Y. Srinivasan" , Stephen Hemminger , Steve Wahl , Dimitri Sivanich , "Russ Anderson" , , Bjorn Helgaas , Lorenzo Pieralisi , Konrad Rzeszutek Wilk , , 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 References: <20200826111628.794979401@linutronix.de> <20200826112332.163462706@linutronix.de> <812d9647-ad2e-95e9-aa99-b54ff7ebc52d@intel.com> <878se1uulb.fsf@nanos.tec.linutronix.de> <87r1rtt9mi.fsf@nanos.tec.linutronix.de> From: "Dey, Megha" Message-ID: Date: Thu, 27 Aug 2020 17:12:44 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <87r1rtt9mi.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.254.177.214] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On 8/26/2020 1:50 PM, Thomas Gleixner wrote: > On Wed, Aug 26 2020 at 20:32, Thomas Gleixner wrote: >> 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. > But for simplicity we can set arg->hwirq to the dmar id right in the > alloc function and then once the generic ops are enabled remove the dmar > callback completely True, can get rid of more code that way.