Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp401830pxa; Wed, 26 Aug 2020 13:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/kdFStmYukVnyBtbkjQwx8M4qVnKyY+1CznZIwRLeQMrsQg7xfwz2QWgnS6ZQ+9fizHH+ X-Received: by 2002:a17:906:a1d7:: with SMTP id bx23mr17946312ejb.273.1598475113975; Wed, 26 Aug 2020 13:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598475113; cv=none; d=google.com; s=arc-20160816; b=frqN11si80CjSfKiPcAZaBj7dFZJXdelujDNAnh2H6/MwRZG6qnwwQeWnSo1WBKytZ tush4yrnWKjYg1uw+OqHfYiAguAwExP/XNGTJ9G57usrC3HuwUtTQI1vi69ATwvMO+d9 njVb28xO3Cm7QNL5YTwm5eAtzXHoDzWeL6JeCsdCXYigqJZAOTazNg4La0faOmsPetbL 1XE7UW5YPUY4BieBMtmyWskwFpXIgV0MRwjK4K/roXnEyrgbOFrovB84o9oAVgpVHNvs qkOeMukGG0ItqHXxQRZIgJyZtCFQYZpURncEIMONGSBEwO/wESu70pCpgbY2t9nf6ai/ uGIw== 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=JG/TkMq9NWC6OfHgPC/IbFpW4xr9Kt9L0ix/14aZbxc=; b=bN1ui8SCqht1p/vpiRYfL9BSe+1xiFHftiF43ah9w3L/ZmJ7xPy/0FERc9hSO40TFK YbwlBstdeYg8bgfvBfMqK+sUcYULery48/ELEAdP2lyW/vw7tgyFCBJlcK6O/T+Ne+fl icBwgq6uGIPMjLIdmNQhEL0L7jFJrJsUTdAmkAsJKy6xrd1TkJRPVXYrAbkpcTAKXfO1 QNgwwsGre2PAxtpju0ADrBHi6BgPm3SRGGRsLzLNYEBV7AbEPid2SMvt1fgOkbUB5vb/ msHdwikCa8iIVUV+8JPqRlq2V3CiiORz4qRl9EwAoSFOBqP5Qvns7BdaKJLhKc+oZvuL +0eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=s4YbUFCt; dkim=neutral (no key) header.i=@vger.kernel.org; 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 b1si2261119ejb.739.2020.08.26.13.51.30; Wed, 26 Aug 2020 13:51:53 -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=s4YbUFCt; dkim=neutral (no key) header.i=@vger.kernel.org; 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 S1726936AbgHZUuR (ORCPT + 99 others); Wed, 26 Aug 2020 16:50:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbgHZUuQ (ORCPT ); Wed, 26 Aug 2020 16:50:16 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C164C061574; Wed, 26 Aug 2020 13:50:16 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598475014; 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=JG/TkMq9NWC6OfHgPC/IbFpW4xr9Kt9L0ix/14aZbxc=; b=s4YbUFCtbJEMrLqgKd7OwtYh18vHyM4HfQLj0mVtwmVQVO9mPe+rbcu9/9RQcu7BDqxIXq 4SC8x5F55ReokeL0LN8UUQFD5m3BjRCcVnOHVA++cJ3n9iGLghzLvQHLb6sr4Opghelyw7 wtiHRsopz/7aQ7mxdNa4ubr9zMjw6kUfb9G723x0mquWT/8sbYu95BnkyTknE0X6c2XJfj G2IbL55VnbnoeT093T8n8BdlC4i9HNmIpjyrPxF0OWHJtvkDyBhZ80We7p7G5tVUd/JFYJ lndw1zv+U67ElbvOK78N7X9qxyNKvPXDl0P5nwVk071fVAGS++QK4AuCw0xoVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598475014; 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=JG/TkMq9NWC6OfHgPC/IbFpW4xr9Kt9L0ix/14aZbxc=; b=aS6JntODH9ZvZZJHE2vQuw6G8LnzzNi8bSa6D1XA+HMxu+eOePiLVi0SGkTN8Uz37jCbMJ TOeuyIqSX/IO5mCA== 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: <878se1uulb.fsf@nanos.tec.linutronix.de> References: <20200826111628.794979401@linutronix.de> <20200826112332.163462706@linutronix.de> <812d9647-ad2e-95e9-aa99-b54ff7ebc52d@intel.com> <878se1uulb.fsf@nanos.tec.linutronix.de> Date: Wed, 26 Aug 2020 22:50:13 +0200 Message-ID: <87r1rtt9mi.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 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.