Message ID | 170802701641.398.9865476811780802677.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp101412dyb; Thu, 15 Feb 2024 12:26:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhWc/aJbWxXTFAk4QLIOUJBAMcNjOkuYl6fS+Zn9wzsEHOS45tQY1KcBTFZ1ev6UcKYcyk2Jm1TjE1CjXRkkiNsxRxjg== X-Google-Smtp-Source: AGHT+IFFsh3N/I3lWflC9eYDLEn2lRsWA7+M8z/yU2MybsUUZqpBLwpskZ/dXnCHTL1eM39FO2yC X-Received: by 2002:a05:6a20:8c09:b0:1a0:6016:bf6f with SMTP id j9-20020a056a208c0900b001a06016bf6fmr2639788pzh.29.1708028774993; Thu, 15 Feb 2024 12:26:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708028774; cv=pass; d=google.com; s=arc-20160816; b=k+wphZHkIdovFgh1CKPWRl+OnBD/jF44zEsj+tD0ZgIbYYLpUIRSoNd8TBuI5r5ss4 7ae3IAuTVKZslwQVmsviQ36C1NLhc595Y4PaL7GDgdQS4my4qC2FP0E1DbEyKJw7hVlY FTLvKTzt9TXuPHUfUB9z6B89SB1emyfwKOVoVPn3JI/Y1TQIeiZOWSqqpFK//KBVH0Zn JQ4PmjJMK353ydxTtdZRFK30lGxRdEd7/EWOo7CMBW5zggnrdEmpq/L/Y7w6NKivgwYd WttAghDpyTz7HDVj33jVlKLVlRuVPkE5PK7I3WxZ61/nqJqU0y/2vKxh6QPlWw75Q7tc V0Jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=Gp8pRjTfv1QNSZrrpl5DYHm5iswbLLmWrXHSIq3iwHU=; fh=LU6lT0PDYxSjx39eUa7M+LyV2rE4/Fllc4BDCj6L/a8=; b=i/u6WumRzRhKtKCae7/Yds4csLNcsCGa/JLcttJVdTlngtIzrJ5QYDE6OCSPFJ2UIY kpUT958K8JDcmesqv90B8I/QvV3dulwBmwXDgdsGgUHhkmKwVMqvI4ioKHtjbgDv+k1w EzLdAw4iHiJJFE1yqn2WRanxX1qkB6MOqB1VrmlULqwa/LQsyxeOYnlFng1AwpbguyJo RaoOhsqrA65RPw9TpAHt/VV0ju4K8m1UgR5sQZ9vganjEvLFRAhTHIiZr6+wFFQueiVW WAxqhGh4zG2XC+BWLDUHUxFIiSxYtnT8AISAxZDERu9i2Us3fHcXr2bmCrZr1ybkShln LwoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4Oi28e5F; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 80-20020a630153000000b005dc962cfb64si1624484pgb.89.2024.02.15.12.26.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4Oi28e5F; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67618-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 75FE8B2600F for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 19:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74A7A13AA5F; Thu, 15 Feb 2024 19:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4Oi28e5F"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ND6QAQo6" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4513213A892; Thu, 15 Feb 2024 19:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708027020; cv=none; b=ZfaXDKbNslo2sJX/RT9dHjQ3kAqKmg4KMcPcqOdkTVRijsN9/v8j4bg02vWIr27n7ZUH3yJvVekRKY31YckAHUbyKeyMTF+T6mIqT8tvTO1vHFbQCSwxnoOyJmmzEhwcZZqBB3TDKyOUMjARN64ePcFfYAD8JBT3wbSz1Rp4gkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708027020; c=relaxed/simple; bh=wKptZ5+eJl5ci++NzOa9RSvAO6eRqLXG+XKGBuxEkrk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=KzIPNAczIdS7yEACb8zJOw7Ub8SBBWt4HshlD/2SDVRoqNG0n1WiYpZ1d2BAzSdVKKYFBrOviLiCcaJziOm02VBb5qP871lNf15fYfMYYGLOZqRjEI+gcTLgevOI16T2atn3STAr4y7pkF/Kv8rbcVr3NNAGCGx6EHgD1vaaT1Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4Oi28e5F; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ND6QAQo6; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 15 Feb 2024 19:56:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708027017; 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=Gp8pRjTfv1QNSZrrpl5DYHm5iswbLLmWrXHSIq3iwHU=; b=4Oi28e5FLkAQ0DmzENQvaXxtLWKqvpZLEeN7mBd4A00w1lVNCofdNrG/Ac4Eev1crsaDib Xgu/LSIQ7HEoDuY6XzSdtbHqE6cKBnsRPnMAxVpWhLaUFMXxRqf/3P60Zyj/wcHkdIN+X9 3RyeYwiUoEnGmX1tMy536pTsYZvUtQ1/J3TNg6pOey6/8smDtagUUXXH0hQ84amC43lGbg st4R/HyygTWtVetgZPzDycy6HzeKrsmroJeB2FBPP3zyNj4Ptry3OLilQDP55uBMwg+COD ZgIjjRQVtsD6pj6ymH2WhPq1pD/3+yzl/Yly+yEABMq8oM1McQ1RrgChbocStA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708027017; 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=Gp8pRjTfv1QNSZrrpl5DYHm5iswbLLmWrXHSIq3iwHU=; b=ND6QAQo645tw4wiL8wFvLGq6ti3GCvCAvJixR+G2glfA+4HuxioDCoE7Zv7Hn9uJPFGXJx g8GKH/sol8YwClBg== 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/msi] genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV Cc: Thomas Gleixner <tglx@linutronix.de>, Anup Patel <apatel@ventanamicro.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240127161753.114685-14-apatel@ventanamicro.com> References: <20240127161753.114685-14-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170802701641.398.9865476811780802677.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789261311813775097 X-GMAIL-MSGID: 1790997980983835556 |
Series |
[tip:,irq/msi] genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 15, 2024, 7:56 p.m. UTC
The following commit has been merged into the irq/msi branch of tip: Commit-ID: 9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd Gitweb: https://git.kernel.org/tip/9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd Author: Thomas Gleixner <tglx@linutronix.de> AuthorDate: Sat, 27 Jan 2024 21:47:41 +05:30 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Thu, 15 Feb 2024 17:55:41 +01:00 genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV Some platform-MSI implementations require that power management is redirected to the underlying interrupt chip device. To make this work with per device MSI domains provide a new feature flag and let the core code handle the setup of dev->pm_dev when set during device MSI domain creation. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240127161753.114685-14-apatel@ventanamicro.com --- include/linux/msi.h | 2 ++ kernel/irq/msi.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/linux/msi.h b/include/linux/msi.h index 36ba6a0..26d07e2 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -554,6 +554,8 @@ enum { MSI_FLAG_FREE_MSI_DESCS = (1 << 6), /* Use dev->fwnode for MSI device domain creation */ MSI_FLAG_USE_DEV_FWNODE = (1 << 7), + /* Set parent->dev into domain->pm_dev on device domain creation */ + MSI_FLAG_PARENT_PM_DEV = (1 << 8), /* Mask for the generic functionality */ MSI_GENERIC_FLAGS_MASK = GENMASK(15, 0), diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 07e9daa..f90952e 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -845,8 +845,11 @@ static struct irq_domain *__msi_create_irq_domain(struct fwnode_handle *fwnode, domain = irq_domain_create_hierarchy(parent, flags | IRQ_DOMAIN_FLAG_MSI, 0, fwnode, &msi_domain_ops, info); - if (domain) + if (domain) { irq_domain_update_bus_token(domain, info->bus_token); + if (info->flags & MSI_FLAG_PARENT_PM_DEV) + domain->pm_dev = parent->pm_dev; + } return domain; }