Message ID | 167027650855.4906.16905481322264960950.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2487478wrr; Mon, 5 Dec 2022 13:44:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SzTWfjcdUQKNtGMBDvohE5pWEB4OUVHD+IykQEaS6M6DAKwOcgElZqUqL4cac/Npe/cEu X-Received: by 2002:aa7:cc04:0:b0:463:1a0c:4dd1 with SMTP id q4-20020aa7cc04000000b004631a0c4dd1mr67984844edt.137.1670276696719; Mon, 05 Dec 2022 13:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670276696; cv=none; d=google.com; s=arc-20160816; b=TXknR3Ugk1NvW0YBXu8cPOVx/6YC0TS2F/5SbWWGfVE602KYzoLKoDtXOHXRU/WvR2 OJM9jmbHhOke7z6tR7ke9rj1Oxmf+ISQMPllHI1gtUR+MhYrT+mANJMSlf4dJMAeLJx6 rPKzlrWTnCYh3naqmTCbx7iINi0VwH6WZI+X6X1zs9DRPKm3No8lEixIRvek6HTVkyTI g30r24y+Vol7hY7irHSTVGSDFocBR53e0RHM5uvwRhUzpXLhKe0EgoqhTkmFSZkzDVbU 6IIhqmjewibwEwXxAB+iu02qeGrrszJcol8FekPrGZGOTZvm0h5mfCJO/lYkPYGSsNDN 87aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=MoOu6qLojYFUZbCcsdiLeS1LpsKLhL+iTJw++hZkR+Y=; b=tG7/B0cyl8YlU1+WtGpAr0k6WQN6TYv/5dANdHmX+MjcPPVDJaC9R0gmXZ0HCyN5C9 KK0ysUm84pmOLUknha2uQ/6S1/FVIYyqP9Ex2X67UDmEIu4yag7TuwYXbugB6m87m/xv Uie/Em0ghyERrqSZZDt2RVMLp2IuxAKlPsTop12xhkTCNc54zojyHKp5AHdz9272dCro DfWcp6gi+KYEgA7Kxa7d2k6gB5un689XLpfrVOLzXCwzKefcUpWAX0oQmD+H2SSPqHo0 BU7gbLI6puhoHz/gpYim3QdcyK4tOIWdoIodZ5hmtJyxTBJm3Ct/spxwlWawSe79XryF yycg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zh4BKbQO; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb36-20020a1709071ca400b007c10638840asi816817ejc.75.2022.12.05.13.44.33; Mon, 05 Dec 2022 13:44:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zh4BKbQO; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234090AbiLEVnH (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 16:43:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233811AbiLEVlx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 16:41:53 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58DCA2CDDD; Mon, 5 Dec 2022 13:41:52 -0800 (PST) Date: Mon, 05 Dec 2022 21:41:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670276508; 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=MoOu6qLojYFUZbCcsdiLeS1LpsKLhL+iTJw++hZkR+Y=; b=Zh4BKbQOlsFtoHRfzazIxMbPnMG2qehssEInaEhbSoT4whuw6Gdtopq83SFb9SLqGpgQvc dPGoUY+P/Im8eHskUE3+SK0qopJZiVhIn9fM1B52A75X8Dpcnd5nldkDm2l45ej5PUZ7JD tEB4SZG0wFDuibG+pSTTqmauV8y5HEmdsrCIZrCCKiqy7inoiCpP5vLi/ppNdwtYUILeNf ugzJIEhYgz0af0F9I4JLsuQL5KB508Qrn0OMTKjV2mPGjT3Z5/7UY+HnZYj/i27U0a9fz0 vnfsCCARDd7M2x57h5yfsAPPNRF5dM7DvZrZkebuudZSti78gVg9p7Vv/X1++g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670276508; 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=MoOu6qLojYFUZbCcsdiLeS1LpsKLhL+iTJw++hZkR+Y=; b=Yu0W54ywy5hDZnG0TyF2DanMpUu7m7r/Gk5L/2roMfPymDt+ygKkZw9aMr4rKYzvYy+B3B sfffmirbZne+/hCA== From: "tip-bot2 for Thomas Gleixner" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq/msi: Provide struct msi_map Cc: Thomas Gleixner <tglx@linutronix.de>, Kevin Tian <kevin.tian@intel.com>, Marc Zyngier <maz@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124232326.326410494@linutronix.de> References: <20221124232326.326410494@linutronix.de> MIME-Version: 1.0 Message-ID: <167027650855.4906.16905481322264960950.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750422202677276125?= X-GMAIL-MSGID: =?utf-8?q?1751412057664501546?= |
Series |
[tip:,irq/core] genirq/msi: Provide struct msi_map
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Dec. 5, 2022, 9:41 p.m. UTC
The following commit has been merged into the irq/core branch of tip: Commit-ID: 06bff9e347271566e8dd79e7c3eb971660209a00 Gitweb: https://git.kernel.org/tip/06bff9e347271566e8dd79e7c3eb971660209a00 Author: Thomas Gleixner <tglx@linutronix.de> AuthorDate: Fri, 25 Nov 2022 00:26:13 +01:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Mon, 05 Dec 2022 22:22:33 +01:00 genirq/msi: Provide struct msi_map A simple struct to hold a MSI index / Linux interrupt number pair. It will be returned from the dynamic vector allocation function and handed back to the corresponding free() function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221124232326.326410494@linutronix.de --- include/linux/msi_api.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/include/linux/msi_api.h b/include/linux/msi_api.h index 8640171..4cb7f4c 100644 --- a/include/linux/msi_api.h +++ b/include/linux/msi_api.h @@ -18,6 +18,19 @@ enum msi_domain_ids { MSI_MAX_DEVICE_IRQDOMAINS, }; +/** + * msi_map - Mapping between MSI index and Linux interrupt number + * @index: The MSI index, e.g. slot in the MSI-X table or + * a software managed index if >= 0. If negative + * the allocation function failed and it contains + * the error code. + * @virq: The associated Linux interrupt number + */ +struct msi_map { + int index; + int virq; +}; + unsigned int msi_domain_get_virq(struct device *dev, unsigned int domid, unsigned int index); /**